/* ============================================================
   CPG front: the home page's own layer. Tokens come from style.css.
   Identity: black stage, the logo's teal as light, copper from his own
   photos as the warm counterweight. Motion budget: the opening rises once;
   photos reveal with a teal wipe; the job film scrolls sideways under the
   finger; reviews stack. Nothing pulses, nothing floats forever.
   ============================================================ */
:root{
  --copper:#B87333;
  --copper-2:#D9925A;
  --stage:#070909;
  --stage-2:#0F1414;
  --ease:cubic-bezier(.16,1,.3,1);
}
html{scroll-behavior:smooth}
body.front{background:var(--stage);color:var(--ink)}
.front .hd{background:transparent;border-bottom:0;position:static;z-index:20}
.front .rail{position:relative;z-index:21}
body.front :focus-visible{outline-color:var(--teal)}

/* ---------- opening ---------- */
.open{position:relative;min-height:100svh;display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;background:var(--stage)}
.open-copy{padding:8.5rem 1.25rem 3rem calc((100vw - 1140px)/2 + 1.25rem);display:flex;flex-direction:column;justify-content:flex-end;z-index:2}
.open-copy .who{font-family:'Archivo',system-ui,sans-serif;font-weight:800;letter-spacing:-.045em;line-height:.86;font-size:clamp(3.2rem,9vw,8.4rem);margin:0 0 1.4rem;color:#fff}
.open-copy .who .w{display:block;overflow:hidden}
.open-copy .who .w span{display:inline-block;transform:translateY(110%);animation:riseIn 1.7s var(--ease) forwards}
.open-copy .who .w:nth-child(2) span{animation-delay:.14s}
.open-copy .who .w:nth-child(3) span{animation-delay:.28s;color:var(--teal)}
@keyframes riseIn{to{transform:none}}
.open-copy .lede{font-size:clamp(1.05rem,1.4vw,1.25rem);max-width:34ch;color:var(--ink-soft);margin:0 0 1.6rem;opacity:0;animation:fadeUp 1.3s var(--ease) .7s forwards}
.open-copy .acts{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;opacity:0;animation:fadeUp 1.3s var(--ease) .95s forwards}
.open-copy .proof{margin:1.4rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem;color:var(--ink-soft);font-size:.95rem;opacity:0;animation:fadeUp 1.3s var(--ease) 1.2s forwards}
.open-copy .proof a{color:#fff;font-weight:700;text-decoration:none;border-bottom:1px solid var(--teal)}
.open-copy .proof .star{color:var(--teal);font-size:1.1rem}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.open-photo{position:relative;min-height:100svh}
.open-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%;transform:scale(1.08);animation:settle 4.5s var(--ease) forwards}
@keyframes settle{to{transform:scale(1)}}
.open-photo::before{content:"";position:absolute;inset:0;background:var(--teal);z-index:2;transform-origin:left;animation:wipe 1.6s var(--ease) .3s forwards}
@keyframes wipe{to{transform:scaleX(0);transform-origin:right}}
.open-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--stage) 0,transparent 22%);z-index:1;pointer-events:none}
.open-photo .tag{position:absolute;left:1.2rem;bottom:1.2rem;z-index:3;background:rgba(7,9,9,.78);color:#fff;padding:.55rem .8rem;font-size:.85rem;border-left:3px solid var(--copper);backdrop-filter:blur(6px)}
.scrollcue{position:absolute;left:calc((100vw - 1140px)/2 + 1.25rem);bottom:1.4rem;z-index:3;color:var(--ink-soft);font-size:.8rem;display:flex;align-items:center;gap:.5rem}
.scrollcue i{display:block;width:1px;height:34px;background:linear-gradient(var(--teal),transparent)}
.open-copy{padding-bottom:5rem}
.acts .more{color:var(--ink-soft);font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:.6rem 0;min-height:44px;display:inline-flex;align-items:center}
.acts .more:hover,.acts .more:focus-visible{color:var(--teal)}

/* ---------- ruled list of work with a photo that follows the hover ---------- */
.work{background:var(--stage);padding:6rem 0 5rem;position:relative}
.work .wrap{max-width:1140px;margin:0 auto;padding:0 1.25rem}
.work h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.03em;line-height:1;margin:0 0 2rem;color:#fff}
.work h2 em{font-style:normal;color:var(--copper-2)}
.worklist{list-style:none;margin:0;padding:0;counter-reset:w}
.worklist li{border-top:1px solid #1E2626}
.worklist li:last-child{border-bottom:1px solid #1E2626}
.worklist a{display:grid;grid-template-columns:2.6rem 1fr auto;align-items:baseline;gap:1rem;padding:1.05rem 0;text-decoration:none;color:#fff;transition:padding .35s var(--ease)}
.worklist a:hover,.worklist a:focus-visible{padding-left:.6rem}
.worklist a::before{counter-increment:w;content:counter(w,decimal-leading-zero);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.78rem;color:var(--copper-2);letter-spacing:.08em}
.worklist b{font-size:clamp(1.15rem,1.9vw,1.5rem);font-weight:700;letter-spacing:-.01em}
.worklist small{color:var(--ink-soft);font-size:.9rem;justify-self:end;text-align:right}

/* ---------- the job film: horizontal under the scroll ---------- */
.film{position:relative;background:var(--paper);color:var(--ink-dark,#111)}
.film-head{max-width:1140px;margin:0 auto;padding:5rem 1.25rem 1.5rem;display:flex;justify-content:space-between;align-items:flex-end;gap:2rem}
.film-head h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.03em;line-height:1;margin:0;color:#111}
.film-head p{margin:0;max-width:34ch;color:#4a5251}
.film-head h2::after{content:"";display:block;width:64px;height:3px;background:var(--teal-deep);margin-top:.9rem}
.note-front h2::after{content:"";display:block;width:40px;height:3px;background:var(--teal-deep);margin-top:.7rem}
body.front .callbar{background:var(--teal-deep);color:#fff;border-top:2px solid var(--teal)}
.film-track{position:sticky;top:0;height:100svh;display:flex;align-items:center;overflow:hidden}
.film-runway{height:560vh}
.film-strip{display:flex;gap:1.2rem;padding:0 1.25rem;will-change:transform}
.frame{position:relative;flex:none;width:min(62vw,560px);aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:#e8e3d8}
.frame img{width:100%;height:100%;object-fit:cover;display:block;transform:scale(1.06);transition:transform 2s var(--ease)}
.frame.in img{transform:none}
.frame .cap{position:absolute;left:0;right:0;bottom:0;padding:1rem;color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.72));font-size:.95rem}
.frame .cap b{display:block;font-size:1.15rem;margin-bottom:.15rem}
.film-count{position:absolute;right:1.5rem;bottom:1.4rem;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:.8rem;color:#4a5251;letter-spacing:.08em}

/* ---------- reviews stack ---------- */

/* ---------- builders diptych ---------- */
.trade{background:var(--stage-2);color:var(--ink);padding:0;border-top:3px solid var(--copper)}
.trade .wrap{max-width:1140px;margin:0 auto;padding:5rem 1.25rem}
.trade h2{font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.03em;line-height:1;margin:0 0 1rem;color:#fff}
.trade h2 em{font-style:normal;color:var(--copper-2)}
.trade p{max-width:40ch;margin:0 0 1.4rem;color:var(--ink-soft)}
.trade .btn{background:var(--copper);color:#1a0f06}
.diptych{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
.diptych figure{margin:0;aspect-ratio:3/4;overflow:hidden;border-radius:6px;position:relative;clip-path:inset(0 0 100% 0);transition:clip-path 1.7s var(--ease)}
.diptych figure.in{clip-path:inset(0)}
.diptych figure:nth-child(2){transition-delay:.15s;transform:translateY(2rem)}
.diptych img{width:100%;height:100%;object-fit:cover;display:block}
.diptych figcaption{position:absolute;left:.7rem;bottom:.7rem;background:rgba(26,15,6,.85);color:#F7D9BE;padding:.35rem .55rem;font-size:.8rem;border-radius:3px}

/* ---------- where ---------- */
.where{background:var(--paper);color:#111;padding:5rem 0}
.where .wrap{max-width:1140px;margin:0 auto;padding:0 1.25rem;display:grid;grid-template-columns:1fr 1.4fr;gap:3rem;align-items:start}
.where h2{font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.03em;line-height:1;margin:0 0 1rem;color:#111}
.where p{color:#4a5251;max-width:36ch}
.subs{display:flex;flex-wrap:wrap;gap:.6rem;margin:0;padding:0;list-style:none}
.subs a{display:inline-block;padding:.7rem 1rem;border:1px solid var(--paper-line);background:#fff;border-radius:999px;color:#111;text-decoration:none;font-weight:600;transition:border-color .3s,background .3s,transform .3s var(--ease)}
.subs a:hover,.subs a:focus-visible{border-color:var(--teal-deep);color:var(--teal-deep);transform:translateY(-2px)}

/* ---------- note + closer ---------- */
.note-front{background:var(--paper-2);padding:5rem 0}
.note-front .wrap{max-width:820px;margin:0 auto;padding:0 1.25rem}
.note-front p{font-size:clamp(1.15rem,1.8vw,1.45rem);line-height:1.5;color:#111;margin:0 0 1.2rem}
.note-front .sig{margin-top:1.6rem;display:flex;align-items:center;gap:1rem;color:#4a5251}
.note-front .sig b{color:#111;display:block}
.note-front .sig a{color:var(--teal-deep);font-weight:700;text-decoration:none}
.close-front{background:var(--stage);padding:6rem 0 3rem;text-align:left}
.close-front .wrap{max-width:1140px;margin:0 auto;padding:0 1.25rem}
.close-front h2{font-size:clamp(2rem,4vw,3.4rem);letter-spacing:-.03em;line-height:1;margin:0 0 1.2rem;color:#fff}
.close-front .num{display:inline-block;font-family:'Archivo',system-ui,sans-serif;font-weight:800;font-size:clamp(2.6rem,8vw,6.5rem);letter-spacing:-.04em;line-height:1;color:var(--teal);text-decoration:none;transition:letter-spacing .5s var(--ease)}
.close-front .num:hover{letter-spacing:-.02em}
.close-front .hrs{color:var(--ink-soft);margin:1rem 0 0}

/* ---------- reveal helper ---------- */
.rv2{opacity:0;transform:translateY(26px);transition:opacity 1.4s var(--ease),transform 1.4s var(--ease)}
.rv2.in{opacity:1;transform:none}
html:not(.front-js) .rv2,html:not(.front-js) .card,html:not(.front-js) .frame img,html:not(.front-js) .diptych figure{opacity:1;transform:none;clip-path:none}
html:not(.front-js) .film-runway{height:auto}html:not(.front-js) .film-track{position:static;height:auto;overflow:auto}

@media (max-width:900px){
  .open-copy .proof span:last-child{flex-basis:100%;padding-left:1.7rem}
  .open{grid-template-columns:1fr;min-height:0}
  .open-copy{padding:2.5rem 1.25rem 2rem;justify-content:flex-start}
  .open-photo{min-height:64vh}
  .open-photo::after{background:linear-gradient(180deg,var(--stage) 0,transparent 18%)}
  .scrollcue{display:none}
  .work .wrap,.trade .wrap,.where .wrap{grid-template-columns:1fr}
  .worklist a{grid-template-columns:1.9rem 1fr;gap:.2rem .8rem;padding:1rem 0}
  .worklist small{grid-column:2;justify-self:start;text-align:left;margin-top:.2rem;font-size:.85rem}
  .worklist b{font-size:1.05rem;line-height:1.25}
  .film-runway{height:auto}
  .film-track{position:static;height:auto;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding:2.5rem 0;scroll-snap-type:x proximity}
  .film-strip{transform:none !important}
  .frame{width:86vw;scroll-snap-align:center}
  .card{position:relative;top:auto;min-height:0}
  .diptych figure:nth-child(2){transform:none}
}
@media (max-height:600px){
  .film-runway{height:auto}
  .film-track{position:static;height:auto;overflow-x:auto;overflow-y:hidden;padding:2rem 0}
  .film-strip{transform:none !important}
}
/* reduced motion LAST so it wins over every width branch above */
@media (prefers-reduced-motion:reduce){
  .open-copy .who .w span,.open-copy .lede,.open-copy .acts,.open-copy .proof,.open-photo img,.open-photo::before{animation:none;opacity:1;transform:none}
  .open-photo::before{display:none}
  .rv2,.card,.diptych figure{opacity:1;transform:none;clip-path:none;transition:none}
  .frame img{transform:none}
  .film-runway{height:auto}.film-track{position:static;height:auto;overflow:auto}
}

/* sound familiar: five questions, then the number */
.ask{background:var(--paper);color:#111;padding:clamp(4rem,9vh,7rem) 0}
.ask .wrap{max-width:1140px;margin:0 auto;padding:0 1.25rem}
.ask h2{font-size:.85rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-deep);margin:0 0 .9rem}
.asklist{list-style:none;margin:0;padding:0;font-family:'Archivo',system-ui,sans-serif;font-weight:800;font-size:clamp(30px,4vw,56px);line-height:1.12;letter-spacing:-.04em;color:#111}
.asklist li{margin-top:16px;opacity:0;transform:translateY(8px);transition:opacity .2s ease-out,transform .2s ease-out}
.asklist li:first-child{margin-top:0}
.asklist .nw{white-space:nowrap}
.asklist.in li{opacity:1;transform:none}
.asklist.in li:nth-child(2){transition-delay:.12s}.asklist.in li:nth-child(3){transition-delay:.24s}.asklist.in li:nth-child(4){transition-delay:.36s}.asklist.in li:nth-child(5){transition-delay:.48s}
.ask .ring{margin:32px 0 0;font-family:'Archivo',system-ui,sans-serif;font-weight:800;letter-spacing:-.04em;line-height:1;color:var(--teal-deep)}
.ask .ring small{display:block;font-size:clamp(1.4rem,3vw,2.4rem);margin-bottom:6px}
.ask .ring a{display:inline-block;color:inherit;text-decoration:none;font-size:clamp(2.4rem,7vw,5.6rem);white-space:nowrap}
.ask .ring a:hover,.ask .ring a:focus-visible{text-decoration:underline;text-underline-offset:.08em}
html:not(.front-js) .asklist li{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.asklist li{transition:none;opacity:1;transform:none}}

/* ---------- what people wrote: a teal band, Google-yellow stars, white cards ---------- */
.said{background:var(--teal-deep);color:#fff;padding:clamp(4rem,9vh,7rem) 0}
.said .wrap{max-width:1140px;margin:0 auto;padding:0 1.25rem}
.said-grid{display:grid;grid-template-columns:.9fr 1.4fr;gap:3rem;align-items:start}
.score .big{font-family:'Archivo',system-ui,sans-serif;font-weight:800;font-size:clamp(5rem,12vw,9rem);line-height:.9;letter-spacing:-.05em;margin:0;color:#fff}
.score-stars{font-size:clamp(1.6rem,3vw,2.2rem);letter-spacing:.06em;color:#FBBC04;margin:.4rem 0 1rem;line-height:1}
.said h2{font-size:clamp(1.4rem,2.4vw,2rem);letter-spacing:-.02em;line-height:1.15;margin:0 0 1.6rem;color:#fff;max-width:18ch}
.btn-paper{background:#fff;color:var(--teal-deep);border-color:#fff}
.btn-paper:hover,.btn-paper:focus-visible{background:var(--paper);color:var(--teal-deep)}
.stack{display:grid;gap:1rem}
.card{background:#fff;color:#111;border-radius:12px;padding:1.6rem 1.8rem;display:flex;flex-direction:column;gap:.9rem;transform:translateY(18px);opacity:0;transition:transform 1.1s var(--ease),opacity 1.1s var(--ease)}
.card.in{transform:none;opacity:1}
.stack .card:nth-child(2){transition-delay:.12s}.stack .card:nth-child(3){transition-delay:.24s}
.card .stars{color:#FBBC04;font-size:1.05rem;letter-spacing:.08em;line-height:1}
.card q{quotes:none;font-family:'Archivo',system-ui,sans-serif;font-weight:700;font-size:clamp(1.15rem,1.7vw,1.45rem);letter-spacing:-.015em;line-height:1.3;color:#111}
.card q::before{content:"\201C"}
.card q::after{content:"\201D"}
.card footer{background:none;padding:0;margin:0;border:0;display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;color:#4a5251;font-size:.92rem;line-height:1.35}
.card footer b{color:#111}
.card footer a{color:var(--teal-deep);font-weight:700;text-decoration:none;border-bottom:1px solid var(--teal-deep)}
@media (max-width:900px){.said-grid{grid-template-columns:1fr;gap:2rem}.said h2{max-width:none}}

/* phone wraps: the second proof item starts its own line without a stray dot, and the number never breaks */
.nw{white-space:nowrap}
.note-front .sig .nw{white-space:nowrap}
@media (max-width:560px){.open-copy .proof .also{display:block;width:100%}.open-copy .proof .sep{display:none}.note-front .sig .sep{display:none}.note-front .sig a{display:block;margin-top:.15rem}}
