/* A continuous material palette. Opening remains the public site's original hero. */
.masthead { background:#322c26; color:#f9f0e1; border-color:#79695a; }
.masthead .wordmark img { filter:brightness(0) invert(1); }
.masthead .button--entry,.masthead .menu-toggle { color:inherit; border-color:#968474; }
.masthead .button--entry:hover,.masthead .menu-toggle:hover { background:#53483c; }
.masthead .nav a:hover,.masthead .nav a[aria-current] { color:#ffcf9e; }
.reading-ruler { position:absolute; inset:auto 0 -2px; height:2px; background:#bba58936; pointer-events:none; }
.reading-ruler i { background:#f0bd83; height:100%; display:block; transform-origin:right; transform:scaleX(0); }
@media(max-width:910px) { .masthead .nav[data-open="true"] {background:#322c26;} }
/* Chapter two is a photograph you enter, not a picture in a half-width box. */
.gold-joint { position:relative; height:0; z-index:2; pointer-events:none; }
.gold-sweep { position:absolute; inset:0 0 auto; width:100%; height:clamp(84px,9.7vw,152px); transform:translateY(-50%); overflow:hidden; opacity:0; }
@media (prefers-reduced-motion:reduce) { .gold-sweep { display:none; } }
.contour {background:#39332b;color:#fff6e8;}
.contour-intro .chapter,.contact-jumps a {color:#efc9a0;}
.contour-intro .contact-preface {color:#eadbca;}
.contact-jumps a:hover {color:white;}
#precision-story { position:relative; isolation:isolate; display:grid; grid-template-columns:1fr; min-height:clamp(540px,85svh,950px); overflow:hidden; background:#3f382f; color:#fffaf0; border:0; }
#precision-story .hero__visual { position:absolute; inset:0; z-index:-2; margin:0; min-height:0; overflow:hidden; }
#precision-story .hero__plate { position:absolute; inset:0; }
#precision-story .hero__plate img { object-position:50% 50%; }
.hero__contact-scan { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
#fit { position:relative; }
.fit-transfer { display:none; }
@media (prefers-reduced-motion:reduce), (scripting:none) {
  .hero__contact-scan [data-transfer-draft] { display:none; }
}
@media (prefers-reduced-motion:no-preference) {
  .precision-take[data-paced] { background:#3f382f; }
  .precision-take[data-paced]::after { content:""; display:block; height:clamp(280px,82svh,860px); }
  .precision-take[data-paced] #precision-story { position:sticky; top:var(--photo-top,var(--header)); min-block-size:calc(100svh - var(--header)); }
  #fit[data-transfer-ready] .fit-transfer { display:block; position:absolute; z-index:2; inset-inline:0; bottom:calc(100% - 1px); height:clamp(46px,7vw,92px); pointer-events:none; overflow:hidden; }
  .fit-transfer svg { width:100%; height:100%; }
}
@media (min-width:670px) and (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .precision-take[data-paced]::after { height:clamp(450px,132svh,1390px); }
}
#precision-story::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(270deg,rgba(30,25,20,.92),rgba(31,25,20,.67) 29%,rgba(34,27,21,.12) 68%),linear-gradient(0deg,#201b16b3,transparent 24%); }
#precision-story .hero__copy { position:relative; z-index:1; width:100%; max-width:1440px; margin:auto; padding:clamp(58px,10vw,155px) var(--edge); }
#precision-story h2 { font-size:clamp(3.8rem,7.2vw,8rem); letter-spacing:-.045em; }
#precision-story h2 em, #precision-story .chapter { color:#f0cb9e; }
.hero__principles { list-style:none; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:clamp(4px,1.5vw,18px); inline-size:min(100%,29rem); padding:0; margin:clamp(20px,2.1vw,32px) 0 0; }
.hero__principles li { display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; text-wrap:balance; color:#fff6e8; font-size:clamp(1rem,1.3vw,1.17rem); font-weight:550; line-height:1.35; }
.hero__principles svg { display:block; width:clamp(35px,3.2vw,45px); height:auto; fill:none; stroke:#ffdfaa; stroke-width:1.65; stroke-linejoin:round; stroke-linecap:round; }
.hero__principles .draft-guide { stroke:#e3c39e; stroke-width:1.05; }
#precision-story { grid-template-rows:1fr auto; }
#precision-story .hero__foot { position:relative; justify-self:center; align-self:end; max-inline-size:calc(100% - 2 * var(--edge)); margin:0 0 clamp(46px,calc(4svh + 22px),74px); padding:8px 12px 0; text-align:center; font-size:clamp(1.08rem,1.3vw,1.2rem); line-height:1.4; border-color:#e1c59c70; color:#f7ecdc; }
#precision-story .hero__foot bdi {display:inline-block;inline-size:2ch;font-variant-numeric:tabular-nums;color:#f0cb9e;}
.hero__foot .years-sr {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
#precision-story .hero__corner { display:none; }
#precision-story .hero__visual figcaption { inset-inline:auto var(--edge); gap:.7rem; color:white; background:none; padding:0 0 16px; font-size:.8rem; }
@media(max-width:669px) {
  #precision-story {min-height:84svh;align-content:end;grid-template-rows:auto auto;}
  #precision-story .hero__plate { inset:0 0 auto -18%; height:min(68%,118vw); -webkit-mask-image:linear-gradient(#000 80%,transparent); mask-image:linear-gradient(#000 80%,transparent); }
  #precision-story::before { background:linear-gradient(0deg,#211a16ef 0%,#2a2119db 37%,#29221b77 64%,#261d1222 100%); }
  #precision-story .hero__copy { align-self:end; padding:clamp(120px,27svh,280px) var(--edge) 26px; }
  #precision-story h2 {font-size:clamp(3.15rem,12vw,4.4rem);}
  #precision-story .hero__visual figcaption {inset-inline:auto var(--edge);font-size:.75rem;}
}
.stone-edition { background:#302b25; color:#f8ecdd; border:0; }
.stone-edition .chapter,.stone-edition .edition-print figcaption bdi {color:#e7bb8e;}
.stone-edition .edition-heading > p:last-child {color:#e2d1bd;}
.stone-edition figure a {position:relative;isolation:isolate;}
.stone-edition figure a::after { content:"↗"; position:absolute; inset:auto auto 14px 14px; color:#fff; width:38px;height:38px; display:grid;place-items:center;border:1px solid #fff9;background:#2e271f70;border-radius:50%; }
.experience {background:#decfb7;position:relative;}
.experience__inner {grid-template-columns:minmax(195px,.82fr) minmax(0,1.3fr);gap:clamp(30px,8vw,140px);}
.experience__portrait {justify-self:center;width:100%;max-width:430px;}
.experience__copy .chapter {border-top:1px solid #9b8169;padding-top:12px;}
.experience__copy h2 {font-weight:500;}
.contact {background:#27241f;color:#fff4e5;position:relative;isolation:isolate;overflow:hidden;padding-block:clamp(90px,16vw,250px);}
.last-stone {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;}
.contact::before {content:"";position:absolute;inset:0;background:linear-gradient(260deg,#191611eb,#221e16c9 53%,#21201c73);z-index:-1;}
.contact .chapter {color:#efcfa9;}
.contact .button--primary {background:#f6ead6;color:#29241f;}
.contact .button--primary:hover {background:#e9d0aa;}
.stone-loupe { position:fixed; inset:0; background:#25211e; color:#fff5e8; border:0; height:100%; height:100dvh; max-height:none; width:100%; max-width:none; margin:0; padding: max(12px,env(safe-area-inset-top)) var(--edge) max(12px,env(safe-area-inset-bottom)); }
.stone-loupe[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;}
.stone-loupe::backdrop {background:#211d1b;}
html:has(.stone-loupe[open]) {overflow:hidden;}
.loupe-bar,.loupe-caption {display:flex;justify-content:space-between;align-items:center;gap:10px;}
.loupe-bar i {font-style:normal;color:#d1a274;padding-inline:6px;}
.stone-loupe button {border:1px solid #b39980;background:transparent;color:#fff2df;min-width:46px;min-height:46px;padding:3px 12px;}
.stone-loupe button:hover {background:#54483c;}
.loupe-image {min-height:0;overflow:hidden;}
.loupe-image img {width:100%;height:100%;object-fit:contain;}
.loupe-caption p {font-size:clamp(1rem,2.5vw,1.6rem);}
.loupe-caption > div {display:flex;gap:8px;}
@media(max-width:669px){.experience__inner {grid-template-columns:1fr;}.experience__portrait {max-width:330px;}.loupe-caption > div {gap:3px;}}
