/* =====================================================================
   AionStories.com — Studio homepage
   Brand: warm ink + gold/starlight, literary (Fraunces) + clean (Inter).
   Distinct from The Last Ark's cyan/amber command-deck HUD.
   Single sheet, organized by section. Vanilla CSS, no build.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* surfaces */
  --void: #04060f;          /* page bg — deep navy (matches the logo) */
  --void-2: #0a0e1c;        /* panels */
  --void-3: #0e1322;        /* cards / elevated */
  --void-4: #141d30;        /* hover surface */

  /* text */
  --starlight: #f5f1e6;     /* primary text, warm off-white */
  --muted: #b6b0c6;         /* secondary text */
  --muted-dim: #847e95;     /* tertiary / labels */

  /* accents */
  --gold: #e8c37e;          /* primary accent — eternity/premium */
  --gold-bright: #f6dca2;
  --gold-deep: #b8893f;
  --blue: #33a6ff;          /* secondary accent — from the logo glow */
  --ember: #e0a26a;         /* warm tertiary */
  --cyan: #46d9ff;          /* The Last Ark accent — used ONLY in its section */

  /* lines & glows */
  --line: rgba(245, 241, 230, 0.10);
  --line-strong: rgba(245, 241, 230, 0.20);
  --gold-line: rgba(232, 195, 126, 0.32);
  --glow-gold: rgba(232, 195, 126, 0.45);

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* metrics */
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.16, 0.84, 0.3, 1);

  color-scheme: dark;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(232, 195, 126, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 12% 22%, rgba(51, 166, 255, 0.11), transparent 55%),
    radial-gradient(ellipse 70% 60% at 88% 75%, rgba(184, 137, 63, 0.09), transparent 60%);
  background-attachment: fixed;
  color: var(--starlight);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

::selection { background: var(--gold); color: #1a1206; }

/* accessible skip link */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1c1305;
  font-size: 13px;
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: none; }

[data-placeholder] { opacity: 0.78; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Texture overlays (grain + vignette) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

main { position: relative; z-index: 2; }

.section {
  position: relative;
  padding-block: clamp(72px, 12vw, 160px);
  scroll-margin-top: 84px;
}

.section--tight { padding-block: clamp(56px, 8vw, 110px); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-head--center .kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-optical-sizing: auto;
}

.h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.accent { color: var(--gold); }
.accent-italic { font-style: italic; color: var(--gold); }

/* gold gradient text */
.grad-gold {
  background: linear-gradient(100deg, var(--gold-bright) 0%, var(--gold) 42%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* constellation divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto clamp(28px, 4vw, 44px);
  color: var(--gold);
  opacity: 0.8;
}
.divider svg { overflow: visible; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: linear-gradient(100deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1c1305;
  box-shadow: 0 6px 26px -8px var(--glow-gold);
}
.btn--primary:hover {
  box-shadow: 0 12px 40px -8px var(--glow-gold);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--starlight);
  background: rgba(245, 241, 230, 0.015);
}
.btn--ghost:hover {
  border-color: var(--gold-line);
  background: rgba(232, 195, 126, 0.07);
  transform: translateY(-2px);
}

.btn--cyan {
  background: linear-gradient(100deg, #7fe7ff, var(--cyan) 60%, #1ea6cf);
  color: #04212c;
  box-shadow: 0 6px 26px -8px rgba(70, 217, 255, 0.5);
}
.btn--cyan:hover {
  box-shadow: 0 12px 40px -8px rgba(70, 217, 255, 0.6);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 13.5px; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--gold);
  transition: gap 0.3s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover svg { transform: translateX(2px); }

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad);
  transition: padding 0.4s var(--ease), background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-block: 12px;
  background: rgba(8, 7, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.brand__mark {
  height: 38px; width: auto;
  flex: none;
  filter: drop-shadow(0 2px 9px rgba(51, 166, 255, 0.22));
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark { transform: scale(1.07); }
.brand__word { height: 21px; width: auto; }

.nav__links {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  padding-block: 6px;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--starlight); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="true"] { color: var(--starlight); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); background: var(--gold); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* language toggle */
.lang {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 3px;
  font-size: 12.5px;
  font-weight: 600;
}
.lang__btn {
  padding: 5px 11px;
  border-radius: 100px;
  color: var(--muted-dim);
  letter-spacing: 0.04em;
  transition: color 0.25s ease, background 0.25s ease;
}
.lang__btn[aria-pressed="true"] {
  background: var(--gold);
  color: #1c1305;
}

/* mobile menu toggle */
.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--starlight);
  transition: background 0.2s ease;
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0; width: 18px; height: 1.5px;
  background: var(--starlight);
  transition: transform 0.3s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 140px 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#starfield { width: 100%; height: 100%; display: block; }

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 36%, transparent 30%, var(--void) 92%),
    linear-gradient(180deg, transparent 60%, var(--void) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  text-align: center;
}

.hero__kicker {
  justify-content: center;
}
.hero__kicker::after {
  content: "";
  width: 30px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 9vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 6px auto 4px;
}
.hero__title .line { display: block; }
.hero__title .line-2 { font-style: italic; }

.hero__sub {
  max-width: 56ch;
  margin: 26px auto 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
}

.hero__cta {
  justify-content: center;
  margin-top: 38px;
}

.scrollcue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.scrollcue__line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.scrollcue__line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--gold-bright);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% { top: -50%; }
  100% { top: 120%; }
}

/* ---------- 8. Manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-inline: auto;
}
.manifesto__text .soft { color: var(--muted-dim); }
.manifesto__note {
  margin-top: 30px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
}

/* ---------- 9. Featured game (The Last Ark) ---------- */
.featured { position: relative; }
/* faint cyan wash to bind this section to the game's accent */
.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 82% 28%, rgba(70, 217, 255, 0.07), transparent 60%);
}
.featured > .wrap { position: relative; }

.featured .kicker { color: var(--cyan); }
.featured .kicker::before { background: linear-gradient(90deg, transparent, var(--cyan)); }

/* cinematic key-art banner (The Last Ark) */
.tla-banner {
  display: block;
  position: relative;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(70, 217, 255, 0.22);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.9), 0 0 70px -42px rgba(70, 217, 255, 0.35);
}
.tla-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease);
}
.tla-banner:hover img { transform: scale(1.03); }
.tla-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(4, 6, 15, 0.55));
}

.featured__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.featured__index {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.featured__title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  margin-bottom: 10px;
}
.featured__tagline {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--starlight);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 20px;
}
.featured__desc {
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 26px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(70, 217, 255, 0.28);
  color: #bfeeff;
  background: rgba(70, 217, 255, 0.05);
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}
.status .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #62e6a0;
  box-shadow: 0 0 0 4px rgba(98, 230, 160, 0.16);
}

/* framed primary visual */
.featured__visual { perspective: 1000px; }
.frame {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(160deg, rgba(70, 217, 255, 0.5), rgba(245, 241, 230, 0.06) 40%, rgba(70, 217, 255, 0.18));
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), 0 0 60px -30px rgba(70, 217, 255, 0.4);
  transition: transform 0.5s var(--ease);
}
.frame__inner {
  position: relative;
  border-radius: calc(var(--radius) - 1px);
  overflow: hidden;
  background: var(--void-2);
}
.frame__inner img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.frame:hover .frame__inner img { transform: scale(1.04); }
.frame__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 100px;
  color: #04212c;
  background: linear-gradient(100deg, #7fe7ff, var(--cyan));
  box-shadow: 0 6px 20px -6px rgba(70, 217, 255, 0.6);
}

/* gallery strip */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(40px, 5vw, 64px);
}
.shot {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--void-2);
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.shot:hover img { transform: scale(1.07); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 14px 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--starlight);
  background: linear-gradient(180deg, transparent, rgba(8, 7, 13, 0.85));
}

/* ---------- 10. Worlds (games grid) ---------- */
.worlds__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.world {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--void-3);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.5s var(--ease);
}
.world:hover {
  transform: translateY(-6px);
  border-color: var(--gold-line);
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.85), 0 0 40px -28px var(--glow-gold);
}
.world__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.world__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.world:hover .world__cover img { transform: scale(1.06); }
.world__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(22, 18, 33, 0.9));
}
.pill {
  position: absolute;
  z-index: 2;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
  background: rgba(8, 7, 13, 0.55);
  border: 1px solid var(--line-strong);
}
.pill--live { color: #8bf0bd; border-color: rgba(98, 230, 160, 0.4); }
.pill--soon { color: var(--muted); }

.world__body {
  position: relative;
  z-index: 1;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.world__kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.world__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.1;
}
.world__desc { font-size: 0.95rem; color: var(--muted); flex: 1; }
.world__foot { margin-top: 10px; }

/* generative cover for unannounced worlds */
.world--soon .world__cover {
  background:
    radial-gradient(circle at 30% 30%, rgba(51, 166, 255, 0.38), transparent 45%),
    radial-gradient(circle at 72% 64%, rgba(232, 195, 126, 0.28), transparent 50%),
    linear-gradient(160deg, #15111f, #0b0912);
}
.world--soon .world__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245, 241, 230, 0.5) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000, transparent 75%);
  opacity: 0.5;
}
.world--soon .world__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.85;
}
.world--soon:hover { transform: translateY(-4px); }

/* ---------- 11. Studio / About ---------- */
.studio__lead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.32;
  max-width: 24ch;
}
.studio__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.studio__copy p { color: var(--muted); margin-bottom: 16px; max-width: 50ch; }
.studio__copy p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  gap: 14px;
}
.pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(245, 241, 230, 0.025), transparent);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.pillar:hover { border-color: var(--gold-line); background: linear-gradient(160deg, rgba(232, 195, 126, 0.05), transparent); }
.pillar__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  background: rgba(232, 195, 126, 0.06);
}
.pillar__icon svg { width: 21px; height: 21px; }
.pillar h3 { font-size: 1.18rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.pillar p { font-size: 0.92rem; color: var(--muted); }

/* ---------- 12. Connect + Footer ---------- */
.connect {
  text-align: center;
  border-radius: var(--radius);
  padding: clamp(44px, 7vw, 84px) var(--pad);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(232, 195, 126, 0.12), transparent 65%),
    linear-gradient(160deg, var(--void-2), var(--void));
  border: 1px solid var(--line);
}
.connect h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 16px; }
.connect p { color: var(--muted); max-width: 48ch; margin: 0 auto 30px; }

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease), background 0.3s ease;
}
.social:hover {
  color: var(--gold);
  border-color: var(--gold-line);
  background: rgba(232, 195, 126, 0.06);
  transform: translateY(-3px);
}
.social svg { width: 19px; height: 19px; }

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand .brand { margin-bottom: 16px; }
.footer__slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--muted);
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  padding-block: 5px;
  transition: color 0.25s ease;
}
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-dim);
}

/* ---------- 13. Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 5vw;
  background: rgba(4, 3, 8, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 120px -30px #000;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  color: var(--starlight);
  background: rgba(8, 7, 13, 0.6);
}
.lightbox__close:hover { border-color: var(--gold-line); color: var(--gold); }

/* ---------- 14. Scroll reveal (opt-in; safe with JS off) ---------- */
@media (prefers-reduced-motion: no-preference) {
  body.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
  }
  body.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
  }
  /* stagger groups */
  [data-stagger] > * { transition-delay: calc(var(--i, 0) * 90ms); }
}

/* ---------- 15. Mobile menu (built from nav links) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: var(--pad);
  background: rgba(8, 7, 13, 0.97);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.nav.is-open + .mobile-menu,
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--starlight);
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 26px; align-self: flex-start; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .featured__grid { grid-template-columns: 1fr; gap: 40px; }
  .featured__visual { max-width: 460px; }
  .studio__body { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: auto auto; }
  .nav__links { display: none; }
  .nav__actions .btn--primary { display: none; }
  .nav__toggle { display: inline-flex; }
  .gallery { grid-template-columns: 1fr; }
  .frame__inner img { aspect-ratio: 16 / 11; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1; }
}

/* ---------- 17. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scrollcue__line::after { display: none; }
}

/* print-ish / no-js fallback handled by reveal opt-in above */
