:root{
  --bg:        #0E0C0A;
  --bg-2:      #151210;
  --ivory:     #F2E6D4;
  /* Wall text — brighter than eidolon's grey, the fix requested */
  --wall:      rgba(242,230,212,.92);
  --wall-dim:  rgba(242,230,212,.7);
  --wall-faint:rgba(242,230,212,.52);
  --gold:      #D4874E;
  --gold-l:    #E8A870;
  --gold-dim:  rgba(212,135,78,.16);
  --line:      rgba(242,230,212,.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Geist', system-ui, sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  background:var(--bg);
  color:var(--wall);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{cursor:pointer;border:none;background:none;font-family:inherit}
::selection{background:var(--gold);color:var(--bg)}

/* ── FIXED CANVAS ───────────────────────────────────────── */
#stage{
  position:fixed;inset:0;z-index:0;
  width:100%;height:100%;
  pointer-events:none;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  display:flex;align-items:center;justify-content:space-between;
  padding:1.4rem clamp(1.25rem,4vw,3rem);
  mix-blend-mode:normal;
}
.nav-logo{display:flex;align-items:center;gap:.6rem}
.nav-logo img{width:26px;height:29px}
.nav-logo span{
  font-size:.85rem;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ivory);
}
.nav-contact{
  font-size:.82rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--wall-dim);
  padding:.5rem 1.1rem;border:1px solid var(--line);border-radius:999px;
  transition:color .3s,border-color .3s;
}
.nav-contact:hover{color:var(--gold-l);border-color:var(--gold)}

/* ── PROGRESS INDICATOR ─────────────────────────────────── */
.progress{
  position:fixed;left:clamp(1.25rem,4vw,3rem);bottom:1.6rem;z-index:50;
  font-size:.78rem;letter-spacing:.22em;color:var(--wall-dim);
  font-variant-numeric:tabular-nums;
  display:flex;align-items:center;gap:.75rem;
  opacity:0;transition:opacity .6s ease;pointer-events:none;
}
.progress.show{opacity:1}
body.mag{cursor:zoom-in}
.progress .bar{
  width:64px;height:1px;background:var(--line);position:relative;overflow:hidden;
}
.progress .bar i{
  position:absolute;inset:0;background:var(--gold);
  transform-origin:left;transform:scaleX(0);
  transition:transform .6s cubic-bezier(.4,0,.2,1);
}

/* ── SECTIONS (wall text) ───────────────────────────────── */
main{position:relative;z-index:10}
section{
  min-height:100svh;
  display:flex;align-items:center;
  padding:6rem clamp(1.5rem,6vw,5rem);
  position:relative;
}

/* text column — alternating sides */
.wall-text{max-width:500px;pointer-events:auto}
section.side-right{justify-content:flex-end}
section.side-left{justify-content:flex-start}
section.side-center{justify-content:center;text-align:center}
section.side-center .wall-text{max-width:560px}

/* plaque elements */
.numeral{
  font-family:var(--serif);
  font-size:1.05rem;letter-spacing:.32em;color:var(--gold-l);
  margin-bottom:1.4rem;
}
.ex-title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.6rem,6vw,4.6rem);
  line-height:1.02;letter-spacing:-.02em;color:var(--ivory);
  margin-bottom:1.1rem;
}
.ex-poem{
  font-family:var(--serif);font-style:italic;font-weight:400;
  font-size:clamp(1.2rem,2.1vw,1.55rem);
  color:var(--gold-l);line-height:1.5;
  margin-bottom:1.5rem;
}
.ex-body{
  font-size:1.08rem;color:var(--wall);line-height:1.8;
  margin-bottom:1.9rem;
}
.ex-stats{
  display:flex;gap:2rem;flex-wrap:wrap;
  padding-top:1.2rem;border-top:1px solid var(--line);
}
.ex-stat b{
  display:block;font-family:var(--serif);font-weight:400;
  font-size:1.75rem;color:var(--gold-l);line-height:1;letter-spacing:-.02em;
}
.ex-stat span{
  display:block;font-size:.74rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--wall-dim);margin-top:.45rem;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero .wall-text{max-width:640px}
.hero-kicker{
  font-size:.72rem;font-weight:600;letter-spacing:.3em;
  text-transform:uppercase;color:var(--gold);margin-bottom:1.6rem;
}
.hero-title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(3rem,8.5vw,6.5rem);
  line-height:1;letter-spacing:-.025em;color:var(--ivory);
  margin-bottom:1.4rem;
}
.hero-title em{font-style:italic;color:var(--gold-l)}
.hero-sub{
  font-size:clamp(1.08rem,1.8vw,1.25rem);color:var(--wall);
  line-height:1.8;max-width:500px;margin:0 auto 0;
}
.hero-hint{
  position:absolute;bottom:2rem;left:50%;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:.6rem;
  font-size:.66rem;letter-spacing:.3em;text-transform:uppercase;
  color:var(--wall-dim);
  animation:hintFloat 2.4s ease-in-out infinite;
}
.hero-hint::after{
  content:'';width:1px;height:34px;
  background:linear-gradient(to bottom,var(--gold),transparent);
}
@keyframes hintFloat{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,7px)}}

/* ── FINALE ─────────────────────────────────────────────── */
.finale-line{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.7rem,3.8vw,3rem);
  line-height:1.3;letter-spacing:-.015em;color:var(--ivory);
  margin-bottom:1.2rem;
}
.finale-line em{font-style:italic;color:var(--gold-l)}
.finale-sub{
  font-size:1.08rem;color:var(--wall);line-height:1.8;
  max-width:470px;margin:0 auto 2.4rem;
}
.btn-ember{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.85rem 2rem;border-radius:999px;
  background:var(--gold);color:var(--bg);
  font-size:.9rem;font-weight:600;letter-spacing:.02em;
  transition:background .25s,transform .2s,box-shadow .25s;
}
.btn-ember:hover{
  background:var(--gold-l);transform:translateY(-2px);
  box-shadow:0 8px 30px rgba(212,135,78,.35);
}
.btn-ember svg{width:15px;height:15px}
.finale-legal{
  margin-top:4.5rem;
  display:flex;flex-direction:column;align-items:center;gap:.9rem;
}
.finale-legal .links{display:flex;gap:1.75rem;flex-wrap:wrap;justify-content:center}
.finale-legal a{
  font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;
  color:var(--wall-faint);transition:color .25s;
}
.finale-legal a:hover{color:var(--gold-l)}
.finale-legal .copy{font-size:.7rem;color:var(--wall-faint)}

/* ── SCROLL REVEAL (wall text fades in) ─────────────────── */
.wr{opacity:0;transform:translateY(26px);
  transition:opacity .9s cubic-bezier(.2,.6,.2,1),transform .9s cubic-bezier(.2,.6,.2,1)}
.wr.in{opacity:1;transform:none}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:820px){
  section{align-items:flex-end;padding-bottom:14svh}
  section.side-right,section.side-left{justify-content:center}
  .wall-text{max-width:100%;text-align:center}
  .ex-stats{justify-content:center}
  .hero{align-items:center}
  .hero .wall-text{text-align:center}
  .ex-title{font-size:clamp(2.2rem,9vw,3rem)}
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media(prefers-reduced-motion:reduce){
  .wr{transition:none;opacity:1;transform:none}
  .hero-hint{animation:none}
}


/* ── PHILOSOPHY ─────────────────────────────────────────── */
.phil-lines{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2rem,3.4vw,2.5rem);
  line-height:1.6;letter-spacing:-.01em;color:var(--ivory);
}
.phil-lines em{font-style:italic;color:var(--gold-l)}
.phil-close{
  font-family:var(--serif);font-style:italic;
  font-size:clamp(2.5rem,2.6vw,1.9rem);
  color:var(--gold-l);margin-top:1.6rem;
}

/* ── VOICES (testimonials) ──────────────────────────────── */
.voice{
  margin-bottom:2.6rem;
}
.voice:last-of-type{margin-bottom:0}
.voice-quote{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2rem,2.2vw,1.5rem);
  line-height:1.6;color:var(--ivory);
  margin-bottom:.8rem;
}
.voice-quote::before{content:'\201C';color:var(--gold-l)}
.voice-quote::after{content:'\201D';color:var(--gold-l)}
.voice-role{
  font-size:1rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-l);
}

/* ── SERVICES rows ──────────────────────────────────────── */
.svc-rows{margin-top:2.4rem;display:flex;flex-direction:column;gap:0}
.svc-row{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:2rem;padding:1.4rem 0;border-top:1px solid var(--line);
  text-align:left;
}
.svc-row:last-child{border-bottom:1px solid var(--line)}
.svc-row b{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.25rem,2.2vw,1.6rem);color:var(--ivory);
  white-space:nowrap;
}
.svc-row span{
  font-size:1rem;color:var(--wall);line-height:1.65;max-width:300px;
}
@media(max-width:600px){
  .svc-row{flex-direction:column;gap:.4rem}
  .svc-row span{max-width:100%}
}

/* ── STORY ──────────────────────────────────────────────── */
.story-body{
  font-size:1.1rem;color:var(--wall);line-height:1.85;
  margin-bottom:1.4rem;text-align:left;
}
.story-body strong{color:var(--ivory);font-weight:600}


/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */
.contact-main{
  min-height:100svh;display:flex;align-items:center;justify-content:center;
  padding:7rem clamp(1.5rem,6vw,4rem) 4rem;position:relative;z-index:10;
}
.contact-card{max-width:560px;width:100%}
.contact-title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.4rem,5.5vw,3.8rem);
  line-height:1.05;letter-spacing:-.02em;color:var(--ivory);
  margin-bottom:1rem;
}
.contact-title em{font-style:italic;color:var(--gold-l)}
.contact-sub{font-size:1.08rem;color:var(--wall);line-height:1.8;margin-bottom:2.6rem}
.cform{display:flex;flex-direction:column;gap:1.5rem}
.cfield label{
  display:block;font-size:.8rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-l);margin-bottom:.55rem;
}
.cfield input,.cfield textarea{
  width:100%;background:rgba(242,230,212,.04);
  border:1px solid var(--line);border-radius:10px;
  padding:.95rem 1.1rem;font-size:1.05rem;color:var(--ivory);
  font-family:var(--sans);outline:none;resize:vertical;
  transition:border-color .25s,background .25s,box-shadow .25s;
}
.cfield input::placeholder,.cfield textarea::placeholder{color:var(--wall-faint)}
.cfield input:focus,.cfield textarea:focus{
  border-color:var(--gold);background:rgba(242,230,212,.06);
  box-shadow:0 0 0 3px rgba(212,135,78,.15);
}
.cform .btn-ember{align-self:flex-start;margin-top:.4rem;font-size:1rem;padding:.95rem 2.3rem}
.contact-divider{height:1px;background:var(--line);margin:3.2rem 0 2rem}
.sd-attrib{
  display:flex;align-items:center;gap:.9rem;justify-content:center;
  text-align:left;
}
.sd-attrib img{width:34px;height:34px;border-radius:8px;flex-shrink:0}
.sd-attrib p{font-size:.92rem;color:var(--wall-dim);line-height:1.6}
.sd-attrib a{color:var(--gold-l);border-bottom:1px solid rgba(232,168,112,.35);transition:border-color .25s}
.sd-attrib a:hover{border-color:var(--gold-l)}
.contact-legal{
  margin-top:2rem;text-align:center;
  display:flex;flex-direction:column;gap:.5rem;
}
.contact-legal span{font-size:.78rem;color:var(--wall-faint)}

/* ── screen-reader-only: in the DOM & crawlable, not visually shown ── */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* ═══════════════════════════════════════════════════════════
   CASE FILE PAGES (guides)
═══════════════════════════════════════════════════════════ */
.cf-main{
  max-width:760px;margin:0 auto;
  padding:8rem clamp(1.5rem,6vw,3rem) 4rem;
  position:relative;z-index:10;
}
.cf-title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2.2rem,5.5vw,3.6rem);
  line-height:1.08;letter-spacing:-.02em;color:var(--ivory);
  margin:.6rem 0 1.2rem;
}
.cf-lede{
  font-size:clamp(1.1rem,1.9vw,1.3rem);color:var(--wall);
  line-height:1.7;margin-bottom:3rem;
}
.cf-steps{display:flex;flex-direction:column;gap:1.8rem;margin-bottom:3rem}
.cf-step{display:flex;gap:1.2rem;align-items:flex-start}
.cf-step-n{
  flex-shrink:0;width:2.4rem;height:2.4rem;border-radius:50%;
  border:1px solid var(--gold);color:var(--gold-l);
  font-family:var(--serif);font-size:1.2rem;
  display:flex;align-items:center;justify-content:center;
  margin-top:.15rem;
}
.cf-step-body h2{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.3rem,2.6vw,1.7rem);color:var(--ivory);
  line-height:1.2;margin-bottom:.5rem;letter-spacing:-.01em;
}
.cf-step-body p{font-size:1.05rem;color:var(--wall);line-height:1.75}
.cf-after{
  border-left:2px solid var(--gold);padding:.4rem 0 .4rem 1.4rem;
  margin-bottom:3.5rem;
}
.cf-after p{font-size:1.08rem;color:var(--wall);line-height:1.75;font-style:italic}
.cf-cta{text-align:center;padding:2.5rem 0 3rem;border-top:1px solid var(--line)}
.cf-cta .finale-line{
  font-family:var(--serif);font-size:clamp(1.5rem,3.2vw,2.1rem);
  color:var(--ivory);margin-bottom:1.4rem;
}
.cf-more{border-top:1px solid var(--line);padding-top:2.5rem}
.cf-more ul{list-style:none;margin-top:1rem;display:flex;flex-direction:column;gap:.9rem}
.cf-more a{
  font-family:var(--serif);font-size:1.2rem;color:var(--wall);
  line-height:1.4;transition:color .25s;display:inline-block;
}
.cf-more a:hover{color:var(--gold-l)}
.cf-foot{
  max-width:760px;margin:0 auto;padding:2.5rem clamp(1.5rem,6vw,3rem) 4rem;
  border-top:1px solid var(--line);text-align:center;
  position:relative;z-index:10;
}
.cf-foot .sd-attrib{justify-content:center;margin-bottom:1rem}
.cf-cookie{font-size:.85rem;color:var(--wall-faint);margin-top:.4rem}

/* ── nav right-side group + text link ── */
.nav-right{display:flex;align-items:center;gap:1.4rem}
.nav-link{
  font-size:.82rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--wall-dim);
  transition:color .3s;white-space:nowrap;
}
.nav-link:hover{color:var(--gold-l)}
@media(max-width:520px){
  .nav{padding:1rem 1.1rem}
  .nav-right{gap:.9rem}
  .nav-link{font-size:.72rem;letter-spacing:.08em}
}


/* ═══════════════════════════════════════════════════════════
   NAV DROPDOWN — Case Files menu
═══════════════════════════════════════════════════════════ */
.nav-dd{position:relative}
.nav-dd-trigger{
  display:inline-flex;align-items:center;gap:.4rem;
  background:none;border:none;cursor:pointer;font-family:inherit;
  /* mirror .nav-link */
  font-size:.82rem;font-weight:600;letter-spacing:.12em;
  text-transform:uppercase;color:var(--wall-dim);
  transition:color .3s;white-space:nowrap;padding:0;
}
.nav-dd-trigger:hover,.nav-dd:hover .nav-dd-trigger,.nav-dd.open .nav-dd-trigger{color:var(--gold-l)}
.dd-caret{transition:transform .3s}
.nav-dd:hover .dd-caret,.nav-dd.open .dd-caret{transform:rotate(180deg)}

.nav-menu{
  position:absolute;top:calc(100% + .9rem);right:0;
  width:min(320px,86vw);
  background:#17130F;                     /* solid so it reads over the canvas */
  border:1px solid var(--line);border-radius:16px;
  padding:.7rem;
  box-shadow:0 24px 60px rgba(0,0,0,.55);
  opacity:0;visibility:hidden;transform:translateY(-8px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
  z-index:60;
}
.nav-dd:hover .nav-menu,
.nav-dd:focus-within .nav-menu,
.nav-dd.open .nav-menu{opacity:1;visibility:visible;transform:none}

.nav-menu-group{
  font-size:.66rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;
  color:var(--gold-l);padding:.7rem .8rem .35rem;
}
.nav-menu-group:first-child{padding-top:.3rem}
.nav-menu a{
  display:block;padding:.55rem .8rem;border-radius:10px;
  font-size:.92rem;font-weight:500;letter-spacing:0;text-transform:none;
  color:var(--wall);line-height:1.35;transition:background .2s,color .2s;
}
.nav-menu a:hover{background:rgba(212,135,78,.12);color:var(--ivory)}

@media(max-width:520px){
  .nav{padding:1rem 1.1rem}
  .nav-right{gap:.9rem}
  .nav-dd-trigger{font-size:.72rem;letter-spacing:.08em}
  .nav-menu{width:min(300px,92vw)}
}



/* ── Voices: sand-cloud testimonials ── */
/* ── Sand slider (reusable) ── */
.sand-slider{position:relative}
.sand-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
/* all slides share one grid cell so height is stable and only one shows */
.sand-track{display:grid}
.sand-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s;margin:0}
.sand-slide.is-active{opacity:1;visibility:visible}

.sand-dots{display:flex;justify-content:center;gap:.6rem;margin-top:1.8rem}
.sand-dot{
  width:9px;height:9px;padding:0;border-radius:50%;cursor:pointer;
  background:transparent;border:1.5px solid var(--wall-dim,#9a8f80);
  transition:background .3s,border-color .3s,transform .2s;
}
.sand-dot:hover{border-color:var(--gold-l,#E8A870);transform:scale(1.15)}
.sand-dot.is-active{background:var(--gold-l,#E8A870);border-color:var(--gold-l,#E8A870)}

@media(prefers-reduced-motion:reduce){
  .sand-slide{transition:opacity .3s ease}
}
