/* Tidefrost Studios: main stylesheet */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --abyss: #03111a;
  --deep: #061c28;
  --deep-2: #0a2634;
  --tide: #1f6577;
  --teal: #2f8a9c;
  --ice: #9fd6df;
  --frost: #d9f1f4;
  --foam: #f2fbfc;
  --text: #d5e7eb;
  --muted: #8aa9b1;
  --line: rgba(159, 214, 223, 0.16);
  --card: rgba(13, 44, 58, 0.55);
  --radius: 18px;
  --max: 1160px;
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice); text-underline-offset: 3px; }
a:hover { color: var(--foam); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal); color: var(--foam); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--foam); color: var(--abyss); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); color: var(--foam); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ice); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(3, 17, 26, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--foam); }
.brand img { width: 42px; height: 42px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(159, 214, 223, .1); color: var(--foam); }
.nav a.nav-cta { background: var(--foam); color: var(--abyss); font-weight: 600; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--ice); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--foam);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  overflow: hidden; isolation: isolate; padding: 120px 0 160px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background: url("../img/hero-1536.jpg") center 40% / cover no-repeat;
  transform: scale(-1.06, 1.06);
  animation: drift 26s ease-in-out infinite alternate;
}
@media (max-width: 900px) { .hero-bg { background-image: url("../img/hero-900.jpg"); background-position: 18% 40%; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 17, 26, .85) 0%, rgba(3, 17, 26, .45) 45%, rgba(3, 17, 26, 0) 75%),
    linear-gradient(180deg, rgba(3, 17, 26, .35) 0%, rgba(3, 17, 26, 0) 30%, rgba(3, 17, 26, .9) 92%, var(--abyss) 100%);
}
.snow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.snow i {
  position: absolute; top: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: rgba(242, 251, 252, .8); filter: blur(.4px);
  animation: fall linear infinite;
}
.hero-content { max-width: 680px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: .95;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ice), var(--foam) 60%, var(--ice));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--frost); max-width: 560px; margin-bottom: 36px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  text-decoration: none; transition: transform .2s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--foam); color: var(--abyss); }
.btn-primary:hover { background: var(--ice); color: var(--abyss); }
.btn-ghost { border-color: rgba(242, 251, 252, .35); color: var(--foam); background: rgba(3, 17, 26, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--foam); color: var(--foam); }

.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; z-index: 0; }
.hero-waves svg { width: 200%; height: 100%; position: absolute; bottom: 0; left: 0; }
.hero-waves .w1 { animation: waves 18s linear infinite; opacity: .5; }
.hero-waves .w2 { animation: waves 11s linear infinite reverse; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 2px solid rgba(242, 251, 252, .5); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--foam); border-radius: 2px; animation: scrollhint 1.8s ease-in-out infinite;
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-top: 18px; }

/* Studio */
.studio-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.studio-text p { font-size: 1.12rem; }
.studio-text .big {
  font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.85rem); color: var(--foam);
  line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 28px;
}
.signature {
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line);
  font-family: var(--display); font-size: 1.25rem; color: var(--ice); font-weight: 600;
}
.principles { display: grid; gap: 16px; }
.principle {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
}
.principle:hover { border-color: rgba(159, 214, 223, .4); transform: translateX(4px); }
.principle .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--tide)); color: var(--foam);
}
.principle .icon svg { width: 26px; height: 26px; }
.principle h3 { margin-bottom: 6px; font-size: 1.15rem; }
.principle p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Games */
.games { overflow: hidden; }
.games::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: 10%;
  background: radial-gradient(circle, rgba(47, 138, 156, .22), transparent 65%); pointer-events: none;
}
.secret-card, .game-card {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px;
  border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: rgba(6, 28, 40, .7); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.secret-art {
  position: relative; overflow: hidden; min-height: 300px;
  background:
    radial-gradient(circle at 30% 30%, rgba(159, 214, 223, .55), transparent 40%),
    radial-gradient(circle at 70% 65%, rgba(47, 138, 156, .8), transparent 45%),
    radial-gradient(circle at 45% 80%, rgba(31, 101, 119, .9), transparent 50%),
    linear-gradient(135deg, #0d3a4a, #04141d);
}
.secret-art::before {
  content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from 0deg, transparent, rgba(159, 214, 223, .25), transparent 30%);
  animation: spin 14s linear infinite; filter: blur(30px);
}
.secret-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(242, 251, 252, .05) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.lock {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
}
.lock-badge {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(3, 17, 26, .45); border: 1px solid rgba(242, 251, 252, .3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 0 14px rgba(242, 251, 252, .05), 0 0 0 30px rgba(242, 251, 252, .03);
  animation: pulse 3.4s ease-in-out infinite;
}
.lock-badge svg { width: 42px; height: 42px; color: var(--foam); }
.secret-body { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(159, 214, 223, .12); color: var(--ice); border: 1px solid rgba(159, 214, 223, .25);
  margin-bottom: 22px;
}
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: #6fe0c8; box-shadow: 0 0 0 0 rgba(111, 224, 200, .6); animation: ping 2s infinite; }
.secret-body h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 16px; letter-spacing: -0.02em; }
.redacted { display: inline-block; background: var(--foam); color: transparent; border-radius: 4px; user-select: none; line-height: 1.1; }
.secret-body p { color: var(--muted); }
.secret-body .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Underwater: depth layers, cascading waves, light and bubbles ---------- */
.ocean {
  --d1: #0b3442; --d2: #082a37; --d3: #061d28; --d4: var(--abyss);
  --card: rgba(3, 17, 26, .32);
  position: relative; isolation: isolate; overflow: hidden; background: var(--d1);
}
.ocean .section > .container { position: relative; z-index: 2; }
.ocean .section { padding-bottom: clamp(40px, 6vw, 80px); }
.ocean .cascade + .section { padding-top: clamp(40px, 6vw, 84px); }
.ocean .section.contact { padding-bottom: clamp(56px, 8vw, 100px); }
.depth-1 { background: var(--d1); }
.depth-2 { background: var(--d2); }
.depth-3 { background: var(--d3); }

.cascade { position: relative; height: clamp(70px, 10vw, 130px); overflow: hidden; margin-top: -1px; }
.cascade svg { position: absolute; left: 0; bottom: -4px; width: 200%; height: calc(100% + 4px); }
.cascade .w1 { animation: waves 24s linear infinite; }
.cascade .w2 { animation: waves 15s linear infinite reverse; }
.cascade .w1 path { opacity: .45; }
.cascade .w2 path { stroke: rgba(159, 214, 223, .2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cascade.to-d2 { background: var(--d1); }
.cascade.to-d2 path { fill: var(--d2); }
.cascade.to-d3 { background: var(--d2); }
.cascade.to-d3 path { fill: var(--d3); }
.cascade.to-d4 { background: var(--d3); }
.cascade.to-d4 path { fill: var(--d4); }

.ocean-fx { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }

/* Sunlight beams falling in from the surface */
.rays {
  position: absolute; top: 0; left: -25%; right: -25%; height: min(1500px, 150vh);
  background:
    repeating-linear-gradient(104deg, transparent 0 70px, rgba(190, 235, 242, .075) 100px, transparent 140px, transparent 230px),
    repeating-linear-gradient(97deg, transparent 0 150px, rgba(190, 235, 242, .05) 190px, transparent 240px, transparent 330px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 100%);
  filter: blur(8px); transform-origin: top center;
  animation: rays 14s ease-in-out infinite alternate;
}

/* Shimmering light net (caustics) close to the surface */
.caustics {
  position: absolute; top: 0; left: 0; right: 0; height: 900px; overflow: hidden; opacity: .16;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, rgba(0, 0, 0, .4) 45%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 140px, rgba(0, 0, 0, .4) 45%, transparent 100%);
}
.caustics::before, .caustics::after {
  content: ""; position: absolute; inset: -700px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='520' height='520'><filter id='c' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='turbulence' baseFrequency='0.011' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.94  0 0 0 0 0.98  0 0 0 -9 1.1'/></filter><rect width='520' height='520' filter='url(%23c)'/></svg>");
  background-size: 520px 520px;
  animation: caustic-a 38s linear infinite;
}
.caustics::after { background-size: 700px 700px; opacity: .55; animation: caustic-b 52s linear infinite; }

/* Rising bubbles (created by main.js) */
.bubbles { position: absolute; inset: 0; }
.bubbles i {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(220, 245, 250, .4);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .6), rgba(255, 255, 255, .06) 42%, transparent 62%);
  opacity: 0; animation: rise linear infinite;
}

.site-footer.seamless { border-top: 0; }

@keyframes rays { from { transform: translateX(-3%) skewX(-3deg); opacity: .7; } to { transform: translateX(3%) skewX(3deg); opacity: 1; } }
@keyframes caustic-a { to { transform: translate3d(520px, 520px, 0); } }
@keyframes caustic-b { to { transform: translate3d(-700px, 700px, 0); } }
@keyframes rise {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: .85; }
  50% { transform: translate3d(var(--wob, 12px), calc(var(--rise, 500px) * -.5), 0); }
  85% { opacity: .6; }
  100% { transform: translate3d(0, calc(var(--rise, 500px) * -1), 0); opacity: 0; }
}

/* Contact */
.contact { padding-bottom: clamp(100px, 14vw, 160px); }
.contact-panel {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 138, 156, .45), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(31, 101, 119, .5), transparent 55%),
    var(--deep-2);
  border: 1px solid var(--line);
}
.contact-panel .section-head { margin-bottom: 40px; }
.contact-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

/* Form */
.contact-form { display: grid; gap: 20px; }
.contact-form[hidden] { display: none; }
.topic { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.topic legend { padding: 0; margin-bottom: 10px; font-weight: 600; color: var(--foam); font-size: .95rem; }
.topic-option { position: relative; cursor: pointer; }
.topic-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic-option span {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: rgba(3, 17, 26, .45); border: 1px solid var(--line); color: var(--text); font-weight: 600;
  transition: border-color .2s, background .2s, color .2s;
}
.topic-option span svg { width: 20px; height: 20px; flex: none; color: var(--ice); }
.topic-option:hover span { border-color: rgba(159, 214, 223, .45); }
.topic-option input:checked + span { background: var(--foam); color: var(--abyss); border-color: var(--foam); }
.topic-option input:checked + span svg { color: var(--tide); }
.topic-option input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 3px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; color: var(--foam); font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--foam);
  background: rgba(3, 17, 26, .55); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #5f8189; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--ice); background: rgba(3, 17, 26, .75);
  box-shadow: 0 0 0 4px rgba(159, 214, 223, .14);
}
.field.invalid input, .field.invalid textarea { border-color: #ff9a8f; }
.field .err { color: #ffb4ab; font-size: .88rem; }
.field[hidden] { display: none; }

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

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ice); }
.consent.invalid span { color: #ffb4ab; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-actions .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: .95rem; }
.form-status.error { color: #ffb4ab; }

.form-success {
  padding: 36px 32px; border-radius: var(--radius); background: rgba(3, 17, 26, .5); border: 1px solid var(--ice);
  text-align: center;
}
.form-success .check {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--foam); color: var(--tide);
}
.form-success .check svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--muted); margin: 0 0 6px; }
.form-success button {
  margin-top: 18px; background: none; border: 0; color: var(--ice); font: inherit; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* Aside */
.contact-aside { display: grid; gap: 16px; }
.aside-block { padding: 24px; border-radius: var(--radius); background: rgba(3, 17, 26, .4); border: 1px solid var(--line); }
.aside-block h3 { font-size: 1.1rem; margin-bottom: 10px; }
.aside-block p { margin: 0 0 6px; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.aside-block p:last-child { margin-bottom: 0; }
.aside-block ul { margin: 0 0 10px; padding-left: 1.1em; color: var(--text); font-size: .95rem; }
.aside-block li { margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--abyss); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { display: block; font-family: var(--display); color: var(--foam); font-size: 1.15rem; }
.footer-brand span { color: var(--muted); font-size: .9rem; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--text); transition: background .2s, color .2s, border-color .2s;
}
.socials a:hover { background: var(--foam); color: var(--abyss); border-color: var(--foam); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: .9rem; color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--foam); }

/* ---------- Legal pages ---------- */
.legal-page .site-header { background: rgba(3, 17, 26, 0.85); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.legal { padding: 140px 0 100px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 12px; }
.legal .updated { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; }
.legal h3 { font-size: 1.12rem; margin: 30px 0 10px; color: var(--frost); }
.legal p, .legal li { color: var(--text); font-size: 1rem; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.legal .box { padding: 24px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); margin-bottom: 20px; }
.legal .box p:last-child, .legal .box address:last-child { margin-bottom: 0; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: var(--ice); text-decoration: none; font-weight: 500; }
.back-link svg { width: 16px; height: 16px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
.notfound img { width: 120px; margin: 0 auto 28px; }
.notfound h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Animations ---------- */
@keyframes drift { from { transform: scale(-1.06, 1.06) translate3d(0, 0, 0); } to { transform: scale(-1.12, 1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes fall { to { transform: translate3d(var(--sway, 30px), 105vh, 0); } }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 20px rgba(242, 251, 252, .06), 0 0 0 42px rgba(242, 251, 252, .02); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 224, 200, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(111, 224, 200, 0); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .studio-grid, .secret-card, .game-card, .contact-layout { grid-template-columns: 1fr; }
  .game-art { min-height: 280px; }
  .secret-art { min-height: 240px; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: rgba(3, 17, 26, .96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .site-header.menu-open { background: rgba(3, 17, 26, .96); }
  .hero { padding: 110px 0 140px; }
  .hero::before { background: linear-gradient(180deg, rgba(3, 17, 26, .55) 0%, rgba(3, 17, 26, .7) 50%, var(--abyss) 100%); }
  .field-row, .topic { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .principle { grid-template-columns: 44px 1fr; padding: 20px; gap: 14px; }
  .principle .icon { width: 44px; height: 44px; }
  .scroll-hint { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Toast (mail copied notice) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; width: min(440px, calc(100% - 32px));
  transform: translate(-50%, 20px); opacity: 0; visibility: hidden;
  padding: 16px 20px; border-radius: 14px; font-size: .95rem; line-height: 1.5;
  background: var(--foam); color: var(--abyss); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast span { color: #3b5a63; font-size: .88rem; }

/* ---------- Follow (social media) ---------- */
.depth-4 { background: var(--d4); }
.ocean .section.follow { padding-bottom: clamp(70px, 10vw, 120px); }
.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.social-card {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 20px;
  border-radius: var(--radius); text-decoration: none; color: var(--text);
  background: rgba(13, 44, 58, .45); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, background .25s;
}
.social-card:hover { border-color: var(--ice); transform: translateY(-4px); background: rgba(13, 44, 58, .75); color: var(--text); }
.social-icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal), var(--tide)); color: var(--foam);
  transition: background .25s, color .25s;
}
.social-icon svg { width: 24px; height: 24px; }
.social-card:hover .social-icon { background: var(--foam); color: var(--abyss); }
.social-text { display: grid; min-width: 0; }
.social-text strong { font-family: var(--display); font-size: 1.15rem; color: var(--foam); line-height: 1.2; }
.social-text span { color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-arrow { width: 18px; height: 18px; margin-left: auto; flex: none; color: var(--muted); transition: transform .2s, color .2s; }
.social-card:hover .social-arrow { color: var(--foam); transform: translate(2px, -2px); }
@media (max-width: 1100px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .social-grid { grid-template-columns: 1fr; } }

/* ---------- Game card (Exponata) ---------- */
.game-art { position: relative; overflow: hidden; min-height: 340px; background: #2a1a12; }
.game-scene {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%;
  animation: kenburns 24s ease-in-out infinite alternate;
}
.game-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .35) 100%),
    linear-gradient(90deg, rgba(6, 28, 40, 0) 75%, rgba(6, 28, 40, .5) 100%);
}
.game-logo {
  position: absolute; z-index: 1; left: 5%; bottom: 5%; width: min(30%, 150px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 24px rgba(255, 140, 40, .25));
  animation: float 6s ease-in-out infinite;
}
.game-card .btn-row { margin-top: 12px; }
.game-card .btn-row .btn { margin-top: 0; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-2%, -1%); } }
@keyframes float { 50% { transform: translateY(-6px) rotate(-2deg); } }
@media (max-width: 900px) { .game-art::after { background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .45) 100%); } }
/* Footer legal lines (copyright and trademark notice) */
.footer-legal { display: grid; gap: 6px; max-width: 640px; }
.footer-legal .tm { font-size: .8rem; line-height: 1.5; opacity: .85; }
/* Five social cards in one row on wide screens: compact horizontal cards */
@media (min-width: 1101px) {
  .social-grid { gap: 12px; }
  .social-card { gap: 12px; padding: 16px 14px; }
  .social-icon { width: 44px; height: 44px; border-radius: 12px; }
  .social-icon svg { width: 22px; height: 22px; }
  .social-text strong { font-size: 1.05rem; }
  .social-text span { font-size: .8rem; }
  .social-arrow { display: none; }
}
/* ---------- Launch: countdown, Steam button, freeze effect ---------- */
[hidden] { display: none !important; }

.countdown {
  margin: 4px 0 22px; padding: 16px 18px; border-radius: 16px;
  background: rgba(3, 17, 26, .45); border: 1px solid rgba(159, 214, 223, .25);
}
.countdown-label {
  display: block; margin-bottom: 10px; font-size: .76rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ice);
}
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown-units div { text-align: center; padding: 10px 4px 8px; border-radius: 12px; background: rgba(159, 214, 223, .08); }
.countdown-units b {
  display: block; font-family: var(--display); font-weight: 700; line-height: 1.1;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--foam); font-variant-numeric: tabular-nums;
}
.countdown-units small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.btn-steam {
  flex-basis: 100%; justify-content: center; padding: 16px 26px; font-size: 1.05rem;
  background: linear-gradient(135deg, #f2fbfc, #9fd6df); color: var(--abyss);
  box-shadow: 0 12px 30px -12px rgba(159, 214, 223, .7);
}
.btn-steam:hover { background: var(--foam); color: var(--abyss); }

/* Frost overlay: creeps in from the edges, then thaws away */
@property --frost { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.frost {
  position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; border-radius: inherit;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='360' height='360'><filter id='f' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='turbulence' baseFrequency='0.022 0.03' numOctaves='5' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.98  0 0 0 0 1  0 0 0 -11 1.35'/></filter><rect width='360' height='360' filter='url(%23f)'/></svg>") center / 360px 360px,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' seed='9' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92  0 0 0 0 0.98  0 0 0 0 1  1.4 0 0 0 -0.55'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>") center / 200px 200px,
    radial-gradient(ellipse at center, rgba(205, 240, 250, .12) 25%, rgba(215, 244, 252, .55) 70%, rgba(240, 252, 255, .92) 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent calc(100% - var(--frost)), #000 calc(135% - var(--frost)));
  mask-image: radial-gradient(ellipse at center, transparent calc(100% - var(--frost)), #000 calc(135% - var(--frost)));
}
.frost.play { animation: frost-in 1.1s cubic-bezier(.3, .6, .3, 1) forwards, frost-out 1.3s ease-in 1.7s forwards; }
.game-card.freezing { animation: freeze-glow 3s ease-out, freeze-shake .45s ease-in-out 1.1s; }
.ice-shard {
  position: absolute; z-index: 7; width: 7px; height: 7px; pointer-events: none;
  background: linear-gradient(135deg, #fff, rgba(190, 235, 245, .6));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: shard 1s ease-out forwards;
}

@keyframes frost-in { from { --frost: 0%; opacity: 0; } 30% { opacity: 1; } to { --frost: 100%; opacity: 1; } }
@keyframes frost-out { to { opacity: 0; filter: blur(8px); } }
@keyframes freeze-glow {
  0% { border-color: var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
  35% { border-color: rgba(220, 245, 255, .9); box-shadow: 0 0 0 1px rgba(220, 245, 255, .6), 0 0 60px rgba(180, 230, 245, .45); }
  100% { border-color: var(--line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
}
@keyframes freeze-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-.3deg); }
  40% { transform: translateX(4px) rotate(.3deg); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
@keyframes shard {
  from { transform: translate(0, 0) rotate(0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.4); opacity: 0; }
}
@media (max-width: 520px) { .countdown-units { gap: 6px; } .countdown { padding: 14px 12px; } }