/* ════════════════════════════════════════════════════════════════════
   arodami.studio — "the studio as an instrument"
   A precise technical frame around organic, generative work.
   ════════════════════════════════════════════════════════════════════ */

/* ─────────── palettes (driven by [data-palette] on <html>) ─────────── */
:root,
:root[data-palette="atelier"] {
  --bg: #F4EFE3;
  --bg-soft: #EBE5D5;
  --ink: #1A1410;
  --ink-2: #4A3F33;
  --ink-3: #756857;
  --ink-faint: #A89E89;
  --rule: #D9D0BB;
  --grid: rgba(117, 104, 87, 0.07);
  --accent: #B85C3E;
  --accent-deep: #8F4127;
  --accent-soft: #E8D3C2;
  --cool: #6E7E72;          /* engineering counterpoint */
  --plot: #B85C3E;          /* generative line colour   */
  --plot-2: #9A8B70;        /* secondary plot ink        */
  --glow: 0;                /* 1 = canvas lines glow (dark themes) */
  --halo: rgba(244, 239, 227, 0.62);
}

:root[data-palette="blueprint"] {
  --bg: #EEEDE6;
  --bg-soft: #E4E2D7;
  --ink: #15181C;
  --ink-2: #3B4248;
  --ink-3: #69717A;
  --ink-faint: #9DA3A6;
  --rule: #CDCEC6;
  --grid: rgba(45, 92, 143, 0.08);
  --accent: #B85C3E;
  --accent-deep: #8F4127;
  --accent-soft: #E6D6C8;
  --cool: #2D5C8F;
  --plot: #2D5C8F;
  --plot-2: #7C93A8;
  --glow: 0;
  --halo: rgba(238, 237, 230, 0.66);
}

:root[data-palette="graphite"] {
  --bg: #ECECEA;
  --bg-soft: #E1E1DE;
  --ink: #16181A;
  --ink-2: #3A3D40;
  --ink-3: #6B6F72;
  --ink-faint: #9DA1A3;
  --rule: #CCCDC9;
  --grid: rgba(52, 96, 127, 0.07);
  --accent: #C2603F;
  --accent-deep: #9B4A2C;
  --accent-soft: #E2D2C9;
  --cool: #34607F;
  --plot: #34607F;
  --plot-2: #8A9097;
  --glow: 0;
  --halo: rgba(236, 236, 234, 0.66);
}

:root[data-palette="nocturne"] {
  --bg: #0A0A0B;
  --bg-soft: #131316;
  --ink: #F3F1EC;
  --ink-2: #A8A6A1;
  --ink-3: #6E6D69;
  --ink-faint: #45443F;
  --rule: #211F1E;
  --grid: rgba(243, 241, 236, 0.02);
  --accent: #8FA88C;
  --accent-deep: #A8BEA4;
  --accent-soft: #18201A;
  --cool: #8FA6A0;
  --plot: #8FA88C;
  --plot-2: #5A5854;
  --glow: 1;
  --halo: rgba(10, 10, 11, 0.62);
}

/* ─────────── reset ─────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  transition: background 0.5s ease, color 0.5s ease;
}

/* fine grid wash — the "drawing field" (toggle via [data-grid]) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 1;
  transition: opacity 0.4s ease;
}
html[data-grid="off"] body::before { opacity: 0; }

/* ─────────── generative canvas (the arodamos) ─────────── */
.plot-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
body.view-home .plot-canvas { opacity: 1; }
body:not(.view-home) .plot-canvas { opacity: 0.12; }
html[data-canvas="off"] .plot-canvas { opacity: 0 !important; }

/* keep all real content above the field */
.menu, .section-titlebar, .hero, section, footer,
.statusbar, .frame-marks { position: relative; z-index: 2; }
.menu, .section-titlebar, .statusbar { z-index: 90; }

/* ─────────── corner registration marks (the instrument frame) ─────────── */
.frame-marks {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
html[data-frame="off"] .frame-marks { opacity: 0; }
.frame-marks .mk {
  position: absolute;
  width: 18px;
  height: 18px;
}
.frame-marks .mk::before,
.frame-marks .mk::after {
  content: '';
  position: absolute;
  background: var(--ink-faint);
}
.frame-marks .mk::before { width: 100%; height: 1px; top: 0; left: 0; }
.frame-marks .mk::after  { width: 1px; height: 100%; top: 0; left: 0; }
.frame-marks .tl { top: 16px; left: 16px; }
.frame-marks .tr { top: 16px; right: 16px; transform: scaleX(-1); }
.frame-marks .bl { bottom: 56px; left: 16px; transform: scaleY(-1); }
.frame-marks .br { bottom: 56px; right: 16px; transform: scale(-1, -1); }
@media (max-width: 640px) {
  .frame-marks .tl, .frame-marks .tr { top: 12px; }
  .frame-marks .tl, .frame-marks .bl { left: 12px; }
  .frame-marks .tr, .frame-marks .br { right: 12px; }
  .frame-marks .bl, .frame-marks .br { bottom: 50px; }
}

/* ─────────── bottom status bar (instrument readouts) ─────────── */
.statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  background: linear-gradient(to top, var(--bg) 38%, transparent);
  border-top: 1px solid var(--rule);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
html[data-rail="off"] .statusbar { opacity: 0; transform: translateY(100%); pointer-events: none; }
.statusbar .sb-l { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statusbar .sb-c { text-align: center; color: var(--ink-faint); white-space: nowrap; }
.statusbar .sb-r { text-align: right; white-space: nowrap; }
.statusbar .dot { color: var(--accent); }
.statusbar .blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0.25; } }
@media (max-width: 640px) {
  .statusbar { height: 30px; font-size: 9.5px; gap: 8px; padding: 0 12px; }
  .statusbar .sb-c { display: none; }
}

/* ─────────── menu (top-left) ─────────── */
.menu { position: fixed; top: 30px; left: 36px; }
.menu-bar { display: flex; align-items: center; gap: 14px; }
.menu-trigger {
  background: var(--halo);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.menu-trigger:hover,
.menu.open .menu-trigger { border-color: var(--accent); }
.menu-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.menu-trigger .bars { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.menu-trigger .bars span {
  display: block; height: 1.5px; background: var(--ink);
  border-radius: 1px; transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.menu-trigger .bars span:nth-child(1) { width: 100%; }
.menu-trigger .bars span:nth-child(2) { width: 64%; }
.menu-trigger .bars span:nth-child(3) { width: 100%; }
.menu.open .menu-trigger .bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); width: 100%; }
.menu.open .menu-trigger .bars span:nth-child(2) { opacity: 0; }
.menu.open .menu-trigger .bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); width: 100%; }

.menu-home-link {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: none;
  display: none;
  align-items: center;
  height: 42px;
  line-height: 1;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.menu-home-link:hover { color: var(--accent); border-bottom: none; }
body:not(.view-home) .menu-home-link { display: inline-flex; }

.menu::after {
  content: ''; position: absolute; top: 38px; left: 0;
  width: 240px; height: 18px; pointer-events: none;
}
.menu:hover::after { pointer-events: auto; }

.menu-panel {
  position: absolute;
  top: 54px;
  left: 0;
  min-width: 216px;
  background: var(--halo);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  box-shadow: 0 12px 40px rgba(26, 20, 16, 0.1);
}
.menu.open .menu-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
@media (hover: hover) {
  .menu:hover .menu-panel,
  .menu:focus-within .menu-panel {
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li { position: relative; }
.menu-panel a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 20px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: none;
  text-transform: lowercase;
  transition: color 0.15s ease, background 0.15s ease, padding 0.15s ease;
}
.menu-panel a .idx {
  font-size: 9.5px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  min-width: 22px;
}
.menu-panel a:hover {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 7%, transparent);
  border-bottom: none;
  padding-left: 24px;
}
.menu-panel a:hover .idx { color: var(--accent); }
.menu-panel a.current { color: var(--accent); }
.menu-panel a.current .idx { color: var(--accent); }

@media (max-width: 640px) {
  .menu { top: 18px; left: 18px; }
  .menu-bar { gap: 12px; }
  .menu-home-link { font-size: 12px; }
}

/* ─────────── floating section titlebar (top-right) ─────────── */
.section-titlebar {
  position: fixed;
  top: 30px;
  right: 36px;
  text-align: right;
  max-width: min(400px, calc(100vw - 120px));
  display: none;
}
body.view-generative #generative .section-titlebar,
body.view-tools #tools .section-titlebar,
body.view-workshops #workshops .section-titlebar,
body.view-about #about .section-titlebar,
body.view-contact #contact .section-titlebar { display: block; }

.tb-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  justify-content: flex-end;
}
.section-titlebar .section-no {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.section-titlebar .section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.024em;
  color: var(--ink);
  display: inline-block;
  margin: 0;
  padding: 2px 2px 4px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.section-titlebar .section-title em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* the discoverability affordance — a visible mono cue (default mode) */
.intro-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--rule);
  padding: 0 1px 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.intro-cue .ic-sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 9px;
  line-height: 1;
}
.intro-cue:hover,
.section-titlebar.open .intro-cue {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.section-titlebar:not(.has-pop) .intro-cue { display: none; }

/* the popup body */
.section-intro-pop {
  margin-top: 12px;
  padding: 15px 18px;
  background: var(--halo);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
  font-family: 'Geist', sans-serif;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink-2);
  text-align: left;
  box-shadow: 0 14px 40px rgba(26, 20, 16, 0.1);
  max-width: 360px;
  margin-left: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.section-titlebar.has-pop:hover .section-intro-pop,
.section-titlebar.has-pop.open .section-intro-pop {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}

/* desc mode = teaser: show a one-line teaser always, full on hover */
html[data-desc="teaser"] .section-intro-pop {
  opacity: 1; pointer-events: auto; transform: none;
  max-height: 1.62em; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}
html[data-desc="teaser"] .section-titlebar.has-pop:hover .section-intro-pop,
html[data-desc="teaser"] .section-titlebar.has-pop.open .section-intro-pop {
  max-height: 16em;
}
html[data-desc="teaser"] .intro-cue { display: none; }

/* desc mode = always: pinned open, no affordance needed */
html[data-desc="always"] .section-intro-pop {
  opacity: 1; pointer-events: auto; transform: none;
}
html[data-desc="always"] .intro-cue { display: none; }

@media (max-width: 640px) {
  .section-titlebar { top: 20px; right: 18px; max-width: calc(100vw - 84px); }
  .section-titlebar .section-title { font-size: 18px; }
  .section-intro-pop { font-size: 12.5px; padding: 12px 14px; }
}

/* ─────────── single-view system ─────────── */
.hero, section { display: none; }
body.view-home .hero { display: flex; }
body.view-generative #generative,
body.view-tools #tools,
body.view-workshops #workshops,
body.view-about #about,
body.view-contact #contact { display: block; }
body.view-home footer,
body.view-generative footer,
body.view-tools footer,
body.view-workshops footer { display: none; }

/* ─────────── hero (home) ─────────── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 28px 60px;
  position: relative;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fade-up 0.9s ease-out 0.15s backwards;
}
.wordmark {
  font-family: 'Geist Mono', monospace;
  font-weight: 400;
  font-size: clamp(38px, 8.5vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .slash { color: var(--accent); }
.wordmark-sub {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 400;
  letter-spacing: 0.5em;
  color: var(--ink-3);
  text-transform: lowercase;
  padding-left: 0.5em;
}
.hero-tag {
  margin-top: 6px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(15px, 2vw, 19px);
  color: var(--ink-2);
  max-width: 30ch;
  line-height: 1.5;
}
.hero-coords {
  margin-top: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .hero-inner { gap: 16px; }
  .wordmark { font-size: clamp(30px, 11vw, 56px); }
  .wordmark-sub { font-size: 10px; letter-spacing: 0.36em; }
}

/* ─────────── snap sections ─────────── */
.snap-section { height: 100vh; height: 100svh; overflow: hidden; position: relative; padding: 0; }
.snap-track {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.snap-track::-webkit-scrollbar { display: none; }
.snap-item {
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 28px 64px;
  position: relative;
}
.snap-item .project,
.snap-item .workshop-wrap { max-width: 760px; width: 100%; margin: 0; }

/* workshop snap-item: gauge beside the card */
.snap-item--workshop,
.snap-item--gauge {
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 48px);
}
.snap-item--workshop .workshop-wrap { max-width: 680px; flex: 1 1 auto; min-width: 0; }
.snap-item--gauge .project { max-width: 640px; flex: 1 1 auto; min-width: 0; }

/* ─────────── workshop plate gauge ─────────── */
.workshop-count {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  user-select: none;
  padding-bottom: 6px;
}
.wc-index {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(46px, 6.5vw, 72px);
  line-height: 0.86;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wc-index::after {
  content: '·';
  color: var(--accent);
  margin-left: 0.04em;
}
.wc-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  position: relative;
  padding: 6px 0;
}
.wc-rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: var(--rule);
}
.wc-rail i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: var(--bg);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.wc-rail i.on {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.18);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
}
.wc-total {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  writing-mode: vertical-rl;
  margin-top: 2px;
}
@media (max-width: 560px) {
  .snap-item--workshop, .snap-item--gauge { flex-direction: column; gap: 22px; }
  .snap-item--workshop .workshop-wrap { max-width: 760px; }
  .snap-item--gauge .project { max-width: 760px; }
  .workshop-count {
    display: none;
  }
  .wc-index { font-size: 40px; line-height: 1; }
  .wc-rail { flex-direction: row; padding: 0 6px; gap: 9px; }
  .wc-rail::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 1px; transform: translateY(-50%); }
  .wc-total { writing-mode: horizontal-tb; margin-top: 0; }
}
@media (max-width: 640px) { .snap-item { padding: 104px 22px 54px; } }

/* ─────────── content sections (about, contact) ─────────── */
.content-section { min-height: 100vh; min-height: 100svh; padding: 132px 0 86px; }

/* shared fade-in */
body.view-generative #generative .snap-track,
body.view-tools #tools .snap-track,
body.view-workshops #workshops .snap-track,
body.view-about #about .section-content,
body.view-contact #contact .section-content { animation: fade-up 0.5s ease-out; }

.container { max-width: 760px; margin: 0 auto; padding: 0 28px; position: relative; }

/* ─────────── projects ─────────── */
.project { margin-bottom: 0; }
.project-media {
  margin-bottom: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: min(420px, 44svh);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: zoom-in;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.project-media:hover { border-color: var(--accent); }
/* corner ticks on media — drawing-frame motif */
.project-media .media-tick {
  position: absolute;
  width: 9px; height: 9px;
  border: 1px solid var(--ink-faint);
  z-index: 3;
  pointer-events: none;
}
.project-media .media-tick.t1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.project-media .media-tick.t2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.project-media .media-tick.t3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.project-media .media-tick.t4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.project-media--contain { aspect-ratio: auto; background: var(--ink); }
.project-media--contain img { width: 100%; height: auto; max-height: 50vh; object-fit: contain; display: block; }
.project-media::after {
  content: '⤢';
  position: absolute;
  top: 12px; right: 14px;
  width: 26px; height: 26px;
  background: color-mix(in oklab, var(--ink) 75%, transparent);
  color: var(--bg);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 4;
}
.project-media:hover::after { opacity: 1; }
.project-media.placeholder { cursor: default; }
.project-media.placeholder:hover { border-color: var(--rule); }
.project-media.placeholder::after { display: none; }
.project-media.placeholder::before {
  content: attr(data-placeholder);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.project-media video, .project-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 11px; flex-wrap: wrap; }
.project-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.project-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.project-meta .status { color: var(--accent); }
.project-body { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); max-width: 40em; }
.project-body p + p { margin-top: 12px; }
.project-body em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.project-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  padding: 4px 11px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: color-mix(in oklab, var(--bg) 60%, transparent);
}

/* ─────────── workshop card ─────────── */
.workshop {
  background: color-mix(in oklab, var(--bg-soft) 80%, transparent);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 38px 34px;
  position: relative;
}
.workshop::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 6px 0 0 6px;
}
.workshop-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.workshop-title {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 27px;
  letter-spacing: -0.026em;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.2;
}
.workshop-title em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.workshop-body { font-size: 16px; line-height: 1.62; color: var(--ink-2); margin-bottom: 22px; }
.workshop-body em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.workshop-formats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.workshop-format {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
  padding: 5px 12px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.workshop-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ─────────── about ─────────── */
.about-body {
  margin-top: 8px;
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  max-width: 38em;
}
.about-body p + p { margin-top: 16px; }
.about-body em { font-family: 'Fraunces', serif; font-style: italic; font-weight: 500; color: var(--accent); }
.about-signature {
  margin-top: 34px !important;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
/* a small technical "spec sheet" rail beside the about copy */
.about-spec {
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 20px;
  max-width: 38em;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.about-spec dt { color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.12em; white-space: nowrap; }
.about-spec dd { color: var(--ink-2); margin: 0; }

/* ─────────── contact form ─────────── */
.contact-form { display: grid; gap: 20px; max-width: 38em; margin-bottom: 58px; }
.form-row { display: grid; gap: 7px; }
.form-row label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
}
.form-row input,
.form-row textarea {
  font-family: 'Geist', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  transition: border-color 0.2s ease;
  resize: vertical;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-row textarea { min-height: 110px; line-height: 1.55; }
.form-row input:focus,
.form-row textarea:focus { outline: none; border-bottom-color: var(--accent); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--ink-faint); }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-submit {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 13px 26px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  font-weight: 500;
}
.form-submit:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.form-submit:active { transform: translateY(1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-status {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  min-height: 1em;
}
.form-status.success { color: var(--accent-deep); }
.form-status.error { color: #C0392B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ─────────── social icons ─────────── */
.social-heading {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.social-icons { display: flex; gap: 12px; align-items: center; }
.social-icons a,
.social-icons span {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  border-bottom: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  background: var(--bg);
}
.social-icons a:hover { color: var(--accent); border-color: var(--accent); border-bottom: none; }
.social-icons span.disabled { opacity: 0.4; cursor: not-allowed; }
.social-icons svg { width: 18px; height: 18px; display: block; }

/* ─────────── links ─────────── */
a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid var(--accent-soft); transition: border-color 0.2s ease, color 0.2s ease; }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ─────────── footer ─────────── */
footer { padding: 58px 0 96px; border-top: 1px solid var(--rule); }
.colophon {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.9;
}
.colophon .accent { color: var(--accent); }

/* ─────────── lightbox ─────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 6, 4, 0.985);
  display: none; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 56px 32px 72px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox-content { width: 100%; height: 100%; max-width: 1400px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.lightbox-content img,
.lightbox-content video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; display: block;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  pointer-events: auto; cursor: default;
}
.lightbox-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace;
  font-size: 18px;
  cursor: pointer; z-index: 10001; padding: 0; line-height: 1;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.05); }
.lightbox-caption {
  position: fixed; bottom: 20px; left: 0; right: 0;
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  pointer-events: none; z-index: 10001;
}

/* ─────────── responsive ─────────── */
@media (max-width: 640px) {
  .container { padding: 0 22px; }
  .content-section { padding: 112px 0 70px; }
  .workshop { padding: 28px 22px 28px 26px; }
  .workshop-title { font-size: 22px; }
  .project-title { font-size: 21px; }
  .form-submit { width: 100%; text-align: center; }
  .about-spec { grid-template-columns: 1fr; gap: 3px 0; }
  .about-spec dd { margin-bottom: 8px; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .statusbar .blink { animation: none; }
  .hero-inner, .snap-track, .section-content { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   GALLERY-BLACK THEME — applied site-wide via the tuned `nocturne`
   palette (set as the default in tweaks.jsx). A refined near-black
   field with a whisper of depth, plus a restrained bloom on the home
   landing. The Palette tweak still switches freely between palettes.
   ════════════════════════════════════════════════════════════════════ */
html[data-palette="nocturne"] body {
  background:
    radial-gradient(120% 120% at 50% 28%, #131316 0%, #0B0B0C 50%, #060607 100%) no-repeat fixed;
}

/* keep the landing calm — suppress the busy generative field on home */
body.view-home .plot-canvas { opacity: 0.5; }

/* a restrained bloom + fine grain behind the wordmark */
.home-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
}
body.view-home .home-field { opacity: 1; }
.home-field::before {
  content: ''; position: absolute; left: 50%; top: 47%;
  width: 78vmin; height: 78vmin; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(143, 168, 140, 0.10) 0%,
    rgba(143, 168, 140, 0.035) 38%,
    transparent 66%);
  animation: home-breathe 13s ease-in-out infinite;
}
.home-field::after {
  content: ''; position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes home-breathe { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .home-field::before { animation: none; } }
