/* Gastronomy landing — kinetic editorial. Monochrome, serif + mono. */
:root {
  --bg: oklch(0.986 0.004 80);
  --fg: oklch(0.205 0.006 60);
  --muted: oklch(0.50 0.008 60);
  --faint: oklch(0.74 0.006 70);
  --line: oklch(0.88 0.005 75);
  --line-strong: oklch(0.78 0.006 70);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
/* Dark theme — follows the main site's theme setting (localStorage "theme"),
   but warmer than the portfolio's neutral ink: a candlelit room, not a terminal. */
html.dark {
  --bg: oklch(0.215 0.014 60); --fg: oklch(0.94 0.014 85);
  --muted: oklch(0.70 0.016 75); --faint: oklch(0.48 0.014 70);
  --line: oklch(0.31 0.014 68); --line-strong: oklch(0.43 0.014 68);
}
html.hc {
  --bg: #000; --fg: #fff; --muted: #e8e8e8; --faint: #b4b4b4;
  --line: rgba(255,255,255,0.32); --line-strong: rgba(255,255,255,0.6);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.reduce, html.reduce * { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--serif); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: twt-enter 0.5s ease both;
}
@keyframes twt-enter { from { opacity: 0; } to { opacity: 1; } }
html.reduce body { animation: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }

.kicker {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ============ top bar ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; mix-blend-mode: difference; color: #fff;
  pointer-events: none;
}
.topbar * { pointer-events: auto; }
html.hc .topbar { mix-blend-mode: normal; color: var(--fg); }
.brand {
  font-family: var(--serif); font-size: 1.12rem; letter-spacing: 0.01em; display: inline-flex; gap: 0.34em; align-items: baseline;
}
.brand i { font-style: italic; font-weight: 300; opacity: 0.7; }
.brand b { font-weight: 500; }
.brand-wrap { display: inline-flex; align-items: baseline; gap: 14px; }
.brand-by {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; opacity: 0.6; transition: opacity 0.2s; white-space: nowrap;
}
.brand-by:hover { opacity: 1; }
@media (max-width: 540px) { .brand-by { display: none; } }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-link {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 9px 16px; border: 1px solid currentColor; border-radius: 100px; opacity: 0.85;
  transition: opacity 0.2s, background 0.2s, color 0.2s; white-space: nowrap;
}
.top-link:hover { opacity: 1; }
.top-link.solid:hover { background: #fff; color: #000; }
html.hc .top-link.solid:hover { background: var(--fg); color: var(--bg); }
.hc-btn {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border: 1px solid currentColor; border-radius: 100px; opacity: 0.85;
}
.hc-btn:hover { opacity: 1; }
.hc-btn .swatch { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid currentColor; background: linear-gradient(90deg, currentColor 0 50%, transparent 50%); }

/* progress rail */
.progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--fg); width: 0%; z-index: 70; }

/* ============ hero ============ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding: 120px 0 80px;
}
.hero-pre { overflow: hidden; }
.hero-pre .kicker { display: inline-block; white-space: nowrap; }
.anim-on .hero-pre .kicker { animation: rise 0.9s var(--ease-out) 0.1s backwards; }
.bigword {
  font-weight: 400; line-height: 0.86; letter-spacing: -0.03em; margin: 0.12em 0 0;
  font-size: clamp(3.4rem, 15.5vw, 15rem); display: flex; flex-wrap: nowrap;
  white-space: nowrap;
}
.bigword .ch { display: inline-block; }
.anim-on .bigword .ch { animation: chRise 0.95s var(--ease-out) backwards; }
@keyframes chRise { from { transform: translateY(115%) rotate(8deg); opacity: 0; } to { transform: translateY(0) rotate(0); opacity: 1; } }
@keyframes rise { from { transform: translateY(110%); } to { transform: translateY(0); } }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  margin-top: 4vh; flex-wrap: wrap;
}
.phonetic {
  font-family: var(--mono); font-size: clamp(0.8rem, 1.6vw, 1.05rem); letter-spacing: 0.04em; color: var(--muted);
  white-space: nowrap;
}
.anim-on .phonetic { animation: fadeIn 0.8s ease 1.1s backwards; }
.defrotate {
  max-width: 460px; font-size: 1.18rem; line-height: 1.45; color: var(--fg);
  position: relative; min-height: 3.6em;
}
.anim-on .defrotate { animation: fadeIn 0.8s ease 1.25s backwards; }
.defrotate .term { font-style: italic; }
.defrotate .slot { display: block; position: relative; }
.defrotate .line { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.defrotate .line.on { opacity: 1; transform: none; position: relative; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scrollcue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.anim-on .scrollcue { animation: fadeIn 1s ease 1.6s backwards; }
.scrollcue .bar { width: 1px; height: 38px; background: var(--line-strong); position: relative; overflow: hidden; }
.scrollcue .bar::after { content: ""; position: absolute; inset: 0; background: var(--fg); animation: cue 1.9s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* ============ reveal primitive ============ */
.reveal { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.anim-on .reveal { opacity: 0; transform: translateY(26px); }
.anim-on .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ============ etymology ============ */
.etym { padding: 16vh 0; border-top: 1px solid var(--line); }
.etym-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.root { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.root .greek { font-style: italic; }
.root small { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 14px; font-weight: 400; }
.plus { font-size: 2rem; color: var(--faint); text-align: center; margin: 18px 0; }
.etym-note p { font-size: 1.35rem; line-height: 1.5; font-weight: 300; margin: 0; text-wrap: pretty; }
.etym-note p em { font-style: italic; }
.etym-eq { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 26px; }

/* ============ pinned negation ============ */
.pin { position: relative; height: 260vh; }
.pin-stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.pin-inner { width: 100%; }
.neg-lead { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.neg-list { font-size: clamp(2.4rem, 8vw, 7rem); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02; }
.neg-word { display: block; position: relative; width: fit-content; color: var(--faint); transition: color 0.4s var(--ease); }
.neg-word .strike { position: absolute; left: -2%; right: -2%; top: 52%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.neg-word.active { color: var(--fg); }
.neg-word.struck { color: var(--faint); }
.neg-word.struck .strike { transform: scaleX(1); background: var(--fg); }
.neg-final { display: block; font-style: italic; margin-top: 0.1em; opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.neg-final.on { opacity: 1; transform: none; }

/* ============ senses ============ */
.senses { padding: 16vh 0; border-top: 1px solid var(--line); }
.senses-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 8vh; flex-wrap: wrap; }
.senses-head h2 { font-weight: 400; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; margin: 0; max-width: 16ch; text-wrap: balance; }
.senses-head p { color: var(--muted); max-width: 34ch; margin: 0; line-height: 1.5; }
.sense-row { border-top: 1px solid var(--line); }
.sense {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 28px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--line); cursor: default; position: relative;
}
.sense .num { font-family: var(--mono); font-size: 0.8rem; color: var(--faint); letter-spacing: 0.1em; }
.sense .name { font-size: clamp(1.8rem, 4.4vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; transition: transform 0.4s var(--ease), opacity 0.4s; }
.sense .desc { font-size: 1.02rem; color: var(--muted); max-width: 40ch; line-height: 1.5; justify-self: end; text-align: right; }
.sense::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--fg); transition: width 0.5s var(--ease); }
.sense:hover::after { width: 100%; }
.sense:hover .name { transform: translateX(14px); }
@media (hover: none) { .sense:hover .name { transform: none; } }

/* ============ dimensions recap ============ */
.dims { padding: 16vh 0; border-top: 1px solid var(--line); background: var(--fg); color: var(--bg); }
html.hc .dims { background: var(--bg); color: var(--fg); border-top: 1px solid var(--line); }
.dims .kicker { color: color-mix(in oklab, var(--bg) 65%, transparent); }
html.hc .dims .kicker { color: var(--muted); }
.dims h2 { font-weight: 400; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.02em; margin: 14px 0 0; max-width: 18ch; text-wrap: balance; }
.dims-lead { font-size: 1.2rem; line-height: 1.5; max-width: 52ch; margin: 22px 0 8vh; opacity: 0.8; }
.dim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: color-mix(in oklab, var(--bg) 22%, transparent); border: 1px solid color-mix(in oklab, var(--bg) 22%, transparent); }
html.hc .dim-grid { background: var(--line); border-color: var(--line); }
.dim {
  background: var(--fg); padding: 30px 26px 34px; display: flex; flex-direction: column; gap: 14px; min-height: 200px;
}
html.hc .dim { background: var(--bg); }
.dim .dnum { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; opacity: 0.55; }
.dim h3 { font-weight: 400; font-size: 1.7rem; letter-spacing: -0.01em; margin: 0; }
.dim p { font-size: 0.98rem; line-height: 1.5; margin: 0; opacity: 0.72; }
.dim .meter { margin-top: auto; display: flex; gap: 4px; }
.dim .meter i { height: 8px; flex: 1; background: color-mix(in oklab, var(--bg) 24%, transparent); transform: scaleY(1); transform-origin: bottom; }
html.hc .dim .meter i { background: var(--line); }
.dim .meter i.on { background: var(--bg); }
html.hc .dim .meter i.on { background: var(--fg); }
.dim.access { outline: 2px solid var(--bg); outline-offset: -2px; }
html.hc .dim.access { outline-color: var(--fg); }
.dim .flag { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; }

/* ============ marquee ============ */
.marquee { padding: 12vh 0; overflow: hidden; border-top: 1px solid var(--line); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; will-change: transform; }
.marquee-track span {
  font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 400; letter-spacing: -0.02em; padding: 0 0.5em;
  display: inline-flex; align-items: center; gap: 0.5em;
}
.marquee-track span::after { content: "\2022"; color: var(--faint); font-size: 0.4em; }
.marquee-track .it { font-style: italic; color: var(--muted); }

/* ============ CTA ============ */
.cta { padding: 18vh 0 16vh; border-top: 1px solid var(--line); text-align: center; }
.cta h2 { font-weight: 400; font-size: clamp(2.4rem, 7vw, 5.6rem); letter-spacing: -0.025em; line-height: 1.02; margin: 0 auto; max-width: 16ch; text-wrap: balance; }
.cta h2 em { font-style: italic; }
.cta p { color: var(--muted); font-size: 1.2rem; max-width: 44ch; margin: 26px auto 0; line-height: 1.5; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 40px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--fg); border-radius: 100px; padding: 18px 34px; text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), gap 0.25s var(--ease);
}
.cta-btn:hover { background: var(--fg); color: var(--bg); gap: 20px; }

/* ============ footer ============ */
.foot { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot-in p { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--faint); margin: 0; }
.foot-in a { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.foot-in a:hover { color: var(--fg); }

/* ============ responsive ============ */
@media (max-width: 820px) {
  .etym-grid { grid-template-columns: 1fr; gap: 36px; }
  .sense { grid-template-columns: 54px 1fr; gap: 14px; }
  .sense .desc { grid-column: 1 / -1; justify-self: start; text-align: left; max-width: none; margin-top: 6px; }
  .dim-grid { grid-template-columns: 1fr 1fr; }
  .pin { height: 240vh; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 20px; }
  .topbar { padding: 16px 20px; }
  .top-link { display: none; }
  .dim-grid { grid-template-columns: 1fr; }
  .senses-head { flex-direction: column; gap: 14px; }
}

/* ============ reduced motion ============ */
html.reduce .reveal { opacity: 1 !important; transform: none !important; }
html.reduce .bigword .ch { opacity: 1 !important; transform: none !important; animation: none !important; }
html.reduce .hero-pre .kicker, html.reduce .phonetic, html.reduce .defrotate, html.reduce .scrollcue { animation: none !important; opacity: 1 !important; transform: none !important; }
html.reduce .neg-final { opacity: 1 !important; transform: none !important; }
html.reduce .neg-word { color: var(--fg); }
html.reduce .marquee-track { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .scrollcue .bar::after { animation: none; }
}
