/* Atlantis Works landing page. No build step: plain CSS, mobile first. */

@font-face { font-family: "Cinzel"; src: url("assets/fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("assets/fonts/AlegreyaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--abyss: #020b13;
	--deep: #041a26;
	--sea: #06283a;
	--sea-2: #0a3a4f;
	--teal: #4fd6e0;
	--turquoise: #2fe0c8;
	--coral: #ff7a5c;
	--violet: #a07bff;
	--gold: #e9c27a;
	--marble: #f3ede2;
	--text: #e3f1ef;
	--muted: #9dbcc0;
	--line: rgba(79, 214, 224, 0.18);
	--radius: 18px;
	--wrap: 1160px;
	--gutter: 16px;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--water, #18708a);
	color: var(--text);
	font: 400 1.125rem/1.6 "Alegreya Sans", system-ui, sans-serif;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); color: var(--marble); }
h3 { font-size: 1.15rem; color: var(--marble); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--marble); color: var(--abyss); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
	font: 700 0.8rem/1 "Cinzel", serif;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.1em;
}
.glow { color: var(--teal); text-shadow: 0 0 28px rgba(79, 214, 224, 0.55); }

/* ---------- Buttons ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.btn {
	--b: var(--teal);
	position: relative;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px;
	border-radius: 999px;
	font: 700 1rem/1 "Cinzel", serif;
	letter-spacing: 0.06em;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--primary {
	color: #03202a;
	background: linear-gradient(180deg, #8ff3ee, var(--teal) 55%, #2ab7c6);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 10px 30px -8px rgba(79, 214, 224, 0.7), 0 0 60px -10px rgba(79, 214, 224, 0.6);
}
.btn--primary::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 66%);
	background-size: 250% 100%; background-position: 120% 0;
	mix-blend-mode: soft-light; pointer-events: none;
	animation: sheen 4.5s ease-in-out infinite;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 16px 40px -8px rgba(79, 214, 224, 0.85), 0 0 90px -10px rgba(79, 214, 224, 0.75); }
.btn--steam {
	color: var(--marble);
	background: rgba(4, 26, 38, 0.55);
	border: 1px solid rgba(243, 237, 226, 0.35);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
.btn.is-soon { cursor: default; opacity: 0.88; }
.badge {
	font: 700 0.62rem/1 "Alegreya Sans", sans-serif; font-style: normal;
	letter-spacing: 0.12em; text-transform: uppercase;
	padding: 5px 8px; border-radius: 999px;
	color: #2a1a05; background: var(--gold);
}
@keyframes sheen { 0%, 60% { background-position: 120% 0; } 100% { background-position: -40% 0; } }

/* ---------- Depth gauge ---------- */
.gauge {
	position: fixed; right: 22px; top: 50%; z-index: 20;
	transform: translateY(-50%);
	display: none; flex-direction: column; align-items: center; gap: 10px;
	font: 700 0.72rem/1 "Cinzel", serif; letter-spacing: 0.08em; color: var(--muted);
	pointer-events: none;
	opacity: 0; transition: opacity 0.5s ease;
}
.gauge.is-on { opacity: 1; }
.gauge__track { width: 2px; height: 34vh; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.gauge__fill { position: absolute; inset: 0; background: linear-gradient(var(--teal), var(--violet)); transform-origin: top; transform: scaleY(var(--depth, 0)); }
.gauge__value { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.gauge__num { color: var(--teal); font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .gauge { display: flex; } }

/* ---------- The ocean behind everything ---------- */
.ocean { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--water, #18708a); }
.hero, main, .footer { position: relative; z-index: 1; }
.ocean__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.ocean__rays { position: absolute; inset: 0; mix-blend-mode: screen; opacity: var(--sun, 1); }
.ocean__rays i {
	position: absolute; top: -20%; width: 11vw; min-width: 70px; height: 130%;
	background: linear-gradient(180deg, rgba(200, 250, 255, 0.42), rgba(120, 220, 235, 0.1) 55%, transparent 85%);
	filter: blur(16px);
	transform-origin: top center;
	animation: ray 10s ease-in-out infinite alternate;
}
.ocean__rays i:nth-child(1) { left: 4%;  transform: rotate(18deg); animation-duration: 12s; }
.ocean__rays i:nth-child(2) { left: 22%; width: 6vw; transform: rotate(14deg); animation-delay: -3s; }
.ocean__rays i:nth-child(3) { left: 40%; width: 15vw; transform: rotate(10deg); animation-duration: 14s; animation-delay: -6s; }
.ocean__rays i:nth-child(4) { left: 60%; width: 7vw; transform: rotate(7deg); animation-delay: -2s; }
.ocean__rays i:nth-child(5) { left: 76%; width: 10vw; transform: rotate(4deg); animation-duration: 11s; animation-delay: -5s; }
.ocean__rays i:nth-child(6) { left: 92%; width: 5vw; transform: rotate(1deg); animation-duration: 9s; animation-delay: -7s; }
@keyframes ray { 0% { opacity: 0.25; translate: -2vw 0; } 50% { opacity: 0.8; } 100% { opacity: 0.35; translate: 2vw 0; } }
.ocean__fauna { position: absolute; inset: 0; }
.fauna {
	position: absolute; left: 0; top: 0; height: auto; max-width: none;
	will-change: transform, opacity; opacity: 0;
	filter: brightness(var(--dim, 1)) saturate(0.85) blur(var(--blur, 0px));
}
.fauna--jelly { filter: brightness(var(--dim, 1)) blur(var(--blur, 0px)) drop-shadow(0 0 14px rgba(220, 130, 255, 0.55)); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100svh;
	display: grid; place-items: center;
	overflow: hidden; isolation: isolate;
	padding: 96px 0 120px;
}
.hero__bg {
	position: absolute; inset: -10% 0 -10% 0; z-index: -4; will-change: transform;
	-webkit-mask-image: linear-gradient(transparent 4%, rgba(0, 0, 0, 0.55) 30%, #000 55%, rgba(0, 0, 0, 0.6) 78%, transparent 96%);
	mask-image: linear-gradient(transparent 4%, rgba(0, 0, 0, 0.55) 30%, #000 55%, rgba(0, 0, 0, 0.6) 78%, transparent 96%);
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(1.1) brightness(0.72); }
.hero__water {
	position: absolute; inset: 0; z-index: -3;
	background: radial-gradient(55% 45% at 50% 48%, rgba(3, 30, 44, 0.7), transparent 80%);
}
.surface {
	position: absolute; left: 0; top: 0; width: 200%; height: 36vh; z-index: -2;
	-webkit-mask-image: linear-gradient(#000 10%, transparent);
	mask-image: linear-gradient(#000 10%, transparent);
	opacity: 0.5; mix-blend-mode: screen;
	animation: surface 38s ease-in-out infinite alternate;
	will-change: transform;
}
.surface rect { fill: #fff; }
@keyframes surface { from { transform: translateX(0); } to { transform: translateX(-50%); } }



.hero__content { position: relative; text-align: center; width: min(100% - 2 * var(--gutter), 980px); }
.hero__logo { margin: 0 auto 8px; width: min(88vw, 620px); }
.hero__logo img {
	width: 100%;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(79, 214, 224, 0.25));
	animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-0.6deg); } 50% { transform: translateY(-10px) rotate(0.6deg); } }
.hero__tagline {
	font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.4;
	max-width: 34ch; margin: 0 auto 30px;
	color: var(--marble);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}
.hero__platforms { margin: 22px 0 0; font: 700 0.78rem/1 "Cinzel", serif; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 237, 226, 0.75); }

.hero__content > * { animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__content > :nth-child(2) { animation-delay: 0.25s; }
.hero__content > :nth-child(3) { animation-delay: 0.45s; }
.hero__content > :nth-child(4) { animation-delay: 0.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.scroll-cue {
	position: absolute; bottom: 26px; left: 50%; translate: -50% 0;
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	color: var(--muted); text-decoration: none;
	font: 700 0.7rem/1 "Cinzel", serif; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue svg { width: 26px; height: 26px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---------- Page background: the dive gets darker ---------- */
section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }

/* Reveal on scroll (only when JS is running; see main.js). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro { text-align: center; }
.intro__lead { font-size: clamp(1.7rem, 4.2vw, 3.1rem); max-width: 22ch; margin-inline: auto; margin-bottom: clamp(48px, 7vw, 80px); }
.pillars { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
	position: relative;
	padding: 26px 24px 28px;
	border-radius: var(--radius);
	background: linear-gradient(180deg, rgba(79, 214, 224, 0.08), rgba(79, 214, 224, 0.02));
	border: 1px solid var(--line);
	transition: transform 0.4s ease, border-color 0.4s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: rgba(79, 214, 224, 0.45); }
.pillar img { width: 150px; margin: -10px auto 8px; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45)); }
.pillar:nth-child(2) { transition-delay: 0.1s; }
.pillar:nth-child(3) { transition-delay: 0.2s; }
.pillar h3 { font-size: 1.5rem; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Feature rows ---------- */
.feature__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) {
	.feature__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; }
	.feature--flip .feature__media { order: 2; }
	.raise .feature__grid { grid-template-columns: 1fr 1.25fr; }
}
.feature__media { position: relative; padding-bottom: 12%; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--sea); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot--main {
	box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(243, 237, 226, 0.12);
}
.shot--main img { transition: transform 1.2s ease; }
.feature__media:hover .shot--main img { transform: scale(1.04); }
.shot--float {
	position: absolute; right: 0; bottom: 0; width: 48%;
	box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(243, 237, 226, 0.85);
	border-radius: 12px;
}
.feature--flip .shot--float { right: auto; left: 0; }
@media (min-width: 1200px) { .shot--float { right: -4%; } .feature--flip .shot--float { left: -4%; } }
.feature__text p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
	content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 14px;
	background: var(--turquoise); border-radius: 3px; transform: rotate(45deg);
	box-shadow: 0 0 14px var(--turquoise);
}

/* ---------- The deep (defense) ---------- */
.deep { overflow: hidden; isolation: isolate; text-align: center; }
.deep__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.3; -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 65%, transparent); }
.deep__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) blur(2px); }
.deep__lead { max-width: 56ch; margin-inline: auto; color: var(--muted); }
.bestiary {
	list-style: none; padding: 0; margin: 56px 0 0;
	display: grid; gap: 16px;
	grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .bestiary { grid-template-columns: repeat(5, 1fr); } }
.creature {
	--c: hsl(var(--hue) 90% 65%);
	padding: 18px 14px 20px;
	border-radius: var(--radius);
	background: radial-gradient(90% 70% at 50% 35%, hsl(var(--hue) 70% 50% / 0.22), transparent 70%), rgba(2, 11, 19, 0.55);
	border: 1px solid hsl(var(--hue) 70% 60% / 0.25);
	transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.creature:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .creature:last-child { grid-column: auto; } }
.creature { display: flex; flex-direction: column; }
.creature img { width: 130px; height: 130px; object-fit: contain; object-position: center bottom; margin: 0 auto 10px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.6)); transition: transform 0.6s ease; }
.creature:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 0 40px -10px var(--c); }
.creature:hover img { transform: scale(1.08) rotate(-3deg); }
.creature h3 { font-size: 1rem; margin-bottom: 4px; }
.creature p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.creature:nth-child(2) { transition-delay: 0.06s; }
.creature:nth-child(3) { transition-delay: 0.12s; }
.creature:nth-child(4) { transition-delay: 0.18s; }
.creature:nth-child(5) { transition-delay: 0.24s; }

.arsenal { display: grid; gap: 16px; margin-top: 44px; text-align: left; }
@media (min-width: 860px) { .arsenal { grid-template-columns: repeat(3, 1fr); } }
.arsenal__item {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 18px 14px 10px;
	border-radius: var(--radius);
	background: rgba(4, 26, 38, 0.7);
	border: 1px solid rgba(233, 194, 122, 0.22);
}
.arsenal__item img { width: 84px; flex: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5)); }
.arsenal__item h3 { font-size: 1rem; color: var(--gold); margin-bottom: 2px; }
.arsenal__item p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Kraken ---------- */
.kraken { padding: 0; height: 200vh; }
.kraken__stage {
	position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate;
	display: grid; align-items: center;
}
.kraken__glow {
	position: absolute; z-index: -2; width: 90vmin; height: 90vmin; right: 2vw; top: 50%;
	translate: 0 -50%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(47, 224, 200, 0.28), rgba(160, 123, 255, 0.14) 55%, transparent);
	opacity: calc(0.2 + 0.8 * var(--k, 1));
	animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { from { scale: 0.92; } to { scale: 1.06; } }
.kraken__beast {
	position: absolute; z-index: -1; right: -3vw; top: 50%; width: min(56vw, 940px);
	translate: 0 -50%;
	animation: drift 9s ease-in-out infinite;
}
.kraken__body {
	position: relative;
	transform: translateY(calc(18vh * (1 - var(--k, 1)))) scale(calc(0.72 + 0.28 * var(--k, 1)));
	filter: brightness(calc(0.1 + 0.9 * var(--k, 1))) drop-shadow(0 0 30px rgba(47, 224, 200, calc(0.18 * var(--k, 1)))) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7));
	will-change: transform, filter;
}
.kraken__body img { width: 100%; }
/* Glowing eyes over the render: positions in % of the image (eyes of kraken_render.webp). */
.kraken__eye {
	position: absolute; left: var(--x); top: var(--y); width: 13%; aspect-ratio: 1;
	translate: -50% -50%; border-radius: 50%; pointer-events: none;
	background: radial-gradient(closest-side, rgba(235, 255, 252, 0.95), rgba(80, 245, 225, 0.8) 15%, rgba(47, 224, 200, 0.35) 38%, rgba(47, 224, 200, 0.1) 65%, transparent);
	mix-blend-mode: screen;
	opacity: calc(var(--k, 1) * var(--k, 1));
	animation: eye 3.2s ease-in-out infinite;
}
.kraken__eye--small { width: 8.5%; animation-delay: -0.4s; }
@keyframes eye { 0%, 100% { scale: 0.85; filter: brightness(0.85); } 50% { scale: 1.15; filter: brightness(1.25); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-1.2deg); } 50% { transform: translate(-1.5vw, -2.5vh) rotate(1.2deg); } }
.kraken__text { opacity: var(--kt, 1); transform: translateY(calc(40px * (1 - var(--kt, 1)))); }
.kraken__text > * { max-width: 30rem; }
.kraken__text h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); color: var(--marble); text-shadow: 0 0 40px rgba(79, 214, 224, 0.45), 0 4px 20px rgba(0, 0, 0, 0.8); }
.kraken__text p { color: var(--text); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9); }
.kraken__phases { display: flex; flex-wrap: wrap; gap: 10px; }
.kraken__phases span {
	font: 700 0.78rem/1 "Cinzel", serif; letter-spacing: 0.16em; text-transform: uppercase;
	padding: 9px 14px; border-radius: 999px;
	border: 1px solid rgba(47, 224, 200, 0.5); color: var(--turquoise);
	background: rgba(2, 11, 19, 0.6);
}
@media (max-width: 759px) {
	/* Portrait: the Kraken on top, the text below. */
	.kraken__stage { align-items: end; padding-bottom: 40px; }
	.kraken__glow { right: auto; left: 50%; top: 30%; translate: -50% -50%; width: 110vw; height: 110vw; }
	.kraken__beast { right: auto; left: 50%; top: 4vh; translate: -50% 0; width: 112vw; }
}

/* ---------- Raise ---------- */
.raise { background: radial-gradient(50% 50% at 70% 50%, rgba(233, 194, 122, 0.14), transparent 70%); }
.raise h2 { color: var(--gold); text-shadow: 0 0 40px rgba(233, 194, 122, 0.35); }
.raise__model { position: absolute; width: 34%; max-width: 220px; left: -6%; bottom: -4%; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.6)); }

/* ---------- More ---------- */
.more { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 48px 0 56px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 24px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(2, 11, 19, 0.35); }
.stat dt { font: 700 clamp(2.4rem, 6vw, 3.6rem)/1 "Cinzel", serif; color: var(--teal); text-shadow: 0 0 30px rgba(79, 214, 224, 0.45); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat dd { margin: 0; color: var(--muted); font-size: 1rem; }
.editor { display: grid; gap: 24px; align-items: center; text-align: left; max-width: 1040px; margin-inline: auto; }
.editor img { border-radius: var(--radius); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(243, 237, 226, 0.12); }
.editor p { color: var(--muted); margin: 0; }
.editor strong { color: var(--marble); }
@media (min-width: 860px) { .editor { grid-template-columns: 1.6fr 1fr; gap: 40px; } }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(60px, 9vw, 120px); }
.gallery__track {
	list-style: none; margin: 32px 0 0; padding: 8px max(var(--gutter), (100vw - var(--wrap)) / 2) 24px;
	display: flex; gap: 16px;
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - var(--wrap)) / 2);
	scrollbar-width: thin; scrollbar-color: var(--sea-2) transparent;
}
.gallery__track li { flex: 0 0 min(82vw, 520px); scroll-snap-align: start; }
.gallery__track button {
	display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
	border-radius: 14px; overflow: hidden; background: var(--sea);
	box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(243, 237, 226, 0.1);
}
.gallery__track img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease, filter 0.6s ease; filter: saturate(0.9); }
.gallery__track button:hover img, .gallery__track button:focus-visible img { transform: scale(1.05); filter: saturate(1.15); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(2, 11, 19, 0.92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox picture { display: contents; }
.lightbox img { max-width: min(96vw, 1920px); max-height: 88vh; width: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8); }
.lightbox button { position: fixed; border: 0; cursor: pointer; color: var(--marble); background: rgba(4, 26, 38, 0.7); border-radius: 999px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }

/* ---------- Play (back at the surface) ---------- */
.play { text-align: center; overflow: hidden; isolation: isolate; padding-bottom: clamp(100px, 14vw, 180px); }
.play__light {
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(60% 50% at 50% 0%, rgba(200, 250, 255, 0.3), transparent 70%);
}
.play__logo { width: min(80vw, 440px); margin: 0 auto 12px; filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.5)); }
.play h2 { margin-bottom: 30px; }
.specs { list-style: none; padding: 0; margin: 44px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--muted); font-size: 0.98rem; }
.specs strong { color: var(--marble); font-weight: 700; margin-right: 6px; }

/* ---------- Footer ---------- */
.footer { background: rgba(2, 11, 19, 0.85); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; font-size: 0.95rem; }
.footer p { margin: 0 0 8px; }
.footer .muted { max-width: 70ch; margin-inline: auto; margin-bottom: 12px; font-size: 0.88rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.kraken { height: auto; }
	.kraken__stage { position: relative; }
	.kraken__body { transform: none; filter: drop-shadow(0 0 30px rgba(47, 224, 200, 0.18)); }
	.fauna, .ocean__particles { display: none; }
	.kraken__text { opacity: 1; transform: none; }
}
