/* ===========================================================
   TATTON PROJECTS — styles.css
   Black · graphite · gold. Dark theme, locked.
   =========================================================== */

:root {
  --ink:       #0C0C0D;
  --ink-2:     #141416;
  --ink-3:     #1E1F21;
  --stone:     #EDEBE7;
  --stone-2:   #B9B7B2;
  --line:      #6A6B6F;
  --line-soft: #2B2C2F;
  --gold:      #D6B136;
  --gold-dim:  #9A7F26;
  --strike:    #B04A3D;

  --serif: 'Bodoni Moda', Georgia, serif;
  --sans:  'Archivo', system-ui, -apple-system, sans-serif;
  --mono:  'DM Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --ease:   cubic-bezier(.2,.7,.3,1);
}

/* Lock the dark theme. Without this, mobile browsers force light mode
   and wash the whole page out. This was the white-background bug. */
html {
  background: #0C0C0D;
  color-scheme: dark;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--stone);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--stone-2);
  max-width: 58ch;
}

/* --- reveal: visible by default, animated only if JS is alive --- */
.rise { opacity: 1; transform: none; }
html.js .rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
html.js .rise.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s, padding .4s, border-color .4s;
}
nav.stuck {
  background: rgba(12,12,13,.94);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding: 12px var(--gutter);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; transition: height .4s; }
nav.stuck .brand img { height: 28px; }
.brand span {
  font-family: var(--serif); font-size: 19px; color: var(--stone);
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone-2); text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover { color: var(--gold); }
.nav-call {
  border: 1px solid var(--gold-dim); padding: 9px 16px;
  color: var(--gold) !important;
  transition: background .3s, color .3s;
}
.nav-call:hover { background: var(--gold); color: var(--ink) !important; }
@media (max-width: 1000px) { .nav-links a:not(.nav-call) { display: none; } }

/* ---------- hero ---------- */
header {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px var(--gutter) 90px;
  background: radial-gradient(120% 90% at 78% 45%, #1A1B1E 0%, var(--ink) 62%);
  overflow: hidden;
}
.plan {
  position: absolute; right: -6%; top: 50%;
  transform: translateY(-50%);
  width: min(56vw, 780px);
  pointer-events: none;
  opacity: .55;
}
@media (max-width: 1000px) { .plan { right: -22%; width: 120vw; opacity: .15; } }

.hero-inner { position: relative; z-index: 2; max-width: 880px; }

h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 1.0; letter-spacing: -.02em;
  margin: 22px 0 26px;
}
h1 em { font-style: italic; color: var(--gold); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 30px;
  margin-top: 38px; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--line);
}
.hero-meta b { color: var(--stone-2); font-weight: 400; }

/* ---------- buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 16px 26px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn-solid { background: var(--gold); color: var(--ink); font-weight: 500; }
.btn-solid:hover { background: var(--stone); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-soft); color: var(--stone-2); background: none; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- stat band ---------- */
.band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.band div { padding: 38px var(--gutter); border-right: 1px solid var(--line-soft); }
.band div:last-child { border-right: none; }
.band .num { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1; }
.band .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--line); margin-top: 12px;
}
@media (max-width: 820px) {
  .band { grid-template-columns: repeat(2, 1fr); }
  .band div { padding: 26px var(--gutter); border-bottom: 1px solid var(--line-soft); }
  .band div:nth-child(2n) { border-right: none; }
}

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 130px) var(--gutter); }
.sec-head { max-width: 900px; margin-bottom: 56px; }
.sec-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.04; letter-spacing: -.015em;
  margin: 18px 0 20px;
}
.sec-head h2 em { font-style: italic; color: var(--gold); }

/* ---------- three disciplines ---------- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.route {
  background: var(--ink-2);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 400px;
  transition: background .4s;
}
.route:hover { background: var(--ink-3); }
.route h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08;
  margin: 14px 0 12px;
}
.route p { color: var(--stone-2); font-size: 15px; }
.route ul { list-style: none; margin-top: 22px; }
.route li {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--line);
  padding: 10px 0; border-top: 1px solid var(--line-soft);
}
@media (max-width: 940px) { .routes { grid-template-columns: 1fr; } .route { min-height: auto; } }

/* ---------- focus (light panel) ---------- */
.refuse { background: #E7E3DC; color: #1C1C1E; }
.refuse .eyebrow { color: var(--gold-dim); }
.refuse h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 5vw, 68px); line-height: 1.02;
  letter-spacing: -.02em; margin: 18px 0 30px; max-width: 16ch;
  color: #1C1C1E;
}
.refuse h2 em { font-style: italic; color: var(--gold-dim); }
.refuse p { color: #33332F; max-width: 46ch; }
.refuse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: end; }

.struck { list-style: none; column-count: 2; column-gap: 40px; }
.struck li {
  font-family: var(--serif); font-size: clamp(18px, 1.9vw, 26px);
  color: #55534C; padding: 9px 0; position: relative;
  break-inside: avoid; width: fit-content;
}
.struck li::after {
  content: ''; position: absolute; left: 0; top: 52%;
  height: 1px; width: 0; background: var(--strike);
  transition: width .7s var(--ease);
}
.struck.in li::after { width: 100%; }
.struck.in li:nth-child(1)::after { transition-delay: .05s; }
.struck.in li:nth-child(2)::after { transition-delay: .16s; }
.struck.in li:nth-child(3)::after { transition-delay: .27s; }
.struck.in li:nth-child(4)::after { transition-delay: .38s; }
.struck.in li:nth-child(5)::after { transition-delay: .49s; }
.struck.in li:nth-child(6)::after { transition-delay: .60s; }

.floor { margin-top: 40px; padding-top: 26px; border-top: 2px solid #1C1C1E; max-width: 46ch; }
.floor-lbl { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-dim); }
.floor-num { display: block; font-family: var(--serif); font-size: clamp(46px, 6.5vw, 84px); line-height: 1; letter-spacing: -.03em; color: #1C1C1E; margin: 10px 0 12px; }
.floor-note { display: block; font-size: 14px; color: #514F49; max-width: 36ch; }
@media (max-width: 900px) { .refuse-grid { grid-template-columns: 1fr; } .struck { column-count: 1; } }

/* ---------- founder ---------- */
.founder { background: var(--ink-2); border-top: 1px solid var(--line-soft); }
.f-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; margin: 18px 0 20px; }
.founder h2 em { font-style: italic; color: var(--gold); }
.founder p { color: var(--stone-2); max-width: 54ch; }
.f-portrait {
  aspect-ratio: 4/5; background: var(--ink-3);
  border: 1px solid var(--line-soft);
  display: flex; align-items: flex-end; padding: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--line);
  overflow: hidden;
}
.f-portrait img { width: 100%; height: 100%; object-fit: cover; }

.ladder { list-style: none; margin-top: 32px; }
.ladder li {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
  align-items: baseline;
}
.ladder .yr { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--gold); }
.ladder .role { font-family: var(--serif); font-size: 21px; color: var(--stone); }
.ladder .role small { display: block; font-family: var(--sans); font-size: 13.5px; color: #918F8B; margin-top: 4px; }

.roll { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.roll .hdr { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.roll ul { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; }
.roll li {
  font-family: var(--serif); font-size: clamp(14px, 1.4vw, 18px);
  color: var(--stone-2); border: 1px solid var(--line-soft);
  padding: 8px 14px; transition: border-color .3s, color .3s;
}
.roll li:hover { border-color: var(--gold-dim); color: var(--stone); }
.roll .note { margin-top: 20px; font-size: 13px; color: #8A8884; max-width: 56ch; line-height: 1.6; }
@media (max-width: 900px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; }
.step { padding: 28px 22px 28px 0; border-top: 2px solid var(--line-soft); position: relative; }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); display: block; margin-bottom: 12px; }
.step h4 { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.12; margin-bottom: 10px; color: var(--stone); }
.step p { font-size: 14px; color: var(--stone-2); line-height: 1.55; }
.step::before {
  content: ''; position: absolute; top: -2px; left: 0;
  height: 2px; width: 0; background: var(--gold);
  transition: width 1.1s var(--ease);
}
.step.in::before { width: calc(100% - 22px); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding-right: 0; }
  .step.in::before { width: 100%; }
}

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 32px; }
.filter {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; padding: 10px 17px;
  border: 1px solid var(--line-soft); background: none;
  color: var(--stone-2); cursor: pointer;
  transition: background .3s, border-color .3s, color .3s;
}
.filter:hover { border-color: var(--line); }
.filter.on { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 500; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
.proj {
  background: var(--ink-2); border: none; padding: 0;
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column;
  transition: background .4s;
}
.proj:hover { background: var(--ink-3); }
.proj.hide { display: none; }
.proj.live { outline: 1px solid var(--gold-dim); outline-offset: -1px; }

.shot { aspect-ratio: 16/10; background: var(--ink-3); overflow: hidden; position: relative; border-bottom: 1px solid var(--line-soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.proj:hover .shot img { transform: scale(1.05); }
.shot .noimg {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--line); text-align: center; padding: 20px;
}
.shot .yr {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  color: var(--gold); background: rgba(12,12,13,.82); padding: 5px 9px;
}
.pbody { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; flex: 1; }
.val { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1; color: var(--gold); }
.proj h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 14px 0 6px; color: var(--stone); }
.loc { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--line); }
.desc { font-size: 14px; color: var(--stone-2); margin-top: 11px; line-height: 1.55; }
.type {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone-2);
  border: 1px solid var(--line-soft); padding: 6px 10px;
  align-self: flex-start; margin-top: 18px;
}
.proj.live .type { border-color: var(--gold); color: var(--gold); }
.pre { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dim); margin-top: 11px; display: block; }
@media (max-width: 1000px) { .projects { grid-template-columns: 1fr; } }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); margin-top: 8px; }
.sector { background: var(--ink-2); padding: 28px; transition: background .4s; }
.sector:hover { background: var(--ink-3); }
.sector .k { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.sector h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; margin-bottom: 8px; }
.sector p { font-size: 14px; color: var(--stone-2); }
@media (max-width: 800px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- silopod ---------- */
.pod-sec { border-top: 1px solid var(--line-soft); }
.pod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 76px); align-items: center; }
.pod-sec h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; margin: 18px 0 20px; }
.pod-sec h2 em { font-style: italic; color: var(--gold); }
.pod-shot {
  aspect-ratio: 4/3; background: var(--ink-2);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 28px; overflow: hidden;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--line); line-height: 2;
}
.pod-shot img { width: 100%; height: 100%; object-fit: cover; }
.pod-table { width: 100%; border-collapse: collapse; margin-top: 26px; }
.pod-table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--line); text-align: left;
  padding: 0 0 12px; font-weight: 400; border-bottom: 1px solid var(--line-soft);
}
.pod-table th:last-child, .pod-table td:last-child { text-align: right; }
.pod-table td { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--stone-2); }
.pod-table .m { font-family: var(--serif); font-size: 17px; color: var(--stone); }
.pod-table .p { font-family: var(--mono); font-size: 13px; color: var(--gold); }
@media (max-width: 900px) { .pod-grid { grid-template-columns: 1fr; } }

/* ---------- land ---------- */
.land { background: var(--ink-2); border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.land h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 52px); line-height: 1.04; margin: 18px 0 20px; }
.land h2 em { font-style: italic; color: var(--gold); }
.land-crit { list-style: none; }
.land-crit li {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--line);
}
.land-crit li b { color: var(--stone); font-weight: 400; text-align: right; }
@media (max-width: 900px) { .land { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- footer ---------- */
footer { padding: clamp(56px, 8vw, 90px) var(--gutter) 36px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 46px; }
.foot-grid h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; max-width: 14ch; }
.foot-grid a { color: var(--stone-2); text-decoration: none; display: block; padding: 5px 0; font-size: 15px; transition: color .25s; }
.foot-grid a:hover { color: var(--gold); }
.foot-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--line); margin-bottom: 14px; }
.foot-btm {
  margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--line);
}
.foot-btm b { color: var(--stone-2); font-weight: 400; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- case study overlay ---------- */
#cs {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); overflow-y: auto;
  transform: translateY(100%); visibility: hidden;
  transition: transform .6s var(--ease), visibility .6s;
}
#cs.open { transform: none; visibility: visible; }
.cs-close {
  position: fixed; top: 20px; right: var(--gutter); z-index: 160;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--stone);
  background: rgba(12,12,13,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--line-soft); padding: 12px 20px; cursor: pointer;
  transition: border-color .3s, color .3s;
}
.cs-close:hover { border-color: var(--gold); color: var(--gold); }

.cs-hero { position: relative; min-height: 64svh; display: flex; align-items: flex-end; padding: 120px var(--gutter) 52px; overflow: hidden; }
.cs-hero .bg { position: absolute; inset: 0; }
.cs-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero .bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,13,.97) 6%, rgba(12,12,13,.75) 46%, rgba(12,12,13,.45) 100%);
}
.cs-hero .noimg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 70% 40%, #232427, var(--ink) 66%); }
.cs-in { position: relative; z-index: 2; max-width: 900px; }
#cs h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5.4vw, 76px); line-height: 1.02; margin: 16px 0 22px; }
.cs-meta {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  padding-top: 20px; border-top: 1px solid rgba(237,235,231,.2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone-2);
}
.cs-meta b { color: var(--gold); font-weight: 400; }
.attrib {
  margin-top: 20px; padding: 14px 18px;
  border-left: 2px solid var(--gold-dim);
  background: rgba(214,177,54,.08);
  font-size: 13.5px; color: var(--stone-2); max-width: 64ch;
}
.cs-two { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 940px) { .cs-two { grid-template-columns: 1fr; gap: 42px; } }
.cs-ov p { font-size: clamp(16px, 1.6vw, 19px); color: var(--stone-2); max-width: 60ch; margin-bottom: 18px; }
.cs-ov p:first-child { color: var(--stone); font-size: clamp(18px, 1.9vw, 24px); font-family: var(--serif); line-height: 1.45; }

.facts { list-style: none; border-top: 1px solid var(--line-soft); }
.facts li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--line);
}
.facts li b { color: var(--stone); font-weight: 400; text-align: right; }

.scope-sec { background: var(--ink-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
#cs h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.08; margin: 14px 0 30px; }
#cs h2 em { font-style: italic; color: var(--gold); }
.scope { list-style: none; columns: 2; column-gap: 56px; }
@media (max-width: 800px) { .scope { columns: 1; } }
.scope li { padding: 12px 0 12px 24px; border-bottom: 1px solid var(--line-soft); position: relative; break-inside: avoid; color: var(--stone-2); font-size: 15px; }
.scope li::before { content: ''; position: absolute; left: 0; top: 21px; width: 10px; height: 1px; background: var(--gold); }

.co { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } }
.co > div { background: var(--ink); padding: clamp(26px, 3vw, 42px); }
.co h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 12px 0; }
.co p { color: var(--stone-2); font-size: 15.5px; }

.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); }
.gal figure { background: var(--ink-2); position: relative; overflow: hidden; cursor: zoom-in; margin: 0; }
.gal figure:nth-child(3n+1) { grid-column: span 2; }
@media (max-width: 800px) { .gal { grid-template-columns: 1fr; } .gal figure:nth-child(3n+1) { grid-column: span 1; } }
.gal img { width: 100%; transition: transform 1.1s var(--ease); }
.gal figure:hover img { transform: scale(1.03); }
.gal figcaption {
  position: absolute; inset: auto 0 0 0; padding: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
  background: linear-gradient(to top, rgba(12,12,13,.92), transparent);
  opacity: 0; transition: opacity .4s;
}
.gal figure:hover figcaption { opacity: 1; }

.cs-next { border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 900px) { .cs-next { grid-template-columns: 1fr; } }
.cs-next button { background: var(--ink-2); padding: 30px; border: none; text-align: left; cursor: pointer; color: inherit; font: inherit; transition: background .4s; }
.cs-next button:hover { background: var(--ink-3); }
.cs-next .v { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; }
.cs-next h4 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 10px 0 4px; color: var(--stone); }

/* ---------- lightbox ---------- */
#lb {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(8,8,9,.97);
  display: none; align-items: center; justify-content: center;
  padding: 24px; cursor: zoom-out;
}
#lb.on { display: flex; }
#lb img { max-width: 100%; max-height: 88vh; object-fit: contain; }
#lb .cap {
  position: absolute; inset: auto 0 22px 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--line);
}

/* ---------- accessibility ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rise { opacity: 1; transform: none; }
  .step::before, .struck li::after { width: 100%; }
  html { scroll-behavior: auto; }
}


/* ===========================================================
   ANIMATION
   Rule: nothing here may hide content that JS must restore.
   Entrance animations run on CSS `animation` with fill-mode both,
   so they complete whether or not JavaScript ever loads.
   =========================================================== */

/* ---------- scroll progress ---------- */
#prog {
  position: fixed; top: 0; left: 0; z-index: 99;
  height: 2px; width: 0%;
  background: var(--gold);
  transition: width .1s linear;
}

/* ---------- hero: lines rise on page load (CSS only) ---------- */
.ln { display: block; overflow: hidden; }
.ln > span {
  display: block;
  animation: lineUp 1s cubic-bezier(.16,1,.3,1) both;
}
@keyframes lineUp {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ---------- hero: the site plan sets itself out ---------- */
.plan .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: draw 2.4s cubic-bezier(.4,.1,.2,1) both;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.plan .pop { animation: pop .6s ease both; }
@keyframes pop { from { opacity: 0; } to { opacity: 1; } }

/* continuous ambient motion: the plan stays alive after it sets itself out */
.plan .ants { animation: ants 9s linear infinite; animation-delay: 4.2s; }
.plan .scan { opacity: 0; animation: scan 7s cubic-bezier(.45,0,.55,1) infinite; animation-delay: 4.4s; }
.plan .ping { transform-box: fill-box; transform-origin: center; animation: ping 3s ease-out infinite; animation-delay: 4.6s; }
@keyframes ants { to { stroke-dashoffset: -130; } }
@keyframes scan {
  0%   { transform: translateX(0);     opacity: 0; }
  7%   { opacity: .5; }
  46%  { transform: translateX(680px); opacity: .5; }
  55%  { transform: translateX(680px); opacity: 0; }
  100% { transform: translateX(0);     opacity: 0; }
}
@keyframes ping {
  0%       { transform: scale(1); opacity: .7; }
  70%,100% { transform: scale(4); opacity: 0; }
}

/* ---------- ambient glow behind the hero ---------- */
.glow {
  position: absolute; z-index: 0;
  width: 780px; height: 780px;
  left: 62%; top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214,177,54,.10) 0%, transparent 62%);
  pointer-events: none;
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .75; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.09); }
}
@media (max-width: 900px) { .glow { display: none; } }

/* ---------- scroll cue ---------- */
.scrollcue {
  position: absolute; bottom: 30px; left: var(--gutter); z-index: 2;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--line);
  animation: pop 1s ease 1.6s both;
}
.scrollcue i {
  display: block; width: 38px; height: 1px;
  background: var(--line-soft); position: relative; overflow: hidden;
}
.scrollcue i::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold);
  animation: sweep 2.4s cubic-bezier(.2,.7,.3,1) infinite;
}
@keyframes sweep {
  0%        { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%);  }
}

/* ---------- client marquee ---------- */
.ticker {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden; padding: 15px 0;
}
.track {
  display: flex; width: max-content;
  animation: roll 46s linear infinite;
}
.ticker:hover .track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.track span {
  display: flex; align-items: center; gap: 26px;
  padding: 0 26px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--line);
  transition: color .3s;
}
.track span:hover { color: var(--gold); }
.track span::after {
  content: ''; width: 4px; height: 4px;
  background: var(--gold); border-radius: 50%; opacity: .7;
}

/* ---------- nav underline ---------- */
.nav-links a:not(.nav-call) { position: relative; padding: 4px 0; }
.nav-links a:not(.nav-call)::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:not(.nav-call):hover::after { width: 100%; }

/* ---------- section heading rule draws in ---------- */
.sec-head { position: relative; padding-top: 28px; }
.sec-head::before {
  content: ''; position: absolute; top: 0; left: 0;
  height: 1px; width: 0; background: var(--gold);
  transition: width 1.3s var(--ease) .2s;
}
.sec-head.in::before { width: 90px; }
html:not(.js) .sec-head::before { width: 90px; }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn:hover::before { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn-solid:hover { box-shadow: 0 14px 40px rgba(214,177,54,.22); }

/* ---------- stat panels sweep on hover ---------- */
.band div { position: relative; overflow: hidden; }
.band div::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(214,177,54,.07) 50%, transparent 60%);
  transform: translateX(-100%);
}
.band div:hover::after { transform: translateX(100%); transition: transform 1s var(--ease); }

/* ---------- discipline cards ---------- */
.route { transition: background .45s var(--ease), transform .45s var(--ease); }
.route:hover { transform: translateY(-5px); }
.route li { transition: color .3s, padding-left .3s var(--ease); }
.route:hover li { color: var(--stone-2); padding-left: 8px; }
.route::after {
  content: ''; position: absolute; right: -70px; bottom: -80px;
  width: 230px; height: 230px;
  border: 1px solid var(--line-soft); border-radius: 50%;
  transition: transform 1s var(--ease);
}
.route { position: relative; overflow: hidden; }
.route:hover::after { transform: scale(1.16); }

/* ---------- project cards ---------- */
.proj { position: relative; overflow: hidden; transition: background .4s, transform .45s var(--ease); }
.proj:hover { transform: translateY(-5px); }

/* surveyor's crop marks snap on */
.proj::before, .proj::after {
  content: ''; position: absolute; z-index: 3;
  width: 15px; height: 15px;
  border: 1px solid var(--gold);
  opacity: 0; transition: opacity .35s, transform .45s var(--ease);
}
.proj::before { top: 12px; left: 12px; border-right: 0; border-bottom: 0; transform: translate(6px,6px); }
.proj::after  { top: 12px; right: 12px; border-left: 0; border-bottom: 0; transform: translate(-6px,6px); }
.proj:hover::before, .proj:hover::after { opacity: 1; transform: none; }

.proj .val { transition: transform .4s var(--ease); }
.proj:hover .val { transform: translateX(4px); }

/* staggered entrance — capped so late cards aren't stuck waiting */
html.js .proj { transition-delay: 0s; }
html.js .projects .proj:nth-child(1) { transition-delay: .00s; }
html.js .projects .proj:nth-child(2) { transition-delay: .06s; }
html.js .projects .proj:nth-child(3) { transition-delay: .12s; }
html.js .projects .proj:nth-child(4) { transition-delay: .18s; }
html.js .projects .proj:nth-child(5) { transition-delay: .06s; }
html.js .projects .proj:nth-child(6) { transition-delay: .12s; }

/* ---------- sector + pod rows ---------- */
.sector { transition: background .4s, transform .4s var(--ease); }
.sector:hover { transform: translateY(-4px); }
.pod-table td { transition: color .3s, padding-left .3s var(--ease); }
.pod-table tr:hover td { color: var(--stone); padding-left: 6px; }
.land-crit li { transition: padding-left .3s var(--ease), color .3s; }
.land-crit li:hover { padding-left: 8px; color: var(--stone-2); }
.ladder li { transition: padding-left .35s var(--ease); }
.ladder li:hover { padding-left: 10px; }
.roll li { transition: border-color .3s, color .3s, transform .3s var(--ease); }
.roll li:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--gold); }

/* ---------- case study hero: slow zoom out ---------- */
.cs-hero .bg img { transform: scale(1.07); transition: transform 10s linear; }
#cs.open .cs-hero .bg img { transform: scale(1); }

/* ---------- reduced motion: kill all of it ---------- */
@media (prefers-reduced-motion: reduce) {
  .ln > span, .plan .draw, .plan .pop, .plan .ants, .plan .scan, .plan .ping, .glow, .scrollcue, .track { animation: none !important; }
  .plan .ping, .plan .scan { display: none; }
  .ln > span { transform: none; opacity: 1; }
  .plan .draw { stroke-dashoffset: 0; }
  .plan .pop { opacity: 1; }
  .sec-head::before { width: 90px; }
  .cs-hero .bg img { transform: none; }
}


/* ===========================================================
   BACKGROUND SAFETY NET
   -----------------------------------------------------------
   Some hosts (previews, embeds, in-app browsers) override the
   body background. Any section relying on `body` showing through
   then renders on white — light text, white page, unreadable.

   So: every top-level block paints its OWN background. Nothing
   here depends on `body`. This cannot fail.
   =========================================================== */

html, body { background-color: #0C0C0D !important; }

/* fixed backdrop behind everything, in case even that is overridden */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background: #0C0C0D;
  pointer-events: none;
}

/* every top-level block paints itself */
header,
section,
footer,
.band,
.ticker,
#cs {
  background-color: var(--ink);
}

/* the ones that are deliberately a different shade */
.band,
.ticker,
.founder,
.land   { background-color: var(--ink-2); }

.refuse { background-color: #E7E3DC; }

/* hero keeps its radial */
header {
  background-image: radial-gradient(120% 90% at 78% 45%, #1A1B1E 0%, #0C0C0D 62%);
}

/* case-study inner blocks */
.scope-sec { background-color: var(--ink-2); }
.co > div  { background-color: var(--ink); }

/* belt and braces on the light panel's text */
.refuse,
.refuse h2,
.refuse .floor-num { color: #1C1C1E; }
.refuse p { color: #33332F; }
.refuse .floor-note { color: #514F49; }


/* ===========================================================
   LEGIBILITY + CONTRAST
   =========================================================== */

:root {
  --stone-2: #CFCDC8;   /* was #B9B7B2 — too dim */
  --line:    #85868A;   /* was #6A6B6F — labels were near-invisible */
}

body { font-size: 17px; line-height: 1.7; }
.lede { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.65; }
.desc { font-size: 15px; color: var(--stone-2); }
.route p, .sector p, .co p { font-size: 15.5px; color: var(--stone-2); }
.step p { font-size: 15px; color: var(--stone-2); }
.ladder .role small { color: #A3A19C; font-size: 14px; }
.roll .note { color: #A3A19C; font-size: 14px; }
.floor-note { color: #55555A; }
.refuse p { color: #3C3C3A; }
.foot-btm { color: #8A8B8F; }

/* THE BUG: .foot-grid a was overriding .btn-solid, giving grey on gold */
.foot-grid a.btn,
.foot-grid a.btn-solid,
footer .btn-solid {
  color: var(--ink) !important;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  font-size: 13px;
  letter-spacing: .12em;
}
.foot-grid a.btn:hover { color: var(--ink) !important; padding-left: 28px; }
.foot-grid a.btn-ghost { color: var(--stone-2) !important; }

/* same guard anywhere else a .btn sits inside a coloured block */
.land .btn-solid, .refuse .btn-solid, section .btn-solid { color: var(--ink); }


/* ===========================================================
   ENQUIRY FORM
   =========================================================== */
.enquire { background-color: var(--ink-2); border-top: 1px solid var(--line-soft); }
.enq-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .enq-grid { grid-template-columns: 1fr; gap: 40px; } }

.enq-form { display: grid; gap: 16px; }
.enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .enq-row { grid-template-columns: 1fr; } }

.enq-form label {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--line); margin-bottom: 8px;
}
.enq-form input,
.enq-form select,
.enq-form textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  color: var(--stone);
  font-family: var(--sans); font-size: 16px;
  padding: 15px 16px;
  transition: border-color .3s, background .3s;
  border-radius: 0;
  -webkit-appearance: none;
}
.enq-form textarea { min-height: 130px; resize: vertical; }
.enq-form input:focus,
.enq-form select:focus,
.enq-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #101012;
}
.enq-form select { color: var(--stone-2); }
.enq-form button { width: 100%; justify-content: center; margin-top: 6px; }
.enq-note {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--line); margin-top: 4px;
}
.hp { position: absolute; left: -9999px; }   /* honeypot */

.enq-why { list-style: none; margin-top: 28px; }
.enq-why li {
  display: grid; grid-template-columns: 22px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
  color: var(--stone-2); font-size: 15px;
}
.enq-why .t { color: var(--gold); font-family: var(--mono); font-size: 12px; }


/* ===========================================================
   FAQ  (drives Google rich results)
   =========================================================== */
.faq { border-top: 1px solid var(--line-soft); }
.faq-list { border-top: 1px solid var(--line-soft); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; text-align: left;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(19px, 2vw, 26px); line-height: 1.3;
  color: var(--stone);
  transition: color .3s;
}
.faq-q:hover { color: var(--gold); }
.faq-q i {
  flex: 0 0 auto; width: 16px; height: 16px; position: relative;
  transition: transform .4s var(--ease);
}
.faq-q i::before, .faq-q i::after {
  content: ''; position: absolute; background: var(--gold);
  transition: opacity .3s;
}
.faq-q i::before { left: 0; top: 7px; width: 16px; height: 1.5px; }
.faq-q i::after  { top: 0; left: 7px; width: 1.5px; height: 16px; }
.faq-item.open .faq-q i { transform: rotate(135deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .5s var(--ease), padding .4s var(--ease);
}
.faq-item.open .faq-a { max-height: 500px; padding-bottom: 26px; }
.faq-a p { color: var(--stone-2); max-width: 68ch; font-size: 16px; }
html:not(.js) .faq-a { max-height: none; padding-bottom: 26px; }   /* readable without JS */


/* ===========================================================
   AREAS WE COVER  (local SEO)
   =========================================================== */
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.areas span {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-2);
  border: 1px solid var(--line-soft);
  padding: 9px 14px;
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.areas span:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }


/* ===========================================================
   MORE ANIMATION
   Every rule here is additive. None can hide content.
   =========================================================== */

/* --- headline: gold underline sweeps in under the em --- */
h1 em { position: relative; display: inline-block; }
h1 em::after {
  content: ''; position: absolute; left: 0; bottom: -.06em;
  height: 3px; width: 0; background: var(--gold);
  animation: swipe 1s cubic-bezier(.16,1,.3,1) 1.5s both;
}
@keyframes swipe { to { width: 100%; } }

/* --- section headings: the em word gets a soft gold glow --- */
.sec-head h2 em, .land h2 em, .pod-sec h2 em, .founder h2 em {
  text-shadow: 0 0 34px rgba(214,177,54,.28);
}

/* --- stat numbers pulse gold as they land --- */
.band .num { transition: color .5s; }
.band div:hover .num { color: var(--gold); }

/* --- the discipline cards get a gold top edge on hover --- */
.route::before {
  content: ''; position: absolute; top: 0; left: 0;
  height: 2px; width: 0; background: var(--gold);
  transition: width .6s var(--ease);
  z-index: 2;
}
.route:hover::before { width: 100%; }

/* --- project card: gold underline grows under the title --- */
.proj h4 { position: relative; display: inline-block; }
.proj h4::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  height: 1px; width: 0; background: var(--gold);
  transition: width .5s var(--ease);
}
.proj:hover h4::after { width: 100%; }

/* --- project image: subtle brighten + warm on hover --- */
.shot img { filter: saturate(.85) brightness(.85); }
.proj:hover .shot img { filter: saturate(1.05) brightness(1.02); }

/* --- ladder rungs light up in sequence --- */
.ladder li { position: relative; }
.ladder li::before {
  content: ''; position: absolute; left: 0; top: -1px;
  height: 1px; width: 0; background: var(--gold);
  transition: width .8s var(--ease);
}
.ladder li:hover::before { width: 100%; }

/* --- FAQ: gold bar slides in from the left when open --- */
.faq-item { position: relative; }
.faq-item::before {
  content: ''; position: absolute; left: -20px; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease);
}
.faq-item.open::before { transform: scaleY(1); }
@media (max-width: 700px) { .faq-item::before { left: -10px; } }

/* --- form fields lift when focused --- */
.enq-form input, .enq-form select, .enq-form textarea {
  transition: border-color .3s, background .3s, transform .3s var(--ease), box-shadow .3s;
}
.enq-form input:focus, .enq-form select:focus, .enq-form textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}

/* --- footer contact links slide + gold dot --- */
.foot-grid a:not(.btn) { position: relative; padding-left: 0; }
.foot-grid a:not(.btn)::before {
  content: ''; position: absolute; left: -14px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  opacity: 0; transform: translateY(-50%) scale(.4);
  transition: opacity .3s, transform .3s var(--ease);
}
.foot-grid a:not(.btn):hover::before { opacity: 1; transform: translateY(-50%) scale(1); }

/* --- process steps: number counts up in gold --- */
.step .n { transition: color .3s, letter-spacing .4s var(--ease); }
.step:hover .n { color: var(--stone); letter-spacing: .26em; }

/* --- area chips: cascade in --- */
html.js .areas span { opacity: 0; transform: translateY(10px); }
html.js .rise.in .areas span,
html.js .areas span { animation: chip .5s var(--ease) both; }
@keyframes chip { to { opacity: 1; transform: none; } }
.areas span:nth-child(1)  { animation-delay: .02s }
.areas span:nth-child(2)  { animation-delay: .05s }
.areas span:nth-child(3)  { animation-delay: .08s }
.areas span:nth-child(4)  { animation-delay: .11s }
.areas span:nth-child(5)  { animation-delay: .14s }
.areas span:nth-child(6)  { animation-delay: .17s }
.areas span:nth-child(7)  { animation-delay: .20s }
.areas span:nth-child(8)  { animation-delay: .23s }
.areas span:nth-child(9)  { animation-delay: .26s }
.areas span:nth-child(10) { animation-delay: .29s }
.areas span:nth-child(11) { animation-delay: .32s }
.areas span:nth-child(12) { animation-delay: .35s }
.areas span:nth-child(13) { animation-delay: .38s }
.areas span:nth-child(14) { animation-delay: .41s }
.areas span:nth-child(15) { animation-delay: .44s }
.areas span:nth-child(16) { animation-delay: .47s }
.areas span:nth-child(17) { animation-delay: .51s }
.areas span:nth-child(18) { animation-delay: .54s }
.areas span:nth-child(19) { animation-delay: .57s }
.areas span:nth-child(20) { animation-delay: .60s }

@media (prefers-reduced-motion: reduce) {
  h1 em::after { width: 100%; animation: none; }
  html.js .areas span { opacity: 1; transform: none; animation: none; }
  .faq-item::before { transform: scaleY(1); }
}


/* ---------- address + nationwide chip ---------- */
.foot-grid address {
  font-style: normal;
  color: var(--stone-2);
  font-size: 15px;
  line-height: 1.75;
  padding: 8px 0 0;
}
.areas .nationwide {
  border-color: var(--gold-dim);
  color: var(--gold);
  background: rgba(214,177,54,.07);
}
.areas .nationwide:hover { background: rgba(214,177,54,.14); }


/* ===========================================================
   THE BUILD — house constructs itself as you scroll the stages
   -----------------------------------------------------------
   SVG notes:
   · transform on <g> needs transform-box: fill-box, or the origin
     is the SVG viewport and things fly off-screen.
   · pathLength="100" normalises every path so one dash value works
     regardless of the path's real length.
   =========================================================== */

.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: start; }
@media (max-width: 900px) { .build-grid { grid-template-columns: 1fr; gap: 8px; } }

.build-stage { position: sticky; top: 104px; padding: 24px 0; }
@media (max-width: 900px) {
  .build-stage {
    top: 62px; padding: 10px 0 16px; z-index: 5;
    background: var(--ink);
    box-shadow: 0 18px 30px -18px var(--ink);
  }
}

.house { width: 100%; height: auto; display: block; overflow: visible; }

/* every stage group starts hidden — opacity only, no transform to go wrong */
.house .g {
  opacity: 0;
  transition: opacity .75s var(--ease);
}

/* cumulative: reaching stage N shows 1..N */
.house.s1 .s1,
.house.s2 .s1, .house.s2 .s2,
.house.s3 .s1, .house.s3 .s2, .house.s3 .s3,
.house.s4 .s1, .house.s4 .s2, .house.s4 .s3, .house.s4 .s4,
.house.s5 .s1, .house.s5 .s2, .house.s5 .s3, .house.s5 .s4, .house.s5 .s5 {
  opacity: 1;
}

/* once the walls are up, the setting-out and frame recede behind them */
.house.s4 .s1, .house.s5 .s1 { opacity: .22; }
.house.s4 .s3, .house.s5 .s3 { opacity: .14; }
.house.s5 .s2 { opacity: .45; }

/* the frame draws itself — pathLength normalises every stroke to 100 */
.house .s3 path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.house.s3 .s3 path,
.house.s4 .s3 path,
.house.s5 .s3 path { stroke-dashoffset: 0; }

/* lights on, room by room */
.house .lit rect { opacity: 0; }
.house.s5 .lit rect { animation: lightsOn .55s ease both; }
.house.s5 .lit rect:nth-of-type(1) { animation-delay: .30s }
.house.s5 .lit rect:nth-of-type(2) { animation-delay: .52s }
.house.s5 .lit rect:nth-of-type(3) { animation-delay: .40s }
.house.s5 .lit rect:nth-of-type(4) { animation-delay: .68s }
.house.s5 .lit rect:nth-of-type(5) { animation-delay: .58s }
@keyframes lightsOn {
  0%   { opacity: 0 }
  50%  { opacity: 1 }
  66%  { opacity: .5 }
  100% { opacity: .92 }
}

/* warm glow once it's finished */
.house { transition: filter 1.2s var(--ease), opacity .75s var(--ease); }
.house.s5 { filter: drop-shadow(0 16px 46px rgba(214,177,54,.16)); }

.build-cap {
  margin-top: 16px; text-align: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); min-height: 15px;
}

/* --- the five stages --- */
.stages { list-style: none; }
.stg {
  padding: 30px 0 30px 28px;
  border-left: 2px solid var(--line-soft);
  position: relative;
  opacity: .3;
  transition: opacity .5s var(--ease), border-color .5s;
}
.stg.done { border-left-color: var(--gold-dim); opacity: .55; }
.stg.on   { border-left-color: var(--gold); opacity: 1; }
.stg::before {
  content: ''; position: absolute; left: -6px; top: 38px;
  width: 10px; height: 10px;
  background: var(--ink); border: 1px solid var(--line-soft);
  transition: all .4s var(--ease);
}
.stg.done::before { border-color: var(--gold-dim); background: var(--gold-dim); }
.stg.on::before   { border-color: var(--gold);     background: var(--gold); transform: scale(1.3); }
.stg .n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.stg h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(23px,2.5vw,32px); line-height: 1.12; margin-bottom: 11px; color: var(--stone); }
.stg p  { color: var(--stone-2); font-size: 15.5px; max-width: 46ch; }

/* no JS? show the finished house and every stage */
html:not(.js) .house .g            { opacity: 1; }
html:not(.js) .house .s3 path      { stroke-dashoffset: 0; }
html:not(.js) .house .lit rect     { opacity: .92; }
html:not(.js) .stg                 { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .house .g        { opacity: 1 !important; }
  .house .s3 path  { stroke-dashoffset: 0 !important; }
  .house .lit rect { opacity: .92 !important; animation: none !important; }
  .stg             { opacity: 1 !important; }
}


/* ===========================================================
   DRAWING → BUILDING
   The line drawing dissolves into the real photograph.
   =========================================================== */

.stack { position: relative; }

.reveal-photo {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.4s var(--ease), transform 2.4s var(--ease);
  pointer-events: none;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.reveal-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.02) contrast(1.04);
}
.reveal-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,12,13,.55) 0%, transparent 45%);
}
.rp-tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(12,12,13,.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--gold-dim);
  padding: 7px 11px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .6s var(--ease) .9s, transform .6s var(--ease) .9s;
}

/* at the final stage: photo in, drawing out */
.stack.done .reveal-photo { opacity: 1; transform: scale(1); }
.stack.done .rp-tag       { opacity: 1; transform: none; }
.stack.done .house,
.stack.done .office       { opacity: 0; transition: opacity 1.2s var(--ease); }

/* gold glow behind the finished photo */
.stack.done { filter: drop-shadow(0 24px 60px rgba(214,177,54,.18)); }

html:not(.js) .reveal-photo { opacity: 1; transform: none; position: relative; }
html:not(.js) .reveal-photo .rp-tag { opacity: 1; transform: none; }
html:not(.js) .house, html:not(.js) .office { display: none; }


/* ===========================================================
   OFFICE FIT-OUT BUILD
   =========================================================== */
.fitout-build { background-color: var(--ink-2) !important; border-top: 1px solid var(--line-soft); }
.fitout-build .stg { border-left-color: #35363A; }
.fitout-build .stg::before { background: var(--ink-2); }

.office { width: 100%; height: auto; display: block; overflow: visible; }
.office .g { opacity: 0; transition: opacity .75s var(--ease); }

.office.f1 .f1,
.office.f2 .f1, .office.f2 .f2,
.office.f3 .f1, .office.f3 .f2, .office.f3 .f3,
.office.f4 .f1, .office.f4 .f2, .office.f4 .f3, .office.f4 .f4,
.office.f5 .f1, .office.f5 .f2, .office.f5 .f3, .office.f5 .f4, .office.f5 .f5 {
  opacity: 1;
}
/* services disappear above the ceiling, as they do in reality */
.office.f4 .f2, .office.f5 .f2 { opacity: .12; }
.office.f4 .f1, .office.f5 .f1 { opacity: .2; }

/* the services draw themselves in */
.office .f2 path { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.1s var(--ease); }
.office.f2 .f2 path, .office.f3 .f2 path, .office.f4 .f2 path, .office.f5 .f2 path { stroke-dashoffset: 0; }

/* the lights come on */
.office .olit rect { opacity: 0; }
.office.f5 .olit rect { animation: lightsOn .5s ease both; }
.office.f5 .olit rect:nth-of-type(1) { animation-delay: .25s }
.office.f5 .olit rect:nth-of-type(2) { animation-delay: .38s }
.office.f5 .olit rect:nth-of-type(3) { animation-delay: .32s }
.office.f5 .olit rect:nth-of-type(4) { animation-delay: .50s }
.office.f5 .olit rect:nth-of-type(5) { animation-delay: .58s }

html:not(.js) .office .g { opacity: 1; }
html:not(.js) .office .f2 path { stroke-dashoffset: 0; }
html:not(.js) .office .olit rect { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .office .g { opacity: 1 !important; }
  .office .f2 path { stroke-dashoffset: 0 !important; }
  .office .olit rect { opacity: .9 !important; animation: none !important; }
  .reveal-photo { opacity: 1 !important; transform: none !important; }
  .rp-tag { opacity: 1 !important; transform: none !important; }
  .stack.done .house, .stack.done .office { opacity: 0 !important; }
}


/* ---------- skip link + active nav ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--ink);
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 12px 20px; text-decoration: none;
}
.skip:focus { left: 12px; top: 12px; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }


/* ===========================================================
   SUB-PAGES — blog + costs
   =========================================================== */

.page-head {
  position: relative;
  min-height: 62svh;
  display: flex; align-items: center;
  padding: 150px var(--gutter) 70px;
  background-color: var(--ink);
  background-image: radial-gradient(110% 80% at 74% 42%, #1A1B1E 0%, #0C0C0D 60%);
  border-bottom: 1px solid var(--line-soft);
}
.page-head .hero-inner { max-width: 860px; }
.page-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 6vw, 82px); line-height: 1;
  letter-spacing: -.02em; margin: 20px 0 24px;
}
.page-head h1 em { font-style: italic; color: var(--gold); }

section.alt { background-color: var(--ink-2) !important; border-top: 1px solid var(--line-soft); }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px,2.3vw,30px); line-height: 1.12; margin: 14px 0 22px; color: var(--stone); }

/* ---------- BLOG ---------- */
.post-list { display: grid; gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.post {
  background: var(--ink-2);
  display: grid; grid-template-columns: 300px 1fr;
  gap: 0; cursor: pointer;
  transition: background .4s var(--ease);
}
.post:hover { background: var(--ink-3); }
.post.lead { grid-template-columns: 1fr; }
.post.lead .post-shot { aspect-ratio: 21/8; }
.post.lead h2 { font-size: clamp(28px, 3.4vw, 44px); }
@media (max-width: 780px) { .post { grid-template-columns: 1fr; } }

.post-shot { overflow: hidden; background: var(--ink-3); aspect-ratio: 4/3; }
.post-shot img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) brightness(.82);
  transition: transform 1.2s var(--ease), filter .5s;
}
.post:hover .post-shot img { transform: scale(1.05); filter: saturate(1.02) brightness(1); }

.post-body { padding: clamp(26px, 3.4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.post-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--line);
  margin-bottom: 16px;
}
.post-meta .cat { color: var(--gold); border: 1px solid var(--gold-dim); padding: 5px 10px; }
.post h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.14;
  color: var(--stone); margin-bottom: 14px;
  transition: color .3s;
}
.post:hover h2 { color: var(--gold); }
.post-sum { color: var(--stone-2); font-size: 16px; max-width: 62ch; }
.post-more {
  display: inline-block; margin-top: 22px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  transition: transform .35s var(--ease);
}
.post:hover .post-more { transform: translateX(6px); }

/* ---------- ARTICLE OVERLAY ---------- */
#article {
  position: fixed; inset: 0; z-index: 150;
  background: var(--ink); overflow-y: auto;
  transform: translateY(100%); visibility: hidden;
  transition: transform .6s var(--ease), visibility .6s;
}
#article.open { transform: none; visibility: visible; }

.art { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) 0; }
.art-head { border-bottom: 1px solid var(--line-soft); padding-bottom: 34px; margin-bottom: 34px; }
#article h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px); line-height: 1.08;
  letter-spacing: -.015em; margin: 6px 0 20px; color: var(--stone);
}
.art-sum { font-size: clamp(17px,1.8vw,21px); color: var(--stone-2); line-height: 1.6; }
.art-by { margin-top: 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--line); }

.art-hero { margin: 0 0 40px; border: 1px solid var(--line-soft); overflow: hidden; }
.art-hero img { width: 100%; display: block; }

.art-body p { font-size: 17.5px; line-height: 1.78; color: var(--stone-2); margin-bottom: 24px; }
.art-body p strong { color: var(--stone); font-weight: 600; }
.art-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px,2.8vw,34px); line-height: 1.14;
  color: var(--stone); margin: 46px 0 20px;
  padding-top: 22px; border-top: 1px solid var(--line-soft);
}
.art-body ul { list-style: none; margin: 0 0 26px; }
.art-body li {
  position: relative; padding: 10px 0 10px 26px;
  color: var(--stone-2); font-size: 17px; line-height: 1.7;
}
.art-body li::before {
  content: ''; position: absolute; left: 0; top: 21px;
  width: 11px; height: 1px; background: var(--gold);
}
.art-body li strong { color: var(--stone); }
.art-body blockquote {
  margin: 34px 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--gold);
  font-family: var(--serif); font-size: clamp(20px,2.2vw,27px);
  line-height: 1.42; color: var(--stone);
}
.post-img { margin: 34px 0 8px; border: 1px solid var(--line-soft); overflow: hidden; }
.post-img img { width: 100%; display: block; }
.post-cap {
  font-family: var(--mono) !important; font-size: 10px !important;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--line) !important; margin-bottom: 34px !important;
}

.art-cta {
  margin: 64px 0 0; padding: 52px var(--gutter);
  background: var(--ink-2); border: 1px solid var(--line-soft);
  text-align: center;
}
.art-cta h2 {
  font-family: var(--serif); font-weight: 400; border: none; padding: 0;
  font-size: clamp(24px,2.8vw,36px); margin: 0 0 14px;
}
.art-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); margin: 60px 0 0; }
@media (max-width: 700px) { .art-next { grid-template-columns: 1fr; } }
.art-next button {
  background: var(--ink-2); border: none; text-align: left; cursor: pointer;
  padding: 30px; color: inherit; font: inherit;
  transition: background .4s;
}
.art-next button:hover { background: var(--ink-3); }
.art-next .cat { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.art-next h4 { font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; margin: 12px 0 8px; color: var(--stone); }

/* ---------- COSTS ---------- */
.rate-table { border-top: 1px solid var(--line-soft); }
.rate-row {
  display: grid; grid-template-columns: 240px 1fr 150px;
  gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--line-soft);
  transition: background .35s, padding-left .35s var(--ease);
}
.rate-row:not(.rate-head):hover { background: rgba(214,177,54,.035); padding-left: 10px; }
.rate-head {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--line);
  padding: 0 0 14px;
}
.rate-head span:last-child, .rate-num { text-align: right; }
.rate-name { font-family: var(--serif); font-size: clamp(19px,2vw,25px); color: var(--stone); line-height: 1.2; }
.rate-what { color: var(--stone-2); font-size: 15.5px; line-height: 1.65; }
.rate-num {
  font-family: var(--serif); font-size: clamp(20px,2.2vw,28px);
  color: var(--gold); white-space: nowrap;
}
@media (max-width: 820px) {
  .rate-row { grid-template-columns: 1fr; gap: 8px; }
  .rate-head { display: none; }
  .rate-num { text-align: left; }
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,84px); margin-top: 76px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 50px; } }

.bars { list-style: none; }
.bars li {
  display: grid; grid-template-columns: 1fr 1.3fr 44px;
  gap: 14px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.bl { font-size: 14px; color: var(--stone-2); }
.bar { height: 5px; background: var(--line-soft); position: relative; overflow: hidden; }
.bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0;
  width: 0; background: var(--gold);
  transition: width 1.3s var(--ease);
}
.rise.in .bar::after, html:not(.js) .bar::after { width: var(--w); }
.bv { font-family: var(--mono); font-size: 12px; color: var(--gold); text-align: right; }
@media (max-width: 560px) { .bars li { grid-template-columns: 1fr 60px; } .bar { display: none; } }

.movers { list-style: none; counter-reset: m; }
.movers li {
  counter-increment: m; position: relative;
  padding: 18px 0 18px 44px; border-bottom: 1px solid var(--line-soft);
  color: var(--stone-2); font-size: 15.5px; line-height: 1.65;
}
.movers li::before {
  content: "0" counter(m);
  position: absolute; left: 0; top: 18px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; color: var(--gold);
}
.movers li b { color: var(--stone); font-weight: 600; }

.note-box {
  margin-top: 50px; padding: clamp(26px,3.4vw,42px);
  background: var(--ink); border: 1px solid var(--line-soft);
  border-left: 2px solid var(--gold);
}
.note-box p { color: var(--stone-2); font-size: 16.5px; line-height: 1.7; max-width: 70ch; }
.note-box b { color: var(--stone); }

.cav-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-soft); }
@media (max-width: 780px) { .cav-grid { grid-template-columns: 1fr; } }
.cav { background: var(--ink-2); padding: clamp(26px,3vw,40px); transition: background .4s, transform .4s var(--ease); }
.cav:hover { background: var(--ink-3); transform: translateY(-4px); }
.cav-n { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.cav h4 { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.16; margin: 14px 0 12px; color: var(--stone); }
.cav p { color: var(--stone-2); font-size: 15.5px; line-height: 1.65; }

@media (prefers-reduced-motion: reduce) {
  .bar::after { width: var(--w) !important; }
}


/* ===========================================================
   PROJECT PAGES — breadcrumbs, link cards, next-project row
   =========================================================== */

.crumb {
  padding: 108px var(--gutter) 0;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.crumb a { color: var(--stone-2); text-decoration: none; transition: color .3s; }
.crumb a:hover { color: var(--gold); }
.crumb b { color: var(--gold); font-weight: 400; }
.crumb span { opacity: .5; }
.page-head .crumb { padding: 0; }

/* project cards are links now, not buttons */
a.proj { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.proj:hover { text-decoration: none; }

/* project pages start below the fixed nav */
article > .cs-hero { padding-top: 60px; }

/* next-project row as links */
.cs-next a {
  background: var(--ink-2); padding: 30px; border: none;
  text-align: left; text-decoration: none; color: inherit;
  display: block; transition: background .4s var(--ease), transform .4s var(--ease);
}
.cs-next a:hover { background: var(--ink-3); transform: translateY(-3px); }
.cs-next a .v { font-family: var(--serif); font-size: 28px; color: var(--gold); line-height: 1; }
.cs-next a h4 { font-family: var(--serif); font-weight: 400; font-size: 19px; margin: 10px 0 4px; color: var(--stone); }
