/* ==========================================================================
   Auhmline Studio — Modern design system
   Brand anchors kept from the original site:
     cream #f4f0ec · cyan #00F1F9 · dark studio background
   ========================================================================== */

:root {
  /* Palette (original brand colors, re-tuned for a dark modern theme) */
  --bg:            #0a0b0f;
  --bg-2:          #0e1016;
  /* Element bubbles — dark plates (round 9: darker than the old white tints) */
  --surface:       rgba(9, 10, 14, 0.68);
  --surface-2:     rgba(15, 16, 22, 0.8);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #f4f0ec;   /* original cream */
  --muted:         #a7adb8;
  --muted-2:       #6f7683;

  --accent:        #00f1f9;   /* original cyan hover color */
  --accent-ink:    #041012;
  --accent-soft:   rgba(0, 241, 249, 0.12);
  --accent-glow:   rgba(0, 241, 249, 0.35);

  /* Original tile wall (home opening page only) */
  --wall-tile:       rgb(20, 20, 20);    /* original tile color */
  --wall-tile-hover: rgb(40, 40, 40);    /* original tile hover */

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --container: 1140px;
  --nav-h: 72px;
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }

/* Ambient background: soft cyan glow top + subtle grid, like a studio monitor */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 50% -10%, var(--accent-soft), transparent 65%),
    linear-gradient(var(--bg-2), var(--bg) 40%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Home opening page: the original neon canvas + tile wall ----------
   Only home.html carries body.page-home and #tiles; every other page keeps
   the dark studio ambience above. Rebuilt from the original site's
   home-background.css / background.js with the original values:
     • panning neon gradient (cyan → magenta → cyan), 200% wide, 10s loop;
     • #tiles = fixed grid of dark tiles, each inset 0.5px so the gradient
       shows through as thin glowing lines; hover brightens a tile; clicking
       one fades the whole wall away in a staggered ripple (click again to
       restore) — see js/background.js. */
body.page-home {
  background: linear-gradient(to right, rgb(0, 255, 255), rgb(255, 0, 255), rgb(0, 255, 255));
  background-size: 200%;
  animation: background-pan 10s linear infinite;
}
@keyframes background-pan {
  from { background-position: 0% center; }
  to   { background-position: -200% center; }
}
/* Suppress the studio glow/grid ambience on home — the original front page
   is pure neon + tiles. */
body.page-home::before,
body.page-home::after { display: none; }

/* The tile wall — sits above the gradient, below all page content */
#tiles {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  /* --columns / --rows are set by js/background.js from the viewport size */
  grid-template-columns: repeat(var(--columns, 24), 1fr);
  grid-template-rows: repeat(var(--rows, 14), 1fr);
}
#tiles .tile { position: relative; cursor: pointer; transition: opacity 480ms ease; }
/* The visible tile surface — inset 0.5px lets the neon gradient peek through */
#tiles .tile::before {
  content: "";
  position: absolute;
  inset: 0.5px;
  background-color: var(--wall-tile);
  transition: background-color 160ms ease;
}
#tiles .tile:hover::before { background-color: var(--wall-tile-hover); }
/* Toggled state (click a tile): the wall fades away to reveal pure neon.
   The tiles stay clickable so another click brings the wall back. */
body.toggled #tiles .tile { opacity: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
/* Section headings are bare text — they get their own dark plate (round 9) */
.section-head {
  width: fit-content;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  padding: 18px 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head p { color: var(--muted); margin-top: 12px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

/* On the home page the top bar stays hidden over the main screen and slides in once you scroll past it (round 10) */
body.page-home .site-nav { transform: translateY(-100%); opacity: 0; transition: transform 450ms ease, opacity 450ms ease; }
body.page-home.nav-scrolled .site-nav { transform: none; opacity: 1; }
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-cookie-btn {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.nav-cookie-btn:hover { color: var(--text); border-color: var(--accent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(10, 11, 15, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cookie-btn { margin-left: 0; }
}

/* ---------- Hero (home) — the original front page ----------
   Full viewport, no photo: the neon tile wall IS the backdrop. A centered
   logo with a blurred glow behind it (the original .shadow element) and a
   "Scroll Down" cue that fades in after load. The hero has pointer-events
   off so clicks reach the tile wall (tiles are interactive); its links
   re-enable them. */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;    /* logo stage, then tagline + subcopy (original order) */
  align-items: center;
  justify-content: center;
  gap: 26px;
  pointer-events: none;      /* let clicks reach the tile wall behind */
}
.hero a { pointer-events: auto; }   /* but not the interactive bits */

/* Logo + glow share one grid cell so they stay perfectly centered */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(460px, 82vw);
}
/* Blurred duplicate of the logo behind it — the original .shadow glow */
.hero-glow {
  grid-area: 1 / 1;
  width: 100%;
  filter: blur(20px);
  transform: scale(1.1);
  opacity: 0;
  animation: hero-glow-fade 5s ease 1s infinite alternate;   /* original fadein */
  pointer-events: none;
}
@keyframes hero-glow-fade {
  0%      { opacity: 0; }
  66.66%  { opacity: 0.6; }
  100%    { opacity: 0.8; }
}
.hero-logo {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  transition: transform 1s ease-in;   /* original hover scale */
}
.hero a:hover .hero-logo { transform: scale(1.02); }

/* Tagline + subcopy from the original front page (#first_background),
   now centered under the logo over the tile wall — cream "on-wall" ink. */
/* Hero tagline + subcopy share one bubble (round 10) */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  padding: 28px 36px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero-tag {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: #f4f0ec;   /* cream on the dark wall */
}
.hero-sub {
  margin: 0;
  max-width: 640px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(244, 240, 236, 0.78);
}
.hero-sub strong { color: #f4f0ec; }

/* "Scroll Down" cue — text + animated gradient line (Closest, round 10) */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
.scroll-cue:hover { color: var(--accent); }

/* ---------- Intro cards (home) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

/* The intro cards + techniques copy live inside one shared bubble (round 10) */
.intro-bubble {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
/* Light see-through intro cards — overrides live after the hover rules */
.intro-card {
  position: relative;
  display: block;
  padding: 30px 26px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.intro-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.intro-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.intro-card p { color: var(--muted); font-size: 0.98rem; }
.intro-card .card-cta {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  transition: background var(--transition), transform var(--transition);
}
.intro-card:hover .card-cta { background: var(--accent-soft); transform: translateX(3px); }

/* Light see-through intro cards (home): frosted cream plates, black text */
.intro-bubble .intro-card {
  background: rgba(244, 240, 236, 0.72);
  color: #0a0b0f;
  border-color: rgba(10, 11, 15, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.intro-bubble .intro-card:hover {
  background: rgba(244, 240, 236, 0.9);
  border-color: var(--accent);
}
.intro-bubble .intro-card h3 { color: #0a0b0f; }
.intro-bubble .intro-card p { color: rgba(10, 11, 15, 0.78); }
.intro-bubble .intro-card .card-cta { border-color: rgba(10, 11, 15, 0.35); color: #007c80; }
.intro-bubble .intro-card:hover .card-cta { background: rgba(0, 241, 249, 0.3); }

/* ---------- Works carousel ---------- */
/* The section heading lives inside the showcase bubble (round 10) */
.showcase-bubble {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.showcase-bubble .section-head { width: auto; max-width: none; margin: 0 0 26px; padding: 0; background: none; border: 0; }
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track {
  display: flex;
  transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1);
}
.slide {
  flex: 0 0 100%;
  min-width: 0;
}
/* Cards stretch to the tallest slide and the grid flexes to fill, so every
   SoundCloud player sits at the same vertical position (Jackal's level) */
.slide-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 0;
  flex: 1 1 auto;
}
@media (max-width: 820px) { .slide-grid { grid-template-columns: 1fr; } }
.slide-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
}
@media (max-width: 820px) { .slide-cover { aspect-ratio: 16 / 9; } }
.slide-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.slide-card:hover .slide-cover img { transform: scale(1.035); }
.slide-body { padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 14px; }
.slide-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.slide-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.slide-body p { color: var(--muted); font-size: 0.99rem; }
.slide-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #37f4fa; }
.btn-ghost { border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.slide-player { padding: 0 clamp(16px, 2.5vw, 28px) clamp(16px, 2.5vw, 28px); }
.slide-player iframe {
  width: 100%;
  height: 166px;
  border: 0;
  border-radius: var(--radius);
  background: #000;
}

.carousel-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.carousel-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  background: var(--border-strong);
  transition: background var(--transition), transform var(--transition);
}
.carousel-dots button.active { background: var(--accent); transform: scale(1.25); }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-arrows button {
  width: auto;
  min-width: 56px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.carousel-arrows button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* Global SoundCloud volume control (sits between dots and arrows) */
.carousel-volume {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.carousel-volume input[type="range"] {
  width: 110px;
  accent-color: var(--accent);
  cursor: pointer;
}
@media (max-width: 720px) {
  .carousel-ui { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Testimonial slide (Jackal) ---------- */
.quote-list { display: grid; gap: 12px; }
.quote-list blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
}
.quote-credit {
  display: table;
  margin-inline: auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted-2);
  margin-top: 4px;
}

/* ---------- Forms ---------- */
.form-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
/* The Contact Form heading lives inside the form panel bubble (round 10) */
.form-panel .section-head { width: auto; max-width: none; margin: 0 0 26px; padding: 0; background: none; border: 0; }
.form-panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; text-align: left; }
.field label, .form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}
.form-input, input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.98rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea { resize: vertical; min-height: 140px; }
.form-input:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

/* radio pills (feedback / survey) */
.radio-flex { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.radio-group { position: relative; }
.radio-label {
  position: relative;
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  color: var(--muted);
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition);
}
.radio-label input { position: absolute; opacity: 0; pointer-events: none; }
.radio-label:hover { border-color: var(--border-strong); color: var(--text); }
.radio-label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.radio-checkmark { display: none; }

.form-status { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.form-status .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.8);
  margin-right: 6px;
}
.form-actions { display: flex; justify-content: center; margin-top: 22px; }
.form-actions .btn { min-width: 170px; justify-content: center; }

.cf-turnstile { margin: 4px auto 8px; }

.success-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.success-message h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 8px; color: var(--accent); }
.success-message p { color: var(--muted); }

/* ---------- Modal (store contact) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  padding: clamp(24px, 4vw, 40px);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  transition: color var(--transition), border-color var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.6);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid > a:first-child { grid-column: 1 / -1; }
.footer-grid a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-grid a:hover { color: var(--accent); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.footer-social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--transition);
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-copy { text-align: center; margin-top: 32px; color: var(--muted-2); font-size: 0.85rem; }

/* ---------- About page ---------- */
.about-portrait {
  width: min(340px, 70vw);
  margin: 36px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -30px var(--accent-glow);
}
.about-block {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.about-block p { color: var(--muted); margin-top: 10px; }
.about-block a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* Unified about bubble (round 11): the three quote sections share one plate */
.about-bubble {
  max-width: 760px;
  margin: 0 auto clamp(28px, 4vw, 40px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.about-bubble h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}
.about-bubble h2:first-child { margin-top: 0; }
.about-bubble p { color: var(--muted); margin-top: 10px; }
.about-bubble a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
/* About intro (round 12): portrait sits left of the greeting bubble */
.about-intro {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  max-width: 900px;
  margin: 0 auto clamp(28px, 4vw, 40px);
}
.about-intro .about-portrait {
  width: min(300px, 40%);
  flex-shrink: 0;
  margin: 0;
}
.about-intro .about-block {
  flex: 1;
  margin: 0;
}
@media (max-width: 720px) {
  .about-intro { flex-direction: column; }
  .about-intro .about-portrait { width: min(340px, 80vw); }
}

/* ---------- Store page ---------- */
.store-frame-wrap { padding-top: var(--nav-h); min-height: 100svh; position: relative; }
.store-frame-wrap iframe {
  width: 100%;
  height: calc(100svh - var(--nav-h));
  border: 0;
  display: block;
}
.store-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(10, 11, 15, 0.85);
  color: var(--accent);
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px -8px var(--accent-glow);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(2px);
  transition: opacity 700ms ease, transform 700ms ease, filter 700ms ease;
}
.reveal.active { opacity: 1; transform: none; filter: none; }

/* ---------- Misc ---------- */
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2f3a; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #39404e; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
