/* vilag.io — direction B "Copperbelt Night"
   Plain CSS, no build step. Served from /assets/site/css/main.css. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --ink: #0a0f17;
  --ink-2: #0e1520;
  --ink-3: #151e2b;
  --paper: #ede8dc;
  --paper-2: #f6f2e9;
  --muted: #cfc8b8;
  --muted-2: #a9a293;
  --gold: #f0d35e;
  --gold-soft: rgba(240, 211, 94, 0.22);
  --line: rgba(237, 232, 220, 0.16);
  --ok: #9fd8b4;
  --pending: #e0a040;
  --info: #9db8da;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* rhythm */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(88px, 12vw, 160px);

  /* motion (strong ease-out for entrances, ease-in-out for on-screen movement) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 720ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
.hero__layer picture, .trade__bg picture, .plant__media picture, .everyday__media picture { height: 100%; }
a { color: var(--gold); text-underline-offset: 0.2em; }
a:hover { color: #ffe58a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.serif { font-family: var(--serif); font-weight: 300; font-optical-sizing: auto; }
.serif em, em.gold { font-style: italic; color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 18px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 14px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #ffe58a; color: var(--ink); }
.btn--line { border-color: rgba(237, 232, 220, 0.5); color: var(--paper); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); color: var(--gold); }
/* magnetic wrapper moves the inner label so the hit area stays put */
[data-magnetic] { will-change: transform; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 15, 23, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.brand img { width: 40px; height: 40px; }
.brand span { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--paper); text-decoration: none; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold); }
.header-cta { min-height: 44px; padding: 0 20px; }
.menu-toggle {
  display: none; min-width: 44px; min-height: 44px; background: none; border: 1px solid var(--line);
  color: var(--paper); font: 500 13px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; padding: 0 14px;
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav a { min-height: 52px; border-bottom: 1px solid var(--line); padding: 0; }
  .nav a::after { display: none; }
}

/* ---------- hero (layered depth) ---------- */
.hero { position: relative; min-height: max(720px, 100svh); overflow: hidden; isolation: isolate; }
.hero__layer { position: absolute; inset: -8% 0; z-index: -3; }
.hero__layer img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,15,23,0.62) 0%, rgba(10,15,23,0.12) 38%, rgba(10,15,23,0.94) 100%),
    radial-gradient(120% 80% at 80% 10%, rgba(10,15,23,0) 0%, rgba(10,15,23,0.45) 100%);
}
.hero__rings { position: absolute; z-index: -1; right: -12vw; top: 8vh; width: 62vw; max-width: 900px; aspect-ratio: 1; pointer-events: none; }
.hero__rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-soft); }
.hero__rings span:nth-child(2) { inset: 14%; border-color: rgba(240,211,94,0.14); }
.hero__rings span:nth-child(3) { inset: 30%; border-color: rgba(240,211,94,0.09); }
.hero__content {
  position: absolute; left: 0; right: 0; bottom: clamp(112px, 14vh, 150px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.hero__title { font-size: clamp(64px, 12.5vw, 184px); line-height: 0.86; letter-spacing: -0.04em; }
.hero__side { max-width: 380px; display: flex; flex-direction: column; gap: 24px; }
.hero__side p { font-size: 18px; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cue {
  position: absolute; left: 50%; bottom: 20px; width: 1px; height: 44px; background: var(--line); overflow: hidden;
}
.hero__cue::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: translateY(-100%); animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* hero carousel: crossfade + slow push-in, controls bottom */
.hero__slides { position: relative; width: 100%; height: 100%; }
.hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1200ms var(--ease-in-out); }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; }
.hero__slide img { object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero__controls {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero__caption { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__count { color: var(--muted-2); margin-left: 12px; font-variant-numeric: tabular-nums; }
.hero__nav { display: flex; align-items: center; gap: 4px; }
.hero__arrow {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); color: var(--paper); cursor: pointer;
  transition: border-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.hero__arrow:hover { border-color: var(--gold); color: var(--gold); }
.hero__arrow:active { transform: scale(0.94); }
.hero__dots { display: flex; gap: 0; margin: 0 6px; }
.hero__dot { width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hero__dot span { position: relative; display: block; width: 28px; height: 2px; background: rgba(237,232,220,0.28); overflow: hidden; }
.hero__dot span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hero__dot.is-active span::after { transform: scaleX(1); }
.is-playing .hero__dot.is-active span::after { animation: dot-fill var(--slide-ms, 6500ms) linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 560px) { .hero__caption .hero__count { display: none; } .hero__arrow { display: none; } }

/* ---------- trust bar ---------- */
.trust { border-block: 1px solid var(--line); background: var(--ink-2); }
.trust ul {
  list-style: none; margin: 0 auto; padding-block: 22px; display: grid; gap: 12px 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 15px; color: var(--muted);
}
.trust strong { color: var(--paper); font-weight: 600; }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.h2 { font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.03em; }

.plant { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.plant__media { position: relative; aspect-ratio: 4 / 4.4; }
.plant__media .m1 { position: absolute; left: 0; top: 0; width: 76%; height: 88%; }
.plant__media .m2 { position: absolute; right: 0; bottom: 0; width: 50%; height: 46%; outline: 8px solid var(--ink); }
.plant__media img { width: 100%; height: 100%; object-fit: cover; }
.plant__copy { display: flex; flex-direction: column; gap: 28px; }
.plant__copy p { font-size: 18px; color: var(--muted); max-width: 540px; }
.stats { display: flex; flex-wrap: wrap; gap: 24px 48px; border-top: 1px solid var(--line); padding-top: 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat b { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 1; color: var(--gold); }
.stat span { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.step { padding: 36px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 240px; }
.step:last-child { border-right: 0; }
.step i { font-style: normal; font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.step h3 { font-family: var(--serif); font-weight: 300; font-size: 34px; line-height: 1.1; }
.step p { color: var(--muted-2); font-size: 16px; }

/* ---------- collection ---------- */
.collection { position: relative; }
.collection__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 88px minmax(0, 1.5fr) minmax(0, 1.3fr) 170px; gap: 24px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line); color: var(--paper); text-decoration: none;
  transition: background-color var(--t-med) var(--ease-out), padding-left var(--t-med) var(--ease-out);
}
.row:hover, .row:focus-visible { background: rgba(240, 211, 94, 0.05); padding-left: 20px; }
.row__n { font-size: 13px; letter-spacing: 0.12em; color: var(--muted-2); }
.row__name { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; transition: color var(--t-med) var(--ease-out); }
.row:hover .row__name { color: var(--gold); }
.row__use { font-size: 15px; color: var(--muted-2); }
.row__sold { justify-self: end; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }
/* thumbnails replace the cursor preview wherever there is no custom cursor (touch, reduced motion, no JS) */
.row__thumb { display: none; }
html:not(.has-cursor) .row { grid-template-columns: 72px 88px minmax(0, 1.5fr) minmax(0, 1.3fr) 170px; }
html:not(.has-cursor) .row__thumb { display: block; width: 72px; aspect-ratio: 13 / 16; overflow: hidden; background: var(--ink-3); }
html:not(.has-cursor) .row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.collection__note { margin-top: 20px; font-size: 14px; color: var(--muted-2); }

/* cursor-follow preview (desktop, fine pointer only) */
.preview {
  position: fixed; left: 0; top: 0; z-index: 40; width: 260px; height: 320px; pointer-events: none;
  overflow: hidden; opacity: 0; box-shadow: 0 40px 80px rgba(0,0,0,0.55);
  transform: translate3d(-50%, -50%, 0) scale(0.9); transition: opacity var(--t-med) var(--ease-out);
}
.preview.is-on { opacity: 1; }
.preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-med) var(--ease-out); }
.preview img.is-current { opacity: 1; }

/* ---------- everyday band (lighter tone for sachet / 5 gallon / everyday) ---------- */
.everyday { background: var(--paper); color: var(--ink); }
.everyday a:not(.btn) { color: #6b4e00; }
.everyday .eyebrow { color: #6b4e00; }
.everyday__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.everyday__copy { display: flex; flex-direction: column; gap: 24px; }
.everyday__copy p { font-size: 18px; color: #3d3a33; max-width: 520px; }
.everyday__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.everyday__cards div { background: var(--paper-2); border: 1px solid rgba(10,15,23,0.12); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.everyday__cards b { font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; }
.everyday__cards span { font-size: 14px; color: #4a463d; }
.everyday__media { aspect-ratio: 4 / 3; overflow: hidden; }
.everyday__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- trade ---------- */
.trade { position: relative; overflow: hidden; isolation: isolate; min-height: 640px; display: flex; align-items: center; }
.trade__bg { position: absolute; inset: -10% 0; z-index: -2; }
.trade__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); }
.trade::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,15,23,0.96) 0%, rgba(10,15,23,0.78) 48%, rgba(10,15,23,0.15) 100%);
}
.trade__copy { display: flex; flex-direction: column; gap: 24px; width: 100%; padding-block: 96px; }
.trade__copy > * { max-width: 640px; }
.trade__copy p { color: var(--muted); font-size: 18px; max-width: 500px; }

/* ---------- footer ---------- */
.site-footer { padding: 88px 0 40px; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__logo { width: 180px; }
.site-footer h2 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted-2); }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); }
.site-footer__sign { margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.site-footer__sign p.serif { font-size: clamp(28px, 3.4vw, 44px); font-style: italic; }
.site-footer__legal { font-size: 13px; color: var(--muted-2); }

/* ---------- certifications page ---------- */
.page-hero { position: relative; overflow: hidden; padding: 180px 0 96px; }
.page-hero .hero__rings { top: -16vh; right: -16vw; width: 56vw; }
.page-hero h1 { font-size: clamp(56px, 9vw, 128px); line-height: 0.92; letter-spacing: -0.04em; max-width: 1000px; margin: 24px 0 28px; }
.page-hero p { max-width: 640px; font-size: 18px; color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line);
  color: var(--paper); text-decoration: none; font-size: 14px; letter-spacing: 0.06em;
  transition: border-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.jump a:hover { border-color: var(--gold); color: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; font-size: 13px; color: var(--muted-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; }

.cert-group { padding-block: 56px; scroll-margin-top: 100px; }
.cert-group__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.cert-group__head span { font-size: 13px; letter-spacing: 0.2em; color: var(--gold); }
.cert-group__head h2 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.02em; }
.cert-group__head p { color: var(--muted-2); font-size: 15px; margin-left: auto; }
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.cert {
  --tone: var(--info);
  background: var(--ink-2); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; gap: 18px; min-height: 320px;
  transition: background-color var(--t-med) var(--ease-out);
}
.cert:hover { background: var(--ink-3); border-color: rgba(237,232,220,0.28); }
.cert[data-status="verified"] { --tone: var(--ok); }
.cert[data-status="pending"] { --tone: var(--pending); }
.cert__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cert__issuer {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--tone); color: var(--tone);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; flex: none;
}
.cert__status { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--tone); color: var(--tone); }
.cert h3 { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 1.15; }
.cert__scope { color: var(--muted-2); font-size: 15px; }
.cert dl { margin: auto 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.cert dt { color: var(--muted-2); }
.cert dd { margin: 0; font-family: var(--mono); color: var(--paper); overflow-wrap: anywhere; }
.cert[data-status="pending"] dd.todo { color: #f2c98a; }
.cert__doc {
  margin: 0; aspect-ratio: 3 / 4; max-height: 220px; border: 1px dashed rgba(237,232,220,0.3);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
}
.cert__doc img { width: 100%; height: 100%; object-fit: contain; }
.cert__verify { margin: 0; font-size: 14px; }
.notice { margin-top: 24px; padding: 16px 20px; border: 1px dashed var(--pending); color: #f2c98a; font-size: 14px; }
.pack { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 48px; }
.pack h2 { font-size: clamp(32px, 3.6vw, 44px); max-width: 640px; }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translate3d(0, 28px, 0);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-depth] { will-change: transform; }

/* ---------- cursor ---------- */
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto; }
.cursor, .cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity var(--t-med) var(--ease-out);
}
.cursor.is-visible, .cursor-dot.is-visible { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cursor__ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(237,232,220,0.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out), border-color var(--t-med) var(--ease-out);
}
.cursor__label {
  font: 600 11px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transform: scale(0.6); transition: opacity var(--t-fast) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.cursor.is-link .cursor__ring { transform: scale(1.5); border-color: var(--gold); }
.cursor.is-media .cursor__ring { transform: scale(2.3); background: var(--gold); border-color: var(--gold); }
.cursor.is-media .cursor__label { opacity: 1; transform: scale(0.43); }
.cursor.is-down .cursor__ring { transform: scale(0.8); }
.cursor.is-link.is-down .cursor__ring { transform: scale(1.25); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .plant, .everyday__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .step:last-child { border-bottom: 0; }
  .row { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
  .row__use { grid-column: 2; }
  .row__sold { grid-column: 2; justify-self: start; text-align: left; }
  html:not(.has-cursor) .row { grid-template-columns: 64px minmax(0, 1fr); }
  html:not(.has-cursor) .row__thumb { width: 64px; grid-row: 1 / span 4; align-self: start; }
  html:not(.has-cursor) .row > :not(.row__thumb) { grid-column: 2; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__logo { grid-column: 1 / -1; }
  .everyday__cards { grid-template-columns: 1fr; }
  .cert-group__head p { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .hero__side { max-width: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .cert { padding: 24px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__cue { display: none; }
}

/* ---------- certificate sheets, register and viewer ---------- */
.cert__sheet {
  position: relative; display: block; width: 100%; height: 220px; padding: 0; margin: 0 0 2px;
  border: 0; border-top: 3px solid var(--gold); background: var(--paper-2); overflow: hidden; cursor: pointer;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.cert__sheet picture, .cert__sheet img { display: block; width: 100%; height: 100%; }
.cert__sheet img { object-fit: cover; object-position: top center; transition: transform var(--t-slow) var(--ease-out); }
.cert__sheet::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(to top, rgba(10, 15, 23, 0.86), rgba(10, 15, 23, 0));
}
.cert__sheet-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper);
  transition: color var(--t-fast) var(--ease-out);
}
@media (hover: hover) {
  .cert__sheet:hover img { transform: translateY(-8px) scale(1.03); }
  .cert__sheet:hover .cert__sheet-tag { color: var(--gold); }
}
.cert__sheet:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cert__sheet:active img { transform: scale(0.99); }
.cert__note { margin: 0; font-size: 14px; color: #f2c98a; }

.register__intro { color: var(--muted-2); max-width: 640px; margin: 0 0 24px; }
.register { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper); }
.register li {
  display: grid; grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.register__ref { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.register__doc b { display: block; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; }
.register__doc small { color: var(--muted-2); font-size: 14px; }
.register__no { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.register__view {
  font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper);
  background: none; border: 1px solid rgba(237, 232, 220, 0.4); padding: 12px 16px; min-height: 44px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
a.register__view { text-decoration: none; }
.register__view:hover { border-color: var(--gold); color: var(--gold); }
.register__pending .register__ref, .register__pending .register__no { color: var(--pending); }

.viewer {
  width: min(1120px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line); background: var(--ink-2); color: var(--paper); overflow: auto;
}
.viewer::backdrop { background: rgba(5, 8, 12, 0.82); backdrop-filter: blur(6px); }
.viewer[open] { animation: viewer-in 420ms var(--ease-out); }
@keyframes viewer-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.viewer, .viewer * { cursor: auto; }
.viewer button, .viewer a { cursor: pointer; }
html:has(.viewer[open]) { overflow: hidden; }
html:has(.viewer[open]) .cursor { opacity: 0; }
.viewer__x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: rgba(10, 15, 23, 0.82); color: var(--paper);
}
.viewer__x:hover { color: var(--gold); border-color: var(--gold); }
.viewer { position: fixed; }
.viewer__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.viewer__sheet {
  margin: 0; background: #e4ded0; padding: 28px; display: flex; align-items: center; justify-content: center; min-height: 360px;
}
.viewer__sheet img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 120px);
  border-top: 3px solid var(--gold); box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.55); background: #fff;
}
.viewer__sheet img.is-swapping { opacity: 0.2; transition: opacity var(--t-fast) var(--ease-out); }
.viewer__meta { padding: 40px 36px; display: flex; flex-direction: column; gap: 18px; }
.viewer__meta h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.viewer__meta dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.viewer__meta dt { color: var(--muted-2); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 10px; }
.viewer__meta dt:first-child { margin-top: 0; }
.viewer__meta dd { margin: 0; font-family: var(--mono); overflow-wrap: anywhere; }
.viewer__note { margin: 0; font-size: 14px; color: #f2c98a; }
.viewer__note:empty { display: none; }
.viewer__nav { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.viewer .hero__arrow { display: inline-flex; }
.viewer__count { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.viewer__close { margin-left: auto; background: transparent; }

@media (max-width: 960px) {
  .viewer__inner { grid-template-columns: 1fr; }
  .viewer__sheet { padding: 16px; min-height: 0; }
  .viewer__sheet img { max-height: 62dvh; }
  .viewer__meta { padding: 24px; }
  .register li { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .register__no { grid-column: 2; grid-row: 2; }
  .register__view { grid-column: 3; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .viewer[open] { animation: none; }
}

/* ---------- about page ---------- */
.quote blockquote { margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0; }
.quote blockquote p { font-size: clamp(30px, 4.2vw, 60px); font-weight: 300; font-style: italic; line-height: 1.12; letter-spacing: -0.02em; max-width: 1100px; margin: 0; }
.quote blockquote em { color: var(--gold); }
.quote footer { margin-top: 32px; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.story__copy { display: flex; flex-direction: column; gap: 20px; }
.story__copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0; }
.story__media { aspect-ratio: 4 / 3; overflow: hidden; }
.story__media img, .gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv { background: var(--paper); color: var(--ink); }
.mv .eyebrow { color: #7a5c00; margin: 0 0 40px; }
.mv__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.mv__grid h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; margin: 0 0 16px; color: #4a4536; }
.mv__grid p { font-size: clamp(26px, 2.8vw, 38px); font-weight: 300; line-height: 1.18; letter-spacing: -0.015em; margin: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.values li { grid-column: span 2; padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.values li:nth-child(n+4) { grid-column: span 3; }
.values i { font-style: normal; font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--gold); }
.values h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 16px 0 10px; }
.values p { color: var(--muted-2); margin: 0; max-width: 420px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15vw, 220px); gap: 12px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--ink-3); }
.gallery img { transition: transform var(--t-slow) var(--ease-out); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.04); } }
.gallery figcaption {
  position: absolute; inset: auto 0 0; padding: 40px 16px 14px; font-size: 14px; color: var(--paper);
  background: linear-gradient(to top, rgba(10, 15, 23, 0.9), rgba(10, 15, 23, 0));
}
.gallery figcaption b { display: block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.gallery { grid-template-areas: "g1 g2 g2 g3" "g1 g5 g5 g4" "g6 g6 g6 g4" "g6 g6 g6 g4"; }
.gallery .g1 { grid-area: g1; } .gallery .g2 { grid-area: g2; } .gallery .g3 { grid-area: g3; }
.gallery .g4 { grid-area: g4; } .gallery .g5 { grid-area: g5; } .gallery .g6 { grid-area: g6; }
@media (max-width: 960px) {
  .story, .mv__grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .values li, .values li:nth-child(n+4) { grid-column: auto; padding-right: 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery { grid-template-areas: "g1 g3" "g1 g4" "g2 g2" "g5 g5" "g6 g6"; }
}
