/* ==========================================================================
   Sangam Steels India — v3 design system
   Calm, international B2B. One accent, generous space, slow easing.
   Loaded standalone (no Tailwind dependency).
   ========================================================================== */

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* ground */
  --bg:        #F6F7F5;
  --bg-2:      #EEF1EF;
  --surface:   #FFFFFF;
  --surface-2: #F9FAF9;

  /* ink */
  --ink:       #101B26;
  --ink-2:     #2F3F4D;
  --muted:     #66788A;
  --faint:     #9AA8B4;

  /* lines */
  --line:      #DFE5E3;
  --line-2:    #EDF1EF;

  /* accent — steel blue, desaturated to sit quietly on the page */
  --accent:     #2C5F8A;
  --accent-2:   #1F4B70;
  /* The accent phrase inside a heading. It is deliberately brighter than
     --accent: against the heading ink (#101B26) the UI accent only reaches
     2.6:1, which reads as the same colour. This sits at 3.9:1 against the
     ink and 4.1:1 against the page, so the two halves are plainly
     different without shouting. */
  --em:         #1E7BCC;
  --em-on-dark: #63ADEA;
  --accent-soft:#E4EDF4;
  --accent-ink: #FFFFFF;

  /* dark band */
  /* Lifted from #0E1B2A. The old value was so close to black that the dark
     bands read as holes in the page rather than as a deep steel blue. White
     text on this still sits at 14.8:1, far above the 4.5:1 requirement, and
     --navy-2 keeps its original step up so the surfaces inside a dark band
     stay lighter than the band itself. */
  --navy:      #16293C;
  --navy-2:    #1D344A;
  --navy-line: rgba(255,255,255,.10);
  --navy-text: #D9E1E8;
  --navy-muted:#8FA0B0;

  /* type */
  /* Google Sans where the device has it (Android, Chrome OS, Workspace
     machines); DM Sans — Google's open stand-in — everywhere else. */
  --font-display: 'Google Sans', 'Google Sans Text', 'Product Sans', 'DM Sans', 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* rhythm */
  --container: none;                 /* full-bleed: content spans the viewport */
  --gutter: clamp(20px, 3.5vw, 72px);
  --section: clamp(72px, 10vw, 140px);
  --radius: 6px;
  --radius-lg: 12px;

  /* motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --dur: .9s;
  --dur-fast: .35s;

  --shadow-sm: 0 1px 2px rgba(16,27,38,.05), 0 1px 3px rgba(16,27,38,.04);
  --shadow-md: 0 8px 24px -8px rgba(16,27,38,.12), 0 2px 6px rgba(16,27,38,.05);
  --shadow-lg: 0 24px 48px -16px rgba(16,27,38,.18), 0 6px 14px -6px rgba(16,27,38,.08);
}

/* ---------- Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: 'tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Typography -------------------------------------------------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -.024em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 4.7vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: .95rem; line-height: 1.4; }
/* Upright, at the heading's own weight — the colour alone carries the
   emphasis, so the phrase stays part of the same sentence. */
.em { font-style: normal; font-weight: inherit; color: var(--em); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 24px; height: 1px; background: currentColor; opacity: .6; }

.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--ink-2); font-weight: 400; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .85em; letter-spacing: .01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Layout ------------------------------------------------------ */
.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.container.narrow { max-width: 820px; }   /* opt-in reading measure */
.container.wide { max-width: none; }
.section { padding: var(--section) 0; position: relative; }
.section.tight { padding: calc(var(--section) * .6) 0; }
.section.tint { background: var(--bg-2); }
.section.white { background: var(--surface); }
.section.navy { background: var(--navy); color: var(--navy-text); }
.section.navy h1, .section.navy h2, .section.navy h3, .section.navy h4 { color: #fff; }
.section.navy .muted { color: var(--navy-muted); }
.section.navy .eyebrow { color: #9FC4E3; }
.section.navy .lede { color: var(--navy-text); }
.section.navy .em { color: var(--em-on-dark); }

.sec-head { max-width: 72ch; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 20px; }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; }
.sec-head.split p { margin-top: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid.sidebar { grid-template-columns: 240px minmax(0, 1fr); align-items: start; }
.grid.form-layout { grid-template-columns: 1.3fr .7fr; align-items: start; }
.stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.sticky-col { position: sticky; top: 110px; }
.gap-lg { gap: 40px; }
.gap-xl { gap: clamp(40px, 6vw, 96px); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.rule.draw { transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.rule.draw.in { transform: scaleX(1); }

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em; line-height: 1;
  border: 1px solid transparent;
  transition: background var(--dur-fast) var(--ease-soft), color var(--dur-fast) var(--ease-soft),
              border-color var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft),
              box-shadow var(--dur-fast) var(--ease-soft);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-soft); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .82rem; }
.btn-lg { padding: 18px 32px; font-size: .95rem; }
.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: .9rem; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color var(--dur-fast), gap var(--dur-fast);
}
.link svg { width: 14px; height: 14px; }
.link:hover { border-color: currentColor; gap: 12px; }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .5s var(--ease-soft), box-shadow .5s var(--ease-soft), transform .5s var(--ease);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  height: 84px;
  transition: height .4s var(--ease-soft);
}
.site-header.scrolled { background: rgba(246,247,245,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .bar { height: 68px; }
/* The header no longer retracts on scroll; it stays pinned to the top. */
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; transition: height .4s var(--ease-soft); }
.site-header.scrolled .brand img { height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  border-radius: 999px; transition: color var(--dur-fast), background var(--dur-fast);
}
.nav a:hover { color: var(--ink); background: rgba(16,27,38,.05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px; background: var(--accent);
}
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.hdr-actions .phone { font-size: .85rem; color: var(--ink-2); font-weight: 500; padding: 8px 12px; white-space: nowrap; }
.hdr-actions .phone:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; }
.menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s, background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Header on dark hero (transparent state) */
.site-header.on-dark:not(.scrolled) .nav a { color: rgba(255,255,255,.82); }
.site-header.on-dark:not(.scrolled) .nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.site-header.on-dark:not(.scrolled) .nav a[aria-current="page"] { color: #fff; }
.site-header.on-dark:not(.scrolled) .nav a[aria-current="page"]::after { background: #fff; }
.site-header.on-dark:not(.scrolled) .hdr-actions .phone { color: rgba(255,255,255,.85); }
.site-header.on-dark:not(.scrolled) .brand img { filter: brightness(0) invert(1); }
.site-header.on-dark:not(.scrolled) .menu-btn span,
.site-header.on-dark:not(.scrolled) .menu-btn span::before,
.site-header.on-dark:not(.scrolled) .menu-btn span::after { background: #fff; }
.site-header.on-dark:not(.scrolled) .menu-btn[aria-expanded="true"] span { background: transparent; }
.site-header.on-dark:not(.scrolled) .btn-primary { background: #fff; color: var(--ink); }
.site-header.on-dark:not(.scrolled) .btn-primary:hover { background: var(--accent-soft); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 48px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease-soft), transform .5s var(--ease), visibility 0s .4s;
}
.drawer.open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drawer a.item {
  display: block; padding: 14px 0; font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.drawer.open a.item { opacity: 1; transform: none; }
.drawer.open a.item:nth-child(1) { transition-delay: .05s }
.drawer.open a.item:nth-child(2) { transition-delay: .10s }
.drawer.open a.item:nth-child(3) { transition-delay: .15s }
.drawer.open a.item:nth-child(4) { transition-delay: .20s }
.drawer.open a.item:nth-child(5) { transition-delay: .25s }
.drawer.open a.item:nth-child(6) { transition-delay: .30s }
.drawer .foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body.menu-open { overflow: hidden; }

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end;
  background: var(--navy); color: #fff; overflow: hidden;
  padding: 160px 0 clamp(48px, 6vw, 88px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1.06); animation: kenburns 18s var(--ease-soft) forwards;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,41,60,.55) 0%, rgba(22,41,60,.25) 35%, rgba(22,41,60,.72) 78%, rgba(22,41,60,.92) 100%),
    linear-gradient(90deg, rgba(22,41,60,.55) 0%, rgba(22,41,60,.15) 60%);
}
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: rgba(255,255,255,.82); max-width: 56ch; margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta {
  margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.hero-meta .k { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; color: #fff; letter-spacing: -.02em; }
.hero-meta .k small { font-size: .55em; color: rgba(255,255,255,.7); margin-left: 3px; font-family: var(--font-body); }
.hero-meta .l { margin-top: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.hero .eyebrow { color: rgba(255,255,255,.8); }

/* staged hero entrance */
.hero [data-stage] { opacity: 0; transform: translateY(22px); animation: rise 1.1s var(--ease) forwards; }
.hero [data-stage="1"] { animation-delay: .15s }
.hero [data-stage="2"] { animation-delay: .30s }
.hero [data-stage="3"] { animation-delay: .45s }
.hero [data-stage="4"] { animation-delay: .60s }
.hero [data-stage="5"] { animation-delay: .85s }
@keyframes rise { to { opacity: 1; transform: none; } }

/* page hero (interior) */
/* ---------- Page masthead (interior pages) ------------------------------
   A dark band rather than a white one: the stockyard photograph sits well
   back behind a navy gradient so the masthead carries some material without
   competing with the heading. The breadcrumb runs along the top in its own
   strip; the heading and its supporting paragraph then share the width.
   Markup is unchanged — children are placed by named grid areas. */
.page-hero {
  position: relative;
  padding: clamp(112px, 9.5vw, 146px) 0 clamp(52px, 5.5vw, 82px);
  background: var(--navy);
  color: var(--navy-text);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: url("../img/catalog/v2/mill-photo-9.jpg") center right / cover no-repeat;
  opacity: .2;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy) 0%, var(--navy) 32%, rgba(22,41,60,.78) 60%, rgba(22,41,60,.52) 100%),
    radial-gradient(880px 420px at 84% -10%, rgba(44,95,138,.42) 0%, transparent 72%);
}
.page-hero .container { position: relative; z-index: 2; }

/* Two-column masthead. Skipped on the grade page, which injects its own
   .split layout inside the hero, and on any browser without :has() — both
   fall back to a single column. */
.page-hero .container:not(:has(> .split)) {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  grid-template-areas:
    "crumbs  crumbs"
    "eyebrow lede"
    "title   lede"
    "actions lede"
    "media   media";
  column-gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.page-hero .crumbs       { grid-area: crumbs; }
.page-hero .eyebrow      { grid-area: eyebrow; }
.page-hero h1            { grid-area: title; max-width: 17ch; }
.page-hero .lede         { grid-area: lede; align-self: center; margin-top: 0; max-width: 46ch; }
.page-hero .hero-actions { grid-area: actions; }
.page-hero .media        { grid-area: media; }

/* A page with no supporting paragraph keeps one column rather than a gap. */
.page-hero .container:not(:has(> .split)):not(:has(.lede)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "crumbs" "eyebrow" "title" "actions" "media";
}

/* Type and controls inverted for the dark band. */
.page-hero h1 { color: #fff; }
.page-hero .em { color: var(--em-on-dark); }
/* the home hero sits on a photograph, so it takes the dark-ground accent too */
.hero .em { color: var(--em-on-dark); }
.page-hero .eyebrow { color: #9FC4E3; }
.page-hero .lede, .page-hero p { color: var(--navy-text); }
.page-hero .muted { color: var(--navy-muted); }
.page-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.34); }
.page-hero .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.page-hero.has-media { padding-bottom: 0; }
.page-hero .media { width: 100%; margin-top: clamp(40px, 5vw, 64px); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; aspect-ratio: 21/8; max-height: min(64vh, 620px); }
.page-hero .media img { width: 100%; height: 100%; object-fit: cover; }

/* Breadcrumb strip */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { transition: color var(--dur-fast); }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: '/'; margin-right: 8px; color: var(--faint); }
.page-hero .crumbs {
  margin: 0 0 clamp(30px, 3.4vw, 48px);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--navy-line);
  color: var(--navy-muted);
}
.page-hero .crumbs a { color: var(--navy-muted); }
.page-hero .crumbs a:hover { color: #fff; }
.page-hero .crumbs span::before { color: rgba(255,255,255,.28); }
.page-hero .crumbs span:last-child { color: #fff; }

/* Stacked masthead on narrow screens. */
@media (max-width: 900px) {
  .page-hero .container:not(:has(> .split)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "crumbs" "eyebrow" "title" "lede" "actions" "media";
  }
  .page-hero h1 { max-width: 20ch; }
  .page-hero .lede { align-self: start; margin-top: 18px; max-width: 60ch; }
  .page-hero::after {
    background:
      linear-gradient(180deg, rgba(22,41,60,.92) 0%, rgba(22,41,60,.8) 55%, rgba(22,41,60,.92) 100%),
      radial-gradient(600px 360px at 90% 0%, rgba(44,95,138,.36) 0%, transparent 72%);
  }
}


/* ---------- Reveal on scroll ------------------------------------------- */
.r { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); will-change: opacity, transform; }
.r.in { opacity: 1; transform: none; }
.r-img { opacity: 0; transform: scale(1.03); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), filter 1.1s var(--ease); }
.r-img.in { opacity: 1; transform: none; filter: blur(0); }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(1) { transition-delay: .00s }
.stagger.in > *:nth-child(2) { transition-delay: .08s }
.stagger.in > *:nth-child(3) { transition-delay: .16s }
.stagger.in > *:nth-child(4) { transition-delay: .24s }
.stagger.in > *:nth-child(5) { transition-delay: .32s }
.stagger.in > *:nth-child(6) { transition-delay: .40s }
.stagger.in > *:nth-child(7) { transition-delay: .48s }
.stagger.in > *:nth-child(8) { transition-delay: .56s }
.stagger.in > *:nth-child(9) { transition-delay: .64s }
.stagger.in > *:nth-child(10) { transition-delay: .72s }

/* ---------- Marquee ----------------------------------------------------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 0; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-item::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); opacity: .6; }
.marquee-item b { color: var(--ink); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; position: relative; overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .num { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem; color: var(--faint); line-height: 1; margin-bottom: 20px; letter-spacing: -.02em; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.card .ico svg { width: 22px; height: 22px; }
.card.navy { background: var(--navy-2); border-color: var(--navy-line); color: var(--navy-text); }
.card.navy h3 { color: #fff; } .card.navy p { color: var(--navy-muted); }
.card.navy .ico { background: rgba(255,255,255,.08); color: #9FC4E3; }
.card.navy:hover { border-color: rgba(255,255,255,.2); box-shadow: 0 24px 48px -16px rgba(0,0,0,.5); }

/* material card (image top) */
.mat {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.mat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.mat .img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); max-height: 560px; }
.mat .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mat:hover .img img { transform: scale(1.04); }
.mat .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mat h3 { font-size: 1.3rem; font-family: var(--font-display); font-weight: 500; letter-spacing: -.02em; }
.mat .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); font-size: .75rem; font-weight: 500; letter-spacing: .02em; }
.tag.accent { background: var(--accent-soft); color: var(--accent-2); }
.mat .body .link { margin-top: auto; }

/* feature list with rules */
.list-rules > * { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; }
.list-rules > *:last-child { border-bottom: 1px solid var(--line); }
.list-rules .n { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--faint); padding-top: 2px; }
.list-rules h3 { margin-bottom: 8px; }
.list-rules p { color: var(--muted); font-size: .95rem; max-width: 60ch; }
.section.navy .list-rules > * { border-color: var(--navy-line); }
.section.navy .list-rules .n { color: #6E8399; }
.section.navy .list-rules p { color: var(--navy-muted); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stats > * { padding: 36px 32px; border-right: 1px solid var(--line); }
.stats > *:last-child { border-right: 0; }
.stats .k { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1; letter-spacing: -.024em; }
.stats .k small { font-family: var(--font-body); font-size: .45em; color: var(--muted); margin-left: 4px; font-weight: 500; }
.stats .l { margin-top: 10px; font-size: .8rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* two-column editorial */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; max-height: min(78vh, 860px); }
.split .img.wide { aspect-ratio: 4/3; }
.split .img img { width: 100%; height: 100%; object-fit: cover; }
.split .copy p + p { margin-top: 16px; }
.split .copy .lede { margin-top: 20px; }
/* ---- founder feature ---------------------------------------------------
   Leadership block on the About page. The portrait asset is a 400x400
   studio crop, so it is presented as a credential card at its native
   aspect rather than stretched into a full-bleed editorial frame.        */
/* Portrait sits on the right of the section; the markup keeps the card
   first so the reading order is unchanged. */
.founder { display: grid; grid-template-columns: 1fr minmax(340px, 460px); gap: clamp(40px, 5.5vw, 88px); align-items: start; }
.founder-card { grid-column: 2; grid-row: 1; }
.founder-body { grid-column: 1; grid-row: 1; }

.founder-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.founder-card .shot { aspect-ratio: 4 / 5; background: var(--bg-2); }
.founder-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.founder-card .id { padding: 20px 22px 18px; }
.founder-card .rl { display: block; font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.founder-card .nm { display: block; margin-top: 7px; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.founder-card dl { margin: 0; border-top: 1px solid var(--line-2); }
.founder-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 11px 22px; border-bottom: 1px solid var(--line-2); font-size: .82rem; }
.founder-card dl > div:last-child { border-bottom: 0; }
.founder-card dt { color: var(--muted); letter-spacing: .03em; white-space: nowrap; }
.founder-card dd { margin: 0; color: var(--ink-2); font-weight: 500; text-align: right; }

.founder-body > .lede { margin-top: 20px; }
.founder-body p + p { margin-top: 16px; }

/* pull quote — display weight, used once per page */
.pull { position: relative; margin-top: 36px; padding: 26px 30px 24px 32px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.pull::before { content: "\201D"; position: absolute; top: -4px; right: 16px; font-family: var(--font-display); font-size: 5rem; line-height: 1; color: var(--accent-soft); pointer-events: none; user-select: none; }
.pull p { position: relative; font-family: var(--font-display); font-style: italic; font-size: clamp(1.08rem, 1.65vw, 1.38rem); line-height: 1.5; color: var(--ink); }
.pull cite { display: block; margin-top: 18px; font-style: normal; font-size: .82rem; color: var(--muted); }
.pull cite b { color: var(--ink-2); font-weight: 500; }

.copy p { color: var(--ink-2); }

/* pull quote */
.quote { position: relative; padding-left: 28px; border-left: 2px solid var(--accent); }
.quote p { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--ink); font-style: italic; }
.quote cite { display: block; margin-top: 16px; font-style: normal; font-size: .85rem; color: var(--muted); }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line); }
.section.navy .steps::before { background: var(--navy-line); }
.step { padding: 0 24px 0 0; position: relative; }
.step .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: .75rem; font-weight: 600; color: var(--accent); position: relative; z-index: 1; margin-bottom: 22px; }
.section.navy .step .dot { background: var(--navy-2); border-color: var(--navy-line); color: #9FC4E3; }
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl { position: relative; padding-bottom: 40px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ''; position: absolute; left: -30px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.section.tint .tl::before { box-shadow: 0 0 0 4px var(--bg-2); }
.tl .when { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.tl h3 { margin-bottom: 8px; }
.tl p { color: var(--muted); max-width: 60ch; }

/* comparison table (cost model) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { text-align: right; }
td.strong { font-weight: 600; color: var(--ink); }
td .ok { color: #2F7A5A; font-weight: 600; }
tfoot td { background: var(--surface-2); font-weight: 600; }

/* grade table */
.grades-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 4px; }
.seg button { padding: 8px 16px; border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; min-width: 260px; }
.search input { border: 0; outline: 0; font: inherit; font-size: .9rem; width: 100%; background: transparent; color: var(--ink); }
.search svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.grade-row td:first-child { font-weight: 600; white-space: nowrap; }
.grade-row td:first-child a { color: var(--accent); }
.grade-row td:first-child a:hover { text-decoration: underline; }
.grade-row .eq { color: var(--muted); font-size: .85rem; }
.grade-row .eq b { color: var(--ink-2); font-weight: 500; }

/* industries */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ind { background: var(--surface); padding: 32px; transition: background .5s var(--ease-soft); }
.ind:hover { background: var(--surface-2); }
.ind h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ind p { color: var(--muted); font-size: .9rem; }
.ind .ico { color: var(--accent); margin-bottom: 18px; }
.ind .ico svg { width: 24px; height: 24px; }

/* Each sector card opens with a photograph of the work it stands for. The
   icon sits on the image as a small plate so the card keeps its landmark. */
.ind { position: relative; padding: 0; display: flex; flex-direction: column; }
.ind-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.ind-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ind:hover .ind-photo img { transform: scale(1.05); }
.ind-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,41,60,0) 45%, rgba(22,41,60,.42) 100%);
}
/* Kept in normal flow and pulled up, so the plate always meets the bottom
   of its own photograph whatever the card width. */
.ind > .ico {
  position: relative; z-index: 2;
  width: 44px; height: 44px; margin: -22px 0 0 20px; border-radius: 12px;
  background: var(--surface); color: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.ind h3 { margin: 16px 24px 6px; }
.ind p { margin: 0 24px 26px; }

/* Certification band: the mark beside the claim it stands for. */
.cert { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.cert-mark { display: grid; place-items: center; padding: clamp(18px, 2.4vw, 30px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.cert-mark img { width: 100%; height: auto; max-width: 200px; display: block; }
.cert-body .lede { margin-top: 18px; }
.cert-facts { margin: clamp(26px, 3vw, 34px) 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.cert-facts > div { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem; }
.cert-facts dt { color: var(--muted); }
.cert-facts dd { margin: 0; color: var(--ink-2); font-weight: 500; }

@media (max-width: 820px) {
  .cert { grid-template-columns: 1fr; gap: 28px; }
  .cert-mark { justify-self: start; max-width: 200px; }
  .cert-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .cert-facts dt { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
}

/* image strip */
.strip { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.strip .img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; }
.strip .img:first-child { grid-row: span 2; aspect-ratio: auto; }
.strip .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.strip .img:hover img { transform: scale(1.04); }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.cta .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: var(--section); padding-bottom: var(--section); }
.cta h2 { color: #fff; }
.cta p { color: var(--navy-text); margin-top: 18px; max-width: 50ch; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta::before {
  content: ''; position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(60% 60% at 80% 30%, rgba(44,95,138,.5), transparent 70%);
  animation: drift 24s var(--ease-soft) infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-6%, 4%, 0); } }

/* ---------- Forms ------------------------------------------------------- */
.form { display: grid; gap: 18px; max-width: 1080px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; font-size: .9rem; }
.checks label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.checks input { accent-color: var(--accent); width: 16px; height: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; outline: 0; transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366788A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field [aria-invalid="true"] { border-color: #B54747; }
.field .err { font-size: .78rem; color: #B54747; display: none; }
.field [aria-invalid="true"] ~ .err { display: block; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-ok { padding: 24px; border-radius: var(--radius-lg); background: var(--accent-soft); color: var(--accent-2); display: none; }
.form-ok.show { display: block; }
.line-items { display: grid; gap: 10px; }
.line-item { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 10px; align-items: end; }
.line-item .rm { width: 42px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: color .3s, border-color .3s; }
.line-item .rm:hover { color: #B54747; border-color: #B54747; }
.line-item .rm svg { width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }

/* contact info list */
.info { display: grid; gap: 22px; }
.info > * { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.info .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.info .ico svg { width: 18px; height: 18px; }
.info h4 { margin-bottom: 4px; }
.info p, .info a { color: var(--muted); font-size: .95rem; }
.info a:hover { color: var(--ink); }

/* ---------- Footer ------------------------------------------------------ */
.site-footer { background: var(--navy); color: var(--navy-text); padding: clamp(56px, 7vw, 96px) 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--navy-line); }
.site-footer .brand img { height: 46px; filter: brightness(0) invert(1); opacity: .95; }
.site-footer .about { margin-top: 20px; color: var(--navy-muted); font-size: .9rem; max-width: 36ch; }
.site-footer h4 { color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; font-size: .9rem; }
.site-footer li a { color: var(--navy-muted); transition: color .3s; }
.site-footer li a:hover { color: #fff; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: .78rem; color: var(--navy-muted); }
.site-footer .bottom a { color: var(--navy-muted); } .site-footer .bottom a:hover { color: #fff; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Utilities --------------------------------------------------- */
.mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 32px } .mt-5 { margin-top: 48px } .mt-6 { margin-top: 64px }
.mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px } .mb-4 { margin-bottom: 32px }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; top: -60px; left: 16px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius); transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.prose { max-width: 82ch; }
.prose h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; margin-bottom: 8px; }
.prose p { color: var(--ink-2); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.toc { position: sticky; top: 100px; font-size: .88rem; }
.toc a { display: block; padding: 6px 0; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.active { color: var(--ink); border-color: var(--accent); }

/* scroll progress (subtle) */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 110; transform-origin: left; transform: scaleX(0); background: var(--accent); opacity: .7; pointer-events: none; }

/* ---------- Responsive --------------------------------------------------
   Ladder: 1280 · 1080 · 900 · 768 · 600 · 420, plus short-landscape and
   touch-pointer rules. Everything above 1280 is handled by the fluid
   clamp() tokens, so there is no upper breakpoint.
   ------------------------------------------------------------------------ */

/* Small desktop / large tablet landscape */
@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .site-header .bar { gap: 20px; }
  .nav a { padding: 10px 11px; font-size: .87rem; }
  .cta .container { grid-template-columns: 1fr .85fr; gap: 40px; }
  .toc { top: 92px; }
}

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hdr-actions .phone { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .stats, .stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .stats > *:nth-child(2) { border-right: 0; }
  .stats > *:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid.form-layout { grid-template-columns: 1fr; }
  .form { max-width: none; }
}

/* Tablet landscape — primary navigation folds into the drawer */
@media (max-width: 900px) {
  .nav, .hdr-actions .phone { display: none; }
  .menu-btn { display: inline-flex; }
  .hdr-actions .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .img { aspect-ratio: 4/3; order: -1; max-height: 52vh; }
  .founder { grid-template-columns: 1fr; gap: 34px; }
  .founder-card { grid-column: 1; grid-row: 2; max-width: 380px; }
  .founder-body { grid-column: 1; grid-row: 1; }
  .sec-head.split { grid-template-columns: 1fr; gap: 16px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip .img:first-child { grid-column: span 2; aspect-ratio: 16/9; grid-row: auto; }
  .cta .container { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .line-item { grid-template-columns: 1fr 1fr; }
  .line-item .rm { grid-column: span 2; width: 100%; height: 40px; }
  .page-hero { padding-top: 130px; }
  .hero { padding-top: 130px; }
  .sticky-col { position: static; }

  /* legal pages: sidebar contents become a chip row above the text */
  .grid.sidebar { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .toc a { padding: 8px 14px; border: 1px solid var(--line); border-left-width: 1px; border-radius: 999px; background: var(--surface); }
  .toc a:hover, .toc a.active { border-color: var(--accent); }
}

/* Tablet portrait */
@media (max-width: 768px) {
  :root { --section: clamp(56px, 9vw, 104px); }
  .page-hero { padding-top: 120px; padding-bottom: clamp(36px, 6vw, 64px); }
  .hero { padding-top: 120px; }
  .page-hero .media { max-height: 44vh; }
  .quote { padding-left: 20px; }
  .timeline { padding-left: 26px; }
  .list-rules > * { padding: 24px 0; }
  .ind { padding: 26px; }
  /* 16px keeps iOS from zooming the viewport when a field takes focus */
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* Large phones */
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; }
  .stats, .stats.cols-2 { grid-template-columns: 1fr; }
  .stats > * { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 22px; }
  .stats > *:last-child { border-bottom: 0; }
  .list-rules > * { grid-template-columns: 1fr; gap: 8px; }
  .card { padding: 24px; }
  .hero-meta .k { font-size: 1.5rem; }
  .strip { grid-template-columns: 1fr; }
  .strip .img:first-child { grid-column: auto; }
  .split .img { max-height: 46vh; }
  .founder-card { max-width: none; }
  .pull { padding: 22px 20px 20px 22px; }
  .pull::before { right: 12px; font-size: 3.6rem; }
  .grades-toolbar { gap: 12px; }
  .seg { width: 100%; }
  .seg button { flex: 1; padding: 9px 10px; }
  .search { min-width: 0; width: 100%; }
  th, td { padding: 12px 14px; }
  .drawer a.item { font-size: 1.65rem; padding: 12px 0; }
  .btn-lg { padding: 15px 24px; font-size: .9rem; }
  .prose h2 { margin-top: 36px; }
}

/* Small phones */
@media (max-width: 420px) {
  .seg button { font-size: .78rem; padding: 9px 6px; }
  .grades-toolbar .muted { font-size: .8rem; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn, .drawer .foot .btn { width: 100%; }
  .hero-meta { gap: 18px; padding-top: 22px; }
  .hero-meta .k { font-size: 1.4rem; }
  .hero-meta .l { font-size: .7rem; }
  .btn { padding: 13px 20px; }
  .card, .ind { padding: 22px; }
  .eyebrow { letter-spacing: .13em; margin-bottom: 16px; }
  .site-footer .legal { gap: 14px; }
  .crumbs { flex-wrap: wrap; }
  .line-item { grid-template-columns: 1fr; }
  .line-item .rm { grid-column: auto; }
  .checks label { white-space: normal; }
}

/* Phones held sideways — the hero must not fill more than the screen */
@media (max-height: 540px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: 104px; padding-bottom: 40px; }
  .hero-meta { margin-top: 24px; padding-top: 18px; }
  .page-hero { padding-top: 104px; }
  /* the menu goes two-up so the call-to-action stays on screen */
  .drawer { display: grid; grid-template-columns: 1fr 1fr; align-content: start; column-gap: 28px; padding-top: 76px; overflow-y: auto; }
  .drawer a.item { font-size: 1.25rem; padding: 8px 0; }
  .drawer .foot { grid-column: span 2; margin-top: 18px; }
  .split .img, .page-hero .media { max-height: 70vh; }
}

/* Touch pointers: no hover states left stuck after a tap */
@media (hover: none) {
  .card:hover, .mat:hover { transform: none; box-shadow: none; border-color: var(--line); }
  .card.navy:hover { border-color: var(--navy-line); box-shadow: none; }
  .btn-primary:hover, .btn-ghost:hover, .btn-light:hover { transform: none; box-shadow: none; }
  .mat:hover .img img, .strip .img:hover img { transform: none; }
  .btn:hover svg { transform: none; }
  .link:hover { gap: 8px; }
  .ind:hover { background: var(--surface); }
  .marquee:hover .marquee-track { animation-play-state: running; }
  .toc a { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- Reduced motion --------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r, .r-img, .stagger > *, .hero [data-stage] { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .hero-media img, .hero-media video { animation: none !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .rule.draw { transform: none !important; }
  .cta::before { animation: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ---------- v5 additions: solid header, hero watermark, ENQUIRE, RFQ states ---------- */
/* Home page header: a light bar from the start so the logo shows in its own colours
   and sits on the same background as every other page (no white inversion). */
.site-header.solid { background: rgba(246,247,245,.94); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .brand img { filter: none; }
.site-header.solid .brand img, .site-header .brand img { height: 50px; }
.site-header.scrolled .brand img { height: 42px; }

/* Watermark: large, faint brand mark laid over the hero photograph. */
.hero-watermark {
  position: absolute; right: -2%; bottom: 8%; z-index: 0; pointer-events: none;
  width: min(34vw, 460px); opacity: .10; filter: brightness(0) invert(1);
  transform: rotate(-4deg);
}
.hero-watermark-text {
  position: absolute; left: 0; right: 0; bottom: 8px; z-index: 0; pointer-events: none; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 9vw, 8rem); line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; text-align: center;
  color: rgba(255,255,255,.05); user-select: none;
}
@media (max-width: 720px) { .hero-watermark { width: 54vw; right: -8%; bottom: 14%; opacity: .08; } }

/* Grade table: ENQUIRE action */
.link.enquire { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }

/* Materials page: grade list only appears after a category is chosen */
#grades[hidden] { display: none; }
.grades-back { margin-bottom: 20px; }

/* RFQ form states */
.form-err { padding: 16px 20px; border-radius: var(--radius-lg); background: #FDECEC; color: #8A1C1C; display: none; margin-top: 16px; font-size: .9rem; }
.form-err.show { display: block; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- v6: two-line brand lockup ----------------------------------
   The supplied logo stacks SANGAM over STEELS INDIA, so it needs a little
   more height than the previous single-line mark to stay legible. These
   caps keep it from crowding the actions on small screens. */
@media (max-width: 600px) {
  .site-header.solid .brand img, .site-header .brand img { height: 42px; }
  .site-header.scrolled .brand img { height: 36px; }
  .site-footer .brand img { height: 40px; }
}
@media (max-width: 380px) {
  .site-header.solid .brand img, .site-header .brand img { height: 36px; }
  .site-header.scrolled .brand img { height: 32px; }
}

/* Anchor links land below the pinned header rather than under it. */
@media (max-width: 600px) { html { scroll-padding-top: 86px; } }

/* ---------- Footer: social links --------------------------------------- */
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-social a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 12px; border-radius: 999px;
  border: 1px solid var(--navy-line); color: var(--navy-muted);
  font-size: .82rem; font-weight: 500; letter-spacing: .01em;
  transition: color .35s var(--ease-soft), border-color .35s var(--ease-soft),
              background .35s var(--ease-soft), transform .35s var(--ease);
}
.footer-social a svg { width: 17px; height: 17px; }
.footer-social a:hover {
  color: #fff; border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.06); transform: translateY(-1px);
}

/* ---------- Certification band (home) ---------------------------------- */
.cert-band {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(150px, 210px) 1fr;
  gap: clamp(26px, 4vw, 56px); align-items: center;
  padding: clamp(26px, 3.4vw, 44px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  text-align: left;
}
.cert-band-mark {
  display: grid; place-items: center; padding: 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius);
}
.cert-band-mark img { width: 100%; height: auto; max-width: 170px; display: block; }
.cert-band-body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 8px; }
.cert-band-body p { margin-top: 12px; color: var(--ink-2); max-width: 62ch; }
.cert-band-body .link { margin-top: 18px; }

@media (max-width: 860px) {
  .cert-band { grid-template-columns: 1fr; gap: 24px; }
  .cert-band-mark { justify-self: start; width: min(170px, 60%); }
}

/* ==========================================================================
   Services — "What is included"
   A ledger line that resolves seven cost elements into one rate, then seven
   cards that rise, draw an accent rail and settle. Everything degrades to a
   plain readable grid without JS, and stops moving under reduced motion.
   ========================================================================== */
.incl-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 62%, var(--bg-2) 100%);
}
.incl-section > .container { position: relative; z-index: 1; }

/* ---- ledger line: seven → one ---- */
.incl-ledger {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px);
  margin-top: clamp(32px, 4vw, 48px);
  padding: 16px clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: .9rem; color: var(--muted); width: fit-content;
}
.incl-ledger-arrow { display: inline-flex; color: var(--accent); }
.incl-ledger-arrow svg { width: 20px; height: 20px; animation: incl-nudge 2.6s var(--ease-soft) infinite; }
.incl-ledger-out { color: var(--ink); }
.incl-ledger-out b { font-weight: 600; }
@keyframes incl-nudge {
  0%, 62%, 100% { transform: translateX(0); }
  78%           { transform: translateX(5px); }
}

/* ---- the seven cards ---- */
.incl-grid {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: grid; gap: clamp(16px, 1.8vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.incl {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.incl:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #CBD8DF; }

.incl-ghost {
  position: absolute; top: -14px; right: 4px; z-index: -1;
  font-family: var(--font-display); font-size: 6.4rem; font-weight: 600;
  line-height: 1; letter-spacing: -.04em; color: var(--accent);
  opacity: .05; transition: opacity .6s var(--ease), transform .8s var(--ease);
}
.incl:hover .incl-ghost { opacity: .1; transform: translateY(4px); }

.incl-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.incl-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft), transform .6s var(--ease);
}
.incl-ico svg { width: 21px; height: 21px; }
.incl:hover .incl-ico { background: var(--accent); color: #fff; transform: rotate(-6deg) scale(1.06); }
.incl-n {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  color: var(--faint); font-variant-numeric: tabular-nums;
}

.incl h3 { margin-top: 20px; font-size: 1.08rem; }
.incl p { margin-top: 10px; color: var(--ink-2); font-size: .94rem; }

.incl-tag {
  display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 18px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: .78rem; font-weight: 500; line-height: 1.3;
}
.incl-tag svg { width: 13px; height: 13px; flex: none; }

.incl-rail {                            /* accent rail draws left-to-right on reveal */
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(44,95,138,.15));
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i, 1) * 70ms + 160ms);
}
.incl-grid.in .incl-rail { transform: scaleX(1); }

.incl-foot { margin-top: clamp(26px, 3vw, 36px); color: var(--muted); font-size: .92rem; }
.incl-foot .link { margin-left: 6px; }

@media (max-width: 640px) {
  .incl-ledger { width: 100%; justify-content: center; text-align: center; border-radius: var(--radius-lg); }
  .incl-ghost { font-size: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .incl, .incl-ico, .incl-ghost, .incl-rail { transition: none !important; }
  .incl:hover { transform: none; }
  .incl:hover .incl-ico { transform: none; }
  .incl:hover .incl-ghost { transform: none; }
  .incl-rail { transform: scaleX(1); }
  .incl-ledger-arrow svg { animation: none; }
}

/* ==========================================================================
   Contact — find us / map
   ========================================================================== */
.mapbox {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm);
}
.mapbox-panel { padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; }
.mapbox-panel h3 { font-size: 1.15rem; }
.mapbox-panel address { margin-top: 10px; font-style: normal; color: var(--ink-2); line-height: 1.7; }

.mapbox-facts { margin: clamp(22px, 2.6vw, 28px) 0 0; display: grid; border-top: 1px solid var(--line-2); }
.mapbox-facts > div { padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.mapbox-facts dt { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.mapbox-facts dd { margin: 3px 0 0; color: var(--ink-2); }

.mapbox-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(22px, 2.6vw, 28px); }
.mapbox-actions .btn svg { width: 16px; height: 16px; }
.mapbox-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

.mapbox-map { position: relative; min-height: 340px; background: var(--bg-2); border-left: 1px solid var(--line); }
.mapbox-map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: saturate(.62) contrast(.96);
  transition: filter .6s var(--ease-soft);
}
.mapbox-map:hover iframe { filter: saturate(1) contrast(1); }

.mapbox-expand {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 999px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line);
  color: var(--ink); font-size: .82rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), background .4s var(--ease-soft), color .4s var(--ease-soft);
}
.mapbox-expand svg { width: 15px; height: 15px; }
.mapbox-expand:hover { transform: translateY(-2px); background: var(--accent); color: #fff; border-color: var(--accent); }

@media (max-width: 900px) {
  .mapbox { grid-template-columns: 1fr; }
  .mapbox-map { border-left: 0; border-top: 1px solid var(--line); min-height: 320px; aspect-ratio: 16/10; }
}
@media (prefers-reduced-motion: reduce) {
  .mapbox-map iframe, .mapbox-expand { transition: none; }
  .mapbox-expand:hover { transform: none; }
}

/* ---------- Materials — documentation panel ---------------------------- */
.spec-docs {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.spec-docs-head { display: flex; align-items: flex-start; gap: 16px; }
.spec-docs-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.spec-docs-ico svg { width: 21px; height: 21px; }
.spec-docs-head h3 { font-size: 1.05rem; }
.spec-docs-head p { margin-top: 6px; color: var(--muted); font-size: .9rem; }

.spec-docs-list {
  margin-top: clamp(20px, 2.4vw, 26px);
  display: grid; gap: 12px 32px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.spec-docs-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; color: var(--ink-2);
}
.spec-docs-list svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--accent); }
.spec-docs-list b { font-weight: 600; color: var(--ink); }
.spec-docs > .link { margin-top: clamp(20px, 2.4vw, 26px); }

@media (max-width: 560px) {
  .spec-docs-head { flex-direction: column; gap: 14px; }
}

/* ---------- Footer: contact list with icons ----------------------------- */
/* The icon is a fixed-width column so every line of text starts on the same
   left edge, including the two-line address and the two phone numbers. */
.site-footer .foot-contact li {
  display: flex; align-items: flex-start; gap: 11px;
  margin-bottom: 14px;
}
.site-footer .foot-contact .ico {
  flex: none; width: 16px; height: 16px; margin-top: 3px;
  color: var(--em-on-dark);
}
.site-footer .foot-contact .ico svg { width: 100%; height: 100%; display: block; }
.site-footer .foot-contact > li > span:last-child { color: var(--navy-muted); }
.site-footer .foot-contact a { display: inline-block; }
