/* ergin3d — moody/cinematic dark portfolio
   ------------------------------------------------------------------ */
:root {
  --bg-0: #07080a;
  --bg-1: #0a0b0e;
  --surface: #101218;
  --surface-2: #161922;
  --text: #eef1f5;
  --muted: oklch(0.66 0.012 250);
  --muted-2: oklch(0.52 0.012 250);
  --line: oklch(0.30 0.012 250 / 0.5);
  --accent: #00e5ff;
  --glow: 1;
  --grain: 0.05;
  --ease: cubic-bezier(0.65, 0, 0.18, 1);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: #fff; }

/* ---- app shell ------------------------------------------------------ */
.app { position: fixed; inset: 0; overflow: hidden; }

.bg-aura {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 18% 12%, color-mix(in srgb, var(--accent) calc(9% * var(--glow)), transparent), transparent 70%),
    radial-gradient(50% 46% at 86% 88%, color-mix(in srgb, var(--accent) calc(7% * var(--glow)), transparent), transparent 72%),
    radial-gradient(70% 60% at 50% 50%, #0c0e13, #06070a 100%);
  animation: aura 26s var(--ease) infinite alternate;
}
@keyframes aura { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

.bg-grain {
  position: fixed; inset: 0; z-index: 45; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- chrome (wordmark / nav) --------------------------------------- */
.chrome {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 44px);
}
.app-inner .chrome {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-0) 92%, transparent), transparent);
  backdrop-filter: blur(8px);
}
.wordmark {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; padding: 8px 0;
}
.chrome-left { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); min-width: 0; }
.chrome-divider { width: 1px; height: 20px; background: var(--line); flex: none; }
.chrome-home .chrome-divider { background: rgba(255,255,255,0.25); }
.chrome-left .social { gap: 16px; flex-wrap: wrap; }
.chrome-home .chrome-left .social-link { color: #d6dde4; text-shadow: 0 1px 12px rgba(0,0,0,0.85); }
.chrome-home .chrome-left .social-link:hover { color: var(--accent); }
@media (max-width: 760px) {
  .chrome-divider, .chrome-left .social { display: none; }
}
.wordmark-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 calc(10px * var(--glow)) var(--accent), 0 0 calc(22px * var(--glow)) color-mix(in srgb, var(--accent) 60%, transparent);
}
.wordmark-text { font-weight: 600; }
.wordmark-3d { color: var(--accent); }
.topnav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.navlink {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 2px; position: relative; transition: color 0.25s;
}
.navlink::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px;
  background: var(--accent); transition: right 0.3s var(--ease);
}
.navlink:hover { color: var(--text); }
.navlink-on { color: var(--text); }
.navlink-on::after { right: 0; }

/* ---- work dropdown -------------------------------------------------- */
.nav-group { position: relative; display: flex; align-items: center; }
.nav-trigger { display: inline-flex; align-items: center; gap: 7px; }
.nav-caret {
  width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg); transition: transform 0.25s var(--ease); opacity: 0.7;
}
.nav-trigger-open .nav-caret { transform: translateY(1px) rotate(-135deg); opacity: 1; }
.nav-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  min-width: 210px; padding: 7px; display: flex; flex-direction: column; gap: 2px;
  background: color-mix(in srgb, var(--surface-2) 96%, transparent);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.02) inset;
  backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-menu-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.nav-menu-item {
  display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 10px 12px; border-radius: 8px;
  color: var(--muted); transition: background 0.2s, color 0.2s;
}
.nav-menu-item:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.nav-menu-item-on { color: var(--accent); }
.nav-menu-no {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2);
  min-width: 16px;
}
.nav-menu-item:hover .nav-menu-no, .nav-menu-item-on .nav-menu-no { color: var(--accent); }
.nav-menu-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-shadow: none; }
.chrome-home .nav-menu .nav-menu-item { text-shadow: none; }

/* ---- social / footer ----------------------------------------------- */
.social { display: flex; align-items: center; gap: 18px; pointer-events: auto; }
.social-link {
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.25s;
}
.social-link:hover { color: var(--accent); }
.foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px clamp(20px, 4vw, 44px); border-top: 1px solid var(--line);
}
.chrome-home .wordmark, .chrome-home .navlink { text-shadow: 0 1px 12px rgba(0,0,0,0.85); }
.foot-home {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 55; border: 0;
  justify-content: flex-end; text-align: right;
  padding: 22px clamp(20px, 4vw, 44px); pointer-events: none;
}
.foot-home .social-link, .foot-home .foot-copy { color: #fff; pointer-events: auto; text-shadow: 0 1px 12px rgba(0,0,0,0.9); }
.foot-copy { color: var(--muted-2); font-size: 11px; letter-spacing: 0.08em; }

/* ---- stage / phases ------------------------------------------------ */
.stage-home { position: absolute; inset: 0; z-index: 10; }
.stage-scroll {
  position: absolute; inset: 0; z-index: 10; overflow-y: auto; overflow-x: hidden;
  padding-top: 70px;
}
.stage { transition: opacity 0.34s var(--ease), transform 0.34s var(--ease); }
.phase-out { opacity: 0; transform: translateY(10px); }
.phase-in { opacity: 1; transform: translateY(0); }

/* ---- media (real images) ------------------------------------------ */
.media { position: absolute; inset: 0; overflow: hidden; }
.media-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-h { position: absolute; top: 0; bottom: 0; left: 50%; height: 100%; width: auto; max-width: none; transform: translateX(-50%); display: block; }
.media-h-left { left: 0; transform: none; }
.media-w { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }

/* ---- placeholders -------------------------------------------------- */
.ph { position: absolute; inset: 0; overflow: hidden; }
.ph-fill { position: absolute; inset: 0; }
.ph-stripes {
  position: absolute; inset: 0; opacity: 0.5;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 11px);
}
.ph-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: calc(0.5 * var(--glow));
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 18%, transparent), transparent);
  background-size: 100% 220px; background-repeat: no-repeat;
  animation: scan 4.5s linear infinite;
}
@keyframes scan { from { background-position: 0 -240px; } to { background-position: 0 120%; } }
.ph-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 16px; font-family: var(--mono);
}
.ph-cap-label { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
.ph-cap-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.ph-cap-tag {
  margin-top: 4px; font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px;
}

/* ---- gallery tiles ------------------------------------------------- */
.tile {
  position: relative; overflow: hidden; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line); transition: transform 0.4s var(--ease), border-color 0.3s;
}
.tile .ph { filter: brightness(0.82) saturate(0.95); transition: filter 0.4s; }
.tile-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,5,7,0.85)); }
.tile-meta { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 3px; }
.tile-title { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; }
.tile-sub { font-size: 11px; font-family: var(--mono); color: var(--muted); }
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.tile:hover .ph { filter: brightness(1.02) saturate(1.05); }

/* video (YouTube) tiles */
.vtile { display: block; text-decoration: none; color: var(--text); }
.vtile-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.82) saturate(0.98); transition: filter 0.4s; }
.vtile:hover .vtile-thumb { filter: brightness(1.04) saturate(1.06); }
.vtile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 22%, rgba(6,7,10,0.55)); backdrop-filter: blur(2px);
  border: 1.5px solid color-mix(in srgb, var(--accent) 75%, transparent);
  box-shadow: 0 0 calc(20px * var(--glow)) color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.vtile:hover .vtile-play { transform: translate(-50%, -50%) scale(1.12); background: color-mix(in srgb, var(--accent) 38%, rgba(6,7,10,0.5)); }
.vtile-tri { width: 0; height: 0; margin-left: 3px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* image tiles (3D modeling gallery) */
.itile { display: block; padding: 0; border: 1px solid var(--line); cursor: pointer; }
.itile-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.9) saturate(1); transition: filter 0.4s, transform 0.5s var(--ease); }
.itile:hover .itile-thumb { filter: brightness(1.04) saturate(1.05); transform: scale(1.04); }
.itile-expand {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(6,7,10,0.5); backdrop-filter: blur(3px); border: 1px solid rgba(255,255,255,0.18);
  opacity: 0; transform: translateY(-4px); transition: opacity 0.3s, transform 0.3s var(--ease);
}
.itile:hover .itile-expand { opacity: 1; transform: translateY(0); }

/* store buttons (hero) */
.store-row { display: flex; flex-direction: column; gap: 10px; }
.store-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.store-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 40px; padding: 11px 18px;
  color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  transition: border-color 0.3s, transform 0.25s var(--ease), background 0.3s;
}
.store-btn:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); background: var(--surface-2); }
.store-arrow { color: var(--accent); }

/* game-dev cards */
.gcards { display: flex; flex-direction: column; gap: 22px; }
.gcard {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: clamp(16px, 2vw, 22px); align-items: start;
}
.gcard-media {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); text-decoration: none; align-self: start;
}
.gcard-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transition: filter 0.4s, transform 0.5s var(--ease); }
.gcard-media:hover .gcard-thumb { filter: brightness(1.04); transform: scale(1.04); }
.gcard-body { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.gcard-head { display: flex; flex-direction: column; gap: 6px; }
.gcard-title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.01em; }
.gcard-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); }
.gcard-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.gcard-kicker { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.gcard-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.gcard-list li {
  position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--text); text-wrap: pretty;
}
.gcard-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.gcard-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.gcard-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 40px; padding: 11px 18px;
  color: var(--text); font-size: 13px; font-weight: 600; transition: border-color 0.3s, transform 0.25s var(--ease), background 0.3s;
}
.gcard-link:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.gcard-link-primary { background: var(--accent); color: #04050a; border-color: var(--accent); }
.gcard-link-primary:hover { box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) calc(45% * var(--glow)), transparent); }
.gcard-link-arrow { opacity: 0.8; }
.gcard-link-primary .gcard-link-arrow { opacity: 1; }
@media (max-width: 820px) {
  .gcard { grid-template-columns: 1fr; }
  .gcard-cols { grid-template-columns: 1fr; }
}

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(4,5,8,0.92); backdrop-filter: blur(8px); padding: clamp(16px, 4vw, 56px);
  animation: lbFade 0.25s var(--ease);
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: min(1180px, 92vw); max-height: 86vh; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lb-img {
  max-width: 100%; max-height: 76vh; object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6); border: 1px solid var(--line);
}
.lb-cap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lb-title { font-size: 15px; font-weight: 600; color: var(--text); }
.lb-sub { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lb-count { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-left: 4px; }
.lb-close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text); font-size: 18px;
  cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.lb-close:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text); font-size: 28px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.25s, border-color 0.25s;
}
.lb-nav:hover { background: rgba(255,255,255,0.12); border-color: var(--accent); }
.lb-prev { left: clamp(12px, 3vw, 36px); }
.lb-next { right: clamp(12px, 3vw, 36px); }
@media (max-width: 560px) {
  .lb-nav { width: 42px; height: 42px; font-size: 22px; }
}

/* ---- LANDING: bars ------------------------------------------------- */
.landing { position: absolute; inset: 0; }
.landing::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 30; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,6,9,0.6) 0%, transparent 100%);
}
.bars { display: flex; height: 100%; width: 100%; background: #000; }
.bar {
  position: relative; flex: 0 0 auto; width: 20vw; min-width: 0; height: 100%; overflow: hidden;
  border: 0; padding: 0; cursor: pointer; background: var(--bg-1);
  box-shadow: inset -1px 0 0 rgba(0,0,0,0.55);
  transition: filter 0.6s var(--ease);
}
/* width animates only after the user starts interacting — avoids a load-time
   width transition that some environments freeze at 0 (collapsing the strips). */
.bars.armed .bar { transition: width 0.7s var(--ease), filter 0.6s var(--ease); }
.bar-img { position: absolute; inset: 0; transition: filter 0.7s var(--ease); }
.bar-img .ph { filter: none; }
.bar { filter: brightness(0.82) saturate(0.95); }
.bar-active { filter: brightness(1.12) saturate(1.08); }
.bar-dim { filter: brightness(0.5) saturate(0.8); }
.bar-grad {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6,7,10,0.34) 0%, transparent 18%, transparent 60%, rgba(5,6,9,0.5) 82%, rgba(5,6,9,0.86) 100%);
}
.bar-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom; opacity: 0;
  box-shadow: 0 0 calc(16px * var(--glow)) var(--accent);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.bar-active .bar-line { transform: scaleY(1); opacity: 1; }
.bar-no {
  position: absolute; top: 92px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted);
  text-shadow: 0 1px 10px rgba(0,0,0,0.8); transition: color 0.4s;
}
.bar-active .bar-no { color: var(--accent); }

.bar-vlabel {
  position: absolute; left: 50%; bottom: 38px; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7); transition: opacity 0.4s var(--ease);
}
.bar-active .bar-vlabel { opacity: 0; }

.bar-hlabel {
  position: absolute; left: 0; right: 0; bottom: 34px; padding: 0 30px;
  display: flex; flex-direction: column; gap: 8px; text-align: left;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity 0.5s var(--ease) 0.05s, transform 0.55s var(--ease) 0.05s;
}
.bar-active .bar-hlabel { opacity: 1; transform: translateY(0); }
.bar-disc {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.bar-title { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,0.85); }
.bar-cta {
  margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text); display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 1px 12px rgba(0,0,0,0.9);
}
.bar-arrow { color: var(--accent); transition: transform 0.4s var(--ease); }
.bar-active .bar-arrow { transform: translateX(5px); }

/* horizontal idle mode — labels sized to fit narrow strips, grow when active */
.bar-lh .bar-hlabel { opacity: 1; transform: translateY(0); padding: 0 18px; }
.bar-lh .bar-title { font-size: clamp(15px, 1.25vw, 19px); transition: font-size 0.5s var(--ease); }
.bar-lh.bar-active .bar-title { font-size: clamp(26px, 3vw, 40px); }
.bar-lh .bar-cta { opacity: 0; max-height: 0; margin-top: 0; transition: opacity 0.4s var(--ease), max-height 0.4s var(--ease), margin-top 0.4s var(--ease); }
.bar-lh.bar-active .bar-cta { opacity: 1; max-height: 30px; margin-top: 6px; }
.bar-lh.bar-dim .bar-hlabel { opacity: 0.72; }

/* stacked (square / portrait) mode — strips become full-width horizontal rows */
.bars-vert { flex-direction: column; }
.bars-vert .bar { width: 100%; height: 25%; box-shadow: inset 0 -1px 0 rgba(0,0,0,0.55); }
.bars-vert.armed .bar { transition: height 0.7s var(--ease), filter 0.6s var(--ease); }
.bar-vert .bar-hlabel {
  top: 0; bottom: 0; opacity: 1; transform: none; pointer-events: none;
  justify-content: center; padding: 0 clamp(20px, 6vw, 44px); gap: 7px;
}
.bar-vert .bar-title { font-size: clamp(22px, 6vw, 34px); transition: font-size 0.5s var(--ease); }
.bar-vert.bar-active .bar-title { font-size: clamp(28px, 8vw, 44px); }
.bar-vert .bar-cta { opacity: 0; max-height: 0; margin-top: 0; transition: opacity 0.4s var(--ease), max-height 0.4s var(--ease), margin-top 0.4s var(--ease); }
.bar-vert.bar-active .bar-cta { opacity: 1; max-height: 30px; margin-top: 6px; }
.bar-vert .bar-line { top: 0; bottom: auto; left: 0; right: 0; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
.bar-vert.bar-active .bar-line { transform: scaleX(1); }
.bar-vert.bar-dim .bar-hlabel { opacity: 0.78; }

/* landing intro overlay */
.landing-intro {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 40; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  transform: translateY(-50%);
  transition: opacity 0.45s var(--ease), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.landing-intro-hidden { opacity: 0; }
.landing-intro::before {
  content: none;
}
.landing-scrim {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0;
  width: min(1100px, 96vw); height: 460px; pointer-events: none;
  background:
    radial-gradient(50% 50% at 50% 50%, rgba(3,4,6,0.92) 0%, rgba(3,4,6,0.82) 34%, rgba(3,4,6,0.45) 60%, rgba(3,4,6,0) 82%);
}
.landing-intro > :not(.landing-scrim) { position: relative; z-index: 1; }
.landing-name {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 1px 14px rgba(0,0,0,0.95); margin-bottom: 2px;
}
.landing-tag {
  margin: 0; font-size: clamp(18px, 2.4vw, 30px); font-weight: 500; letter-spacing: 0.02em;
  color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.85);
}
.landing-tag .sep { color: var(--accent); margin: 0 6px; }
.landing-hint {
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #cfd6dd; text-shadow: 0 1px 12px rgba(0,0,0,0.9); display: inline-flex; align-items: center; gap: 9px;
}
.hint-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1); } }

/* ---- inner page scaffold ------------------------------------------ */
.page { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 44px) 40px; }
.kicker, .section-kicker, .next-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.section-head { display: flex; align-items: center; gap: 18px; margin: 0 0 24px; }
.section-rule { flex: 1; height: 1px; background: var(--line); }

/* detail hero */
.detail-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(48px, 7vw, 88px); }
.detail-hero-img { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.detail-hero-img .ph { filter: brightness(0.92); }
.detail-hero-grad { position: absolute; inset: 0; background: radial-gradient(80% 80% at 50% 50%, transparent, rgba(5,6,9,0.5)); box-shadow: inset 0 0 80px color-mix(in srgb, var(--accent) calc(14% * var(--glow)), transparent); }
.detail-no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 16px; }
.detail-title { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.02em; line-height: 0.98; margin: 0 0 10px; }
.detail-disc { font-size: 16px; color: var(--accent); font-family: var(--mono); letter-spacing: 0.04em; margin-bottom: 22px; }
.detail-blurb { font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6; color: var(--muted); max-width: 46ch; margin: 0 0 26px; text-wrap: pretty; }
.detail-tools { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.tool-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text);
  border: 1px solid var(--line); border-radius: 3px; padding: 6px 11px; background: var(--surface);
}
.play-btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--text); color: #07080a; border: 0; border-radius: 40px; padding: 13px 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; transition: transform 0.25s var(--ease), box-shadow 0.3s;
}
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) calc(40% * var(--glow)), transparent); }
.play-tri { width: 0; height: 0; border-left: 11px solid #07080a; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* gallery */
.detail-section { margin-bottom: clamp(48px, 7vw, 84px); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* next disciplines */
.detail-next { border-top: 1px solid var(--line); padding-top: 30px; }
.next-kicker { display: block; margin-bottom: 18px; }
.next-row { display: flex; flex-wrap: wrap; gap: 12px; }
.next-pill {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 40px; padding: 11px 18px;
  color: var(--text); transition: border-color 0.3s, transform 0.25s var(--ease), background 0.3s;
}
.next-pill:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); background: var(--surface-2); }
.next-no { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.next-name { font-size: 14px; font-weight: 600; }
.next-arrow { color: var(--accent); }

/* ---- ABOUT --------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-bottom: clamp(48px, 7vw, 80px); }
.about-portrait { position: relative; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); position: sticky; top: 90px; }
.about-portrait-grad { position: absolute; inset: 0; box-shadow: inset 0 0 60px color-mix(in srgb, var(--accent) calc(12% * var(--glow)), transparent); }
.about-body .kicker { display: block; margin-bottom: 18px; }
.about-heading { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.06; margin: 0 0 26px; text-wrap: balance; }
.about-para { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.7; color: var(--muted); margin: 0 0 18px; max-width: 60ch; text-wrap: pretty; }
.about-stats { display: flex; gap: clamp(24px, 5vw, 56px); margin-top: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-k { font-size: clamp(28px, 4vw, 40px); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.stat-v { font-size: 12px; font-family: var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.about-stack { margin-bottom: clamp(48px, 7vw, 80px); }
.stack-grid { display: flex; flex-wrap: wrap; gap: 10px; }

/* about timeline */
.about-timeline { margin-bottom: clamp(48px, 7vw, 80px); }
.timeline { display: flex; flex-direction: column; }
.tl-item {
  display: grid; grid-template-columns: 110px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: 22px 0; border-top: 1px solid var(--line);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--mono); font-size: 15px; color: var(--accent); letter-spacing: 0.04em; padding-top: 2px; }
.tl-body { display: flex; flex-direction: column; gap: 6px; }
.tl-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tl-text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); max-width: 64ch; text-wrap: pretty; }
.stack-item {
  font-family: var(--mono); font-size: 12px; color: var(--text); padding: 9px 14px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--surface); transition: border-color 0.3s, color 0.3s;
}
.stack-item:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.about-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 36px;
}
.about-cta-text { font-size: clamp(20px, 3vw, 32px); font-weight: 500; letter-spacing: -0.01em; }
.big-btn, .submit-btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: var(--accent); color: #04050a; border: 0; border-radius: 40px; padding: 15px 26px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.25s var(--ease), box-shadow 0.3s;
}
.big-btn:hover, .submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 44px color-mix(in srgb, var(--accent) calc(50% * var(--glow)), transparent); }
.big-arrow { transition: transform 0.3s var(--ease); }
.big-btn:hover .big-arrow, .submit-btn:hover .big-arrow { transform: translateX(5px); }

/* ---- CONTACT ------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-left .kicker { display: block; margin-bottom: 20px; }
.contact-heading { font-size: clamp(30px, 4.4vw, 56px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 30px; }
.contact-email {
  display: inline-block; color: var(--accent); text-decoration: none; font-size: clamp(16px, 1.8vw, 22px);
  font-family: var(--mono); letter-spacing: 0.01em; padding-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  margin-bottom: 36px; transition: border-color 0.3s;
}
.contact-email:hover { border-color: var(--accent); }
.contact-socials { display: flex; flex-direction: column; gap: 2px; }
.contact-social {
  display: flex; align-items: center; justify-content: space-between; max-width: 320px;
  text-decoration: none; color: var(--text); padding: 16px 4px; border-top: 1px solid var(--line);
  transition: padding 0.3s var(--ease), color 0.3s;
}
.contact-social:last-child { border-bottom: 1px solid var(--line); }
.contact-social:hover { padding-left: 14px; color: var(--accent); }
.contact-social-name { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.contact-social-arrow { color: var(--muted); }
.contact-social:hover .contact-social-arrow { color: var(--accent); }

.contact-right { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 34px); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field-input {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 5px; color: var(--text);
  font-family: var(--font); font-size: 15px; padding: 13px 14px; transition: border-color 0.25s, box-shadow 0.25s;
}
.field-input::placeholder { color: var(--muted-2); }
.field-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field-area { resize: vertical; min-height: 96px; }
.submit-btn { justify-content: center; margin-top: 6px; }
.submit-off { opacity: 0.5; }
.contact-sent { text-align: center; padding: 30px 10px; }
.sent-check {
  width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: #04050a;
  background: var(--accent); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) calc(60% * var(--glow)), transparent);
}
.sent-title { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.sent-sub { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.ghost-btn {
  background: none; border: 1px solid var(--line); color: var(--text); border-radius: 40px;
  padding: 11px 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color 0.3s;
}
.ghost-btn:hover { border-color: var(--accent); }

/* ---- responsive ---------------------------------------------------- */
@media (max-width: 880px) {
  .detail-hero, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-portrait { position: relative; top: 0; max-width: 360px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .topnav { gap: 14px; }
}
@media (max-width: 640px) {
  .chrome { padding-left: 16px; padding-right: 16px; }
  .chrome-divider, .chrome-left .social { display: none; }
  .topnav { gap: 16px; }
  .navlink { font-size: 12px; }
  .foot { flex-direction: column; gap: 14px; align-items: flex-start; }
  .detail-hero-img { aspect-ratio: 16 / 10; }
  .about-stats { gap: 28px; }
  .tl-item { grid-template-columns: 72px 1fr; gap: 16px; }
  .about-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
  .landing-tag { font-size: 15px; }
}
