/* ===== Themes: edit colours and fonts for each mode here ===== */
:root, [data-mode="studio"] {
  --bg: #0E0B16; --text: #F6F1FF; --muted: #BBB0D1;
  --accent: #FF5C8A; --accent-text: #FF8FB0; --on-accent: #0E0B16;
  --b1: #FF3D7F; --b2: #7B5CFF; --b3: #FFB547; --blob-opacity: .55;
  --card: rgba(255, 255, 255, .06); --border: rgba(255, 255, 255, .14);
  --chat-bg: rgba(22, 16, 36, .72); --bot: rgba(255, 255, 255, .09);
  --input: rgba(255, 255, 255, .06); --shadow: rgba(0, 0, 0, .45);
  --head: 'Syne', sans-serif; --body: 'DM Sans', sans-serif;
  --head-weight: 700; --head-letter: -0.03em; --h1: clamp(48px, 7vw, 76px);
  --contact-btn: #FF5C8A;
}
[data-mode="strategy"] {
  --bg: #F3F6F5; --text: #0F1E24; --muted: #475A60;
  --accent: #0F1E24; --accent-text: #0B6B74; --on-accent: #FFFFFF;
  --b1: #7FD8C9; --b2: #8EC5FF; --b3: #C9F0DC; --blob-opacity: .7;
  --card: rgba(255, 255, 255, .65); --border: rgba(15, 30, 36, .12);
  --chat-bg: rgba(255, 255, 255, .78); --bot: rgba(15, 30, 36, .06);
  --input: rgba(255, 255, 255, .9); --shadow: rgba(15, 30, 36, .12);
  --head: 'Instrument Serif', serif; --body: 'Inter', sans-serif;
  --head-weight: 400; --head-letter: -0.01em; --h1: clamp(52px, 7.5vw, 84px);
  --contact-btn: #0F1E24;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text); font-family: var(--body);
  transition: background .8s ease, color .8s ease;
  --px: 0; --py: 0;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); letter-spacing: var(--head-letter); margin: 0; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ===== Moving background ===== */
.bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.parallax { position: absolute; inset: -10%; transform: translate(calc(var(--px) * -40px), calc(var(--py) * -30px)); transition: transform .4s ease-out; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--blob-opacity); transition: background 1s ease; }
.b1 { width: 620px; height: 620px; left: 0; top: 0; background: var(--b1); animation: drift1 18s ease-in-out infinite; }
.b2 { width: 560px; height: 560px; right: 0; top: 15%; background: var(--b2); animation: drift2 22s ease-in-out infinite; }
.b3 { width: 480px; height: 480px; left: 40%; top: 45%; background: var(--b3); animation: drift3 26s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(140px, 80px) scale(1.18); } }
@keyframes drift2 { 50% { transform: translate(-160px, 40px) scale(.9); } }
@keyframes drift3 { 50% { transform: translate(60px, -120px) scale(1.2); } }

/* ===== Header ===== */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--on-accent); background: linear-gradient(135deg, var(--b1), var(--b2)); }
.brand-name { font-family: var(--head); font-size: 22px; font-weight: var(--head-weight); }
.switch { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(12px); }
.switch button, .switch a { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer; font: 600 15px var(--body); background: transparent; color: var(--text); transition: background .4s ease, color .4s ease; }
.switch button[aria-pressed="true"], .switch a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
.links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; }
.links a:hover { color: var(--accent-text); }

/* ===== Hero ===== */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
h1 { font-size: var(--h1); line-height: 1.02; }
.lede { max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-weight: 600; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.ghost { border: 1px solid var(--border); }
.btn.invert { background: var(--on-accent); color: var(--contact-btn); font-weight: 700; min-height: 56px; padding: 0 32px; }

/* ===== Chat ===== */
.msg { max-width: 85%; padding: 12px 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; animation: rise .35s ease both; }
.msg.user { align-self: flex-end; border-radius: 18px 18px 4px 18px; background: var(--accent); color: var(--on-accent); }
.msg.bot { align-self: flex-start; border-radius: 18px 18px 18px 4px; background: var(--bot); }
.msg.typing { color: var(--muted); }
.msg.typing span { display: inline-block; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: .2; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chips button { min-height: 44px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 14px var(--body); text-align: left; color: var(--text); background: var(--card); border: 1px solid var(--border); transition: transform .2s ease; }
.chips button:hover { transform: translateY(-2px); }
.msg.note { align-self: center; max-width: 100%; font-size: 13px; color: var(--muted); background: none; padding: 4px 8px; text-align: center; }
.msg.sent { align-self: center; max-width: 100%; font-size: 13px; font-weight: 600; color: var(--accent-text); background: none; padding: 4px 8px; }
.msg a { color: inherit; font-weight: 600; text-underline-offset: 3px; }

/* ===== AI Jae avatar ===== */
.av { display: block; width: 100%; height: auto; overflow: visible; }
.av-img { display: block; width: 100%; height: auto; border-radius: 50%; }
.av-bob { animation: av-bob 5s ease-in-out infinite; transform-origin: 120px 240px; }
.av-eye { transform-box: fill-box; transform-origin: center; animation: av-blink 6s infinite; }
.av-mouth { transform-box: fill-box; transform-origin: center top; }
.talking .av-mouth { animation: av-talk .32s ease-in-out infinite alternate; }
@keyframes av-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-1deg); } }
@keyframes av-blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@keyframes av-talk { from { transform: scaleY(1); } to { transform: scaleY(1.45); } }

/* ===== Home hero: avatar + speech bubble ===== */
.hero-av { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.av-host { width: min(300px, 70vw); filter: drop-shadow(0 30px 40px var(--shadow)); }
.hero-bubble { position: relative; width: 100%; max-width: 440px; padding: 22px 24px; border-radius: 26px; background: var(--chat-bg); border: 1px solid var(--border); backdrop-filter: blur(20px); box-shadow: 0 24px 60px var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.hero-bubble::before { content: ""; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; transform: translateX(-50%) rotate(45deg); background: inherit; border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.hero-bubble-title { font-family: var(--head); font-weight: var(--head-weight); font-size: 24px; letter-spacing: var(--head-letter); }
.hero-bubble-sub { font-size: 15px; line-height: 1.55; color: var(--muted); }
.btn.small { min-height: 44px; padding: 0 22px; align-self: flex-start; font: inherit; font-weight: 600; border: 0; cursor: pointer; }
button.btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.btn.ghost { background: none; color: var(--text); }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-alt { font-size: 15px; font-weight: 600; text-underline-offset: 3px; }
.links .nav-contact { text-decoration: none; padding: 0; font-weight: 500; font-size: 15px; text-decoration: none; min-height: auto; }
.links .nav-contact:hover { color: var(--accent-text); }

/* ===== Floating AI Jae chat ===== */
.aijae { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--body); }
.aijae-launch { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--border); background: var(--chat-bg); color: var(--text); backdrop-filter: blur(16px); box-shadow: 0 16px 40px var(--shadow); cursor: pointer; font: 600 15px var(--body); transition: transform .25s ease; }
.aijae-launch:hover { transform: translateY(-2px); }
.aijae-launch-av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--b1), var(--b2)); display: block; }
.aijae-launch-av .av, .aijae-head-av .av { transform: scale(1.25) translateY(9%); }
.aijae.is-open .aijae-launch { display: none; }
.aijae-panel { width: min(400px, calc(100vw - 40px)); height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--chat-bg); border: 1px solid var(--border); backdrop-filter: blur(24px); box-shadow: 0 30px 80px var(--shadow); animation: rise .25s ease both; }
.aijae-panel[hidden] { display: none; }
.aijae-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--border); }
.aijae-head-av { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(135deg, var(--b1), var(--b2)); }
.aijae-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.aijae-head-text strong { font-size: 16px; }
.aijae-sub { font-size: 12.5px; color: var(--muted); }
.aijae-icon { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.aijae-icon:hover, .aijae-icon:focus-visible { background: var(--card); }
.aijae-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px 14px; }
.aijae-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 10px; }
.aijae-chips[hidden] { display: none; }
.aijae-chips button, .hero-bubble .chips button { min-height: 40px; padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 13.5px var(--body); text-align: left; color: var(--text); background: var(--card); border: 1px solid var(--border); }
.aijae-chips button:hover, .hero-bubble .chips button:hover { border-color: var(--accent-text); }
.aijae-ask { display: flex; gap: 8px; align-items: center; margin: 0 12px; padding: 5px 5px 5px 16px; border-radius: 999px; background: var(--input); border: 1px solid var(--border); }
.aijae-ask input { flex: 1; min-width: 0; min-height: 42px; border: 0; outline: none; background: transparent; font: 15px var(--body); color: var(--text); }
.aijae-ask input::placeholder { color: var(--muted); }
.aijae-ask button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.aijae-ask button:disabled { opacity: .5; cursor: wait; }
.aijae-note { margin: 8px 16px 12px; font-size: 11.5px; line-height: 1.4; color: var(--muted); text-align: center; }
@media (max-width: 520px) {
  .aijae { right: 12px; bottom: 12px; left: 12px; }
  .aijae-panel { width: 100%; height: calc(100vh - 110px); }
}

/* ===== Sections ===== */
.section { display: flex; flex-direction: column; gap: 32px; padding: 48px 0 96px; }
.section h2 { font-size: clamp(36px, 5vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head p { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; min-height: 240px; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(12px); transition: transform .35s ease, background .8s ease; }
.card:hover { transform: translateY(-6px); }
.card .num { font-family: var(--head); font-size: 15px; font-weight: 600; color: var(--accent-text); }
.card h3 { font-size: 28px; }
.card p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 12px; }
.tile-img { height: 300px; border-radius: 24px; border: 1px solid var(--border); display: flex; align-items: flex-end; padding: 20px; background-size: cover; background-position: center; text-decoration: none; transition: transform .5s ease; }
.tile:hover .tile-img { transform: scale(1.02); }
.tile:nth-child(3n+1) .tile-img-blank { background-image: linear-gradient(140deg, var(--b1), var(--b2)); }
.tile:nth-child(3n+2) .tile-img-blank { background-image: linear-gradient(140deg, var(--b3), var(--b1)); }
.tile:nth-child(3n+3) .tile-img-blank { background-image: linear-gradient(140deg, var(--b2), var(--b3)); }
.tag { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--chat-bg); backdrop-filter: blur(8px); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-title { font-family: var(--head); font-size: 22px; font-weight: var(--head-weight); text-decoration: none; }
.tile-title:hover { color: var(--accent-text); }
.tile-year { font-size: 14px; color: var(--muted); white-space: nowrap; }

/* ===== Tag pills ===== */
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(8px); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.pill:hover { border-color: var(--accent-text); color: var(--accent-text); }
.pill[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tile .pills { margin-top: -2px; }
.story .pills .pill { min-height: 36px; font-size: 14px; }

/* ===== All-work page ===== */
.all-work { padding-top: 40px; }
.all-work h1 { font-size: clamp(44px, 6.5vw, 72px); line-height: 1.04; }
.tag-filter { display: flex; flex-direction: column; gap: 12px; }
.tag-filter-label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.tag-filter .pill { min-height: 44px; padding: 6px 16px; font-size: 14px; }
.result-count { font-size: 14px; color: var(--muted); }
.all-link { margin-top: 8px; text-align: center; }
.all-link a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

.contact { margin-bottom: 64px; padding: clamp(32px, 6vw, 64px); border-radius: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; background: linear-gradient(120deg, var(--b1), var(--b2) 55%, var(--b3)); color: var(--on-accent); }
.contact > div { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.contact h2 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; }
.contact p { font-size: 18px; line-height: 1.6; }
[data-mode="strategy"] .contact { color: var(--text); }
[data-mode="strategy"] .btn.invert { background: var(--accent); color: var(--on-accent); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 0 0 40px; font-size: 14px; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Project story pages ===== */
.back { min-height: 44px; padding: 0 20px; }
.story { max-width: 820px; margin: 0 auto; padding: 56px 0 96px; display: flex; flex-direction: column; gap: 24px; }
.story h1 { font-size: clamp(44px, 6.5vw, 72px); line-height: 1.04; }
.story > .lede { font-size: 21px; max-width: none; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 8px 0 0; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.facts dd { margin: 0; font-size: 16px; }
.cover { margin: 8px 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.cover img { display: block; width: 100%; height: auto; }
.cover-blank { height: 260px; background: linear-gradient(120deg, var(--b1), var(--b2) 55%, var(--b3)); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--border); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--head); font-weight: var(--head-weight); font-size: 40px; line-height: 1; color: var(--accent-text); }
.stat-label { font-size: 14px; line-height: 1.4; color: var(--muted); }
.prose { font-size: 19px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; margin-top: 1.8em; }
.prose h3 { font-size: 26px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 28px; border-left: 4px solid var(--accent-text); }
.prose blockquote p { font-family: var(--head); font-weight: var(--head-weight); font-size: clamp(24px, 3vw, 32px); line-height: 1.3; letter-spacing: var(--head-letter); }
.prose blockquote cite { display: block; margin-top: 12px; font-style: normal; font-size: 15px; color: var(--muted); }
.prose figure { margin: 1.6em 0; }
.prose img { max-width: 100%; border-radius: 20px; border: 1px solid var(--border); }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--card); }
.story-actions { padding-top: 16px; }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 20px; text-decoration: none; background: var(--card); border: 1px solid var(--border); transition: transform .3s ease; }
.pager a:hover { transform: translateY(-3px); }
.pager a.next { text-align: right; }
.pager span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.pager strong { font-family: var(--head); font-weight: var(--head-weight); font-size: 22px; }

.draft-banner { padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--accent-text); background: var(--card); font-size: 15px; }

/* ===== Galleries, zoomable images, embeds ===== */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.zoom img { display: block; width: 100%; height: auto; }
.zoom:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.gallery-wrap { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.gallery-wrap h2 { font-size: clamp(30px, 4vw, 40px); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.gallery figure { margin: 0; }
.gallery .zoom { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.gallery .zoom img { transition: transform .5s ease; }
.gallery .zoom:hover img { transform: scale(1.03); }
.gallery figcaption, .prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose .zoom { border-radius: 20px; overflow: hidden; }
.prose .zoom img { border-radius: 0; border: 0; }
.cover .zoom { border-radius: 0; }
.embed { margin: 1.6em 0; width: 100%; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.prose video { width: 100%; border-radius: 20px; border: 1px solid var(--border); }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 6, 14, .92); color: #fff; }
.lightbox::backdrop { background: rgba(8, 6, 14, .6); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1400px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { font-size: 15px; color: #e8e4f0; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  .blob, .msg, .msg.typing span, .av-bob, .av-eye, .talking .av-mouth, .aijae-panel { animation: none; }
  .parallax { transform: none; }
  .card:hover, .tile:hover .tile-img, .btn:hover, .chips button:hover, .pager a:hover, .gallery .zoom:hover img { transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .links { display: none; }
  .hero { padding: 32px 0 64px; gap: 40px; }
}
