/* ==========================================================================
   Aurix Refinery — design system (light-first)
   Crimson #98083C and gold #E4B030 are accents on a white page. The only dark
   surfaces are the full-screen hero and the footer.
   Type: Fraunces (display) · Inter (UI) · IBM Plex Mono (assay codes)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --crimson:      #98083C;
  --crimson-deep: #6E052B;
  --crimson-dark: #4A031D;
  --crimson-soft: #FCF3F6;
  --crimson-line: #F0DCE4;
  /* Same hue as the wordmark (337°) lifted in lightness so it stays legible on
     the dark hero. #98083C itself measures ~1.5:1 there — unreadable. */
  --crimson-light: #E8709A;
  /* Stronger strokes for the services wheel */
  --line-wheel:   rgba(23,17,15,.20);
  --line-orbit:   rgba(152,8,60,.30);

  --gold:         #E4B030;
  --gold-deep:    #A87C10;
  --gold-soft:    #FDF8EC;

  --ink:        #17110F;
  --body:       #4E4744;
  --muted:      #6E6663;
  --paper:      #FFFFFF;
  --paper-alt:  #FAF8F5;
  --card:       #FFFFFF;
  --line:       #ECE7E0;
  --line-strong:#DCD5CB;

  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 30px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(23,17,15,.05), 0 1px 3px rgba(23,17,15,.04);
  --shadow-md: 0 4px 16px rgba(23,17,15,.06), 0 2px 6px rgba(23,17,15,.035);
  --shadow-lg: 0 20px 52px rgba(23,17,15,.10), 0 6px 18px rgba(23,17,15,.05);

  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 100px;
  /* tightened section rhythm — was clamp(60px, 8vw, 116px) */
  --sy: clamp(46px, 5.2vw, 84px);
}

/* ==========================================================================
   Base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  color: var(--ink); font-weight: 600; line-height: 1.08;
  letter-spacing: -.015em; margin: 0; text-wrap: balance;
}
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.wrap-anywhere { overflow-wrap: anywhere; min-width: 0; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold); }
::selection { background: var(--crimson); color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.shell { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px)  { .shell { padding-inline: 32px; } }
@media (min-width: 1280px) { .shell { padding-inline: 40px; } }

.section { padding-block: var(--sy); position: relative; }
.section--tight { padding-block: calc(var(--sy) * .62); }
.section--alt { background: var(--paper-alt); }

/* Two-column split used by every text+media section.
   align-items:stretch makes both columns exactly the same height, so their
   tops AND bottoms line up; the copy is then centred inside its own column. */
.split { display: grid; gap: clamp(26px, 3.4vw, 52px); align-items: stretch; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-narrow { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
  .split--media-wide   { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
}
.split-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.split-media { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.split-media > .frame { height: 100%; min-height: 300px; }
@media (max-width: 1023px) { .split-media > .frame { min-height: 0; height: auto; } }
/* Opt out of the stretch: keep the media at its own ratio, centred in the
   column. The columns still align because .split stretches them; only the
   frame stops filling its column. */
.split-media--natural > .frame { height: auto; min-height: 0; align-self: center; width: 100%; }

/* ==========================================================================
   Type
   ========================================================================== */
.display { font-family: 'Fraunces', serif; font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
.h2 { font-family: 'Fraunces', serif; font-size: clamp(1.85rem, 3.9vw, 2.85rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -.02em; }
.h3 { font-size: clamp(1.12rem, 1.8vw, 1.4rem); font-weight: 600; }
.lede { font-size: clamp(1rem, 1.35vw, 1.13rem); color: var(--muted); line-height: 1.68; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.serif-italic { font-family: 'Fraunces', serif; font-style: italic; font-weight: 400; }
.text-crimson { color: var(--crimson); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  padding: 7px 15px 7px 11px; border-radius: var(--r-pill);
  background: var(--crimson-soft); border: 1px solid var(--crimson-line);
  color: var(--crimson); font-size: .715rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em;
  font-family: 'IBM Plex Mono', monospace;
}
.eyebrow svg { width: 15px; height: 15px; flex: none; }
.on-dark .eyebrow {
  background: rgba(222,92,134,.12); border-color: rgba(222,92,134,.36);
  color: var(--crimson-light);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--crimson); color: #fff; box-shadow: 0 10px 26px rgba(152,8,60,.20); }
.btn-primary:hover { background: var(--crimson-deep); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #2A1B02; }
.btn-gold:hover { background: #F0BE45; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--crimson); color: var(--crimson); background: var(--crimson-soft); }
.on-dark .btn-ghost { border-color: rgba(255,255,255,.34); color: #fff; }
.on-dark .btn-ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(228,176,48,.1); }

/* ==========================================================================
   Cards & media
   ========================================================================== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--crimson-line); }

.frame { position: relative; overflow: hidden; border-radius: var(--r-lg); background: #F0EBE4; }
.frame-portrait { aspect-ratio: 3 / 4; }
.frame-square   { aspect-ratio: 1 / 1; }
.frame-43       { aspect-ratio: 4 / 3; }
.frame-wide     { aspect-ratio: 16 / 10; }
.frame > img, .frame > video { width: 100%; height: 100%; object-fit: cover; }
.frame--contain { background: #fff; }
.frame--contain > img { object-fit: contain; padding: 6%; }
.frame-zoom > img { transition: transform .7s var(--ease); }
.frame-zoom:hover > img { transform: scale(1.05); }

/* Layered depth + a slight perspective tilt that settles on hover. */
.frame-3d {
  border: 1px solid rgba(23,17,15,.08);
  box-shadow:
    0 2px 4px rgba(23,17,15,.05),
    0 10px 22px rgba(23,17,15,.09),
    0 30px 64px rgba(23,17,15,.16);
  transform: perspective(1500px) rotateY(-2.4deg) rotateX(1.1deg);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.frame-3d:hover {
  transform: perspective(1500px) rotateY(0deg) rotateX(0deg) translateY(-5px);
  box-shadow:
    0 3px 6px rgba(23,17,15,.06),
    0 14px 28px rgba(23,17,15,.10),
    0 40px 80px rgba(23,17,15,.20);
}
@media (prefers-reduced-motion: reduce) { .frame-3d { transform: none; } }

/* ==========================================================================
   Fabric cursor backdrop
   ========================================================================== */
.fabric { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: block; }

/* ==========================================================================
   Nav — floats over the hero, solidifies on scroll
   ========================================================================== */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
              border-color .35s var(--ease), backdrop-filter .35s var(--ease),
              transform .4s var(--ease);
}
/* Slides out of the way while scrolling down, returns on scroll up. */
.masthead.is-hidden { transform: translateY(-100%); }
.masthead.is-stuck {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md); border-bottom-color: var(--line);
}
.masthead__bar { display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: var(--nav-h);
  /* Deliberately wider than the 1240px page shell so the bar spans more of the
     viewport than the content below it. */
  max-width: 1600px; }

/* logo knocks out to white while the bar is transparent over the dark hero */
.nav-logo img { height: 72px; width: auto; transition: filter .35s var(--ease); }
@media (max-width: 600px) { .nav-logo img { height: 56px; } }
.masthead:not(.is-stuck) .nav-logo img { filter: brightness(0) invert(1); }
@media (min-width: 1280px) {
  .nav-logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

.navgroup {
  display: none; align-items: center; gap: 4px; padding: 5px;
  border-radius: var(--r-pill); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
}
@media (min-width: 1280px) { .navgroup { display: inline-flex; } }
.masthead.is-stuck .navgroup { background: var(--paper-alt); border-color: var(--line); }

.navlink {
  padding: 9px 13px; border-radius: var(--r-pill); font-size: .855rem; font-weight: 500;
  color: rgba(255,255,255,.86); white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.navlink:hover { background: rgba(255,255,255,.14); color: #fff; }
.navlink[aria-current="page"] { background: var(--crimson); color: #fff; font-weight: 600; }
.masthead.is-stuck .navlink { color: var(--body); }
.masthead.is-stuck .navlink:hover { background: #fff; color: var(--crimson); }
.masthead.is-stuck .navlink[aria-current="page"] { background: var(--crimson); color: #fff; }

.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
.masthead.is-stuck .nav-cta { background: var(--crimson); border-color: var(--crimson); color: #fff; }
.masthead.is-stuck .nav-cta:hover { background: var(--crimson-deep); border-color: var(--crimson-deep); }

.burger {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); color: #fff; background: transparent; cursor: pointer;
}
@media (min-width: 1280px) { .burger { display: none; } }
.masthead.is-stuck .burger { border-color: var(--line-strong); color: var(--ink); }
.burger svg { width: 22px; height: 22px; }

.mobile-menu { background: #fff; border-top: 1px solid var(--line); }

/* --- Live Rate: a quiet pulsing dot marks it as a live feed --------------- */
.navlink--rate { display: inline-flex; align-items: center; gap: 7px; }
.rate-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #2ED17A; box-shadow: 0 0 0 0 rgba(46,209,122,.7);
  animation: ratepulse 2.2s ease-out infinite;
}
@keyframes ratepulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,209,122,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(46,209,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,209,122,0); }
}

/* --- Google Play button (footer) ----------------------------------------- */
.playstore {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 18px;
  padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #000; border: 1px solid rgba(255,255,255,.35);
  transition: border-color .25s var(--ease), background-color .25s var(--ease),
              transform .25s var(--ease);
}
.playstore:hover { border-color: var(--gold); background: #0B0B0B; transform: translateY(-2px); }
.playstore svg { width: 26px; height: 26px; flex: none; }
.playstore__txt { display: flex; flex-direction: column; line-height: 1.1; }
.playstore__sub  { font-size: .6rem; letter-spacing: .07em; text-transform: uppercase;
                   color: rgba(255,255,255,.72); }
.playstore__main { font-size: 1.02rem; font-weight: 600; color: #fff; margin-top: 2px; }
.site-footer .playstore:hover .playstore__main { color: #fff; }

/* ==========================================================================
   Hero — genuinely full screen, nav sits on top of it
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: end; overflow: hidden; isolation: isolate;
  background: #140D0B; padding-top: var(--nav-h);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media > video, .hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  /* Asymmetric on purpose. The hero copy ends at ~52% of the viewport, so the
     scrim stays dense only across that band (where it has to carry 4.5:1 text
     contrast against a specular highlight in the footage) and then drops away
     hard. Past 58% the video is far clearer than it used to be -- the old
     blanket sat at .52/.34 out here, this sits at .30/.14. */
  background:
    linear-gradient(100deg, rgba(12,7,5,.87) 0%, rgba(12,7,5,.85) 40%, rgba(12,7,5,.72) 54%, rgba(12,7,5,.30) 74%, rgba(12,7,5,.14) 100%),
    linear-gradient(to top, rgba(12,7,5,.58) 0%, transparent 42%);
}
@media (max-width: 900px) {
  .hero-media::after {
    background: linear-gradient(to top, rgba(12,7,5,.93) 0%, rgba(12,7,5,.8) 45%, rgba(12,7,5,.66) 100%);
  }
}
/* Wider than the standard shell so the copy sits further left, and anchored
   to the bottom of the hero rather than its middle. */
/* With a lighter scrim the copy carries its own contrast: a soft dark halo
   keeps text readable over bright frames without dimming the whole video. */
.hero-content h1,
.hero-content .hero-lede,
.hero-content .hero-accent { text-shadow: 0 2px 14px rgba(8,4,3,.85), 0 1px 3px rgba(8,4,3,.7); }
.hero-content .eyebrow { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-content .scroll-cue { text-shadow: 0 1px 8px rgba(8,4,3,.8); }

.hero-content { position: relative; z-index: 2;
  padding-top: 0; padding-bottom: clamp(46px, 7vh, 96px);
  width: 100%; max-width: 1340px; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: 9px; min-height: 28px;
  font-family: 'IBM Plex Mono', monospace; font-size: .68rem;
  text-transform: uppercase; letter-spacing: .17em; color: rgba(255,255,255,.62);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue svg { width: 15px; height: 15px; animation: nudge 2.1s var(--ease) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-height: 780px) {
  .hero .display { font-size: clamp(2.1rem, 5.6vw, 3.4rem); }
  .hero-lede { font-size: .98rem; margin-top: 13px !important; }
  .hero-accent { margin-top: 12px !important; font-size: 1.02rem; }
  .hero-stats { margin-top: 18px !important; padding-top: 15px !important; }
  .hero-stats dd { font-size: 1.38rem !important; }
  .scroll-cue { display: none; }
}
@media (max-height: 620px) {
  .hero .display { font-size: clamp(1.8rem, 4.8vw, 2.4rem); }
  .hero-accent { display: none; }
  .hero-stats { display: none !important; }
}

/* ==========================================================================
   Certification strip
   ========================================================================== */
.cert { display: flex; align-items: center; gap: 14px; padding: 15px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.cert:hover { border-color: var(--crimson-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cert__mark { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--crimson-soft); border: 1px solid var(--crimson-line); color: var(--crimson); }
.cert__mark svg { width: 25px; height: 25px; }
.cert__text { min-width: 0; }
.cert__name { display: block; font-family: 'IBM Plex Mono', monospace; font-weight: 600;
  font-size: .8rem; letter-spacing: .08em; color: var(--ink); line-height: 1.25; }
.cert__desc { display: block; font-size: .77rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }

/* ==========================================================================
   Services wheel — larger, nothing clipped
   ========================================================================== */
/* Sits in one half of a split now, so it is sized to the column rather than
   the page — this is what reclaims the vertical space it used to eat. */
.wheel-wrap {
  position: relative; display: grid; place-items: center;
  /* MUST stay free of percentages: --r feeds translateY(), where a percentage
     resolves against the NODE's own height rather than the disc width. Using
     100% here collapsed the orbit to ~43px and buried every node under the hub. */
  --wheel: min(520px, 38vw);
  min-height: calc(var(--wheel) + 24px);
  perspective: 1400px;
}
.wheel {
  position: relative; width: var(--wheel); aspect-ratio: 1;
  --r: calc(var(--wheel) * .40);
  transform-style: preserve-3d; transform: rotateX(14deg);
}
.wheel-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed var(--line-orbit);
  transform: rotate(var(--rot, 0deg)); transform-style: preserve-3d;
}
.wheel-ring::before { content: ''; position: absolute; inset: 14%; border-radius: 50%;
  border: 1.5px solid var(--line-wheel); }
.wheel-node {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px;
  border-radius: 50%; cursor: pointer; background: #fff;
  border: 1.5px solid var(--line-wheel); color: var(--ink);
  display: grid; place-items: center; text-align: center; padding: 10px;
  box-shadow: var(--shadow-md);
  transform: rotate(calc(var(--i) * 51.4286deg)) translateY(calc(var(--r) * -1))
             rotate(calc(var(--i) * -51.4286deg)) rotate(calc(var(--rot, 0deg) * -1));
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease);
}
.wheel-node__code { font-family: 'IBM Plex Mono', monospace; font-size: .63rem;
  letter-spacing: .09em; color: var(--crimson); display: block; }
.wheel-node__name { font-size: .73rem; font-weight: 600; line-height: 1.22; display: block; margin-top: 3px; }
.wheel-node:hover, .wheel-node:focus-visible, .wheel-node.is-active {
  background: var(--crimson); color: #fff; border-color: var(--crimson);
  box-shadow: 0 14px 34px rgba(152,8,60,.30);
}
/* Brand gold on crimson measures only ~4.4:1 at this size; lifted so the code
   clears 4.5:1 on the selected node. */
.wheel-node:hover .wheel-node__code, .wheel-node:focus-visible .wheel-node__code,
.wheel-node.is-active .wheel-node__code { color: #F5CC63; }

/* central oval */
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 60%; height: 45%;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line-wheel); box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center; padding: 4% 8%;
}
.wheel-hub__code { font-family: 'IBM Plex Mono', monospace; font-size: .72rem;
  letter-spacing: .12em; color: var(--crimson); font-weight: 600; }
.wheel-hub__name { font-family: 'Fraunces', serif; font-size: clamp(1.1rem, 2.3vw, 1.6rem);
  font-weight: 600; color: var(--ink); margin-top: 6px; line-height: 1.14; }
.wheel-hub__desc { font-size: .86rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.wheel-hub__inner { transition: opacity .22s var(--ease), transform .22s var(--ease); }
.wheel-hub.is-swapping .wheel-hub__inner { opacity: 0; transform: translateY(6px); }

/* Breakpoint matches .split so the wheel appears exactly when the two-column
   layout does. Below that it is a plain card list. */
.services-list { display: grid; gap: 12px; }
@media (min-width: 1024px) { .services-list { display: none; } }
@media (max-width: 1023px) { .wheel-wrap { display: none; } }

/* ==========================================================================
   Marquee rows  (clients · manufacturing · milestones)
   ========================================================================== */
.marquee { overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

.mq-left  { animation: mq-left  var(--dur, 40s) linear infinite; }
.mq-right { animation: mq-right var(--dur, 40s) linear infinite; }
/* Manufacturing rows are positioned by scroll instead of animated. */
.mq-scroll { will-change: transform; }
@keyframes mq-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes mq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* --- client logos: white, complete, small, no filter, no hover ----------- */
.client-chip {
  flex: none; width: 172px; height: 92px; margin-right: 16px;
  display: flex; align-items: center; justify-content: center; padding: 14px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
}
/* Constrain by BOTH axes and let the intrinsic ratio pick the smaller one, so a
   tall mark (K M Choksi is 220x150) is bounded by height rather than being
   forced to the full width and overflowing. The width/height attributes in the
   markup give every image a layout box before it loads, which also keeps the
   lazy-loading observer from ignoring a 0x0 element. */
.client-chip img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
}

/* --- manufacturing: two rows, opposite directions ----------------------- */
.stage-card { flex: none; width: 268px; margin-right: 18px; }
.stage-card .frame { border-radius: var(--r-md); }
.stage-card__no {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-family: 'IBM Plex Mono', monospace; font-size: .66rem; font-weight: 600;
  background: rgba(255,255,255,.94); color: var(--crimson);
  padding: 4px 9px; border-radius: var(--r-pill);
}
.stage-card__name { font-size: .88rem; font-weight: 600; color: var(--ink); margin-top: 10px; }
@media (max-width: 640px) { .stage-card { width: 212px; margin-right: 14px; } }

/* --- milestones: auto-scrolling timeline -------------------------------- */
.tl-item {
  position: relative; flex: none; width: 232px;
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center;
  padding-inline: 6px; min-height: 226px;
}
.tl-item::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: var(--crimson-line); transform: translateY(-50%); z-index: 0; }
.tl-label { align-self: end; text-align: center; font-size: .85rem; font-weight: 600;
  color: var(--ink); line-height: 1.35; padding-bottom: 18px; max-width: 200px; }
.tl-node {
  position: relative; z-index: 2; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: #fff;
  border: 2px solid var(--crimson-line); color: var(--crimson);
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem; font-weight: 600;
  transition: background-color .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.tl-item:hover .tl-node { background: var(--crimson); border-color: var(--crimson); color: #fff; transform: scale(1.1); }
.tl-item:nth-child(even) .tl-label { grid-row: 3; align-self: start; padding-bottom: 0; padding-top: 18px; }
.tl-item:nth-child(even) .tl-node  { grid-row: 2; }

/* ==========================================================================
   Process steps
   ========================================================================== */
.pstep { display: flex; gap: 14px; align-items: flex-start; }
.pstep__no { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--crimson-soft); border: 1px solid var(--crimson-line); color: var(--crimson);
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem; font-weight: 600; }
.pstep__name { font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.3; }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { width: 100%; min-height: 52px; padding: 14px 16px; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field::placeholder { color: #A19893; }
.field:hover { border-color: #C7BEB3; }
.field:focus { outline: none; border-color: var(--crimson); box-shadow: 0 0 0 4px rgba(152,8,60,.12); }
.field[aria-invalid="true"] { border-color: #C0261E; box-shadow: 0 0 0 4px rgba(192,38,30,.10); }
.label { display: block; font-size: .87rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.req { color: #C0261E; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.err { display: none; font-size: .82rem; color: #C0261E; margin-top: 6px; font-weight: 500; }
.err.show { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #14100E; color: rgba(255,255,255,.72); }
.site-footer h2 { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.site-footer .logo-knockout { filter: brightness(0) invert(1); opacity: .92; }
.hairline-gold { height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, rgba(228,176,48,.5), transparent); }
.site-footer nav ul a, .site-footer address a, .contact-card a,
nav[aria-label="Breadcrumb"] a {
  display: inline-flex; align-items: center; min-height: 28px; }
.site-footer nav ul { gap: 4px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee-track { animation: none !important; transform: none !important;
    flex-wrap: wrap; width: 100%; justify-content: center; }
  .js .reveal { opacity: 1; transform: none; }
  .frame-zoom:hover > img { transform: none; }
  .fabric { display: none; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
  .masthead, .marquee, video, .fabric { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .section { padding-block: 16px; }
}

/* Subpages have no hero, so their content must clear the fixed bar. */
.page-offset { padding-top: var(--nav-h); }

/* Live Rate sits with the CTA rather than in the pill group — it is a
   destination, not a section anchor, and it keeps the group clear of the
   centred logo. */
.nav-rate {
  display: none; align-items: center; gap: 7px;
  padding: 11px 16px; border-radius: var(--r-pill);
  font-size: .855rem; font-weight: 600; white-space: nowrap;
  color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.28);
  transition: color .25s var(--ease), border-color .25s var(--ease),
              background-color .25s var(--ease);
}
@media (min-width: 1280px) { .nav-rate { display: inline-flex; } }
.nav-rate:hover { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.masthead.is-stuck .nav-rate { color: var(--ink); border-color: var(--line-strong); }
.masthead.is-stuck .nav-rate:hover { color: var(--crimson); border-color: var(--crimson); background: var(--crimson-soft); }
