/* GABS — Concrete + Molten Amber
   Palette, type, and signature derived from the approved token plan. */
:root {
  --concrete: #E6E3DD;
  --graphite: #1E2024;
  --steel:    #6E7378;
  --amber:    #F4A013;
  --amber-deep:#C77F0A;
  --chalk:    #FBFAF7;

  --ink:      #1E2024;
  --ink-soft: #43474C;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body:    "Archivo", system-ui, sans-serif;
  --mono:    "Spline Sans Mono", ui-monospace, monospace;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

* { box-sizing: border-box; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  background: var(--concrete);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--display); font-stretch: 125%; line-height: 1.02; margin: 0; letter-spacing: -0.01em; }

a { color: inherit; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--graphite); color: var(--chalk); padding: 10px 16px; border-radius: var(--radius);
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  padding: 12px 20px; border-radius: var(--radius); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--amber { background: var(--amber); color: var(--graphite); }
.btn--amber:hover { background: var(--amber-deep); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--concrete); }
.btn--lg { padding: 15px 26px; font-size: .9rem; }
.btn--block { width: 100%; padding: 16px; font-size: .9rem; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--mono); font-weight: 600; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--steel);
  margin: 0 0 14px;
}
.eyebrow--amber { color: var(--amber); }
.section-head { max-width: 640px; margin: 0 0 clamp(32px, 5vw, 56px); }
.section-head--invert { color: var(--chalk); }
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
.section-lede { margin: 16px 0 0; color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--concrete) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--steel) 40%, transparent);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.wordmark {
  font-family: var(--display); font-stretch: 125%; font-weight: 800;
  font-size: 1.5rem; letter-spacing: .02em; text-decoration: none; color: var(--ink);
}
.wordmark__dot { color: var(--amber); }
.wordmark--sm { font-size: 1.2rem; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-family: var(--mono); font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; }
.nav__links a { text-decoration: none; color: var(--ink-soft); padding: 4px 0; border-bottom: 1.5px solid transparent; }
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--amber); }
.nav__cta { white-space: nowrap; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); transition: .2s; }
.nav__mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 800; margin: 0 0 22px; }
.hero__title-accent { color: var(--amber-deep); }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 42ch; margin: 0 0 30px; }
.hero__sub em { font-style: italic; color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero__trust { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--steel); margin: 0; }
.hero__trust span { color: var(--amber); }

/* Signature reveal */
.reveal { margin: 0; }
.reveal__pane {
  position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--steel) 55%, transparent);
  box-shadow: 0 30px 60px -30px rgba(20,22,26,.5); user-select: none; touch-action: none;
}
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene--before { clip-path: inset(0 0 0 var(--pos, 50%)); background: #cfccc4; }
.scene--after  { background: radial-gradient(120% 90% at 70% 18%, #34373d 0%, #232529 55%, #191b1f 100%); }
.scene__door { position: absolute; inset: 0 0 32% 0; background-image: repeating-linear-gradient(180deg, transparent 0 7%, rgba(0,0,0,.16) 7% 7.6%); opacity: .5; }
.scene--after .scene__door { background-image: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 7%, rgba(0,0,0,.30) 7% 7.7%); }
.scene__glow { position: absolute; top: -8%; left: 18%; right: 18%; height: 60%; background: radial-gradient(ellipse at 50% 0, rgba(244,160,19,.55), rgba(244,160,19,0) 65%); filter: blur(2px); }
.scene__shelf { position: absolute; right: 9%; height: 5px; border-radius: 2px; background: linear-gradient(90deg, rgba(244,160,19,.0), rgba(244,160,19,.7)); }
.scene__shelf--1 { top: 26%; width: 34%; }
.scene__shelf--2 { top: 38%; width: 26%; }
.scene__car { position: absolute; bottom: 14%; left: 8%; width: 56%; fill: #111316; opacity: .92; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.scene--after::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(244,160,19,.06)), #202327; box-shadow: inset 0 2px 18px rgba(0,0,0,.5); }
/* before clutter */
.box { position: absolute; background: #b6b2a8; border: 1px solid rgba(0,0,0,.12); box-shadow: inset 0 0 0 6px rgba(0,0,0,.04); }
.box--1 { width: 22%; height: 18%; left: 8%; bottom: 12%; transform: rotate(-3deg); }
.box--2 { width: 16%; height: 24%; left: 30%; bottom: 10%; background: #a59f93; }
.box--3 { width: 19%; height: 14%; left: 46%; bottom: 14%; transform: rotate(2deg); }
.box--4 { width: 14%; height: 20%; left: 64%; bottom: 11%; background: #aaa496; }
.box--5 { width: 13%; height: 12%; left: 16%; bottom: 32%; transform: rotate(4deg); background: #9c968a; }
.box--6 { width: 11%; height: 15%; left: 78%; bottom: 13%; transform: rotate(-2deg); }
.scene__tag {
  position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: rgba(16,18,20,.7);
  padding: 5px 9px; border-radius: 3px;
}
.scene__tag--muted { color: #4f4b43; background: rgba(255,255,255,.55); left: auto; right: 12px; }

.reveal__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px;
  background: var(--amber); transform: translateX(-1px); cursor: ew-resize;
}
.reveal__grip {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  background: var(--amber); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.4);
  display: grid; place-items: center;
}
.reveal__grip::before { content: "‹ ›"; font-family: var(--mono); font-weight: 600; color: var(--graphite); font-size: .9rem; letter-spacing: -1px; }
.reveal__handle:focus-visible { outline: none; }
.reveal__handle:focus-visible .reveal__grip { outline: 3px solid var(--graphite); outline-offset: 3px; }
.reveal__cap { font-family: var(--mono); font-size: .76rem; color: var(--steel); margin: 12px 2px 0; }

/* ---------- Slat divider ---------- */
.slat-divider {
  height: 22px;
  background-image: repeating-linear-gradient(180deg, var(--graphite) 0 4px, #2b2e33 4px 6px);
  box-shadow: inset 0 6px 10px -6px rgba(0,0,0,.6), inset 0 -6px 10px -6px rgba(0,0,0,.6);
}

/* ---------- The Ladder ---------- */
.ladder { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.ladder__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); align-items: end; }
.tier {
  background: var(--chalk); border: 1px solid color-mix(in srgb, var(--steel) 35%, transparent);
  border-radius: 6px; padding: 28px 24px 30px; transition: transform .18s ease, box-shadow .18s ease;
}
.tier--mid { margin-bottom: 22px; }
.tier--top { margin-bottom: 44px; border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber), 0 24px 40px -28px rgba(199,127,10,.6); }
.tier:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(20,22,26,.5); }
.tier--top:hover { box-shadow: 0 0 0 1px var(--amber), 0 26px 46px -26px rgba(199,127,10,.7); }
.tier__spec { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin: 0 0 18px; }
.tier__name { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 12px; }
.tier__pitch { margin: 0 0 14px; color: var(--ink-soft); }
.tier__emotion { margin: 0; font-weight: 600; color: var(--ink); }
.tier__badge { display: inline-block; margin: 18px 0 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); background: var(--amber); padding: 6px 10px; border-radius: 3px; }

/* ---------- How it works (graphite) ---------- */
.how { background: var(--graphite); color: var(--chalk); padding: clamp(56px, 8vw, 104px) var(--gutter); }
.how .section-head { margin-left: auto; margin-right: auto; max-width: var(--maxw); width: 100%; padding: 0; }
.how .section-title { color: var(--chalk); }
.steps { max-width: var(--maxw); margin: 40px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { border-top: 2px solid var(--amber); padding-top: 20px; }
.step__num { font-family: var(--mono); font-weight: 600; color: var(--amber); font-size: .9rem; letter-spacing: .1em; }
.step__title { font-size: 1.5rem; font-weight: 700; margin: 8px 0 10px; color: var(--chalk); }
.step p { margin: 0; color: #b9bcc1; }
.step em { color: var(--chalk); font-style: italic; }

/* ---------- Our work ---------- */
.work { max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); }
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 22px); }
.work__card { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.work__card .work__img { transition: transform .18s ease; }
.work__card:hover .work__img { transform: translateY(-3px); }
.work__img { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--steel) 40%, transparent); }
.work__img::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(244,160,19,.10)); }
.work__img::after { content: "After"; position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); background: rgba(16,18,20,.7); padding: 5px 9px; border-radius: 3px; }
.work__img--a { background: radial-gradient(110% 80% at 70% 20%, #34373d, #1b1d21), linear-gradient(0deg, rgba(244,160,19,.18), transparent); }
.work__img--b { background: radial-gradient(110% 80% at 30% 25%, #3a3d42, #202327); }
.work__img--c { background: radial-gradient(120% 90% at 60% 15%, #33363c, #191b1f), linear-gradient(0deg, rgba(244,160,19,.12), transparent); }
.work__cap { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); margin-top: 12px; }
.work__note { font-family: var(--mono); font-size: .76rem; color: var(--steel); margin: 28px 0 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(16,18,20,.82); backdrop-filter: blur(4px); }
.lightbox__panel { position: relative; z-index: 1; margin: 0; width: min(900px, 92vw); background: var(--graphite); border: 1px solid color-mix(in srgb, var(--steel) 50%, transparent); border-radius: 8px; padding: 16px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); }
.lightbox__media { display: block; }
.lightbox__img { display: block; width: 100%; border-radius: 6px; }
.lightbox__cap { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); margin: 14px 4px 4px; }
.lightbox__note { font-family: var(--mono); font-size: .74rem; color: var(--steel); margin: 0 4px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: var(--amber); color: var(--graphite); font-size: 1rem; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.4); }

/* ---------- Book ---------- */
.book { background: var(--graphite); color: var(--chalk); }
.book__inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.book__title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; color: var(--chalk); margin: 0 0 16px; }
.book__sub { color: #b9bcc1; max-width: 42ch; margin: 0 0 24px; }
.book__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.book__list li { position: relative; padding-left: 26px; color: var(--chalk); }
.book__list li::before { content: "◆"; position: absolute; left: 0; color: var(--amber); font-size: .8rem; top: 3px; }

.form { background: var(--chalk); color: var(--ink); border-radius: 8px; padding: clamp(24px, 3vw, 36px); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid color-mix(in srgb, var(--steel) 55%, transparent);
  border-radius: var(--radius); background: #fff;
}
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244,160,19,.3); }
.form__status { font-family: var(--mono); font-size: .82rem; margin: 14px 0 0; min-height: 1.2em; }
.form__status.is-ok { color: var(--amber-deep); }
.form__status.is-err { color: #b3261e; }

/* ---------- Footer ---------- */
.footer { background: #15161a; color: #b9bcc1; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; }
.footer .wordmark { color: var(--chalk); }
.footer__line { margin: 0; flex: 1 1 320px; }
.footer__fine { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--steel); width: 100%; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-on-scroll.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .reveal { order: -1; }
  .ladder__grid, .steps, .work__grid { grid-template-columns: 1fr; }
  .tier--mid, .tier--top { margin-bottom: 0; }
  .book__inner { grid-template-columns: 1fr; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; margin-left: auto; }
  .nav__mobile { display: none; flex-direction: column; gap: 6px; padding: 8px var(--gutter) 20px; }
  .nav__mobile[data-open="true"] { display: flex; }
  .nav__mobile a:not(.btn) { font-family: var(--mono); text-transform: uppercase; font-size: .85rem; padding: 10px 0; color: var(--ink-soft); text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
  .btn, .tier, .nav__links a, .work__card .work__img { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .lightbox__panel { animation: lb-in .2s ease; }
  @keyframes lb-in { from { opacity: 0; transform: translateY(8px); } }
}

/* Real photos in the hero slider + work gallery */
.scene__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene--after  { z-index: 1; }
.scene--before { z-index: 2; }            /* clipped layer, sits above 'after' */
.reveal__handle { z-index: 3; }           /* always visible + grabbable, above both photos */
.scene--after::after { content: none; }   /* drop the old CSS 'floor' — real photo now */
img.work__img { display: block; object-fit: cover; }
