/* ==========================================================================
   MUSTASA CORPORATION — Design System
   --------------------------------------------------------------------------
   Direction : Forged. Serif-led, technical, obsidian-and-brass.
   Discipline: Gold is an ACCENT (~8% of surface), never a fill. The page
               reads on bone/white; obsidian bookends carry the brand.
   Structure : 1. Tokens  2. Reset  3. Primitives  4. Layout  5. Components
               6. Page blocks  7. Motion  8. Responsive  9. Print
   ========================================================================== */

/* ============================ 1. TOKENS ================================== */
:root {
  /* Surfaces — warm blacks derived from the logo's deepest bronze */
  --obsidian:      #12100D;
  --obsidian-2:    #1A1712;
  --obsidian-3:    #24201A;
  --bone:          #F7F5F0;
  --bone-2:        #EFEBE3;
  --white:         #FFFFFF;

  /* Brass — sampled from the logo gradient */
  --gold:          #E8B923;   /* accent on DARK only */
  --gold-core:     #C48106;   /* rules, icon strokes, hover */
  --gold-deep:     #8B5307;   /* gold TEXT on light (6.3:1 on white) */
  --bronze:        #482103;

  /* Ink */
  --ink:           #1A1712;
  --steel:         #6B6558;
  --line:          #E2DCD1;
  --line-strong:   #CFC7B8;
  --line-dark:     rgba(232,185,35,.16);

  /* Type */
  --font-display:  'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body:     'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
  --font-mark:     'Cinzel', Georgia, serif;

  /* Space */
  --container:     1240px;
  --gutter:        clamp(1.25rem, 5vw, 4rem);
  --section:       clamp(5rem, 11vh, 8.5rem);

  /* Form */
  --r-sm: 4px;  --r-md: 10px;  --r-lg: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-soft: 0 18px 44px -22px rgba(26,23,18,.34);
  --shadow-card: 0 32px 70px -34px rgba(26,23,18,.46);
}

/* ============================ 2. RESET =================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold-core); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ============================ 3. PRIMITIVES ============================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--ink);
  text-wrap: balance;
}

/* Eyebrow — the technical signature label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-core); flex: none; }
.eyebrow.center { justify-content: center; }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.on-dark .eyebrow::before, .eyebrow.on-dark::before { background: var(--gold); }

/* Reference code — used wherever content has a real index */
.code {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; color: var(--gold-deep);
}
.on-dark .code { color: var(--gold); }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--steel); max-width: 60ch; }
.on-dark .lede { color: rgba(247,245,240,.72); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--bone); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.75rem;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-gold   { background: var(--gold); color: var(--obsidian); }
.btn-gold:hover { background: #F3C93F; }
.btn-ink    { background: var(--obsidian); color: var(--bone); }
.btn-ink:hover { background: var(--obsidian-3); }
.btn-outline{ border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--obsidian); background: var(--obsidian); color: var(--bone); }
.btn-ghost  { border-color: rgba(247,245,240,.28); color: var(--bone); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(232,185,35,.1); color: var(--gold); }

/* Text link with arrow */
.link-gold {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; font-weight: 600; color: var(--gold-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease);
}
.link-gold svg { width: 15px; height: 15px; }
.link-gold:hover { border-bottom-color: var(--gold-core); gap: .75rem; }
.on-dark .link-gold { color: var(--gold); }
.on-dark .link-gold:hover { border-bottom-color: var(--gold); }

/* ============================ 4. LAYOUT ================================== */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(3rem, 7vh, 5rem); }
.bg-bone { background: var(--bone); }
.bg-dark { background: var(--obsidian); color: var(--bone); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vh, 3.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-top: 1.1rem; }
.section-head p { margin-top: 1.1rem; font-size: 1.06rem; color: var(--steel); }
.on-dark .section-head p { color: rgba(247,245,240,.7); }

/* Technical hairline grid — the recurring industrial texture */
.grid-tex {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right,  rgba(232,185,35,.055) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(to bottom, rgba(232,185,35,.055) 0 1px, transparent 1px 84px);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
}

/* ============================ 5. COMPONENTS ============================== */

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
}
.site-header.scrolled {
  background: rgba(18,16,13,.92);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-dark);
  padding-block: .7rem;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 42px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-mark); font-weight: 600; font-size: 1.12rem;
  letter-spacing: .07em; color: var(--gold);
}
.brand-sub {
  font-family: var(--font-mono); font-size: .53rem; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(247,245,240,.5); margin-top: 4px;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .92rem; font-weight: 500;
  color: rgba(247,245,240,.8); padding-block: .3rem; transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--gold); }

.nav-cta { display: inline-flex; }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--bone); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative; background: var(--obsidian); color: var(--bone);
  padding-top: clamp(9rem, 19vh, 13rem); padding-bottom: clamp(3.5rem, 8vh, 5.5rem);
  overflow: hidden; isolation: isolate;
}
.hero.hero-tall { min-height: 92svh; display: flex; align-items: center; }
.hero-glow {
  position: absolute; z-index: -1; width: min(58vw, 760px); aspect-ratio: 1;
  right: -12%; top: -18%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,185,35,.16) 0%, rgba(232,185,35,.05) 42%, transparent 68%);
}
/* The arc — lifted from the logo's ring, used once, structurally */
.hero-arc {
  position: absolute; z-index: -1; right: -10%; top: 50%; transform: translateY(-50%);
  width: min(52vw, 620px); aspect-ratio: 1; opacity: .5; pointer-events: none;
}
.hero-arc circle { fill: none; stroke: var(--gold); stroke-width: .6; }
.hero-inner { position: relative; z-index: 2; max-width: 60rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.1rem);
  letter-spacing: -.028em; margin-top: 1.6rem;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.9vw, 1.28rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.4rem; }

/* Discipline rail — states the breadth of scope in one line */
.rail {
  position: relative; z-index: 2;
  margin-top: clamp(3rem, 7vh, 4.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: .55rem 1.5rem;
}
.rail li {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(247,245,240,.58);
  display: flex; align-items: center; gap: 1.5rem;
}
.rail li::after { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--gold-core); }
.rail li:last-child::after { display: none; }

/* ---- Page banner (sub-pages) ---- */
.pagehead {
  position: relative; background: var(--obsidian); color: var(--bone);
  padding-top: clamp(8rem, 17vh, 11rem); padding-bottom: clamp(3rem, 7vh, 4.5rem);
  overflow: hidden; isolation: isolate;
}
.pagehead h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); margin-top: 1.1rem; }
.pagehead .lede { margin-top: 1.2rem; }
.crumb {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(247,245,240,.45); margin-bottom: 1.4rem;
}
.crumb a:hover { color: var(--gold); }
.crumb span { color: rgba(247,245,240,.3); margin-inline: .5rem; }

/* ---- Capability Index (SIGNATURE COMPONENT) ----
   A live engineering index: six disciplines, addressable by code.
   Carries the page with zero photography. Becomes a tab set on desktop,
   a stacked list + panel on mobile. */
.cindex { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.cindex-list { border-top: 1px solid var(--line-dark); }
.cix-btn {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.05rem .25rem; text-align: left;
  border-bottom: 1px solid var(--line-dark);
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.cix-btn .code { flex: none; transition: color .25s var(--ease); color: rgba(232,185,35,.55); }
.cix-btn .cix-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  color: rgba(247,245,240,.68); transition: color .25s var(--ease); line-height: 1.3;
}
.cix-btn .cix-arrow { margin-left: auto; width: 16px; height: 16px; opacity: 0; transform: translateX(-6px);
  color: var(--gold); transition: opacity .3s var(--ease), transform .3s var(--ease); flex: none; }
.cix-btn:hover .cix-name { color: var(--bone); }
.cix-btn:hover { padding-left: .75rem; }
.cix-btn.is-active { padding-left: .75rem; background: linear-gradient(90deg, rgba(232,185,35,.09), transparent 70%); }
.cix-btn.is-active .cix-name { color: var(--gold); }
.cix-btn.is-active .code { color: var(--gold); }
.cix-btn.is-active .cix-arrow { opacity: 1; transform: none; }

.cindex-panels { position: relative; }
.cix-panel { display: none; }
.cix-panel.is-active { display: block; animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cix-panel h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: .9rem; color: var(--bone); }
.cix-panel > p { margin-top: 1rem; color: rgba(247,245,240,.72); max-width: 52ch; }
.cix-scope {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .1rem 1.5rem; margin-top: 1.75rem;
}
.cix-scope li {
  position: relative; padding: .55rem 0 .55rem 1.3rem;
  font-size: .93rem; color: rgba(247,245,240,.78);
  border-bottom: 1px solid rgba(232,185,35,.1);
}
.cix-scope li::before {
  content: ""; position: absolute; left: 0; top: 1.05rem;
  width: 6px; height: 1.5px; background: var(--gold-core);
}
.cix-panel .link-gold { margin-top: 1.75rem; }

/* ---- Service cards ---- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.svc-card {
  background: var(--white); padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex; flex-direction: column; min-height: 290px;
  transition: background .35s var(--ease);
}
.svc-card:hover { background: var(--bone); }
.svc-ic {
  width: 42px; height: 42px; color: var(--gold-deep);
  transition: color .3s var(--ease), transform .4s var(--ease);
}
.svc-ic svg { width: 100%; height: 100%; stroke-width: 1.25; }
.svc-card:hover .svc-ic { color: var(--gold-core); transform: translateY(-3px); }
.svc-card .code { margin-top: 1.5rem; display: block; }
.svc-card h3 { font-size: 1.3rem; margin-top: .5rem; }
.svc-card p { margin-top: .75rem; font-size: .95rem; color: var(--steel); }
.svc-card .link-gold { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; }

/* ---- Industries ---- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.ind-cell {
  background: var(--obsidian); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: .9rem;
  transition: background .35s var(--ease);
}
.ind-cell:hover { background: var(--obsidian-2); }
.ind-cell svg { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.25; }
.ind-cell span { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--bone); line-height: 1.3; }

/* ---- Approach (a real sequence — numbering is earned here) ---- */
.approach { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.step { position: relative; padding-top: 2.25rem; border-top: 1.5px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1.5px; left: 0; width: 34px; height: 1.5px; background: var(--gold-core);
}
.step .step-n {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: var(--gold-deep);
}
.step h3 { font-size: 1.2rem; margin-top: .6rem; }
.step p { margin-top: .65rem; font-size: .94rem; color: var(--steel); }
.on-dark .step { border-top-color: var(--line-dark); }
.on-dark .step p { color: rgba(247,245,240,.68); }
.on-dark .step .step-n { color: var(--gold); }

/* ---- Why / split ---- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.reasons { display: flex; flex-direction: column; }
.reason {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.reason:first-child { padding-top: 0; }
.reason .r-ic {
  width: 34px; height: 34px; border: 1.5px solid var(--gold-core); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-deep); margin-top: 3px;
}
.reason .r-ic svg { width: 15px; height: 15px; stroke-width: 2.5; }
.reason h3 { font-size: 1.12rem; }
.reason p { margin-top: .35rem; font-size: .94rem; color: var(--steel); }

/* ---- Spec plate — a fabricated brass plate, drawn not photographed ---- */
.plate {
  position: relative; background: var(--obsidian); color: var(--bone);
  border-radius: var(--r-md); padding: clamp(2rem, 4vw, 2.75rem);
  overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-card);
}
.plate::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line-dark);
  border-radius: 6px; pointer-events: none;
}
.plate-glow {
  position: absolute; z-index: -1; inset: auto -30% -50% auto; width: 300px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232,185,35,.2), transparent 65%);
}
.plate .code { display: block; }
.plate h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-top: .75rem; color: var(--bone); }
.plate-rows { margin-top: 1.75rem; }
.plate-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  padding: .8rem 0; border-bottom: 1px solid rgba(232,185,35,.12);
}
.plate-row:last-child { border-bottom: none; }
.plate-row dt { font-size: .88rem; color: rgba(247,245,240,.6); }
.plate-row dd {
  font-family: var(--font-mono); font-size: .84rem; letter-spacing: .04em;
  color: var(--gold); text-align: right;
}

/* ---- Project cards ---- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.proj-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  background: var(--white); transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.proj-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.proj-media { position: relative; aspect-ratio: 4/3; background: var(--obsidian); overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder state — deliberately technical, never a grey box */
.proj-media.is-empty {
  display: grid; place-items: center; gap: .6rem; text-align: center; padding: 1.5rem;
  background:
    repeating-linear-gradient(135deg, rgba(232,185,35,.05) 0 1px, transparent 1px 12px),
    var(--obsidian);
}
.proj-media.is-empty svg { width: 26px; height: 26px; color: rgba(232,185,35,.5); stroke-width: 1.25; }
.proj-media.is-empty span {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(247,245,240,.42); line-height: 1.7;
}
.proj-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.proj-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.proj-tag {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-deep); border: 1px solid var(--line-strong); border-radius: 100px; padding: .22rem .65rem;
}
.proj-body h3 { font-size: 1.15rem; margin-top: .9rem; }
.proj-body p { margin-top: .6rem; font-size: .92rem; color: var(--steel); }
.proj-meta {
  margin-top: auto; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .35rem 1.25rem;
  font-family: var(--font-mono); font-size: .72rem; color: var(--steel);
}

/* ---- Notice (honest placeholder callout) ---- */
.notice {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem 1.75rem; border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md); background: var(--bone);
}
.notice .n-ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--obsidian); color: var(--gold); display: grid; place-items: center; }
.notice .n-ic svg { width: 20px; height: 20px; stroke-width: 1.5; }
.notice h4 { font-size: 1.02rem; }
.notice p { font-size: .93rem; color: var(--steel); margin-top: .25rem; }

/* ---- Statement band (the tagline lands here, once) ---- */
.statement {
  position: relative; background: var(--obsidian); color: var(--bone);
  padding-block: clamp(5rem, 13vh, 8.5rem); overflow: hidden; isolation: isolate; text-align: center;
}
.statement-mark {
  position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(46vw, 420px); opacity: .07; pointer-events: none;
}
.statement blockquote {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.022em;
  max-width: 20ch; margin-inline: auto; text-wrap: balance;
}
.statement blockquote em { font-style: normal; color: var(--gold); }
.statement p { margin: 1.6rem auto 0; max-width: 48ch; color: rgba(247,245,240,.7); }

/* ---- CTA band ---- */
.cta {
  display: grid; grid-template-columns: 1.3fr auto; gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(2.25rem, 5vw, 3.5rem);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bone);
}
.cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta p { margin-top: .85rem; color: var(--steel); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Form ---- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 600; letter-spacing: .01em; }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  padding: .85rem 1rem; background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: .95rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-core); box-shadow: 0 0 0 3px rgba(232,185,35,.16);
}
.field .hint { font-size: .8rem; color: var(--steel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.form-msg { font-size: .92rem; line-height: 1.5; }
.form-msg[data-state="ok"]    { color: #1F6B3B; }
.form-msg[data-state="error"] { color: #A4322A; }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

/* ---- Contact methods ---- */
.cmethods { display: flex; flex-direction: column; gap: .9rem; }
.cmethod {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem 1.35rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
a.cmethod:hover { border-color: var(--gold-core); transform: translateX(4px); }
.cmethod-ic { flex: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--obsidian); color: var(--gold); display: grid; place-items: center; }
.cmethod-ic svg { width: 20px; height: 20px; stroke-width: 1.5; }
.cmethod .lb { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel); }
.cmethod .vl { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.cmethod .vl.pending { color: var(--steel); font-weight: 400; font-size: .95rem; font-family: var(--font-body); }

/* ---- Footer ---- */
.site-footer { background: var(--obsidian); color: rgba(247,245,240,.62); padding-block: clamp(3.5rem, 8vh, 5rem) 2rem; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem;
  padding-bottom: 2.75rem; border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { width: 52px; margin-bottom: 1.1rem; }
.footer-brand .brand-name { font-size: 1.2rem; }
.footer-brand p { font-size: .9rem; margin-top: 1rem; max-width: 34ch; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .65rem; }
.footer-col a, .footer-col li { font-size: .9rem; }
.footer-col a:hover { color: var(--bone); }
.footer-note { font-size: .82rem; color: rgba(247,245,240,.4); margin-top: .9rem; line-height: 1.6; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.75rem; font-size: .82rem; color: rgba(247,245,240,.45);
}
.footer-bottom a:hover { color: var(--gold); }

/* ============================ 7. MOTION ================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; }

/* ============================ 8. RESPONSIVE ============================== */
@media (max-width: 1080px) {
  .svc-grid  { grid-template-columns: repeat(2, 1fr); }
  .ind-grid  { grid-template-columns: repeat(3, 1fr); }
  .approach  { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.25rem; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem;
    padding: 4rem 2.5rem; background: var(--obsidian-2);
    border-left: 1px solid var(--line-dark);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 105;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .cindex { grid-template-columns: 1fr; }
  .cindex-panels { padding-top: 1rem; }
  .split { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .hero.hero-tall { min-height: 0; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .svc-grid, .ind-grid, .approach, .proj-grid, .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .brand-sub { display: none; }
  .cix-scope { grid-template-columns: 1fr; }
  .rail li { width: 100%; }
  .rail li::after { display: none; }
  .notice { flex-direction: column; gap: 1rem; }
}

/* ============================ 9. PRINT =================================== */
@media print {
  .site-header, .nav-toggle, .hero-glow, .hero-arc, .statement-mark, .cta-actions { display: none !important; }
  body { background: #fff; color: #000; }
  .bg-dark, .hero, .pagehead, .statement, .site-footer { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---- Scope list (light surfaces — the light twin of .cix-scope) ---- */
.scope-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 1.75rem; margin-top: 1.5rem;
}
.scope-list li {
  position: relative; padding: .6rem 0 .6rem 1.35rem;
  font-size: .94rem; color: var(--ink); border-bottom: 1px solid var(--line);
}
.scope-list li::before {
  content: ""; position: absolute; left: 0; top: 1.1rem;
  width: 7px; height: 1.5px; background: var(--gold-core);
}

/* ---- Service detail block (services page) ---- */
.svc-detail { scroll-margin-top: 100px; }
.svc-detail .svc-ic { width: 40px; height: 40px; margin-bottom: 1.4rem; }
.svc-detail h2 { font-size: clamp(1.8rem, 3.8vw, 2.6rem); margin-top: .7rem; }
.svc-detail .lede { margin-top: 1.1rem; }
.svc-detail + .svc-detail { border-top: 1px solid var(--line); }
.bg-bone .svc-detail + .svc-detail { border-top-color: var(--line-strong); }

/* ---- Anchor jump list ---- */
.jumps { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jumps a {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em;
  padding: .45rem .9rem; border: 1px solid rgba(232,185,35,.28); border-radius: 100px;
  color: rgba(247,245,240,.8); transition: all .25s var(--ease);
}
.jumps a:hover { border-color: var(--gold); color: var(--gold); background: rgba(232,185,35,.08); }

/* ---- Column utilities ----
   Declared last so they win over the base component rule, each with its own
   responsive step. Never set grid-template-columns inline: an inline style
   beats every media query and silently breaks the mobile layout. */
.cols-1 { grid-template-columns: 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.split-wide { grid-template-columns: 1.25fr 1fr; }

@media (max-width: 1080px) {
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .split-wide { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cols-3, .cols-5 { grid-template-columns: 1fr; }
}

/* ---- Mobile CTA inside the nav drawer ---- */
.nav-cta-mobile { display: none; width: 100%; margin-top: .5rem; }
.nav-cta-mobile .btn { width: 100%; }
@media (max-width: 900px) { .nav-cta-mobile { display: block; } }

/* ---- Grid overflow guard ----
   A grid track sized 1fr still refuses to shrink below its content's
   min-content width. A <select> takes its min-content from its longest
   <option>, which is what pushed the contact page wider than a 320px
   viewport. min-width:0 lets the track actually collapse. */
.split > *, .form-grid > *, .cindex > *, .approach > *, .proj-body { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; }
