/* =====================================================================
   Fadlan Amada — design system
   One stylesheet shared by every page. Music = black & white, Design = blue.
   ===================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink: #1a1a1a;
  --ink-soft: #333;
  --muted: #6b6b6b;
  --line: #d4d4d4;
  --line-soft: #ececec;
  --bg: #ffffff;
  --surface: #f5f5f4;
  --on-ink: #ffffff;
  --track: rgba(26, 26, 26, 0.22);
  --header-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #1a1a1a;
  --footer-ink: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.62);
  --admin: #f0561d;
  --focus: rgba(26, 26, 26, 0.18);

  --font-sans: 'Urbanist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Averia Serif Libre', Georgia, 'Times New Roman', serif;

  /* type scale – one size per purpose */
  --fs-hero: clamp(2.5rem, 1.55rem + 3.9vw, 4.5rem);
  --fs-display: clamp(2.25rem, 1.6rem + 2.7vw, 4rem);
  --fs-display-md: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  --fs-display-sm: clamp(1.5rem, 1.2rem + 1.3vw, 2.5rem);
  --fs-h1: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem);
  --fs-title-lg: clamp(1.5rem, 1.28rem + 0.9vw, 2.125rem);
  --fs-title-md: clamp(1.1875rem, 1.08rem + 0.5vw, 1.5rem);
  --fs-title-sm: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: clamp(0.9688rem, 0.93rem + 0.18vw, 1.0625rem);
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;

  /* spacing (4px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: clamp(40px, 2rem + 2.5vw, 80px);
  --gutter: clamp(20px, 4vw, 40px);
  --container: 1200px;
  --narrow: 920px;
  --header-h: 72px;

  /* shape — rounded rectangles everywhere (the header stays square) */
  --r-xs: 6px; --r-sm: 8px; --r: 10px; --r-lg: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.07);
}

.theme-design {
  --ink: #1f2be6;
  --ink-soft: #1f2be6;
  --muted: #4b53c9;
  --line: #c8cbf5;
  --line-soft: #e6e8fd;
  --surface: #f3f4ff;
  --track: rgba(31, 43, 230, 0.25);
  --footer-bg: #1f2be6;
  --footer-muted: rgba(255, 255, 255, 0.75);
  --focus: rgba(31, 43, 230, 0.2);
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
/* Safari overscroll: the area revealed below the footer matches the footer (set by main.js). */
html.is-at-end { background: var(--footer-bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h);
  overflow-x: hidden;
}
body.page-viewer { padding-top: 64px; background: #ececf2; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: var(--r-xs); }
::selection { background: var(--ink); color: var(--on-ink); }
[hidden] { display: none !important; }
main { display: block; min-height: 60vh; outline: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: var(--r); transition: top 0.2s; }
.skip-link:focus { top: 12px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.empty { color: var(--muted); text-align: center; padding: var(--s8) 0; }

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.display--xl { font-size: var(--fs-hero); line-height: 1.02; }
.display--md { font-size: var(--fs-display-md); }
.display--sm { font-size: var(--fs-display-sm); line-height: 1.1; }
.title-lg { font-size: var(--fs-title-lg); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.title-md { font-size: var(--fs-title-md); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
.title-sm { font-size: var(--fs-title-sm); font-weight: 700; line-height: 1.3; }
.lead { font-size: var(--fs-lead); line-height: 1.6; }
.lead p + p { margin-top: 0.9em; }
.eyebrow { font-size: var(--fs-small); color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }
.title-lg a, .title-md a, .title-sm a, .release__title a { transition: opacity 0.2s; }
.title-lg a:hover, .title-md a:hover, .release__title a:hover { opacity: 0.7; }

/* ---------- icons ---------- */
.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i--arrow { width: 1.5em; transition: transform 0.35s var(--ease-out); }
.i--ext { width: 0.95em; height: 0.95em; transition: transform 0.35s var(--ease-out); }
.brand-svg { width: 24px; height: 24px; }

/* ---------- buttons (rounded rectangles) ---------- */
.btn, .badge {
  --btn-h: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 22px;
  border-radius: var(--r);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s;
}
.btn:hover, .badge:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14); }
.btn:active, .badge:active { transform: translateY(0) scale(0.985); box-shadow: none; }
.btn:hover .i--arrow, .link--arrow:hover .i--arrow, .category:hover .i--arrow { transform: translateX(4px); }
.btn:hover .i--ext, .link--ext:hover .i--ext { transform: translate(2px, -2px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.btn--sm { --btn-h: 40px; padding: 0 20px; font-size: 0.9688rem; }
.btn--block { width: 100%; }
.btn--icon .social-svg { width: 18px; height: 18px; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.badge { padding: 0 20px; gap: 9px; }
.badge__prefix { font-weight: 500; }
.badge-logo { height: 19px; width: auto; fill: currentColor; }
.badge--steam .badge-logo { height: 23px; }
.badge--patreon .badge-logo, .badge--googleplay .badge-logo, .badge--appstore .badge-logo { height: 18px; }
.badge .i--ext { margin-left: 2px; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: currentColor;
  transition: text-decoration-thickness 0.2s, opacity 0.2s;
  font-weight: 500;
}
.link:hover { text-decoration-thickness: 2px; }
.link--sm { font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; }
.link--ext { gap: 4px; }
.link--arrow {
  text-decoration: none;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}
.link--lg { font-size: var(--fs-title-md); font-weight: 500; }
.prose a, .lead a { display: inline; }

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.round-btn .i { width: 20px; height: 20px; stroke-width: 1.5; }
.round-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.round-btn:active { transform: scale(0.94); }
.round-btn[disabled] { opacity: 0.35; pointer-events: none; }
.round-btn--sm { width: 36px; height: 36px; }
.round-btn--ghost { border-color: transparent; background: transparent; }
.round-btn--ghost:hover { background: var(--surface); color: var(--ink); border-color: transparent; }
.round-btn .i--done { display: none; }
.round-btn.is-done .i--done { display: block; }
.round-btn.is-done .i:not(.i--done) { display: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.actions--center { justify-content: center; }
.actions:empty { display: none; }

/* ---------- socials (tiles ripped from the mockup) ---------- */
.socials { display: flex; gap: 14px; align-items: center; }
.social { display: block; color: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.social:hover { transform: translateY(-2px); opacity: 0.8; }
.social-svg { width: 40px; height: 40px; fill: currentColor; }
.socials--sm .social-svg { width: 36px; height: 36px; }
@media (max-width: 720px) {
  .socials { gap: 10px; }
  .social-svg, .socials--sm .social-svg { width: 30px; height: 30px; }
}

/* ---------- header (square, slightly translucent, always on top) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s5); }
.logo { display: inline-flex; align-items: center; height: 44px; color: var(--ink); transition: opacity 0.2s; }
.logo:hover { opacity: 0.7; }
.logo-svg { height: 15px; width: auto; fill: currentColor; }
@media (max-width: 720px) { .logo-svg { height: 13px; } }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav__list { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__list a { position: relative; font-size: 1rem; font-weight: 400; padding: 6px 0; transition: opacity 0.2s; }
.nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease-out); }
.nav__list a:hover::after, .nav__list a[aria-current='page']::after { transform: scaleX(1); }
.menu-btn { display: none; width: 44px; height: 44px; margin-right: -8px; border-radius: var(--r); place-items: center; }
.menu-btn__bars { position: relative; width: 22px; height: 12px; display: block; }
.menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out); }
.menu-btn__bars span:first-child { top: 0; }
.menu-btn__bars span:last-child { top: 10px; }
.menu-btn[aria-expanded='true'] .menu-btn__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded='true'] .menu-btn__bars span:last-child { top: 5px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.08);
  padding: var(--s3) 0 var(--s6);
  animation: menu-in 0.35s var(--ease-out);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu__list a { display: block; padding: 12px 0; font-size: 1.375rem; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-menu__list a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mobile-menu__foot { display: grid; gap: var(--s5); margin-top: var(--s5); justify-items: center; }
@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}
@media (min-width: 1001px) { .mobile-menu { display: none !important; } }

/* ---------- page heads ---------- */
.page-head { position: relative; padding: clamp(24px, 3.5vw, 48px) 0 clamp(20px, 3vw, 36px); isolation: isolate; }
.page-head.has-bg::before {
  content: '';
  position: absolute;
  inset: 0; /* starts below the fixed header, so the header never covers the image */
  z-index: -1;
  background: var(--head-bg) center top / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
}
.page-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s6); flex-wrap: wrap; }
.page-head__main { max-width: 640px; display: grid; gap: var(--s4); }
.page-head.has-bg .display { text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 0 4px 14px rgba(0, 0, 0, 0.12); }
.page-head__desc { font-size: var(--fs-lead); }
.page-head__aside { display: grid; gap: var(--s3); justify-items: end; text-align: right; }
.page-head__brand { font-size: var(--fs-title-lg); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.page-head__aside .eyebrow { color: var(--ink); margin-bottom: -6px; }
.page-head__text { font-size: var(--fs-body); max-width: 420px; }
.page-head__note { font-size: var(--fs-small); white-space: nowrap; }
.page-head--center .page-head__inner { justify-content: center; text-align: center; }
.page-head--center .page-head__main { justify-items: center; }
.rule--head { margin-top: clamp(28px, 4vw, 44px); }
.page-head--center { padding-bottom: 0; }
@media (max-width: 720px) {
  .page-head__inner { flex-direction: column; align-items: flex-start; }
  .page-head__aside { justify-items: start; text-align: left; }
  .page-head--center .page-head__inner { align-items: center; }
}

.section-body { padding-top: clamp(20px, 3vw, 36px); padding-bottom: var(--section); }

/* ---------- reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* media hover zoom */
.media-zoom { display: block; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.media-zoom img { width: 100%; height: auto; transition: transform 0.8s var(--ease-out); }
.media-zoom:hover img { transform: scale(1.04); }
.img-placeholder { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--surface), var(--line-soft)); }

/* ---------- hero ----------
   Same structure on the music and design homepages:
   avatar | name + title + buttons | tagline + socials
   The tagline starts on the title line; buttons and socials share the bottom line. */
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(28px, 3.5vw, 44px); }
.hero__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    'avatar name    .'
    'avatar title   tagline'
    'avatar actions socials';
  grid-template-rows: 1fr auto auto; /* spare height (tall avatar) goes above the name, never under the title */
  column-gap: clamp(28px, 4vw, 56px);
  align-items: end;
}
.hero__name { align-self: end; }
.hero__avatar { grid-area: avatar; align-self: end; width: clamp(150px, 15vw, 210px); color: var(--ink); }
.avatar-svg { width: 100%; height: auto; fill: currentColor; }
.hero__name { grid-area: name; margin-bottom: 8px; font-size: clamp(1rem, 0.85rem + 0.6vw, 1.375rem); font-weight: 700; letter-spacing: 0.03em; line-height: 1; }
.hero__title { grid-area: title; align-self: start; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); }
.hero__tagline { grid-area: tagline; align-self: start; justify-self: end; text-align: right; font-size: var(--fs-body); line-height: 1.5; padding-top: 0.5em;  max-width: 30ch; text-wrap: balance; }
.hero__tagline br { display: none; }
.hero__actions { grid-area: actions; margin-top: clamp(18px, 2vw, 26px); }
.hero__socials { grid-area: socials; justify-self: end; }
.hero__socials .socials { height: 46px; align-items: center; }

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    grid-template-rows: 1fr auto auto auto;
    grid-template-areas:
      'avatar  name    name'
      'avatar  title   title'
      'avatar  actions actions'
      'tagline tagline socials';
  }
  .hero__avatar { width: 150px; }
  .hero__tagline { justify-self: start; text-align: left; align-self: center; padding-top: 0; margin-top: 24px; max-width: 46ch; }
  .hero__socials { align-self: center; margin-top: 24px; }
}

/* phones: small avatar beside the name + title, everything left-aligned on one edge */
@media (max-width: 640px) {
  .hero { padding: 16px 0 24px; }
  .hero__grid {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      'avatar  name'
      'avatar  title'
      'tagline tagline'
      'actions actions'
      'socials socials';
    column-gap: 14px;
    grid-template-rows: 1fr auto auto auto auto;
  }
  .hero__avatar { width: 82px; }
  .hero__name { font-size: 0.875rem; margin-bottom: 4px; }
  .hero__title { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.125rem); line-height: 1.05; }
  .hero__tagline { margin-top: 18px; font-size: var(--fs-body); max-width: none; }
  .hero__actions { margin-top: 16px; gap: 10px 20px; }
  .hero__socials { justify-self: start; margin-top: 16px; }
  .hero__socials .socials { height: auto; }
}

/* ---------- category cards (title overlaps the image like the mockup) ---------- */
.categories { padding-bottom: clamp(32px, 5vw, 64px); }
.categories__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3.5vw, 56px); }
.category { display: grid; gap: 10px; align-content: start; }
.category__media { display: block; overflow: hidden; background: var(--surface); }
.category__media img { width: 100%; height: auto; transition: transform 0.9s var(--ease-out); }
.category:hover .category__media img { transform: scale(1.04); }
.category__label { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin-top: -0.95em; position: relative; z-index: 1; font-size: clamp(2rem, 1.1rem + 2.1vw, 3.25rem); line-height: 1; }
.category__label .display {
  font-size: 1em;
  line-height: 1;
  padding-bottom: 0.08em;
  text-shadow:
    2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
    1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff,
    0 0 10px rgba(255, 255, 255, 0.85);
}
.category__label .i--arrow { width: 0.85em; height: 0.6em; margin-bottom: 0.38em; stroke-width: 1.2; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); }
.category__text { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
@media (max-width: 760px) {
  .categories__grid { grid-template-columns: 1fr; gap: 12px; }
  .category { grid-template-columns: 104px 1fr; grid-template-areas: 'media label' 'media text'; column-gap: 16px; row-gap: 2px; align-items: center; padding: 8px; border: 1px solid var(--line-soft); border-radius: var(--r-lg); }
  .category__media { grid-area: media; align-self: center; border-radius: var(--r); }
  .category__label { grid-area: label; margin-top: 0; align-self: end; align-items: center; font-size: 1.625rem; }
  .category__label .display { text-shadow: none; padding: 0; }
  .category__label .i--arrow { margin: 0; filter: none; }
  .category__text { grid-area: text; align-self: start; font-size: var(--fs-xs); }
}

/* ---------- about ---------- */
.about { padding-bottom: var(--section); }
.about__grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding-top: clamp(28px, 4vw, 52px); }
.about__body { display: grid; gap: var(--s5); }
.about--design { padding-bottom: 0; }
.about--design .about__grid { padding-bottom: clamp(28px, 4vw, 52px); }
.about__hello { text-align: center; }
@media (max-width: 760px) {
  .about__grid { grid-template-columns: 1fr; text-align: left; }
  .about__hello { text-align: left; }
}

/* ---------- homepage sections ---------- */
.home-section { padding-bottom: var(--section); position: relative; isolation: isolate; }
/* Same faded background image as the dedicated page head, behind the section title (full width). */
.home-section.has-bg .section-head::after {
  content: '';
  position: absolute;
  top: 1px; bottom: calc(clamp(20px, 3vw, 32px) * -1);
  left: calc(50% - 50vw); width: 100vw;
  z-index: -1;
  background: var(--head-bg) center top / cover no-repeat;
  filter: grayscale(1);
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 45%, transparent 100%);
  pointer-events: none;
}
.home-section.has-bg .section-head .display { text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff, 0 4px 14px rgba(0, 0, 0, 0.12); }
.theme-design .home-section.has-bg .section-head::after { filter: none; }
.home-section--tight { padding-top: var(--s6); padding-bottom: clamp(40px, 6vw, 80px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s4) var(--s6); padding-top: clamp(28px, 4vw, 52px); margin-bottom: clamp(20px, 3vw, 32px); position: relative; }
.section-head::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--line); }
.section-head__main { display: grid; gap: var(--s3); max-width: 640px; }
.section-head__desc { font-size: var(--fs-lead); }
.section-head__aside { display: flex; align-items: center; gap: var(--s5); }
.section-head__brand { font-weight: 700; font-size: var(--fs-title-md); }
.section-head__brand .eyebrow { font-weight: 500; margin-right: 4px; }
.section-head .admin-tools { width: 100%; }
.contact .section-head::before { left: 0; right: 0; }
.section-head__brand { white-space: nowrap; }
.link--arrow { white-space: nowrap; }
@media (max-width: 640px) {
  .section-head { align-items: flex-start; }
  .section-head__aside { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
}

/* ---------- game cards ---------- */
.game-list, .slot { display: grid; gap: clamp(28px, 3.5vw, 44px); }
.game-list > .game + .game { padding-top: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line); }
.slot + .rule, .home-section .slot ~ .rule { margin-block: clamp(40px, 5vw, 64px); }
.game { display: grid; gap: clamp(16px, 2vw, 24px); }
.slot.is-js { display: grid; }
.slot.is-js > [data-slide] { grid-area: 1 / 1; align-self: start; transition: opacity 0.45s var(--ease), visibility 0.45s; }
.slot.is-js > .is-off { visibility: hidden; opacity: 0; pointer-events: none; }
.game.slide-in { animation: slide-in 0.6s var(--ease-out); }
@keyframes slide-in { from { opacity: 0; transform: translateX(var(--from, 24px)); } }
.game__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.game__media { display: grid; gap: 8px; }
.game__main { border-radius: var(--r); overflow: hidden; background: var(--surface); }
.game__main img { width: 100%; height: auto; transition: opacity 0.35s var(--ease); }
.game__main img.is-swapping { opacity: 0; }
.game__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.game__thumb { align-self: start; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); position: relative; transition: opacity 0.2s, transform 0.2s; }
.game__thumb img { width: 100%; height: auto; }
.game__thumb:hover { opacity: 0.85; transform: translateY(-1px); }
.game__body { display: grid; gap: var(--s3); align-content: start; }
.game__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); }
.game__desc { color: var(--ink-soft); max-width: 62ch; }
.game__desc p + p { margin-top: 0.75em; }
.game__body .actions { margin-top: var(--s3); }
.carousel-nav { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.carousel-nav__count { font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 2.6em; text-align: center; }
@media (max-width: 860px) {
  .game__top { grid-template-columns: 1fr; }
}

/* ---------- track list (Music 1 – built-in player) ---------- */
.tracklist { display: grid; gap: 2px; counter-reset: t; }
.track {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1.55fr) 56px;
  align-items: center;
  gap: var(--s4);
  min-height: 42px;
  padding: 4px 8px;
  margin-inline: -8px;
  border-radius: var(--r);
  transition: background-color 0.25s;
}
.track:hover, .track.is-active { background: var(--surface); }
.track__play { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--ink); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.track__play .i { width: 22px; height: 22px; }
.track__play:hover { background: var(--ink); color: var(--on-ink); }
.track__play:active { transform: scale(0.92); }
.track__play[disabled] { opacity: 0.3; pointer-events: none; }
.track .i--pause { display: none; }
.track.is-playing .i--pause { display: block; }
.track.is-playing .i--play { display: none; }
.track__title { font-weight: 600; font-size: var(--fs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__bar { position: relative; height: 20px; display: flex; align-items: center; --p: 0%; }
.track__seek { -webkit-appearance: none; appearance: none; width: 100%; height: 20px; margin: 0; background: transparent; position: relative; z-index: 2; cursor: pointer; }
.track__seek:disabled { cursor: default; }
.track__seek::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--p), var(--track) var(--p)); border-radius: 2px; }
.track__seek::-moz-range-track { height: 2px; background: var(--track); border-radius: 2px; }
.track__seek::-moz-range-progress { height: 2px; background: var(--ink); }
.track__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4.5px; border-radius: 50%; background: var(--ink); border: 0; transition: transform 0.2s; }
.track__seek::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 0; }
.track__seek:hover::-webkit-slider-thumb { transform: scale(1.35); }
.track__seek:focus-visible { outline: none; }
.track__seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--focus); }
.track__fill { display: none; }
.track__time { font-size: var(--fs-small); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.track.is-empty .track__time { color: var(--muted); font-weight: 500; }
.track.is-empty .track__title { color: var(--ink-soft); }
@media (max-width: 640px) {
  .track { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: 'play title time' 'play bar bar'; row-gap: 0; padding-block: 8px; }
  .track__play { grid-area: play; }
  .track__title { grid-area: title; font-size: 0.9375rem; }
  .track__time { grid-area: time; }
  .track__bar { grid-area: bar; height: 16px; }
}

/* ---------- streaming list (Music 2) ---------- */
.streams { display: grid; gap: var(--s2); }
.stream { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); padding: var(--s4) 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.stream:last-child { border-bottom: 0; }
.stream__title { font-weight: 700; font-size: var(--fs-title-sm); }
.stream__links { display: flex; gap: 10px; flex-wrap: wrap; }
.stream__link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--ink); transition: background-color 0.2s, color 0.2s, transform 0.2s; }
.stream__link:hover { background: var(--ink); color: var(--on-ink); transform: translateY(-2px); }
.stream__link .brand-svg { width: 26px; height: 26px; }

/* ---------- production grid ---------- */
.grid { display: grid; gap: clamp(20px, 2.4vw, 32px) clamp(14px, 2vw, 28px); }
.grid--releases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.4vw, 32px); }
@media (max-width: 1000px) { .grid--releases { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--releases { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--products { grid-template-columns: 1fr; } }
.release { display: grid; gap: var(--s3); align-content: start; }
.release__cover { border-radius: var(--r-sm); align-self: start; }
.release__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.release__title { font-size: var(--fs-title-sm); font-weight: 700; line-height: 1.25; }
.release__artist { font-size: var(--fs-small); line-height: 1.35; margin-top: 2px; }
.release__role { font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }
.release__meta .link--sm { margin-top: 3px; }
@media (max-width: 640px) {
  .release__meta { flex-direction: column; gap: 6px; }
  .release__title { font-size: 0.9688rem; }
}

/* ---------- projects (row cards) ---------- */
.row-list { display: grid; gap: clamp(24px, 3.5vw, 40px); }
.row-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.row-card__media { align-self: start; }
.row-card__body { display: grid; gap: var(--s3); justify-items: start; }
.row-card__text { color: var(--ink-soft); max-width: 62ch; }
.tagline { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 720px) { .row-card { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.product { display: grid; gap: var(--s4); align-content: start; }
.product__media { border-radius: var(--r-lg); }
.product__body { display: grid; gap: var(--s3); }
.product__text { color: var(--ink-soft); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s2); }
.product__price { font-size: var(--fs-title-md); font-weight: 700; white-space: nowrap; }

.tags { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.tags a { font-size: var(--fs-small); color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.tags a:hover, .tags a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }
.tags--cloud { justify-content: center; gap: 12px 28px; }
.tags--cloud a { font-size: var(--fs-lead); color: var(--ink-soft); }
.tagline a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color 0.2s, text-decoration-color 0.2s; }
.tagline a:hover, .tagline a:focus-visible { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- blog / portfolio list ---------- */
.post-list { display: grid; gap: clamp(28px, 4vw, 48px); }
.post-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.post-card.is-flipped { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.post-card.is-flipped .post-card__media { order: 2; }
.post-card__media { border-radius: var(--r); }
.post-card__body { display: grid; gap: var(--s3); justify-items: start; }
.post-card__excerpt { color: var(--ink-soft); max-width: 62ch; }
.post-card--design .post-card__body { gap: var(--s5); }
.post-card--design .display { font-size: var(--fs-display-md); }
.post-card--design .post-card__media { border-radius: var(--r-sm); }
@media (max-width: 760px) {
  .post-card, .post-card.is-flipped { grid-template-columns: 1fr; }
  .post-card.is-flipped .post-card__media { order: 0; }
}

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: clamp(24px, 3.5vw, 40px); }
.pager__num { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r); font-size: 1.125rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; transition: background-color 0.2s, color 0.2s; }
.pager__num:hover { color: var(--ink); background: var(--surface); }
.pager__num.is-current { color: var(--ink); font-weight: 700; position: relative; }
.pager__num.is-current::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: currentColor; border-radius: 2px; }
.pager__arrow { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.pager__arrow .i { width: 20px; height: 20px; stroke-width: 1.5; }
.pager__arrow:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pager__arrow.is-disabled, .pager__arrow[disabled] { opacity: 0.3; pointer-events: none; }
.pager__arrow:first-child { margin-right: 8px; }
.pager__arrow:last-child { margin-left: 8px; }

/* ---------- embeds ---------- */
.embeds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .embeds { grid-template-columns: 1fr; } }
.embed--frame iframe { width: 100%; height: var(--h, 352px); border: 0; border-radius: var(--r-lg); background: var(--surface); }
.embed figcaption, .block-image figcaption, .block-video figcaption { margin-top: var(--s2); font-size: var(--fs-small); color: var(--muted); }
.embed--video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.embed--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__btn { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out), opacity 0.3s; opacity: 0.92; }
.yt__btn:hover img { transform: scale(1.03); opacity: 1; }
.yt__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 52px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: var(--r-lg); background: rgba(20, 20, 20, 0.85); color: #fff; transition: background-color 0.2s, transform 0.3s var(--ease); }
.yt__play .i { width: 26px; height: 26px; }
.yt__btn:hover .yt__play { background: #ff0033; transform: translate(-50%, -50%) scale(1.06); }

/* ---------- detail page (Overview & Music) ---------- */
.detail { padding: clamp(16px, 3vw, 32px) 0 var(--section); }
.crumbs { margin-bottom: var(--s5); }
.crumbs a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--muted); transition: color 0.2s, gap 0.3s var(--ease-out); }
.crumbs a:hover { color: var(--ink); gap: 12px; }
.detail__hero { width: fit-content; max-width: min(680px, 100%); margin: 0 auto; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.detail__hero img { width: auto; max-width: 100%; height: auto; max-height: 70vh; margin-inline: auto; }
.detail__hero--square { max-width: min(440px, 100%); }

.detail__title { margin-top: clamp(24px, 3.5vw, 40px); font-size: var(--fs-h1); font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; text-align: center; text-wrap: balance; }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) clamp(16px, 3vw, 36px); margin-top: var(--s4); color: var(--muted); font-size: var(--fs-body); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta .i { width: 18px; height: 18px; }
.meta a { transition: color 0.2s; }
.meta a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.detail__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s4) var(--s5); margin-top: var(--s6); }
.detail .admin-tools { justify-content: center; margin-top: var(--s4); }
.tabs { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line-soft); }
.tabs [role='tab'], .tabs__single { position: relative; padding: 0 0 14px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); font-weight: 400; color: var(--muted); transition: color 0.25s; }
.tabs__single { color: var(--ink); }
.tabs [role='tab']:hover, .tabs [role='tab'][aria-selected='true'] { color: var(--ink); }
.tabs [role='tab']::after, .tabs__single::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform 0.4s var(--ease-out); border-radius: 2px; }
.tabs [role='tab'][aria-selected='true']::after, .tabs__single::after { transform: scaleX(1); }
.tab-panel { padding-top: clamp(24px, 3.5vw, 40px); animation: fade-up 0.5s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.tab-panel > * + * { margin-top: clamp(20px, 3vw, 32px); }

/* rich text */
.prose { font-size: var(--fs-lead); line-height: 1.7; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4, .block-heading { font-family: var(--font-sans); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.prose h2, h2.block-heading { font-size: var(--fs-title-lg); margin-top: 1.4em; }
.prose h3, h3.block-heading { font-size: var(--fs-title-md); margin-top: 1.2em; }
.tab-panel > .block-heading:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.35em; }
.prose a:not(.btn) { text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .link--ext .i--ext { display: inline; vertical-align: -0.1em; margin-left: 2px; }
.prose img { border-radius: var(--r); }
.prose blockquote, .block-quote { border-left: 2px solid var(--ink); padding: 4px 0 4px 20px; font-size: var(--fs-lead); font-style: italic; }
.block-quote cite { display: block; margin-top: 8px; font-size: var(--fs-small); font-style: normal; color: var(--muted); }
.prose code { font-size: 0.9em; background: var(--surface); padding: 2px 6px; border-radius: var(--r-xs); }
.prose pre { background: var(--surface); padding: 16px; border-radius: var(--r); overflow-x: auto; font-size: var(--fs-small); }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.block-image img, .block-video video { width: 100%; border-radius: var(--r); }
.block-image--small { max-width: 420px; }
.block-image--wide { margin-inline: calc(min(0px, (var(--narrow) - 100vw) / 2 + var(--gutter)) * -0); }
.block-link { font-size: var(--fs-lead); }
.gallery { display: grid; gap: 12px; }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery { align-items: start; }
.gallery img { width: 100%; height: auto; border-radius: var(--r-sm); }
@media (max-width: 560px) { .gallery--3 { grid-template-columns: repeat(2, 1fr); } }
.spacer--s { height: 8px; } .spacer--m { height: 32px; } .spacer--l { height: 72px; }

/* ---------- tags results ---------- */
.tag-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); margin-bottom: var(--s7); }
@media (max-width: 760px) { .tag-results { grid-template-columns: 1fr; } }
.tag-result { display: grid; grid-template-columns: 132px 1fr; gap: var(--s4); align-items: center; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); transition: border-color 0.2s, box-shadow 0.3s, transform 0.3s var(--ease); }
.tag-result:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-2px); }
.tag-result__media { align-self: center; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.tag-result__media img { width: 100%; height: auto; }
.tag-result__body { display: grid; gap: 2px; }
.tag-result__body .muted { font-size: var(--fs-small); line-height: 1.45; }

/* ---------- contact ---------- */
.contact { padding-bottom: var(--section); }
.contact--page { padding-top: clamp(32px, 5vw, 56px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__intro { display: grid; gap: var(--s3); align-content: start; }
.contact__intro .lead { margin-bottom: var(--s5); max-width: 40ch; }
.contact__intro .eyebrow { margin-top: var(--s3); }
.contact__email-row { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.contact__email { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); font-weight: 700; letter-spacing: -0.01em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; word-break: break-all; }
.contact__email:hover { text-decoration-thickness: 2px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.contact__form { display: grid; gap: var(--s4); padding: clamp(18px, 2.6vw, 32px); position: relative; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.field ::placeholder { color: #9a9a9a; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c62828; }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #8a8a8a; }
.select__chev { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%) rotate(90deg); pointer-events: none; color: var(--muted); }
.contact__submit { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.form-status { font-size: var(--fs-small); font-weight: 500; }
.form-status.is-ok { color: #1b7f3b; }
.form-status.is-error { color: #c62828; }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: clamp(40px, 5vw, 64px) 0 var(--s5); }
.site-footer__inner { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'nav switch' 'nav socials' 'legal legal'; gap: 0 var(--s6); }
.site-footer__nav { grid-area: nav; }
.site-footer__nav ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.site-footer__nav a { display: inline-block; font-size: 1.0625rem; line-height: 1.3; color: var(--footer-ink); opacity: 0.92; transition: opacity 0.2s, transform 0.3s var(--ease-out); }
.site-footer__nav a:hover { opacity: 1; transform: translateX(4px); }
.site-footer__switch { grid-area: switch; align-self: start; justify-self: end; display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r); transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.site-footer__switch:hover { background: #fff; color: var(--footer-bg); border-color: #fff; }
.site-footer__switch:hover .i--arrow { transform: translateX(4px); }
.site-footer .socials { grid-area: socials; align-self: end; justify-self: end; }
.site-footer .social { color: #fff; }
.site-footer .social-svg { width: 36px; height: 36px; }
.site-footer__legal { grid-area: legal; margin-top: clamp(28px, 4vw, 40px); padding-top: var(--s4); font-size: var(--fs-xs); color: var(--footer-muted); border-top: 1px solid rgba(255, 255, 255, 0.14); }
@media (max-width: 640px) {
  .site-footer__nav a { font-size: 1rem; }
  .site-footer__switch { font-size: 0.9375rem; padding: 8px 12px; }
  .site-footer .socials { gap: 10px; }
  .site-footer .social-svg { width: 32px; height: 32px; }
}

/* ---------- design mode ---------- */
.theme-design .hero__name { color: var(--ink); }
.theme-design .page-head.has-bg::before { filter: none; }
.theme-design .site-footer__switch:hover { color: var(--footer-bg); }

/* ---------- portfolio viewer (Behance-like) ---------- */
.viewer-bar { position: fixed; inset: 0 0 auto 0; z-index: 100; height: 64px; background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line-soft); }
.viewer-bar__inner { height: 100%; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding-inline: clamp(8px, 2vw, 24px); }
.viewer-bar .round-btn { width: 44px; height: 44px; }
.viewer-bar .round-btn .i { width: 24px; height: 24px; stroke-width: 1.8; }
.viewer-bar__title { text-align: center; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: clamp(1.125rem, 1rem + 0.8vw, 1.625rem); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer { position: relative; min-height: calc(100dvh - 64px); display: flex; flex-direction: column; align-items: center; }
.viewer__page { width: 100%; position: relative; background: #fff; }
.viewer__page + .viewer__page { margin-top: -1px; }
.viewer__page canvas { width: 100%; height: 100%; display: block; }
.viewer__page.is-loading { background: linear-gradient(110deg, #f1f1f4 30%, #fafafa 50%, #f1f1f4 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.viewer__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink); font-weight: 500; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-viewer .admin-tools { position: fixed; top: 76px; right: 16px; z-index: 90; }

/* ---------- admin (edit mode only) ---------- */
[data-admin-only] { display: none !important; }
.is-admin .admin-tools[data-admin-only] { display: flex !important; }
.is-admin .admin-bar[data-admin-only] { display: flex !important; }
.is-admin .admin-chip[data-admin-only] { display: inline-flex !important; }
.admin-tools { flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.admin-tools:empty { display: none !important; }
.admin-chip { align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); border: 1px dashed var(--admin); color: var(--admin); background: #fff; font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-sans); font-style: normal; letter-spacing: 0; transition: background-color 0.2s, color 0.2s; }
.admin-chip .i { width: 15px; height: 15px; stroke-width: 2; }
.admin-chip:hover { background: var(--admin); color: #fff; border-style: solid; }
.admin-chip--add { border-style: solid; }
.admin-bar { position: fixed; left: 16px; bottom: 16px; z-index: 150; align-items: center; gap: 14px; padding: 8px 10px 8px 14px; border-radius: var(--r-lg); background: #111; color: #fff; font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.admin-bar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--admin); box-shadow: 0 0 0 4px rgba(240, 86, 29, 0.25); }
.admin-bar a, .admin-bar button { padding: 6px 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, 0.1); color: #fff; font-size: var(--fs-xs); font-weight: 600; }
.admin-bar a:hover, .admin-bar button:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- 404 ---------- */
.section-body--404 { padding-top: clamp(48px, 10vw, 120px); display: grid; gap: var(--s5); justify-items: center; }

/* ---------- "Hello!" block ----------
   The only colour block: a full-width band in the footer colour. */
.block--ink {
  background: var(--footer-bg);
  color: #fff;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.86);
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.22);
}
.block--ink .rule { display: none; }
.about.block--ink { padding-block: var(--section); }
.about.block--ink .about__grid { padding-block: 0; }
.about.block--ink a { color: #fff; }
/* no divider line right after the band, nor above a section that starts with its faded background image */
.block--ink + .home-section .section-head::before, .block--ink + .contact .section-head::before,
.home-section.has-bg .section-head::before { display: none; }

/* ---------- image glow ----------
   On hover (or when scrolled to the middle of the screen on touch devices) an image gets a soft
   shadow in its own main colour. --glow is set by main.js; grey images keep a neutral shadow. */
.has-glow { --glow: 0 0% 30%; transition: box-shadow 0.5s var(--ease); }
.has-glow.is-glow,
:is(.release, .product, .post-card, .row-card, .category, .game, .detail__hero):hover .has-glow,
.has-glow:hover { box-shadow: 0 22px 56px -12px hsl(var(--glow) / 0.8), 0 6px 18px -6px hsl(var(--glow) / 0.45); }
@media (prefers-reduced-motion: reduce) { .has-glow { transition: none; } }

/* ---------- lighter text on phones ---------- */
@media (max-width: 720px) {
  .game__desc, .post-card__excerpt, .row-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .section-head__desc, .category__text, .product__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .admin-bar, .menu-btn { display: none !important; }
  body { padding-top: 0; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- compact layout on phones ---------- */
@media (max-width: 640px) {
  :root { --section: 40px; }
  .about__body { gap: var(--s3); }
  .track { min-height: 0; padding-block: 5px; }
  .track__bar { height: 12px; }
  .game__body { gap: 8px; }
  .product { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 14px; align-items: start; }
  .product__media { border-radius: var(--r); align-self: start; }
  .product__body { gap: 6px; }
  .product__text { font-size: var(--fs-small); line-height: 1.5; }
  .product__foot { flex-wrap: wrap; gap: 6px 12px; margin-top: 2px; }
  .product__price { font-size: var(--fs-title-sm); }
  .post-card { gap: 14px; }
  .row-card { gap: 14px; }
  .section-head__desc, .page-head__desc { font-size: var(--fs-body); }
  .contact__intro .lead { margin-bottom: var(--s3); }
}
