@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Bodoni+Moda:opsz,wght@6..96,400&family=Cormorant+Garamond:wght@400&family=Cutive+Mono&family=DM+Mono:wght@400;500&family=IBM+Plex+Mono:wght@400&family=Libre+Baskerville:wght@400&family=Manrope:wght@400;500&family=Newsreader:opsz,wght@6..72,400&family=Space+Grotesk:wght@400;500&family=Space+Mono:wght@400&family=Sora:wght@400&family=Unbounded:wght@400&display=swap');

:root {
  color-scheme: dark;
  --paper: #f5f4ef;
  --night: #0b0b0d;
  --ash: #8c8b90;
  --acid: #c7ff55;
  --ink: #111114;
  --inverse-skin: #62a3c4;
  --edge: rgba(245, 244, 239, 0.25);
  --bg-progress: 0;
  --scroll-progress: 0;
}

* { box-sizing: border-box; }
html, body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: color-mix(in srgb, var(--night) calc((1 - var(--bg-progress)) * 100%), var(--paper));
  color: var(--paper);
  font-family: 'Space Grotesk', Arial, sans-serif;
  transition: background-color 240ms linear, color 240ms linear;
}
body.is-light { color: var(--ink); }
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }

.site-shell { min-height: 100vh; position: relative; }

/* Fixed Topbar with Modern Glassmorphism */
.topbar {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  left: 0;
  padding: 14px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
  font: 500 11px/1 'DM Mono', monospace;
  letter-spacing: 0.12em;
  color: var(--paper);
  transition: color 180ms linear, background-color 180ms linear, border-color 180ms linear;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.85);
  border-bottom: 1px solid rgba(245, 244, 239, 0.08);
}
body.is-light .topbar {
  color: var(--ink);
  background: rgba(245, 244, 239, 0.88);
  border-bottom: 1px solid rgba(17, 17, 20, 0.08);
}
.topbar-left {
  align-items: center;
  display: flex;
  gap: 16px;
}
.topbar-clock {
  color: var(--acid);
  font-size: 10px;
  letter-spacing: 0.14em;
}
body.is-light .topbar-clock {
  color: var(--ink);
}
.topbar-status {
  align-items: center;
  color: var(--paper);
  display: inline-flex;
  font-size: 10px;
  gap: 6px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}
body.is-light .topbar-status {
  color: var(--ink);
}
.status-dot {
  animation: pulse-dot 1.6s infinite ease-in-out;
  background: var(--acid);
  border-radius: 50%;
  display: inline-block;
  height: 6px;
  width: 6px;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}
.topbar-center {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-self: center;
}
.topbar-nav-link {
  color: inherit;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.65;
  transition: opacity 120ms ease, color 120ms ease;
}
.topbar-nav-link:hover {
  color: var(--acid);
  opacity: 1;
}
body.is-light .topbar-nav-link:hover {
  color: var(--ink);
  opacity: 1;
  text-decoration: underline;
}
.topbar-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-self: end;
}
.topbar-audio-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(245, 244, 239, 0.2);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: 500 10px/1 'DM Mono', monospace;
  gap: 8px;
  letter-spacing: 0.12em;
  padding: 8px 12px;
  text-transform: uppercase;
  transition: all 140ms ease;
}
.topbar-audio-toggle:hover {
  border-color: var(--acid);
  color: var(--acid);
}
.topbar-audio-toggle.is-playing {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
  font-weight: 600;
}
body.is-light .topbar-audio-toggle {
  border-color: rgba(17, 17, 20, 0.25);
  color: var(--ink);
}
body.is-light .topbar-audio-toggle:hover {
  background: rgba(17, 17, 20, 0.08);
  border-color: var(--ink);
  color: var(--ink);
}
body.is-light .topbar-audio-toggle.is-playing {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
  font-weight: 600;
}
.audio-wave-icon {
  align-items: flex-end;
  display: inline-flex;
  gap: 2px;
  height: 10px;
  width: 10px;
}
.audio-wave-icon span {
  background: currentColor;
  height: 4px;
  width: 2px;
  transition: height 120ms ease;
}
.topbar-audio-toggle.is-playing .audio-wave-icon span:nth-child(1) { animation: audio-bounce 0.7s infinite ease-in-out; }
.topbar-audio-toggle.is-playing .audio-wave-icon span:nth-child(2) { animation: audio-bounce 0.7s infinite 0.2s ease-in-out; }
.topbar-audio-toggle.is-playing .audio-wave-icon span:nth-child(3) { animation: audio-bounce 0.7s infinite 0.4s ease-in-out; }
@keyframes audio-bounce {
  0%, 100% { height: 3px; }
  50% { height: 10px; }
}
.tattoo-cta {
  background: var(--acid);
  border: 1px solid var(--acid);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.11em;
  padding: 9px 14px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
  white-space: nowrap;
}
.tattoo-cta:hover, .tattoo-cta:focus-visible {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  outline: none;
  transform: translateY(-1px);
}
body.is-light .tattoo-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--acid);
}
body.is-light .tattoo-cta:hover, body.is-light .tattoo-cta:focus-visible {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--ink);
}

/* Scroll Sequence */
.sequence { height: 178vh; position: relative; }
.sequence-sticky {
  background: color-mix(in srgb, var(--night) calc((1 - var(--bg-progress)) * 100%), var(--paper));
  height: 100vh;
  isolation: isolate;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.hero-wave { filter: invert(var(--bg-progress)) contrast(1.05); height: 100%; inset: 0; opacity: 0.72; pointer-events: none; position: absolute; transition: filter 120ms linear; width: 100%; z-index: -1; }
.hero-wave.is-fallback { background: radial-gradient(ellipse at 58% 74%, #777 0%, #29292e 28%, #111115 57%, #070709 82%); }
.sequence-sticky::after { background: linear-gradient(90deg, rgba(11,11,13,0.7) 0%, rgba(11,11,13,0.18) 46%, rgba(11,11,13,0.08) 72%, rgba(11,11,13,0.32) 100%); content: ''; inset: 0; opacity: calc(1 - var(--bg-progress)); pointer-events: none; position: absolute; z-index: 0; }
.sequence-sticky::before {
  background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 33%, rgba(255,255,255,0.025) 72%, transparent);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}
.micro-grid {
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 9vw 9vw;
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  opacity: 0.35;
  position: absolute;
}
.ring-field { inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.legacy-orbit { left: 29%; position: absolute; top: 52%; transform: translate(-50%, -50%); width: clamp(170px, 23vw, 330px); }
.legacy-orbit-right { left: 73%; }
.legacy-orbit > span { animation: ring-clock var(--spin-duration, 22s) linear infinite; animation-delay: var(--spin-delay, 0s); aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; display: block; opacity: 0.24; position: relative; will-change: transform; }
.legacy-orbit-right > span { animation-direction: reverse; }
.legacy-orbit > span::before { border: 1px dashed currentColor; border-radius: 50%; content: ''; inset: 13%; opacity: 0.7; position: absolute; }
.legacy-orbit > span::after { background: conic-gradient(from 0deg, transparent 0 11%, currentColor 11% 11.5%, transparent 11.5% 24%, currentColor 24% 24.5%, transparent 24.5% 49%, currentColor 49% 49.5%, transparent 49.5% 74%, currentColor 74% 74.5%, transparent 74.5%); border: 1px solid currentColor; border-radius: 50%; content: ''; inset: 27%; opacity: 0.62; position: absolute; }
.ring { left: 4%; position: absolute; top: 88%; transform: translate(-50%, -50%); width: clamp(118px, 22vw, 320px); }
.ring img { display: block; filter: invert(1) contrast(1.1); opacity: 0.19; width: 100%; animation: ring-clock var(--spin-duration, 18s) linear infinite; animation-delay: var(--spin-delay, 0s); will-change: transform; }
.ring:nth-child(even) img { animation-direction: reverse; opacity: 0.15; }
.ring-02 { width: clamp(86px, 14vw, 205px); }
.ring-03 { width: clamp(58px, 8.5vw, 126px); }
.ring-04 { left: 96%; width: clamp(118px, 22vw, 320px); }
.ring-05 { left: 96%; width: clamp(86px, 14vw, 205px); }
.ring-06 { left: 96%; width: clamp(58px, 8.5vw, 126px); }
body.is-light .ring img { filter: none; }
@keyframes ring-clock { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.sequence-copy { left: 7.5vw; position: absolute; top: 22vh; z-index: 2; }
.eyebrow, .field-index, .field-note, .archive-head, .footer, .card-label {
  font: 500 10px/1.4 'DM Mono', monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sequence-copy h1 {
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: clamp(54px, 9.5vw, 160px);
  font-weight: 400;
  letter-spacing: -0.095em;
  line-height: 0.79;
  margin: 18px 0 22px -0.08em;
  position: relative;
  text-transform: uppercase;
}
.hero-title .character-font { display: inline-block; font-style: normal; font-weight: 400; transition: color 180ms ease, opacity 180ms ease; }
.hero-title .character-font--0 { font-family: 'Space Grotesk', Arial, sans-serif; }
.hero-title .character-font--1 { font-family: 'Bodoni Moda', Georgia, serif; }
.hero-title .character-font--2 { font-family: 'DM Mono', monospace; }
.hero-title .character-font--3 { font-family: 'IBM Plex Mono', monospace; }
.hero-title .character-font--4 { font-family: 'Manrope', Arial, sans-serif; }
.hero-title .character-font--5 { font-family: 'Bebas Neue', Impact, sans-serif; }
.hero-title .character-font--6 { font-family: 'Cormorant Garamond', Georgia, serif; }
.hero-title .character-font--7 { font-family: 'Cutive Mono', monospace; }
.hero-title .character-font--8 { font-family: 'Libre Baskerville', Georgia, serif; }
.hero-title .character-font--9 { font-family: 'Newsreader', Georgia, serif; }
.hero-title .character-font--10 { font-family: 'Space Mono', monospace; }
.hero-title .character-font--11 { font-family: 'Sora', Arial, sans-serif; }
.hero-title .character-font--12 { font-family: 'Unbounded', Arial, sans-serif; }
.sequence-copy p { font: 10px/1.5 'DM Mono', monospace; letter-spacing: 0.1em; margin: 0; }

.stack { inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.sigil { left: 50%; margin: 0; position: absolute; top: 50%; transform-origin: center center; transition: filter 240ms linear; will-change: transform; }
.sigil img { display: block; height: 100%; object-fit: contain; width: 100%; }
.sigil figcaption { bottom: -22px; font: 10px/1 'DM Mono', monospace; left: 50%; letter-spacing: 0.12em; opacity: 0; position: absolute; transform: translateX(-50%); white-space: nowrap; }
.sigil-01 { height: min(79vh, 900px); width: min(29vw, 332px); filter: invert(1) contrast(1.15); }
.sigil-02 { height: min(57vh, 650px); width: min(44vw, 480px); filter: invert(1) contrast(1.15); }
.sigil-03 { height: min(56vh, 630px); width: min(42vw, 500px); filter: invert(1) contrast(1.15); }
.sigil-04 { height: min(65vh, 740px); width: min(39vw, 430px); filter: invert(1) contrast(1.15); }
body.is-light .sigil { filter: none; }

.sequence-meta { align-items: center; bottom: 34px; display: flex; font: 10px/1 'DM Mono', monospace; gap: 13px; left: 50%; letter-spacing: 0.13em; position: absolute; transform: translateX(-50%); z-index: 5; }
.meta-line { background: currentColor; height: 1px; opacity: 0.35; width: 32px; }
.scroll-rail { background: currentColor; bottom: 0; opacity: 0.28; position: absolute; right: 28px; top: 0; width: 1px; z-index: 5; }
.scroll-rail span { background: var(--acid); height: 100%; left: -1px; position: absolute; top: 0; transform-origin: top; width: 3px; }

/* Image Interlude */
.image-interlude { background: var(--paper); color: var(--ink); padding: 5vw 7.5vw 6vw; }
.image-interlude-head { border-top: 1px solid rgba(17,17,20,0.28); display: flex; font: 500 10px/1.4 'DM Mono', monospace; justify-content: space-between; letter-spacing: 0.16em; padding-top: 13px; text-transform: uppercase; }
.image-interlude-grid { display: grid; gap: 2.2vw; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 3vw auto 0; max-width: 1320px; }
.image-interlude-card { min-width: 0; }
.image-interlude .card-art { height: min(31vw, 410px); }
.image-interlude .card-art-04 { height: min(31vw, 410px); }

/* Matrix Zone (Field / 02) */
.matrix-zone {
  background: var(--paper);
  color: var(--ink);
  min-height: clamp(500px, 38vw, 680px);
  padding: 80px 7.5vw 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#matrix { contain: strict; inset: 0; opacity: 0.65; position: absolute; z-index: 0; }
.matrix-wash { background: radial-gradient(circle at 50% 50%, rgba(245,244,239,0.05), rgba(245,244,239,0.55) 75%, var(--paper) 100%); inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.matrix-sigil {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.82;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}
.field-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 380px;
  position: relative;
  width: 100%;
  z-index: 3;
}
.field-index { position: relative; margin-bottom: 24px; }
.field-copy {
  max-width: min(44vw, 480px);
  position: relative;
  text-align: left;
}
.field-copy h2 {
  font-family: 'DM Mono', monospace;
  font-size: clamp(34px, 4.8vw, 70px);
  font-weight: 400;
  letter-spacing: -0.095em;
  line-height: 0.88;
  margin: 12px 0 16px;
  text-transform: uppercase;
}
.field-copy h2 .display-alt { font-family: 'Bodoni Moda', Georgia, serif; letter-spacing: -0.11em; }
.field-copy p { font: 11px/1.65 'DM Mono', monospace; letter-spacing: 0.08em; }
.field-note { margin-top: 28px; position: relative; }

/* Smallweb Visitor Counter Strip */
.visitor-strip {
  background: #09090b;
  border-top: 1px solid rgba(245, 244, 239, 0.14);
  border-bottom: 1px solid rgba(245, 244, 239, 0.14);
  color: var(--paper);
  padding: 10px 7.5vw;
  position: relative;
  z-index: 10;
}
.visitor-strip-inner {
  align-items: center;
  display: flex;
  font: 500 9px/1 'DM Mono', monospace;
  gap: 16px;
  justify-content: space-between;
  letter-spacing: 0.14em;
  margin: 0 auto;
  max-width: 1320px;
  text-transform: uppercase;
}
.visitor-meta {
  align-items: center;
  display: flex;
}
.visitor-label {
  color: rgba(245, 244, 239, 0.7);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.visitor-counter {
  align-items: center;
  display: inline-flex;
  gap: 3px;
}
.digit-box {
  background: #000;
  border: 1px solid rgba(245, 244, 239, 0.22);
  border-radius: 2px;
  color: var(--acid);
  display: inline-flex;
  font: 700 12px/1 'DM Mono', monospace;
  letter-spacing: 0;
  padding: 3px 6px;
  transition: transform 120ms ease, color 120ms ease;
}
.digit-box:hover {
  border-color: var(--acid);
  transform: translateY(-1px);
}
.visitor-sub {
  align-items: center;
  color: rgba(245, 244, 239, 0.55);
  display: inline-flex;
  font-size: 9px;
  letter-spacing: 0.14em;
}

/* Tattoo Reveal (Field / 03) */
.tattoo-reveal {
  --section-spot-x: 50%;
  --section-spot-y: 50%;
  background: #000;
  color: var(--inverse-skin);
  cursor: crosshair;
  isolation: isolate;
  min-height: 0;
  overflow: hidden;
  padding: 80px 7.5vw 4vw;
  position: relative;
}
.section-peephole {
  display: none;
}
.reveal-head {
  border-top: 1px solid rgba(245,244,239,0.3);
  display: flex;
  font: 500 10px/1.4 'DM Mono', monospace;
  justify-content: space-between;
  letter-spacing: 0.16em;
  padding-top: 13px;
  text-transform: uppercase;
}
.reveal-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 2vw;
  margin: 3vw auto 0;
  max-width: 1320px;
  min-height: clamp(520px, 48vw, 640px);
  position: relative;
}
.reveal-copy {
  padding-top: 0;
  pointer-events: none;
  position: relative;
  text-align: center;
  width: min(24vw, 320px);
  z-index: 4;
}
.reveal-copy h2 {
  font-family: 'Unbounded', Arial Black, sans-serif;
  font-size: clamp(32px, 4.4vw, 66px);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.88;
  margin: 15px 0 18px;
  text-transform: uppercase;
}
.reveal-copy h2 .display-alt { font-family: 'Cormorant Garamond', Georgia, serif; letter-spacing: -0.12em; }
.reveal-copy p { font: 10px/1.6 'DM Mono', monospace; letter-spacing: 0.1em; }
.reveal-cta {
  align-items: center;
  background: var(--inverse-skin);
  color: var(--ink);
  display: inline-flex;
  font: 500 clamp(12px, 1.2vw, 16px)/1 'DM Mono', monospace;
  letter-spacing: 0.12em;
  margin-top: 36px;
  padding: 18px 24px;
  pointer-events: auto;
  text-transform: uppercase;
  transition: background-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}
.reveal-cta:hover, .reveal-cta:focus-visible {
  background: var(--paper);
  box-shadow: -5px 5px 0 var(--acid);
  color: var(--ink);
  outline: none;
  transform: translate(4px, -4px);
}
.tattoo-viewer {
  --spot-x: 50%;
  --spot-y: 50%;
  aspect-ratio: 1760 / 2432;
  background: #000;
  overflow: visible;
  position: relative;
  width: min(25vw, 360px);
}
.tattoo-viewer--inverse {
  transform: translateY(-24px);
}
.tattoo-viewer:focus-visible { outline: 1px solid var(--acid); outline-offset: 8px; }
.tattoo-photo {
  backface-visibility: hidden;
  height: 100%;
  inset: 0;
  object-fit: contain;
  object-position: center top;
  position: absolute;
  transform: translateZ(0);
  width: 100%;
}
.tattoo-before { filter: grayscale(1) contrast(1.1) brightness(0.88); z-index: 1; }
.tattoo-after { filter: grayscale(1) contrast(1.15) brightness(0.95); z-index: 1; }
.tattoo-after-window {
  backface-visibility: hidden;
  clip-path: circle(0 at var(--spot-x) var(--spot-y));
  inset: 0;
  position: absolute;
  transform: translateZ(0);
  transition: none;
  will-change: clip-path;
  z-index: 3;
}
.is-active .tattoo-after-window { clip-path: circle(min(18vw, 145px) at var(--spot-x) var(--spot-y)); }
.tattoo-after-window .tattoo-after { filter: invert(1) contrast(1.18) saturate(1.2) brightness(0.95); }

.tattoo-before-window {
  backface-visibility: hidden;
  clip-path: circle(0 at var(--spot-x) var(--spot-y));
  inset: 0;
  position: absolute;
  transform: translateZ(0);
  transition: none;
  will-change: clip-path;
  z-index: 3;
}
.is-active .tattoo-before-window { clip-path: circle(min(18vw, 145px) at var(--spot-x) var(--spot-y)); }
.tattoo-before-window .tattoo-before { filter: invert(1) contrast(1.15) saturate(1.2) brightness(0.95); }
.tattoo-viewer--inverse .tattoo-before-window { z-index: 10; }
.tattoo-ascii { display: none; inset: 0; pointer-events: none; position: absolute; width: 100%; z-index: 5; }
.tattoo-viewer--inverse .tattoo-before-window { z-index: 10; }
.tattoo-ascii { display: none; inset: 0; pointer-events: none; position: absolute; width: 100%; z-index: 5; }
.reveal-tag {
  bottom: 16px;
  color: var(--inverse-skin);
  font: 10px/1 'DM Mono', monospace;
  left: 16px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  pointer-events: none;
  position: absolute;
  z-index: 8;
}

/* Model Lab (Field / 04) */
.model-lab {
  background: var(--night);
  color: var(--paper);
  min-height: clamp(640px, 70vh, 780px);
  overflow: hidden;
  padding: 80px 7.5vw 3vw;
  position: relative;
  transition: min-height 360ms ease;
}
.model-lab[data-active-area] { min-height: 100vh; }
.model-lab::before {
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 7vw 7vw;
  content: '';
  inset: 0;
  mask-image: radial-gradient(circle at 68% 48%, black, transparent 72%);
  pointer-events: none;
  position: absolute;
}
.model-lab-head, .model-credit {
  border-top: 1px solid rgba(245,244,239,0.28);
  display: flex;
  font: 500 10px/1.4 'DM Mono', monospace;
  justify-content: space-between;
  letter-spacing: 0.16em;
  padding-top: 13px;
  position: relative;
  text-transform: uppercase;
  z-index: 4;
}
.model-copy {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(24vw, 320px);
  z-index: 4;
}
.model-copy h2 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(32px, 4.2vw, 62px);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.88;
  margin: 14px 0 16px;
  text-transform: uppercase;
}
.model-copy h2 .display-alt { font-family: 'Newsreader', Georgia, serif; letter-spacing: -0.12em; }
.model-copy p { color: var(--inverse-skin); font: 10px/1.6 'DM Mono', monospace; letter-spacing: 0.1em; }
.model-stage {
  aspect-ratio: 1 / 1.08;
  cursor: grab;
  margin: 0;
  max-height: 46vh;
  min-height: 290px;
  position: absolute;
  right: 7.5vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(27vw, 380px);
  z-index: 2;
}
.model-stage.is-dragging { cursor: grabbing; }
#tattoo-model { display: block; height: 100%; outline: none; touch-action: pan-y; width: 100%; }
.model-loader { font: 500 10px/1 'DM Mono', monospace; left: 50%; letter-spacing: 0.16em; position: absolute; top: 50%; transform: translate(-50%, -50%); transition: opacity 240ms ease; }
.model-stage.is-ready .model-loader { opacity: 0; }
.model-index { color: rgba(245,244,239,0.06); font: 600 clamp(130px, 21vw, 330px)/1 'Space Grotesk', sans-serif; left: 50%; letter-spacing: -0.12em; pointer-events: none; position: absolute; top: 50%; transform: translate(-50%, -50%); z-index: -1; }
.body-area-control {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, max-content);
  left: -58vw;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.body-area-button {
  align-items: center;
  background: var(--inverse-skin);
  border: 1px solid var(--inverse-skin);
  color: var(--ink);
  display: flex;
  font: 500 10px/1 'DM Mono', monospace;
  gap: 20px;
  justify-content: space-between;
  letter-spacing: 0.14em;
  min-width: 108px;
  padding: 12px 13px;
  text-transform: uppercase;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.body-area-button:hover, .body-area-button:focus-visible {
  background: var(--acid);
  border-color: var(--acid);
  outline: none;
  transform: translate(3px, -3px);
}
.body-area-button[aria-expanded='true'] { background: var(--paper); border-color: var(--paper); }
.body-area-button:disabled { background: transparent; border-color: rgba(245,244,239,0.22); color: rgba(245,244,239,0.36); cursor: not-allowed; }
.model-credit { bottom: 24px; left: 7.5vw; position: absolute; right: 7.5vw; }
.model-credit a { transition: color 140ms ease; }
.model-credit a:hover, .model-credit a:focus-visible { color: var(--acid); outline: none; }
.placement-panel {
  background: rgba(17,17,20,0.95);
  border: 1px solid rgba(245,244,239,0.34);
  bottom: 28px;
  color: var(--paper);
  left: 7.5vw;
  opacity: 0;
  padding: 16px;
  pointer-events: none;
  position: absolute;
  right: 7.5vw;
  transform: translateY(24px);
  transition: opacity 220ms ease, transform 220ms ease;
  visibility: hidden;
  z-index: 6;
  max-width: calc(100vw - 15vw);
}
.placement-panel[aria-hidden='false'] { opacity: 1; pointer-events: auto; transform: translateY(0); visibility: visible; }
.placement-panel-head { align-items: center; border-bottom: 1px solid rgba(245,244,239,0.28); display: flex; font: 500 10px/1 'DM Mono', monospace; justify-content: space-between; letter-spacing: 0.16em; padding-bottom: 14px; text-transform: uppercase; }
.placement-panel-close { background: transparent; border: 1px solid rgba(245,244,239,0.5); color: var(--paper); font: inherit; letter-spacing: inherit; padding: 9px 11px; text-transform: uppercase; }
.placement-panel-close:hover, .placement-panel-close:focus-visible { background: var(--acid); border-color: var(--acid); color: var(--ink); outline: none; }
.placement-gallery-grid { display: grid; gap: 14px; grid-auto-columns: minmax(130px, 1fr); grid-auto-flow: column; grid-template-columns: none; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.placement-gallery-item { margin: 0; min-width: 0; }
.placement-gallery-item img { display: block; height: 150px; object-fit: cover; scroll-snap-align: start; width: 100%; }
.placement-gallery-item figcaption { border-bottom: 1px solid rgba(245,244,239,0.3); font: 500 9px/1 'DM Mono', monospace; letter-spacing: 0.13em; padding: 11px 0; text-transform: uppercase; }

/* Interactive 3D Model Connector Line & Pointer */
.model-connector-svg {
  inset: 0;
  height: 100%;
  opacity: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  transition: opacity 240ms ease;
  width: 100%;
  z-index: 12;
}
.model-lab[data-active-area] .model-connector-svg {
  opacity: 1;
}
.connector-glow-line { display: none; }
.connector-main-line {
  animation: connector-dash 1.4s linear infinite;
  fill: none;
  stroke: var(--acid);
  stroke-dasharray: 6 4;
  stroke-linecap: round;
  stroke-width: 1.8px;
}
@keyframes connector-dash {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}
.connector-origin-dot {
  fill: var(--acid);
  stroke: var(--ink);
  stroke-width: 1.5px;
}
.connector-target-beacon {
  animation: beacon-pulse 1.5s ease-out infinite;
  fill: none;
  stroke: var(--acid);
  stroke-width: 1.8px;
}
@keyframes beacon-pulse {
  0% { r: 3px; opacity: 1; stroke-width: 2px; }
  100% { r: 16px; opacity: 0; stroke-width: 0.5px; }
}

/* Archive */
.archive { background: var(--paper); color: var(--ink); min-height: 100vh; padding: 7vw 7.5vw 8vw; }
.archive-head { border-top: 1px solid rgba(17,17,20,0.28); display: flex; justify-content: space-between; padding-top: 13px; }
.archive-grid { align-items: start; display: grid; gap: 2.2vw; grid-template-columns: 1.18fr 0.82fr 0.82fr; margin-top: 4vw; }
.archive-card { min-width: 0; }
.archive-card-large { grid-row: span 2; }
.card-art { align-items: center; background: #ebeae5; display: flex; height: 35vw; justify-content: center; overflow: hidden; position: relative; }
.card-art::before { border: 1px solid rgba(17,17,20,0.23); content: ''; inset: 10px; pointer-events: none; position: absolute; }
.card-art img { height: 92%; object-fit: contain; width: 88%; }
.card-art-01 img { filter: none; height: 102%; }
.card-art-02 img { height: 92%; }
.card-art-04 { height: 22vw; }
.card-art-05, .card-art-06 { height: 22vw; }
.card-art-05 img { height: 94%; }
.card-art-06 img { height: 96%; }
.card-label { border-bottom: 1px solid rgba(17,17,20,0.3); display: flex; justify-content: space-between; padding: 13px 0; }
.footer { background: var(--ink); color: var(--paper); display: flex; justify-content: space-between; padding: 20px 28px; }

/* Tablet Breakpoint (701px to 1024px) */
@media (min-width: 701px) and (max-width: 1024px) {
  .topbar { padding: 16px 20px; font-size: 10px; }
  .topbar-actions { gap: 14px; }
  .tattoo-cta { padding: 8px 12px; font-size: 10px; }
  .sequence-copy { left: 5vw; top: 18vh; }
  .sequence-copy h1 { font-size: 13vw; }
  .matrix-zone { min-height: 520px; padding: 75px 5vw 36px; position: relative; }
  .matrix-sigil {
    height: auto;
    width: 100%;
    inset: auto;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-30%);
    position: absolute;
    object-fit: contain;
    opacity: 0.88;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
  }
  .field-copy { max-width: 44vw; }
  .field-copy h2 { font-size: 6.2vw; }
  .tattoo-reveal { padding: 75px 5vw 5vw; }
  .reveal-layout { min-height: 480px; gap: 16px; }
  .tattoo-viewer { width: min(30vw, 290px); }
  .reveal-copy { width: min(28vw, 240px); }
  .reveal-copy h2 { font-size: 5.5vw; }
  .reveal-cta { font-size: 11px; padding: 14px 18px; margin-top: 24px; }
  .model-lab { min-height: 820px; padding: 75px 5vw 36px; display: flex; flex-direction: column; justify-content: space-between; }
  .model-lab[data-active-area] { min-height: 115vh; }
  .model-copy { position: relative; left: auto; top: auto; transform: none; width: 100%; text-align: center; margin: 12px 0 16px; }
  .model-copy h2 { font-size: 5.8vw; margin: 10px 0 12px; }
  .model-stage { position: relative; right: auto; top: auto; transform: none; width: min(54vw, 360px); height: 350px; margin: 0 auto; }
  .body-area-control { position: relative; left: auto; top: auto; transform: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; width: 100%; max-width: 720px; margin: 20px auto 0; }
  .body-area-button { min-width: 0; padding: 10px 6px; justify-content: center; gap: 6px; font-size: 9px; }
  .model-credit { position: relative; bottom: auto; left: auto; right: auto; margin-top: 28px; }
  .placement-panel { left: 5vw; right: 5vw; max-width: calc(100vw - 10vw); }
  .topbar { padding: 12px 20px; }
  .topbar-center { gap: 10px; }
  .topbar-nav-link { font-size: 9px; }
  .topbar-clock { display: none; }
}

/* Mobile Breakpoint (<= 700px) */
@media (max-width: 700px) {
  .topbar { padding: 12px 14px; font-size: 10px; display: flex; justify-content: space-between; }
  .topbar-center { display: none; }
  .topbar-clock, .topbar-status { display: none; }
  .topbar-actions { gap: 8px; }
  .topbar-audio-toggle { font-size: 8px; padding: 6px 8px; gap: 4px; }
  .tattoo-cta { font-size: 9px; padding: 8px 10px; }
  .sequence { height: 160vh; }
  .sequence-copy { left: 16px; top: 14vh; z-index: 5; }
  .sequence-copy h1 { font-size: 15vw; }
  .sequence-copy p { opacity: 0.85; }
  .sigil-01 { height: 52vh; width: 52vw; }
  .sigil-02 { height: 38vh; width: 62vw; }
  .sigil-03 { height: 38vh; width: 64vw; }
  .sigil-04 { height: 42vh; width: 58vw; }
  .ring { left: 2%; top: 85%; width: 46vw; }
  .legacy-orbit { left: 28%; top: 51%; width: 48vw; }
  .legacy-orbit-right { left: 72%; }
  .ring-02 { left: 2%; width: 29vw; }
  .ring-03 { left: 2%; width: 17vw; }
  .ring-04 { left: 98%; width: 46vw; }
  .ring-05 { left: 98%; width: 29vw; }
  .ring-06 { left: 98%; width: 17vw; }
  .sequence-meta { bottom: 20px; font-size: 9px; }
  .scroll-rail { right: 15px; }

  .image-interlude { padding: 12vw 16px 13vw; }
  .image-interlude-head { font-size: 9px; }
  .image-interlude-grid { gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 8vw; }
  .image-interlude-card:nth-child(3) { display: none; }
  .image-interlude .card-art, .image-interlude .card-art-04 { height: 58vw; }

  /* Mobile Matrix Zone */
  .matrix-zone {
    min-height: 480px;
    padding: 60px 16px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }
  .field-inner {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    z-index: 4;
  }
  .field-index { font-size: 9px; margin-bottom: 6px; }
  .field-copy { max-width: 100%; position: relative; z-index: 4; margin-top: 0; }
  .field-copy h2 { font-size: 10vw; margin: 6px 0 8px; }
  .field-copy p { font-size: 9px; line-height: 1.5; font-weight: 500; }
  .matrix-sigil {
    height: 175px;
    width: 100%;
    inset: auto;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-8%);
    position: absolute;
    object-fit: contain;
    opacity: 0.88;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 2;
  }
  .field-note { font-size: 8px; margin-top: auto; padding-top: 12px; z-index: 4; }

  /* Mobile Tattoo Reveal */
  .tattoo-reveal { min-height: 0; padding: 70px 16px 14vw; }
  .reveal-head { font-size: 9px; }
  .reveal-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 20px;
    min-height: 0;
    padding-top: 0;
  }
  .reveal-copy { position: relative; left: auto; top: auto; transform: none; width: 100%; }
  .reveal-copy h2 { font-size: 13vw; margin: 10px 0 12px; }
  .reveal-cta { font-size: 11px; margin-top: 20px; padding: 16px 20px; }
  .tattoo-viewer { aspect-ratio: 1760 / 2432; left: auto; margin: 0 auto; position: relative; right: auto; top: auto; transform: none; width: 100%; max-width: 340px; }
  .tattoo-viewer--inverse { display: none; }
  .tattoo-after-window, .is-active .tattoo-after-window { clip-path: none; opacity: var(--mobile-photo-reveal, 0); }
  .tattoo-after { filter: invert(1) contrast(1.08) saturate(0.78); }
  .tattoo-ascii { display: block; height: 100%; opacity: var(--mobile-ascii-opacity, 1); }
  .section-peephole { display: none; }

  /* Mobile Model Lab */
  .model-lab { min-height: 0; padding: 70px 16px 36px; display: flex; flex-direction: column; }
  .model-lab[data-active-area] { min-height: 120vh; }
  .model-lab-head, .model-credit { font-size: 8px; }
  .model-copy { position: relative; left: auto; top: auto; transform: none; width: 100%; text-align: center; margin: 10px 0 16px; }
  .model-copy, .model-lab-head { pointer-events: none; }
  .model-copy h2 { font-size: 12vw; margin: 8px 0 10px; }
  .model-stage {
    aspect-ratio: 1 / 1.08;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    margin: 0 auto;
    min-height: 0;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 320px;
  }
  .body-area-control {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 340px;
    margin: 20px auto 0;
  }
  .body-area-button {
    gap: 4px;
    min-width: 0;
    padding: 10px 8px;
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    font-size: 9px;
    justify-content: center;
  }
  .model-credit { bottom: auto; left: auto; margin-top: 28px; position: relative; right: auto; }
  .placement-panel { bottom: 12px; left: 12px; right: 12px; max-width: calc(100vw - 24px); }
  .placement-gallery-grid { gap: 10px; grid-auto-columns: 58vw; }
  .placement-gallery-item img { height: 45vw; }

  /* Mobile Archive */
  .archive { padding: 14vw 16px 16vw; }
  .archive-head { font-size: 9px; }
  .archive-grid { gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 10vw; }
  .archive-card-large { grid-row: span 1; }
  .card-art, .card-art-04, .card-art-05, .card-art-06 { height: 58vw; min-height: 0; }
  .card-label { font-size: 8px; }
  .footer { font-size: 8px; padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
