/* ============================================================
   WAYA — eyewear for each world
   Design system + scroll engine styles
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root{
  /* Ink & paper */
  --ink:        #1C1A17;   /* her sampled near-black */
  --ink-soft:   #46413A;
  --muted:      #7C746A;
  --bone:       #F4F1EA;   /* --cream */
  --bone-dim:   #EBE5D9;   /* --cream-2 */
  --dune:       #E1D9C9;   /* --cream-3 */
  --shot:       #F1F2EE;   /* sampled from the corners of the frame shots */
  --shot-tech:  #EEEADF;   /* sampled from the exploded diagram */

  /* Desert neutrals (from her hero + mood frames) */
  --sand:       #D6C6AC;
  --clay:       #A8623C;
  --clay-soft:  #C08A5E;
  --sepia:      #B9A184;

  /* Frame accents (pulled from the product line in the deck) */
  --navy:       #223A55;
  --forest:     #2E4A3D;
  --brass:      #C6A15B;

  --accent:     var(--clay);
  --line:       rgba(28,26,23,.13);
  --line-soft:  rgba(28,26,23,.07);

  /* Type */
  /* Client asked for "DINKA". No such Google Font exists — see README.
     Barlow is the closest free DIN-alike; swap the three lines below for a
     licensed DIN and nothing else in the stylesheet needs to change. */
  --display: "Barlow", "DIN Next", "Helvetica Neue", Arial, sans-serif;
  --text:    "Barlow", "DIN Next", "Helvetica Neue", Arial, sans-serif;
  --ui:      "Barlow", "DIN Next", "Helvetica Neue", Arial, sans-serif;

  /* Scale — fluid */
  /* The client asked for one heading size and one body size throughout —
     "mantieni sempre le stesse dimensioni" — so the whole page runs on
     three: the hero, every section heading, and every piece of copy. */
  --t-hero:  clamp(44px, 7.2vw, 132px);   /* the hero alone */
  --t-display: clamp(40px, 5.4vw, 92px);  /* headings set over full-bleed photography */
  --t-title: clamp(30px, 3.1vw, 52px);    /* every section / panel heading */
  --t-copy:  clamp(16px, 1.15vw, 19px);   /* every paragraph, everywhere */

  /* kept as aliases so nothing downstream breaks */
  --t-h1:    var(--t-display);
  --t-h2:    var(--t-title);
  --t-h3:    var(--t-title);
  --t-lede:  var(--t-title);
  --t-lead:  var(--t-copy);
  --t-body:  var(--t-copy);
  --t-micro: 11px;

  /* Rhythm */
  --gut:     clamp(1.25rem, 4vw, 3.5rem);
  --bay:     clamp(4rem, 11vh, 9rem);
  --maxw:    1560px;

  /* Motion — matches the reference's slow, weighted feel */
  --e-out:   cubic-bezier(.16,1,.3,1);
  --dur:     1.15s;
  --stagger: 90ms;

  --chrome-h: clamp(7.5rem, 13vh, 10.5rem);

  /* the WAYA line, for the "you are here" mark in the navigation */
  --waya-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10'%3E%3Cpath d='M1 6 Q4 1 7 6 T13 6 T19 6 L23 2 L29 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- 2. RESET ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,p,ul,li,figure,form{margin:0;padding:0}
ul{list-style:none}
img,video,svg{display:block;max-width:100%}
button,input,textarea{font:inherit;color:inherit}
a{color:inherit;text-decoration:none}
em,i,address{font-style:normal}

html,body{height:auto}
body{
  background:var(--ink);
  color:var(--bone);
  font-family:var(--text);
  font-size:var(--t-body);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

/* Lenis */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-stopped{overflow:hidden}
html:not(.lenis) *{scroll-behavior:smooth}

.skip{
  position:fixed;top:0;left:0;z-index:200;
  transform:translateY(-120%);
  background:var(--ink);color:var(--bone);
  padding:.75rem 1.25rem;font-family:var(--ui);font-size:.8rem;
}
.skip:focus{transform:none}

:focus-visible{outline:2px solid var(--brass);outline-offset:3px}

/* ---------- 3. TYPOGRAPHY ---------- */
.display{
  font-family:var(--display);
  font-style:normal;
  font-weight:400;
  line-height:1.1;
  letter-spacing:-0.005em;
  font-size:var(--t-h2);
  text-wrap:balance;
}
.display span{display:block}
.display + .lead,
.display + .prose{margin-top:clamp(18px,2.2vh,34px)}

/* Photo/product credit. Sentence case, no tracking — the section number and
   name live in the rail, so nothing needs repeating above the headline. */
.credit{
  font-family:var(--ui);
  font-size:clamp(12px,.95vw,14px);
  font-weight:400;
  letter-spacing:.01em;
  color:var(--muted);
  margin-top:clamp(14px,1.8vh,22px);
}
section[data-theme="dark"] .credit{
  color:rgba(244,241,234,.72);
  text-shadow:0 1px 12px rgba(28,26,23,.55);
}

.lead{
  font-family:var(--text);
  font-style:normal;
  font-weight:400;
  font-size:var(--t-lead);
  line-height:1.5;
  max-width:52ch;
}
.lead--center{max-width:56ch;margin-inline:auto;text-align:center}

.prose{max-width:66ch;font-weight:400;font-size:clamp(17px,1.3vw,22px);line-height:1.62}
.prose p + p{margin-top:1.15em}
.prose em{font-style:normal;letter-spacing:.02em}

/* ---------- 4. LAYOUT ---------- */
.s{position:relative;isolation:isolate}
.wrap{
  position:relative;z-index:2;
  width:100%;max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gut);
}
.wrap--narrow{max-width:58rem}

section[data-theme="light"]{background:var(--bone);color:var(--ink)}
section[data-theme="dark"]{background:var(--ink);color:var(--bone)}

/* ---------- 5. MEDIA + PLACEHOLDER TONES ---------- */
.media{position:absolute;inset:0;z-index:0;overflow:hidden;--py:0px;--ps:1}
.media--fill{inset:0}
.media__v,.media__img{
  position:absolute;
  top:-8%;left:0;width:100%;height:116%;
  object-fit:cover;
  will-change:transform;
  transform:translate3d(0,var(--py,0px),0) scale(var(--ps,1));
}
/* The real photograph layers ON TOP of the gradient stand-in, so the
   composition still reads before the client's assets are dropped in. */
.media__img{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Tasteful gradient stand-ins so the build reads as designed before assets land */
.media[data-tone="dune"]  {background:linear-gradient(180deg,#BFD3DE 0%,#E4CFAC 42%,#C8A47A 100%)}
.media[data-tone="sepia"] {background:linear-gradient(180deg,#C9B49C 0%,#A98F76 55%,#6E5C4C 100%)}
.media[data-tone="sand"]  {background:linear-gradient(150deg,#D9C3A5 0%,#B08D63 60%,#7C6146 100%)}
.media[data-tone="rock"]  {background:linear-gradient(160deg,#D4BE9E 0%,#A98B68 55%,#5E4C3A 100%)}
.media[data-tone="warm"]  {background:linear-gradient(140deg,#8E6F5A 0%,#5A4438 60%,#2A211C 100%)}
.media[data-tone="stone"] {background:linear-gradient(160deg,#7E8B8A 0%,#4C5654 55%,#232927 100%)}
.media[data-tone="slate"] {background:linear-gradient(160deg,#6E7679 0%,#3E4547 55%,#1D2122 100%)}
.media[data-tone="sky"]   {background:linear-gradient(180deg,#8FB4D8 0%,#C4D3E0 48%,#E9DEC8 100%)}
.media[data-tone="night"] {background:linear-gradient(160deg,#3B342C 0%,#211D18 55%,#14110E 100%)}

/* Video stand-in: the poster still, drifting. Removed by JS the moment a real
   MP4 reports it can play, so no double-image and no wasted paint. */
.media__img--drift{
  animation:drift 34s ease-in-out infinite alternate;
  transform-origin:52% 48%;
}
@keyframes drift{
  from{transform:translate3d(0,var(--py,0px),0) scale(1.06)}
  to  {transform:translate3d(0,var(--py,0px),0) scale(1.16) translateX(-1.4%)}
}
.media__v{opacity:0;transition:opacity .8s var(--e-out)}
.media__v.is-playing{opacity:1}
.media__v.is-playing ~ .media__img--drift{display:none}

/* Legibility veils — her mockup runs italic type straight over busy photography */
[data-bg]{opacity:0;transition:opacity .9s var(--e-out)}
[data-bg].is-loaded{opacity:1}
.media__veil{position:absolute;inset:0;pointer-events:none}
.media__veil--soft{background:
  linear-gradient(180deg,rgba(20,17,14,.30) 0%,rgba(20,17,14,0) 30%),
  radial-gradient(120% 80% at 50% 62%,rgba(20,17,14,.34) 0%,rgba(20,17,14,0) 68%),
  linear-gradient(0deg,rgba(20,17,14,.30) 0%,rgba(20,17,14,0) 30%)}
.media__veil--read{background:
  linear-gradient(180deg,rgba(20,17,14,.55) 0%,rgba(20,17,14,.30) 38%,rgba(20,17,14,.62) 100%)}
.media__veil--read-strong{background:
  linear-gradient(180deg,rgba(20,17,14,.52) 0%,rgba(20,17,14,.44) 34%,rgba(20,17,14,.46) 64%,rgba(20,17,14,.58) 100%),
  radial-gradient(85% 50% at 50% 42%,rgba(20,17,14,.34) 0%,rgba(20,17,14,0) 76%)}
.media__veil--edge{background:
  linear-gradient(180deg,rgba(20,17,14,.46) 0%,rgba(20,17,14,0) 40%,rgba(20,17,14,.58) 100%)}

/* ---------- 6. MASTHEAD ---------- */
.masthead{
  position:fixed;inset:0 0 auto 0;z-index:100;
  min-height:var(--chrome-h);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  grid-template-rows:auto auto;
  /* client: "maggior spazio / interlinea tra logo e menù" — this is that gap */
  row-gap:clamp(26px,4.4vh,52px);
  align-items:center;
  padding:clamp(1.4rem,3vh,2.3rem) var(--gut) clamp(1rem,2vh,1.6rem);
  color:var(--bone);
  transition:color .6s var(--e-out);
}
.masthead__scrim{
  position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(20,17,14,.60) 0%,rgba(20,17,14,.22) 55%,rgba(20,17,14,0) 100%);
  opacity:1;transition:opacity .6s var(--e-out),background .6s var(--e-out);
}
/* Over cream sections the chrome inverts — fixes the vanishing nav in her deck */
.masthead.is-light{color:var(--ink)}
.masthead.is-light .masthead__scrim{
  background:linear-gradient(180deg,rgba(244,241,234,.92) 0%,rgba(244,241,234,.62) 60%,rgba(244,241,234,0) 100%);
}
.masthead.is-pinned .masthead__scrim{backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}

.wordmark{
  grid-column:2;grid-row:1;
  display:block;
  width:clamp(148px,15vw,232px);
  aspect-ratio:615/76;
  background-color:currentColor;          /* the mark takes the chrome colour */
  -webkit-mask:url('../assets/img/wordmark.png') no-repeat center/contain;
          mask:url('../assets/img/wordmark.png') no-repeat center/contain;
  transition:opacity .4s var(--e-out);
}
.wordmark:hover{opacity:.6}

.nav{
  grid-column:1/-1;grid-row:2;
  justify-self:center;
  pointer-events:none;
}
.nav ul{
  display:flex;
  gap:clamp(1rem,3.3vw,3.4rem);
  pointer-events:auto;
}
.nav a{
  position:relative;
  font-family:var(--ui);
  font-size:12px;
  font-weight:500;
  letter-spacing:.22em;
  text-transform:uppercase;
  padding-block:8px;
  opacity:.82;
  transition:opacity .45s var(--e-out);
}
.nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:currentColor;transform:scaleX(0);transform-origin:0 50%;
  transition:transform .55s var(--e-out);
}
.nav a:hover,.nav a.is-active{opacity:1}
.nav a:hover::after{transform:scaleX(1)}

/* The client asked for a mark on the area you are actually in. It is the
   WAYA line itself, drawn small under the live item — so the wordmark and
   the "you are here" signal are the same gesture. */
.nav a.is-active::after{display:none}
.nav a.is-active::before{
  content:"";
  position:absolute;left:50%;bottom:-11px;
  width:26px;height:9px;transform:translateX(-50%);
  background:currentColor;
  -webkit-mask:var(--waya-mark) center/26px 9px no-repeat;
          mask:var(--waya-mark) center/26px 9px no-repeat;
  animation:markIn .5s var(--e-out) both;
}
@keyframes markIn{from{opacity:0;transform:translateX(-50%) translateY(-3px)}to{opacity:1}}

/* CONTACT reads as the one action in the bar — boxed in both client mockups */
.nav li:last-child a{
  padding:10px 18px;
  border:1px solid currentColor;
  opacity:.9;
}
.nav li:last-child a::after{display:none}
.nav li:last-child a:hover{background:currentColor;color:var(--ink)}
.masthead.is-light .nav li:last-child a:hover{color:var(--bone)}

.social{grid-column:3;grid-row:1;justify-self:end;display:flex;gap:.5rem}
.social a{
  width:1.85rem;height:1.85rem;display:grid;place-items:center;
  background:currentColor;transition:opacity .4s var(--e-out);
}
.social a svg{width:1.05rem;height:1.05rem;color:var(--ink)}
.masthead.is-light .social a svg{color:var(--bone)}
.social a:hover{opacity:.7}

.burger{
  grid-column:3;grid-row:1;justify-self:end;
  display:none;background:none;border:0;cursor:pointer;
  width:2.4rem;height:2.4rem;padding:.6rem;
}
.burger span{display:block;height:1px;background:currentColor;transition:transform .5s var(--e-out),opacity .3s}
.burger span+span{margin-top:.42rem}
.burger[aria-expanded="true"] span:first-child{transform:translateY(.22rem) rotate(45deg)}
.burger[aria-expanded="true"] span:last-child{transform:translateY(-.22rem) rotate(-45deg)}

/* ---------- 7. MOBILE DRAWER ---------- */
.drawer{
  position:fixed;inset:0;z-index:95;
  background:var(--ink);
  display:grid;place-items:center;
  opacity:0;transition:opacity .5s var(--e-out);
}
/* The JS opens and closes this with the `hidden` attribute, but a class
   `display` beats the browser's own [hidden] rule — so without this line the
   closed drawer stays laid out, full-screen and invisible at opacity 0, and
   swallows every click and hover on the page behind it. */
.drawer[hidden]{display:none}
.drawer.is-open{opacity:1}
.drawer ul{display:grid;gap:1.4rem;text-align:center}
.drawer a{
  font-family:var(--display);font-weight:500;
  font-size:clamp(2.1rem,9vw,3.2rem);letter-spacing:-.02em;
}
.drawer em{
  display:block;font-style:normal;font-family:var(--ui);
  font-size:11px;font-weight:500;letter-spacing:.3em;opacity:.45;margin-bottom:.35rem;
}

/* ---------- 8. SECTION RAIL (replaces the ▶ arrow) ---------- */
.rail{
  position:fixed;z-index:90;
  right:clamp(.9rem,2.2vw,2rem);top:50%;
  transform:translateY(-50%);
  display:grid;justify-items:center;gap:.9rem;
  color:var(--bone);mix-blend-mode:difference;
  font-family:var(--ui);font-size:.58rem;letter-spacing:.24em;
}
.rail__index{font-variant-numeric:tabular-nums}
.rail__track{width:1px;height:clamp(5rem,14vh,9rem);background:currentColor;opacity:.28;position:relative}
.rail__fill{position:absolute;inset:0 0 auto 0;width:1px;background:currentColor;height:0%;transition:height .12s linear}
.rail__label{
  writing-mode:vertical-rl;text-transform:uppercase;
  opacity:.6;transition:opacity .4s var(--e-out);
}

/* ---------- 9. SCROLL REVEAL ENGINE ---------- */
[data-reveal]{
  opacity:0;
  transform:translate3d(0,42px,-120px) rotateX(3deg) rotateY(-9deg) rotateZ(-.6deg);
  transition:
    opacity var(--dur) var(--e-out) var(--d,0ms),
    transform var(--dur) var(--e-out) var(--d,0ms),
    filter var(--dur) var(--e-out) var(--d,0ms);
  filter:blur(6px);
  will-change:opacity,transform;
}
[data-stage]{perspective:1800px;transform-style:preserve-3d}
[data-stage].is-in [data-reveal],
[data-reveal].is-in{
  opacity:1;
  transform:none;
  filter:blur(0);
}

/* ---------- 10. 01 HERO ---------- */
.hero{
  min-height:100svh;
  display:grid;place-items:center;
  padding:var(--chrome-h) var(--gut) var(--bay);
}
.hero__inner{position:relative;z-index:2;text-align:center;width:100%}
.hero__title{
  font-size:var(--t-hero);
  font-weight:400;
  line-height:1.0;
  letter-spacing:-.012em;
  text-shadow:0 2px 60px rgba(28,26,23,.4);
}
.scrollcue{
  position:absolute;z-index:3;
  left:50%;bottom:clamp(2rem,5vh,4rem);transform:translateX(-50%);
  display:grid;justify-items:center;gap:.7rem;
  font-family:var(--ui);font-size:.58rem;letter-spacing:.32em;text-transform:uppercase;opacity:.8;
}
.scrollcue__line{width:1px;height:3.2rem;background:currentColor;transform-origin:50% 0;animation:cue 2.4s var(--e-out) infinite}
@keyframes cue{0%{transform:scaleY(0);opacity:0}40%{transform:scaleY(1);opacity:1}100%{transform:scaleY(1) translateY(3.2rem);opacity:0}}

/* ---------- 11. 02 MOOD ---------- */
.mood{
  min-height:100svh;
  display:grid;align-items:center;
  padding:calc(var(--chrome-h) + var(--bay)) 0 var(--bay);
}
.mood__lede{
  font-size:var(--t-h2);
  line-height:1.16;
  letter-spacing:-.005em;
  text-align:center;
  max-width:36ch;margin:0 auto 2.6rem;
}
.mood .prose{margin-inline:auto;text-align:center}

/* ---------- 12. 03/06 STICKY STACK ---------- */
.stack{position:relative}
.stack__panel{
  position:sticky;top:0;
  height:100svh;
  display:grid;align-items:end;
  padding:var(--chrome-h) 0 var(--bay);
  overflow:hidden;
}
.stack__copy{max-width:var(--maxw)}
.stack__copy--end{text-align:right}
.stack__copy--end .lead{margin-left:auto}
.stack__copy .display{font-size:var(--t-display);line-height:1.1}
.stack__copy--lead{max-width:none;text-align:center}
.stack__copy--lead .lead{margin-inline:auto;margin-bottom:clamp(1.6rem,4vh,2.8rem)}
.stack__copy--lead .display{margin-inline:auto;max-width:18ch}
.stack__copy .lead{margin-top:1.4rem}
section[data-theme="dark"] .stack__copy .display,
section[data-theme="dark"] .stack__copy .lead{text-shadow:0 2px 28px rgba(28,26,23,.5)}

/* ---------- 13. 04 CRAFT — specs list (layout comes from .panel) ---------- */
.spec{position:relative;padding-left:1.7rem;border-top:1px solid var(--line);padding-top:1.1rem}
.spec__dot{
  position:absolute;left:0;top:1.6rem;
  width:.4rem;height:.4rem;border-radius:50%;background:var(--accent);
}
.spec__t{
  display:block;font-family:var(--display);font-weight:500;
  font-size:calc(var(--t-copy) * 1.18);letter-spacing:-.01em;line-height:1.2;
  margin-bottom:.45rem;
}
.spec__d{display:block;font-weight:400;color:var(--ink-soft);font-size:var(--t-copy);line-height:1.6}

/* ---------- 15. 08 EYEWEAR GRID ---------- */
.eyewear{padding:calc(var(--chrome-h) + var(--bay)) 0 var(--bay);background:var(--bone)}
.eyewear__head{margin-bottom:clamp(2.5rem,6vh,4rem)}
.eyewear__head .panel__title{font-size:var(--t-title)}

.filters{display:flex;gap:.5rem;margin-top:1.8rem;flex-wrap:wrap}
.filter{
  background:none;border:1px solid rgba(20,17,14,.2);
  padding:.5rem 1.1rem;cursor:pointer;
  font-family:var(--ui);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;
  transition:background .4s var(--e-out),color .4s var(--e-out),border-color .4s var(--e-out);
}
.filter:hover{border-color:var(--ink)}
.filter.is-on{background:var(--ink);color:var(--bone);border-color:var(--ink)}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  /* row gap runs wider than the column gap: each card carries its name,
     shape and colour dots under the photograph, and that block needs air
     beneath it before the next row starts */
  column-gap:clamp(1.6rem,3.4vw,4rem);
  row-gap:clamp(2.8rem,5.2vw,6rem);
}
.card{transition:opacity .5s var(--e-out)}
.card[hidden]{display:none}

.card__btn{
  display:block;width:100%;text-align:left;
  background:none;border:0;padding:0;cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.card__img{
  display:block;position:relative;overflow:hidden;
  background:var(--shot);
  border-radius:2px;
}
.card__img img{
  display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;
  transition:transform 1.1s var(--e-out),filter 1.1s var(--e-out);
  will-change:transform;
}
.card__btn:hover .card__img > picture:first-of-type img,
.card__btn:focus-visible .card__img > picture:first-of-type img{transform:scale(1.045);filter:contrast(1.02)}

/* Hover shows the same frame as a sunglass, where one was photographed.
   Guarded on (hover:hover) so a phone — which fires a sticky hover on tap —
   never swaps the image under the finger. */
.card__sun{
  position:absolute;inset:0;opacity:0;pointer-events:none;
  transition:opacity .45s var(--e-out);
}
.card__sun img{
  width:100%;height:100%;object-fit:cover;display:block;
  transform:scale(1.045);
}
.card__suntag{
  position:absolute;left:.7rem;top:.7rem;z-index:2;
  padding:.2rem .5rem;border-radius:2px;
  background:rgba(28,26,23,.82);color:var(--bone);
  font-family:var(--ui);font-size:.56rem;letter-spacing:.2em;text-transform:uppercase;
  opacity:0;transform:translateY(-3px);
  transition:opacity .35s var(--e-out),transform .35s var(--e-out);
  pointer-events:none;
}
@media (hover:hover){
  .card__btn:hover .card__sun,
  .card__btn:focus-visible .card__sun{opacity:1}
  .card__btn:hover .card__suntag,
  .card__btn:focus-visible .card__suntag{opacity:1;transform:none}
}
@media (prefers-reduced-motion:reduce){
  .card__sun,.card__suntag{transition:none}
  .card__sun img{transform:none}
}
.card__btn:focus-visible{outline:2px solid var(--ink);outline-offset:4px}

.card__meta{
  display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  margin-top:.9rem;
}
.card__n{
  font-family:var(--display);font-weight:500;
  font-size:clamp(18px,1.4vw,23px);letter-spacing:.01em;
  display:flex;align-items:baseline;gap:.5em;
}
.card__name{
  font-weight:400;font-size:.72em;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted);
}
.card__c{font-family:var(--ui);font-size:clamp(11px,.9vw,13px);color:var(--muted)}

.card__dots{
  display:flex;align-items:center;gap:.34rem;flex-wrap:wrap;
  margin-top:.7rem;padding-bottom:.9rem;
  border-bottom:1px solid var(--line-soft);
}
.card__dot{
  width:11px;height:11px;border-radius:50%;
  background:var(--c,#333);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.22);
  flex:0 0 auto;
}
.card__dot[data-sun="1"]{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.22),0 0 0 1.5px var(--bone),0 0 0 2.5px var(--c);
}
.card__dot--more,.card__cw{
  font-family:var(--ui);font-size:10px;letter-spacing:.08em;color:var(--muted);
}
.card__cw{margin-left:auto}
.card__cw::after{content:" col."}

/* ---------- 16. 09 WHERE ---------- */
.where{padding:calc(var(--chrome-h) + var(--bay)) 0 var(--bay);background:var(--bone-dim)}
.where__head{margin-bottom:clamp(2.5rem,6vh,4rem)}
.stockists{display:grid;gap:0;border-top:1px solid var(--line)}
.stockists li{
  display:grid;grid-template-columns:minmax(10rem,16rem) 1fr;gap:1.5rem;
  align-items:baseline;
  padding:clamp(1.1rem,2vh,1.7rem) 0;
  border-bottom:1px solid var(--line);
  transition:padding-left .5s var(--e-out);
}
.stockists li:hover{padding-left:.6rem}
.stockists__city{font-family:var(--display);font-weight:500;font-size:clamp(24px,2.2vw,36px)}
.stockists__n{font-weight:400;font-size:clamp(17px,1.3vw,22px);color:var(--ink-soft)}
.where__note{margin-top:2.4rem;font-size:clamp(17px,1.3vw,22px);color:var(--ink-soft)}
.where__note a{border-bottom:1px solid var(--accent)}

/* ---------- 17. 10 CONTACT ---------- */
.contact{
  min-height:100svh;display:grid;align-items:center;
  padding:calc(var(--chrome-h) + var(--bay)) 0 var(--bay);
}
.contact__title{font-size:var(--t-h1);text-align:center;margin-bottom:clamp(2rem,5vh,3.5rem)}
.form{
  display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;
  max-width:44rem;margin-inline:auto;
  /* the backdrop here is a bright, busy portrait — the form carries its own
     ground so the labels never have to fight it */
  padding:clamp(1.6rem,3vw,2.4rem);
  background:rgba(20,17,14,.42);
  backdrop-filter:blur(9px) saturate(.9);
  -webkit-backdrop-filter:blur(9px) saturate(.9);
  border:1px solid rgba(244,241,234,.13);
  border-radius:3px;
}
.field{position:relative}
.field--full{grid-column:1/-1}
.field input,.field textarea{
  width:100%;background:none;border:0;border-bottom:1px solid rgba(244,241,234,.32);
  padding:.9rem 0 .6rem;font-family:var(--text);font-style:normal;resize:none;
  transition:border-color .45s var(--e-out);
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--brass)}
.field label{
  position:absolute;left:0;top:.9rem;pointer-events:none;
  font-family:var(--ui);font-size:.62rem;letter-spacing:.24em;text-transform:uppercase;opacity:.72;
  transition:transform .45s var(--e-out),opacity .45s var(--e-out);
}
.field input:focus + label,.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,.field textarea:not(:placeholder-shown) + label{
  transform:translateY(-1.3rem) scale(.86);opacity:1;
}
.btn{
  grid-column:1/-1;justify-self:start;
  background:none;border:1px solid rgba(244,241,234,.4);
  padding:.85rem 2.6rem;cursor:pointer;
  font-family:var(--ui);font-size:.62rem;letter-spacing:.28em;text-transform:uppercase;
  transition:background .5s var(--e-out),color .5s var(--e-out),border-color .5s var(--e-out);
}
.btn:hover{background:var(--bone);color:var(--ink);border-color:var(--bone)}
.form__status{grid-column:1/-1;font-size:clamp(15px,1.1vw,18px);opacity:.8;min-height:1.4em}

.contact__meta{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;
  max-width:44rem;margin:clamp(2.5rem,6vh,4rem) auto 0;
  padding-top:1.6rem;border-top:1px solid rgba(244,241,234,.18);
}
.contact__meta span{
  display:block;font-family:var(--ui);font-size:.56rem;letter-spacing:.24em;
  text-transform:uppercase;opacity:.62;margin-bottom:.4rem;
}
.contact__meta a{border-bottom:1px solid transparent;transition:border-color .4s}
.contact__meta a:hover{border-color:var(--brass)}

/* ---------- 18. FOOTER · INSTAGRAM ---------- */
.footer{background:var(--bone);color:var(--ink);padding:var(--bay) 0 2.5rem}
.footer__head{
  display:flex;justify-content:flex-start;align-items:baseline;gap:1rem;
  margin-bottom:clamp(1.4rem,2.4vh,2.2rem);flex-wrap:wrap;
}
.footer__handle{font-family:var(--display);font-weight:500;font-size:clamp(20px,1.6vw,26px);border-bottom:1px solid var(--accent)}

/* Elfsight renders its own grid inside here; we only give it room and a
   minimum height so the footer does not jump when the widget arrives. */
.ig-embed{min-height:220px}
.ig-embed > div{width:100%}

.legal{
  display:flex;justify-content:space-between;align-items:flex-start;
  gap:1.5rem 2.5rem;flex-wrap:wrap;
  margin-top:clamp(2.5rem,6vh,4rem);padding-top:1.4rem;
  border-top:1px solid rgba(20,17,14,.14);
  font-family:var(--ui);font-size:.66rem;letter-spacing:.06em;
  line-height:1.75;color:var(--ink);
}
/* the registered entity behind the brand — an Italian company has to carry it */
.legal__co,.legal__meta{opacity:.62}
.legal__meta{text-align:right}
/* The CE declarations are a legal requirement for eyewear sold in the EU,
   so they get their own line rather than queueing behind the © notice. */
.legal__docs{
  flex:1 0 100%;display:flex;flex-wrap:wrap;align-items:baseline;gap:.5rem 1.4rem;
  margin:1.4rem 0 0;padding-top:1.2rem;border-top:1px solid var(--line-soft);
  opacity:.72;
}
.legal__docs > span{
  font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);
}
.legal__docs a{
  display:inline-flex;align-items:baseline;gap:.5rem;
  border-bottom:1px solid var(--line);color:var(--ink);
}
.legal__docs a:hover{border-bottom-color:var(--accent)}
.legal__docs em{
  font-style:normal;font-size:.58rem;letter-spacing:.16em;color:var(--muted);
}
.legal__name{
  font-family:var(--display);font-size:.86rem;font-weight:500;
  letter-spacing:.01em;text-transform:none;margin-bottom:.15rem;
}
.legal a:hover{opacity:1;text-decoration:underline}

/* ---------- 18b. HERO SUB ---------- */
.hero__sub{
  max-width:46ch;margin:clamp(1.2rem,2.4vh,2rem) auto 0;
  font-size:var(--t-lead);line-height:1.5;color:rgba(244,241,234,.76);
  font-weight:300;
}

/* ---------- 18c. BAND + PANEL ---------------------------------------
   Craft and Special Project are the same component, so the headings,
   the copy and the photographs are the same size in both by construction
   rather than by coincidence — which is what the client asked for.
   ------------------------------------------------------------------ */
.band{
  background:var(--bone);color:var(--ink);
  /* the masthead is fixed, so a section landed on from the nav needs room
     for the chrome to sit over without eating its heading */
  padding:calc(var(--chrome-h) + var(--bay) * .55) 0 var(--bay);
}
.band--alt{background:var(--bone-dim)}

.panel{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(2rem,5vw,5.5rem);
  align-items:center;
}
.panel + .panel{
  margin-top:clamp(3.5rem,9vh,7rem);
  padding-top:clamp(3.5rem,9vh,7rem);
  border-top:1px solid var(--line-soft);
}
/* alternate the side the photograph sits on, so a run of panels reads
   as a rhythm instead of a list */
.panel:nth-child(even) .panel__body{order:2}

.panel__title{
  font-family:var(--display);
  font-weight:500;
  font-size:var(--t-title);
  line-height:1.05;
  letter-spacing:-.015em;
}
.panel__title span{display:block;font-weight:300;color:var(--ink-soft)}
.panel__title--solo span{display:inline}

.panel__copy{margin-top:1.5rem;max-width:46ch}
.panel__copy p{font-size:var(--t-copy);line-height:1.6;color:var(--ink-soft)}
.panel__copy p + p{margin-top:1rem}

.panel__meta{margin-top:1.6rem;font-family:var(--ui);font-size:.78rem;letter-spacing:.04em}
.panel__meta a{color:var(--ink);border-bottom:1px solid var(--line)}
.panel__meta a:hover{border-bottom-color:var(--clay)}
.panel__meta em{font-style:normal;letter-spacing:.18em;text-transform:uppercase;color:var(--clay);font-size:.9em}

.panel__media{margin:0;background:var(--shot);border-radius:2px;overflow:hidden}
.panel__media img{
  display:block;width:100%;height:auto;
  aspect-ratio:4/3;object-fit:contain;background:var(--shot);
}

.panel .specs{margin-top:1.6rem;display:grid;gap:clamp(1.2rem,2.4vh,1.9rem)}

/* ---------- 18e. COLLECTION EXTRAS ---------- */
.eyewear__lede{max-width:62ch;margin-top:1.2rem}
.eyewear__lede em{font-weight:600;color:var(--ink)}
.filters{align-items:center}
.filters__rule{width:1px;height:1.1rem;background:var(--line);margin-inline:.35rem}
.filter__n{opacity:.5;margin-left:.35em;font-size:.9em}
.eyewear__count{
  margin-top:1rem;font-family:var(--ui);font-size:.72rem;
  letter-spacing:.12em;color:var(--muted);min-height:1em;
}
.eyewear__note{
  margin-top:clamp(2rem,4vh,3rem);padding-top:1.4rem;border-top:1px solid var(--line);
  font-family:var(--ui);font-size:.8rem;color:var(--muted);letter-spacing:.02em;
}
.eyewear__note strong{color:var(--ink);font-weight:500}

/* ---------- 18f. PRODUCT SHEET ---------- */
.sheet{position:fixed;inset:0;z-index:120;display:grid;place-items:center}
.sheet[hidden]{display:none}
.sheet__scrim{
  position:absolute;inset:0;background:rgba(20,17,14,.62);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  opacity:0;transition:opacity .45s var(--e-out);
}
.sheet.is-open .sheet__scrim{opacity:1}
.sheet__panel{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.15fr .85fr;
  width:min(1120px,92vw);max-height:88vh;overflow:hidden;
  background:var(--bone);color:var(--ink);border-radius:3px;
  box-shadow:0 40px 120px rgba(20,17,14,.4);
  transform:translate3d(0,26px,0) scale(.985);opacity:0;
  transition:transform .55s var(--e-out),opacity .45s var(--e-out);
}
.sheet.is-open .sheet__panel{transform:none;opacity:1}
.sheet__x{
  position:absolute;top:.5rem;right:.75rem;z-index:3;
  width:2.4rem;height:2.4rem;border:0;background:none;cursor:pointer;
  font-size:1.8rem;line-height:1;color:var(--ink-soft);
}
.sheet__x:hover{color:var(--ink)}
.sheet__media{background:var(--shot);display:flex;flex-direction:column;justify-content:center;min-width:0}
.sheet__media img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}
.sheet__views{display:flex;gap:.5rem;padding:.75rem;flex-wrap:wrap;background:var(--shot)}
.sheet__views[hidden]{display:none}
.sheet__views button{
  width:64px;height:43px;padding:0;border:1px solid transparent;background:#fff;
  cursor:pointer;border-radius:2px;overflow:hidden;opacity:.6;
  transition:opacity .3s,border-color .3s;
}
.sheet__views button img{width:100%;height:100%;object-fit:cover;aspect-ratio:auto}
.sheet__views button.is-on,.sheet__views button:hover{opacity:1;border-color:var(--ink)}
.sheet__body{padding:clamp(1.6rem,3vw,2.8rem);overflow-y:auto}
.sheet__series{
  font-family:var(--ui);font-size:.66rem;letter-spacing:.22em;text-transform:uppercase;
  color:var(--muted);
}
.sheet__title{font-size:clamp(30px,3.4vw,52px);margin-top:.5rem;line-height:1}
.sheet__title em{
  display:block;font-size:.42em;letter-spacing:.2em;text-transform:uppercase;
  color:var(--clay);font-weight:400;margin-top:.6rem;
}
.sheet__size{margin-top:.8rem;font-family:var(--ui);font-size:.85rem;color:var(--ink-soft)}
.sheet__label{
  margin-top:2rem;font-family:var(--ui);font-size:.66rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);
}
.sheet__swatches{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.9rem}
.sheet__sw{
  display:flex;align-items:center;gap:.45rem;
  padding:.32rem .6rem .32rem .34rem;cursor:pointer;
  background:none;border:1px solid var(--line);border-radius:999px;
  font-family:var(--ui);font-size:.7rem;letter-spacing:.06em;color:var(--ink-soft);
  transition:border-color .3s,color .3s,background .3s;
}
.sheet__sw i{
  width:15px;height:15px;border-radius:50%;background:var(--c);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.25);flex:0 0 auto;
}
.sheet__sw[data-sun="1"] span::after{content:" ·SUN";font-size:.82em;opacity:.6}
.sheet__sw:hover{border-color:var(--ink-soft);color:var(--ink)}
.sheet__sw.is-on{border-color:var(--ink);color:var(--ink);background:rgba(28,26,23,.05)}
.sheet__specs{
  display:grid;grid-template-columns:auto 1fr;gap:.45rem 1.2rem;
  margin-top:2rem;padding-top:1.2rem;border-top:1px solid var(--line);
  font-size:.88rem;
}
.sheet__specs dt{font-family:var(--ui);font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);align-self:center}
.sheet__specs dd{margin:0;color:var(--ink-soft)}
.btn--ghost{
  display:inline-block;margin-top:2rem;
  background:none;border:1px solid var(--ink);color:var(--ink);
}
.btn--ghost:hover{background:var(--ink);color:var(--bone)}
body.is-locked{overflow:hidden}

/* ---------- 18f2. LEAD FORM ---------- */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.consent{
  display:flex;align-items:flex-start;gap:.7rem;
  margin-top:.4rem;font-size:.82rem;line-height:1.45;
  color:rgba(244,241,234,.86);
}
.consent input{
  flex:0 0 auto;width:1.05rem;height:1.05rem;margin-top:.16rem;
  accent-color:var(--clay);cursor:pointer;
}
.consent label{cursor:pointer}
.consent a{border-bottom:1px solid rgba(244,241,234,.4)}
.consent a:hover{border-bottom-color:currentColor}
.form [aria-invalid="true"]{border-color:var(--clay)!important}
.form__status.is-err{color:#E3A07A}
.form__status.is-ok{color:#A9C6A2}
.btn[disabled]{opacity:.55;cursor:progress}

/* ---------- 18g. WHERE / MISC ---------- */
.where__pending{
  max-width:60ch;margin-top:clamp(1.5rem,3vh,2.4rem);
  padding:1.4rem 1.6rem;border-left:2px solid var(--clay);
  background:rgba(168,98,60,.05);
  font-size:var(--t-body);color:var(--ink-soft);
}
.where__pending a{border-bottom:1px solid currentColor}
.credit--center{text-align:center}

/* ---------- 18h. COOKIE NOTICE ----------
   It sits above the drawer but below the product sheet, so opening a frame
   never fights it. Dismissed state lives in localStorage. */
.cookie{
  position:fixed;left:0;right:0;bottom:0;z-index:110;
  display:flex;align-items:center;justify-content:center;gap:clamp(1rem,3vw,2.2rem);
  flex-wrap:wrap;
  padding:clamp(.9rem,2vw,1.15rem) var(--gut);
  background:rgba(20,17,14,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-top:1px solid rgba(244,241,234,.14);
  color:var(--bone);
  transform:translateY(100%);
  transition:transform .55s var(--e-out);
}
.cookie[hidden]{display:none}
.cookie.is-in{transform:none}
.cookie__text{
  margin:0;max-width:78ch;
  font-family:var(--ui);font-size:.82rem;line-height:1.55;
  color:rgba(244,241,234,.82);
}
.cookie__more{
  color:var(--bone);border-bottom:1px solid rgba(244,241,234,.4);
  margin-left:.35em;white-space:nowrap;
}
.cookie__more:hover{border-bottom-color:var(--clay)}
.cookie__ok{
  flex:0 0 auto;
  background:none;border:1px solid rgba(244,241,234,.45);color:var(--bone);
  padding:.55rem 1.5rem;border-radius:2px;cursor:pointer;
  font-family:var(--ui);font-size:.62rem;letter-spacing:.24em;text-transform:uppercase;
  transition:background .4s var(--e-out),color .4s var(--e-out),border-color .4s var(--e-out);
}
.cookie__ok:hover{background:var(--bone);color:var(--ink);border-color:var(--bone)}
.cookie__ok:focus-visible{outline:2px solid var(--brass);outline-offset:3px}

@media (max-width:620px){
  .cookie{justify-content:flex-start;gap:.9rem;padding-bottom:calc(.9rem + env(safe-area-inset-bottom))}
  .cookie__text{font-size:.78rem}
  .cookie__ok{width:100%;padding:.7rem}
}
@media (prefers-reduced-motion:reduce){
  .cookie{transition:none}
}

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width:1024px){
  .craft__figure{grid-template-columns:1fr;gap:2.5rem}
  .panel{grid-template-columns:1fr;gap:2.2rem}
  .panel:nth-child(even) .panel__body{order:0}
  .sheet__panel{grid-template-columns:1fr .9fr}
}

@media (max-width:820px){
  :root{--chrome-h:4.6rem}
  .nav{display:none}
  .social{display:none}
  .burger{display:block}
  .masthead{grid-template-columns:1fr auto 1fr;min-height:var(--chrome-h)}
  .rail{display:none}

  /* "Flat, quiet version on the phone" — same content, no 3D */
  [data-reveal]{transform:translate3d(0,28px,0);filter:blur(4px)}

  .grid{grid-template-columns:repeat(2,1fr)}
  .form{grid-template-columns:1fr}

  /* filters become a swipe rail rather than a four-line wrap */
  .filters{
    flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;scrollbar-width:none;
    margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);
    padding-bottom:.4rem;
  }
  .filters::-webkit-scrollbar{display:none}
  .filter{flex:0 0 auto;scroll-snap-align:start}

  /* the product sheet becomes a bottom sheet */
  .sheet{place-items:end stretch}
  .sheet__panel{
    grid-template-columns:1fr;width:100%;max-height:92vh;
    border-radius:14px 14px 0 0;
    transform:translate3d(0,100%,0);opacity:1;
    transition:transform .5s var(--e-out);
  }
  .sheet.is-open .sheet__panel{transform:none}
  .sheet__media img{aspect-ratio:3/2}
  .sheet__body{padding:1.4rem 1.25rem 2rem}
  .sheet__x{
    top:.35rem;right:.35rem;background:rgba(244,241,234,.86);border-radius:50%;
    width:2.2rem;height:2.2rem;
  }
  .sheet__views{padding:.6rem;gap:.4rem}
  .sheet__views button{width:54px;height:36px}
  .panel + .panel{margin-top:2.8rem;padding-top:2.8rem}
  .panel__copy{max-width:none}
  .contact__meta{grid-template-columns:1fr;gap:1.1rem}
  .stack__copy--end{text-align:left}
  .stack__copy--end .lead{margin-left:0}
  .legal{flex-direction:column;gap:1.1rem}
  .legal__meta{text-align:left}

  /* Instagram strip becomes a swipeable rail */
  .ig{
    display:flex;overflow-x:auto;scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    margin-inline:calc(var(--gut) * -1);padding-inline:var(--gut);
    scrollbar-width:none;
  }
  .ig::-webkit-scrollbar{display:none}
  .ig__i{flex:0 0 42vw;scroll-snap-align:start}
}

@media (max-width:520px){
  .grid{grid-template-columns:repeat(2,1fr);column-gap:1.1rem;row-gap:2.2rem}
  .card__n{font-size:16px;gap:.35em;flex-wrap:wrap}
  .card__name{font-size:.62em;letter-spacing:.1em}
  .card__c{font-size:10.5px}
  .card__dot{width:9px;height:9px}
  .card__dots{gap:.28rem;padding-bottom:.7rem}
  .card__cw::after{content:""}

  .stockists li{grid-template-columns:1fr;gap:.2rem}
  .ig__i{flex:0 0 58vw}
}

/* ============================================================
   20. REDUCED MOTION — the static variant
   ============================================================ */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
    scroll-behavior:auto !important;
  }
  [data-reveal]{opacity:1 !important;transform:none !important;filter:none !important}
  .media__v,.media__img{transform:none !important}
  .stack__panel{position:relative}
  .scrollcue__line{animation:none}
}

/* Print */
@media print{
  .masthead,.rail,.drawer,.scrollcue,.media{display:none}
  body{background:#fff;color:#000}
  [data-reveal]{opacity:1;transform:none;filter:none}
}
