:root{
  --paper:#FAF9F6;
  --ink:#0B0B0C;
  --muted:#6F6B65;
  --line:rgba(11,11,12,.14);
  --line-strong:rgba(11,11,12,.32);
  --invert-bg:#0B0B0C;
  --invert-ink:#F4F2EE;
}
[data-theme="dark"]{
  --paper:#0B0B0C;
  --ink:#F4F2EE;
  --muted:#9A958D;
  --line:rgba(244,242,238,.16);
  --line-strong:rgba(244,242,238,.36);
  --invert-bg:#F4F2EE;
  --invert-ink:#0B0B0C;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme]){
    --paper:#0B0B0C; --ink:#F4F2EE; --muted:#9A958D;
    --line:rgba(244,242,238,.16); --line-strong:rgba(244,242,238,.36);
    --invert-bg:#F4F2EE; --invert-ink:#0B0B0C;
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:65px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  background:var(--paper);
  color:var(--ink);
  font-family:"Archivo",system-ui,sans-serif;
  font-size:clamp(1rem,.96rem + .25vw,1.0625rem);
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  transition:background .5s ease,color .5s ease;
}

.wrap{width:100%;max-width:1180px;margin-inline:auto;padding-inline:clamp(20px,5vw,64px)}

.serif{font-family:"Playfair Display",Georgia,serif}
.label{
  font-size: clamp(.58rem, .56rem + .14vw, .68rem);
  text-transform:uppercase;letter-spacing:.2em;font-weight:600;
  color:var(--muted);
}

/* ---- masthead band ---- */
header{
  position:sticky;top:0;z-index:40;
  background:color-mix(in srgb,var(--paper) 86%,transparent);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  border-bottom:1px solid var(--ink);
}
.bar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:64px;gap:12px}
.bar .side{display:flex;align-items:center}
.bar .side.right{justify-content:flex-end}
.bar .kicker{display:none}
@media(min-width:760px){.bar .kicker{display:inline}}
.mark{font-family:"Playfair Display",serif;font-weight:500;font-size:1.4rem;text-transform:uppercase;text-align:center;grid-column:2}
.toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;
  background:none;border:1px solid var(--line-strong);border-radius:0;
  color:var(--ink);cursor:pointer;transition:border-color .3s,color .3s;
  position:relative;
}
.toggle:hover{border-color:var(--ink)}
.toggle:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.toggle::before{
  content:"";width:14px;height:14px;border-radius:50%;
  border:1.5px solid currentColor;
  background:linear-gradient(90deg,currentColor 50%,transparent 50%);
}
/* ---- hero (photographic) ---- */
.hero{
  position:relative;min-height:92vh;display:flex;align-items:flex-end;
  background:
    linear-gradient(180deg,rgba(8,8,9,.25) 0%,rgba(8,8,9,.15) 35%,rgba(8,8,9,.78) 100%),
    url('images/hero-facade.jpg') center 62%/cover no-repeat;
  color:#F4F2EE;
}
.hero .reg{position:absolute;width:14px;height:14px;opacity:.55}
.hero .reg::before,.hero .reg::after{content:"";position:absolute;background:rgba(244,242,238,.55)}
.hero .reg::before{left:50%;top:0;width:1px;height:100%;transform:translateX(-.5px)}
.hero .reg::after{top:50%;left:0;height:1px;width:100%;transform:translateY(-.5px)}
.reg.tl{top:8px;left:clamp(12px,3vw,40px)} .reg.tr{top:8px;right:clamp(12px,3vw,40px)}

.hero .inner{position:relative;width:100%;padding-block:clamp(48px,10vh,96px)}

.eyebrow{display:flex;align-items:center;gap:.9em;margin-bottom:clamp(20px,3.4vh,32px)}
.eyebrow .rule{height:1px;flex:0 0 clamp(28px,6vw,64px);background:#F4F2EE}
.hero .label{color:rgba(244,242,238,.74)}

h1.hero-title{
  font-family:"Playfair Display",serif;font-weight:500;color:#F4F2EE;
  font-size:clamp(2.35rem,1.5rem + 6.4vw,6rem);
  line-height:1.02;letter-spacing:-.005em;
  margin-bottom:clamp(20px,3.2vh,30px);
  max-width:18ch;
}
h1.hero-title em{font-style:italic;font-weight:400}

.lede{max-width:70ch;font-size:clamp(1rem,.96rem + .4vw,1.22rem);line-height:1.55;color:rgba(244,242,238,.92)}
.lede .soft{color:rgba(244,242,238,.66)}
.lede .heavy{color:#F4F2EE;font-weight:600}

.actions{display:flex;flex-wrap:wrap;gap:14px 18px;margin-top:clamp(28px,5vh,44px);align-items:center}
.btn{
  display:inline-flex;align-items:center;gap:.7em;
  font-family:inherit;font-weight:600;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  text-decoration:none;padding:1em 1.6em;border-radius:0;cursor:pointer;
  transition:transform .3s,background .3s,color .3s,border-color .3s;
}
.btn-solid{background:#F4F2EE;color:#15140F;border:1px solid #F4F2EE}
.btn-solid:hover{transform:translateY(-2px)}
.btn-line{background:none;color:#F4F2EE;border:1px solid rgba(244,242,238,.5)}
.btn-line:hover{border-color:#F4F2EE}
.btn:focus-visible{outline:2px solid #F4F2EE;outline-offset:3px}
.btn .arrow{display:inline-block;transition:transform .3s}
.btn:hover .arrow{transform:translateX(4px)}

/* ---- photographic section breaks ---- */
.frame{position:relative;width:100%;overflow:hidden;background:var(--line)}
.frame img{width:100%;height:100%;object-fit:cover;object-position:center 70%;display:block}
.frame-tall{aspect-ratio:16/10}
@media(min-width:760px){.frame-tall{aspect-ratio:16/7}}
.frame-cap{
  position:absolute;left:0;bottom:0;right:0;padding:clamp(20px,4vw,40px);
  background:linear-gradient(0deg,rgba(8,8,9,.55),transparent);
  color:#F4F2EE;
}
.frame-cap .tag{font-family:"Playfair Display",serif;font-style:italic;font-weight:500;font-size:clamp(1rem,.95rem + .6vw,1.4rem);max-width:34ch}

/* ---- thesis ---- */
.thesis{border-top:1px solid var(--line);padding-block:clamp(56px,10vh,104px)}
.thesis .grid{display:grid;gap:clamp(34px,5vw,72px)}
@media(min-width:760px){.thesis .grid{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start}}
.thesis blockquote{
  font-family:"Playfair Display",serif;font-weight:500;font-style:italic;
  font-size:clamp(1.5rem,1.1rem + 2.4vw,2.5rem);line-height:1.28;letter-spacing:-.005em;
}
.thesis .body p+p{margin-top:1.1em}
.thesis .body .key{color:var(--ink);font-weight:500}
.thesis .body p{color:var(--muted)}
.thesis .body p.closer{
  font-family:"Playfair Display",serif;
  font-size:clamp(1.4rem,1.1rem + 1.4vw,2rem);
  font-weight:500;
  color:var(--ink);
  margin-top:1.4em;
  line-height:1.2;
}

/* ---- hires / index ---- */
.hires{border-top:1px solid var(--line);padding-block:clamp(56px,10vh,104px)}
.sec-head{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:clamp(40px,7vh,72px)}
.sec-head h2{font-family:"Playfair Display",serif;font-weight:500;font-size:clamp(2rem,1.4rem + 3.4vw,3.4rem);line-height:1;letter-spacing:-.01em}
.sec-head .meta{text-align:left}

.phase{margin-top:clamp(34px,5vh,56px)}
.phase:first-of-type{margin-top:0}
.phase-head{display:flex;align-items:baseline;gap:1em;padding-bottom:14px;margin-bottom:6px;border-bottom:1px solid var(--line-strong)}
.phase-head .num{font-family:"Playfair Display",serif;font-style:italic;font-weight:500;font-size:1rem;color:var(--muted)}
.phase-head .name{font-weight:600;letter-spacing:.18em;text-transform:uppercase;font-size:.78rem}
.phase-head .desc{margin-left:auto;color:var(--muted);font-size:.78rem;letter-spacing:.04em;display:none}
@media(min-width:620px){.phase-head .desc{display:block}}

.row{
  display:grid;grid-template-columns:auto 1fr;gap:4px 18px;
  padding:clamp(20px,3.4vh,30px) 0;border-bottom:1px solid var(--line);
  align-items:baseline;
}
@media(min-width:760px){
  .row{grid-template-columns:3.2rem minmax(0,11.5rem) 1fr;gap:0 clamp(20px,3vw,44px);align-items:baseline}
}
.row .idx{font-family:"Playfair Display",serif;font-style:italic;font-weight:500;font-size:1.05rem;color:var(--muted);grid-row:1/2}
.row .name{font-family:"Playfair Display",serif;font-weight:500;font-size:clamp(1.3rem,1.1rem + 1.1vw,1.7rem);line-height:1.08;letter-spacing:-.005em}
.row .body{grid-column:2/3}
@media(min-width:760px){.row .body{grid-column:3/4}}
.row .tag{font-family:"Playfair Display",serif;font-style:italic;font-weight:500;font-size:clamp(1rem,.96rem + .4vw,1.18rem);line-height:1.35;margin-bottom:.5em}
.row .desc{color:var(--muted);font-size:.95rem;line-height:1.55;max-width:54ch}
.row:hover .name{opacity:.62;transition:opacity .3s}

/* ---- org chart ---- */
.org-grow{
  text-align:center;font-style:italic;font-weight:500;
  font-size:clamp(1rem,.95rem + .45vw,1.25rem);line-height:1.4;
  margin:clamp(24px,4vh,36px) auto 0;max-width:40ch;
}

/* ---- signal ---- */
.signal{margin-top:clamp(40px,7vh,72px);padding:clamp(30px,5vw,56px);border:2px solid var(--ink);border-radius:0;position:relative}
.signal .inner{position:relative}
.signal .tier{margin-bottom:1em}
.signal h3{font-family:"Playfair Display",serif;font-weight:500;font-size:clamp(1.7rem,1.3rem + 2.2vw,2.6rem);line-height:1.04;margin-bottom:.4em;letter-spacing:-.01em}
.signal .tag{font-family:"Playfair Display",serif;font-style:italic;font-weight:500;font-size:clamp(1.05rem,1rem + .5vw,1.3rem);margin-bottom:.8em}
.signal p{color:var(--muted);max-width:62ch}
.signal .heavy{color:var(--ink);font-weight:600}
.signal .soft{color:var(--muted);opacity:.62}

/* ---- the first seven ---- */
.seven{margin-top:0}

.seven-door{margin-top:clamp(20px,3.5vh,30px)}
.seven-door a{color:var(--muted);text-decoration:underline;text-underline-offset:3px;transition:color .3s}
.seven-door a:hover{color:var(--ink)}
.seven-door a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---- CTA ---- */
.cta{
  margin-top:clamp(64px,11vh,120px);border-radius:0;
  padding:clamp(56px,12vw,140px) clamp(26px,6vw,80px);text-align:center;position:relative;overflow:hidden;
  color:#F4F2EE;
  background:
    linear-gradient(180deg,rgba(8,8,9,.62),rgba(8,8,9,.74)),
    url('images/cta-living-room.jpg') center/cover no-repeat;
}
.cta .label{color:rgba(244,242,238,.66)}
.cta h2{font-family:"Playfair Display",serif;font-weight:500;font-size:clamp(2.1rem,1.5rem + 4vw,4.4rem);line-height:1.02;letter-spacing:-.015em;margin:.5em auto .55em;max-width:16ch;color:#F4F2EE}
.cta h2 em{font-style:italic;font-weight:400}
.cta p{color:rgba(244,242,238,.82);max-width:48ch;margin:0 auto clamp(30px,5vh,44px)}
.cta .btn-invert{background:#F4F2EE;color:#15140F;border:1px solid #F4F2EE}
.cta .btn-invert:hover{transform:translateY(-2px)}
.cta .btn-invert:focus-visible{outline:2px solid #F4F2EE;outline-offset:3px}

/* ---- leak calculator ---- */
.klink{text-decoration:none;transition:color .3s}
.klink:hover{color:var(--ink)}
.klink:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.leak{max-width:560px;margin:0 auto;text-align:center}

.leak-step,.leak-result{animation:leak-in .5s ease both}
@keyframes leak-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.leak-step,.leak-result{animation:none}}

.cta .leak-q-meta{color:rgba(244,242,238,.55);margin:0 auto .9em}
.leak-q-meta .q-idx{font-style:italic;font-size:1.15em;color:#F4F2EE;letter-spacing:0;text-transform:none;margin-right:.35em}
.cta .leak-q{font-weight:500;font-size:clamp(1.25rem,1.05rem + 1.2vw,1.7rem);line-height:1.2;color:#F4F2EE;margin:0 auto 1.2em}
.cta .leak-q-sub{color:rgba(244,242,238,.55);font-size:.85rem;letter-spacing:.02em;margin:-1em auto 1.4em}

.leak-opts{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.leak-opt{
  font-family:inherit;font-weight:600;font-size:.78rem;letter-spacing:.12em;text-transform:uppercase;
  padding:1em 1.5em;background:none;border:1px solid rgba(244,242,238,.45);color:#F4F2EE;
  border-radius:0;cursor:pointer;transition:border-color .3s,background .3s,color .3s,transform .3s;
}
.leak-opt:hover{border-color:#F4F2EE;transform:translateY(-2px)}
.leak-opt:focus-visible{outline:2px solid #F4F2EE;outline-offset:3px}

.leak-result .label{color:rgba(244,242,238,.66)}
.cta .leak-figure{
  font-weight:500;font-style:italic;
  font-size:clamp(3rem,2rem + 6vw,5.5rem);line-height:1;letter-spacing:-.015em;
  color:#F4F2EE;margin:.25em auto .3em;
}
.cta .leak-math{color:rgba(244,242,238,.66);font-size:.9rem;line-height:1.55;max-width:44ch;margin:0 auto clamp(26px,4vh,36px)}
.leak-reset{
  display:block;margin:1.4em auto 0;background:none;border:none;cursor:pointer;
  color:rgba(244,242,238,.55);text-decoration:underline;text-underline-offset:3px;
  transition:color .3s;
}
.leak-reset:hover{color:#F4F2EE}
.leak-reset:focus-visible{outline:2px solid #F4F2EE;outline-offset:3px}

.visually-hidden{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.leak-form{
  display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;
  gap:18px 28px;max-width:560px;margin:0 auto;
}
.leak-field{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.leak-field-name{flex:0 1 150px}
.leak-field-email{flex:1 1 300px}
@media(max-width:519px){.leak-field-name,.leak-field-email{flex:1 1 100%}}
.cta .leak-label{color:rgba(244,242,238,.55);margin-bottom:.45em}
.leak-input{
  width:100%;
  background:transparent;border:0;border-radius:0;
  border-bottom:1px solid rgba(244,242,238,.4);
  font-family:"Playfair Display",Georgia,serif;font-style:italic;font-weight:500;
  font-size:1.15rem;line-height:1.3;letter-spacing:.01em;
  color:#F4F2EE;padding:.15em .05em .4em;
  transition:border-color .3s,box-shadow .3s;
  -webkit-appearance:none;appearance:none;
}
.leak-input::placeholder{color:rgba(244,242,238,.35)}
.leak-input:hover{border-color:rgba(244,242,238,.7)}
.leak-input:focus{outline:none;border-color:#F4F2EE;box-shadow:0 1px 0 #F4F2EE}
.leak-input[aria-invalid="true"]{border-color:#E0A69B;box-shadow:0 1px 0 #E0A69B}
.leak-submit{flex:0 0 auto;margin-top:.9em}
.leak-submit[disabled]{opacity:.6;cursor:wait;transform:none}
.cta .leak-math{margin-bottom:1.4em}
.cta .leak-ask{max-width:46ch;margin:0 auto clamp(22px,3.5vh,30px);color:rgba(244,242,238,.62);font-size:.95rem;line-height:1.5}
.cta .leak-ask .heavy{color:#F4F2EE;font-weight:600}
.cta .leak-note{margin:1.1em auto 0;color:rgba(244,242,238,.55)}
.cta .leak-note.is-error{color:#E0A69B}
.cta .leak-note.is-done{color:#F4F2EE}
.cta .leak-done{
  font-style:italic;font-weight:500;font-size:clamp(1.15rem,1rem + 1vw,1.5rem);line-height:1.3;
  color:#F4F2EE;margin:0 auto;
}

/* ---- footer ---- */
footer{padding-block:clamp(48px,8vh,80px) clamp(36px,6vh,56px);margin-top:clamp(24px,4vh,48px)}
.foot{display:flex;justify-content:space-between;align-items:flex-end;gap:24px}
.foot-toggle{flex:none}

.foot-block{text-align:left}
.foot-block .mark{text-align:left}
.ftag{margin-top:.6em;max-width:70ch}

.foot-contact{margin-top:clamp(22px,3.4vh,32px)}
.frow{line-height:1.3}
.flabel{color:var(--ink)}
.fval{text-decoration:none;transition:color .3s}
.flabel + .fval{margin-left:.5em}
.fval:hover{color:var(--ink)}
.fval:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

.foot-legal{margin-top:clamp(22px,3.4vh,32px);opacity:.85}

@media(max-width:619px){
  .foot{flex-direction:row-reverse}
}

/* ---- reveal ---- */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .8s ease,transform .8s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}