/* Studio: dark, warm, 3D-character portfolio. */
/* Accent palette. Default blue; preview others with ?green=emerald|mint|lime|sage|olive */
:root { --g: 77 141 255; --g-hi: 138 182 255; --g-deep: 29 78 216; --g-pale: 219 234 254; --g-dark: 23 42 98; --tint: 14 32 78; --tint-2: 7 15 38; }
:root[data-green="emerald"] { --g: 52 211 153; --g-hi: 110 231 183; --g-deep: 4 120 87; --g-pale: 209 250 229; --g-dark: 6 78 59; --tint: 9 58 42; --tint-2: 6 28 21; }
:root[data-green="mint"] { --g: 45 226 166; --g-hi: 125 240 200; --g-deep: 14 140 104; --g-pale: 214 252 238; --g-dark: 8 86 64; --tint: 8 60 46; --tint-2: 5 28 22; }
:root[data-green="lime"] { --g: 163 230 53; --g-hi: 190 242 100; --g-deep: 77 124 15; --g-pale: 236 252 203; --g-dark: 54 83 20; --tint: 40 58 12; --tint-2: 20 28 7; }
:root[data-green="sage"] { --g: 134 197 120; --g-hi: 172 222 158; --g-deep: 61 110 50; --g-pale: 222 240 214; --g-dark: 35 65 30; --tint: 28 50 24; --tint-2: 14 25 12; }
:root[data-green="olive"] { --g: 164 177 60; --g-hi: 195 207 94; --g-deep: 95 107 28; --g-pale: 228 236 176; --g-dark: 58 66 12; --tint: 52 59 18; --tint-2: 24 27 9; }

:root {
  --bg: #070910;
  --bg-2: #0c1120;
  --ink: #eef2fb;
  --muted: #a9b2c6;
  --faint: #808a9e;
  --green: rgb(var(--g));
  --green-hi: rgb(var(--g-hi));
  --green-deep: rgb(var(--g-deep));
  --glass: rgba(232, 238, 255, 0.06);
  --glass-hi: rgba(232, 238, 255, 0.1);
  --line: rgba(220, 230, 255, 0.14);
  --line-hi: rgba(220, 230, 255, 0.26);
  --radius: 28px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --mx: 0;
  --my: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--green); color: #06102a; }
:focus-visible { outline: 2px solid var(--green-hi); outline-offset: 3px; border-radius: 10px; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--green); color: #06102a; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 16px; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + env(safe-area-inset-top)) calc(var(--gutter) + env(safe-area-inset-right)) 18px calc(var(--gutter) + env(safe-area-inset-left)); transition: padding 0.4s var(--ease), background-color 0.4s; }
.nav.is-stuck { padding-top: 10px; padding-bottom: 10px; background: rgba(7, 9, 16, 0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.logo span { color: var(--green); }
.pill { position: relative; display: flex; gap: 0; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(232, 238, 255, 0.03); }
.pill a { position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.3s; }
.pill a:hover { color: var(--ink); }
.pill a.is-on { color: var(--green-hi); }
.pill-glow { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; background: rgb(var(--g) / 0.12); box-shadow: inset 0 0 0 1px rgb(var(--g) / 0.35); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.nav-cta { min-height: 46px; padding: 0 22px; font-size: 15px; }
.resume { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 18px 6px 6px; border: 1px solid rgb(var(--g) / 0.6); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color 0.3s, border-color 0.3s; }
.resume:hover { background: rgb(var(--g) / 0.12); border-color: var(--green); }
.resume-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #06102a; }
.resume-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font: 600 16px var(--font); text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.3s, background-color 0.3s; }
.btn-primary { background: var(--green); color: #06102a; box-shadow: 0 10px 30px -10px rgb(var(--g) / 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-primary:hover { background: var(--green-hi); box-shadow: 0 16px 40px -10px rgb(var(--g) / 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-hi); }
.btn-ghost:hover { background: var(--glass); }
.btn:active, .btn-round:active, .resume:active, .store:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-round { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-hi); color: var(--ink); transition: background-color 0.3s, border-color 0.3s, transform 0.25s var(--ease); }
.btn-round:hover { background: var(--glass-hi); border-color: var(--ink); }
.btn-round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* ---------- Glass ---------- */
.glass { position: relative; background: linear-gradient(160deg, rgba(18, 24, 42, 0.78), rgba(11, 15, 28, 0.66)); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; min-height: 100svh; padding: 120px var(--gutter) 64px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 78% 60%, rgb(var(--tint)) 0%, rgb(var(--tint-2)) 38%, var(--bg) 70%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.glow-a { width: 46vw; height: 46vw; right: 2vw; top: 18%; background: radial-gradient(circle, rgb(var(--g) / 0.45), transparent 65%); animation: breathe 9s ease-in-out infinite; }
.glow-b { width: 30vw; height: 30vw; left: -8vw; bottom: -10vw; background: radial-gradient(circle, rgb(var(--g-deep) / 0.35), transparent 70%); animation: breathe 12s ease-in-out infinite reverse; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.8; } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(220, 230, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 230, 255, 0.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 70% 50%, #000, transparent 75%); }

.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hi { font-size: clamp(20px, 2vw, 28px); font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.hi strong { color: var(--green); font-weight: 600; }
h1 { font-size: clamp(48px, 7.4vw, 108px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; margin-bottom: 22px; }
.h1-line { display: inline-block; }
.sub { font-size: clamp(17px, 1.4vw, 20px); color: #d6ddeb; max-width: 34ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.where { font-size: 14px; color: var(--muted); margin-left: 8px; }

.hero.is-paused *, .hero.is-paused *::after { animation-play-state: paused !important; }
.ticker:focus-within .ticker-track { animation-play-state: paused; }

/* Hero art */
.hero-art { position: relative; height: min(84svh, 820px); min-height: 480px; }
.hero-art > * { position: absolute; }


.avatar { left: 50%; bottom: 0; width: min(88%, 560px); height: 100%; margin-left: max(-44%, -280px); display: flex; align-items: flex-end; justify-content: center; }



/* Hero stage: halo, glowing platform, orbiting logo tiles */
.halo { left: 50%; top: 48%; width: min(96%, 640px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgb(var(--g) / 0.34), rgb(var(--g) / 0.08) 46%, transparent 68%); filter: blur(8px); animation: breathe 9s ease-in-out infinite; }
.platform { left: 50%; bottom: 0; width: min(74%, 440px); height: 96px; transform: translate(-50%, 50%); }
.platform::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--g) / 0.38), rgb(var(--g) / 0.1) 62%, transparent); }
.platform::after { content: ''; position: absolute; inset: 16% 6%; border-radius: 50%; border: 2px solid rgb(var(--g-hi) / 0.7); box-shadow: 0 0 26px rgb(var(--g) / 0.6), inset 0 0 20px rgb(var(--g) / 0.45); }
.platform i { position: absolute; inset: 32% 20%; border-radius: 50%; border: 1px solid rgb(var(--g-pale) / 0.28); }
.orbit-layer { position: absolute; left: 0; top: 0; width: 100%; height: var(--hero-h, 100vh); overflow: hidden; pointer-events: none; }
.orbit-back { z-index: 39; }
.orbit-front { z-index: 41; }
.otile { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 20px; background: linear-gradient(150deg, rgb(232 238 255 / 0.18), rgb(232 238 255 / 0.05)); border: 1px solid rgb(220 230 255 / 0.24); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2), 0 14px 28px -12px rgb(0 0 0 / 0.7), 0 0 24px -6px rgb(var(--g) / 0.6); will-change: transform, opacity; }
.otile svg { width: 48%; height: 48%; fill: var(--ink); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; }
.scroll-cue span { width: 24px; height: 38px; border: 1.5px solid var(--line-hi); border-radius: 14px; position: relative; }
.scroll-cue span::after { content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { to { transform: translateY(12px); opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 500; font-size: 17px; white-space: nowrap; }
.tick svg { width: 24px; height: 24px; fill: currentColor; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) var(--gutter); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--green-hi); font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 26px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.08; font-weight: 600; letter-spacing: -0.03em; max-width: 18ch; }
.accent { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.svc { padding: 34px 30px 36px; transition: border-color 0.4s, background-color 0.4s; transform-style: preserve-3d; }
.svc:hover { border-color: rgb(var(--g) / 0.45); }
.svc-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 26px; border-radius: 18px; background: linear-gradient(150deg, rgb(var(--g-hi)), var(--green) 50%, var(--green-deep)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 14px 30px -10px rgb(var(--g) / 0.7); }
.svc-ic svg { width: 26px; height: 26px; fill: none; stroke: #06102a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 15.5px; }

/* ---------- Work accordion ---------- */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.work-hint { color: var(--faint); font-size: 14px; }
.acc { display: flex; gap: 14px; height: clamp(560px, 72vh, 680px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; transition: flex-grow 0.8s var(--ease), border-color 0.4s; isolation: isolate; }
.panel:not(.is-open):hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.panel:not(.is-open):hover .panel-img { filter: saturate(0.9) brightness(0.85); }
.panel.is-open { flex-grow: 5.2; cursor: default; border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.panel-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(0.7) brightness(0.55); transition: transform 1.2s var(--ease), filter 0.8s; }
.panel.is-open .panel-img { transform: scale(1); filter: none; height: 56%; }
.panel-img { transition: transform 1.2s var(--ease), filter 0.8s, height 0.8s var(--ease); }
.panel-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 9, 16, 0) 0%, rgba(7, 9, 16, 0.15) 22%, rgba(7, 9, 16, 0.92) 42%, #070910 52%); transition: background 0.8s; }
.panel:not(.is-open) .panel-shade { background: linear-gradient(180deg, rgba(7, 9, 16, 0.55), rgba(7, 9, 16, 0.75) 50%, rgba(7, 9, 16, 0.92)); }
.panel-vname { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); }
.panel-tab { position: absolute; inset: 0; width: 100%; margin: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 0; transition: opacity 0.4s; }
.panel.is-open .panel-tab { opacity: 0; pointer-events: none; }
.panel-no { font-size: 14px; font-weight: 600; color: var(--accent); }
.panel-vname { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.logo-tile { display: block; flex: none; overflow: hidden; border-radius: 28%; background: var(--lbg); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.logo-tile img { width: 100%; height: 100%; padding: var(--lpad); object-fit: contain; transform: scale(var(--lscale)); }
.panel-ico { width: 56px; height: 56px; }
.panel-title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.panel-title h3 { margin-bottom: 0; }
.panel-logo { width: 60px; height: 60px; }
.panel-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 40px); width: min(100%, 680px); opacity: 0; transform: translateY(24px); transition: opacity 0.4s, transform 0.6s var(--ease); pointer-events: none; }
.panel.is-open .panel-body { opacity: 1; transform: none; transition-delay: 0.3s; pointer-events: auto; }
.panel-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.panel-meta b { padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); font-weight: 600; }
.panel h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.panel .tagline { font-size: 17px; color: #e3e8f3; margin-bottom: 10px; }
.panel .body { font-size: 15px; color: var(--muted); margin-bottom: 16px; max-width: 58ch; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 22px; list-style: none; }
.stack li { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(7, 9, 16, 0.5); font-size: 13px; color: #dde3ef; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* Store badges (markup from ../js/stores.js) */
.store { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 12px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #a6a6a6; text-decoration: none; line-height: 1; transition: border-color 0.3s, transform 0.25s var(--ease); }
.store:hover { border-color: #fff; transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: flex; flex-direction: column; gap: 2px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.store small { font-size: 11px; font-weight: 500; }
.store b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; overflow: hidden; }
.contact-glow { position: absolute; z-index: -1; right: -10%; top: 10%; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgb(var(--g) / 0.22), transparent 60%); filter: blur(40px); }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 14px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--green-hi); }
.contact-list i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line-hi); font-style: normal; }
.contact-list svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form-card { padding: clamp(24px, 3vw, 40px); }
.form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: #dde3ef; }
.form input, .form select, .form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line-hi); border-radius: 14px; background: rgba(7, 9, 16, 0.55); color: var(--ink); font: 400 16px var(--font); transition: border-color 0.3s, box-shadow 0.3s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form textarea { resize: vertical; min-height: 130px; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgb(var(--g) / 0.2); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.field-error { font-size: 14px; font-weight: 400; color: #ffb4a6; }
.field-error::before { content: '⚠ '; }
.form [aria-invalid="true"] { border-color: #ff8a73; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.is-error { color: #ff9b8a; }
.hp { position: absolute; left: -9999px; }
.done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(63, 214, 138, 0.15); color: #3fd68a; }
.done-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.done h3 { font-size: 26px; font-weight: 600; }
.done p { color: var(--muted); margin-bottom: 8px; }


main, .foot { position: relative; z-index: 1; }

/* ---------- Contact: sitter, need chips ---------- */
.contact { padding-bottom: clamp(64px, 7vw, 96px); }
/* Desktop: beside the contact details */
.card-sitter { flex: none; height: 260px; width: auto; filter: drop-shadow(0 16px 20px rgb(0 0 0 / 0.5)); pointer-events: none; }
.card-sitter.is-wave { height: 341px; }
/* Phones: perched on the form card (moved there by studio.js) */
.form-card .card-sitter { position: absolute; right: 18px; bottom: calc(100% - 18px); height: 150px; transform: none; }
.form-card .card-sitter.is-wave { height: 197px; bottom: calc(100% - 5px); }
.choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 500; color: #dde3ef; }
.choices legend span { margin-left: 6px; font-weight: 400; color: var(--faint); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip { position: relative; display: inline-flex; gap: 0; }
.form .chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid var(--line-hi); background: rgba(7, 9, 16, 0.55); color: #dde3ef; font-size: 15px; font-weight: 500; transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chip span::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-hi); background: transparent center / 12px no-repeat; transition: background-color 0.2s, border-color 0.2s; }
.chip:hover span { border-color: rgb(var(--g) / 0.6); }
.chip input:checked + span { background: rgb(var(--g) / 0.16); border-color: rgb(var(--g) / 0.8); color: var(--ink); }
.chip input:checked + span::before { border-color: var(--green); background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306102a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.chip input:focus-visible + span { outline: 2px solid var(--green-hi); outline-offset: 2px; }
.form label.half { width: calc(50% - 9px); }

/* ---------- Footer ---------- */
.foot { position: relative; z-index: 1; padding: 56px var(--gutter) 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgb(var(--tint-2) / 0.5), transparent 70%); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; align-items: start; gap: 32px 64px; padding-bottom: 36px; }
.foot-brand p { margin-top: 10px; max-width: 38ch; color: var(--muted); font-size: 15px; }
.foot-nav { display: flex; gap: 4px 28px; flex-wrap: wrap; }
.foot-nav a, .foot-bottom a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.foot-nav a:hover, .foot-bottom a:hover { color: var(--ink); }
.foot-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid rgb(var(--g) / 0.6); color: var(--ink); font-weight: 500; text-decoration: none; transition: background-color 0.2s, border-color 0.2s; }
.foot-mail:hover { background: rgb(var(--g) / 0.14); border-color: var(--green); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* ---------- Character ---------- */
/* Slots mark where the character stands; the fixed actor flies between them. */
.pose-static { display: none; }
.no-actor .pose-static { display: block; position: relative; max-height: 92%; width: auto; margin: 0 auto; }
.actor { position: fixed; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none; will-change: transform; }
.actor[hidden] { display: none; }
.actor-body { position: absolute; left: 0; bottom: 0; transform-origin: 50% 100%; }
.actor-body img { position: absolute; bottom: 0; left: 0; max-width: none; height: auto; opacity: 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); }
.actor-body img.on { opacity: 1; }
.actor-shadow { position: absolute; left: calc(var(--sw, 120px) / -2); top: -10px; width: var(--sw, 120px); height: 20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent); opacity: var(--so, 0.8); transform: translateY(var(--sy, 0px)) scaleX(var(--ss, 1)); }

.avatar { align-items: flex-end; }
.avatar .pose-static { max-height: 90%; }

/* Work: pinned while you scroll through the projects (desktop) */
.work { padding-top: 0; padding-bottom: 0; }
.work-pin { display: flex; flex-direction: column; padding: 112px 0 40px; }
.work-head { margin-bottom: 32px; }
.work h2 { font-size: clamp(30px, 3.4vw, 50px); max-width: none; }
.work-count { color: var(--faint); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.work-count b { color: var(--ink); font-size: 28px; font-weight: 600; }
.work-stage { display: grid; grid-template-columns: clamp(170px, 15vw, 240px) minmax(0, 1fr); gap: 28px; min-height: 0; }
.work-slot { position: relative; display: flex; align-items: flex-end; justify-content: center; min-height: 320px; }
.work-slot::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-hi), transparent); }
.pinned .work { height: var(--work-h, auto); }
.pinned .work-pin { position: sticky; top: 0; height: 100vh; height: 100svh; }
.pinned .work-stage { flex: 1; }
.pinned .acc { height: 100%; }


/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .pill a { padding: 0 14px; }
  .resume-txt { display: none; }
  .nav-cta { min-height: 46px; padding: 0 22px; font-size: 15px; }
.resume { padding: 6px; }
  .services { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
  .nav { padding: 12px 16px; }
  .pill { display: none; }
  .hero { grid-template-columns: 1fr; padding: 92px 16px 72px; gap: 8px; min-height: 0; }
  .hero-art { order: -1; height: 440px; min-height: 0; margin: 0 -16px; }
  .otile { width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 14px; }
  .platform { height: 70px; }
  .hero-copy { max-width: none; }
  .where { flex-basis: 100%; margin: 4px 0 0; }
  .section { padding: 80px 16px; }
  .work-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .acc { flex-direction: column; height: auto; gap: 10px; }
  .panel { flex: none; height: 84px; transition: height 0.7s var(--ease), border-color 0.4s; }
  .panel.is-open { height: 700px; }
  .panel-tab { flex-direction: row; padding: 0 20px; }
  .panel-vname { writing-mode: horizontal-tb; transform: none; font-size: 20px; flex: 1; margin-left: 14px; }
  .panel-body { padding: 22px; }
  .row { grid-template-columns: 1fr; }
  .form label.half { width: 100%; }
  .form-card { margin-top: 120px; }
  .foot { padding-top: 40px; }
  .foot-top { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; }
  .foot-mail { justify-self: start; }
  .work-pin { padding: 80px 0 64px; }
  .work-head { flex-direction: row; align-items: flex-end; }
  .work-stage { display: block; }
  .work-slot { position: absolute; right: 0; top: 40px; width: 130px; min-height: 0; height: 200px; }
  .work-slot::after { display: none; }
  .work-head > div:first-child { max-width: calc(100% - 120px); }
  .work-count { display: none; }
}

/* ---------- Reduce Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.15s !important; transition-delay: 0s !important; }
  .rv { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* ---------- Reduce Transparency / Increase Contrast ---------- */
@media (prefers-reduced-transparency: reduce) {
  .glass, .nav.is-stuck { background: #121a2c; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --muted: #dbe2ef; --faint: #bcc5d6; --line: rgba(220, 230, 255, 0.4); --line-hi: rgba(220, 230, 255, 0.6); }
  .glass { background: #121a2c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel-shade { background: linear-gradient(180deg, rgba(7, 9, 16, 0.3), rgba(7, 9, 16, 0.97) 45%) !important; }
}
