/* ==========================================================================
   Frosty Mammoth Studios — site styles
   Edit the tokens in :root to adjust the whole site.
   ========================================================================== */

:root {
  --bg: #050d1a;
  --bg-raised: #0a1628;
  --surface: #0b1a2f;
  --border: rgba(160, 210, 255, 0.1);
  --border-strong: rgba(160, 210, 255, 0.2);
  --text: #eef6ff;
  --muted: #a3b6cf;
  --dim: #71869f;

  --ice: #8fdcff;            /* primary accent */
  --ice-bright: #d6f3ff;
  --ice-ink: #04142a;        /* text on ice */
  --glacier: #3b82f6;
  --danger: #ff8fa3;

  --font-display: "Barlow Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Barlow", ui-sans-serif, system-ui, sans-serif;

  --radius: 22px;
  --radius-lg: 32px;
  --container: 1280px;
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html.nav-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 800; }

::selection { background: var(--ice); color: var(--ice-ink); }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.sr-only {
  position: absolute; 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; top: 12px; left: 12px; z-index: 200;
  padding: 0.7rem 1rem; border-radius: 10px;
  background: var(--ice); color: var(--ice-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons & small components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 700 1rem/1 var(--font-body);
  letter-spacing: 0.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s, background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:disabled { opacity: 0.65; cursor: progress; transform: none; }

.btn-primary {
  background: linear-gradient(180deg, var(--ice-bright), var(--ice));
  color: var(--ice-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 30px -10px rgba(143, 220, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 0 0 6px rgba(143, 220, 255, 0.15), 0 18px 40px -12px rgba(143, 220, 255, 0.75);
}
.btn-ghost {
  background: rgba(10, 22, 40, 0.45); color: var(--text);
  border-color: rgba(214, 243, 255, 0.35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(214, 243, 255, 0.12); border-color: rgba(214, 243, 255, 0.6); transform: translateY(-2px); }
.btn-dark { background: var(--ice-ink); color: var(--ice-bright); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(4, 20, 42, 0.7); }
.btn-sm { padding: 0.7rem 1.15rem; font-size: 0.92rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.42rem 0.85rem; border-radius: 999px;
  background: rgba(143, 220, 255, 0.12); color: var(--ice);
  border: 1px solid rgba(143, 220, 255, 0.35);
  font: 700 0.8rem/1 var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 0 rgba(143, 220, 255, 0.6); animation: pulse 2.2s infinite;
}

.kicker {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1rem;
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ice);
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }

.ice-text {
  background: linear-gradient(100deg, #ffffff 0%, var(--ice-bright) 30%, var(--ice) 60%, #5fb4ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled,
html.nav-open .site-header {
  background: rgba(5, 13, 26, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(4, 20, 42, 0.6);
}
.brand img {
  width: 44px; height: 44px;
  filter: drop-shadow(0 2px 8px rgba(4, 20, 42, 0.6));
  transition: transform 0.4s var(--ease-out);
}
.brand:hover img { transform: rotate(-6deg) scale(1.08); }

.nav-links { display: flex; align-items: center; gap: 2rem; font-weight: 600; font-size: 1rem; }
.nav-links a:not(.btn) {
  position: relative; color: rgba(238, 246, 255, 0.85);
  text-shadow: 0 1px 10px rgba(4, 20, 42, 0.7);
  transition: color 0.2s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--ice); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:not(.btn):hover,
.nav-links a[aria-current] { color: #fff; }
.nav-links a:not(.btn):hover::after,
.nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; position: relative; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(5, 13, 26, 0.5); color: var(--text); cursor: pointer;
}
.nav-toggle-bar {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
    background: rgba(5, 13, 26, 0.97);
    border-bottom: 1px solid var(--border);
    font-size: 1.15rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--text); text-shadow: none; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 1.25rem; padding: 1rem; font-size: 1rem; }
}
@media (max-width: 420px) {
  .brand { font-size: 1.2rem; gap: 0.55rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ---------- Hero ----------
   Phones and short screens: the artwork sits under the header with the text below it.
   Wide screens: full-screen artwork with the text over the frozen lake. */
.hero { position: relative; isolation: isolate; }
.hero-media { position: relative; overflow: hidden; margin-top: var(--header-h); aspect-ratio: 3 / 2; background: var(--bg); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, transparent 70%, var(--bg));
}
.snow { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; }

.hero-content { position: relative; z-index: 3; padding-block: 0.5rem 3.5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4rem); font-weight: 800; line-height: 0.98;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.hero h1 .ice-text { display: block; }
.lede { margin-top: 0.9rem; max-width: 36rem; font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }

@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (min-aspect-ratio: 5/4) and (min-height: 600px) {
  .hero { height: 100svh; min-height: 600px; }
  .hero-media { position: absolute; inset: 0; margin-top: 0; aspect-ratio: auto; }
  .hero-media::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 180px; z-index: 2; pointer-events: none;
    background: linear-gradient(rgba(5, 13, 26, 0.55), transparent);
  }
  .hero-media::after {
    background: linear-gradient(to bottom, transparent 62%, rgba(5, 13, 26, 0.7) 82%, var(--bg));
  }
  .hero-content {
    position: absolute; inset: auto 0 0;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
    padding-block: 0 clamp(1.5rem, 5vh, 3rem);
  }
  .hero h1 { font-size: clamp(2.2rem, 3.8vw, 3.8rem); text-shadow: 0 4px 30px rgba(4, 20, 42, 0.6); }
  .hero h1 .ice-text { display: inline; }
  .lede { margin-top: 0.5rem; color: #c8d8ea; text-shadow: 0 2px 16px rgba(4, 20, 42, 0.8); }
  .hero-actions { margin-top: 0; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.section--flush-top { padding-top: clamp(1rem, 3vw, 2rem); }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.06) 18%, rgba(59, 130, 246, 0.06) 82%, transparent);
}
.section-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-lede { margin-top: 1.1rem; max-width: 38rem; color: var(--muted); font-size: 1.15rem; }

/* ---------- Games teaser ---------- */
.teaser {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: center; gap: 2rem;
  min-height: 420px; padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(59, 130, 246, 0.45);
}
.teaser-bg {
  position: absolute; inset: -30px; z-index: -2;
  background: url("/assets/hero.webp") 18% 45% / cover no-repeat;
  filter: blur(10px) saturate(1.15) brightness(0.7);
  transform: scale(1.08);
  transition: transform 1.2s var(--ease-out);
}
.teaser:hover .teaser-bg { transform: scale(1.13); }
.teaser::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(5, 13, 26, 0.94) 25%, rgba(5, 13, 26, 0.6) 65%, rgba(5, 13, 26, 0.3));
}
.teaser::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 243, 255, 0.1), transparent 45%);
}
.teaser:hover::after { opacity: 1; }
.teaser-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.teaser h3 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
.teaser p { max-width: 34rem; color: #c8d8ea; font-size: 1.1rem; }
.teaser-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.teaser-mark {
  justify-self: center; width: min(240px, 100%); aspect-ratio: 1;
  color: var(--ice-bright);
  filter: drop-shadow(0 0 24px rgba(143, 220, 255, 0.65));
  animation: spin 60s linear infinite;
}

@media (max-width: 760px) {
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .teaser-mark { grid-row: 1; width: 110px; justify-self: start; }
}

/* ---------- Studio ---------- */
.studio-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.studio-copy h2 { margin-bottom: 1.6rem; }
.studio-copy p:not(.kicker) { max-width: 44rem; color: var(--muted); font-size: 1.15rem; }
.studio-copy p + p { margin-top: 1.2rem; }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.value {
  padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(160, 210, 255, 0.025);
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease-out);
}
.value:hover { border-color: rgba(143, 220, 255, 0.4); background: rgba(143, 220, 255, 0.05); transform: translateY(-3px); }
.value-icon {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 1.2rem;
  border-radius: 14px; background: rgba(143, 220, 255, 0.12); color: var(--ice);
}
.value-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.value h3 { margin-bottom: 0.5rem; font-size: 1.45rem; text-transform: uppercase; letter-spacing: 0.02em; }
.value p { color: var(--muted); font-size: 1rem; line-height: 1.55; }

@media (max-width: 1024px) { .studio-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Community ---------- */
.social-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; }
.social-card {
  --brand: var(--ice);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  padding: 1.6rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
}
.social-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%);
}
.social-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); box-shadow: 0 30px 60px -35px var(--brand); }
.social-card:hover::after { opacity: 1; }
.social-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.5rem;
  border-radius: 16px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.social-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.social-name { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.social-handle { margin-top: 0.45rem; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.social-cta {
  display: inline-flex; align-items: center; gap: 0.35rem; margin-top: auto; padding-top: 1.5rem;
  font-weight: 700; color: var(--brand);
}
.social-cta svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.social-card:hover .social-cta svg { transform: translate(2px, -2px); }
.social--bsky { --brand: #3d9bff; }
.social--x { --brand: #e7eef6; }
.social--ig { --brand: #ff5c9a; }
.social--reddit { --brand: #ff6a2b; }
.social--discord { --brand: #7b87ff; }

/* Discord gets a full-width featured card */
.social-feature { grid-column: 1 / -1; }
.social-card--wide {
  flex-direction: row; align-items: center; gap: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(40rem 18rem at 0% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%),
    var(--surface);
}
.social-card--wide .social-icon { flex: none; width: 68px; height: 68px; margin-bottom: 0; border-radius: 20px; }
.social-card--wide .social-icon svg { width: 34px; height: 34px; }
.social-body { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.social-card--wide .social-name { font-size: clamp(2rem, 3vw, 2.4rem); }
.social-card--wide .social-handle { max-width: 36rem; font-size: 1.08rem; overflow-wrap: normal; }
.btn-discord { flex: none; background: #5865f2; color: #fff; box-shadow: 0 12px 30px -12px #5865f2; }
.social-card:hover .btn-discord svg { transform: translateX(3px); }

@media (max-width: 640px) {
  .social-card--wide { flex-direction: column; align-items: flex-start; }
  .btn-discord { width: 100%; }
}

@media (max-width: 1024px) { .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .social-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Newsletter ---------- */
.newsletter { padding: 0 0 clamp(4rem, 9vw, 7rem); }
.newsletter-inner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
  padding: clamp(2rem, 5.5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e6f7ff 0%, var(--ice-bright) 30%, var(--ice) 75%, #6cbcff 100%);
  color: var(--ice-ink);
  box-shadow: 0 40px 90px -40px rgba(143, 220, 255, 0.55);
}
.newsletter-inner::before {
  content: ""; position: absolute; z-index: -1; right: -5%; top: -25%; width: 44%; aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%2304142a' stroke-opacity='.08' stroke-width='3.4' stroke-linecap='round'%3E%3Cg id='a'%3E%3Cpath d='M50 50V7M50 21l-9-9M50 21l9-9M50 34l-8-8M50 34l8-8'/%3E%3C/g%3E%3Cuse href='%23a' transform='rotate(60 50 50)'/%3E%3Cuse href='%23a' transform='rotate(120 50 50)'/%3E%3Cuse href='%23a' transform='rotate(180 50 50)'/%3E%3Cuse href='%23a' transform='rotate(240 50 50)'/%3E%3Cuse href='%23a' transform='rotate(300 50 50)'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: spin 90s linear infinite;
}
.newsletter h2 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); text-transform: uppercase; }
.newsletter-copy p { margin-top: 0.9rem; max-width: 30rem; color: rgba(4, 20, 42, 0.78); font-weight: 500; font-size: 1.1rem; }
.newsletter :focus-visible { outline-color: var(--ice-ink); }

.subscribe-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.subscribe-row input {
  flex: 1 1 220px; min-width: 0;
  padding: 1rem 1.3rem; border: 2px solid var(--ice-ink); border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); color: var(--ice-ink);
  font: 600 1rem var(--font-body);
}
.subscribe-row input::placeholder { color: rgba(4, 20, 42, 0.5); }
.subscribe-row input:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(4, 20, 42, 0.15); }
.subscribe-form .form-status { margin-top: 0.8rem; font-weight: 600; }
.subscribe-form .form-status.is-success,
.subscribe-form .form-status.is-error { color: var(--ice-ink); }

@media (max-width: 860px) { .newsletter-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.contact-info h2 { font-size: clamp(3rem, 7vw, 5.4rem); text-transform: uppercase; }
.contact-lede { margin-top: 1.2rem; max-width: 30rem; color: var(--muted); font-size: 1.12rem; }

.contact-alt { margin-top: 2.2rem; font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; list-style: none; }
.socials a {
  display: inline-flex; padding: 0.6rem 1.1rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { background: var(--ice-bright); border-color: var(--ice-bright); color: var(--ice-ink); }

.contact-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--border-strong); border-radius: 28px;
  background:
    radial-gradient(36rem 20rem at 100% 0%, rgba(143, 220, 255, 0.14), transparent 60%),
    var(--surface);
  transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s;
}
.contact-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(214, 243, 255, 0.1), transparent 60%);
}
.contact-card:hover { transform: translateY(-5px); border-color: rgba(143, 220, 255, 0.45); box-shadow: 0 40px 80px -40px rgba(143, 220, 255, 0.45); }
.contact-card:hover::after { opacity: 1; }
.contact-card-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  border-radius: 20px; color: var(--text);
  background: rgba(238, 246, 255, 0.08); border: 1px solid var(--border-strong);
}
.contact-card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.contact-card-label { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; text-transform: uppercase; }
.contact-card-handle { color: var(--ice); font-weight: 700; font-size: 1.15rem; }
.contact-card-text { max-width: 30rem; margin-top: 0.4rem; color: var(--muted); font-size: 1.08rem; }
.contact-card .btn { margin-top: 1.4rem; }
.contact-card:hover .btn svg { transform: translateX(3px); }

.form-status { min-height: 1.5em; font-size: 0.98rem; font-weight: 600; }
.form-status.is-success { color: var(--ice); }
.form-status.is-error { color: var(--danger); }
.form-note { font-size: 0.9rem; color: var(--dim); }
.form-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.form-note a:hover { color: var(--ice); }
.subscribe-form .form-note { margin-top: 0.4rem; color: rgba(4, 20, 42, 0.7); }
.subscribe-form .form-note a { color: var(--ice-ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding-top: 4.5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-logo { display: inline-block; }
.footer-logo img { width: 120px; height: 120px; filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.35)); transition: transform 0.5s var(--ease-out); }
.footer-logo:hover img { transform: rotate(-4deg) scale(1.04); }
.footer-brand p { max-width: 22rem; margin-top: 1rem; color: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer h3 {
  margin-bottom: 1rem;
  font: 700 0.85rem/1 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
}
.site-footer nav ul { display: grid; gap: 0.65rem; list-style: none; }
.site-footer nav a { color: var(--muted); font-weight: 600; transition: color 0.2s; }
.site-footer nav a:hover { color: var(--ice); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem;
  margin-top: 3.5rem; padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--dim); font-size: 0.92rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--ice); }
.footer-wordmark {
  margin-bottom: -0.14em;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 13vw, 13rem); line-height: 0.85; letter-spacing: 0.01em;
  text-align: center; white-space: nowrap; user-select: none;
  background: linear-gradient(180deg, rgba(143, 220, 255, 0.16), rgba(143, 220, 255, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Legal pages (privacy) ---------- */
.legal { padding: calc(var(--header-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(4rem, 8vw, 6rem); }
.legal .container { max-width: 52rem; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
.legal-updated { margin-top: 0.8rem; color: var(--dim); font-weight: 600; }
.legal-summary {
  margin: 2.5rem 0 1rem; padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(143, 220, 255, 0.3); border-radius: var(--radius);
  background: rgba(143, 220, 255, 0.06);
}
.legal .legal-summary h2 { margin-top: 0; }
.legal h2 { margin-top: 2.8rem; font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; letter-spacing: 0.01em; }
.legal h3 { margin-top: 1.6rem; font-size: 1.3rem; }
.legal p, .legal li { color: var(--muted); font-size: 1.05rem; }
.legal p { margin-top: 0.9rem; }
.legal ul { margin-top: 0.8rem; padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.legal li::marker { color: var(--ice); }
.legal strong { color: var(--text); }
.legal a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Status pages (404, thanks) ---------- */
.status-page { min-height: 100svh; display: grid; place-items: center; }
.status-page .snow { position: fixed; z-index: 0; }
.status-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 28rem at 50% 0%, rgba(59, 130, 246, 0.3), transparent 65%),
    radial-gradient(34rem 24rem at 50% 110%, rgba(143, 220, 255, 0.14), transparent 65%);
}
.status-main {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
  padding: 3rem 1rem; text-align: center;
}
.status-main .footer-logo img { width: 110px; height: 110px; }
.status-code {
  font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(6rem, 24vw, 14rem);
}
.status-main h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 800; text-transform: uppercase; }
.status-main .lede { margin: 0 0 1rem; }

/* ---------- Motion ---------- */
.js .reveal:not(.is-visible) { opacity: 0; }
.js .reveal.is-visible { animation: reveal 0.9s var(--ease-out) var(--reveal-delay, 0ms) backwards; }

@media (prefers-reduced-motion: no-preference) {
  .hero-content > * { animation: rise 1.1s var(--ease-out) 0.15s backwards; }
  .hero-content > :nth-child(2) { animation-delay: 0.3s; }
  .hero-media img { animation: settle 2.4s var(--ease-out) backwards; }
}

@keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes settle { from { transform: scale(1.08); filter: brightness(1.3) blur(4px); } }
@keyframes shimmer { to { background-position: 100% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(143, 220, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 220, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal:not(.is-visible) { opacity: 1; }
}
