/* drantoniou.com — "night gallery". See ../DESIGN.md */

:root {
  color-scheme: dark;

  --bg:       oklch(15.5% 0.012 75);
  --bg-2:     oklch(18.5% 0.012 75);
  --surface:  oklch(21% 0.012 75);
  --surface-2:oklch(24% 0.012 75);
  --line:     oklch(30% 0.012 75);
  --line-2:   oklch(38% 0.012 75);
  --text:     oklch(93% 0.012 85);
  --text-2:   oklch(74% 0.012 85);
  --text-3:   oklch(65% 0.012 85);
  --accent:   oklch(78% 0.10 240);      /* blue: the one action colour */
  --accent-2: oklch(86% 0.09 240);
  --accent-deep: oklch(46% 0.10 245);
  --gold:     oklch(80% 0.11 85);       /* gold: ornament, numerals, status */
  --gold-2:   oklch(68% 0.11 80);
  --ochre:    var(--gold);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1:  clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem);
  --step-3:  clamp(2.5rem, 1.7rem + 3.4vw, 4rem);
  --step-4:  clamp(3.2rem, 1.6rem + 7.5vw, 7.6rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 140px);

  --r-card: 16px;
  --r-chip: 8px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 oklch(100% 0 0 / .04) inset, 0 30px 60px -30px oklch(0% 0 0 / .7);
  --shadow-paint: 0 0 0 1px oklch(100% 0 0 / .06), 0 60px 120px -40px oklch(0% 0 0 / .9), 0 0 120px -20px oklch(60% 0.06 90 / .25);
  --shadow-cta: 0 10px 30px -8px oklch(78% 0.10 240 / .45);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
ul { margin: 0; padding: 0; list-style: none; }
abbr[title] { text-decoration: none; }
::selection { background: oklch(78% 0.10 240 / .35); }

.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--r-chip); }
.skip:focus { top: 16px; }

/* film grain — one fixed layer, cheap */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .055; mix-blend-mode: overlay;
}

/* hand-drawn sketch layer behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("assets/art/sketch.webp") center / 640px repeat;
  opacity: .07; mix-blend-mode: screen;
}
main, .nav, .foot, .marquee { position: relative; z-index: 1; }

/* scroll progress hairline */
.progress { position: fixed; top: 0; left: 0; height: 1px; width: 100%; z-index: 95; transform-origin: 0 50%; transform: scaleX(0); background: var(--gold); pointer-events: none; }

/* ---------- type ---------- */
.eyebrow, .mono, .status {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow { color: var(--accent); margin: 0 0 16px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.mono { color: var(--text-3); letter-spacing: .08em; text-transform: none; font-weight: 500; }

.display, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.display { font-size: var(--step-4); }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); line-height: 1.1; }
.display em, .h2 em, .h3 em { font-style: italic; color: var(--accent); }

.lede { font-size: var(--step-1); line-height: 1.45; color: var(--text-2); max-width: 36ch; margin: 28px 0 0; }
.sub { color: var(--text-2); max-width: 58ch; margin: 18px 0 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500; font-size: var(--step--1);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), background .2s, color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 16px; }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: var(--shadow-cta); }
.btn--primary:hover { background: var(--accent-2); color: var(--bg); }
.btn--ghost { border-color: oklch(100% 0 0 / .28); color: var(--text); background: oklch(100% 0 0 / .03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-solid { background: oklch(15.5% 0.012 75 / .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: oklch(100% 0 0 / .06); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.35rem; }
.brand__mark { width: 18px; height: 18px; color: var(--gold); transition: transform .8s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(90deg); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: var(--step--1); font-weight: 500; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .3s var(--ease-out); }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__links a:not(.btn):hover::after { right: 0; }
@media (max-width: 639px) { .nav__links a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: clamp(140px, 20vw, 220px) 0 clamp(40px, 6vw, 72px);
}
.hero__art { position: absolute; inset: 0; z-index: -1; perspective: 1200px; }
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%;
  transform: scale(1.12); will-change: transform; filter: saturate(.92) brightness(.88);
}
.hero__video { opacity: 0; transition: opacity 1.6s ease; }
.hero__video.is-ready { opacity: 1; }
.hero__wash {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, oklch(15.5% 0.012 75 / .55) 0%, transparent 28%),
    linear-gradient(90deg, oklch(15.5% 0.012 75 / .92) 0%, oklch(15.5% 0.012 75 / .72) 34%, oklch(15.5% 0.012 75 / .2) 66%, transparent 100%),
    linear-gradient(0deg, var(--bg) 0%, oklch(15.5% 0.012 75 / .85) 18%, transparent 55%);
}
@media (max-width: 899px) {
  .hero__wash {
    background:
      linear-gradient(180deg, oklch(15.5% 0.012 75 / .5) 0%, transparent 25%),
      linear-gradient(0deg, var(--bg) 0%, oklch(15.5% 0.012 75 / .94) 40%, oklch(15.5% 0.012 75 / .5) 72%, transparent 100%);
  }
}
.hero__body { max-width: 860px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 10px 40px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 22px;
  border-top: 1px solid oklch(80% 0.11 85 / .35);
}
.stat { display: grid; gap: 2px; }
.stat b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); line-height: 1; color: var(--gold); }
.stat > span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* word-split reveal */
.display .w { display: inline-block; overflow: hidden; vertical-align: top; }
.display .w > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.motion-off .display .w > span { transform: none; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid oklch(80% 0.11 85 / .18); background: oklch(18.5% 0.012 75 / .7); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: "✳"; color: var(--gold); font-size: 10px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--band { background: oklch(18.5% 0.012 75 / .7); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); position: relative; }
.section__num {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: clamp(120px, 18vw, 260px); line-height: 1;
  color: oklch(80% 0.11 85 / .07); pointer-events: none; user-select: none; z-index: 0;
}
.section__head > * { position: relative; z-index: 1; }

/* ---------- product cards ---------- */
.grid.products { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.products { grid-template-columns: repeat(3, 1fr); } }

.card {
  --mx: 50%; --my: 50%;
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid oklch(100% 0 0 / .07);
  border-radius: var(--r-card);
  padding: clamp(24px, 2.8vw, 32px);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx) var(--my), oklch(100% 0 0 / .07), transparent 45%);
}
.card:hover { transform: translateY(-4px); border-color: oklch(100% 0 0 / .14); }
.card:hover::before { opacity: 1; }
.card--quiet { background: transparent; border-style: dashed; box-shadow: none; }

/* product cards: painting on top, body below */
.card--product { padding: 0; gap: 0; }
.card--product .card__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 26px); flex: 1; }
.card--product .card__top { margin-top: -44px; position: relative; z-index: 1; }
.card--product .card__icon { outline: 4px solid var(--surface); width: 52px; height: 52px; }
.card__art { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.card__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, oklch(21% 0.012 75 / .85) 100%); }
.card__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); filter: saturate(.92); }
.card--product:hover .card__art img { transform: scale(1.07); }
.card--quiet .card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { display: inline-flex; border-radius: 7px; transition: transform .2s var(--ease-out), opacity .2s; opacity: .92; }
.badge:hover { transform: translateY(-1px); opacity: 1; }
.badge img { height: 40px; width: auto; display: block; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__icon { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 12px 24px -10px oklch(0% 0 0 / .8), 0 0 0 1px oklch(100% 0 0 / .08); }
.card__icon--mark { display: grid; place-items: center; background: var(--surface-2); color: var(--gold); }
.card__icon--mark svg { width: 22px; height: 22px; }
.card p { margin: 0; color: var(--text-2); }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: var(--step--1); text-decoration: none; }
.card__link span { display: inline-block; transition: transform .2s var(--ease-out); }
.card__link:hover span { transform: translateX(4px); }
.card__link--muted { color: var(--text-3); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .12em; padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid currentColor; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.status--live { color: var(--accent); }
.status--soon { color: var(--ochre); }

/* ---------- writing shelf ---------- */
.grid.shelf { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid.shelf { grid-template-columns: 1.3fr 1fr 1fr; } }
.shelf .eyebrow { margin-bottom: 6px; }
.shelf .h3 { font-size: var(--step-1); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: var(--step--1); color: var(--text-2); background: oklch(100% 0 0 / .04); border: 1px solid oklch(100% 0 0 / .08); border-radius: var(--r-chip); padding: 4px 10px; }

/* ---------- pillars ---------- */
.pillars { display: grid; gap: clamp(72px, 10vw, 140px); }
.pillar { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .pillar { grid-template-columns: 5fr 7fr; }
  .pillar--flip .pillar__art { order: 2; }
}
.pillar__art {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; max-height: 600px;
  -webkit-mask-image: radial-gradient(ellipse 49% 56% at 50% 50%, #000 34%, oklch(0% 0 0 / .55) 68%, transparent 99%);
          mask-image: radial-gradient(ellipse 49% 56% at 50% 50%, #000 34%, oklch(0% 0 0 / .55) 68%, transparent 99%);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out);
  transform-style: preserve-3d;
}
.pillar__art img { width: 100%; height: 115%; object-fit: cover; transform: translateY(-7%); will-change: transform; filter: saturate(.95) brightness(.92); }
.pillar__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), oklch(100% 0 0 / .14), transparent 48%);
  opacity: 0; transition: opacity .4s;
}
.pillar__art:hover::after { opacity: 1; }
.pillar__art .frame-edge { display: none; }
@media (max-width: 899px) { .pillar__art { aspect-ratio: 16 / 11; max-width: 600px; } }
.pillar__body .h3 { margin-bottom: 22px; }
.facts { display: grid; gap: 14px; color: var(--text-2); }
.facts li { position: relative; padding-left: 26px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .66em; width: 12px; height: 1px; background: var(--gold); }

/* ---------- letters ---------- */
.letters { position: relative; isolation: isolate; overflow: hidden; min-height: 70vh; display: grid; align-items: center; }
.letters__art { position: absolute; inset: 0; z-index: -1; }
.letters__art img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 45%; filter: brightness(.7) saturate(.9); will-change: transform; }
.letters__wash { position: absolute; inset: 0; background: linear-gradient(90deg, oklch(15.5% 0.012 75 / .94) 0%, oklch(15.5% 0.012 75 / .8) 45%, oklch(15.5% 0.012 75 / .35) 100%), linear-gradient(0deg, var(--bg), transparent 25%, transparent 75%, var(--bg)); }
.letters__body { max-width: 660px; }
.letters .btn { margin-top: 28px; }

/* ---------- crest / contact ---------- */
.crest { background: radial-gradient(900px 500px at 20% 0%, oklch(26% 0.04 245 / .6), transparent 60%), var(--bg-2); color: var(--text); border-top: 1px solid oklch(100% 0 0 / .06); }
.crest__body { max-width: 720px; }
.crest__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- footer ---------- */
.foot { background: var(--bg); color: var(--text-3); padding: 24px 0; border-top: 1px solid oklch(100% 0 0 / .06); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot .mono { color: var(--text-3); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.motion-off .reveal { opacity: 1; transform: none; }
.motion-off .hero__media { transform: none; }
.motion-off .marquee__track { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__media { transform: none; }
  .marquee__track { animation: none; }
  .display .w > span { transform: none; }
  .btn, .card, .card__link span, .pillar__art { transition: none; }
}

/* ---------- "what's next" shapes ---------- */
.grid.shapes { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 720px) { .grid.shapes { grid-template-columns: repeat(3, 1fr); } }
.shape {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid oklch(100% 0 0 / .07); border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), border-color .35s;
}
.shape:hover { transform: translateY(-4px); border-color: oklch(100% 0 0 / .14); }
.shape__art { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.shape__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, oklch(21% 0.012 75 / .95) 100%), radial-gradient(ellipse 90% 90% at 50% 40%, transparent 60%, oklch(21% 0.012 75 / .8) 100%); }
.shape__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease-out); filter: saturate(.92); }
.shape:hover .shape__art img { transform: scale(1.07); }
.shape .h3 { font-size: var(--step-2); padding: 0 clamp(20px, 2.4vw, 26px); margin-top: -34px; position: relative; z-index: 1; }
.shape p { margin: 0; padding: 0 clamp(20px, 2.4vw, 26px) clamp(20px, 2.4vw, 26px); color: var(--text-2); }
.crest .section__head { margin-bottom: clamp(32px, 4vw, 48px); }
.footnote { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; color: var(--text-3); margin: 18px 0 0; max-width: 60ch; line-height: 1.7; }
