/* =========================================================
   NOON — Optics for the brightest hour
   ========================================================= */

/* The accent colour follows the chosen lens tint. Registering it
   lets the whole site crossfade when the tint changes. */
@property --tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #B8651E;
}

:root {
  --bg: #EFEAE1;
  --bg-2: #E7E1D6;
  --card: #E6DFD3;
  --paper: #F8F5EF;
  --ink: #121110;
  --ink-2: #57524B;
  --ink-3: #8F887D;
  --line: rgba(18, 17, 16, .12);
  --dark: #100F0E;
  --dark-2: #1B1A18;
  --on-dark: #EFEAE1;
  --on-dark-2: rgba(239, 234, 225, .62);
  --line-dark: rgba(239, 234, 225, .14);
  --tint: #B8651E;

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: 18px;
  --nav-h: 76px;
  --bar-h: 32px;
  --header-h: calc(var(--nav-h) + var(--bar-h));

  transition: --tint .9s var(--ease);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Film grain gives the flat colour a printed, tactile feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
em { font-style: italic; }
::selection { background: var(--tint); color: #fff; }
:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1520px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 400; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: top .3s; }
.skip:focus { top: 16px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.6vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-title em { color: var(--tint); }

/* SplitText line masks: a little breathing room so italics & descenders don't clip */
.sl-mask { padding: 0 .12em .1em 0; margin: 0 -.12em -.1em 0; }

/* ---------- Text roll hover (duplicate label slides up) ---------- */
.roll { display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.25; }
.roll > span { display: inline-block; position: relative; transition: transform .6s var(--ease); }
.roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
a:hover .roll > span,
button:hover .roll > span,
a:focus-visible .roll > span,
button:focus-visible .roll > span { transform: translateY(-100%); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  height: 56px;
  padding: 0 1.7em;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn__icon { width: 18px; height: 18px; transition: transform .6s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tint);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn--ink:hover::before, .btn--ink:focus-visible::before { transform: none; }
.btn--ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 40%, transparent); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background .4s var(--ease), color .4s, transform .6s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--ink); color: var(--bg); transform: rotate(90deg); }

/* =========================================================
   Preloader
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--on-dark);
}
html:not(.js) .loader { display: none; }
.loader__mark { width: min(380px, 62vw); overflow: visible; }
.loader__stroke { fill: none; stroke: var(--on-dark); stroke-width: 5; stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
.loader__fill { fill: var(--tint); opacity: 0; transform-origin: center; transform-box: fill-box; }
.loader__line {
  position: absolute; left: var(--gutter); bottom: var(--gutter);
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-2);
}
.loader__count {
  position: absolute; right: var(--gutter); bottom: calc(var(--gutter) - .12em);
  font-family: var(--serif); font-size: clamp(5rem, 15vw, 13rem); line-height: .8;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Custom cursor — a small lens that tints what it passes over
   ========================================================= */
.cursor-lens, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; display: none; }
.has-cursor .cursor-lens, .has-cursor .cursor-dot { display: grid; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor canvas, .has-cursor [data-compare] { cursor: none; }
.has-cursor input { cursor: text; }

.cursor-lens {
  place-items: center;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--tint) 20%, transparent);
  -webkit-backdrop-filter: saturate(1.6) contrast(1.06);
  backdrop-filter: saturate(1.6) contrast(1.06);
  box-shadow: inset 0 0 0 1px rgba(18, 17, 16, .45), 0 0 0 1px rgba(255, 255, 255, .45);
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .35s, opacity .3s;
}
.cursor-lens.is-hover { width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.cursor-lens.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.cursor-lens.is-hidden, .cursor-dot.is-hidden { opacity: 0; }
.cursor-lens__label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease);
}
.cursor-lens.is-label .cursor-lens__label { opacity: 1; transform: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .3s; }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  transition: transform .7s var(--ease), background-color .4s, border-color .4s, color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav.menu-open { color: var(--on-dark); background: transparent; border-color: transparent; backdrop-filter: none; transform: none; }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: block; color: currentColor; }
.logo svg { width: 104px; height: 26px; overflow: visible; }
.logo__lens { fill: var(--tint); opacity: .92; }
.logo__glint { opacity: .8; }

.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 14px; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::before {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--tint); transform: translateX(-50%) scale(0); transition: transform .5s var(--ease);
}
.nav__links a:hover::before, .nav__links a.is-current::before { transform: translateX(-50%) scale(1); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__cart {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 6px 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px;
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  transition: border-color .4s;
}
.nav__cart:hover { border-color: var(--ink); }
.nav__count {
  min-width: 32px; height: 32px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-family: var(--mono); font-size: 12px;
  transition: background .4s;
}
.nav__cart.has-items .nav__count { background: var(--tint); color: #fff; }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.nav.menu-open .nav__burger, .nav.menu-open .nav__cart { border-color: var(--line-dark); background: transparent; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) var(--gutter) 32px;
  background: var(--dark); color: var(--on-dark);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
}
.menu nav { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--serif); font-size: clamp(3rem, 14vw, 6rem); line-height: 1.05;
  border-bottom: 1px solid var(--line-dark);
  padding: 6px 0;
}
.menu a span { font-family: var(--mono); font-size: 12px; color: var(--on-dark-2); }
.menu__foot { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-2); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 660px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 50% 52%, color-mix(in srgb, var(--tint) 32%, transparent), transparent 72%),
    radial-gradient(30% 30% at 85% 12%, color-mix(in srgb, var(--tint) 14%, transparent), transparent 70%);
}
.hero__meta {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
}
.hero__meta-mid { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta-mid::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.7); } }

.hero__title {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-bottom: 8vh;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 12.2vw, 14rem);
  line-height: .84;
  letter-spacing: -.04em;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.hero__title .line { display: block; overflow: hidden; padding: .02em .12em .08em; }
.hero__title .line__inner { display: inline-block; }
.hero__title .line--1 { transform: translateX(-16%); }
.hero__title .line--3 { transform: translateX(22%); }
.hero__title em { color: var(--tint); padding-right: .04em; }

.hero__canvas {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  touch-action: pan-y;
}
.hero__fallback {
  display: none;
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: min(560px, 70vw);
  transform: translate(-50%, -55%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__meta-mid { visibility: hidden; }

.hero__bottom {
  position: relative; z-index: 3;
  grid-row: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  padding-bottom: 34px;
  pointer-events: none;
}
.hero__bottom > * { pointer-events: auto; }
.hero__intro p { max-width: 36ch; color: var(--ink-2); margin-bottom: 22px; font-size: 15px; }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; z-index: 3;
  width: 1px; height: 54px; overflow: hidden;
  background: var(--line);
}
.hero__scroll span { position: absolute; inset: 0; background: var(--ink); animation: scrollLine 2.2s var(--ease-in-out) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Tint picker ---------- */
.tint-picker { text-align: right; }
.tint-picker__label {
  margin-bottom: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2);
}
.tint-name { display: inline-block; color: var(--ink); }
.swatches { display: flex; gap: 12px; justify-content: flex-end; }
.swatch {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .6), transparent 40%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 6px 14px -6px rgba(0, 0, 0, .4);
  transition: transform .5s var(--ease);
}
.swatch::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  opacity: 0; transform: scale(.75);
  transition: opacity .4s, transform .6s var(--ease);
}
.swatch:hover { transform: translateY(-4px) scale(1.06); }
.swatch[aria-checked="true"]::after { opacity: 1; transform: none; }
.tint-picker__meta {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  margin-top: 14px;
  font-size: 14px; color: var(--ink-2);
}
.tint-picker__view {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  transition: border-color .4s, background .4s, color .4s;
}
.tint-picker__view svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.tint-picker__view:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tint-picker__view:hover svg { transform: translateX(3px); }
.tint-picker--dark { text-align: left; }
.tint-picker--dark .swatches { justify-content: flex-start; }
.tint-picker--dark .tint-picker__label { color: var(--on-dark-2); }
.tint-picker--dark .tint-name { color: var(--on-dark); }
.tint-picker--dark .swatch::after { border-color: var(--on-dark); }

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden;
  padding: 24px 0;
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group {
  display: flex; align-items: center; gap: clamp(28px, 3.4vw, 56px);
  padding-right: clamp(28px, 3.4vw, 56px);
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 1;
  white-space: nowrap;
}
.ticker__group em { color: var(--tint); }
.ticker__sun { width: .62em; height: .62em; color: var(--tint); animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Manifesto
   ========================================================= */
.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
  gap: 40px;
  padding-block: clamp(110px, 16vw, 240px);
}
.manifesto .eyebrow { padding-top: .9em; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -.018em;
  text-wrap: pretty;
}
.pill {
  display: inline-block;
  width: 2em; height: .98em;
  vertical-align: -.1em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}
.pill img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.4); }

/* =========================================================
   Shop
   ========================================================= */
.shop { padding-bottom: clamp(110px, 12vw, 190px); }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .eyebrow { grid-column: 1 / -1; }
.section-head .section-title { max-width: 12ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter {
  display: inline-flex; align-items: center; gap: 4px;
  height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s;
}
.filter sup { font-family: var(--mono); font-size: 10px; opacity: .55; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 64px) clamp(16px, 1.8vw, 28px);
}
.card { display: flex; flex-direction: column; gap: 16px; }
.card.is-hidden { display: none; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 1.2s var(--ease);
}
/* Landscape shots with a vignette: box hugs the photo (centred), edges feathered into the card */
.card__media img.is-contain, .qv__media img.is-contain {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 42%);
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .5s;
}
.card:hover .card__glare { opacity: 1; }
.card__num {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  transition: opacity .4s;
}
.card:hover .card__num { opacity: 0; }
.card__tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
}
.card__tag--new { background: var(--ink); color: var(--bg); }
.card__wish {
  position: absolute; top: 10px; right: 10px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  transition: transform .5s var(--ease);
}
.card__wish:hover { transform: scale(1.1); }
.card__wish svg { width: 18px; height: 18px; fill: transparent; stroke: var(--ink); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.card__wish[aria-pressed="true"] svg { fill: var(--tint); stroke: var(--tint); }
.card__add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  height: 50px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transform: translateY(calc(100% + 16px));
  transition: transform .7s var(--ease), background .4s;
}
.card__add svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.card__add:hover { background: var(--tint); }
.card__add:hover svg { transform: rotate(90deg); }
.card:hover .card__add, .card__add:focus-visible { transform: none; }

.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card__name { font-family: var(--serif); font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1; }
.card__name button { font: inherit; text-align: left; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--ease); }
.card__name button:hover { background-size: 100% 1px; }
.card__meta { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.card__price { font-family: var(--mono); font-size: 14px; white-space: nowrap; }

/* =========================================================
   Lens Lab
   ========================================================= */
.lab {
  position: relative;
  margin-inline: clamp(8px, 1.2vw, 18px);
  padding-block: clamp(90px, 11vw, 170px);
  border-radius: clamp(20px, 2.6vw, 36px);
  background: var(--dark);
  color: var(--on-dark);
  overflow: hidden;
}
.lab::before {
  content: ''; position: absolute; right: -20%; bottom: -50%; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--tint) 30%, transparent), transparent 65%);
  pointer-events: none;
}
.lab .eyebrow { color: var(--on-dark-2); }
.lab__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.lab__copy { display: flex; flex-direction: column; gap: 28px; }
.lab__lede { color: var(--on-dark-2); max-width: 40ch; }
.lab__specs {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  border-top: 1px solid var(--line-dark);
}
.lab__specs li { padding-top: 20px; font-size: 13px; color: var(--on-dark-2); }
.lab__specs strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; color: var(--on-dark); margin-bottom: 6px; }

.compare {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: clamp(16px, 2vw, 26px);
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--raw { filter: brightness(1.14) contrast(.82) saturate(.78); }
.compare__glare {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 22% 8%, rgba(255, 255, 255, .6), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .05));
}
.compare__lens { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__lens .compare__img { filter: contrast(1.22) saturate(1.4) brightness(.84); }
.compare__lens::after {
  content: ''; position: absolute; inset: 0;
  background: var(--tint);
  mix-blend-mode: multiply;
  opacity: .34;
}
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; transform: translateX(-50%); background: var(--on-dark); }
.compare__handle {
  position: absolute; top: 50%; left: var(--pos);
  width: 66px; height: 66px;
  display: grid; place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--on-dark); color: var(--ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  transition: width .4s var(--ease), height .4s var(--ease);
}
.compare__handle svg { width: 24px; height: 24px; }
.compare.is-dragging .compare__handle { width: 58px; height: 58px; }
.compare__label {
  position: absolute; bottom: 18px; z-index: 1;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(16, 15, 14, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.compare__label--l { left: 18px; }
.compare__label--r { right: 18px; }

/* =========================================================
   Craft & stats
   ========================================================= */
.craft { padding-block: clamp(110px, 13vw, 200px); }
.craft__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(56px, 6vw, 96px);
}
.craft__head .eyebrow { margin-bottom: 24px; }
.craft__lede { color: var(--ink-2); max-width: 44ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  display: flex; align-items: baseline;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.5vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.stat__unit { font-size: .36em; margin-left: 6px; color: var(--tint); letter-spacing: 0; font-style: italic; }
.stat > p:last-child { color: var(--ink-2); font-size: 14px; max-width: 24ch; }

/* =========================================================
   Reviews
   ========================================================= */
.reviews { padding-bottom: clamp(110px, 12vw, 180px); }
.reviews__box {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px 64px;
  padding: clamp(28px, 4.4vw, 64px);
  border-radius: clamp(20px, 2.4vw, 32px);
  background: var(--paper);
}
.reviews__num { font-family: var(--serif); font-size: clamp(5rem, 10vw, 9rem); line-height: .85; margin-top: 20px; letter-spacing: -.03em; }
.reviews__stars { display: flex; gap: 4px; color: var(--tint); margin-top: 14px; }
.reviews__stars svg { width: 20px; height: 20px; }
.reviews__meta { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.reviews__quotes { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quotes { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 3rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.quote figcaption { margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.quote figcaption span { color: var(--ink); font-style: italic; font-family: var(--serif); font-size: 17px; }
.quote-nav { display: flex; gap: 8px; }
.quote-nav button { position: relative; flex: 1; height: 24px; }
.quote-nav button::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.quote-nav button i { position: absolute; left: 0; top: 11px; height: 2px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(80px, 10vw, 150px);
  border-radius: clamp(20px, 2.6vw, 36px) clamp(20px, 2.6vw, 36px) 0 0;
  background: var(--dark);
  color: var(--on-dark);
}
.footer__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; }
.footer__tag { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.025em; max-width: 10ch; }
.footer__tag em { color: var(--tint); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.footer__cols h3 { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 18px; }
.footer__cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }

.footer__mark { padding-inline: var(--gutter); margin-top: clamp(70px, 9vw, 140px); color: var(--on-dark); }
.footer__mark svg { width: 100%; height: auto; overflow: visible; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-block: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px; color: var(--on-dark-2);
}
.to-top { font-size: 13px; color: var(--on-dark); }
.footer__credit a { color: var(--on-dark); margin-left: 4px; }
.footer__credit a:hover { color: var(--tint); }

/* ---------- Studio credit (top of the header) ---------- */
.credit-bar { height: var(--bar-h); background: var(--ink); color: var(--on-dark-2); }
.credit-bar__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.credit-bar a { color: var(--on-dark); }
.credit-bar a:hover { color: var(--tint); }

/* =========================================================
   Dialogs: cart drawer & quick view
   ========================================================= */
dialog { padding: 0; border: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(16, 15, 14, .42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

.drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(460px, 100vw); height: 100%;
  margin: 0 0 0 auto;
  background: var(--paper);
}
.drawer[open] { display: flex; flex-direction: column; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--serif); font-size: 34px; line-height: 1; }
.drawer__head sup { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }

.ship { padding: 16px 24px; border-bottom: 1px solid var(--line); }
.ship__text { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.ship__text strong { color: var(--ink); font-weight: 500; }
.ship__bar { height: 4px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.ship__bar span { display: block; height: 100%; width: 0; background: var(--tint); border-radius: inherit; transition: width .8s var(--ease); }

.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px; }
.bag { list-style: none; margin: 0; padding: 0; }
.bag__item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bag__thumb { width: 88px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--card); }
.bag__thumb img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.bag__name { font-family: var(--serif); font-size: 24px; line-height: 1; }
.bag__meta { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.bag__qty { display: inline-flex; align-items: center; margin-top: 14px; border: 1px solid var(--line); border-radius: 999px; }
.bag__qty button { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.bag__qty button:hover { background: var(--bg-2); }
.bag__qty svg { width: 14px; height: 14px; }
.bag__qty output { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 13px; }
.bag__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.bag__price { font-family: var(--mono); font-size: 14px; }
.bag__remove { font-size: 12px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.bag__remove:hover { color: var(--ink); }

.bag-empty { display: none; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 64px 12px; color: var(--ink-2); }
.bag-empty.is-visible { display: flex; }
.bag-empty__art { width: 150px; margin-bottom: 12px; fill: none; stroke: var(--ink); stroke-width: 3; }
.bag-empty__art circle { fill: color-mix(in srgb, var(--tint) 25%, transparent); }
.bag-empty__title { font-family: var(--serif); font-size: 30px; color: var(--ink); line-height: 1; }
.bag-empty .btn { margin-top: 18px; }

.drawer__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper); }
.drawer__foot[hidden] { display: none; }
.drawer__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__row strong { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.drawer__note { font-size: 12px; color: var(--ink-2); margin: 6px 0 16px; }

.qv {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  border-radius: 26px;
  overflow: hidden;
  background: var(--paper);
}
.qv[open] { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.qv__media { position: relative; min-height: 320px; background: var(--card); overflow: hidden; }
.qv__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.qv__body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3.6vw, 52px); overflow-y: auto; max-height: calc(100svh - 32px); }
.qv__close { position: absolute; top: 18px; right: 18px; }
.qv__name { font-family: var(--serif); font-size: clamp(3rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.02em; }
.qv__meta { color: var(--ink-2); font-size: 14px; }
.qv__price { font-family: var(--mono); font-size: 18px; }
.qv__desc { color: var(--ink-2); max-width: 44ch; }
.qv__opts { border: 0; margin: 4px 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qv__opts legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 10px; padding: 0; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; cursor: pointer; transition: border-color .3s, background .3s; }
.opt span em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.opt input:checked + span { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--tint); outline-offset: 2px; }
.qv__details { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.qv__details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: 500; }
.qv__details summary::-webkit-details-marker { display: none; }
.qv__details summary::after { content: '+'; font-family: var(--mono); transition: transform .4s var(--ease); }
.qv__details[open] summary::after { transform: rotate(45deg); }
.qv__details p { color: var(--ink-2); margin-top: 10px; }

/* ---------- Toasts ---------- */
.toasts {
  position: fixed; left: 50%; bottom: 24px; z-index: 270;
  display: grid; gap: 8px; justify-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--tint); flex: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 32px; }
  .lab__inner { grid-template-columns: 1fr; }
}

@media (max-width: 899px) {
  :root { --nav-h: 66px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .hero__meta-mid { display: none; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 8rem); justify-content: flex-start; padding: calc(var(--header-h) + 10svh) 0 0; }
  .hero__meta > span:last-child { display: none; }
  .hero__title .line--1 { transform: translateX(-6%); }
  .hero__title .line--3 { transform: translateX(10%); }
  .hero__bottom { flex-direction: column-reverse; align-items: stretch; gap: 24px; padding-bottom: 24px; }
  .tint-picker { text-align: left; }
  .swatches, .tint-picker__meta { justify-content: flex-start; }
  .hero__scroll { display: none; }

  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .section-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }


  .craft__head { grid-template-columns: 1fr; }
  .reviews__box { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .qv[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .qv__media { aspect-ratio: 4 / 3; min-height: 0; }
  .qv__body { max-height: none; overflow: visible; }
}

@media (max-width: 600px) {
  .grid { gap: 32px 12px; }
  .card { gap: 12px; }
  .card__info { flex-direction: column; gap: 4px; }
  .card__meta { font-size: 12px; }
  .card__tag { top: 10px; left: 10px; font-size: 10px; padding: 5px 8px; }
  .card__wish { width: 36px; height: 36px; top: 6px; right: 6px; }
  .hero__ctas .btn { flex: 1; padding: 0 1.1em; }
  .hero__ctas .btn--ghost { display: none; }
  .lab__specs { gap: 10px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .qv__opts { grid-template-columns: 1fr; }
}

/* Touch devices: no hover, so quick-add is always visible as a compact button */
@media (hover: none) {
  .card__add { transform: none; left: auto; width: 44px; height: 44px; right: 10px; bottom: 10px; padding: 0; }
  .card__add span { display: none; }
  .card__num { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader { display: none; }
}
