/* Visual refresh: retain the established type, content, and industrial palette. */
.home {
  --cyan: #37c4ff;
  --soft-cyan: #e8f7ff;
  --card-line: #cddfea;
}
.home .btn {
  min-height: 48px;
  border-radius: 5px;
  max-width: 100%;
  text-align: center;
  justify-content: center;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
.home .btn.primary {
  box-shadow: 0 6px 20px rgba(0, 107, 153, .17);
}
.home .btn.primary:hover {
  background: #00577f;
  border-color: #00577f;
  box-shadow: 0 8px 24px rgba(0, 107, 153, .25);
}
.home .brand span { color: #008abd; }
.home .navlinks a:not(.btn) { text-underline-offset: 7px; }
.home .navlinks a:not(.btn):hover { text-decoration: underline; }
.home .navlinks .btn { background: #fff; }

/* The light text area and the fully visible artwork have separate space. */
.home .hero {
  min-height: min(850px, calc(100svh - 74px));
  background: var(--paper);
  isolation: isolate;
}
.home .hero::before, .home .hero::after { display: none; }
.home .hero-image {
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  background-image: linear-gradient(90deg, #f4f8fc 0%, rgba(244,248,252,.96) 12%, rgba(244,248,252,.82) 25%, rgba(244,248,252,.22) 45%, transparent 60%), url('/assets/advanced-manufacturing.png');
  background-position: center, 76% center;
  background-size: cover;
  background-repeat: no-repeat;
}
.home .hero .shell { padding: 82px 0 88px; }
.home .hero .eyebrow { max-width: 650px; font-size: .72rem; }
.home .hero .eyebrow::before { background: #008abd; flex: 0 0 36px; }
.home .hero h1 {
  font-size: clamp(3.1rem, 5.3vw, 5.1rem);
  line-height: 1.03;
  width: 68%;
  max-width: 790px;
  margin: 26px 0;
}
.home .hero h1 em { color: var(--blue); }
.home .hero .lead {
  width: 60%;
  max-width: 660px;
  font-size: clamp(1.05rem, 1.35vw, 1.17rem);
  line-height: 1.75;
}
.home .hero-actions { max-width: 690px; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.home .hero-actions .btn { font-size: .86rem; }
.home .hero .btn:not(.primary) { background: rgba(255,255,255,.94); border-color: #a7c3d4; }
.home .hero .btn:not(.primary):hover { background: var(--soft-cyan); border-color: var(--blue); }

/* A compact dark band gives the existing metrics a different visual weight. */
.home .metrics {
  background: var(--ink);
  color: #fff;
  border: 0;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
}
.home .metric { border-color: rgba(255,255,255,.16); padding: 28px 24px; }
.home .metric strong { color: #70d6ff; font-variant-numeric: tabular-nums; }
.home .metric span { color: #d1e0ed; line-height: 1.5; display: block; margin-top: 5px; }
.home .metric a:hover span { color: #fff; }
.home .metric a:focus-visible { outline-color: #70d6ff; }
.home .section-head h2 { max-width: 590px; }
.home #expertise { background: #edf5fa; }
.home .expertise.services { gap: 22px; border: 0; background: transparent; }
.home .service-card {
  padding: 32px;
  border: 1px solid var(--card-line);
  border-radius: 9px;
  box-shadow: 0 5px 18px rgba(7,19,32,.035);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.home .service-card:hover { border-color: #7fbcd7; box-shadow: 0 12px 30px rgba(7,19,32,.08); transform: translateY(-3px); }
.home .service-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.home .service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #006b99;
  background: linear-gradient(135deg, #d9f3ff, #edf8ff);
  border: 1px solid #c1e5f5;
}
.home .service-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.home .service-top .num { color: #587589; font-size: .85rem; }
.home .service-card h3 { margin: 24px 0 16px; font-size: clamp(1.35rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.home .service-card h4 { color: #1c4b67; }
.home .service-card .deliverables { border: 0; border-left: 3px solid #008abd; padding: 16px 18px; background: #f0f8fc; }
.home .service-card .specialized { line-height: 1.7; }
.home .service-link, .home .project-link { transition: color 180ms ease; }
.home .service-link:hover, .home .project-link:hover { color: #003554; }

/* Three bespoke vector illustrations make the flagship work scannable. */
.home #projects { background: #fff; }
.home .case-intro { border-left: 3px solid #008abd; padding-left: 20px; }
.home .project { border-radius: 8px; border-color: var(--card-line); box-shadow: 0 4px 14px rgba(7,19,32,.025); }
.home .project:hover { box-shadow: 0 12px 28px rgba(7,19,32,.075); }
.home .project .tag { line-height: 1.6; }
.home .flagship-cases { gap: 22px; }
.home .case-card { padding: 0; min-height: 0; justify-content: flex-start; }
.home .case-visual { margin: 0; background: #0b2032; overflow: hidden; border-bottom: 1px solid var(--card-line); }
.home .case-visual img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 430; }
.home .case-image-link { display: block; }
.home .case-image-link:focus-visible { outline: 3px solid #70d6ff; outline-offset: -4px; }
.home .case-title-link:hover, .home .case-title-link:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.home .case-visual figcaption { padding: 10px 15px; color: #d3e9f4; font-size: .69rem; line-height: 1.5; }
.home .case-summary { padding: 26px 26px 0; flex: 1; }
.home .case-card h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.home .case-card .result { margin: 22px 26px 0; padding: 18px 0 26px; }
.home .case-card .case-status { margin-bottom: 10px; line-height: 1.6; }
.home .case-card .project-link { margin-top: 4px; }
.home .portfolio-label { padding-top: 12px; }
.home #research { background: #edf5fa; }
.home .thesis-feature { border-radius: 8px; background: linear-gradient(110deg, #e1f3fc, #f7fbff); }
.home #approach { background: #fff; }
.home .step { border-top-color: #9dd7ed; }
.home .step.active { border-top-color: var(--blue); }
.home .step .mono { color: #006b99; }

/* A stronger close, with a clear contact action and restrained image detail. */
.home .closing {
  background: linear-gradient(90deg, #071320 0%, rgba(7,19,32,.96) 40%, rgba(7,19,32,.74) 100%), url('/assets/advanced-manufacturing.png') right center / cover no-repeat;
  color: #fff;
}
.home .closing .mono { color: #70d6ff; }
.home .closing h2 { color: #fff; font-size: clamp(2.7rem, 4.8vw, 4.8rem); }
.home .closing p { color: #d1e0ed; }
.home .closing .contact-line { gap: 18px; align-items: center; }
.home .closing .contact-line a:first-child {
  background: #70d6ff;
  color: #071320;
  font-weight: 800;
  border: 1px solid #70d6ff;
  border-radius: 5px;
  padding: 12px 18px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.home .closing .contact-line a:first-child:hover { background: #a4e5ff; transform: translateY(-2px); }
.home .closing .contact-line a:last-child { color: #e0edf6; border-bottom-color: #70d6ff; }
.home .closing a:focus-visible { outline-color: #70d6ff; }
.home footer { background: #f4f8fc; }

/* Progressive enhancement: the page remains visible and usable without JS. */
.home .reveal-pending { opacity: 0; transition: opacity 420ms ease, transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease; }
.home .reveal-pending.is-visible, .home .reveal-pending:focus-within { opacity: 1; }

@media (min-width: 1600px) { .home .hero-image { inset-inline-start: 44%; } }
@media (max-width: 1100px) and (min-width: 851px) {
  .home .hero .shell { padding: 64px 0 74px; }
  .home .hero h1 { width: 72%; font-size: clamp(3rem, 5.6vw, 4rem); }
  .home .hero .lead { width: 64%; }
  .home .hero-image { inset-inline-start: 47%; }
  .home .hero-actions { max-width: 620px; }
  .home .hero-actions .btn { padding-inline: 14px; font-size: .8rem; }
  .home .case-summary { padding: 22px 20px 0; }
  .home .case-card .result { margin-inline: 20px; }
  .home .case-card h3 { font-size: 1.25rem; }
}
@media (max-width: 850px) {
  .home .hero { display: flex; flex-direction: column; min-height: auto; }
  .home .hero .shell { order: 1; padding: 58px 0 38px; }
  .home .hero-image {
    position: relative;
    order: 2;
    z-index: 0;
    inset: auto;
    width: 100%;
    height: clamp(260px, 46vw, 380px);
    background-image: linear-gradient(180deg, #f4f8fc 0%, rgba(244,248,252,.18) 18%, transparent 35%), url('/assets/advanced-manufacturing.png');
    background-position: center, 74% 53%;
  }
  .home .hero h1 { width: 100%; max-width: 760px; font-size: clamp(2.9rem, 7.8vw, 4.6rem); }
  .home .hero .lead { width: 100%; max-width: 690px; font-size: 1.1rem; }
  .home .hero-actions { max-width: none; }
  .home .metric { padding: 24px 18px; }
  .home .metric:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .home .case-card { grid-column: span 12; display: grid; grid-template-columns: .95fr 1.3fr; }
  .home .case-visual { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; border-bottom: 0; }
  .home .case-summary { padding: 24px 24px 0; }
  .home .case-card .result { margin: 18px 24px 0; padding-bottom: 24px; }
  .home .case-card h3 { font-size: 1.4rem; }
  .home .closing-grid { gap: 26px; }
}
@media (max-width: 650px) {
  .home .service-card { padding: 26px; }
  .home .expertise.services { gap: 18px; }
  .home .case-card { display: flex; }
  .home .case-visual { display: block; border-bottom: 1px solid var(--card-line); }
  .home .case-summary { padding: 25px 25px 0; }
  .home .case-card .result { margin-inline: 25px; }
}
@media (max-width: 560px) {
  .home nav .shell { padding-block: 10px; gap: 10px; }
  .home .brand { font-size: .93rem; }
  .home .navlinks .btn { padding: 9px 13px; min-height: 44px; }
  .home .hero .shell { padding-top: 44px; }
  .home .hero .eyebrow { font-size: .65rem; letter-spacing: .065em; gap: 9px; }
  .home .hero .eyebrow::before { flex-basis: 23px; }
  .home .hero h1 { font-size: clamp(2.45rem, 8.8vw, 3.7rem); letter-spacing: -.06em; margin-block: 24px; }
  .home .hero .lead { font-size: 1.02rem; }
  .home .hero-actions { align-items: stretch; }
  .home .hero-actions .btn { width: 100%; font-size: .84rem; padding-inline: 14px; }
  .home .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 14px; }
  .home .metric { min-width: 0; padding: 22px 12px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,.16); }
  .home .metric:nth-child(even) { border-right: 0; }
  .home .metric strong { font-size: 1.8rem; }
  .home .metric span { font-size: .74rem; }
  .home .section-head h2 { font-size: clamp(2.1rem, 7.8vw, 2.7rem); }
  .home .closing .contact-line { align-items: flex-start; flex-direction: column; }
}
@media (hover: none) {
  .home .project:hover, .home .service-card:hover, .home .btn:hover, .home .closing .contact-line a:first-child:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home .btn, .home .project, .home .service-card, .home .closing .contact-line a, .home .reveal-pending { transition: none; }
  .home .reveal-pending { opacity: 1; }
  .home .project:hover, .home .service-card:hover, .home .btn:hover, .home .closing .contact-line a:first-child:hover { transform: none; }
}
