/* ==========================================================================
   Pixel Monsters — studio site
   Style replicated from the reference portfolio layout.
   Recolor the whole site from the :root block below.
   ========================================================================== */

:root {
  /* --- palette --- */
  --bg: #070c10;
  --fg: #f4f7f6;
  --accent: #7cc3f2;
  --accent-hover: #a6d9fb;
  --accent-bright: #93cdf7;
  --muted: #aebcc9;
  --dim: #788a9b;
  --dimmer: #71839a;
  --card: #0b1216;
  --card-cover: #10191e;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .16);

  /* --- type --- */
  --font: Inter, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Helvetica, Arial, sans-serif;

  /* --- layout --- */
  --shell: 1240px;
  --radius: 1rem;
  --radius-btn: .75rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, dt, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.icon { display: block; flex: none; }
.icon-3 { width: .875rem; height: .875rem; }
.icon-4 { width: 1rem; height: 1rem; }

/* ==========================================================================
   Atmosphere — drifting galleries behind everything
   ========================================================================== */

.site-shell { position: relative; isolation: isolate; overflow: hidden; }
.site-shell > section,
.site-shell > footer { position: relative; z-index: 1; }

.portfolio-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.portfolio-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(7, 12, 16, .62), rgba(7, 12, 16, .8));
}

.portfolio-streams {
  position: absolute;
  inset: -12vh -22vw;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  transform: rotate(-7deg);
}

.portfolio-stream {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: portfolio-drift var(--stream-duration) linear infinite;
  animation-delay: var(--stream-delay);
  will-change: transform;
}
.portfolio-stream-set { display: flex; gap: 1rem; flex: none; }

.stream-cover {
  width: clamp(11rem, 17vw, 16rem);
  aspect-ratio: 460 / 215;
  object-fit: cover;
  flex: none;
  opacity: .32;
  filter: saturate(.72) brightness(.78);
  border: 1px solid rgba(124, 195, 242, .16);
  border-radius: .85rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, .28);
}

@keyframes portfolio-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 16, .9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: .75rem; flex: 0 1 auto; min-width: 0; font-weight: 600; }

/* The wordmark carries the studio name, so no text is needed beside it.
   Source art is recovered at its native pixel grid, hence the fixed height. */
.brand-logo { display: block; flex: none; }
.brand-logo img { display: block; width: auto; height: 3.1875rem; }

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 0 1 auto;
  min-width: 0;
  font-size: .75rem;
  font-weight: 500;
  color: #9aa8b5;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.nav-link { white-space: nowrap; transition: color .18s; }
.nav-link:hover { color: var(--fg); }

.lang-toggle {
  flex: none;
  min-width: 2.25rem;
  padding: .35rem .6rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--accent);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  transition: border-color .18s, color .18s, background-color .18s;
}
.lang-toggle:hover {
  color: #fff;
  border-color: rgba(124, 195, 242, .5);
  background: rgba(124, 195, 242, .1);
}

/* --- social channel (one per language) --- */
.header-social { display: flex; align-items: center; flex: none; }

.social-link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: #9aa8b5;
  transition: color .18s, border-color .18s, background-color .18s, transform .18s;
}
.social-link:hover {
  color: #fff;
  border-color: rgba(124, 195, 242, .5);
  background: rgba(124, 195, 242, .1);
  transform: translateY(-1px);
}
.social-link svg { width: .9375rem; height: .9375rem; display: block; }

/* The Chinese page leads to Bilibili, the English one to YouTube.
   Driven by the <html lang> that the language toggle already maintains,
   so no extra JavaScript is involved. */
.social-yt { display: none; }
html[lang="en"] .social-yt { display: grid; }
html[lang="en"] .social-bili { display: none; }

/* ==========================================================================
   Shared section furniture
   ========================================================================== */

.section-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 4.5rem 1.25rem;
}
.section-bordered { border-top: 1px solid var(--line); }

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 0;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.section-eyebrow > span[aria-hidden] {
  width: 1.75rem;
  height: 1px;
  flex: none;
  background: var(--accent);
}

.section-title {
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.section-copy {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}
.section-heading-grid .section-copy { margin-top: 1.5rem; }
.prose > p + p { margin-top: 1.25rem; }

.section-heading-grid { display: grid; gap: 2rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-section { border-bottom: 1px solid var(--line); }

.hero-grid {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  display: grid;
  gap: 3.5rem;
  background-image:
    linear-gradient(90deg, rgba(124, 195, 242, .055) 1px, transparent 1px),
    linear-gradient(rgba(124, 195, 242, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: -1px -1px;
}

.hero-title {
  margin-top: 1.75rem;
  max-width: 56rem;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-title .accent { color: var(--accent); }

.hero-lead {
  margin-top: 2rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75;
}
.hero-sub {
  margin-top: 1rem;
  max-width: 42rem;
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.hero-aside {
  align-self: end;
  border-left: 1px solid rgba(124, 195, 242, .35);
  padding-left: 1.5rem;
}
.aside-label {
  margin-bottom: 1.75rem;
  color: var(--dimmer);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.stat-list > div + div {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.stat-big {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
/* The "+ 02 DLCs" tail belongs to the same value, just one step down in
   hierarchy so the headline number keeps the weight. */
.stat-big-tail {
  color: #c3d1de;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.stat-mid {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.stat-desc {
  margin-top: .25rem;
  max-width: 16rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button-primary,
.button-secondary,
.button-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 3rem;
  padding: .8rem 1.1rem;
  border-radius: var(--radius-btn);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}

.button-primary { color: #04121d; background: var(--accent); }
.button-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.button-secondary {
  color: #dce4ee;
  background: rgba(255, 255, 255, .024);
  border: 1px solid rgba(255, 255, 255, .14);
}
.button-secondary:hover { color: #fff; border-color: rgba(124, 195, 242, .4); }

.button-card {
  min-height: 2.75rem;
  padding: .65rem .75rem;
  letter-spacing: .05em;
  color: #dce4ee;
  border: 1px solid rgba(255, 255, 255, .13);
}
.button-card:hover { background: rgba(124, 195, 242, .06); border-color: rgba(124, 195, 242, .35); }
.button-card-accent { color: var(--accent-hover); border-color: rgba(124, 195, 242, .28); }

/* ==========================================================================
   Works
   ========================================================================== */

.works-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.project-card:hover {
  border-color: rgba(124, 195, 242, .28);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.project-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11rem;
  padding: 1.5rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(124, 195, 242, .09), transparent 58%),
    var(--card-cover);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.project-cover-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3, 7, 9, .7) 0%, transparent 52%);
}
.project-cover-content { position: relative; z-index: 2; }
.project-cover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.project-cover-meta > span {
  padding: .4rem .65rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(3, 7, 9, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}
.badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.badge-label {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.pill {
  padding: .25rem .625rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pill-accent {
  border: 1px solid rgba(124, 195, 242, .35);
  background: rgba(124, 195, 242, .1);
  color: var(--accent-bright);
}

.project-title {
  margin-top: .75rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
}
.project-title-sub {
  color: var(--dimmer);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.project-tagline {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}
.project-meta-line {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .875rem;
}
.accent-icon { color: var(--accent); }

.feature-list {
  margin-top: 1.5rem;
  display: grid;
  gap: .625rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.15rem;
  color: #9dabb9;
  font-size: .875rem;
  line-height: 1.7;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6rem;
  width: .35rem;
  height: .35rem;
  border-radius: 999px;
  background: rgba(124, 195, 242, .55);
}

.card-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .5rem;
}

/* ==========================================================================
   Studio / values
   ========================================================================== */

.value-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
.value-title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.value-copy {
  margin-top: .625rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}

/* ==========================================================================
   Approach / process
   ========================================================================== */

.process-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1rem;
}
.process-item {
  padding: 1.75rem;
  background: rgba(11, 18, 22, .72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.process-num {
  display: block;
  color: rgba(124, 195, 242, .5);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -.03em;
}
.process-title {
  margin-top: 1.25rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.process-copy {
  margin-top: .875rem;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.8;
}

/* ==========================================================================
   Statement
   ========================================================================== */

.statement-grid { display: grid; gap: 2rem; }
.statement-title {
  margin-top: 1.75rem;
  color: #fff;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.statement-copy { margin-top: .5rem; }

/* ==========================================================================
   Store cards
   ========================================================================== */

.store-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1rem;
}
.store-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.store-card:hover { border-color: rgba(124, 195, 242, .3); transform: translateY(-2px); }
.store-thumb {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.store-body { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; }
.store-name { color: #fff; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.store-name-sub { color: var(--dimmer); font-size: .875rem; font-weight: 500; }
.store-desc { margin-top: .5rem; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.store-link {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.store-note {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
/* Buttons are uppercased as a house style; brand names keep their own case. */
.keep-case { text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-title {
  margin-top: 1.75rem;
  color: #fff;
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.06;
}
.cta-copy { margin-top: 1.5rem; }
.cta-actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  display: grid;
  gap: 2rem;
}
.footer-brand { display: grid; gap: .75rem; justify-items: start; }
.footer-logo { width: auto; height: 2.5rem; }
.footer-tag { color: var(--dimmer); font-size: .8125rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a {
  color: var(--muted);
  font-size: .875rem;
  transition: color .18s;
}
.footer-links a:hover { color: var(--accent); }
.footer-note {
  color: rgba(120, 138, 156, .8);
  font-size: .8125rem;
  line-height: 1.7;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 9, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  animation: lightbox-in .18s ease-out;
}
@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.lightbox-title { color: #fff; font-size: .9375rem; font-weight: 600; letter-spacing: .02em; }
.lightbox-close {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  transition: color .18s, border-color .18s;
}
.lightbox-close:hover { color: #fff; border-color: rgba(124, 195, 242, .5); }
.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 1rem 1.25rem;
  display: grid;
  place-items: center;
  background: rgba(3, 7, 9, .5);
}
.lightbox-stage img {
  max-width: 100%;
  max-height: min(62vh, 620px);
  border-radius: .5rem;
  border: 1px solid var(--line);
  object-fit: contain;
}
.lightbox-counter {
  position: absolute;
  right: 1.75rem;
  bottom: 1.5rem;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(3, 7, 9, .8);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.lightbox-thumbs {
  display: flex;
  gap: .5rem;
  padding: .875rem 1.25rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.lightbox-thumb {
  flex: none;
  width: 6.5rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .5rem;
  opacity: .55;
  cursor: pointer;
  transition: opacity .18s, border-color .18s;
}
.lightbox-thumb:hover { opacity: .85; }
.lightbox-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .header-inner { padding: .75rem 2rem; }
  .site-nav { gap: 2rem; font-size: .875rem; }
  .section-shell { padding: 6rem 2rem; }
  .hero-grid { padding: 7rem 2rem 6rem; }
  .hero-actions { flex-direction: row; }
  .cta-actions { flex-direction: row; }
  .card-actions { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-note { grid-column: 1 / -1; }
  .lightbox-dialog { max-height: calc(100vh - 4rem); }
}

@media (min-width: 1024px) {
  .section-shell { padding: 8rem 2rem; }
  .hero-grid {
    grid-template-columns: 1fr 380px;
    gap: 5rem;
    padding: 8rem 2rem 6rem;
  }
  .hero-actions { margin-top: 2.5rem; }
  .section-heading-grid { grid-template-columns: 13rem minmax(0, 1fr); gap: 4rem; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .statement-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: start; }
  .statement-copy { margin-top: 0; }
  .process-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 1280px) {
  .portfolio-streams { inset: -8vh -48vw; transform: rotate(-9deg); }
}

@media (max-width: 559px) {
  /* On phones the full wordmark cannot sit beside the nav, so the compact
     emblem takes over (see the <picture> source switch in the markup).
     Everything in the bar is tightened at the same time so all four nav
     links plus both controls still fit without clipping. */
  .brand-logo img { height: 2.25rem; }
  .header-inner { gap: .875rem; }
  .header-tools { gap: .5rem; }
  .site-nav { gap: .875rem; }
  .lang-toggle { min-width: 2rem; padding: .35rem .5rem; }
  .social-link { width: 2rem; height: 2rem; }
  .social-link svg { width: .875rem; height: .875rem; }
}

@media (max-width: 389px) {
  /* Narrow phones: step the nav down one notch instead of letting it scroll. */
  .brand-logo img { height: 2rem; }
  .header-inner { gap: .75rem; padding: .75rem 1rem; }
  .site-nav { gap: .75rem; font-size: .6875rem; }
}

@media (max-width: 767px) {
  /* Freeze the drifting gallery on small screens: it costs more than it gives. */
  .portfolio-stream { animation: none !important; transform: translate(-16%); }
  .portfolio-streams { inset: -10vh -60vw; }
  .stream-cover { width: 10.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-stream { animation: none !important; transform: translate(-16%); }
  .project-card, .store-card, .button-primary { transition: none; }
  .lightbox-dialog { animation: none; }
}
