/* ═══════════════════════════════════════════════════════════════
   mode:LIMINAL — style.css
   Themes via html[data-theme], layouts via body[data-layout]
   ═══════════════════════════════════════════════════════════════ */

:root {
  --accent: #ff3954;
  --accent2: #4a48f2;
  --accent3: #00aaa1;
  --nav-h: 56px;
  --fast: 0.15s cubic-bezier(0.3, 0, 0, 1);
  --med: 0.28s cubic-bezier(0.3, 0, 0, 1);
  --snap: cubic-bezier(0.7, 0, 0.15, 1);
}

html[data-theme="dark"] {
  --bg: #0b0b10;
  --surface: #13131c;
  --surface2: #1a1a26;
  --text: #eae8f2;
  --muted: #9491a8;
  --accent-ink: #ff3954; --accent2-ink: #8a88ff; --accent3-ink: #00aaa1;
  --accent-on: #ffffff; --accent2-on: #ffffff; --accent3-on: #041b1a;
  --line: #2b2940;
  --card-bg: #101018;
  --nav-bg: rgba(11, 11, 16, 0.88);
  --grain-opacity: 0.5;
  --shadow: rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface2: #efece5;
  --text: #17171a;
  --muted: #6b675f;
  --accent-ink: #d41f3d; --accent2-ink: #4a48f2; --accent3-ink: #007a73;
  --accent-on: #ffffff; --accent2-on: #ffffff; --accent3-on: #041b1a;
  --line: #dcd8d0;
  --card-bg: #ffffff;
  --nav-bg: rgba(250, 249, 246, 0.92);
  --grain-opacity: 0.25;
  --shadow: rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

body[data-layout="cards"] .layout-ledger { display: none; }
body[data-layout="ledger"] .layout-cards { display: none; }

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ── Reveal system ── */
.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s cubic-bezier(0.3, 0, 0, 1),
              transform 0.35s cubic-bezier(0.3, 0, 0, 1);
}
.rv.in { opacity: 1; transform: translateY(0); }

/* ═══════════ NAV ═══════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1rem;
  letter-spacing: 0.06em;
}
body[data-layout="ledger"] .nav-logo {
  font-family: 'Instrument Serif', serif;
  font-weight: 400; font-size: 1.1rem; letter-spacing: 0;
}
.nav-logo span { color: var(--accent); }
body[data-layout="ledger"] .nav-logo span { font-style: italic; }

.nav-links { display: flex; }
.nav-links a {
  position: relative;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  transition: color var(--fast);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 4px; left: 14px; right: 14px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--fast);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-hamburger span {
  display: block; height: 2px; width: 22px;
  background: var(--accent); border-radius: 2px;
  transition: transform var(--med), opacity var(--fast);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .nav-links.open a { padding: 14px 16px; font-size: 0.9rem; }
}

main { padding-top: var(--nav-h); }

/* ═══════════ LAYOUT: CARDS ═══════════ */
.lc-hero {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  text-align: center;
  overflow: hidden;
  padding: 40px 20px;
}
.grain {
  position: absolute; inset: -20%;
  background-repeat: repeat;
  background-size: 128px;
  opacity: var(--grain-opacity);
  pointer-events: none;
  z-index: 0;
}
.lc-hero-content { position: relative; z-index: 1; }
.lc-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--muted); margin-bottom: 24px;
  text-transform: uppercase;
}
.lc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.lc-title em { font-style: normal; font-weight: 700; color: var(--accent); }
.lc-sub {
  font-size: clamp(0.9rem, 2vw, 1.12rem);
  color: var(--muted);
  max-width: 520px; line-height: 1.6;
  margin: 0 auto 40px;
}
.lc-cta {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line);
  padding: 13px 30px; border-radius: 8px;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.lc-cta:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 57, 84, 0.14);
}

.lc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem; letter-spacing: 0.22em;
  color: var(--muted); text-transform: uppercase;
  text-align: center;
  padding: 64px 0 32px;
}

.lc-domains {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px) 72px;
  max-width: 1200px; margin: 0 auto;
}
.lc-card {
  position: relative;
  flex: 1 1 300px; max-width: 380px;
  min-height: 270px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast), background var(--fast);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  font-family: inherit;
  color: inherit;
}
.lc-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(255, 57, 84, 0.1);
}
.lc-card:active { transform: translateY(-1px); }
.lc-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lc-card-accent {
  position: absolute; top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--domain-accent, var(--accent));
  transition: width var(--med);
}
.lc-card:hover .lc-card-accent { width: 100%; }
.lc-card-icon { font-size: 1.7rem; margin-bottom: 14px; opacity: 0.7; transition: transform var(--fast); }
.lc-card:hover .lc-card-icon { transform: translateX(4px); }
.lc-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.32rem; font-weight: 600;
  margin-bottom: 8px;
}
.lc-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.lc-card-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; color: var(--muted);
  margin-top: 16px;
}

/* Domain overlay (cards layout) */
.lc-overlay {
  position: fixed; inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.97);
  visibility: hidden;
  transition: opacity var(--med), transform var(--med), visibility 0s var(--med);
}
.lc-overlay.open {
  opacity: 1; transform: scale(1);
  visibility: visible;
  transition: opacity var(--med), transform var(--med), visibility 0s;
}
.lc-ov-header {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.lc-ov-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 600; }
.lc-ov-close {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 8px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
.lc-ov-close:hover { color: var(--text); border-color: var(--accent); }
.lc-ov-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
  padding: clamp(16px, 4vw, 48px);
  max-width: 1200px; margin: 0 auto;
}

/* Shared project card (both layouts route here) */
.proj-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  cursor: pointer;
  text-align: left;
  font-family: inherit; color: inherit;
  transition: border-color var(--fast), transform var(--fast);
}
.proj-card:hover { border-color: var(--muted); transform: translateY(-3px); }
.proj-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.95rem; margin-bottom: 4px;
}
body[data-layout="ledger"] .proj-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.02rem; }
.proj-meta { font-size: 0.74rem; color: var(--muted); margin-bottom: 10px; }
.proj-summary { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.proj-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
body[data-layout="ledger"] .proj-tags span { border-radius: 0; }

/* Cards About / Contact */
.lc-about {
  max-width: 800px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 72px;
}
.lc-about-text {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  line-height: 1.7; color: var(--muted);
  margin-bottom: 36px;
}
.lc-about-text strong { color: var(--text); font-weight: 500; }
.lc-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.lc-skill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  transition: border-color var(--fast), transform var(--fast);
}
.lc-skill:hover { border-color: var(--muted); transform: translateY(-2px); }
.lc-skill b { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 4px; }
.lc-skill i { font-style: normal; font-size: 0.74rem; color: var(--muted); }

.lc-contact {
  max-width: 640px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 110px;
  text-align: center;
}
.lc-contact h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 300; margin-bottom: 14px;
}
.lc-contact h2 em { font-style: normal; font-weight: 700; color: var(--accent); }
.lc-contact > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 32px; }
.lc-contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.lc-contact-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color var(--fast), transform var(--fast), background var(--fast);
}
.lc-contact-links a:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-2px); }

/* ═══════════ LAYOUT: LEDGER ═══════════ */
.ll-hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: 0 clamp(20px, 6vw, 80px);
  max-width: 1360px; margin: 0 auto;
}
.ll-hero-top { display: flex; align-items: flex-end; padding-bottom: 28px; }
.ll-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; letter-spacing: 0.24em;
  color: var(--muted); text-transform: uppercase;
}
.ll-hero-mid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(32px, 6vh, 60px) 0;
  position: relative;
}
.ll-sweep {
  position: absolute; top: -1px; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width 0.8s var(--snap);
}
.ll-sweep.go { width: 100%; }
.ll-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.ll-title em { font-style: italic; color: var(--accent); }
.ll-hero-bottom {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  padding-top: 28px;
  gap: 24px; flex-wrap: wrap;
}
.ll-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.02rem);
  color: var(--muted);
  max-width: 440px; line-height: 1.65;
}
.ll-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--text);
  padding: 14px 32px;
  position: relative;
  overflow: hidden;
  transition: color var(--fast);
  white-space: nowrap;
  z-index: 1;
}
.ll-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--text);
  transform: translateX(-101%);
  transition: transform 0.22s var(--snap);
  z-index: -1;
}
.ll-cta:hover { color: var(--bg); }
.ll-cta:hover::before { transform: translateX(0); }

.ll-rule-header {
  display: flex; align-items: center; gap: 20px;
  max-width: 1360px; margin: 0 auto;
  padding: 68px clamp(20px, 6vw, 80px) 28px;
}
.ll-rh-num { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--accent-ink); }
.ll-rh-label { font-family: 'Instrument Serif', serif; font-size: clamp(1.4rem, 3vw, 2rem); white-space: nowrap; }
.ll-rh-line { flex: 1; height: 1px; background: var(--line); }

.ll-rows {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px) 72px;
}
.ll-row {
  border: 1px solid var(--line);
  border-bottom-width: 0;
  background: var(--surface);
  overflow: hidden;
}
.ll-row:last-child { border-bottom-width: 1px; }
.ll-row-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  padding: 22px clamp(16px, 3vw, 32px);
  cursor: pointer;
  user-select: none;
  position: relative;
  background: none; border: none;
  width: 100%;
  font-family: inherit; color: inherit;
  text-align: left;
  transition: background var(--fast);
}
.ll-row-head::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--domain-accent, var(--accent));
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--fast);
}
.ll-row-head:hover::before, .ll-row.active .ll-row-head::before { transform: scaleY(1); }
.ll-row-head:hover { background: var(--surface2); }
.ll-row-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ll-idx { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--muted); min-width: 28px; }
.ll-row-title { font-family: 'Instrument Serif', serif; font-size: clamp(1.15rem, 2.6vw, 1.55rem); }
.ll-row-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; color: var(--muted);
  letter-spacing: 0.05em;
  display: none;
}
@media (min-width: 700px) { .ll-row-meta { display: block; } }
.ll-plus {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem; color: var(--muted);
  transition: transform var(--med), color var(--fast);
  width: 22px; text-align: center;
}
.ll-row.active .ll-plus { transform: rotate(45deg); color: var(--accent); }

.ll-row-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--snap);
}
.ll-row.active .ll-row-body { grid-template-rows: 1fr; }
.ll-row-clip { overflow: hidden; }
.ll-inner {
  border-top: 1px solid var(--line);
  padding: 26px clamp(16px, 3vw, 32px);
}
.ll-desc {
  font-size: 0.9rem; line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 24px;
}
.ll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.ll-grid .proj-card {
  border: none; border-radius: 0;
  background: var(--card-bg);
}
.ll-grid .proj-card:hover { background: var(--surface2); transform: none; }

/* Ledger About / Contact */
.ll-about {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px) 72px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(24px, 5vw, 64px);
}
@media (max-width: 768px) { .ll-about { grid-template-columns: 1fr; } }
.ll-about-text {
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.75; color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: clamp(16px, 3vw, 32px);
}
.ll-about-text strong { color: var(--text); font-weight: 500; }
.ll-skills { display: flex; flex-direction: column; }
.ll-skill {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--fast);
}
.ll-skill:first-child { border-top: 1px solid var(--line); }
.ll-skill:hover { padding-left: 8px; }
.ll-skill b { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 0.84rem; }
.ll-skill i {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; color: var(--muted);
  text-align: right;
}

.ll-contact {
  max-width: 1360px; margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 80px) 96px;
}
.ll-contact-frame {
  border: 1px solid var(--line);
  padding: clamp(40px, 8vw, 72px);
  text-align: center;
  position: relative;
}
.ll-contact-frame::before {
  content: '';
  position: absolute; top: -1px; left: 0;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--accent3));
}
.ll-contact h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 400; margin-bottom: 10px;
}
.ll-contact h2 em { font-style: italic; color: var(--accent); }
.ll-contact-frame > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.ll-contact-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 640px; margin: 32px auto 0;
}
.ll-contact-links a {
  flex: 1 1 140px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text); text-decoration: none;
  padding: 16px 12px;
  background: var(--card-bg);
  transition: background var(--fast), color var(--fast);
}
.ll-contact-links a:hover { background: var(--accent); color: #fff; }

/* ═══════════ CONTACT FORM (shared) ═══════════ */
.enquiry-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex; flex-direction: column;
  gap: 16px;
}
.enquiry-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color var(--fast);
}
body[data-layout="ledger"] .enquiry-form input,
body[data-layout="ledger"] .enquiry-form textarea { border-radius: 0; }
.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.enquiry-form textarea { min-height: 120px; resize: vertical; }
.enquiry-form input[aria-invalid="true"],
.enquiry-form textarea[aria-invalid="true"] { border-color: var(--accent); }
.enquiry-submit {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: filter var(--fast), transform var(--fast);
}
body[data-layout="ledger"] .enquiry-submit { border-radius: 0; }
.enquiry-submit:hover { filter: brightness(0.88); transform: translateY(-1px); }
.enquiry-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.enquiry-status {
  font-size: 0.8rem;
  min-height: 1.2em;
  text-align: center;
}
.enquiry-status.ok { color: var(--accent3-ink); }
.enquiry-status.err { color: var(--accent-ink); }

/* ═══════════ PROJECT DETAIL MODAL (shared) ═══════════ */
.detail-backdrop {
  position: fixed; inset: 0;
  z-index: 400;
  background: var(--shadow);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--med), visibility 0s var(--med);
}
.detail-backdrop.open {
  opacity: 1; visibility: visible;
  transition: opacity var(--med), visibility 0s;
}
.detail-modal {
  position: fixed;
  inset: max(2vh, 12px) auto auto 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - max(4vh, 24px));
  max-height: calc(100dvh - max(4vh, 24px));
  z-index: 401;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--med), transform var(--med), visibility 0s var(--med);
}
body[data-layout="ledger"] .detail-modal { border-radius: 0; }
.detail-modal.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  transition: opacity var(--med), transform var(--med), visibility 0s;
}
.detail-head {
  position: sticky; top: 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 32px) 16px;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 5;
}
.detail-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.2;
}
body[data-layout="ledger"] .detail-title { font-family: 'Instrument Serif', serif; font-weight: 400; }
.detail-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem; color: var(--muted);
  margin-top: 4px;
}
.detail-close {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem; color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 8px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
body[data-layout="ledger"] .detail-close { border-radius: 0; }
.detail-close:hover { color: var(--text); border-color: var(--accent); }

.detail-body { padding: clamp(18px, 4vw, 32px); }

.detail-player { margin-bottom: 20px; }
.detail-player img,
.detail-player video {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.detail-player audio { width: 100%; }
.detail-player .embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-player .embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
body[data-layout="ledger"] .detail-player img,
body[data-layout="ledger"] .detail-player video,
body[data-layout="ledger"] .detail-player .embed { border-radius: 0; }

.detail-gallery {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scroll-snap-type: x mandatory;
}
.detail-gallery button {
  flex: 0 0 auto;
  width: 110px; height: 74px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color var(--fast);
}
.detail-gallery button:hover,
.detail-gallery button.current { border-color: var(--accent); }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.detail-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
body[data-layout="ledger"] .detail-tags span { border-radius: 0; }

.detail-desc {
  font-size: 0.92rem; line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
}
.detail-desc strong { color: var(--text); font-weight: 500; }

.detail-link {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  color: #fff; text-decoration: none;
  background: var(--accent);
  padding: 12px 26px;
  border-radius: 6px;
  margin-bottom: 24px;
  transition: filter var(--fast), transform var(--fast);
}
body[data-layout="ledger"] .detail-link { border-radius: 0; }
.detail-link:hover { filter: brightness(0.88); transform: translateY(-1px); }

.detail-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.detail-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 24px;
  margin-bottom: 24px;
}
.detail-specs > div { font-size: 0.8rem; }
.detail-specs dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.detail-specs dd { margin: 0; }

/* ═══════════ FOOTER + SWITCHER ═══════════ */
footer {
  border-top: 1px solid var(--line);
  padding: 20px clamp(16px, 4vw, 48px);
  display: flex; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  font-size: 0.66rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.switcher {
  position: fixed;
  bottom: 16px; right: 16px;
  z-index: 300;
  display: flex; align-items: center; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 5px;
  box-shadow: 0 4px 20px var(--shadow);
}
.sw-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  background: none; border: none;
  padding: 7px 12px;
  border-radius: 18px;
  cursor: pointer;
  transition: color var(--fast), background var(--fast);
  white-space: nowrap;
}
.sw-btn:hover { color: var(--text); background: var(--surface2); }
.sw-btn:focus-visible { outline: 2px solid var(--accent); }
.sw-copied { color: var(--accent3-ink) !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* ═══════════ CONTACT GAME ═══════════ */
.game-overlay {
  position: fixed; inset: 0;
  z-index: 500;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.3, 0, 0, 1);
  touch-action: none;
}
.game-overlay.open { opacity: 1; }
.game-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: pointer;
}
.game-hud {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(14px, 3vw, 28px);
  pointer-events: none;
}
.game-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text);
}
.game-hud-right {
  display: flex; align-items: center; gap: 14px;
  pointer-events: auto;
}
.game-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
}
.game-status.ok { color: var(--accent3-ink); }
.game-status.err { color: var(--accent-ink); }
.game-quit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color var(--fast), border-color var(--fast);
}
.game-quit:hover { color: var(--text); border-color: var(--accent); }

.game-death {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 36px;
  text-align: center;
  box-shadow: 0 12px 48px var(--shadow);
}
body[data-layout="ledger"] .game-death { border-radius: 0; }
.game-death-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.game-death-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 4px;
}
.game-death-best {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.game-death-row { display: flex; gap: 10px; justify-content: center; }
.game-again, .game-done {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: filter var(--fast), border-color var(--fast);
}
body[data-layout="ledger"] .game-again,
body[data-layout="ledger"] .game-done { border-radius: 0; }
.game-again {
  color: #fff; background: var(--accent); border: none;
}
.game-again:hover { filter: brightness(0.88); }
.game-done {
  color: var(--text); background: var(--surface2);
  border: 1px solid var(--line);
}
.game-done:hover { border-color: var(--accent); }

.game-deliver {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem; font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--accent3-on);
  background: var(--accent3);
  border: none;
  transition: filter var(--fast);
}
body[data-layout="ledger"] .game-deliver { border-radius: 0; }
.game-deliver:hover { filter: brightness(0.88); }
.game-deliver:disabled { opacity: 0.7; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   v6 ADDITIONS — selected work, domain accents, threshold wordmark
   ═══════════════════════════════════════════════════════════════ */

html[data-theme="dark"]  { --door-1: #b52a40; --door-2: #84203a; --door-3: #57172c; --door-4: #33111f; }
html[data-theme="light"] { --door-1: #a9a397; --door-2: #c4beb3; --door-3: #dad5cc; --door-4: #ebe7e0; }

/* ── Wordmark: cycling first word + doorway L ── */
.wordmark { cursor: default; }
.wm-cycle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  /* open far to the left so longer words can grow out of the slot */
  clip-path: inset(-0.08em -0.04em -0.22em -100vw);
}
.wm-strut { visibility: hidden; }
.wm-colon { position: relative; z-index: 30; }   /* stays above the first L's extrusion */
.wm-word { position: absolute; right: 0; top: 0; white-space: nowrap; }
.wm-measure { position: absolute; right: 0; top: 0; visibility: hidden; white-space: nowrap; }
.wm-l {
  display: inline-block;
  position: relative;
  /* reverse stacking: each letter sits above the extrusion of the letter
     after it (the extrusion falls up-left, onto the previous letter) */
  z-index: calc(20 - var(--i));
  text-shadow: 0 0 0 transparent;
  transition: text-shadow 0.55s cubic-bezier(0.3, 0, 0, 1);
  transition-delay: calc(var(--i) * 55ms);
}
.door-open .wm-l {
  /* hard steps, not a blend: four distinct bands, each a full step deep */
  text-shadow:
    -0.028em -0.021em 0 var(--door-1),
    -0.056em -0.042em 0 var(--door-2),
    -0.084em -0.063em 0 var(--door-3),
    -0.112em -0.084em 0 var(--door-4);
}
/* LIMINAL slides right as its depth arrives, making room so the
   extrusion (and the italic overhang) never lands on the colon */
.wordmark em {
  display: inline-block;
  transition: transform 0.6s cubic-bezier(0.3, 0, 0, 1);
}
.door-open em { transform: translateX(0.1em); }
.ll-title.door-open em { transform: translateX(0.16em); }
@media (prefers-reduced-motion: reduce) {
  .wm-l { transition: none; }
}

/* ── Media frame (featured cards, placeholders) ── */
.media-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface2);
}
.media-frame.mf-wide { aspect-ratio: 21 / 9; }
.media-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.6s cubic-bezier(0.3, 0, 0, 1);
}
.mf-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 90% at 85% 110%, color-mix(in srgb, var(--domain-accent) 34%, transparent), transparent 60%),
    radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--domain-accent) 14%, transparent), transparent 70%),
    var(--surface2);
}
.media-frame.has-img .mf-ph { display: none; }
.mf-ph .cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cover * { fill: none; stroke: var(--domain-accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.cover .cv-line { opacity: 0.3; }
.cover .cv-wire { opacity: 0.85; stroke-width: 1.25; }
.cover .cv-rule { opacity: 0.55; stroke-dasharray: 3 4; }
.cover .cv-node { opacity: 0.5; fill: color-mix(in srgb, var(--domain-accent) 7%, var(--surface2)); }
.cover .cv-node.cv-hot { opacity: 0.95; fill: color-mix(in srgb, var(--domain-accent) 30%, var(--surface2)); }
.cover .cv-dot { fill: var(--domain-accent); stroke: none; opacity: 0.9; }
.cover .cv-line2 { opacity: 0.42; }
.cover .cv-thick { stroke-width: 2.5; stroke-linecap: round; }
.cover .cv-fill { fill: var(--domain-accent); stroke: none; }
.cover rect.cv-hot, .cover circle.cv-hot { opacity: 0.95; fill: color-mix(in srgb, var(--domain-accent) 30%, var(--surface2)); }
.mf-tag {
  position: absolute; left: 12px; bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.14em;
  color: var(--domain-ink, var(--domain-accent)); opacity: 0.9;
}

/* ── Selected work: cards layout ── */
.lc-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0 clamp(16px, 4vw, 48px) 8px;
  max-width: 1200px; margin: 0 auto;
}
.feat-card {
  display: flex; flex-direction: column;
  text-align: left;
  font-family: inherit; color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--fast), transform var(--fast), box-shadow var(--fast);
}
.feat-card.feat-lead { grid-column: 1 / -1; }
.feat-card:hover {
  border-color: var(--domain-accent);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px color-mix(in srgb, var(--domain-accent) 14%, transparent);
}
.feat-card:hover .media-frame img { transform: scale(1.03); }
.feat-card:focus-visible { outline: 2px solid var(--domain-accent); outline-offset: 2px; }
.feat-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feat-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--domain-ink, var(--domain-accent));
}
.feat-domain span { opacity: 0.7; margin-right: 10px; }
.feat-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.2; }
.feat-lead .feat-title { font-size: clamp(1.3rem, 3vw, 1.9rem); }
.feat-summary { font-size: 0.88rem; color: var(--muted); line-height: 1.55; max-width: 62ch; }
.feat-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--muted);
}
.feat-go { color: var(--text); transition: color var(--fast), transform var(--fast); }
.feat-card:hover .feat-go { color: var(--domain-ink, var(--domain-accent)); transform: translateX(3px); }
@media (max-width: 720px) {
  .lc-featured { grid-template-columns: 1fr; }
  .media-frame.mf-wide { aspect-ratio: 16 / 9; }
}

/* ── Selected work: ledger layout ── */
.ll-featured {
  max-width: 1360px; margin: 0 auto 8px;
  padding: 0 clamp(20px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}
.ll-featured .feat-card {
  border-radius: 0;
  border: none;
  background: var(--card-bg);
  outline: 1px solid var(--line);
}
.ll-featured .feat-card:hover { transform: none; box-shadow: none; outline-color: var(--domain-accent); z-index: 1; }
.ll-featured .feat-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.7rem); }
.ll-featured .feat-lead .feat-title { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.ll-featured .feat-lead { display: grid; grid-template-columns: 1.6fr 1fr; }
.ll-featured .feat-lead .media-frame { aspect-ratio: auto; min-height: 280px; }
.ll-featured .feat-go { letter-spacing: 0.08em; }
.ll-subhead {
  max-width: 1360px; margin: 48px auto 14px;
  padding: 0 clamp(20px, 6vw, 80px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .ll-featured { grid-template-columns: 1fr; }
  .ll-featured .feat-lead { display: flex; }
  .ll-featured .feat-lead .media-frame { aspect-ratio: 16 / 9; min-height: 0; }
}

/* ── Domain accents carried through ── */
.lc-card-icon { color: var(--domain-accent, var(--accent)); opacity: 0.9; }
.lc-card:hover {
  border-color: var(--domain-accent, var(--accent));
  box-shadow: 0 12px 40px color-mix(in srgb, var(--domain-accent, var(--accent)) 12%, transparent);
}
.lc-card-count { color: var(--domain-ink, var(--muted)); }
.lc-ov-header { border-bottom: 2px solid var(--domain-accent, var(--line)); }
.lc-ov-icon { color: var(--domain-accent); margin-right: 10px; }
.lc-ov-close:hover { border-color: var(--domain-accent, var(--accent)); }
.proj-card { position: relative; }
.proj-card::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--domain-accent, var(--accent));
  opacity: 0; transition: opacity var(--fast);
}
.proj-card:hover { border-color: var(--domain-accent, var(--muted)); }
.proj-card:hover::before { opacity: 1; }
.proj-card:hover .proj-tags span { border-color: color-mix(in srgb, var(--domain-accent) 45%, var(--line)); }
.ll-idx { color: var(--domain-ink, var(--muted)); }
.ll-row.active .ll-plus { color: var(--domain-ink, var(--accent)); }
.ll-row-head:focus-visible { outline-color: var(--domain-accent, var(--accent)); }
.detail-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--domain-ink, var(--accent-ink));
  margin-bottom: 6px;
}
.detail-domain span { opacity: 0.7; margin-right: 10px; }
.detail-modal .detail-head { border-bottom: 2px solid var(--domain-accent, var(--line)); }
.detail-link { background: var(--domain-accent, var(--accent)); color: var(--domain-on, #fff); }
.detail-tags span { border-color: color-mix(in srgb, var(--domain-accent, var(--accent)) 40%, var(--line)); }

/* ── Project cards carry a still (or tinted placeholder) ── */
.proj-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.proj-body { padding: 18px 22px 22px; }
.proj-card .media-frame.mf-card { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.proj-card .mf-card .mf-icon { font-size: 2rem; }
.proj-card:hover .media-frame img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .proj-card:hover .media-frame img { transform: none; } }
.detail-gallery button:hover,
.detail-gallery button.current { border-color: var(--domain-accent, var(--accent)); }

/* ── Sand & Ink inside the send overlay (light theme) ── */
.game-embed { background: #d8ecf8; }
.game-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.game-embed .game-hud { justify-content: flex-end; }
.game-embed .game-status { color: #3d4a55; }
.game-embed .game-status.ok { color: #00756f; }
.game-embed .game-status.err { color: #c8102e; }
.game-embed .game-quit { color: #1a1a1a; background: rgba(255,255,255,0.75); border-color: rgba(26,26,26,0.25); }
.game-embed-deliver {
  position: absolute; left: 50%; top: calc(50% + 112px);
  transform: translateX(-50%);
}
.game-embed-deliver[hidden] { display: none; }
.game-quit { white-space: nowrap; }
@media (max-width: 640px) {
  .game-embed .game-status { position: absolute; left: 16px; right: 16px; top: 42px; }
}

/* ═══════════════════════════════════════════════════════════════
   v7 ADDITIONS — doorway, colophon, skip link, small-screen fixes
   ═══════════════════════════════════════════════════════════════ */

/* Projects open through a doorway: a vertical slit that widens, the same
   move as the wordmark's threshold. One motion, used in one place. */
.detail-modal {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 0.3s var(--snap), opacity var(--fast), transform var(--med), visibility 0s 0.3s;
}
.detail-modal.open {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.46s var(--snap), opacity var(--fast), transform var(--med), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .detail-modal, .detail-modal.open { clip-path: none; transition: opacity var(--fast), visibility 0s; }
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 600;
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem;
  padding: 10px 14px; background: var(--text); color: var(--bg);
  text-decoration: none; transition: top var(--fast);
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a.nav-logo { color: inherit; text-decoration: none; }
a.nav-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h2.lc-label { font-weight: 400; }
.enquiry-form input:focus-visible, .enquiry-form textarea:focus-visible,
.enquiry-submit:focus-visible, .detail-close:focus-visible, .detail-link:focus-visible,
.lc-ov-close:focus-visible, .lc-cta:focus-visible, .ll-cta:focus-visible,
.detail-gallery button:focus-visible, .game-quit:focus-visible, .game-deliver:focus-visible,
.lc-contact-links a:focus-visible, .ll-contact-links a:focus-visible {
  outline: 2px solid var(--domain-accent, var(--accent)); outline-offset: 2px;
}

footer .colophon { opacity: 0.85; }

@media (max-width: 640px) {
  .lc-card { min-height: 0; max-width: none; flex-basis: 100%; }
  footer { flex-direction: column; gap: 6px; padding-bottom: 76px; }  /* room for the switcher */
}

.noscript {
  max-width: 640px; margin: calc(var(--nav-h) + 48px) auto 48px; padding: 0 24px;
  font-size: 1rem; line-height: 1.7;
}
.noscript h1 { font-family: 'Space Grotesk', sans-serif; font-weight: 300; font-size: 2.4rem; margin-bottom: 16px; }
.noscript h1 em { font-style: normal; font-weight: 700; color: var(--accent); }
.noscript a { color: var(--accent-ink); }
.detail-cover .media-frame { aspect-ratio: 21 / 9; border-radius: 8px; border: 1px solid var(--line); }
body[data-layout="ledger"] .detail-cover .media-frame { border-radius: 0; }
.detail-cover .media-frame.has-img { aspect-ratio: 16 / 9; }
