/* ==========================================================================
   NexBuild Solutions — site styles
   1. Tokens   2. Base   3. Layout   4. Type   5. Buttons & links
   6. Header & menu   7. Hero   8. Sections   9. Components
   10. Forms   11. Footer   12. Motion
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #1d1f20;
  --ink-2: #2a2d2f;
  --paper: #f2f2f3;
  --white: #ffffff;
  --concrete: #e4e5e7;
  --grey-500: #6b6f73;
  --grey-600: #55595d;

  --orange: #ea6a1f;
  --orange-600: #d65c14;
  --orange-700: #9e430d;

  --line: rgba(29, 31, 32, 0.14);
  --line-strong: rgba(29, 31, 32, 0.32);
  --line-dark: rgba(242, 242, 243, 0.16);
  --text-muted: rgba(29, 31, 32, 0.74);
  --text-muted-dark: rgba(242, 242, 243, 0.78);

  --font-heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 10vw, 152px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--orange-700); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--ink); }
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--orange); color: var(--ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* 3. Layout ---------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark + .section, .section + .section--dark { border-top: 0; }
.section--tight { padding-block: clamp(56px, 7vw, 104px); }
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px clamp(48px, 7vw, 112px);
  align-items: start;
}
.split--end { align-items: end; }

/* 4. Type ------------------------------------------------------------------ */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange-700);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .cta-band .eyebrow { color: var(--orange); }

.display, .h1, .h2, .h3 {
  font-family: var(--font-heading); font-weight: 600;
  text-transform: uppercase; letter-spacing: -0.01em;
  text-wrap: balance;
}
.display { font-size: clamp(48px, 7vw, 112px); line-height: 0.9; }
.h1 { font-size: clamp(44px, 6.4vw, 100px); line-height: 0.92; }
.h2 { font-size: clamp(38px, 5vw, 72px); line-height: 0.95; }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; max-width: 54ch; text-wrap: pretty; }
.muted { color: var(--text-muted); }
.section--dark .muted, .hero .muted, .cta-band .muted { color: var(--text-muted-dark); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 32px; }
.num {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 15px; letter-spacing: 0.14em; color: var(--orange-700);
}
.section--dark .num { color: var(--orange); }

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  border: 1px solid transparent; border-radius: 0;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-600); color: var(--ink); }
.btn--outline { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.on-dark .btn--outline, .section--dark .btn--outline, .hero .btn--outline, .cta-band .btn--outline {
  border-color: rgba(242, 242, 243, 0.45); color: var(--paper);
}
.on-dark .btn--outline:hover, .section--dark .btn--outline:hover, .hero .btn--outline:hover, .cta-band .btn--outline:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; letter-spacing: 0.12em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--orange);
  font-family: var(--font-heading); font-weight: 600;
  font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: inherit;
}
.text-link:hover { color: var(--orange-700); }
.section--dark .text-link:hover { color: var(--orange); }

/* 6. Header & menu --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
.site-header.is-solid, body.menu-open .site-header {
  background: var(--ink); border-bottom-color: var(--line-dark);
}
.site-header__inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-size: 21px;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; color: inherit;
}
.brand:hover { color: inherit; }
.brand__mark { width: 14px; height: 14px; background: var(--orange); flex: none; }
.brand strong { font-weight: 600; }
.brand span:last-child { opacity: 0.8; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  display: block; padding: 6px 0;
  border-bottom: 1px solid transparent;
  font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; color: var(--paper);
  transition: color .2s, border-color .2s;
}
.nav__link:hover { color: var(--orange); }
.nav__link[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.header-cta { min-height: 44px; padding: 10px 20px; font-size: 14px; letter-spacing: 0.12em; }
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-dark); background: transparent; color: var(--paper); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  display: flex; flex-direction: column;
  padding: 24px var(--gutter) 40px;
  background: var(--ink); color: var(--paper); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { border-top: 1px solid var(--line-dark); }
.mobile-menu__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-heading); font-weight: 600; font-size: 36px; line-height: 1;
  text-transform: uppercase; text-decoration: none; color: var(--paper);
}
.mobile-menu__link span { font-size: 14px; letter-spacing: 0.14em; opacity: 0.7; }
.mobile-menu__link[aria-current="page"] { color: var(--orange); }
.mobile-menu .btn { margin-top: 32px; width: 100%; min-height: 56px; }
.mobile-menu__meta { margin-top: auto; padding-top: 40px; display: grid; gap: 8px; color: var(--text-muted-dark); }

@media (max-width: 900px) {
  .nav, .header-cta--desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 10px; }
  .header-cta { padding: 10px 14px; font-size: 13px; letter-spacing: 0.08em; }
}

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter);
}
.hero__grid::before {
  content: ""; position: absolute; inset: 0 var(--gutter);
  border-right: 1px solid rgba(242, 242, 243, 0.08);
  background-image: linear-gradient(to right, rgba(242, 242, 243, 0.08) 1px, transparent 1px);
  background-size: 25% 100%;
}
.hero__inner {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 104px));
  padding-bottom: clamp(48px, 6vw, 88px);
}
.hero--home .hero__inner { padding-bottom: clamp(56px, 6vw, 96px); }
.hero__title { margin-top: 24px; max-width: 14ch; }
.hero--home .hero__title { max-width: none; }
.hero__foot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 40px clamp(32px, 6vw, 96px); align-items: end;
  margin-top: clamp(28px, 3.5vw, 48px);
}
.hero__lead { margin-top: 28px; }
.hero .btn-row { margin-top: 32px; }
.hero__facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px;
  padding-top: 20px; border-top: 1px solid var(--line-dark);
}
.hero__facts dt {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange);
}
.hero__facts dd { margin-top: 6px; font-size: 16px; line-height: 1.5; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-heading); font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; opacity: 0.75; }
.breadcrumb a:hover { opacity: 1; color: var(--orange); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.breadcrumb [aria-current] { color: var(--orange); }
.hero__service-title { display: flex; align-items: flex-end; flex-wrap: wrap; gap: clamp(16px, 2.5vw, 36px); margin-top: 24px; }
.outline-num {
  font-family: var(--font-heading); font-weight: 600; line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--orange);
}
.hero__service-title .outline-num { font-size: clamp(72px, 10vw, 152px); }

/* 8. Sections -------------------------------------------------------------- */
.section-head { display: grid; gap: 24px; max-width: 900px; }
.section-head--split {
  max-width: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 28px clamp(40px, 6vw, 96px); align-items: end;
}
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.section-body { margin-top: clamp(48px, 6vw, 88px); }

/* Intro + stage timeline (home) */
.intro { padding-top: var(--section-y); background: var(--paper); }
.intro__head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px clamp(48px, 7vw, 112px); align-items: start;
  padding-bottom: clamp(56px, 7vw, 104px);
}
.intro__title .h2 { font-size: clamp(42px, 6vw, 92px); line-height: 0.92; }
.intro__copy { padding-top: 40px; }
.intro__copy .btn-row { margin-top: 8px; }
@media (max-width: 900px) { .intro__copy { padding-top: 0; } }
@media (max-width: 900px) { .intro__head { grid-template-columns: minmax(0, 1fr); } }

.timeline { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.timeline__word {
  position: absolute; right: -0.02em; bottom: -0.18em; pointer-events: none; white-space: nowrap;
  font-family: var(--font-heading); font-weight: 600; text-transform: uppercase;
  font-size: clamp(110px, 17vw, 280px); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 243, 0.07);
}
.timeline .container { position: relative; }
.timeline__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-block: 28px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted-dark);
}
.timeline__bar span:first-child { color: var(--orange); }
.timeline__stages {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-block: clamp(56px, 6vw, 88px) clamp(72px, 8vw, 120px);
}
.timeline__stages::before {
  content: ""; position: absolute; left: 0; right: 0; top: clamp(56px, 6vw, 88px);
  height: 2px; background: linear-gradient(90deg, var(--orange) 0%, var(--orange) 34%, rgba(234,106,31,.55) 67%, rgba(234,106,31,.25) 100%);
}
.timeline__stage { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 44px clamp(20px, 3vw, 48px) 0 0; }
.timeline__stage + .timeline__stage { padding-left: clamp(20px, 3vw, 48px); border-left: 1px solid var(--line-dark); }
.timeline__node {
  position: absolute; top: -6px; left: 0; width: 14px; height: 14px;
  background: var(--orange); outline: 4px solid var(--ink);
}
.timeline__stage + .timeline__stage .timeline__node { left: clamp(20px, 3vw, 48px); }
.timeline__num {
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(80px, 8vw, 128px); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1px var(--orange);
}
.timeline__title { margin-top: 12px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; }
.timeline__desc { max-width: 30ch; color: var(--text-muted-dark); }
.timeline__services { margin-top: 10px; border-top: 1px solid var(--line-dark); }
.timeline__services a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-dark);
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--paper);
  transition: color .2s, padding-left .25s var(--ease);
}
.timeline__services a span { color: var(--orange); transition: transform .25s var(--ease); }
.timeline__services a:hover { color: var(--orange); padding-left: 6px; }
.timeline__services a:hover span { transform: translateX(4px); }
@media (max-width: 860px) {
  .timeline__stages { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding-left: 32px; }
  .timeline__stages::before { top: clamp(56px, 6vw, 88px); bottom: clamp(72px, 8vw, 120px); left: 6px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--orange), rgba(234,106,31,.25)); }
  .timeline__stage, .timeline__stage + .timeline__stage { padding: 0; border-left: 0; }
  .timeline__node, .timeline__stage + .timeline__stage .timeline__node { top: 4px; left: -32px; }
}

/* Service strip (home) */
.strip { background: var(--orange); border-block: 1px solid var(--orange-600); }
.strip__list { display: flex; gap: 12px; padding-block: 20px; overflow-x: auto; scrollbar-width: none; }
.strip__list::-webkit-scrollbar { display: none; }
.strip__list li { flex: 1 0 auto; }
.strip__link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 14px 18px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  font-family: var(--font-heading); font-weight: 600; font-size: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.strip__link::after { content: "→"; color: var(--orange); font-size: 18px; }
.strip__link:hover { background: var(--paper); color: var(--ink); }

/* 9. Components ------------------------------------------------------------ */
/* Service cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  min-height: 300px; padding: 28px;
  border: 1px solid var(--line-strong); text-decoration: none; color: var(--ink);
  transition: background-color .3s, border-color .3s;
}
.service-card:hover { background: var(--white); border-color: var(--ink); color: var(--ink); }
.service-card__num { font-family: var(--font-heading); font-weight: 600; font-size: 60px; line-height: 0.85; color: var(--orange); }
.service-card__title { margin-top: auto; font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1; text-transform: uppercase; }
.service-card__desc { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.service-card__more {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-700);
}
.service-card__more::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.service-card:hover .service-card__more::after { transform: translateX(4px); }

/* Service vertical tabs (home) */
.svc-tabs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--ink); }
.svc-tabs__list { display: flex; flex-direction: column; border-right: 1px solid var(--ink); }
.svc-tab {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 12px;
  width: 100%; min-height: 64px; padding: 14px 24px; cursor: pointer; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text-muted); transition: background-color .25s, color .25s;
}
.svc-tab:last-child { border-bottom: 0; }
.svc-tab::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform .3s var(--ease);
}
.svc-tab__num { font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--grey-500); transition: color .25s; }
.svc-tab__label { font-family: var(--font-heading); font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.05; text-transform: uppercase; }
.svc-tab__arrow { color: var(--orange); opacity: 0; transform: translateX(-8px); transition: opacity .25s, transform .25s var(--ease); }
.svc-tab:hover { background: var(--white); color: var(--ink); }
.svc-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.svc-tab[aria-selected="true"]::before { transform: scaleY(1); }
.svc-tab[aria-selected="true"] .svc-tab__num { color: var(--orange); }
.svc-tab[aria-selected="true"] .svc-tab__arrow, .svc-tab:hover .svc-tab__arrow { opacity: 1; transform: none; }

.svc-tabs__panels { position: relative; background: var(--white); }
.svc-panel {
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 20px; padding: clamp(32px, 4vw, 56px);
  animation: panelIn .45s var(--ease) both;
}
.svc-panel[hidden] { display: none; }
.svc-panel__bg {
  position: absolute; right: -0.04em; bottom: -0.22em; pointer-events: none;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(200px, 24vw, 380px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(234, 106, 31, 0.35);
}
.svc-panel > *:not(.svc-panel__bg) { position: relative; }
.svc-panel__kicker { font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange-700); }
.svc-panel__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(38px, 4.4vw, 64px); line-height: 0.95; text-transform: uppercase; max-width: 12ch; }
.svc-panel__desc { font-size: clamp(17px, 1.4vw, 19px); max-width: 44ch; color: var(--text-muted); }
.svc-panel__points { max-width: 460px; border-top: 1px solid var(--line); }
.svc-panel__points li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.svc-panel__points li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--orange); transform: translateY(-2px); }
.svc-panel .btn-row { margin-top: auto; padding-top: 12px; }
@keyframes panelIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .svc-tabs { grid-template-columns: minmax(0, 1fr); }
  .svc-tabs__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--ink); }
  .svc-tabs__list::-webkit-scrollbar { display: none; }
  .svc-tab { flex: none; width: auto; grid-template-columns: auto auto; min-height: 56px; padding: 12px 18px; border-bottom: 0; border-right: 1px solid var(--line); }
  .svc-tab__label { font-size: 18px; white-space: nowrap; }
  .svc-tab__arrow { display: none; }
  .svc-tab::before { top: auto; right: 0; width: auto; height: 3px; transform: scaleX(0); transform-origin: left; }
  .svc-tab[aria-selected="true"]::before { transform: scaleX(1); }
  .svc-panel__bg { font-size: 180px; }
}

/* Service rows (services page) */
.service-rows { border-top: 1px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 16px 40px; align-items: center;
  padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.service-row .outline-num { font-size: clamp(56px, 5vw, 72px); }
.service-row__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3vw, 42px); line-height: 1; text-transform: uppercase; }
.service-row__title a { text-decoration: none; }
.service-row__desc { color: var(--text-muted); max-width: 52ch; }
@media (max-width: 900px) {
  .service-row { grid-template-columns: 64px minmax(0, 1fr); }
  .service-row__desc, .service-row .btn { grid-column: 2; }
  .service-row .btn { justify-self: start; }
}

/* Principles (dark) */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line-dark); }
.principle { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line-dark); }
.principle .outline-num { font-size: clamp(72px, 7vw, 112px); }
.principle h3 { margin-top: 12px; }
.principle p { max-width: 32ch; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); row-gap: 48px; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 0 0; border-top: 1px solid var(--ink); }
.step::before { content: ""; position: absolute; top: -7px; left: 0; width: 13px; height: 13px; background: var(--orange); }
.step h3 { font-size: clamp(32px, 3.2vw, 46px); line-height: 0.95; }
.step p { max-width: 32ch; }

/* Line lists */
.line-list { border-top: 1px solid var(--line); }
.line-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-list--display li { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.1; text-transform: uppercase; }
.section--dark .line-list, .section--dark .line-list li { border-color: var(--line-dark); }
.numbered-list { border-top: 1px solid var(--line-dark); counter-reset: item; }
.numbered-list li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.05; text-transform: uppercase;
}
.numbered-list li::before {
  counter-increment: item; content: counter(item, decimal-leading-zero);
  font-size: 15px; letter-spacing: 0.14em; color: var(--orange);
}
.service-links a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: color .2s;
}
.service-links { border-top: 1px solid var(--line); }
.service-links .label { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.05; text-transform: uppercase; }
.service-links .meta { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.service-links a:hover .label { color: var(--orange-700); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--orange);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}

/* Capabilities (projects) */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  min-height: 44px; padding: 10px 18px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.capability-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.capability {
  display: flex; flex-direction: column; gap: 14px; min-height: 280px; padding: 28px;
  border: 1px solid var(--line-strong); animation: fadeIn .4s ease both;
}
.capability[hidden] { display: none; }
.capability__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.capability__sectors { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); text-align: right; }
.capability h3 { margin-top: auto; font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1; text-transform: uppercase; }
.capability p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.capability__services { padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-muted); }
.capability__services a { color: var(--ink); }

/* Home project-type grid */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--ink); }
.type-grid li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.1; text-transform: uppercase;
}

/* CTA band */
.cta-band { background: var(--ink-2); color: var(--paper); border-top: 4px solid var(--orange); }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 28px 48px; padding-block: clamp(48px, 5vw, 72px);
}
.cta-band__text { display: grid; gap: 14px; flex: 1 1 420px; min-width: 0; }
.cta-band .h2 { font-size: clamp(34px, 4.2vw, 58px); }

/* Legal */
.legal { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px clamp(48px, 7vw, 112px); align-items: start; }
.legal__aside { position: sticky; top: calc(var(--header-h) + 32px); color: var(--text-muted); font-size: 15px; }
.legal__list { border-top: 1px solid var(--line); counter-reset: legal; }
.legal__item { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal__item::before { counter-increment: legal; content: counter(legal, decimal-leading-zero); font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; color: var(--orange-700); }
.legal__item h2 { font-family: var(--font-heading); font-weight: 600; font-size: 26px; line-height: 1; text-transform: uppercase; }
.legal__item p { margin-top: 10px; max-width: 64ch; color: var(--text-muted); }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal__aside { position: static; } }

/* Sitemap */
.sitemap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 56px clamp(40px, 5vw, 80px); align-items: start; }
.sitemap h2 { margin-bottom: 16px; }

/* 10. Forms ---------------------------------------------------------------- */
.contact-details { border-top: 1px solid var(--line); }
.contact-details > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-details dt { font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-700); }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details .locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .contact-details > div { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

.form-panel { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line-strong); background: var(--white); }
.form { display: grid; gap: 22px; }
.form__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.form__head h2 { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1; text-transform: uppercase; }
.form__note { font-size: 14px; color: var(--text-muted); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 600; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper);
  font-size: 16px; transition: border-color .2s, background-color .2s;
}
.input:hover { border-color: var(--grey-500); }
.input:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 2px var(--orange); }
textarea.input { min-height: 150px; resize: vertical; }
select.input {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231d1f20' stroke-width='1.5' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input[aria-invalid="true"] { border-color: var(--orange-700); }
.field__error { font-size: 14px; color: var(--orange-700); }
.field__error:empty { display: none; }
.form__actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.form__status { padding: 16px 18px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 15px; }
.form__status[hidden] { display: none; }
.form__status--success { border-color: var(--ink); }
.form__status--error { border-color: var(--orange-700); }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Quote dialog */
.quote-dialog {
  width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0;
  border: 0; border-top: 4px solid var(--orange); background: var(--white); color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35); overflow-y: auto;
}
.quote-dialog::backdrop { background: rgba(29, 31, 32, 0.72); }
.quote-dialog[open] { animation: dialogIn .35s var(--ease) both; }
.quote-dialog__head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3.5vw, 40px) 20px; background: var(--white); border-bottom: 1px solid var(--line);
}
.quote-dialog__head .eyebrow { margin-bottom: 10px; }
.quote-dialog__title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 0.95; text-transform: uppercase; }
.quote-dialog__close {
  flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; transition: background-color .2s, color .2s;
}
.quote-dialog__close:hover { background: var(--ink); color: var(--paper); }
.quote-dialog__close svg { width: 22px; height: 22px; }
.quote-dialog .form { padding: 24px clamp(20px, 3.5vw, 40px) clamp(24px, 3.5vw, 40px); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 40px; padding-block: clamp(48px, 5vw, 72px) clamp(40px, 5vw, 56px); }
.footer-col h2 { margin-bottom: 14px; font-family: var(--font-heading); font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted-dark); }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--orange); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding-block: 28px 32px; border-top: 1px solid var(--line-dark); font-size: 14px; color: var(--text-muted-dark);
}
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--orange); }

/* 12. Motion --------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero .animate-in { animation: fadeUp .9s var(--ease) both; }
.hero .animate-in:nth-child(2) { animation-delay: .1s; }
.hero .animate-in:nth-child(3) { animation-delay: .2s; }
.hero .animate-in:nth-child(4) { animation-delay: .3s; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Spam honeypot — hidden from people, visible to bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
