/* ═══════════════════════════════════════════════════════════════
   HOME — "THE DEVELOP"
   The darkroom itself: WebGL scroll-developed hero, develop
   panel, compare wand, contact-sheet index, six live demos,
   safelight principles, journal. Loads after /site.css.
   ═══════════════════════════════════════════════════════════════ */

/* ── Frame rail (film counter) ─────────────────────────────── */
.frame-rail {
  position: fixed; left: var(--pad-x); bottom: 1.6rem; z-index: 95;
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--dim); font-size: 0.6rem; letter-spacing: 0.26em;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  pointer-events: none;
}
.frame-rail.is-on { opacity: 1; transform: none; }
.fr-tick { width: 18px; height: 1px; background: var(--amber); }
#frNum { color: var(--amber); }

/* ── Loader ────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--carbon);
  display: grid; place-items: center; align-content: center; gap: 1.6rem;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.loader-iris { position: relative; width: clamp(120px, 18vw, 180px); color: var(--amber); }
.iris-svg { width: 100%; display: block; overflow: visible; }
.iris-blades path { fill: none; stroke: currentColor; stroke-width: 1.2; }
.loader-fstop {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 1rem; letter-spacing: 0.1em;
  color: var(--highlight); font-variant-numeric: tabular-nums;
}
.loader-caption { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.4em; color: var(--dim); text-align: center; }

/* ── Hero — THE DEVELOP ────────────────────────────────────── */
.hero { position: relative; }
.hero-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas, .hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-fallback { display: none; filter: saturate(0.6) contrast(0.82) brightness(0.72); }
body.no-webgl .hero-fallback { display: block; }
body.no-webgl .hero-canvas { display: none; }

.hero-stage::after {
  /* protect copy legibility over the flat RAW frame */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(105deg, rgba(13 11 8 / 0.72) 0%, rgba(13 11 8 / 0.28) 46%, rgba(13 11 8 / 0) 70%),
    linear-gradient(to top, rgba(13 11 8 / 0.55), transparent 32%);
}
.hero-copy {
  position: absolute; z-index: 3; left: var(--pad-x); right: var(--pad-x); bottom: 16vh;
  max-width: 44rem;
}
.hero-eyebrow { color: var(--amber); margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--f-display);
  font-size: var(--size-hero);
  font-weight: 480;
  font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--highlight);
  margin-bottom: 1.6rem;
}
.hero-title em {
  font-style: italic; font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  color: var(--amber);
}
.hero-sub { max-width: 34rem; color: var(--silver); margin-bottom: 2.2rem; }
.hero-ctas { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.hero-price { color: var(--dim); }

/* develop panel */
.develop-panel {
  position: absolute; z-index: 3; right: var(--pad-x); top: 50%;
  transform: translateY(-50%);
  width: 218px;
  background: rgba(13 11 8 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.9rem 1rem 0.8rem;
}
.dp-head {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--highlight); font-size: 0.62rem; letter-spacing: 0.22em;
  padding-bottom: 0.7rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 0.75rem;
}
.dp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--safelight); box-shadow: 0 0 8px var(--safelight); }
.dp-histo {
  display: block; width: 100%; height: 44px;
  border: 1px solid var(--line-soft); border-radius: 2px;
  background: rgba(201 194 182 / 0.03);
  margin-bottom: 0.8rem;
}
.dp-row { display: grid; grid-template-columns: 62px 1fr 40px; align-items: center; gap: 0.55rem; margin-bottom: 0.5rem; }
.dp-name { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: var(--dim); }
.dp-track { position: relative; height: 2px; background: var(--line); border-radius: 1px; }
.dp-thumb {
  position: absolute; top: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: var(--silver);
  transform: translate(-50%, -50%);
}
.dp-row.is-settled .dp-thumb { background: var(--amber); }
.dp-val {
  font-family: var(--f-mono); font-size: 0.62rem; text-align: right;
  color: var(--silver); font-variant-numeric: tabular-nums;
}
.dp-foot {
  margin-top: 0.65rem; padding-top: 0.65rem; border-top: 1px solid var(--line-soft);
  font-size: 0.58rem; letter-spacing: 0.2em; color: var(--dim);
}
.dp-foot.is-done { color: var(--teal); }

/* exif strip + payoff + cue */
.hero-exif {
  position: absolute; z-index: 3; left: var(--pad-x); right: var(--pad-x); bottom: 2rem;
  display: flex; justify-content: space-between; gap: 1rem;
  color: var(--dim); font-size: 0.62rem;
}
.hero-exif-right { color: var(--silver); display: inline-flex; align-items: center; gap: 0.5rem; }
.rec {
  width: 7px; height: 7px; border-radius: 50%; background: var(--safelight);
  display: inline-block; animation: rec-pulse 1.6s ease-in-out infinite;
}
@keyframes rec-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero-exif-right.is-done .rec { background: var(--teal); animation: none; }

.hero-payoff {
  position: absolute; z-index: 3; left: 50%; bottom: 12vh;
  transform: translateX(-50%);
  color: var(--highlight); letter-spacing: 0.18em; font-size: 0.7rem;
  opacity: 0; text-align: center; width: max-content; max-width: 90vw;
}
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  display: inline-flex;
  color: var(--dim); font-size: 0.6rem; letter-spacing: 0.3em;
  align-items: center; gap: 0.8rem;
}
.scroll-cue-line { width: 44px; height: 1px; background: var(--dim); position: relative; overflow: hidden; }
.scroll-cue-line::after {
  content: ''; position: absolute; inset: 0; background: var(--amber);
  transform: translateX(-100%); animation: cue-sweep 2.2s var(--ease-inout) infinite;
}
@keyframes cue-sweep { 0% { transform: translateX(-100%);} 55% { transform: translateX(0);} 100% { transform: translateX(100%);} }

/* ── Compare wand ──────────────────────────────────────────── */
.split-wand {
  position: absolute; z-index: 4; top: 0; bottom: 0; left: 0;
  width: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.6s var(--ease-out);
}
.split-wand.is-ready { opacity: 1; pointer-events: auto; }
.wand-line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; pointer-events: none; }
.wand-grip {
  position: absolute; top: 50%; left: 0;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--highlight);
  background: rgba(13 11 8 / 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  cursor: ew-resize;
  touch-action: none;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
.wand-grip:hover, .split-wand.is-dragging .wand-grip { border-color: var(--amber); color: var(--amber); }
.wand-grip span { color: var(--amber); }
.split-wand.is-parked .wand-grip { animation: wand-nudge 2.6s var(--ease-inout) infinite; }
@keyframes wand-nudge { 0%, 100% { margin-left: 0; } 50% { margin-left: 10px; } }

/* ── Develop your own photo ────────────────────────────────── */
.drop-chip {
  position: absolute; z-index: 4; left: var(--pad-x); bottom: 4.6rem;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--silver);
  background: rgba(13 11 8 / 0.55);
  border: 1px dashed rgba(201 194 182 / 0.35);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s, border-color 0.3s;
}
.drop-chip:hover { color: var(--amber); border-color: var(--amber); }
.drop-chip svg { width: 14px; height: 14px; }
.drop-overlay {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  background: rgba(13 11 8 / 0.72);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.drop-overlay.is-on { opacity: 1; }
.drop-overlay-box {
  border: 1.5px dashed var(--amber); border-radius: 6px;
  padding: 3rem 4rem; text-align: center;
  color: var(--highlight); font-size: 0.85rem; letter-spacing: 0.24em; line-height: 2.1;
}
.drop-overlay-box span { color: var(--dim); font-size: 0.6rem; }

/* ── Index — contact sheet ─────────────────────────────────── */
.index { position: relative; padding-bottom: clamp(4rem, 9vh, 7rem); }
.index-list { border-top: 1px solid var(--line); margin: 0 var(--pad-x); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list a {
  display: grid;
  grid-template-columns: 3.6rem 1fr 1.4fr auto;
  align-items: baseline; gap: 1.6rem;
  padding: 1.55rem 0.4rem;
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}
.index-list a::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(232 163 61 / 0.07), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.index-list a:hover { padding-left: 1.4rem; }
.index-list a:hover::before { opacity: 1; }
.ix-no { color: var(--dim); font-size: 0.66rem; }
.ix-name {
  font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  font-weight: 470; font-variation-settings: 'opsz' 60;
  color: var(--highlight); letter-spacing: -0.01em;
  transition: color 0.3s;
}
.index-list a:hover .ix-name { color: var(--amber); }
.ix-desc { color: var(--dim); font-size: 0.95rem; }
.ix-price { color: var(--silver); font-size: 0.78rem; }
.index-preview {
  position: fixed; z-index: 80; width: 240px; aspect-ratio: 3/2;
  pointer-events: none; opacity: 0; overflow: hidden; border-radius: 3px;
  /* anchored so the cursor lands on the card's top-right third, not its centre */
  transform: translate(-66.6%, -33.3%) rotate(2deg) scale(0.9);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
  box-shadow: 0 24px 60px rgba(0 0 0 / 0.5);
}
.index-preview.is-on { opacity: 1; transform: translate(-66.6%, -33.3%) rotate(2deg) scale(1); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Plates ────────────────────────────────────────────────── */
.plate { padding: clamp(4.5rem, 10vh, 8rem) var(--pad-x); border-top: 1px solid var(--line-soft); }
.plate-inner {
  display: grid; grid-template-columns: minmax(20rem, 0.85fr) 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  max-width: 90rem; margin: 0 auto;
}
.plate--flip .plate-inner { grid-template-columns: 1.15fr minmax(20rem, 0.85fr); }
.plate--flip .plate-copy { order: 2; }
.plate--flip .plate-demo { order: 1; }
.plate-title {
  font-family: var(--f-display); font-size: var(--size-h3); font-weight: 500;
  font-variation-settings: 'opsz' 100;
  color: var(--highlight); line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.plate-tag { color: var(--silver); margin-bottom: 1.6rem; max-width: 30rem; }
.plate-points { margin-bottom: 2rem; }
.plate-points li {
  position: relative; padding: 0.42rem 0 0.42rem 1.5rem;
  color: var(--dim); font-size: 0.95rem;
}
.plate-points li::before {
  content: '✦'; position: absolute; left: 0; top: 0.45rem;
  color: var(--amber); font-size: 0.7rem;
}
.plate-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.demo-caption { color: var(--dim); font-size: 0.62rem; letter-spacing: 0.2em; margin-top: 0.9rem; }

/* ── Demo 01: publish ──────────────────────────────────────── */
.demo-publish {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.1rem; align-items: start;
}
.pub-flow { align-self: center; }
.pub-meta span { white-space: nowrap; }
.pub-side { min-width: 0; }
.pub-side figcaption { color: var(--dim); font-size: 0.6rem; letter-spacing: 0.2em; margin-bottom: 0.7rem; }
.pub-img { position: relative; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); }
.pub-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: filter 0.9s var(--ease-inout); }
#demoPublish.is-edited #pubSrc { filter: saturate(1.25) contrast(1.12) hue-rotate(-6deg) brightness(1.05); }
#demoPublish.is-published #pubDst { filter: saturate(1.25) contrast(1.12) hue-rotate(-6deg) brightness(1.05); }
.pub-sweep {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(232 163 61 / 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
#demoPublish.is-publishing .pub-sweep { animation: pub-sweep 0.9s var(--ease-inout) forwards; }
@keyframes pub-sweep { to { transform: translateX(120%); } }
.pub-meta { display: flex; justify-content: space-between; margin-top: 0.6rem; color: var(--dim); font-size: 0.6rem; }
#pubEditTag { color: var(--safelight); opacity: 0; transition: opacity 0.4s; }
#demoPublish.is-edited #pubEditTag { opacity: 1; }
.pub-ok { color: var(--teal); opacity: 0; transition: opacity 0.5s; }
#demoPublish.is-published .pub-ok { opacity: 1; }
.pub-flow { display: grid; gap: 0.9rem; justify-items: center; }
.pub-flow-line { width: 1px; height: 46px; background: var(--line); }
.pub-btn { padding: 0.7rem 1.1rem; font-size: 0.62rem; white-space: nowrap; }

/* ── Demo 02: faces ────────────────────────────────────────── */
.demo-faces { position: relative; }
.demo-faces > img { border-radius: 3px; border: 1px solid var(--line); width: 100%; }
.face-layer { position: absolute; inset: 0; }
.face-box {
  position: absolute; border: 1.5px solid var(--amber); border-radius: 2px;
  opacity: 0; transform: scale(1.25);
  transition: opacity 0.4s, transform 0.55s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.face-box.is-on { opacity: 1; transform: scale(1); }
.face-box.is-hot { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 0 24px rgba(111 194 178 / 0.35); }
.face-box .face-name {
  position: absolute; left: -1.5px; top: calc(100% + 4px);
  font-family: var(--f-mono); font-size: 0.58rem; letter-spacing: 0.14em;
  background: var(--carbon); color: var(--amber);
  border: 1px solid var(--line); border-radius: 2px;
  padding: 0.18rem 0.4rem; white-space: nowrap;
}
.face-box.is-hot .face-name { color: var(--teal); }
.face-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.face-chip {
  font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.12em;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.32rem 0.75rem; color: var(--dim);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out), color 0.3s, border-color 0.3s;
}
.face-chip.is-on { opacity: 1; transform: none; }
.face-chip:hover, .face-chip.is-hot { color: var(--teal); border-color: var(--teal); }
.face-chip::before { content: '# '; color: var(--amber); }

/* ── Demo 03: search ───────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center; gap: 0.8rem;
  border: 1px solid var(--line); border-radius: 3px;
  padding: 0.85rem 1.1rem; margin-bottom: 1.1rem;
  background: var(--carbon-2);
  transition: border-color 0.3s;
}
.search-bar:focus-within { border-color: var(--amber); }
.search-ico { width: 17px; height: 17px; color: var(--dim); flex: none; }
.search-bar input {
  background: none; border: 0; outline: 0; color: var(--highlight);
  font-family: var(--f-mono); font-size: 0.85rem; letter-spacing: 0.04em;
  width: 100%; caret-color: var(--amber);
}
.search-bar input::placeholder { color: var(--dim); }
.search-hint { color: var(--amber); font-size: 0.58rem; animation: rec-pulse 2s infinite; white-space: nowrap; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.55rem; }
.search-grid figure {
  position: relative; overflow: hidden; border-radius: 3px;
  transition: opacity 0.45s, transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.search-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.search-grid .match {
  position: absolute; right: 5px; top: 5px;
  font-size: 0.56rem; letter-spacing: 0.06em;
  background: var(--amber); color: var(--carbon);
  padding: 0.12rem 0.4rem; border-radius: 2px;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}
.demo-search.has-query .search-grid figure.is-dim { opacity: 0.22; transform: scale(0.96); }
.demo-search.has-query .search-grid figure.is-hit { box-shadow: 0 0 0 1.5px var(--amber), 0 12px 34px rgba(232 163 61 / 0.16); }
.demo-search.has-query .search-grid figure.is-hit .match { opacity: 1; transform: none; }

/* ── Demo 04: grid planner ─────────────────────────────────── */
.grid-tiles { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
.grid-tiles figure {
  overflow: hidden; border-radius: 3px;
  will-change: transform;
}
@media (hover: hover) { .grid-tiles figure { cursor: grab; } }
.grid-tiles figure.is-dragging {
  cursor: grabbing; z-index: 12; position: relative;
  box-shadow: 0 22px 55px rgba(0 0 0 / 0.55), 0 0 0 1.5px var(--amber);
}
.grid-tiles img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.grid-bar { display: flex; align-items: center; gap: 1.1rem; margin-top: 1.1rem; }
.grid-state { color: var(--dim); font-size: 0.6rem; letter-spacing: 0.18em; }
.grid-state.is-sorted { color: var(--teal); }
.grid-hint { color: var(--dim); font-size: 0.56rem; letter-spacing: 0.18em; margin-left: auto; opacity: 0.7; }
@media (hover: none) { .grid-hint { display: none; } }

/* ── Demo 05: drive ────────────────────────────────────────── */
.demo-drive {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--carbon-2); padding: 1.4rem;
  font-size: 0.68rem; letter-spacing: 0.05em;
}
.drv-head { color: var(--dim); font-size: 0.58rem; letter-spacing: 0.2em; margin-bottom: 0.9rem; }
.demo-drive ul li {
  display: flex; justify-content: space-between; gap: 0.6rem;
  padding: 0.5rem 0.6rem; border-radius: 2px;
  color: var(--silver);
  position: relative; overflow: hidden;
}
.demo-drive ul li:nth-child(odd) { background: rgba(201 194 182 / 0.03); }
.demo-drive ul li em { font-style: normal; color: var(--dim); }
#drvSrc li.is-edited { color: var(--highlight); }
#drvSrc li.is-edited::after { content: 'EDITED ●'; color: var(--safelight); font-size: 0.56rem; }
#drvDst li { transition: background 0.4s; }
#drvDst li.is-syncing { background: rgba(232 163 61 / 0.08); }
#drvDst li.is-syncing::before {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--amber); transform-origin: left; animation: drv-bar 1.1s var(--ease-inout) forwards;
}
@keyframes drv-bar { from { transform: scaleX(0);} to { transform: scaleX(1);} }
#drvDst li.is-updated em { color: var(--teal); }
.drv-link { display: grid; place-items: center; }
.drv-pulse { width: 34px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.drv-pulse::after {
  content: ''; position: absolute; inset: 0; background: var(--amber);
  transform: translateX(-100%); animation: cue-sweep 1.8s var(--ease-inout) infinite;
}

/* ── Demo 06: keptfolio ────────────────────────────────────── */
.demo-kept { border: 1px solid var(--line); border-radius: 5px; overflow: hidden; background: var(--carbon-2); }
.kept-chrome {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--line-soft);
  font-size: 0.6rem; color: var(--dim);
}
.kept-dots { display: inline-flex; gap: 5px; }
.kept-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--carbon-3); }
.kept-url { margin: 0 auto; letter-spacing: 0.14em; }
.kept-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--teal); }
.kept-live .rec { background: var(--teal); }
.kept-site { padding: 1.5rem 1.6rem 1.7rem; transition: background 0.6s, color 0.6s; }
.kept-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.1rem; }
.kept-logo { font-size: 1.05rem; }
.kept-head nav { display: flex; gap: 1rem; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.62; }
.kept-hero { overflow: hidden; margin-bottom: 0.6rem; }
.kept-hero img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; object-position: 50% 28%; transition: filter 0.6s; }
.kept-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.kept-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: filter 0.6s; }
.kept-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0.9rem; border-top: 1px solid var(--line-soft);
}
.kept-bar-label { color: var(--dim); font-size: 0.58rem; letter-spacing: 0.24em; }
.kept-themes { display: flex; gap: 0.4rem; }
.kept-themes button {
  font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--dim); transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.kept-themes button:hover { color: var(--silver); }
.kept-themes button.is-on { color: var(--carbon); background: var(--amber); border-color: var(--amber); }

/* theme variants inside the mini site */
.demo-kept[data-theme="noir"] .kept-site { background: #101010; color: #EDEAE4; }
.demo-kept[data-theme="noir"] .kept-logo { font-family: var(--f-display); font-style: italic; font-weight: 430; }
.demo-kept[data-theme="paper"] .kept-site { background: #F5F2EB; color: #1B1916; }
.demo-kept[data-theme="paper"] .kept-logo { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.8rem; }
.demo-kept[data-theme="paper"] img { filter: saturate(0.92); }
.demo-kept[data-theme="editorial"] .kept-site { background: #E9E2D2; color: #262019; }
.demo-kept[data-theme="editorial"] .kept-logo { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.demo-kept[data-theme="editorial"] img { filter: sepia(0.14) saturate(0.9); }

/* ── Safelight — principles ────────────────────────────────── */
.safelight {
  position: relative;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: #120705;
  border-top: 1px solid rgba(255 92 57 / 0.18);
  border-bottom: 1px solid rgba(255 92 57 / 0.18);
  overflow: hidden;
}
.safelight::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(255 92 57 / 0.22), transparent 62%);
  animation: safelight-breathe 7s ease-in-out infinite;
}
@keyframes safelight-breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
.safelight-inner { position: relative; }
.safelight .eyebrow { color: var(--safelight); }
.safelight-inner { max-width: 90rem; margin: 0 auto; }
.creed { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: 3rem; }
.creed-title {
  font-family: var(--f-display); font-size: clamp(1.9rem, 3.2vw, 3rem);
  font-weight: 500; font-variation-settings: 'opsz' 100;
  color: #FFE9DF; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.creed-item p { color: rgba(255 233 223 / 0.62); font-size: 0.98rem; max-width: 24rem; }

/* ── Journal ───────────────────────────────────────────────── */
.journal { padding-bottom: clamp(4rem, 9vh, 7rem); }
.journal-row {
  display: grid; grid-template-columns: 1fr 1fr 0.6fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  margin: 0 var(--pad-x);
}
.journal-card {
  background: var(--carbon); padding: 2rem 1.8rem 1.8rem;
  display: flex; flex-direction: column; gap: 1rem; min-height: 15rem;
  transition: background 0.4s;
}
.journal-card:hover { background: var(--carbon-2); }
.jc-meta { color: var(--dim); font-size: 0.6rem; }
.jc-title {
  font-family: var(--f-display); font-size: clamp(1.3rem, 1.9vw, 1.75rem);
  font-weight: 470; font-variation-settings: 'opsz' 40;
  color: var(--highlight); line-height: 1.18; flex: 1;
}
.journal-card:hover .jc-title { color: var(--amber); }
.jc-more { color: var(--dim); font-size: 0.62rem; letter-spacing: 0.2em; }
.journal-card:hover .jc-more { color: var(--amber); }
.journal-card--all { align-items: flex-start; justify-content: flex-end; }
.journal-card--all .jc-title { flex: none; font-style: italic; font-variation-settings: 'opsz' 100, 'SOFT' 60, 'WONK' 1; }

/* ── Contact ───────────────────────────────────────────────── */
.contact { padding: clamp(5rem, 11vh, 8rem) var(--pad-x); border-top: 1px solid var(--line-soft); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem);
  max-width: 90rem; margin: 0 auto; align-items: start;
}
.contact-sub { color: var(--dim); margin: 1.2rem 0 2rem; max-width: 26rem; }

/* ── Demo 07: look slots ───────────────────────────────────── */
.demo-slots {
  position: relative; margin: 0;
  border: 1px solid var(--line); border-radius: 5px; overflow: hidden;
  background: var(--carbon-2);
}
.slots-diagram { width: 100%; height: auto; display: block; }
/* The amber sheen rides the wires from the slots across to the filmstrip. */
.demo-slots::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(232 163 61 / 0.15) 50%, transparent 62%);
  mix-blend-mode: screen;
  animation: slotsSheen 7s var(--ease-inout, ease-in-out) infinite;
}
@keyframes slotsSheen {
  0%, 12% { transform: translateX(-55%); opacity: 0; }
  25%     { opacity: 1; }
  75%     { opacity: 1; }
  88%, 100% { transform: translateX(55%); opacity: 0; }
}
.slots-bar {
  padding: 0.55rem 0.85rem 0.8rem; color: var(--dim);
  font-size: 0.6rem; letter-spacing: 0.18em;
}
@media (prefers-reduced-motion: reduce) {
  .demo-slots::after { animation: none; }
}

/* ── The reel: sizzle video after the plates ───────────────── */
.reel { padding: 7rem 6vw 2rem; }
.reel .section-head { margin-bottom: 2.6rem; }
.video-facade {
  position: relative; max-width: 62rem; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  cursor: pointer; background: var(--carbon-2);
}
.video-poster { width: 100%; display: block; filter: saturate(0.9); transition: filter 0.4s, transform 0.6s var(--ease-out); }
.video-facade:hover .video-poster { filter: saturate(1); transform: scale(1.015); }
.video-play-btn {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13 11 8 / 0.25); transition: background 0.3s; border: 0; cursor: pointer;
}
.video-facade:hover .video-play-btn { background: rgba(13 11 8 / 0.1); }
.video-play-btn svg { width: 68px; height: 68px; filter: drop-shadow(0 8px 30px rgba(0 0 0 / 0.5)); }
.video-facade.playing .video-poster, .video-facade.playing .video-play-btn { display: none; }
.video-player { width: 100%; display: none; }
.video-facade.playing .video-player { display: block; }
.reel .video-note { color: var(--dim); font-size: 0.6rem; letter-spacing: 0.2em; margin-top: 0.9rem; text-align: center; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .develop-panel { display: none; }
  .plate-inner, .plate--flip .plate-inner { grid-template-columns: 1fr; }
  .plate--flip .plate-copy { order: 1; }
  .plate--flip .plate-demo { order: 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .journal-row { grid-template-columns: 1fr; }
  .journal-card { min-height: 0; }
  .creed { grid-template-columns: 1fr; }
  .index-preview { display: none; }
}
@media (max-width: 760px) {
  .hero-copy { bottom: 14vh; }
  .hero-eyebrow { font-size: 0.58rem; letter-spacing: 0.1em; }
  .hero-exif { display: none; }
  .hero-payoff { display: none; }
  .scroll-cue { display: none; }
  /* Fixed bottom-left; once the plates stack there is no margin for it to
     sit in, so it lands on top of the demo. */
  .frame-rail { display: none; }
  .drop-chip { bottom: 1.4rem; font-size: 0.54rem; padding: 0.5rem 0.85rem; }
  .wand-grip { font-size: 0.54rem; padding: 0.45rem 0.7rem; }
  .index-list a { grid-template-columns: 2.2rem 1fr auto; }
  .ix-desc { display: none; }
  .demo-publish { grid-template-columns: 1fr; }
  .pub-flow { grid-auto-flow: column; align-items: center; }
  .pub-flow-line { width: 46px; height: 1px; }
  .demo-drive { grid-template-columns: 1fr; font-size: 0.62rem; }
  .drv-link { display: none; }
  .search-grid { grid-template-columns: repeat(4, 1fr); }
}
