/* ============================================================
   Abhishek Jha · classic portfolio (uxabhi.com/classic)
   Type: Satoshi (text) + Silkscreen (pixel accents)
   Colour: a blue ramp, plus one accent the visitor picks ("find your match")
   ============================================================ */
:root {
  --b0: #04106b; --b1: #0a24e0; --b2: #2350ff; --b3: #4f7dff; --b4: #8eb0ff; --b5: #c7d7ff; --b6: #e9efff;
  --paper: #f5f7fc; --ink: #0a0f2c; --ink-2: #4a5170; --line: rgba(10, 36, 224, .07);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --grad-px: linear-gradient(90deg, var(--b0) 0 12.5%, var(--b1) 12.5% 25%, var(--b2) 25% 37.5%, var(--b3) 37.5% 50%,
      var(--a) 50% 62.5%, var(--b4) 62.5% 75%, var(--b5) 75% 87.5%, #fff 87.5% 100%);
  --grad-smooth: linear-gradient(135deg, var(--b0), var(--b1) 30%, var(--b3) 70%, var(--b5));
}
/* the accent: orange by default, the visitor can switch it */
[data-accent="orange"] { --a: #ff6b1a; --a-2: #ffe0cc; --a-ink: #2a1200; }
[data-accent="lime"]   { --a: #8fd61f; --a-2: #ecf9d2; --a-ink: #182600; }
[data-accent="coral"]  { --a: #ff5c72; --a-2: #ffdbe0; --a-ink: #2c0610; }
[data-accent="violet"] { --a: #7c5cff; --a-2: #e5deff; --a-ink: #ffffff; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Satoshi", system-ui, sans-serif; color: var(--ink); background: var(--paper);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, var(--line) 31px 32px);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
@media (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }
::selection { background: var(--a); color: var(--a-ink); }
.pix { font-family: "Silkscreen", monospace; letter-spacing: .02em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, canvas { display: block; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 400; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--a); outline-offset: 3px; }
.only-touch { display: none; }
@media (pointer: coarse) { .only-fine { display: none; } .only-touch { display: inline; } }

/* ---------- loader ---------- */
body.is-loading { overflow: hidden; }
.loader { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: var(--b0); color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 24px 24px; }
.loader.is-dissolving { background: transparent; }
.loader.is-dissolving .loader__box { opacity: 0; transition: opacity .2s; }
.loader.is-gone { display: none; }
.loader__dissolve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.loader__box { width: min(300px, 82vw); display: grid; gap: 12px; position: relative; }
.loader__top, .loader__meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--b4); }
.loader__rec { display: inline-flex; align-items: center; gap: 6px; } .loader__rec i { width: 7px; height: 7px; background: var(--a); animation: blink 1s steps(2) infinite; }
.loader__frame { position: relative; aspect-ratio: 1; background: var(--b1); border: 2px solid #fff; box-shadow: 6px 6px 0 var(--a); overflow: hidden; }
.loader__frame canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.loader__frame.swap { animation: swap .35s steps(3); }
@keyframes swap { 50% { filter: invert(1); } }
.loader__res { position: absolute; right: 6px; bottom: 6px; font-size: 9px; background: var(--b0); padding: 3px 5px; }
.loader__scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 2px, transparent 2px 4px); pointer-events: none; }
.loader__status { font-size: 12px; min-height: 1.2em; }
.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.loader__bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; height: 12px; }
.loader__bar i { background: rgba(255,255,255,.12); } .loader__bar i.on { background: var(--c); } .loader__bar i.head { background: var(--a); }

/* ---------- cursor + trail + progress ---------- */
#trail { position: fixed; inset: 0; pointer-events: none; z-index: 250; }
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; width: 14px; height: 14px; transform: translate3d(-50px, -50px, 0); }
.cursor span { position: absolute; inset: 0; background: var(--b1); box-shadow: 0 0 0 2px #fff; transition: inset .35s var(--spring), background .25s; }
.cursor.is-hover span { inset: -12px; box-shadow: none; --c: var(--a);
  background: linear-gradient(var(--c), var(--c)) 0 0 / 10px 3px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 3px 10px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 10px 3px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 3px 10px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 10px 3px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 3px 10px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 10px 3px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 3px 10px no-repeat; }
.cursor.is-down span { inset: 3px; }
body:not(.has-cursor) .cursor, body:not(.has-cursor) #trail { display: none; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 80; }
.progress__fill { height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad-px); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 18px;
  justify-content: space-between; padding: 8px 8px 8px 12px; width: min(1180px, calc(100% - 24px));
  background: rgba(245, 247, 252, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(10, 36, 224, .12); border-radius: 14px; transition: transform .5s var(--ease), box-shadow .3s; }
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav.is-scrolled { box-shadow: 0 8px 30px -12px rgba(4, 16, 107, .25); }
.nav__logo { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.nav__logo img { border-radius: 7px; transition: transform .4s var(--spring); }
.nav__logo:hover img { transform: rotate(-8deg) scale(1.08); }
.nav__links { display: flex; gap: 2px; }
.nav__links a { font-size: 14px; font-weight: 500; padding: 8px 11px; border-radius: 8px; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 2px; background: var(--grad-px); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s steps(6); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--b1); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__clock { font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.blink { width: 6px; height: 6px; background: var(--a); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
/* Deck · Classic */
.vs { display: inline-flex; padding: 3px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; font-size: 10px; }
.vs__opt { padding: 6px 9px; border-radius: 2px; color: var(--ink-2); transition: background .2s, color .2s; }
a.vs__opt:hover { color: var(--ink); background: var(--b6); }
.vs__opt.on { background: var(--ink); color: #fff; }
.vs.to-deck .vs__opt.on { background: transparent; color: var(--ink-2); } .vs.to-deck a.vs__opt { background: var(--ink); color: #fff; }
/* accent picker */
.swatch-btn { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; padding: 8px; border: 2px solid var(--ink); border-radius: 5px; background: #fff; }
.swatch-btn i { width: 8px; height: 8px; } .swatch-btn i:nth-child(1) { background: #ff6b1a; } .swatch-btn i:nth-child(2) { background: #8fd61f; }
.swatch-btn i:nth-child(3) { background: #ff5c72; } .swatch-btn i:nth-child(4) { background: #7c5cff; }
.swatch-btn:hover { box-shadow: 3px 3px 0 var(--a); }
.swatches { position: absolute; right: 8px; top: calc(100% + 10px); width: 230px; padding: 12px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--a); display: grid; gap: 4px; }
.swatches > p { font-size: 10px; color: var(--ink-2); margin: 0 0 4px; }
.swatches button { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 4px; text-align: left; font-weight: 700; font-size: 14px; }
.swatches button:hover { background: var(--b6); }
.swatches button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.swatches button i { width: 18px; height: 18px; flex: none; box-shadow: 2px 2px 0 var(--ink); }
.swatches button[aria-pressed="true"] i { box-shadow: 2px 2px 0 #fff; }
.swatches small { display: block; font-weight: 500; font-size: 12px; opacity: .65; }
[data-accent-opt="orange"] i { background: #ff6b1a; } [data-accent-opt="lime"] i { background: #8fd61f; }
[data-accent-opt="coral"] i { background: #ff5c72; } [data-accent-opt="violet"] i { background: #7c5cff; }
@media (max-width: 1080px) { .nav__links { display: none; } }
@media (max-width: 560px) { .nav__clock, .nav__logo .pix { display: none; } .nav .btn--small { display: none; } }

/* ---------- buttons ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--h); padding: 0 22px;
  overflow: hidden; isolation: isolate; background: var(--ink); color: #fff; border-radius: 4px; white-space: nowrap;
  font-family: "Silkscreen", monospace; font-size: 13px; letter-spacing: .04em; box-shadow: 4px 4px 0 var(--a);
  transition: box-shadow .25s var(--ease), translate .25s var(--ease), color .25s; }
.btn:hover { box-shadow: 6px 6px 0 var(--b3); }
.btn:active { translate: 3px 3px; box-shadow: 1px 1px 0 var(--a); }
.btn__label { position: relative; z-index: 2; transition: transform .35s var(--spring); }
.btn:hover .btn__label { transform: translateY(-1px); }
.btn__px { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 100% 0 0); transition: clip-path .5s steps(8);
  background: conic-gradient(from 90deg at 1px 1px, transparent 25%, rgba(255,255,255,.08) 0) 0 0 / 8px 8px, var(--grad-smooth); }
.btn:hover .btn__px { clip-path: inset(0 0 0 0); }
.btn--small { --h: 38px; padding: 0 14px; font-size: 11px; box-shadow: 3px 3px 0 var(--a); }
.btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.btn--ghost:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 20px 90px; text-align: center; perspective: 1400px; perspective-origin: 50% 40%; }
.hero__grid { position: absolute; inset: 0; pointer-events: none; background-size: 32px 32px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 45%, #000 30%, transparent 75%); }
.hero__eyebrow { font-size: 12px; color: var(--ink-2); margin-bottom: 14px; }
.hero__name { position: relative; width: min(900px, 92vw); padding: 22px 26px; transform-style: preserve-3d; }
.hero__name::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--b2); border-radius: 6px; transform: translateZ(-40px) rotate(-1.2deg);
  box-shadow: 6px 6px 0 var(--a-2); background: rgba(233, 239, 255, .35); transition: transform .6s var(--spring); }
.hero__name:hover::before { transform: translateZ(-60px) rotate(.6deg) scale(1.01); }
#pixelName { width: 100%; position: relative; transform: translateZ(30px); cursor: pointer; }
.hero__hint { position: absolute; right: -6px; bottom: -26px; font-size: 10px; color: var(--b2); opacity: .85; animation: bob 2.4s var(--ease) infinite; transform: translateZ(50px); }
@keyframes bob { 50% { translate: 0 -3px; } }
/* pixel GIF */
.gif { position: absolute; right: -60px; top: -64px; width: 168px; background: #fff; padding: 8px 8px 6px; border: 2px solid var(--ink); border-radius: 4px;
  box-shadow: 6px 6px 0 var(--a); rotate: 5deg; transform: translateZ(60px); transition: rotate .5s var(--spring), scale .5s var(--spring); z-index: 6; }
.gif:hover { rotate: 0deg; scale: 1.08; }
.gif__screen { position: relative; aspect-ratio: 1; background: var(--b1); overflow: hidden; }
.gif__screen canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.gif__badge { position: absolute; left: 5px; top: 5px; font-size: 8px; background: var(--a); color: var(--a-ink); padding: 2px 4px; }
.gif__frame { position: absolute; right: 5px; top: 5px; font-size: 8px; background: var(--ink); color: #fff; padding: 2px 4px; }
.gif__cap { position: absolute; left: 6px; right: 6px; bottom: 6px; font-size: 9px; color: #fff; text-shadow: 1px 1px 0 var(--b0), -1px -1px 0 var(--b0), 1px -1px 0 var(--b0), -1px 1px 0 var(--b0); text-align: center; min-height: 2.4em; display: flex; align-items: flex-end; justify-content: center; }
.gif figcaption { display: flex; justify-content: space-between; font-size: 8px; color: var(--ink-2); margin-top: 6px; }
.tape { position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; translate: -50% 0; rotate: -4deg; background: color-mix(in srgb, var(--a) 45%, transparent); }
/* stickers */
.sticker { position: absolute; z-index: 5; padding: 8px 12px; font-size: 11px; background: #fff; border: 2px solid var(--ink); border-radius: 4px;
  transform: rotate(var(--r)); box-shadow: 3px 3px 0 var(--b4); user-select: none; touch-action: none; cursor: grab;
  translate: var(--dx, 0px) calc(var(--dy, 0px) + var(--fy)); transition: box-shadow .25s, scale .3s var(--spring);
  animation: float 6s ease-in-out infinite; animation-delay: calc(var(--d, 0) * -1s); }
.sticker:hover { scale: 1.06; box-shadow: 5px 5px 0 var(--a); }
.sticker.is-drag { cursor: grabbing; scale: 1.1; box-shadow: 10px 12px 0 rgba(10, 36, 224, .25); animation: none; z-index: 20; }
.sticker.s1 { top: 22%; left: 9%; background: var(--b6); --d: 1; }
.sticker.s2 { top: 54%; right: 7%; --d: 2.5; }
.sticker.acc { background: var(--a); color: var(--a-ink); }
.sticker.s3 { top: 52%; left: 7%; background: var(--b5); --d: 3.2; }
.sticker.s4 { top: 78%; left: 9%; background: var(--b1); color: #fff; --d: 4.1; }
@property --fy { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes float { 50% { --fy: -6px; } }
@media (max-width: 1000px) { .gif { right: -6px; top: -118px; width: 128px; } }
@media (max-width: 900px) {
  .sticker.s1 { top: 13%; left: 3%; } .sticker.s4 { display: none; }
  .sticker.s3 { top: auto; bottom: 9%; left: 3%; } .sticker.s2 { top: auto; bottom: 9%; right: 3%; }
}
@media (max-width: 560px) { .gif { position: relative; right: auto; top: auto; margin: 26px auto 0; width: 150px; transform: none; } .hero__hint { bottom: auto; top: 100%; right: 50%; translate: 50% 0; } .sticker { font-size: 9px; padding: 6px 8px; } .sticker.s1 { top: 92px; } }
.hero__status { margin-top: 44px; font-size: 11px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); }
.pulse { width: 8px; height: 8px; background: #19c37d; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; background: #19c37d; animation: ping 1.6s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.hero__title { margin-top: 18px; font-weight: 700; font-size: clamp(30px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; }
.hl { position: relative; display: inline-block; color: var(--b1); background: linear-gradient(transparent 62%, var(--a-2) 62%); cursor: help; }
.hl::after { content: "?"; position: absolute; top: -.3em; right: -.55em; font-size: .35em; font-family: "Silkscreen"; color: var(--a); }
.underline-draw { position: relative; display: inline-block; }
.underline-draw::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .12em; background: var(--grad-px); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.1s steps(10) .9s; }
.is-in .underline-draw::after, .is-in.underline-draw::after { transform: scaleX(1); }
.hero__cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; color: var(--ink-2); }
.hero__scroll i { width: 4px; height: 28px; background: var(--b5); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; width: 4px; height: 8px; background: var(--a); animation: drip 1.6s steps(6) infinite; }
@keyframes drip { from { top: -8px; } to { top: 28px; } }
.tip { position: fixed; z-index: 260; pointer-events: none; background: var(--ink); color: #fff; font-size: 11px; padding: 6px 9px; border-radius: 3px; box-shadow: 3px 3px 0 var(--a); opacity: 0; transition: opacity .2s; }
.tip.on { opacity: 1; }

/* ---------- sections ---------- */
.section { position: relative; padding: 110px 20px; max-width: 1180px; margin: 0 auto; }
.section__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 52px; }
.tag { font-size: 11px; padding: 6px 10px; background: var(--b1); color: #fff;
  clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)); }
.chip-title { font-weight: 500; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; padding: 4px 16px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; box-shadow: 4px 4px 0 var(--a); }
.section__sub { color: var(--ink-2); max-width: 540px; font-size: 16px; line-height: 1.5; }
[data-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
[data-reveal].is-in { opacity: 1; translate: none; }

/* ---------- about ---------- */
.about__wrap { display: grid; grid-template-columns: 210px 1fr 210px; gap: 48px; align-items: center; }
.about__text { font-size: clamp(19px, 2.1vw, 25px); line-height: 1.55; text-align: center; font-weight: 500; letter-spacing: -.01em; }
.about__text em { font-style: italic; color: var(--b1); }
.about__text .w { display: inline-block; opacity: .16; transition: opacity .4s, color .4s; }
.about__text .w.on { opacity: 1; }
.polaroid { position: relative; background: #fff; padding: 10px 10px 34px; border-radius: 3px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 14px 30px -14px rgba(4,16,107,.35); transition: transform .5s var(--ease); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.9); }
.polaroid.p1 { rotate: -5deg; } .polaroid.p2 { rotate: 4deg; margin-top: 60px; }
.polaroid figcaption { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink-2); }
.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 60px; }
.chip { padding: 10px 16px; font-weight: 700; font-size: 15px; border-radius: 3px; color: #fff; box-shadow: 3px 3px 0 var(--ink); user-select: none; transition: rotate .4s var(--spring), scale .4s var(--spring), box-shadow .3s; }
.chip:hover { rotate: -3deg; scale: 1.08; box-shadow: 5px 5px 0 var(--ink); } .chip:nth-child(even):hover { rotate: 3deg; }
.c1 { background: var(--b1); } .c2 { background: var(--a); color: var(--a-ink); } .c3 { background: var(--b0); } .c4 { background: var(--b5); color: var(--b0); }
.c5 { background: var(--b2); } .c6 { background: #fff; color: var(--b1); } .c7 { background: var(--a-2); color: var(--ink); } .c8 { background: var(--grad-smooth); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.stat { perspective: 900px; min-height: 140px; outline-offset: 6px; }
.stat__in { position: relative; height: 100%; min-height: 140px; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.stat:hover .stat__in, .stat:focus .stat__in, .stat.is-flipped .stat__in { transform: rotateY(180deg); }
.stat__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; border: 2px solid var(--ink); padding: 20px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; box-shadow: 4px 4px 0 var(--b5); }
.stat__back { background: var(--b1); color: #fff; transform: rotateY(180deg); justify-content: space-between; box-shadow: 4px 4px 0 var(--a); }
.stat__back .pix { font-size: 9px; color: var(--b5); } .stat__back p { font-size: 14px; line-height: 1.4; font-weight: 500; }
.stat b { font-size: 40px; font-weight: 700; color: var(--b1); line-height: 1; }
.stat__face > span:not(.pix) { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .about__wrap { grid-template-columns: 1fr; } .polaroid { width: 200px; margin: 0 auto; } .polaroid.p2 { margin-top: 0; } .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- work: folders ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 44px; }
.filters button { font-size: 11px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; transition: background .2s, box-shadow .2s; }
.filters button:hover { box-shadow: 3px 3px 0 var(--a); }
.filters button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--a); }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 46px 26px; perspective: 1200px; }
.folder { position: relative; height: 270px; transform-origin: 50% 100%; rotate: var(--rot, 0deg); transition: rotate .6s var(--spring), translate .6s var(--spring), opacity .4s, scale .4s; text-align: left; }
.folder:nth-child(3n+1) { --rot: -2deg; } .folder:nth-child(3n+2) { --rot: 1.5deg; } .folder:nth-child(3n) { --rot: -.5deg; }
.folder:hover, .folder:focus-visible { rotate: 0deg; translate: 0 -4px; }
.folder.is-hidden { display: none; }
.folder__back, .folder__front { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 14px; }
.folder__back { top: 14px; background: var(--c2); }
.folder__back::before { content: ""; position: absolute; top: -14px; left: 0; width: 44%; height: 30px; background: var(--c2); border-radius: 12px 12px 0 0; }
.folder__front { top: 118px; background: var(--c1); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: var(--fc, #fff); transform-origin: 50% 100%; transition: transform .55s var(--ease); overflow: hidden; }
.folder__front::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: soft-light; background: conic-gradient(from 90deg at 2px 2px, transparent 25%, #fff 0) 0 0 / 6px 6px; mask-image: linear-gradient(160deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(160deg, #000, transparent 60%); }
.folder__front .folder__title { font-size: 19px; line-height: 1.05; position: relative; }
.folder__front small { font-weight: 500; opacity: .85; position: relative; margin-top: 6px; font-size: 13px; line-height: 1.3; }
.folder__front .folder__kind { position: absolute; top: 12px; right: 12px; font-size: 9px; line-height: 1.2; padding: 3px 6px; background: rgba(255,255,255,.9); color: var(--ink); border-radius: 2px; }
.folder:hover .folder__front, .folder:focus-visible .folder__front { transform: rotateX(-24deg); }
.folder__paper { position: absolute; left: 18px; right: 18px; top: 24px; height: 180px; background: #fff; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.08);
  transform: translateY(6px) rotate(-2deg); transition: transform .6s var(--spring); display: grid; place-items: start center; overflow: hidden; }
.folder__paper img { width: 62%; height: auto; max-height: 120px; object-fit: contain; margin-top: 8px; transition: transform .6s var(--spring); }
.folder:hover .folder__paper img { transform: scale(1.06) rotate(-3deg); }
.folder:hover .folder__paper, .folder:focus-visible .folder__paper { transform: translateY(-38px) rotate(3deg); }
.fc-case { --c1: var(--b1); --c2: #0a1ca8; }
.fc-works { --c1: var(--b3); --c2: #3a63e0; }
.fc-hustles { --c1: var(--a); --c2: color-mix(in srgb, var(--a) 78%, #000); --fc: var(--a-ink); }
@media (max-width: 1000px) { .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 14px; } .folder { height: 220px; } .folder__front { top: 96px; padding: 10px; } .folder__front .folder__title { font-size: 13px; } .folder__front small { display: none; } .folder__front .folder__kind { font-size: 7px; top: 8px; right: 8px; } .folder__paper { height: 130px; left: 10px; right: 10px; } .folder__paper img { max-height: 84px; } }

/* ---------- project window ---------- */
.win-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(4, 16, 107, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.win { position: fixed; z-index: 150; left: 50%; top: 50%; translate: -50% -50%; width: min(940px, calc(100vw - 24px)); height: min(88vh, 900px);
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 10px 10px 0 var(--a); overflow: hidden; }
.win.is-entering { animation: winIn .5s var(--spring); }
@keyframes winIn { from { scale: .92; opacity: 0; } }
.win__bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 2px solid var(--ink); background: var(--b6); }
.win__dots { display: flex; gap: 5px; } .win__dots i { width: 10px; height: 10px; background: var(--ink); } .win__dots i:nth-child(2) { background: var(--b2); } .win__dots i:nth-child(3) { background: var(--a); }
.win__file { flex: 1; font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win__close { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font-weight: 700; }
.win__close:hover { background: var(--ink); color: #fff; }
.win__body { flex: 1; overflow: auto; padding: 34px clamp(20px, 5vw, 48px) 48px; overscroll-behavior: contain; }
.p-head { display: grid; grid-template-columns: 130px 1fr; gap: 28px; align-items: center; }
.p-head img { width: 130px; height: auto; }
.p-kind { font-size: 10px; display: inline-block; padding: 5px 8px; background: var(--a); color: var(--a-ink); border-radius: 2px; }
.p-title { font-size: clamp(28px, 4vw, 44px); letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 10px; }
.p-lede { font-size: 18px; color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.p-sec { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 26px 0; border-top: 2px dashed var(--b5); margin-top: 26px; }
.p-sec > h3 { font-family: "Silkscreen"; font-size: 11px; font-weight: 400; color: var(--b1); }
.p-sec p { font-size: 16px; line-height: 1.6; max-width: 62ch; }
.p-meta { display: flex; flex-wrap: wrap; gap: 10px 32px; } .p-meta span { display: block; font-size: 12px; color: var(--ink-2); } .p-meta b { font-weight: 700; }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.p-tags span { font-family: "Silkscreen"; font-size: 10px; padding: 6px 9px; background: var(--b6); color: var(--b1); border-radius: 3px; }
.p-mocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.p-mocks figure { margin: 0; } .p-mocks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 2px solid var(--ink); border-radius: 4px; cursor: zoom-in; transition: translate .3s var(--ease), box-shadow .3s; }
.p-mocks img:hover { translate: -2px -2px; box-shadow: 4px 4px 0 var(--a); }
.p-mocks figcaption { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.p-links { display: flex; flex-wrap: wrap; gap: 12px; }
.p-embed { margin-top: 18px; height: 70vh; border: 2px solid var(--ink); border-radius: 4px; overflow: hidden; }
.p-embed iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .win { height: calc(100svh - 16px); top: 8px; translate: -50% 0; } .p-head { grid-template-columns: 1fr; gap: 12px; } .p-head img { width: 96px; } .p-sec { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- image viewer ---------- */
.lb { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 40px 16px; background: rgba(4, 10, 40, .82); cursor: zoom-out; }
.lb figure { display: grid; gap: 10px; justify-items: center; }
.lb img { max-width: min(1300px, 100%); max-height: calc(100vh - 120px); border: 2px solid #fff; border-radius: 4px; box-shadow: 8px 8px 0 var(--a); cursor: default; }
.lb figcaption { color: #fff; font-size: 11px; }
.lb__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; font-weight: 700; }

/* ---------- method ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 18px 16px 20px; box-shadow: 4px 4px 0 var(--b5); transition: translate .35s var(--spring), box-shadow .3s, background .3s; }
.step:hover, .step.is-active { translate: 0 -6px; box-shadow: 5px 9px 0 var(--a); }
.step .pix { font-size: 10px; color: var(--b1); }
.step h3 { font-size: 19px; letter-spacing: -.02em; margin: 8px 0 8px; }
.step p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.step ul { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.step li { font-family: "Silkscreen"; font-size: 9px; padding: 4px 6px; background: var(--b6); color: var(--b1); border-radius: 2px; }
.step::after { content: "→"; position: absolute; right: -14px; top: 50%; translate: 0 -50%; font-family: "Silkscreen"; color: var(--a); font-size: 14px; }
.step:last-child::after { content: none; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step::after { content: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- lab ---------- */
.lab__box { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.lab__screen { background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 6px 6px 0 var(--a); min-height: 420px; padding: 26px; position: relative; overflow: hidden; }
.lab__screen::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--grad-px); }
.lab__idle { display: grid; place-items: center; text-align: center; gap: 14px; min-height: 360px; align-content: center; }
.lab__idle .pix { font-size: 11px; color: var(--b1); } .lab__idle h3 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; } .lab__idle p:not(.pix) { color: var(--ink-2); max-width: 40ch; }
.lab__q { font-size: 12px; color: var(--b1); margin: 6px 0 16px; }
.lab__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lab__opt { position: relative; border: 2px solid var(--ink); border-radius: 6px; padding: 18px; min-height: 210px; background: var(--paper); text-align: left; display: flex; flex-direction: column; gap: 10px; transition: translate .3s var(--spring), box-shadow .3s; }
.lab__opt:hover:not([disabled]) { translate: -2px -3px; box-shadow: 5px 6px 0 var(--b4); }
.lab__opt .pix.lab__ab { position: absolute; top: -12px; left: 12px; font-size: 10px; background: var(--ink); color: #fff; padding: 3px 7px; }
.lab__opt.right { box-shadow: 5px 6px 0 #19c37d; border-color: #13985f; }
.lab__opt.wrong { opacity: .55; }
.lab__opt[disabled] { cursor: default; }
.lab__why { margin-top: 18px; padding: 16px 18px; border: 2px solid var(--ink); border-radius: 6px; background: var(--a-2); display: grid; gap: 8px; }
.lab__why b { font-size: 17px; } .lab__why p { line-height: 1.5; } .lab__why .pix { font-size: 10px; color: var(--ink-2); }
.lab__next { justify-self: start; margin-top: 4px; }
.lab__data { background: var(--b0); color: #fff; border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 6px 6px 0 var(--b4); }
.lab__stat { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed rgba(255,255,255,.2); padding-bottom: 10px; }
.lab__stat span { font-size: 13px; color: var(--b4); } .lab__stat b { font-size: 22px; }
.lab__bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; height: 70px; align-items: end; }
.lab__bars i { background: rgba(255,255,255,.12); height: 20%; transition: height .5s var(--spring), background .3s; }
.lab__bars i.ok { background: var(--a); height: 100%; } .lab__bars i.no { background: var(--b3); height: 45%; }
.lab__note { font-size: 13px; line-height: 1.5; color: var(--b5); }
@media (max-width: 860px) { .lab__box { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .lab__pair { grid-template-columns: 1fr; } .lab__screen { padding: 18px; } }
/* mini UI pieces used inside lab options */
.m-btn { display: inline-block; padding: 9px 14px; border-radius: 6px; background: var(--b1); color: #fff; font-weight: 700; font-size: 14px; }
.m-btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid #c9cede; }
.m-btn.danger { background: #d92d20; }
.m-field { display: grid; gap: 4px; font-size: 13px; } .m-field i { display: block; height: 34px; border: 1.5px solid #c9cede; border-radius: 6px; background: #fff; font-style: normal; color: #9aa0b4; padding: 8px 10px; font-size: 13px; }
.m-field.err i { border-color: #d92d20; } .m-err { color: #d92d20; font-size: 12px; }
.m-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.m-faint { color: #c3c7d4; } .m-muted { font-size: 12px; color: var(--ink-2); }
.m-chiprow { display: flex; flex-wrap: wrap; gap: 5px; } .m-chiprow span { font-size: 11px; padding: 5px 8px; border: 1.5px solid #c9cede; border-radius: 999px; background: #fff; }
.m-chiprow span.pick { border-color: var(--b1); background: var(--b6); color: var(--b1); font-weight: 700; }
.m-card { background: #fff; border: 1.5px solid #dfe2ec; border-radius: 8px; padding: 12px; display: grid; gap: 6px; }

/* ---------- field notes ---------- */
.notes__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.note { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 22px; box-shadow: 5px 5px 0 var(--b5); display: grid; gap: 10px; align-content: start; transition: box-shadow .3s; }
.note:hover { box-shadow: 6px 6px 0 var(--a); }
.note.n1 { grid-row: span 3; }
.note h3 { font-size: 22px; letter-spacing: -.02em; } .note p { color: var(--ink-2); line-height: 1.55; }
.note__tag { justify-self: start; font-size: 10px; padding: 4px 8px; background: var(--b1); color: #fff; }
.note.n2 .note__tag { background: var(--a); color: var(--a-ink); }
.note__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.note__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; border: 2px solid var(--ink); }
.note .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 800px) { .notes__grid { grid-template-columns: 1fr; } .note.n1 { grid-row: auto; } }

/* ---------- background ---------- */
.bg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.bg__h { font-size: 12px; font-weight: 400; color: var(--b1); margin: 0 0 16px; }
.bg__col .bg__h:not(:first-child) { margin-top: 34px; }
.tl { list-style: none; position: relative; padding-left: 28px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 4px; background: repeating-linear-gradient(var(--b5) 0 6px, transparent 6px 10px); }
.tl::after { content: ""; position: absolute; left: 7px; top: 6px; width: 4px; height: calc((100% - 12px) * var(--fill, 0)); background: var(--b1); transition: height .2s linear; }
.tl li { position: relative; padding-bottom: 26px; }
.tl li::before { content: ""; position: absolute; left: -27px; top: 4px; width: 14px; height: 14px; background: #fff; border: 3px solid var(--b1); z-index: 1; }
.tl li.now::before { background: var(--a); border-color: var(--ink); }
.tl b { display: block; font-size: 17px; } .tl .pix { font-size: 10px; color: var(--ink-2); display: block; margin: 4px 0 6px; } .tl p { color: var(--ink-2); line-height: 1.5; font-size: 15px; }
.edu { background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 3px 3px 0 var(--b5); }
.edu b { display: block; } .edu span { font-size: 14px; color: var(--ink-2); }
.tools { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.tools li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; font-size: 11px; text-align: center; transition: translate .3s var(--spring), box-shadow .3s; }
.tools li:hover { translate: 0 -3px; box-shadow: 3px 3px 0 var(--a); }
.tools svg { width: 22px; height: 22px; fill: var(--ink); transition: fill .25s; } .tools li:hover svg { fill: var(--brand); }
.tools .mono { font-family: "Silkscreen"; font-size: 10px; width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.quotes { display: grid; gap: 12px; margin-bottom: 24px; }
.quote { background: var(--b1); color: #fff; border-radius: 4px; padding: 16px; box-shadow: 4px 4px 0 var(--a); }
.quote:nth-child(even) { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
.quote p { line-height: 1.5; font-weight: 500; }
.quote footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; opacity: .9; }
.quote img { width: 30px; height: 30px; object-fit: cover; image-rendering: pixelated; }
@media (max-width: 860px) { .bg__grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { position: relative; background: var(--b0); color: #fff; padding: 120px 20px 40px; margin-top: 60px;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; }
.contact__inner { max-width: 900px; margin: 0 auto; text-align: center; display: grid; gap: 18px; justify-items: center; }
.contact__eyebrow { font-size: 12px; color: var(--a); }
.contact__title { font-size: clamp(34px, 6vw, 74px); letter-spacing: -.04em; line-height: 1; }
.contact__mail { font-family: "Silkscreen"; font-size: clamp(16px, 3vw, 28px); color: #fff; padding: 14px 22px; border: 2px solid #fff; border-radius: 4px; box-shadow: 6px 6px 0 var(--a); transition: translate .25s, box-shadow .25s; }
.contact__mail:hover { translate: -2px -2px; box-shadow: 8px 8px 0 var(--a); }
.contact__small { font-size: 10px; color: var(--b4); }
.contact__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }
.contact .btn { background: #fff; color: var(--ink); } .contact .btn:hover { color: #fff; }
.foot { display: flex; justify-content: space-between; max-width: 1180px; margin: 90px auto 0; font-size: 10px; color: var(--b4); }
.foot a:hover { color: #fff; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; translate: -50% 20px; opacity: 0; pointer-events: none; background: var(--ink); color: #fff; font-size: 11px; padding: 10px 14px; border-radius: 4px; box-shadow: 4px 4px 0 var(--a); transition: opacity .3s, translate .3s var(--spring); }
.toast.on { opacity: 1; translate: -50% 0; }

/* ---------- AI assistant ---------- */
.ai-fab { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--ink); color: #fff; border-radius: 6px; box-shadow: 4px 4px 0 var(--a); font-size: 11px; transition: translate .25s, box-shadow .25s; }
.ai-fab:hover { translate: -2px -2px; box-shadow: 6px 6px 0 var(--a); }
.ai-fab__face { width: 30px; height: 30px; background: var(--a); position: relative;
  background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink));
  background-size: 5px 5px, 5px 5px, 14px 4px; background-position: 7px 9px, 18px 9px, 8px 19px; background-repeat: no-repeat; }
.ai-fab.is-open { display: none; }
.ai { position: fixed; right: 20px; bottom: 20px; z-index: 165; width: min(400px, calc(100vw - 24px)); height: min(600px, calc(100svh - 110px));
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--a); overflow: hidden; }
.ai.is-entering { animation: aiIn .45s var(--spring); transform-origin: 100% 100%; }
@keyframes aiIn { from { scale: .6; opacity: 0; } }
.ai__bar { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; background: var(--b1); color: #fff; font-size: 11px; }
.ai__bar .pix { flex: 1; }
.ai__dot { width: 8px; height: 8px; background: #19c37d; animation: blink 1.4s steps(2) infinite; }
.ai__voice, .ai__close { width: 30px; height: 30px; background: rgba(255,255,255,.15); border-radius: 4px; color: #fff; font-size: 13px; }
.ai__voice[aria-pressed="true"] { background: var(--a); color: var(--a-ink); }
.ai__log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); overscroll-behavior: contain; }
.msg { max-width: 86%; padding: 10px 12px; border-radius: 6px; line-height: 1.5; font-size: 15px; animation: pop .35s var(--spring); }
@keyframes pop { from { scale: .7; opacity: 0; } }
.msg.a { align-self: flex-start; background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--b5); transform-origin: 0 100%; }
.msg.q { align-self: flex-end; background: var(--ink); color: #fff; transform-origin: 100% 100%; }
.msg .act { display: inline-flex; margin-top: 8px; font-family: "Silkscreen"; font-size: 10px; padding: 7px 10px; background: var(--a); color: var(--a-ink); border-radius: 3px; }
.msg .act:hover { box-shadow: 2px 2px 0 var(--ink); }
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; background: var(--b2); animation: blink 1s steps(2) infinite; } .typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.ai__chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-top: 2px dashed var(--b5); background: #fff; }
.ai__chips:empty { display: none; }
.ai__chips button { flex: none; font-size: 13px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font-weight: 500; }
.ai__chips button:hover { background: var(--a-2); }
.ai__form { display: flex; gap: 6px; padding: 10px; border-top: 2px solid var(--ink); }
.ai__form input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 4px; font: 500 15px var(--font, "Satoshi"); outline: none; }
.ai__form input:focus { box-shadow: 3px 3px 0 var(--a); }
.ai__mic, .ai__send { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; }
.ai__send { background: var(--ink); color: #fff; font-weight: 700; }
.ai__mic.on { background: var(--a); animation: blink 1s steps(2) infinite; }
@media (max-width: 560px) { .ai { right: 8px; left: 8px; width: auto; bottom: 8px; height: calc(100svh - 90px); } .ai-fab { right: 12px; bottom: 12px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .about__text .w { opacity: 1; }
}

/* ---------- ux life, honestly (meme wall) ---------- */
.memes__wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; max-width: 1040px; margin: 0 auto; }
.meme { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 4px; padding: 12px 12px 16px; rotate: var(--r); box-shadow: 6px 6px 0 var(--b5); transition: rotate .5s var(--spring), scale .5s var(--spring), box-shadow .3s; cursor: pointer; }
.meme:nth-child(3n+2) { margin-top: 40px; }
.meme:hover { rotate: 0deg; scale: 1.03; box-shadow: 10px 10px 0 var(--a); z-index: 2; }
.meme::before { content: ""; position: absolute; top: -10px; left: 50%; width: 64px; height: 18px; translate: -50% 0; rotate: -3deg; background: color-mix(in srgb, var(--a) 45%, transparent); }
.meme__img { position: relative; aspect-ratio: 4 / 4.4; background: var(--b6); overflow: hidden; border-radius: 2px; }
.meme__img canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.meme__res { position: absolute; right: 6px; bottom: 6px; font-size: 9px; background: var(--ink); color: #fff; padding: 3px 5px; }
.meme.is-clear .meme__res { background: var(--a); color: var(--a-ink); }
.meme figcaption { margin-top: 14px; font-size: 16px; font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.meme figcaption .pix { display: block; font-size: 9px; color: var(--b2); margin-bottom: 6px; font-weight: 400; letter-spacing: .04em; }
.meme__react { margin-top: 12px; font-size: 10px; padding: 6px 9px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; transition: background .2s, color .2s; }
.meme__react:hover, .meme__react.on { background: var(--a); color: var(--a-ink); }
.meme__react:active { transform: scale(.92); }
.meme__react b { margin-left: 4px; display: inline-block; }
.meme__react.bump b { animation: bump .4s var(--spring); }
@keyframes bump { 50% { transform: scale(1.6); } }
@media (max-width: 900px) { .memes__wall { grid-template-columns: repeat(2, 1fr); } .meme:nth-child(3n+2) { margin-top: 0; } .meme:nth-child(even) { margin-top: 30px; } }
@media (max-width: 560px) { .memes__wall { grid-template-columns: 1fr; } .meme:nth-child(even) { margin-top: 0; } }

/* ---------- work: three calm groups ---------- */
.groups { display: grid; gap: 84px; }
.group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 40px; border-bottom: 2px dashed var(--b5); }
.group__head h3 { font-size: 14px; font-weight: 400; color: var(--ink); }
.group__head h3 span { color: var(--a); margin-left: 6px; }
.group__head p { color: var(--ink-2); font-size: 15px; text-align: right; }
.groups .shelf { gap: 40px 28px; }
.groups .folder { height: 240px; }
.groups .folder__front { top: 128px; justify-content: flex-end; }
.groups .folder__front .folder__title { font-size: 18px; }
.group--works .shelf, .group--hustles .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group--works .folder { height: 200px; }
.group--works .folder__front { top: 108px; }
.group--works .folder__front .folder__title { font-size: 14px; }
.group--works .folder__paper { height: 150px; }
.group--works .folder__paper img { max-height: 96px; }
@media (max-width: 1000px) { .group--works .shelf, .group--hustles .shelf, .groups .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .groups { gap: 60px; } .group__head { flex-direction: column; gap: 6px; margin-bottom: 28px; } .group__head p { text-align: left; }
  .groups .shelf, .group--works .shelf, .group--hustles .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
  .groups .folder { height: 200px; } .groups .folder__front { top: 108px; } .groups .folder__front .folder__title { font-size: 13px; }
  .group--works .folder { height: 180px; } .group--works .folder__front { top: 96px; }
}

/* ---------- pixel scroll scenes ---------- */
.scene { position: relative; width: 100%; overflow: hidden; margin: 10px 0; }
.scene canvas { display: block; width: 100%; image-rendering: auto; }
.scene__cap { position: absolute; left: 50%; top: 14px; translate: -50% 0; font-size: 10px; color: var(--ink-2); background: rgba(245, 247, 252, .85); padding: 5px 9px; border: 2px solid var(--ink); border-radius: 3px; white-space: nowrap; }
.scene[data-scene="crossing"] .scene__cap { top: 14px; }
.scene[data-scene="cafe"] { margin-bottom: 0; }
.scene[data-scene="journey"] .scene__cap { top: 14px; left: auto; right: 16px; translate: none; }

/* ---------- background: career map ---------- */
.map { max-width: 1000px; margin: 0 auto; }
.map__track { position: relative; height: 150px; margin: 0 40px; }
.map__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 6px; background: repeating-linear-gradient(90deg, var(--b5) 0 12px, transparent 12px 18px); }
.map__fill { position: absolute; left: 0; bottom: 34px; height: 6px; width: 0; background: var(--b1); transition: width .7s var(--ease); }
.map__stops { list-style: none; position: absolute; left: 0; right: 0; bottom: 0; height: 74px; display: flex; justify-content: space-between; }
.map__stops li { width: 0; display: flex; justify-content: center; }
.map__stop { display: grid; justify-items: center; gap: 8px; padding-top: 30px; background: none; }
.map__stop i { width: 20px; height: 20px; background: #fff; border: 3px solid var(--b1); transition: transform .3s var(--spring), background .25s; }
.map__stop.past i { background: var(--b1); }
.map__stop.on i { background: var(--a); border-color: var(--ink); transform: scale(1.35) rotate(45deg); }
.map__stop.k-now i { box-shadow: 0 0 0 4px var(--a-2); }
.map__stop span { font-size: 12px; color: var(--ink-2); }
.map__stop.on span { color: var(--ink); }
.map__stop:hover i { transform: scale(1.2); } .map__stop.on:hover i { transform: scale(1.35) rotate(45deg); }
.map__me { position: absolute; bottom: 44px; height: 96px; width: auto; translate: -50% 0; left: 0; transition: left .7s var(--ease); image-rendering: auto; pointer-events: none; }
.map__me.back { scale: -1 1; }
.map__card { margin: 30px auto 0; max-width: 680px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 22px 24px; box-shadow: 6px 6px 0 var(--a); min-height: 168px; }
.map__card.swap { animation: cardIn .45s var(--spring); }
@keyframes cardIn { from { opacity: 0; translate: 0 10px; } }
.map__card h3 { font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.025em; margin: 10px 0 4px; }
.map__card p:last-child { color: var(--ink-2); line-height: 1.6; font-size: 16px; }
.map__date { font-size: 10px; color: var(--ink-2); margin-bottom: 10px; }
.map__tag { font-size: 10px; padding: 4px 8px; background: var(--b1); color: #fff; }
.map__tag.k-education { background: var(--b3); } .map__tag.k-research { background: var(--b0); } .map__tag.k-now { background: var(--a); color: var(--a-ink); }
/* kind words: a row of pixel speech bubbles */
.kw { margin-top: 90px; }
.kw__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.kw__head h3 { font-size: 12px; font-weight: 400; color: var(--b1); }
.kw__nav { display: flex; gap: 8px; }
.kw__nav button { width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; font-weight: 700; transition: box-shadow .2s, translate .2s; }
.kw__nav button:hover { box-shadow: 3px 3px 0 var(--a); translate: -1px -1px; }
.kw__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 6px 26px; scrollbar-width: none; }
.kw__row::-webkit-scrollbar { display: none; }
.kw__card { scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.kw__card blockquote { position: relative; margin: 0; flex: 1; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 18px; font-size: 16px; font-weight: 500; line-height: 1.5; box-shadow: 4px 4px 0 var(--b5); }
.kw__card:nth-child(odd) blockquote { background: var(--b1); color: #fff; box-shadow: 4px 4px 0 var(--a); }
.kw__card blockquote::after { content: ""; position: absolute; left: 22px; bottom: -14px; width: 14px; height: 14px; background: inherit; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); clip-path: polygon(0 0, 100% 0, 100% 100%); }
.kw__card figcaption { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); padding-left: 10px; }
.kw__card figcaption img { width: 36px; height: 36px; object-fit: cover; image-rendering: pixelated; border: 2px solid var(--ink); }
.kw__card figcaption b { display: block; color: var(--ink); font-size: 14px; }
.map__cv { text-align: center; margin-top: 40px; }
@media (max-width: 700px) {
  .map__track { margin: 0 14px; height: 130px; } .map__stop span { font-size: 10px; } .map__me { height: 76px; }
  .map__card { padding: 18px; } .kw__row { grid-auto-columns: 82%; }
}

/* pinned scene: stays on screen while you scroll through it */
.scene-pin { height: 300vh; position: relative; }
.scene-pin > .scene { position: sticky; top: calc(50vh - 170px); margin: 0; }
@media (prefers-reduced-motion: reduce) { .scene-pin { height: auto; } .scene-pin > .scene { position: relative; top: 0; } }

/* ---------- footer ---------- */
.scene[data-scene="cafe"] { margin: 0; }
.contact { margin-top: 0; padding: 70px 20px 0; }
.contact__lede { color: var(--b4); font-size: 18px; max-width: 46ch; }
.btn--big { --h: 60px; padding: 0 30px; font-size: 15px; box-shadow: 6px 6px 0 var(--a); }
.contact .btn--big { background: var(--a); color: var(--a-ink); } .contact .btn--big:hover { color: #fff; }
.contact__cta { align-items: center; gap: 22px; margin-top: 18px; }
.contact__mail { display: grid; gap: 4px; justify-items: start; padding: 10px 16px; font-size: inherit; box-shadow: 4px 4px 0 var(--b3); }
.contact__mail .pix { font-size: clamp(14px, 2vw, 18px); } .contact__mail small { font-size: 9px; color: var(--b4); }
.ticker { margin: 90px -20px 0; border-top: 2px solid rgba(255,255,255,.14); border-bottom: 2px solid rgba(255,255,255,.14); overflow: hidden; white-space: nowrap; font-size: 13px; color: var(--b4); padding: 14px 0; }
.ticker__in { display: inline-flex; animation: tick 38s linear infinite; }
.ticker span { padding-right: 10px; } .ticker span::first-letter { color: var(--a); }
@keyframes tick { to { transform: translateX(-50%); } }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; max-width: 1180px; margin: 0 auto; padding: 54px 0 40px; font-size: 15px; color: #fff; }
.foot__brand { display: flex; gap: 14px; align-items: flex-start; } .foot__brand img { border-radius: 9px; }
.foot__brand b { display: block; font-size: 18px; } .foot__brand span { color: var(--b4); font-size: 14px; line-height: 1.5; }
.foot__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot__col h3 { font-size: 10px; font-weight: 400; color: var(--a); margin-bottom: 4px; }
.foot__col a { color: var(--b5); transition: color .2s, translate .2s; } .foot__col a:hover { color: #fff; translate: 3px 0; }
.foot__top { font-size: 10px; margin-top: 6px; }
.vs--dark { background: transparent; border-color: rgba(255,255,255,.5); }
.vs--dark .vs__opt { color: var(--b4); } .vs--dark a.vs__opt:hover { background: rgba(255,255,255,.1); color: #fff; } .vs--dark .vs__opt.on { background: #fff; color: var(--ink); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1180px; margin: 0 auto; padding: 18px 0 30px; border-top: 1px dashed rgba(255,255,255,.18); font-size: 10px; color: var(--b4); }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } .foot__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .contact__cta { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .ticker__in { animation: none; } }

/* ---------- compact work: case folders + an index of everything else ---------- */
.section__head { margin-bottom: 44px; }
.groups { gap: 70px; }
.group--case .shelf { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; perspective: 1400px; }
.group--case .folder { height: 214px; will-change: transform; }
.group--case .folder__front { top: 104px; padding: 14px; }
.group--case .folder__front .folder__title { font-size: 16px; }
.group--case .folder__front small { font-size: 12px; opacity: .7; margin-top: 4px; }
.group--case .folder__paper { height: 150px; } .group--case .folder__paper img { max-height: 98px; }
.index { border-top: 2px solid var(--ink); transform-origin: 50% 0; }
.index__head { display: flex; justify-content: space-between; font-size: 11px; color: var(--b1); padding: 12px 4px; border-bottom: 2px dashed var(--b5); }
.index__head span:last-child { color: var(--a); }
.row { width: 100%; display: grid; grid-template-columns: 44px minmax(170px, 1fr) 2fr 120px 24px; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid rgba(10, 36, 224, .1); text-align: left; position: relative; transition: background .25s, padding .35s var(--spring); }
.row::before { content: ""; position: absolute; inset: 0; background: var(--b6); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s steps(8); z-index: -1; }
.row:hover::before, .row:focus-visible::before { transform: scaleX(1); }
.row:hover, .row:focus-visible { padding-left: 14px; }
.row__n { font-size: 11px; color: var(--ink-2); }
.row__thumb { display: none; width: 44px; height: 44px; object-fit: contain; }
.row__t { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.row__s { color: var(--ink-2); font-size: 15px; }
.row__y { font-size: 10px; color: var(--ink-2); text-align: right; }
.row__go { font-weight: 700; color: var(--b1); transition: translate .3s var(--spring); }
.row:hover .row__go { translate: 6px 0; color: var(--a); }
.row-preview { position: fixed; left: 0; top: 0; z-index: 120; width: 170px; height: auto; pointer-events: none; opacity: 0; scale: .7; transition: opacity .25s, scale .35s var(--spring); filter: drop-shadow(6px 8px 0 color-mix(in srgb, var(--a) 55%, transparent)); }
.row-preview.on { opacity: 1; scale: 1; }
@media (max-width: 1000px) { .group--case .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .row { grid-template-columns: 44px 1fr 18px; gap: 12px; padding: 12px 4px; }
  .row__n, .row__s, .row__y { display: none; } .row__thumb { display: block; }
  .row__t { font-size: 16px; }
  .group--case .folder { height: 190px; } .group--case .folder__front { top: 92px; }
}
/* 3D: smooth the scroll-driven transforms a touch */
[data-3d] { transition: transform .12s linear, opacity .2s linear; backface-visibility: hidden; }
.step[data-3d] { transform-style: preserve-3d; }

/* ---------- real screenshots instead of the flower art ---------- */
.folder__paper--shot { padding: 6px; place-items: stretch; }
.folder__paper--shot img { width: 100%; height: 100%; max-height: none; margin: 0; object-fit: cover; object-position: top; border-radius: 3px; }
.folder:hover .folder__paper--shot img { transform: none; }
.row-preview { width: 260px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 2px solid var(--ink); border-radius: 4px; background: #fff; filter: none; box-shadow: 6px 6px 0 var(--a); }
.row__thumb { width: 56px; height: 40px; object-fit: cover; object-position: top; border: 2px solid var(--ink); border-radius: 3px; }
@media (max-width: 760px) { .row { grid-template-columns: 56px 1fr 18px; } }
.p-cover { margin: 0 0 22px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; box-shadow: 5px 5px 0 var(--b5); }
.p-cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: top; }
.p-head { grid-template-columns: 1fr; }

/* ---------- footer: one contact card, then a slim bar ---------- */
.contact { background: transparent; background-image: none; color: var(--ink); margin-top: 0; padding: 70px 20px 0; }
.cta-card { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; background: #fff; border: 2px solid var(--ink); border-radius: 8px; padding: clamp(26px, 4vw, 48px); box-shadow: 10px 10px 0 var(--a); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--grad-px); }
.contact__eyebrow { font-size: 11px; color: var(--b1); }
.contact__title { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.04em; line-height: 1.02; margin: 12px 0 14px; color: var(--ink); }
.contact__lede { color: var(--ink-2); font-size: 17px; max-width: 40ch; line-height: 1.5; }
.cta-card__actions { display: grid; gap: 14px; justify-items: stretch; }
.cta-card .btn--big { width: 100%; background: var(--ink); color: #fff; box-shadow: 5px 5px 0 var(--a); }
.contact__mail { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); background: var(--b6); box-shadow: none; font-family: "Satoshi", sans-serif; font-weight: 700; font-size: 17px; transition: background .2s, translate .2s; }
.contact__mail:hover { background: var(--a-2); translate: -2px -2px; box-shadow: 3px 3px 0 var(--ink); }
.contact__mail small { font-size: 9px; color: var(--ink-2); font-weight: 400; }
.cta-card__social { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.cta-card__social a { color: var(--ink-2); } .cta-card__social a:hover { color: var(--b1); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto; padding: 46px 0 18px; font-size: 15px; color: var(--ink); grid-template-columns: none; }
.foot__brand { display: flex; align-items: center; gap: 12px; } .foot__brand img { border-radius: 8px; }
.foot__brand b { display: block; font-size: 16px; } .foot__brand small { color: var(--ink-2); font-size: 13px; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; } .foot__links a { color: var(--ink-2); font-weight: 500; } .foot__links a:hover { color: var(--b1); }
.foot__end { display: flex; align-items: center; gap: 14px; }
.foot__top { font-size: 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 4px; background: #fff; } .foot__top:hover { box-shadow: 3px 3px 0 var(--a); }
.foot__base { max-width: 1100px; margin: 0 auto; padding: 16px 0 40px; border-top: 1px dashed var(--b5); font-size: 10px; color: var(--ink-2); display: block; }
@media (max-width: 820px) { .cta-card { grid-template-columns: 1fr; gap: 24px; } .foot { flex-direction: column; align-items: flex-start; } }
.foot__brand span { color: var(--ink); } .foot__brand small { display: block; }

/* =========================================================
   Abhi Street: the pixel city hub
   ========================================================= */
.city { position: relative; }
.city__pin { height: 520vh; position: relative; }
.city__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; padding-top: 74px; overflow: hidden; }
.city__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 20px 10px; }
.city__title { font-size: 13px; color: var(--ink); }
.city__how { font-size: 10px; color: var(--ink-2); }
.city__cv { flex: 1; min-height: 0; width: 100%; display: block; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.city__doors { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 12px 16px 16px; }
.city__doors button { font: inherit; font-size: 10px; color: var(--ink-2); background: none; border: 2px solid transparent; border-radius: 3px; padding: 6px 9px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.city__doors button:hover { color: var(--ink); border-color: var(--b5); }
.city__doors button.on { color: var(--ink); background: #fff; border-color: var(--ink); box-shadow: 3px 3px 0 var(--a); }
.city__doors button:focus-visible { outline: 2px solid var(--b1); outline-offset: 2px; }
@media (max-width: 700px) { .city__pin { height: 460vh; } .city__how { width: 100%; } .city__doors button { padding: 6px 6px; } }
@media (prefers-reduced-motion: reduce) { .city__pin { height: auto; } .city__stage { position: relative; height: 78vh; } }

/* the pixel wipe used when going in and out of buildings */
.wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: none; }

/* ---------- giant building headings (the building sits inside the word) ---------- */
.mega { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; font-weight: 400; }
.mega__word { font-family: "Anton", "Impact", sans-serif; text-transform: uppercase; font-size: clamp(64px, 14vw, 200px); line-height: .84; letter-spacing: .005em; color: var(--ink); display: inline-flex; align-items: flex-end; gap: .08em; }
.mega__b { height: .74em; width: auto; margin-bottom: .015em; transition: translate .4s var(--ease); }
.section__head:hover .mega__b { translate: 0 -6px; }
.mega .chip-title { font-family: "Satoshi", sans-serif; text-transform: none; }
.back-street { font-size: 10px; color: var(--ink-2); border-bottom: 1px dashed var(--b4); padding-bottom: 2px; }
.back-street:hover { color: var(--b1); border-color: var(--b1); }
@media (max-width: 520px) { .mega__word { font-size: clamp(54px, 17vw, 90px); } }

/* =========================================================
   Footer finale: the city at night on my name
   ========================================================= */
.contact { padding-bottom: 0; }
.finale { background: #04106b; color: #fff; margin: 90px -20px 0; padding: 40px 20px 0; position: relative; overflow: hidden; }
.finale__cv { display: block; width: 100%; max-width: 1600px; margin: 0 auto; touch-action: pan-y; cursor: crosshair; }
.finale .foot { color: #fff; border-top: 1px solid rgba(255,255,255,.16); padding-top: 26px; }
.finale .foot__brand b { color: #fff; } .finale .foot__brand span { color: #fff; } .finale .foot__brand small { color: var(--b4); }
.finale .foot__links a { color: var(--b5); } .finale .foot__links a:hover { color: #fff; }
.finale .foot__top { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.finale .vs { background: transparent; border-color: rgba(255,255,255,.5); }
.finale .vs .vs__opt { color: var(--b4); } .finale .vs a.vs__opt:hover { color: #fff; background: rgba(255,255,255,.1); } .finale .vs .vs__opt.on { background: #fff; color: var(--ink); }
.finale .foot__base { color: var(--b4); border-top-color: rgba(255,255,255,.16); }

/* ---------- corner radar (the way back to the street, like a city game) ---------- */
.radar { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 184px; padding: 4px 4px 0; background: var(--ink); border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: 5px 5px 0 var(--a); opacity: 0; translate: 0 20px; pointer-events: none; transition: opacity .35s var(--ease), translate .35s var(--ease), box-shadow .2s; }
.radar.on { opacity: 1; translate: none; pointer-events: auto; }
.radar:hover { box-shadow: 7px 7px 0 var(--a); } .radar:focus-visible { outline: 3px solid var(--b1); outline-offset: 3px; }
.radar canvas { display: block; width: 176px; height: 132px; border-radius: 7px; }
.radar__here { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: 3px 6px; }
.radar__here i { width: 6px; height: 6px; background: var(--a); }
.radar__here b { font-weight: 400; }
.radar__key { display: block; font-size: 9px; color: var(--b5); padding: 6px 0 7px; text-align: center; }
@media (max-width: 700px) { .radar { left: 12px; bottom: 12px; width: 124px; } .radar canvas { width: 116px; height: 87px; } .radar__key { display: none; } .radar { padding-bottom: 4px; } }
@media print { .radar { display: none; } }

/* ---------- the full map ---------- */
.citymap { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(4, 16, 107, .45); backdrop-filter: blur(3px); }
.citymap[hidden] { display: none; }
.citymap__panel { width: min(980px, 100%); background: #fff; border: 2px solid var(--ink); border-radius: 10px; box-shadow: 10px 10px 0 var(--a); overflow: hidden; animation: mapIn .35s var(--ease); }
@keyframes mapIn { from { opacity: 0; scale: .96; } }
.citymap__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 11px; }
.citymap__close { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; padding: 2px 6px; }
.citymap__view { position: relative; height: clamp(260px, 46vh, 420px); }
.citymap__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.citymap__pins { position: absolute; inset: 0; }
.citymap__pin { position: absolute; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding: 0 0 6px; background: none; border: 2px solid transparent; border-radius: 6px; cursor: pointer; transition: border-color .2s, background .2s, translate .2s; }
.citymap__pin span { font-size: 11px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: 2px 6px; }
.citymap__pin small { font-size: 12px; color: var(--ink-2); }
.citymap__pin:hover, .citymap__pin:focus-visible { border-color: var(--ink); background: rgba(255,255,255,.35); translate: 0 -3px; outline: none; }
.citymap__pin.here span { background: var(--a); color: var(--a-ink, #fff); }
.citymap__pin.here small::before { content: "you are here · "; color: var(--ink); }
.citymap__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border-top: 2px solid var(--ink); }
.citymap__foot p { font-size: 10px; color: var(--ink-2); }
@media (max-width: 700px) { .citymap__pin span { font-size: 8px; padding: 1px 3px; } .citymap__pin small { display: none; } .citymap__pin.here small { display: none; } }
@media (max-width: 700px) { .citymap__view { height: clamp(170px, 28vh, 230px); } }

/* =========================================================
   Option 1: the street is the site (one screen), buildings open rooms
   ========================================================= */
.city__stage { position: relative; height: 100vh; height: 100svh; min-height: 520px; }
.city__cv { outline: none; touch-action: manipulation; }
.city__cv:focus-visible { box-shadow: inset 0 0 0 3px var(--b1); }
.city__head { align-items: center; }
.sfx-btn { font: inherit; font-size: 10px; color: var(--ink-2); background: #fff; border: 2px solid var(--ink); border-radius: 3px; padding: 5px 8px; cursor: pointer; }
.sfx-btn:hover { box-shadow: 3px 3px 0 var(--a); } .sfx-btn.off { color: var(--b4); border-color: var(--b4); }
/* ◀ ▶ for touch screens */
.city__pad { display: none; }
@media (pointer: coarse) {
  .city__pad { display: flex; justify-content: space-between; position: absolute; left: 12px; right: 12px; bottom: 74px; pointer-events: none; }
  .city__pad button { pointer-events: auto; width: 58px; height: 58px; font-size: 20px; color: #fff; background: var(--ink); border: 0; border-radius: 8px; box-shadow: 4px 4px 0 var(--a); touch-action: none; user-select: none; -webkit-user-select: none; }
  .city__pad button:active { translate: 2px 2px; box-shadow: 2px 2px 0 var(--a); }
}
/* rooms */
.room { position: fixed; inset: 0; z-index: 66; display: flex; flex-direction: column; background: var(--paper); }
.room[hidden] { display: none; }
html.room-open, html.room-open body { overflow: hidden; }
.room__bar { display: flex; align-items: center; gap: 14px; max-width: 1180px; width: 100%; margin: 86px auto 0; padding: 10px 20px; border-bottom: 2px solid var(--ink); }
.room__out { font: inherit; font-size: 11px; color: #fff; background: var(--ink); border: 0; border-radius: 4px; padding: 9px 12px; cursor: pointer; box-shadow: 3px 3px 0 var(--a); white-space: nowrap; }
.room__out:hover { translate: -1px -1px; box-shadow: 4px 4px 0 var(--a); }
.room__title { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; }
.room__title img { height: 26px; width: auto; }
.room__title b { font-size: 12px; font-weight: 700; } .room__title span { color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room__nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.room__step { font: inherit; font-size: 10px; color: var(--ink-2); background: none; border: 2px solid transparent; border-radius: 3px; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.room__step:hover { color: var(--ink); border-color: var(--ink); background: #fff; }
.room__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 120px; }
.room__body > .section:first-child { padding-top: 54px; }
.room .contact { padding: 54px 20px 120px; }
@media (max-width: 700px) {
  .room__bar { margin-top: 74px; gap: 8px; padding: 8px 12px; } .room__title span, .room__step { display: none; }
}
/* the night footer right after the street */
.end { padding: 0; }
.end .finale { margin: 0; }
html.room-open .nav.is-hidden { transform: translateX(-50%); }
.room__body { padding-bottom: 30vh; }
/* the radar sits above rooms (below the nav), and reads as a map, not a button */
.radar { z-index: 68; }
.radar canvas { cursor: pointer; }
.radar__key::before { content: "click the map · "; }
@media (max-width: 700px) { .radar__key::before { content: ""; } }
/* the street view + its game HUD */
.city__view { position: relative; flex: 1; min-height: 0; display: flex; }
.city__view .city__cv { flex: 1; min-width: 0; }
.hud { position: absolute; left: 0; right: 0; top: 12px; z-index: 2; display: flex; justify-content: space-between; gap: 10px; max-width: 1180px; margin: 0 auto; padding: 0 22px; pointer-events: none; color: #04106b; }
.hud p { display: grid; gap: 4px; margin: 0; }
.hud span { font-size: 9px; color: #0a24e0; }
.hud b { font-size: 12px; font-weight: 400; white-space: nowrap; }
@media (max-width: 900px) { .hud p:nth-child(4), .hud p:nth-child(5) { display: none; } }
@media (max-width: 520px) { .hud { padding: 0 12px; } .hud p:nth-child(3) { display: none; } .hud b { font-size: 10px; } }
.city__pad span { display: flex; gap: 10px; }
.city__pad .city__jump { background: var(--a); color: var(--a-ink, #fff); box-shadow: 4px 4px 0 var(--ink); border-radius: 50%; }
@media (max-width: 900px) { .hud p:nth-child(4), .hud p:nth-child(5) { display: grid; } .hud p:nth-child(4) { display: none; } }
@media (max-width: 520px) { .hud p:nth-child(3) { display: grid; } .hud p:nth-child(4) { display: none; } }

/* =========================================================
   Phones: the street becomes a handheld console
   ========================================================= */
.pad { display: none; }
@media (pointer: coarse) {
  html { scroll-snap-type: y proximity; }
  .city { scroll-snap-align: start; }
  html.on-street .nav { transform: translate(-50%, -160%); }
  html.on-street .ai-fab, html.on-street .progress { opacity: 0; pointer-events: none; }
  .city__stage { height: 100svh; min-height: 0; padding: 10px; background: var(--paper); display: grid; gap: 0; }
  .city__shell { display: none; }
  .city__stage::before { content: ""; position: absolute; inset: 8px; border-radius: 30px; background: linear-gradient(160deg, #1a2fb8 0%, #0a1a8f 45%, #04106b 100%); box-shadow: inset 0 2px 0 rgba(255,255,255,.25), inset 0 -4px 0 rgba(0,0,0,.25), 0 10px 0 var(--a); z-index: 0; }
  .city__stage > * { position: relative; z-index: 1; }
  .city__head, .city__doors { display: none; }
  .city__view { border: 8px solid #060b3a; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.18), inset 0 0 0 2px #000; background: #000; min-height: 0; }
  .city__view .city__cv { border: 0; }
  .hud { top: 6px; padding: 0 10px; } .hud span { font-size: 7px; } .hud b { font-size: 9px; }
  .pad { display: flex; align-items: center; justify-content: center; gap: 14px; user-select: none; -webkit-user-select: none; }
  .pad button { font-family: inherit; touch-action: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
  /* d-pad */
  .dpad { display: grid; grid-template: repeat(3, 44px) / repeat(3, 44px); }
  .dpad button, .dpad__c { background: #0b0f2e; color: #8eb0ff; border: 0; font-size: 14px; box-shadow: inset 0 -4px 0 rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.12); }
  .dpad__u { grid-area: 1 / 2; border-radius: 8px 8px 0 0; } .dpad__l { grid-area: 2 / 1; border-radius: 8px 0 0 8px; }
  .dpad__c { grid-area: 2 / 2; } .dpad__r { grid-area: 2 / 3; border-radius: 0 8px 8px 0; } .dpad__d { grid-area: 3 / 2; border-radius: 0 0 8px 8px; }
  .dpad button:active { background: #1b2160; color: #fff; box-shadow: inset 0 2px 0 rgba(0,0,0,.45); }
  .pad__brand { font-size: 8px; color: rgba(255,255,255,.45); letter-spacing: .1em; }
  /* A / B */
  .abtn { display: flex; gap: 12px; align-items: center; transform: rotate(-18deg); }
  .ab { width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-content: center; font-size: 20px; font-weight: 900; color: #fff; line-height: 1;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), inset 0 3px 0 rgba(255,255,255,.3), 0 3px 0 #000; }
  .ab small { font-family: "Silkscreen", monospace; font-size: 7px; font-weight: 400; margin-top: 3px; opacity: .85; }
  .ab--a { background: var(--a); color: var(--a-ink, #fff); margin-top: -26px; } .ab--b { background: #0a24e0; margin-top: 18px; }
  .ab:active { translate: 0 3px; box-shadow: inset 0 3px 0 rgba(0,0,0,.35); }
  .pills { display: flex; gap: 8px; }
  .pill { font-size: 9px; color: #c7d7ff; background: #0b0f2e; border: 0; border-radius: 20px; padding: 6px 12px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.4); }
  .pill.off { color: #4a5170; }
  /* portrait: screen on top, controls below */
  @media (orientation: portrait) {
    .city__stage { grid-template: "screen screen" 1fr "left right" auto / 1fr 1fr; padding: 22px 22px 26px; row-gap: 18px; }
    .city__view { grid-area: screen; }
    .pad--left { grid-area: left; flex-direction: column; } .pad--right { grid-area: right; flex-direction: column; gap: 22px; }
  }
  /* landscape: controls either side of the screen (handheld style) */
  @media (orientation: landscape) {
    .city__stage { grid-template: "left screen right" 1fr / auto 1fr auto; padding: 18px 26px; column-gap: 18px; }
    .city__view { grid-area: screen; }
    .pad--left { grid-area: left; flex-direction: column; padding-left: 8px; } .pad--right { grid-area: right; flex-direction: column; gap: 18px; padding-right: 8px; }
    .dpad { grid-template: repeat(3, 40px) / repeat(3, 40px); }
    .ab { width: 54px; height: 54px; }
  }
}
@media (pointer: coarse) and (orientation: portrait) {
  .city__stage { grid-template: "screen screen" auto "left right" 1fr / 1fr 1fr; align-content: start; }
  .city__view { height: min(60svh, 118vw); }
  .pad--left, .pad--right { align-self: center; }
}
/* full screen console */
html.game-full, html.game-full body { overflow: hidden; }
html.game-full .city { position: fixed; inset: 0; z-index: 60; background: var(--paper); }
html.game-full .city__stage { height: 100vh; height: 100dvh; }
html.game-full .nav, html.game-full .ai-fab, html.game-full .progress, html.game-full .radar { opacity: 0; pointer-events: none; }
html.game-full.room-open .nav { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.pill[data-full] { color: #fff; background: #1a2fb8; }
/* phones on their side: slimmer HUD and controls, more room for the screen */
@media (pointer: coarse) and (orientation: landscape) {
  .city__stage { padding: 10px 14px 14px; column-gap: 12px; }
  .city__stage::before { inset: 4px; border-radius: 24px; }
  .city__view { border-width: 6px; }
  .dpad { grid-template: repeat(3, 38px) / repeat(3, 38px); }
  .pad__brand { display: none; }
  .ab { width: 50px; height: 50px; font-size: 17px; } .ab small { font-size: 6px; }
  .abtn { gap: 8px; } .ab--a { margin-top: -22px; } .ab--b { margin-top: 14px; }
  .pills { flex-direction: column; align-items: stretch; gap: 6px; } .pill { padding: 5px 10px; text-align: center; }
  .pad--right { gap: 12px; }
}
@media (pointer: coarse) and (max-height: 500px) {
  .hud { top: 4px; padding: 0 8px; gap: 6px; }
  .hud p { display: flex; align-items: baseline; gap: 4px; }
  .hud p:first-child span { display: none; }
  .hud span { font-size: 7px; } .hud b { font-size: 8px; }
}
@media (pointer: coarse) and (max-height: 500px) { .hud p:nth-child(5), .hud p:nth-child(3), .hud p:nth-child(2) { display: flex; } }

/* =========================================================
   App mode (phones + tablets): the console is the whole app,
   rooms are bottom sheets (like Seray's site)
   ========================================================= */
html.app, html.app body { height: 100%; overflow: hidden; overscroll-behavior: none; scroll-snap-type: none; }
html.app body { background: #04106b; -webkit-tap-highlight-color: transparent; }
.app .hero, .app .end, .app .nav, .app .progress, .app .radar, .app .skip { display: none !important; }
.app .city { position: fixed; inset: 0; z-index: 60; background: #04106b; }
.app .city__stage { height: 100vh; height: 100dvh; background: #04106b; }
.app .city__stage::before { inset: 0; border-radius: 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.18); }
@media (orientation: portrait) {
  .app .city__stage { padding: max(18px, calc(env(safe-area-inset-top) + 8px)) 18px max(20px, calc(env(safe-area-inset-bottom) + 8px)); }
}
@media (orientation: landscape) {
  .app .city__stage { padding: max(10px, env(safe-area-inset-top)) max(16px, calc(env(safe-area-inset-right) + 6px)) max(10px, env(safe-area-inset-bottom)) max(16px, calc(env(safe-area-inset-left) + 6px)); }
}
.app .pill:active, .app .room__out:active, .app .room__step:active { scale: .92; }
/* rooms slide up as sheets over the console */
.app .room {
  inset: auto 0 0 0; top: auto; height: calc(100dvh - env(safe-area-inset-top) - 12px); z-index: 66;
  border-top: 3px solid var(--ink); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(4, 16, 107, .45);
  transform: translateY(calc(100% + 24px)); transition: transform .45s cubic-bezier(.2, .9, .3, 1.08);
}
.app .room.is-shown { transform: translateY(var(--drag, 0px)); }
.app .room.is-dragging { transition: none; }
.app .city::after { content: ""; position: absolute; inset: 0; z-index: 5; background: rgba(4, 10, 40, .5); opacity: 0; pointer-events: none; transition: opacity .35s; }
.app.room-open .city::after { opacity: 1; }
.room__grab { display: none; }
.app .room__grab { display: block; position: absolute; top: 7px; left: 50%; width: 44px; height: 5px; margin-left: -22px; background: #c3cbe6; border-radius: 3px; }
.app .room__bar { position: relative; margin: 0 auto; padding: 22px 14px 10px; touch-action: none; }
.app .room__body { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.app .ai-fab { bottom: calc(16px + env(safe-area-inset-bottom)); }
.app .ai { bottom: calc(12px + env(safe-area-inset-bottom)); height: min(600px, calc(100dvh - 40px - env(safe-area-inset-top))); }
.room__map { font: inherit; font-size: 10px; color: var(--ink-2); background: none; border: 2px solid transparent; border-radius: 3px; padding: 6px 8px; cursor: pointer; }
.room__map:hover { color: var(--ink); border-color: var(--ink); background: #fff; }
@media (max-width: 700px) { .room__map { display: inline-block; } }
/* map: the links that used to live in the nav */
.citymap__links { display: flex; gap: 14px; font-size: 10px; } .citymap__links a { color: var(--ink-2); } .citymap__links a:hover { color: var(--b1); }
/* the one-time "add to home screen" tip on iPhone */
.app-tip { position: absolute; left: 50%; top: 34px; z-index: 3; translate: -50% -8px; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 20px);
  font-size: 8px; line-height: 1.5; color: #fff; background: #04106b; border: 2px solid #fff; border-radius: 6px; padding: 7px 8px 7px 10px; box-shadow: 3px 3px 0 var(--a); transition: opacity .4s, translate .4s; }
.app-tip.on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.app-tip b { font-weight: 400; color: var(--a); }
.app-tip button { background: none; border: 0; color: #fff; font-size: 12px; padding: 2px 4px; }

/* =========================================================
   Phones: a normal scrolling page, with a button into the game
   ========================================================= */
.play-card, .game-fab, .pill[data-exit] { display: none; }
html.mobile:not(.app) { scroll-snap-type: none; }
html.mobile:not(.app) .city { scroll-snap-align: none; padding: 20px 16px 10px; }
html.mobile:not(.app) .city__stage { display: none; }
html.mobile:not(.app) .play-card { display: grid; }
html.mobile.app .pill[data-exit] { display: inline-block; }
/* the rooms are just sections of the page */
html.mobile:not(.app) .room { position: static; display: block; height: auto; transform: none; background: transparent; border: 0; box-shadow: none; border-radius: 0; z-index: auto; }
html.mobile:not(.app) .room__bar { display: none; }
html.mobile:not(.app) .room__body { overflow: visible; padding-bottom: 0; }
html.mobile:not(.app) .room .section { padding-top: 72px; padding-bottom: 72px; }
html.mobile .radar { display: none !important; }
/* play card */
.play-card { max-width: 560px; margin: 0 auto; grid-template-columns: 1fr; gap: 16px; background: #04106b; color: #fff; border-radius: 18px; padding: 18px 18px 22px; box-shadow: 0 8px 0 var(--a); overflow: hidden; }
.play-card__art { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 130px; padding: 0 6px; border-radius: 10px; background: linear-gradient(#cfdcff, #fff7fc); border-bottom: 10px solid #c7d7ff; }
.play-card__art img { height: auto; width: auto; max-height: 120px; }
.play-card__art img:nth-child(1) { height: 118px; } .play-card__art img:nth-child(3) { height: 86px; } .play-card__art img:nth-child(4) { height: 96px; }
.play-card__art .me { height: 56px; animation: bob 1s steps(2) infinite; }
@keyframes bob { 50% { translate: 0 -3px; } }
.play-card__k { font-size: 10px; color: var(--a); margin: 0; }
.play-card__t { font-family: "Silkscreen", monospace; font-size: 26px; font-weight: 700; margin: 4px 0 8px; color: #fff; }
.play-card__text p:not(.play-card__k) { font-size: 15px; line-height: 1.5; color: #c7d7ff; margin: 0 0 16px; }
.play-card .btn { background: var(--a); color: var(--a-ink, #fff); box-shadow: 4px 4px 0 #fff; }
/* floating game button (bottom-left; the AI button is bottom-right) */
html.mobile .game-fab { display: flex; position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 160; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border: 0; border-radius: 8px;
  background: var(--a); color: var(--a-ink, #fff); box-shadow: 4px 4px 0 var(--ink); font-size: 11px; opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity .3s, translate .3s; }
html.mobile .game-fab.on { opacity: 1; translate: none; pointer-events: auto; }
html.mobile.app .game-fab, html.mobile body.is-loading .game-fab { display: none; }
.game-fab svg { width: 20px; height: 20px; fill: currentColor; shape-rendering: crispEdges; }
@media (prefers-reduced-motion: reduce) { .play-card__art .me { animation: none; } }

/* ---------- accessibility fixes from the audit ---------- */
/* contrast: the "more work" count and the light career-map tag */
.index__head span:last-child { color: var(--ink); background: var(--a-2, #ffd9c2); padding: 0 6px; border-radius: 3px; }
.map__tag.k-education { background: #3550e6; }
/* comfortable tap targets on touch screens (at least ~40px) */
@media (pointer: coarse) {
  .nav__logo { min-width: 44px; min-height: 44px; justify-content: center; }
  .vs__opt { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; }
  .foot__links { gap: 6px 10px; } .foot__links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  .cta-card__social { gap: 6px 10px; } .cta-card__social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
  .foot__top { min-height: 40px; display: inline-flex; align-items: center; }
  .pill { min-height: 36px; min-width: 40px; padding: 8px 12px; }
  .app-tip button { min-width: 36px; min-height: 36px; }
  .room__out, .room__map, .room .sfx-btn { min-height: 40px; }
  .citymap__links a { display: inline-flex; align-items: center; min-height: 40px; }
}
/* the HUD keeps its contrast whatever the sky is doing */
.hud { background: rgba(255, 255, 255, .72); border-radius: 6px; padding-top: 5px; padding-bottom: 5px; max-width: calc(100% - 16px); left: 8px; right: 8px; }
/* hero GIF: only lean out as far as the space beside the name allows (no sideways page scroll) */
.hero { overflow-x: clip; }
.gif { right: calc(-1 * min(60px, (100vw - min(900px, 92vw)) / 2 - 28px)); }
@media (max-width: 1000px) { .gif { right: calc(-1 * min(6px, (100vw - 92vw) / 2 - 24px)); } }
@media (max-width: 560px) { .gif { right: auto; } }
/* the console on very narrow phones (320–360px) */
@media (pointer: coarse) and (orientation: portrait) and (max-width: 360px) {
  .app .city__stage { padding-left: 12px; padding-right: 12px; column-gap: 8px; }
  .dpad { grid-template: repeat(3, 38px) / repeat(3, 38px); }
  .ab { width: 52px; height: 52px; font-size: 17px; }
  .pills { flex-wrap: wrap; justify-content: center; gap: 6px; } .pill { padding: 8px 9px; }
  .pad--left, .pad--right { min-width: 0; }
}
.gif { right: calc(-1 * min(60px, (100vw - min(900px, 92vw)) / 2 - 46px)); } @media (max-width: 1000px) { .gif { right: calc(-1 * min(6px, (100vw - 92vw) / 2 - 24px)); } } @media (max-width: 560px) { .gif { right: auto; } }
/* tiny landscape screens: HUD as icons + values on one line */
@media (pointer: coarse) and (max-height: 500px) and (max-width: 700px) {
  .hud span { display: none !important; }
  .hud p:nth-child(2) b::before { content: "⚒ "; } .hud p:nth-child(3) b::before { content: "★ "; }
}
.hud b, .hud span { white-space: nowrap; }
.app-tip { font-size: 7px; max-width: min(320px, calc(100% - 20px)); }

/* =========================================================
   Phones: an app. Bottom tabs (one screen each) and a pixel tour guide
   ========================================================= */
.tabbar, .guide, .tour, .guide-scrim { display: none; }
html.mobile:not(.app) .tab-off { display: none !important; }
html.mobile:not(.app) body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
html.mobile:not(.app) .ai-fab, html.mobile:not(.app) .game-fab, html.mobile:not(.app) .progress,
html.mobile:not(.app) .hero__scroll, html.mobile:not(.app) .nav .btn--small { display: none !important; }
html.mobile:not(.app) .play-card { margin-bottom: 8px; }
main.tab-in { animation: tabIn .28s ease-out; }
@keyframes tabIn { from { opacity: 0; translate: 0 10px; } }

/* the bar */
html.mobile:not(.app) .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 2px solid var(--ink); }
.tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; background: none; border: 0; color: var(--ink-2); font: 600 11px/1 var(--font, "Satoshi"), sans-serif; -webkit-tap-highlight-color: transparent; }
.tabbar svg { width: 22px; height: 22px; fill: currentColor; shape-rendering: crispEdges; }
.tabbar__tab.on { color: var(--ink); }
.tabbar__tab.on svg { color: var(--b1); }
.tabbar__tab.on .tabbar__l { background: var(--a-2, #ffe2cc); border-radius: 99px; padding: 3px 8px; margin: -3px 0; }
.tabbar__tab:active svg, .tabbar__play:active .tabbar__orb { scale: .9; }
.tabbar__play { color: var(--ink); }
.tabbar__orb { display: grid; place-items: center; width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: var(--a); color: var(--a-ink, #fff); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); transition: scale .15s; }
.tabbar__orb svg { width: 24px; height: 24px; }
.tabbar button:focus-visible { outline: 3px solid var(--b1); outline-offset: -3px; border-radius: 10px; }

/* the guide: pixel me, bottom-right above the tabs */
html.mobile:not(.app) .guide { display: flex; flex-direction: column; align-items: center; gap: 2px; position: fixed; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 149;
  width: 56px; padding: 6px 0 5px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--a); font-size: 8px; transition: opacity .25s, translate .25s; }
.guide img { width: auto; height: 34px; image-rendering: pixelated; animation: bob 1.2s steps(2) infinite; }
html.touring .guide, html.chat-open .guide { opacity: 0; translate: 0 10px; pointer-events: none; }

/* the tour card */
html.mobile:not(.app) .tour:not([hidden]) { display: flex; }
.tour { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 151; gap: 10px; align-items: flex-end;
  padding: 12px 12px 12px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--a);
  opacity: 0; translate: 0 14px; transition: opacity .25s, translate .25s; max-width: 520px; margin: 0 auto; }
.tour.on { opacity: 1; translate: none; }
.tour__me { flex: none; width: auto; height: 52px; image-rendering: pixelated; animation: bob 1.2s steps(2) infinite; }
.tour__in { flex: 1; min-width: 0; }
.tour__k { font-size: 9px; color: var(--b1); margin: 0 26px 4px 0; }
.tour__t { font-size: 15px; line-height: 1.45; color: var(--ink); margin: 0 0 10px; }
.tour__b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tour__n { font-size: 9px; color: var(--ink-2); margin-right: auto; }
.tour__b button { min-height: 40px; padding: 0 12px; border-radius: 8px; border: 2px solid var(--ink); font: 700 14px var(--font, "Satoshi"), sans-serif; background: #fff; color: var(--ink); }
.tour__b .tour__next { background: var(--ink); color: #fff; }
.tour__x { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-2); font-size: 15px; }
.tour-hl { position: relative; }
.tour-hl > .section__head { animation: tourHl 1.6s ease-out 1; }
@keyframes tourHl { 0%, 60% { background: var(--a-2, #ffe2cc); box-shadow: 0 0 0 10px var(--a-2, #ffe2cc); border-radius: 6px; } }

/* the AI chat is a bottom sheet over the app */
html.mobile:not(.app) .ai { left: 0; right: 0; bottom: 0; width: auto; height: min(640px, 84dvh); z-index: 165; border-radius: 18px 18px 0 0; border-bottom: 0; box-shadow: 0 -4px 0 var(--a); padding-bottom: env(safe-area-inset-bottom); }
html.mobile:not(.app) .ai.is-entering { animation: sheetUp .32s cubic-bezier(.2,.8,.2,1); }
@keyframes sheetUp { from { translate: 0 100%; } }
html.mobile:not(.app).chat-open .guide-scrim { display: block; position: fixed; inset: 0; z-index: 160; background: rgba(4,16,107,.35); }
html.mobile:not(.app).chat-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .guide img, .tour__me { animation: none; } main.tab-in, .tour-hl > .section__head { animation: none; } }
/* the first section of each screen clears the floating top bar */
html.mobile:not(.app) #room-studio, html.mobile:not(.app) #room-gallery, html.mobile:not(.app) #room-cafe { padding-top: 36px; }
html.mobile .memes { overflow-x: clip; }
@media (pointer: coarse) { .meme__react { min-height: 40px; padding: 8px 12px; } }
/* phones on their side: slim tabs, a smaller tour card in the corner */
@media (max-height: 500px) and (orientation: landscape) {
  html.mobile:not(.app) body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
  html.mobile:not(.app) .tabbar { padding: 3px max(10px, env(safe-area-inset-right)) calc(3px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .tabbar button { flex-direction: row; gap: 7px; min-height: 42px; }
  .tabbar svg { width: 18px; height: 18px; }
  .tabbar__orb { width: 38px; height: 38px; margin-top: 0; box-shadow: 0 2px 0 var(--ink); }
  .tabbar__orb svg { width: 20px; height: 20px; }
  .tour { left: auto; right: max(10px, env(safe-area-inset-right)); bottom: calc(58px + env(safe-area-inset-bottom)); width: min(430px, 60vw); padding: 9px 10px 9px 8px; }
  .tour__me { height: 40px; } .tour__t { font-size: 14px; margin-bottom: 7px; } .tour__b button { min-height: 36px; }
  html.mobile:not(.app) .guide { bottom: calc(58px + env(safe-area-inset-bottom)); right: max(12px, env(safe-area-inset-right)); width: 50px; }
  .guide img { height: 28px; }
  html.mobile:not(.app) .ai { left: auto; right: max(10px, env(safe-area-inset-right)); width: min(460px, 70vw); height: 92dvh; }
}
