/* ============================================================
   TRAMEUR — atelier de tramage
   Risograph palette, printed grid, zero rounded corners.
   ============================================================ */

:root {
  /* raw inks */
  --ink: #0b0b0c;
  --paper: #eae6dc;
  --acid: #c8ff2e;
  --hot: #ff3d6e;

  /* semantic — chambre noire (default) */
  --bg: #0b0b0c;
  --bg-2: #121215;
  --bg-3: #17171b;
  --fg: #eae6dc;
  --fg-2: #938f85;
  --fg-3: #5f5c55;
  --line: #26262b;
  --line-2: #34343b;
  --accent: #c8ff2e;
  --accent-ink: #0b0b0c;
  --accent-2: #ff3d6e;

  --f-display: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gut: 28px;
  color-scheme: dark;
}

@media (max-width: 640px) { :root { --gut: 18px; } }

[data-theme="paper"] {
  --bg: #eae6dc;
  --bg-2: #e1dcd0;
  --bg-3: #d8d2c4;
  --fg: #0b0b0c;
  --fg-2: #6b665c;
  --fg-3: #918b7f;
  --line: #c9c2b2;
  --line-2: #b3ab99;
  --accent: #ff2e6e;
  --accent-ink: #eae6dc;
  --accent-2: #5f7a00;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-mono);
  font-size: 14.5px;
  line-height: 1.75;
  font-feature-settings: "ss02" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Chrome keeps stale values when a transitioned property reads a
   custom property that just changed — so the theme flip happens with
   every transition switched off, then they come back. */
html.no-transition *,
html.no-transition *::before,
html.no-transition *::after { transition: none !important; }

::selection { background: var(--accent); color: var(--accent-ink); }

a { color: inherit; text-decoration: none; }

/* ---------- printed page furniture -------------------------------- */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.grid-overlay i {
  display: block; height: 100%;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  background-origin: content-box; background-clip: content-box;
  opacity: 0.55;
}
.grain {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* corner registration marks, like a print proof */
.marks { position: fixed; inset: 0; z-index: 9996; pointer-events: none; }
.marks b {
  position: absolute; width: 13px; height: 13px; opacity: 0.5;
  border: 0 solid var(--fg-3);
}
.marks b:nth-child(1) { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.marks b:nth-child(2) { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.marks b:nth-child(3) { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.marks b:nth-child(4) { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }
@media (max-width: 720px) { .marks, .grid-overlay { display: none; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 1; }

/* ---------- typography -------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  margin: 0;
}
p { margin: 0 0 1.05em; color: var(--fg-2); }
p strong, strong { color: var(--fg); font-weight: 700; }

.mono-label {
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- nav ---------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; gap: 18px;
}
.brand {
  font-family: var(--f-display); font-size: 20px; letter-spacing: 0.04em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 9px;
}
.brand .mk {
  width: 13px; height: 13px; display: inline-block; background: var(--accent);
  background-image:
    repeating-linear-gradient(0deg, var(--bg) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--bg) 0 1px, transparent 1px 3px);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-links button {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-2);
  padding: 7px 10px; border: 1px solid transparent; background: none; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links button:hover { color: var(--fg); border-color: var(--line-2); }
.nav-links a .n { color: var(--accent); margin-right: 6px; }
.nav-links a .t { display: inline; }
.nav-cta { border-color: var(--line-2) !important; color: var(--fg) !important; }
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; border-color: var(--accent) !important; }
#theme-toggle { min-width: 116px; text-align: center; border-color: var(--line) !important; }
/* below 860 the section links keep their numbers and drop the words;
   below 620 they go, so the theme button keeps its full label */
@media (max-width: 860px) {
  .nav-links a .t { display: none; }
  .nav-links a .n { margin-right: 0; }
}
@media (max-width: 620px) { .nav-hide { display: none; } }

/* ---------- hero ---------------------------------------------------- */
.hero { position: relative; padding: 62px 0 0; overflow: hidden; }
.raster {
  position: absolute; inset: -1px 0 auto; height: 105%;
  width: 100%; z-index: 0; pointer-events: none;
  image-rendering: pixelated; image-rendering: crisp-edges;
  /* full strength behind the wordmark, gone by the time body copy
     starts — the weave is texture, not a readability problem */
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(180deg, #000 0 26%, transparent 76%);
  mask-image: linear-gradient(180deg, #000 0 26%, transparent 76%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.hero-top .rule { flex: 1; height: 1px; background: var(--line-2); }

.wordmark {
  font-family: var(--f-display);
  /* sized so seven Anton capitals always fit the column, never clipped */
  font-size: clamp(44px, 14.6vw, 186px);
  line-height: 0.78;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  margin: 0 0 4px -0.055em;
  display: block;
}
.wordmark .stroke {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
  text-stroke: 2px var(--fg);
}
[data-theme="paper"] .wordmark .stroke { -webkit-text-stroke-width: 2px; }

.phon {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.1em; color: var(--fg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 9px 0; margin-bottom: 26px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
}
.phon b { color: var(--accent); font-weight: 400; letter-spacing: 0.18em; }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 44px; align-items: start; padding-bottom: 34px;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

.defs { margin-bottom: 22px; }
.def {
  display: grid; grid-template-columns: 26px 108px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 14px;
}
.def .i { color: var(--accent); }
.def .k { color: var(--fg); text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; padding-top: 3px; }
.def .v { color: var(--fg-2); }
@media (max-width: 560px) { .def { grid-template-columns: 22px 1fr; } .def .k { grid-column: 2; } .def .v { grid-column: 2; } }

.def-note {
  font-size: 13.5px; color: var(--fg-2); border-left: 2px solid var(--accent);
  padding: 2px 0 2px 14px; margin: 18px 0 26px;
}
.hero-intro { max-width: 54ch; font-size: 14.5px; }
.tagline-fr {
  font-family: var(--f-display); font-size: clamp(22px, 3vw, 34px);
  color: var(--fg); margin: 0 0 6px; line-height: 1.02;
}
.tagline-en { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 22px; }

/* portrait + index column */
.portrait {
  position: relative; border: 1px solid var(--line-2); background: var(--bg-2);
  padding: 14px; margin-bottom: 18px;
}
.portrait .ph { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-3); display: block; }
.portrait .ph img.real, .portrait .ph canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.portrait .ph canvas {
  z-index: 2; image-rendering: pixelated; image-rendering: crisp-edges;
  transition: opacity 0.4s ease;
}
.portrait:hover .ph canvas { opacity: 0; }
.portrait .cap {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 12px;
}
.portrait .cap b { color: var(--accent); font-weight: 400; }

.index-list { border-top: 1px solid var(--line); }
.index-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-2);
}
.index-row .dots {
  flex: 1; height: 1px; margin-bottom: 4px;
  background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 5px 1px;
}
.index-row b { font-family: var(--f-display); font-size: 19px; color: var(--fg); letter-spacing: 0.02em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 12px 18px; border: 1px solid var(--line-2); color: var(--fg);
  background: transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--line-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--fg-3); }

/* ---------- ticker -------------------------------------------------- */
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--accent); color: var(--accent-ink);
  overflow: hidden; padding: 7px 0; position: relative; z-index: 1;
}
/* no gap anywhere: the -50% loop is only seamless if the two halves
   touch exactly */
.ticker-track {
  display: flex; gap: 0; white-space: nowrap; width: max-content;
  animation: slide 34s linear infinite;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
}
.ticker-track span { display: block; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- sections ------------------------------------------------ */
section { padding: 92px 0; position: relative; z-index: 1; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-num {
  font-family: var(--f-display); font-size: 13px; color: var(--accent-ink);
  background: var(--accent); padding: 3px 8px 2px; letter-spacing: 0.08em;
}
.sec-head h2 { font-size: clamp(30px, 5.4vw, 58px); }
.sec-en { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-3); }
.sec-head .rule { flex: 1; height: 1px; background: var(--line-2); min-width: 30px; }
.sec-sub { max-width: 58ch; margin-bottom: 40px; color: var(--fg-2); }

/* ---------- filters ------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chip {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 13px; border: 1px solid var(--line); background: none; color: var(--fg-3); cursor: pointer;
  transition: 0.15s;
}
.chip:hover { color: var(--fg); border-color: var(--line-2); }
.chip.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- project cards ------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card {
  position: relative; border: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--line-2); }
.card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; }
.card.featured.alt .cover-link { order: 2; }
@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; }
  .card.featured { grid-template-columns: 1fr; }
  .card.featured.alt .cover-link { order: 0; }
}

.cover-link { position: relative; display: block; overflow: hidden; background: var(--bg-3); }
.card:not(.featured) .cover-link { aspect-ratio: 16 / 9; }
.card.featured .cover-link { min-height: 300px; }
.cover-link img.real, .cover-link canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover-link canvas {
  image-rendering: pixelated; image-rendering: crisp-edges;
  z-index: 2; transition: opacity 0.35s ease;
}
.cover-link img.real { z-index: 1; filter: saturate(1.05) contrast(1.02); }
.card:hover .cover-link canvas,
.card.resolved .cover-link canvas { opacity: 0; }
.scan {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  opacity: 0.45; mix-blend-mode: multiply;
}
.idx {
  position: absolute; z-index: 4; left: 0; top: 0;
  font-family: var(--f-display); font-size: 15px; letter-spacing: 0.06em;
  background: var(--bg); color: var(--fg); padding: 5px 10px 4px; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cat-tag {
  position: absolute; z-index: 4; right: 0; top: 0;
  font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--bg); color: var(--fg-2); padding: 6px 10px 5px;
  border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.star-tag {
  position: absolute; z-index: 4; right: 0; bottom: 0;
  font-size: 10px; letter-spacing: 0.12em;
  background: var(--accent); color: var(--accent-ink); padding: 4px 9px;
}

.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: clamp(22px, 2.6vw, 33px); margin-bottom: 7px; }
.card-body h3 a { transition: color 0.15s; }
.card:hover .card-body h3 a { color: var(--accent); }
.card-meta {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 14px;
}
.card-body p { font-size: 13.5px; margin-bottom: 14px; }
.note {
  font-size: 12.5px; color: var(--fg-2); border-left: 2px solid var(--accent);
  padding-left: 12px; margin: 0 0 18px;
}
.tech { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 16px; padding-top: 6px; }
.tech span {
  font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--fg-3); padding: 4px 8px;
}
.card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lnk {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line-2); padding: 9px 12px; color: var(--fg-2);
  background: none; cursor: pointer; font-family: var(--f-mono);
  transition: 0.15s;
}
.lnk:hover { color: var(--fg); border-color: var(--fg-2); }
.lnk svg { width: 13px; height: 13px; }
.lnk.primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lnk.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- skills --------------------------------------------------- */
.bench { border-top: 1px solid var(--line); }
.bench-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 26px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.bench-row:hover { background: var(--bg-2); }
.bench-row h3 { font-size: 26px; }
.bench-row .en { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); margin-top: 6px; display: block; }
.bench-items { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 7px 0; align-content: flex-start; }
.bench-items span { font-size: 12.5px; color: var(--fg-2); }
.bench-items span::after { content: " / "; color: var(--fg-3); opacity: 0.5; }
.bench-items span:last-child::after { content: ""; }
.bench-items span + span { margin-left: 7px; }
@media (max-width: 720px) { .bench-row { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- github band ----------------------------------------------- */
.band {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 1px solid var(--line-2); padding: 26px 28px; background: var(--bg-2);
  transition: 0.2s;
}
.band:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.band:hover .band-txt span, .band:hover .go { color: var(--accent-ink); }
.band svg { width: 30px; height: 30px; flex: none; }
.band-txt b { font-family: var(--f-display); font-size: 24px; text-transform: uppercase; display: block; letter-spacing: 0.02em; }
.band-txt span { font-size: 12.5px; color: var(--fg-2); }
.band .go { margin-left: auto; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-2); }

/* ---------- contact ---------------------------------------------------- */
.signal { text-align: left; }
.signal h2 { font-size: clamp(38px, 7.5vw, 92px); line-height: 0.88; margin-bottom: 20px; }
.signal .mail {
  font-family: var(--f-display); font-size: clamp(20px, 3.6vw, 40px);
  text-transform: none; display: inline-block; border-bottom: 3px solid var(--accent);
  padding-bottom: 2px; margin: 6px 0 26px; transition: color 0.15s;
  word-break: break-word;
}
.signal .mail:hover { color: var(--accent); }

/* ---------- footer ------------------------------------------------------ */
.footer { border-top: 1px solid var(--line); padding: 30px 0 44px; position: relative; z-index: 1; }
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--fg-3);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a:hover { color: var(--fg); }
.hint b {
  border: 1px solid var(--line-2); padding: 1px 6px; color: var(--accent); font-weight: 400;
  margin: 0 3px;
}

/* No scroll-in fades anywhere: a printed page does not fade in, and
   the movement on this site belongs to the weave, not to the layout. */

/* ---------- lightbox ------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: color-mix(in srgb, var(--bg) 94%, black);
  align-items: center; justify-content: center; padding: 56px 22px;
}
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: 1100px; width: 100%; text-align: center; }
.lb-stage img { max-width: 100%; max-height: 78vh; border: 1px solid var(--line-2); display: block; margin: 0 auto; }
.lb-stage figcaption { margin-top: 14px; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); }
.lb-close, .lb-nav {
  position: absolute; background: none; border: 1px solid var(--line-2); color: var(--fg);
  cursor: pointer; font-family: var(--f-mono); font-size: 17px; width: 42px; height: 42px;
}
.lb-close:hover, .lb-nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- project detail page --------------------------------------------- */
.detail-wrap { padding-top: 46px; padding-bottom: 90px; }
.crumb { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 26px; display: inline-block; }
.crumb:hover { color: var(--accent); }
.detail-cover {
  position: relative; border: 1px solid var(--line); overflow: hidden;
  aspect-ratio: 21 / 9; background: var(--bg-2); margin-bottom: 30px;
}
.detail-cover img.real, .detail-cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-cover canvas { z-index: 2; image-rendering: pixelated; transition: opacity 0.5s ease; }
.detail-cover:hover canvas, .detail-cover.resolved canvas { opacity: 0; }
.detail-head { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; margin-bottom: 46px; }
@media (max-width: 860px) { .detail-head { grid-template-columns: 1fr; gap: 22px; } .detail-cover { aspect-ratio: 16/10; } }
.detail-head h1 { font-size: clamp(38px, 7vw, 78px); margin-bottom: 12px; }
.detail-head .lead { font-size: 15px; color: var(--fg-2); max-width: 52ch; }
.detail-side { border-top: 1px solid var(--line-2); padding-top: 16px; }
.detail-side .row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; }
.detail-side .row span:first-child { color: var(--fg-3); }
.detail-side .row span:last-child { color: var(--fg); text-align: right; }
.detail-text { max-width: 68ch; }
.detail-text h2, .detail-media h2 {
  font-size: 15px; letter-spacing: 0.2em; color: var(--fg-3); font-family: var(--f-mono);
  text-transform: uppercase; margin: 46px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.detail-text p { font-size: 14.5px; }
.store-embed-wrap { max-width: 640px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.thumb { padding: 0; border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; overflow: hidden; position: relative; aspect-ratio: 16/9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.thumb:hover { border-color: var(--accent); }
.thumb:hover img { transform: scale(1.04); }
.detail-missing { padding: 90px 0; }
.detail-missing h1 { font-size: clamp(40px, 9vw, 96px); margin-bottom: 14px; }

/* ---------- toast + [D] tramage mode ------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--accent); color: var(--accent-ink); z-index: 9999;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 10px 18px; opacity: 0; pointer-events: none; transition: 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

html.tramage body { filter: grayscale(1) contrast(1.45) brightness(1.04); }
html.tramage::after {
  content: ""; position: fixed; inset: 0; z-index: 9995; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay; opacity: 0.85;
}

/* ---------- misc ---------------------------------------------------------------- */
.notfound { padding: 110px 0 130px; }
.notfound h1 { font-size: clamp(70px, 20vw, 220px); line-height: 0.82; margin-bottom: 10px; }
.notfound .stroke { color: transparent; -webkit-text-stroke: 2px var(--fg); }
