/* =========================================================================
   ROCKFIELD SOAR — Design System
   "The Vantage" — Carbon · Steel · Soar-Green · Copper
   Engineered to keep industry moving.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surface — carbon depth (dark theme, matched to the orange-on-black logo) */
  --carbon:        #0A0D10;   /* page base */
  --carbon-1:      #0E1216;   /* cards / panels / alt sections */
  --carbon-2:      #12171C;
  --carbon-3:      #161D24;
  --surface:       #11161B;
  --surface-2:     #161D24;
  --surface-3:     #1C242C;

  /* Steel — light text ramp on dark (50 = brightest/most prominent) */
  --steel-50:      #F3F6F8;
  --steel-100:     #E6ECF1;
  --steel-200:     #CDD6DE;
  --steel-300:     #AEB9C3;
  --steel-400:     #8B97A2;
  --steel-500:     #6B7782;
  --steel-600:     #4C565F;
  --steel-700:     #333B43;

  /* Accent — THE BRAND ORANGE #D57022 (sampled from the logo). Used IDENTICALLY
     in both dark and light themes so the client's orange never drifts. */
  --green:         #D57022;
  --green-deep:    #B65E1A;
  --green-dim:     #7A4A1E;
  --green-glow:    rgba(213,112,34,0.20);

  /* Same orange (lighter highlight tint) */
  --copper:        #D57022;
  --copper-bright: #E58A3C;
  --copper-glow:   rgba(213,112,34,0.18);

  /* Summit / contrast */
  --summit:        #EEF1F3;
  --summit-ink:    #0B0F13;

  /* Lines & utility */
  --line:          rgba(255,255,255,0.08);
  --line-strong:   rgba(255,255,255,0.16);
  --line-copper:   rgba(213,112,34,0.40);
  --shadow-lg:     0 40px 80px -30px rgba(0,0,0,0.8);
  --shadow-sm:     0 12px 30px -16px rgba(0,0,0,0.7);

  /* Type */
  --font-display: "Space Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 11vw, 10rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow: 1.1s;

  --ascent: 0; /* 0 = carbon depth, 1 = summit light (set by JS on home) */
}

/* ---------- Light theme (toggled via [data-theme="light"]) ---------- */
:root[data-theme="light"] {
  --carbon:        #F7F6F3;   /* page base (reads as white) */
  --carbon-1:      #FFFFFF;
  --carbon-2:      #F1EFEA;
  --carbon-3:      #ECEAE3;
  --surface:       #FFFFFF;
  --surface-2:     #F2F0EB;
  --surface-3:     #EAE7E0;
  --steel-50:      #14181B;   /* ink text ramp */
  --steel-100:     #23292E;
  --steel-200:     #333A40;
  --steel-300:     #434B52;
  --steel-400:     #5C656C;
  --steel-500:     #737C83;
  --steel-600:     #99A1A8;
  --steel-700:     #C2C7CC;
  --green:         #D57022;   /* SAME brand orange as dark theme — maintained, no drift */
  --green-deep:    #B65E1A;
  --green-dim:     #EBD8C4;
  --green-glow:    rgba(213,112,34,0.16);
  --copper:        #D57022;
  --copper-bright: #E58A3C;
  --copper-glow:   rgba(213,112,34,0.12);
  --line:          rgba(20,24,27,0.10);
  --line-strong:   rgba(20,24,27,0.17);
  --line-copper:   rgba(213,112,34,0.40);
  --shadow-lg:     0 40px 80px -30px rgba(40,44,48,0.20);
  --shadow-sm:     0 12px 30px -16px rgba(40,44,48,0.16);
}
[data-theme="light"] .site-header.is-stuck { background: rgba(247,246,243,0.82); }
[data-theme="light"] .hero::after {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(213,112,34,0.08), transparent 55%),
    linear-gradient(180deg, rgba(247,246,243,0) 0%, rgba(247,246,243,0) 35%, rgba(247,246,243,0.92) 100%);
}
[data-theme="light"] body::before { background: radial-gradient(130% 75% at 50% 125%, rgba(213,112,34,0.06), transparent 60%); }
[data-theme="light"] .summit { background: linear-gradient(180deg, var(--carbon) 0%, #EFE7DA 55%, #E7D7C2 100%); }
[data-theme="light"] .summit__horizon { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5)); }

/* logo variant per theme */
.brand__mark--light, .footer-logo--light { display: none; }
[data-theme="light"] .brand__mark--dark { display: none; }
[data-theme="light"] .footer-logo--dark { display: none; }
[data-theme="light"] .brand__mark--light,
[data-theme="light"] .footer-logo--light { display: block; }

/* theme toggle button */
.theme-toggle { width:42px; height:42px; flex:none; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line-strong); border-radius:var(--radius); background:transparent; color:var(--steel-300);
  transition: color .4s var(--ease), border-color .4s var(--ease); }
.theme-toggle:hover { border-color: var(--steel-400); color: var(--steel-50); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--carbon);
  color: var(--steel-200);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Scroll-as-ascent: a faint horizon light that grows as you rise toward the summit */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 75% at 50% 125%, rgba(213,112,34,0.09), transparent 60%);
  opacity: var(--ascent);
  transition: opacity .2s linear;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--green); color: #15191C; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--steel-50);
}
.display {
  font-size: clamp(2.6rem, 7vw, 6rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
p { color: var(--steel-300); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--steel-200); line-height: 1.5; font-weight: 300; }

.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel-500);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.label::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--copper);
  display: inline-block;
}
.label--plain::before { display: none; }
.mono { font-family: var(--font-mono); }
.green { color: var(--green); }
.copper { color: var(--copper-bright); }
.steel { color: var(--steel-400); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.eyebrow-row { display:flex; align-items:baseline; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.stack > * + * { margin-top: 1.1rem; }
.divider { height: 1px; background: var(--line); border: 0; }
.hairline-top { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05em 1.7em;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  color: var(--steel-100);
  background: transparent;
  transition: color .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
  overflow: hidden;
}
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:hover { border-color: var(--steel-300); transform: translateY(-1px); }
.btn--primary {
  background: var(--green);
  color: #15191C;
  border-color: var(--green);
  font-weight: 600;
}
.btn--primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: #15191C; }
.btn--copper { border-color: var(--line-copper); color: var(--copper-bright); }
.btn--copper:hover { border-color: var(--copper); background: var(--copper-glow); }
.btn--ghost { border-color: transparent; padding-inline: 0.2em; }
.btn--ghost:hover { transform: none; color: var(--green); }
.btn--lg { padding: 1.2em 2.2em; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10,13,16,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
  transition: height .5s var(--ease);
}
.is-stuck .nav { height: 66px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { height: 40px; width: auto; flex: none; }
.is-stuck .brand__mark { height: 34px; }
.brand__type { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 1.12rem; color: var(--steel-50); line-height: 1; }
.brand__type small { display:block; font-family: var(--font-mono); font-weight: 400; font-size: 0.56rem; letter-spacing: 0.34em; color: var(--steel-500); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__link {
  font-size: 0.92rem; color: var(--steel-300); position: relative; padding: 0.4rem 0;
  transition: color .35s var(--ease);
}
.nav__link::after {
  content:""; position:absolute; left:0; bottom:-2px; height:1px; width:0; background: var(--green);
  transition: width .4s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--steel-50); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }
.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display:none; width:44px; height:44px; border:1px solid var(--line); border-radius: var(--radius); background:transparent; align-items:center; justify-content:center; }
.nav__toggle span { width:18px; height:1.5px; background: var(--steel-100); position: relative; transition: .4s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after { content:""; position:absolute; left:0; width:18px; height:1.5px; background: var(--steel-100); transition: .4s var(--ease); }
.nav__toggle span::before { top:-6px; } .nav__toggle span::after { top:6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top:0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top:0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-bottom: clamp(3rem, 7vw, 6rem); padding-top: 120px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; z-index: 0; opacity: 0.9; }
.hero::after { /* fade hero base to carbon for legibility over the contour field */
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(213,112,34,0.10), transparent 55%),
    linear-gradient(180deg, rgba(10,13,16,0.35) 0%, rgba(10,13,16,0) 30%, rgba(10,13,16,0.85) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__kicker { margin-bottom: 1.8rem; }
.hero__title { max-width: 16ch; }
.hero__title em { font-style: normal; color: var(--green); }
.hero__sub { max-width: 52ch; margin-top: 1.8rem; }
.hero__actions { display:flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.6rem; }
.hero__trust { margin-top: 3.2rem; display:flex; align-items:center; gap: 1rem; color: var(--steel-400); font-size: 0.92rem; max-width: 60ch; }
.hero__trust strong { color: var(--steel-100); font-weight: 500; }
.hero__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow); animation: pulse 2.8s infinite; flex:none; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(213,112,34,.45);} 70%{box-shadow:0 0 0 14px rgba(213,112,34,0);} 100%{box-shadow:0 0 0 0 rgba(213,112,34,0);} }
.scroll-hint { position:absolute; left: var(--gutter); bottom: 1.5rem; z-index:2; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .3em; color: var(--steel-600); writing-mode: vertical-rl; }

/* ---------- Proof bar ---------- */
.proof { border-block: 1px solid var(--line); background: var(--carbon-1); }
.proof__inner { display:flex; align-items:center; gap: clamp(1.5rem,4vw,3.5rem); flex-wrap: wrap; padding-block: 1.8rem; }
.proof__label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--steel-600); flex:none; }
.proof__items { display:flex; align-items:center; gap: clamp(1.2rem,3vw,2.8rem); flex-wrap: wrap; }
.proof__item { font-family: var(--font-display); font-weight:500; font-size: clamp(0.95rem,1.4vw,1.15rem); color: var(--steel-300); display:flex; align-items:center; gap:.6rem; }
.proof__item .dot { width:5px; height:5px; border-radius:50%; background: var(--copper); }

/* ---------- Metrics ---------- */
.metrics { display:grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.metric { background: var(--carbon-1); padding: clamp(1.6rem, 3vw, 2.6rem); }
.metric__num { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.6rem); color: var(--steel-50); letter-spacing: -0.03em; line-height: 1; }
.metric__num .unit { color: var(--green); }
.metric__label { margin-top: .8rem; font-size: 0.88rem; color: var(--steel-400); }
@media (max-width: 760px){ .metrics { grid-template-columns: repeat(2,1fr);} }

/* ---------- Division tiles ---------- */
.divisions { display:grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 820px){ .divisions { grid-template-columns: 1fr; } }
.tile {
  position: relative; padding: clamp(1.8rem, 3vw, 2.8rem); min-height: 320px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  display:flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  transition: border-color .6s var(--ease), transform .6s var(--ease), background .6s var(--ease);
}
.tile::before { /* copper draw line */
  content:""; position:absolute; left:0; top:0; height:2px; width:0; background: linear-gradient(90deg, var(--copper), var(--green));
  transition: width .7s var(--ease);
}
.tile:hover { border-color: var(--line-strong); transform: translateY(-4px); background: var(--surface-2); }
.tile:hover::before { width: 100%; }
.tile__index { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; color: var(--steel-600); }
.tile__title { margin-top: auto; }
.tile h3 { margin-top: 1.4rem; }
.tile__desc { margin-top: .8rem; color: var(--steel-400); font-size: .97rem; max-width: 42ch; }
.tile__tags { margin-top: 1.4rem; display:flex; flex-wrap:wrap; gap:.5rem; }
.tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; color: var(--steel-400); border:1px solid var(--line); padding:.35em .7em; border-radius: 100px; }
.tile__go { margin-top: 1.6rem; display:inline-flex; align-items:center; gap:.6rem; color: var(--green); font-family: var(--font-mono); font-size:.76rem; letter-spacing:.12em; text-transform:uppercase; }

/* ---------- Feature / split ---------- */
.split { display:grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; } }
.feature-list { display:grid; gap: 0; margin-top: 1rem; }
.feature-list__item { padding: 1.5rem 0; border-top: 1px solid var(--line); display:grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; }
.feature-list__item:last-child { border-bottom: 1px solid var(--line); }
.feature-list__n { font-family: var(--font-mono); font-size:.74rem; color: var(--copper); padding-top: .2rem; }
.feature-list__h { font-family: var(--font-display); color: var(--steel-50); font-size: 1.15rem; }
.feature-list__p { color: var(--steel-400); font-size: .95rem; margin-top: .35rem; }

/* ---------- Compliance wall ---------- */
.wall { display:grid; grid-template-columns: repeat(3,1fr); gap:1rem; }
@media (max-width: 820px){ .wall { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .wall { grid-template-columns: 1fr; } }
.cred {
  border:1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--carbon-1);
  transition: border-color .5s var(--ease), background .5s var(--ease);
}
.cred:hover { border-color: var(--line-copper); background: var(--surface); }
.cred__top { display:flex; align-items:center; justify-content:space-between; }
.cred__status { font-family: var(--font-mono); font-size:.62rem; letter-spacing:.12em; text-transform:uppercase; color: var(--green); display:flex; align-items:center; gap:.4rem; }
.cred__status .dot { width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px var(--green); }
.cred h4 { font-family: var(--font-display); color: var(--steel-50); font-size: 1.05rem; margin-top: 1rem; }
.cred__meta { font-family: var(--font-mono); font-size:.72rem; color: var(--steel-500); margin-top:.5rem; }

/* ---------- Sectors ---------- */
.sectors { display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; }
@media (max-width: 820px){ .sectors { grid-template-columns: 1fr 1fr; } }
.sector { background: var(--carbon-1); padding: clamp(1.6rem,2.6vw,2.4rem); min-height: 220px; display:flex; flex-direction:column; justify-content:space-between; transition: background .5s var(--ease); }
.sector:hover { background: var(--surface-2); }
.sector__icon { color: var(--green); }
.sector h4 { font-family: var(--font-display); color: var(--steel-50); font-size: 1.15rem; }
.sector p { font-size:.88rem; color: var(--steel-500); margin-top:.4rem; }

/* ---------- Summit CTA (the ascent payoff) ---------- */
.summit {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--carbon) 0%, #1C1712 55%, #34261A 100%);
}
.summit__inner { position: relative; z-index:2; text-align:center; padding-block: clamp(5rem, 12vw, 11rem); }
.summit h2 { max-width: 18ch; margin-inline:auto; }
.summit .lead { max-width: 50ch; margin: 1.6rem auto 2.6rem; color: var(--steel-200); }
.summit__actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.summit__horizon { position:absolute; inset:auto 0 0 0; height: 40%; z-index:1; background: linear-gradient(180deg, transparent, rgba(240,170,100,0.08)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon-1); border-top: 1px solid var(--line); padding-block: clamp(3.5rem,7vw,6rem) 2.5rem; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: clamp(2rem,4vw,3rem); }
@media (max-width: 900px){ .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer__grid { grid-template-columns: 1fr; } }
.footer__h { font-family: var(--font-mono); font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color: var(--steel-600); margin-bottom: 1.2rem; }
.footer__list { list-style:none; padding:0; display:grid; gap:.7rem; }
.footer__list a, .footer__list span { color: var(--steel-400); font-size:.92rem; transition: color .3s var(--ease); }
.footer__list a:hover { color: var(--green); }
.loc { margin-bottom: 1.1rem; }
.loc__city { color: var(--steel-100); font-family: var(--font-display); font-size:.98rem; }
.loc__addr { color: var(--steel-500); font-size:.82rem; }
.loc__coord { font-family: var(--font-mono); font-size:.66rem; color: var(--steel-700); }
.footer__bottom { margin-top: clamp(3rem,6vw,5rem); padding-top: 2rem; border-top: 1px solid var(--line); display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; color: var(--steel-600); font-size:.8rem; font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; padding-top: 160px; padding-bottom: clamp(3rem,6vw,5rem); border-bottom: 1px solid var(--line); overflow:hidden; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(80% 100% at 100% 0%, var(--copper-glow), transparent 60%); z-index:0; }
.page-hero__inner { position: relative; z-index:1; }
.breadcrumb { font-family: var(--font-mono); font-size:.72rem; letter-spacing:.1em; color: var(--steel-600); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--green); }
.page-hero h1 { max-width: 20ch; margin-top: .5rem; }
.page-hero .lead { max-width: 56ch; margin-top: 1.4rem; }

/* ---------- Content blocks ---------- */
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.2rem; }
.capability-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
@media (max-width:760px){ .capability-grid { grid-template-columns: 1fr; } }
.cap {
  border:1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem,2.6vw,2.2rem); background: var(--carbon-1);
  transition: border-color .5s var(--ease), background .5s var(--ease), transform .5s var(--ease);
}
.cap:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-3px); }
.cap__n { font-family: var(--font-mono); font-size:.7rem; color: var(--copper); letter-spacing:.15em; }
.cap h3 { font-size: 1.25rem; margin-top: 1rem; }
.cap ul { list-style:none; padding:0; margin-top: 1rem; display:grid; gap:.6rem; }
.cap li { padding-left: 1.2rem; position: relative; color: var(--steel-400); font-size:.92rem; }
.cap li::before { content:""; position:absolute; left:0; top:.6em; width:6px; height:1px; background: var(--green); }

/* lists with green ticks */
.ticklist { list-style:none; padding:0; display:grid; gap:.9rem; }
.ticklist li { padding-left: 1.9rem; position: relative; color: var(--steel-300); }
.ticklist li::before { content:""; position:absolute; left:0; top:.45em; width:11px; height:6px; border-left:1.5px solid var(--green); border-bottom:1.5px solid var(--green); transform: rotate(-45deg); }

/* clients */
.clients { display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; }
@media (max-width: 820px){ .clients { grid-template-columns: 1fr 1fr; } }
.client { background: var(--carbon-1); padding: clamp(1.6rem,2.6vw,2.2rem); min-height: 170px; display:flex; flex-direction:column; justify-content:space-between; transition: background .5s var(--ease); }
.client:hover { background: var(--surface-2); }
.client__name { font-family: var(--font-display); color: var(--steel-50); font-size: 1.1rem; line-height:1.1; }
.client__type { font-family: var(--font-mono); font-size:.66rem; letter-spacing:.1em; text-transform:uppercase; color: var(--copper); }
.client__note { font-size:.82rem; color: var(--steel-500); margin-top:.6rem; }

/* steps / process */
.steps { counter-reset: step; display:grid; gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; }
.step { background: var(--carbon-1); padding: clamp(1.5rem,2.6vw,2rem); display:grid; grid-template-columns: 60px 1fr; gap:1.2rem; align-items:start; }
.step__n { counter-increment: step; font-family: var(--font-mono); font-size: 1.4rem; color: var(--copper); }
.step__n::before { content: "0" counter(step); }
.step h4 { font-family: var(--font-display); color: var(--steel-50); font-size: 1.1rem; }
.step p { font-size:.92rem; color: var(--steel-400); margin-top:.3rem; }

/* ---------- Forms ---------- */
.form { display:grid; gap: 1.3rem; }
.form__row { display:grid; grid-template-columns: 1fr 1fr; gap:1.3rem; }
@media (max-width: 600px){ .form__row { grid-template-columns: 1fr; } }
.field { display:grid; gap:.5rem; }
.field label { font-family: var(--font-mono); font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color: var(--steel-500); }
.field input, .field select, .field textarea {
  background: var(--carbon-1); border:1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--steel-100); padding: .95em 1em; font-family: var(--font-body); font-size: .96rem;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline:none; border-color: var(--green); background: var(--surface); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size:.8rem; color: var(--steel-600); }
.form-success { display:none; border:1px solid var(--line-copper); border-radius: var(--radius-lg); padding: 2rem; background: var(--surface); }
.form-success.show { display:block; }

/* chips / segmented */
.chips { display:flex; flex-wrap:wrap; gap:.6rem; }
.chip { font-family: var(--font-mono); font-size:.74rem; letter-spacing:.06em; padding:.6em 1em; border:1px solid var(--line-strong); border-radius: 100px; color: var(--steel-300); background: transparent; transition:.4s var(--ease); }
.chip:hover { border-color: var(--steel-400); color: var(--steel-100); }
.chip[aria-pressed="true"] { background: var(--green); color: #15191C; border-color: var(--green); }

/* download cards */
.dl { display:grid; grid-template-columns: 1fr; gap: 1rem; }
.dl__item { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding: 1.3rem 1.5rem; border:1px solid var(--line); border-radius: var(--radius-lg); background: var(--carbon-1); transition: border-color .4s var(--ease), background .4s var(--ease); }
.dl__item:hover { border-color: var(--line-strong); background: var(--surface); }
.dl__meta { display:flex; align-items:center; gap:1rem; }
.dl__icon { width:42px;height:42px;border:1px solid var(--line-strong); border-radius: var(--radius); display:grid; place-items:center; color: var(--copper-bright); flex:none; }
.dl__name { color: var(--steel-100); font-family: var(--font-display); font-size:1rem; }
.dl__sub { font-family: var(--font-mono); font-size:.68rem; color: var(--steel-600); letter-spacing:.06em; }
.dl__sub a, .footer__bottom a { color: inherit; text-decoration: none; transition: color .3s var(--ease); }
.dl__sub a:hover, .footer__bottom a:hover { color: var(--green); }

/* quote / pull */
.pull { border-left: 2px solid var(--copper); padding: .4rem 0 .4rem 1.6rem; }
.pull p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem,2.6vw,2rem); line-height:1.3; color: var(--steel-100); letter-spacing:-0.01em; }
.pull cite { display:block; margin-top:1rem; font-family: var(--font-mono); font-size:.76rem; color: var(--steel-500); font-style: normal; letter-spacing:.06em; }

/* utility */
.center { text-align:center; }
.mt-s{margin-top:1rem}.mt-m{margin-top:2rem}.mt-l{margin-top:3.5rem}
.maxw-prose{max-width:60ch}.maxw-wide{max-width:72ch}
.text-muted { color: var(--steel-500); }
.bg-surface { background: var(--carbon-1); }

/* ---------- Media (curated imagery, unified brand grade) ---------- */
.media { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--carbon-1); }
.media__frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.media__img { width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(0.30) contrast(1.05) brightness(0.95);
  transition: filter .7s var(--ease), transform 1s var(--ease); }
.media:hover .media__img { filter: grayscale(0) contrast(1.02) brightness(1); transform: scale(1.04); }
.media__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(213,112,34,0.12), transparent 48%, rgba(0,0,0,0.14)); }
.media__cap { display: flex; align-items: baseline; gap: .8rem; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.media__cap .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); color: var(--steel-50); letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.media__cap .lab { font-size: .84rem; color: var(--steel-400); }
/* product cut-outs (transparent PNGs) float on the panel instead of filling it */
.media--product .media__frame { aspect-ratio: 16 / 10; background: var(--carbon-1); }
.media--product .media__img { object-fit: contain; filter: none; padding: clamp(1rem, 3vw, 2.2rem); transform: none; }
.media--product:hover .media__img { transform: scale(1.03); }
.media--product .media__frame::after { display: none; }

/* ---------- Services (full catalogue, one card per service) ---------- */
.services-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px){ .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .services-grid { grid-template-columns: 1fr; } }
.svc { border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; background: var(--carbon-1);
  display:flex; flex-direction:column; transition: border-color .5s var(--ease), transform .5s var(--ease); }
.svc:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.svc__media { position:relative; aspect-ratio: 16/10; overflow:hidden; }
.svc__media img { width:100%; height:100%; object-fit:cover; display:block;
  filter: grayscale(0.28) contrast(1.04) brightness(0.97); transition: filter .6s var(--ease), transform .9s var(--ease); }
.svc:hover .svc__media img { filter:none; transform:scale(1.05); }
.svc__media::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(180deg, rgba(213,112,34,0.10), transparent 55%); }
.svc--product .svc__media img { object-fit:contain; padding: clamp(.9rem,2.5vw,1.6rem); filter:none; }
.svc--product:hover .svc__media img { transform:scale(1.03); }
.svc--product .svc__media::after { display:none; }
.svc__body { padding: 1.3rem 1.5rem 1.6rem; }
.svc__body h3 { font-size: 1.12rem; line-height:1.2; }
.svc__body p { color: var(--steel-400); font-size: .9rem; line-height:1.55; margin-top:.7rem; }

/* compact services list (homepage) */
.svc-list { display:grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(1.5rem,4vw,3.5rem); }
.svc-list a { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1.05rem .2rem;
  border-top:1px solid var(--line); color:var(--steel-100); font-family:var(--font-display); font-size:1.04rem;
  transition: color .3s var(--ease), padding-left .3s var(--ease); }
.svc-list a:hover { color: var(--green); padding-left:.5rem; }
.svc-list a .n { font-family: var(--font-mono); font-size:.7rem; color:var(--steel-500); margin-right:.9rem; }
.svc-list a .arrow { color: var(--green); opacity:0; transition:opacity .3s var(--ease); }
.svc-list a:hover .arrow { opacity:1; }
@media (max-width:680px){ .svc-list{ grid-template-columns:1fr; } }

/* ---------- Reveal animation (progressive enhancement: hidden only when JS is present) ---------- */
.js .reveal { opacity:0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.js .reveal.in { opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.08s } .reveal[data-delay="2"]{ transition-delay:.16s }
.reveal[data-delay="3"]{ transition-delay:.24s } .reveal[data-delay="4"]{ transition-delay:.32s }

/* ---------- Mobile nav ---------- */
@media (max-width: 940px){
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 380px);
    background: var(--carbon-1); border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem var(--gutter); transform: translateX(100%);
    transition: transform .5s var(--ease); z-index: 99;
  }
  body.menu-open .nav__links { transform: none; }
  .nav__link { font-size: 1.3rem; }
  .nav__toggle { display:inline-flex; z-index: 101; }
  .nav__cta { margin-left:0; }
}
