/* SEBASTIAN COLE — white Beverly Hills editorial. */
:root{
  --white:#FFFFFF; --porcelain:#FAF8F5; --ink:#1A1817; --muted:#6E6862;
  --gold:#C6A867; --gold-deep:#A8874A; --blush:#D9A7A0;
  --serif:"Fraunces",Georgia,serif; --sans:"Space Grotesk",-apple-system,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:var(--white);color:var(--ink);font:16px/1.6 var(--sans)}
::selection{background:rgba(217,167,160,.4)}
:focus-visible{outline:2px solid var(--gold-deep);outline-offset:3px;border-radius:2px}

.nav{position:fixed;inset:0 0 auto 0;z-index:50;display:flex;justify-content:space-between;align-items:center;padding:20px 40px;
  background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(255,255,255,.6) 70%,transparent);backdrop-filter:blur(8px)}
.mast{font-family:var(--serif);font-weight:500;letter-spacing:.34em;font-size:15px;color:var(--ink);text-decoration:none}
.mast .sig{height:52px;width:auto;display:block;filter:drop-shadow(0 1px 3px rgba(26,24,23,.12))}
.sigbig{height:110px;width:auto;display:block;margin:0 auto 8px}
.navlinks{display:flex;gap:30px;font-size:12px;letter-spacing:.22em;text-transform:uppercase}
.navlinks a{color:var(--muted);text-decoration:none;transition:color .2s}
.navlinks a:hover{color:var(--ink)}

.kicker{font-size:11px;letter-spacing:.44em;color:var(--gold-deep);margin-bottom:16px}
h1{font-family:var(--serif);font-weight:360;font-size:clamp(44px,6.2vw,92px);line-height:1.04}
h2{font-family:var(--serif);font-weight:400;font-size:clamp(30px,4vw,54px);line-height:1.1}
h1 em,h2 em{font-style:italic;color:var(--blush)}
.frag h2 em{color:var(--gold)}

/* SIGNATURE SEQUENCE — real rendered 3-D gallery (three.js, WebGL).
   Default presentation is the static editorial hero; scene.js adds `.live`
   after a successful first render, which extends the section into a
   scroll-driven camera sequence. The canvas never captures input. */
.seq{position:relative;height:100vh;background:var(--white)}
/* .staged extends the scroll stage at load time (one early reflow, long
   before the scene arrives); .live later only swaps still/canvas — cheap */
.seq.staged{height:420vh}
.seq-sticky{position:sticky;top:0;height:100vh;overflow:hidden}
.seq-still{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% center}
#scene3d{position:absolute;inset:0;width:100%;height:100%;display:none;pointer-events:none}
/* the canvas is present (transparent) from the staged moment so its first
   paint happens early and quietly; going live is a compositor-only fade.
   The still simply stays underneath — the opaque render covers it. */
.seq.staged #scene3d{display:block;opacity:0.01;transition:opacity .35s ease}
.seq.live #scene3d{display:block;opacity:1}
.seq-overlay{position:absolute;z-index:3;pointer-events:none}
.seq-overlay a{pointer-events:auto}
.seq-overlay.gone{visibility:hidden}
.seq-overlay.gone a{pointer-events:none}
.seq-intro{left:6vw;top:16vh;max-width:560px;will-change:transform,opacity}
.seq-intro .siglogo{width:min(44vw,470px);height:auto;display:block;margin-bottom:26px;filter:drop-shadow(0 2px 10px rgba(255,255,255,.9))}
.seq-intro .lede{color:var(--muted);font-size:16px;max-width:360px;margin-top:14px}
.scrollcue{margin-top:44px;display:inline-flex;align-items:center;gap:14px;color:var(--ink);text-decoration:none;font-size:12px;letter-spacing:.26em;text-transform:uppercase}
.scrollcue i{width:1px;height:44px;background:linear-gradient(var(--gold),transparent);display:block;animation:drip 1.8s ease-in-out infinite}
@keyframes drip{50%{transform:scaleY(.55);opacity:.5}}

/* transformation section */
.hero{min-height:92vh;display:grid;grid-template-columns:minmax(320px,44%) 1fr;align-items:center;gap:4vw;padding:10vh 5vw 6vh}
.herotext .lede{margin-top:22px;color:var(--muted);max-width:400px;font-size:16px}
.reveal{position:relative;border-radius:22px;overflow:hidden;box-shadow:0 40px 90px rgba(26,24,23,.16);aspect-ratio:16/10;cursor:none}
.reveal img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.reveal .glam{clip-path:circle(0px at 50% 50%);will-change:clip-path}
.reveal:after{content:"";position:absolute;inset:0;border:1px solid rgba(198,168,103,.5);border-radius:22px;pointer-events:none}
/* no-JS: the reveal cannot follow input, so show a fixed, composed partial
   reveal — same content, no motion, no instruction that would be false */
html:not(.js) .reveal{cursor:default}
html:not(.js) .reveal .glam{clip-path:circle(140px at 62% 42%)}

/* mode-correct instruction line: exactly one sentence is shown, and it is
   the one that matches the visitor's real input/motion mode */
.instr span{display:none}
html:not(.js) .instr .i-nojs{display:inline}
html.js .instr .i-pointer{display:inline}
@media (hover:none),(pointer:coarse){
  html.js .instr .i-pointer{display:none}
  html.js .instr .i-touch{display:inline}
}
@media (prefers-reduced-motion: reduce){
  .instr span{display:none!important}
  .instr .i-reduced{display:inline!important}
}

/* campaign editorial row (atmosphere only, nothing for sale) */
.campaign{padding:12vh 6vw 4vh;max-width:1200px;margin:0 auto;text-align:center}
.camrow{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:44px;align-items:start}
.camrow.four{grid-template-columns:repeat(4,1fr);gap:22px}
.cam{color:var(--ink);display:block}
@media (max-width:1100px){.camrow.four{grid-template-columns:1fr 1fr}}
.cam{border-radius:20px;overflow:hidden;box-shadow:0 30px 70px rgba(26,24,23,.14);background:var(--porcelain)}
.cam img{width:100%;height:auto;display:block;transition:transform .7s ease}
.cam:hover img{transform:scale(1.03)}
.cam figcaption{font-size:11px;letter-spacing:.26em;text-transform:uppercase;color:var(--muted);padding:14px;display:flex;flex-direction:column;gap:8px;align-items:center}
@media (max-width:900px){.camrow{grid-template-columns:1fr}}

/* collections */
.collection{padding:12vh 6vw;max-width:1200px;margin:0 auto}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-top:44px}
.tiles.one{grid-template-columns:minmax(280px,640px)}
.tile{display:block;text-decoration:none;color:var(--ink);background:var(--porcelain);border-radius:20px;overflow:hidden;
  box-shadow:0 18px 50px rgba(26,24,23,.1);transition:transform .3s ease, box-shadow .3s ease;transform:translateY(var(--py,0))}
.tile:hover{transform:translateY(calc(var(--py,0px) - 8px));box-shadow:0 30px 70px rgba(26,24,23,.16)}
.tim{aspect-ratio:4/3;overflow:hidden}
.tim img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.tile:hover .tim img{transform:scale(1.045)}
.tile h3{font-family:var(--serif);font-weight:460;font-size:24px;padding:20px 24px 22px}
.tile p{color:var(--muted);font-size:14px;padding:0 24px 24px;margin-top:-14px}

/* fragrance band */
.frag{display:grid;grid-template-columns:1fr minmax(300px,44%);gap:5vw;align-items:center;background:var(--porcelain);
  padding:12vh 6vw;margin:6vh 0}
.fragim{border-radius:20px;overflow:hidden;box-shadow:0 30px 70px rgba(26,24,23,.14)}
.fragim img{width:100%;height:auto;display:block}
.fragtext p{color:var(--muted);margin-top:18px;max-width:380px}

/* men */
.men{padding-top:4vh}

/* the edit (structured slots only until the publication gate passes) */
.editlist{padding:10vh 6vw 14vh;max-width:1200px;margin:0 auto}
.editsub{color:var(--muted);margin:14px 0 40px;max-width:520px;font-size:15px}
.editmeta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin:-16px 0 36px;padding:16px 0;border-top:1px solid rgba(198,168,103,.28);border-bottom:1px solid rgba(198,168,103,.28)}
.editcount{color:var(--muted);font-size:12px;letter-spacing:.14em;text-transform:uppercase}
.editcount strong{color:var(--gold-deep);font-family:var(--serif);font-size:22px;font-weight:460;letter-spacing:0;text-transform:none}
.editnav{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.editnav a{color:var(--ink);border:1px solid rgba(198,168,103,.45);border-radius:999px;padding:7px 11px;font-size:10px;letter-spacing:.16em;text-decoration:none;text-transform:uppercase;transition:background .2s,color .2s}
.editnav a:hover,.editnav a:focus-visible{background:var(--gold);color:var(--white)}
.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.prod{display:flex;flex-direction:column;gap:8px;color:var(--ink);background:var(--white);
  border:1px solid rgba(198,168,103,.4);border-radius:16px;padding:26px 24px;box-shadow:0 12px 34px rgba(26,24,23,.08);
  transition:transform .25s, box-shadow .25s}
.prod:hover{transform:translateY(-6px);box-shadow:0 24px 54px rgba(26,24,23,.14)}
.ptag{font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:var(--gold-deep)}
.prod h3{font-family:var(--serif);font-weight:460;font-size:21px}
.prod p{color:var(--muted);font-size:14px;flex:1}

/* honest non-purchasable state chip */
.state{font-size:10px;letter-spacing:.24em;text-transform:uppercase;color:var(--muted);
  border:1px solid rgba(198,168,103,.45);border-radius:999px;padding:6px 12px;align-self:stretch;
  width:100%;box-sizing:border-box;white-space:normal;text-align:center;line-height:1.45;
  display:flex;align-items:center;justify-content:center;min-height:30px}
.cam .state{align-self:center;white-space:normal}

/* footer */
.foot{border-top:1px solid rgba(198,168,103,.35);background:var(--porcelain);padding:40px;text-align:center}
.cop{color:var(--muted);font-size:11px;letter-spacing:.14em;margin-top:8px}

/* scroll reveal — enhancement only: sections are hidden-then-revealed ONLY
   when JavaScript is running (html.js). Without JS everything is visible. */
html.js .collection,html.js .frag{opacity:0;transform:translateY(30px);transition:opacity .8s ease, transform .8s ease}
/* The merchandise edit is a direct destination from the masthead. Keep it
   present even when a visitor lands on #edit before the observer can settle. */
html.js .editlist{opacity:1;transform:none}
html.js .collection.on,html.js .frag.on,html.js .editlist.on{opacity:1;transform:none}

@media (max-width:900px){
  /* direct, keyboard-accessible collection navigation stays present on
     mobile/tablet: the masthead stacks and the links remain real links */
  .nav{flex-direction:column;align-items:center;gap:8px;padding:12px 16px 10px}
  .mast .sig{height:38px}
  .navlinks{display:flex;gap:18px;font-size:10.5px;letter-spacing:.14em}
  .seq.staged{height:330vh}
  .seq-still{object-position:58% 78%}
  .seq-intro{left:0;right:0;padding:0 7vw;max-width:100%;top:16vh}
  .seq-intro .siglogo{width:min(64vw,380px)}
  .hero{grid-template-columns:1fr;padding-top:18vh}
  .reveal{cursor:default}
  .tiles{grid-template-columns:1fr}
  .frag{grid-template-columns:1fr}
  .editmeta{align-items:flex-start;flex-direction:column}
  .editnav{justify-content:flex-start}
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  html.js .collection,html.js .frag,html.js .editlist{opacity:1;transform:none;transition:none}
  .seq,.seq.staged,.seq.live{height:100vh}
  .seq.staged #scene3d,.seq.live #scene3d{display:none}
  .seq.live .seq-still{display:block}
  .scrollcue i{animation:none}
  .cam img,.tile,.tim img,.prod{transition:none}
}
