/* ================= fonts (self-hosted, OFL) ================= */
@font-face { font-family: 'Inter Tight'; font-weight: 300; font-display: swap; src: url(fonts/inter-tight-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url(fonts/inter-tight-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(fonts/archivo-latin-wdth.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }

/* ================= tokens ================= */
:root {
  --ink: #151412;          /* background of dark sections, text on light */
  --cream: #f3f0ea;        /* background of light sections, text on dark */
  --muted: #6b655d;        /* secondary text on light */
  --muted-d: #b9b3aa;      /* secondary text on dark */
  --green: #8c877f;        /* main: concrete grey (lines, rules) */
  --red: #c8955f;          /* accent: warm oak (buttons on dark) */
  --red-ink: #8a5a2b;      /* accent as text on light (contrast ≥ 4.5) */
  --line-l: rgba(21, 20, 18, .14);
  --line-d: rgba(243, 240, 234, .16);
  --light-bg: var(--cream);
  --light-fg: var(--ink);
  --light-muted: var(--muted);
  --light-accent: var(--red-ink);
  --dark-bg: var(--ink);
  --display: 'Archivo', 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;  /* condensed (75%) light grotesk */
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #201e1b;
    --light-fg: var(--cream);
    --light-muted: var(--muted-d);
    --light-accent: var(--red);
    --line-l: rgba(243, 240, 234, .14);
    --dark-bg: #121110;
  }
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--dark-bg); color: var(--cream);
  font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--pad); }

.mono, .eyebrow, .beat__idx, .beat__sub, .nav, .note, .btn, legend, .field > span, .acc__n, .steps span {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; line-height: 1.7;
}
.display, .beat__title {
  font-family: var(--display); font-weight: 300; font-stretch: condensed; text-transform: uppercase;
  letter-spacing: -.03em; line-height: .9;
}
.display { font-size: clamp(44px, 7vw, 112px); margin: 14px 0 0; }
.display span, .beat__title span { display: block; }
.eyebrow { color: var(--red); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; max-width: 34em; }
.note { color: var(--muted-d); font-size: 10.5px; }

/* ================= header ================= */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px;
  color: var(--cream); transition: background-color .5s var(--ease), backdrop-filter .5s;
}
.nav.is-solid { background: rgba(21, 20, 18, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav a { text-decoration: none; }
.nav__logo { letter-spacing: .32em; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.nav__links { display: flex; gap: clamp(20px, 4vw, 64px); }
.nav__links a { padding: 12px 0; opacity: .9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 18px; }
.nav__tag { font-size: 10px; line-height: 1.4; text-align: right; color: var(--muted-d); }
.nav__cta { display: none; }
.nav__menu {
  width: 44px; height: 44px; border: 0; background: none; padding: 13px; cursor: pointer;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.nav__menu i { width: 7px; height: 7px; border-radius: 50%; border: 1.3px solid var(--cream); transition: transform .4s var(--ease); }
.nav__menu[aria-expanded="true"] i { transform: scale(.6); background: var(--cream); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(21, 20, 18, .96);
  display: flex; align-items: center; padding: var(--pad);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a { font: condensed 300 clamp(40px, 11vw, 88px)/1 var(--display); text-transform: uppercase; letter-spacing: -.04em; text-decoration: none; padding: 6px 0; }

/* ================= the walk ================= */
.walk { position: relative; height: 900vh; background: var(--ink); }
.walk__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.walk__backdrop {
  position: absolute; inset: 0;
  background: #1d1712 url(frames/walk-854/0001.webp) center / cover no-repeat;
}
.walk__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.walk.is-ready .walk__canvas { opacity: 1; }
.walk.is-qa .walk__canvas { transition: none; }
.walk__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, .55) 0%, rgba(10, 9, 8, 0) 18%),
    linear-gradient(0deg, rgba(10, 9, 8, .35) 0%, rgba(10, 9, 8, 0) 30%),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .28) 100%);
}

.beat {
  position: absolute; inset: 0; display: flex; pointer-events: none;
  padding: calc(96px + env(safe-area-inset-top)) var(--pad) calc(64px + env(safe-area-inset-bottom));
}
.beat__in { position: relative; max-width: min(92vw, 900px); color: var(--cream); text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
/* Soft shade behind each title so it reads over bright rooms (fades with the title) */
.beat__in::before {
  content: ''; position: absolute; inset: -18% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(12, 10, 8, .34), rgba(12, 10, 8, 0));
}
.beat__idx { margin-bottom: 14px; }
.beat__title { font-size: clamp(52px, 9vw, 158px); }
.beat__title--brand { font-size: clamp(64px, 11vw, 190px); letter-spacing: -.05em; }
.beat__sub { margin-top: 18px; max-width: 30em; }
.beat--center { align-items: center; justify-content: center; text-align: center; }
.beat--center .beat__sub { margin-inline: auto; }
.beat--left { align-items: center; }
.beat--right { align-items: center; justify-content: flex-end; text-align: right; }
.beat--right .beat__sub, .beat--br .beat__sub { margin-left: auto; }
.beat--bl { align-items: flex-end; }
.beat--tl { align-items: flex-start; padding-top: calc(17vh + env(safe-area-inset-top)); }
.beat--br { align-items: flex-end; justify-content: flex-end; text-align: right; }
.js .beat:not([data-beat="0"]) .beat__in { opacity: 0; }

.walk__hint {
  position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  font: 10px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--cream);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.walk__hint span { width: 1px; height: 34px; background: linear-gradient(var(--cream), transparent); animation: hint 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.walk__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(243, 240, 234, .14); }
.walk__progress span { display: block; height: 100%; background: var(--cream); transform: scaleX(0); transform-origin: left; }

/* Static / no-JS: every beat in its final state, one after the other */
html:is(.is-static, :not(.js)) .walk { height: auto; }
html:is(.is-static, :not(.js)) .walk__sticky { position: relative; height: auto; display: flex; flex-direction: column; }
html:is(.is-static, :not(.js)) .beat { position: relative; min-height: 70vh; }
html:is(.is-static, :not(.js)) .beat__in { opacity: 1 !important; }
html:is(.is-static, :not(.js)) .walk__canvas { position: fixed; z-index: -1; }
html:is(.is-static, :not(.js)) .walk__backdrop, html:is(.is-static, :not(.js)) .walk__scrim { position: fixed; }
html:is(.is-static, :not(.js)) .walk__hint, html:is(.is-static, :not(.js)) .walk__progress { display: none; }

/* ================= sections ================= */
.sec { position: relative; padding: clamp(88px, 13vw, 180px) 0; }
.sec--light { background: var(--light-bg); color: var(--light-fg); }
.sec--light .eyebrow { color: var(--light-accent); }
.sec--light .note { color: var(--light-muted); }
.sec--dark { background: var(--dark-bg); color: var(--cream); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__body { display: grid; gap: 28px; padding-top: 8px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.head-row .note { max-width: 26em; text-align: right; }

.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-l); }
.ticks li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line-l); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 24px; width: 12px; height: 1px; background: currentColor; }

/* accordion */
.acc { margin-top: 56px; border-top: 1px solid var(--line-d); }
.acc__item { border-bottom: 1px solid var(--line-d); }
.acc__item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 44px; align-items: center;
  min-height: 88px; gap: 12px;
}
.acc__item summary::-webkit-details-marker { display: none; }
.acc__t { font: condensed 300 clamp(26px, 3.4vw, 48px)/1 var(--display); text-transform: uppercase; letter-spacing: -.035em; transition: transform .6s var(--ease); }
.acc__item summary:hover .acc__t { transform: translateX(10px); }
.acc__n { color: var(--muted-d); }
.acc__i { width: 44px; height: 44px; position: relative; }
.acc__i::before, .acc__i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease); }
.acc__i::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item[open] .acc__i::after { transform: translate(-50%, -50%) rotate(0); }
.acc__body { padding: 0 0 32px 68px; max-width: 46em; color: var(--muted-d); }

/* project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(160deg, #cfc6b8, #8e8578); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__img img:not([src]) { visibility: hidden; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-bottom: 1px solid var(--line-l); padding-bottom: 14px; }
.card__meta h3 { font: 400 17px/1.3 var(--body); }
.card__meta span { font: 10.5px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--light-muted); white-space: nowrap; }

/* process */
.steps { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-d); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line-d); }
.steps span { color: var(--red); padding-top: 4px; }
.steps h3 { font: condensed 300 clamp(24px, 2.4vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.03em; margin-bottom: 8px; }
.steps p { color: var(--muted-d); }

/* buttons + fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border: 1px solid var(--red); background: var(--red); color: var(--ink); text-decoration: none; cursor: pointer;
  border-radius: 0; transition: background-color .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: transparent; color: var(--red); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover { color: inherit; background: rgba(127, 127, 127, .14); }
.sec--light .btn { background: var(--light-fg); border-color: var(--light-fg); color: var(--light-bg); }
.sec--light .btn:hover { background: transparent; color: var(--light-fg); }

.field { display: grid; gap: 8px; }
.field > span { color: var(--muted-d); display: flex; justify-content: space-between; }
.field em { font-style: normal; opacity: .7; }
.sec--light .field > span, .sec--light legend { color: var(--light-muted); }
input, select, textarea {
  font: inherit; font-size: 16px; color: inherit; background: transparent; width: 100%;
  border: 0; border-bottom: 1px solid var(--line-d); padding: 12px 0; min-height: 48px; border-radius: 0;
}
select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, currentColor 50%) right 0 center / 6px 6px no-repeat; }
select option { color: #151412; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--red); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-bottom-color: #e07a5f; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin-bottom: 10px; }

/* estimator */
.est { display: grid; gap: 30px; padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line-l); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-l);
  cursor: pointer; font-size: 14px; transition: background-color .4s var(--ease), color .4s var(--ease);
}
.chips input:checked + span { background: var(--light-fg); color: var(--light-bg); border-color: var(--light-fg); }
.chips input:focus-visible + span { outline: 2px solid var(--light-accent); outline-offset: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; border: 0; height: 44px; padding: 0; accent-color: var(--light-fg); background: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--light-fg); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--light-fg); margin-top: -10px; }
input[type="range"]::-moz-range-track { height: 1px; background: var(--light-fg); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--light-fg); }
.est__result { display: grid; gap: 4px; border-top: 1px solid var(--line-l); padding-top: 22px; }
.est__label { font: 10.5px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--light-muted); }
.est__result strong { font: condensed 300 clamp(34px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; }

/* lead form */
.lead-form { display: grid; gap: 26px; }
.lead-form__steps { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; font: 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); counter-reset: s; }
.lead-form__steps li { counter-increment: s; padding-bottom: 10px; border-bottom: 1px solid transparent; }
.lead-form__steps li::before { content: '0' counter(s) ' '; }
.lead-form__steps li.is-on { color: var(--cream); border-bottom-color: var(--red); }
.lead-form__step { display: grid; gap: 22px; }
.lead-form__step[hidden] { display: none; }
.lead-form__msg { min-height: 1.6em; color: var(--muted-d); }
.lead-form__msg.is-error { color: #f0a58f; }
.lead-form__msg.is-ok { color: var(--cream); }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-chip { font: 12px/1.6 var(--mono); letter-spacing: .08em; padding: 10px 12px; border: 1px dashed var(--line-d); color: var(--muted-d); }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line-d); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-d); }
.contact-list li > span:first-child { font: 10.5px/2 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-d); }
.contact-list li[hidden] { display: none; }

/* footer */
.foot { background: var(--dark-bg); color: var(--cream); padding: 64px 0 0; overflow: hidden; border-top: 1px solid var(--line-d); }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.foot__row nav { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.foot__row a { text-decoration: none; padding: 14px 0; }
.foot__row > span { padding: 14px 0; }
.foot__word {
  font: condensed 300 25vw/.78 var(--display); letter-spacing: -.06em; text-align: center; color: rgba(243, 240, 234, .9);
  margin: 40px 0 -2.4vw; white-space: nowrap;
}

/* quick bar (phones) */
.quickbar { display: none; }

/* ================= responsive ================= */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .head-row { flex-direction: column; align-items: flex-start; }
  .head-row .note { text-align: left; }
}
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__tag { display: none; }
  .nav__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid rgba(243, 240, 234, .6); }
  .nav__cta .long { display: none; }
  .nav__end { gap: 6px; }
  .walk { height: 800vh; }
  .beat { padding-top: calc(88px + env(safe-area-inset-top)); padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .beat__title { font-size: clamp(46px, 14vw, 84px); }
  .beat__title--brand { font-size: clamp(64px, 22vw, 120px); }
  .beat__sub { font-size: 10.5px; }
  .beat--tl { padding-top: calc(15vh + env(safe-area-inset-top)); }
  .acc__item summary { grid-template-columns: 40px 1fr 44px; min-height: 76px; }
  .acc__body { padding-left: 52px; }
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(21, 20, 18, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--cream); transition: transform .5s var(--ease);
  }
  .quickbar .btn { flex: 1; }
  .quickbar .btn[hidden] { display: none; }
  .quickbar.is-hidden { transform: translateY(110%); }
  .foot { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
