/* ==========================================================================
   Hadal — deep-ocean submersibles. The whole site sits over a live Three.js
   descent (a fixed WebGL canvas); content rides above it in dark-glass HUD
   panels with bioluminescent-cyan accents and instrument (mono) readouts.
   Sora for display, IBM Plex Mono for the gauges.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
	--abyss:      oklch(11% 0.03 240);
	--abyss-deep: oklch(6% 0.025 250);
	--ink:        oklch(94% 0.015 220);
	--ink-soft:   oklch(78% 0.03 215);
	--ink-dim:    oklch(62% 0.035 220);

	--bio:      oklch(84% 0.13 200);   /* bioluminescent cyan */
	--bio-deep: oklch(66% 0.13 205);
	--bio-glow: oklch(84% 0.13 200 / .55);
	--violet:   oklch(68% 0.19 320);   /* deep-biolume accent */
	--amber:    oklch(80% 0.13 75);     /* warning / LED */

	--panel:      oklch(14% 0.03 235 / .52);
	--panel-solid:oklch(13% 0.03 238 / .9);
	--line:       oklch(84% 0.13 200 / .18);
	--line-soft:  oklch(90% 0.02 220 / .1);

	--display: 'Sora', -apple-system, 'Segoe UI', sans-serif;
	--mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

	--fs-xs: .74rem; --fs-sm: .88rem; --fs-base: 1.05rem; --fs-md: 1.25rem;
	--fs-lg: 1.7rem; --fs-xl: 2.4rem;
	--fs-2xl: clamp(2.6rem, 5.2vw, 4.6rem);
	--fs-3xl: clamp(3.4rem, 9vw, 8rem);

	--radius: 4px; --radius-lg: 12px; --lw: 1px;
	--ease: cubic-bezier(.2,.7,.2,1);
	--container: 1240px;
	--gutter: clamp(20px, 4.5vw, 72px);
	--header-h: 68px;
	--sp-1: 8px; --sp-2: 14px; --sp-3: 24px; --sp-4: 40px; --sp-5: 64px; --sp-6: 100px; --sp-7: 150px;
}

html, body { background: var(--abyss-deep); color: var(--ink); }
body { margin: 0; font-family: var(--display); font-weight: 500; font-size: var(--fs-base); line-height: 1.62; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Fixed descent canvas behind everything; content rides above. */
#hdl-abyss { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
.site-header, #main, .site-footer { position: relative; z-index: 2; }
/* Fallback when the WebGL scene can't run. */
.no-abyss body, html.no-abyss body { background:
	radial-gradient(120% 80% at 70% -10%, oklch(30% 0.06 205 / .5), transparent 55%),
	linear-gradient(180deg, oklch(16% 0.04 220) 0%, oklch(6% 0.02 250) 70%); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1.1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--bio); color: var(--abyss-deep); }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1520px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--sp-3); top: var(--sp-3); z-index: 999; background: var(--bio); color: var(--abyss-deep); padding: 10px 16px; border-radius: var(--radius); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Instrument readout label */
.readout { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--bio); display: inline-flex; align-items: center; gap: .7em; }
.readout::before { content: ''; width: 26px; height: 1px; background: var(--bio); box-shadow: 0 0 8px var(--bio-glow); }

/* Dark-glass HUD panel */
.panel { background: var(--panel); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1);
	border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4);
	box-shadow: 0 24px 60px oklch(0% 0 0 / .35), inset 0 1px 0 oklch(90% 0.02 220 / .06); position: relative; }
.panel::before { content: ''; position: absolute; top: 10px; left: 10px; width: 8px; height: 8px; border-top: 1px solid var(--bio); border-left: 1px solid var(--bio); opacity: .6; }
.panel::after { content: ''; position: absolute; bottom: 10px; right: 10px; width: 8px; height: 8px; border-bottom: 1px solid var(--bio); border-right: 1px solid var(--bio); opacity: .6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6em; font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: .12em; text-transform: uppercase;
	padding: 13px 26px; border: 1px solid var(--bio); border-radius: 999px; color: var(--bio); background: oklch(84% 0.13 200 / .06); cursor: pointer;
	transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.btn:hover { background: var(--bio); color: var(--abyss-deep); box-shadow: 0 0 24px var(--bio-glow); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--bio); color: var(--bio); background: transparent; box-shadow: none; }

/* ==========================================================================
   Header — HUD bar with live depth gauge
   ========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--header-h);
	display: flex; align-items: center; background: linear-gradient(180deg, oklch(8% 0.03 245 / .82), transparent);
	backdrop-filter: blur(6px); }
.site-header.is-solid { background: oklch(9% 0.03 242 / .9); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); width: 100%; }
.brand { display: inline-flex; align-items: center; gap: .6em; }
.brand__mark { width: 26px; height: 26px; color: var(--bio); filter: drop-shadow(0 0 6px var(--bio-glow)); }
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: .16em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav__list { display: flex; gap: var(--sp-3); list-style: none; margin: 0; padding: 0; }
.nav__list > li > a { font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: .08em; color: var(--ink-soft); transition: color .3s; position: relative; }
.nav__list > li > a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--bio); box-shadow: 0 0 8px var(--bio-glow); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav__list > li > a:hover { color: var(--bio); }
.nav__list > li > a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Live depth gauge in the header */
.depth-gauge { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-dim); display: inline-flex; align-items: baseline; gap: .5em; letter-spacing: .05em; white-space: nowrap; }
.depth-gauge .lbl { font-size: var(--fs-xs); letter-spacing: .2em; text-transform: uppercase; }
.depth-gauge .val { color: var(--bio); font-weight: 500; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px var(--bio-glow); }
.depth-gauge .val::after { content: ' m'; color: var(--ink-dim); text-shadow: none; }

.nav-mobile-cta { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px 0; }
@media (max-width: 940px) {
	.nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 88vw); flex-direction: column; align-items: flex-start; justify-content: center;
		gap: var(--sp-3); background: oklch(9% 0.03 242 / .96); backdrop-filter: blur(16px); padding: var(--sp-5); transform: translateX(100%); transition: transform .45s var(--ease); z-index: 200; }
	.nav.is-open { transform: none; }
	.nav__list { flex-direction: column; gap: var(--sp-3); }
	.nav .depth-gauge { display: none; }
	.nav-mobile-cta { display: inline-flex; margin-top: var(--sp-2); }
	.nav-toggle { display: block; z-index: 210; }
	.nav-scrim { position: fixed; inset: 0; background: oklch(4% 0.02 250 / .6); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s; }
	.nav-scrim.is-open { opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   Cover
   ========================================================================== */
.cover { min-height: 100svh; display: flex; align-items: center; position: relative; padding-top: var(--header-h); }
.cover .container { width: 100%; }
.cover__depthtag { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--bio); margin-bottom: var(--sp-3); }
.cover__title { font-size: var(--fs-3xl); font-weight: 700; letter-spacing: -0.03em; line-height: .92; max-width: 15ch; text-shadow: 0 0 60px oklch(11% 0.03 240 / .8); }
.cover__title em { font-style: normal; color: var(--bio); text-shadow: 0 0 40px var(--bio-glow); }
.cover__sub { font-family: var(--mono); font-size: var(--fs-md); color: var(--ink-soft); max-width: 52ch; margin-top: var(--sp-3); line-height: 1.6; }
.cover__cta { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: var(--sp-4); }
.cover__scroll { position: absolute; bottom: var(--sp-3); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-dim); }
.cover__scroll::after { content: ''; display: block; width: 1px; height: 40px; margin: 10px auto 0; background: linear-gradient(var(--bio), transparent); }

/* Sections */
.section { padding-block: var(--sp-7); position: relative; }
@media (max-width: 780px) { .section { padding-block: var(--sp-6); } }
.section-head { margin-bottom: var(--sp-5); max-width: 60ch; }
.section-head h2 { font-size: var(--fs-2xl); margin-top: var(--sp-2); }
.section-head p { color: var(--ink-soft); font-family: var(--mono); font-size: var(--fs-sm); margin-top: var(--sp-2); }

/* Manifesto */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); align-items: start; margin-top: var(--sp-3); }
.manifesto { max-width: 30ch; font-size: var(--fs-xl); font-weight: 600; line-height: 1.12; }
.manifesto em { font-style: normal; color: var(--bio); }
.about-grid .prose { max-width: 60ch; color: var(--ink-soft); display: flex; flex-direction: column; gap: var(--sp-2); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: var(--sp-3); } }

/* Figures */
.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: var(--sp-5); background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); overflow: hidden; }
.figure { background: var(--panel); padding: var(--sp-4) var(--sp-3); backdrop-filter: blur(10px); }
.figure__n { font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); color: var(--bio); text-shadow: 0 0 20px var(--bio-glow); font-variant-numeric: tabular-nums; }
.figure__l { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-top: .6em; }
@media (max-width: 720px) { .figures { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   The descent — ocean zones
   ========================================================================== */
.zones { display: flex; flex-direction: column; gap: var(--sp-3); }
.zone { display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-4); align-items: start; }
.zone__gauge { font-family: var(--mono); }
.zone__depth { font-size: var(--fs-lg); color: var(--bio); font-weight: 500; text-shadow: 0 0 16px var(--bio-glow); }
.zone__name { font-family: var(--display); font-weight: 600; font-size: var(--fs-md); margin: .2em 0; }
.zone__meta { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-dim); letter-spacing: .04em; display: flex; flex-direction: column; gap: 3px; margin-top: var(--sp-2); }
.zone__body { color: var(--ink-soft); font-size: var(--fs-md); }
.zone__body .light-bar { height: 4px; border-radius: 4px; margin-top: var(--sp-3); background: linear-gradient(90deg, var(--bio), var(--violet)); box-shadow: 0 0 12px var(--bio-glow); max-width: 100%; }
.zone__light-label { display: block; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); margin-top: .7em; }
@media (max-width: 720px) { .zone { grid-template-columns: 1fr; gap: var(--sp-2); } }

/* ==========================================================================
   Fleet — submersible spec panels
   ========================================================================== */
.fleet { display: flex; flex-direction: column; gap: var(--sp-4); }
.subcraft { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden; }
.subcraft--flip .subcraft__media { order: 2; }
.subcraft__media { position: relative; aspect-ratio: 16/11; overflow: hidden; }
.subcraft__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.subcraft:hover .subcraft__media img { transform: scale(1.05); }
.subcraft__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, oklch(11% 0.03 240 / .6)); }
.subcraft--flip .subcraft__media::after { background: linear-gradient(270deg, transparent 55%, oklch(11% 0.03 240 / .6)); }
.subcraft__body { padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center; }
.subcraft__class { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--violet); }
.subcraft__title { font-size: var(--fs-xl); margin: .15em 0 .3em; }
.subcraft__title a { transition: color .3s; }
.subcraft__title a:hover { color: var(--bio); }
.subcraft__rating { font-family: var(--mono); color: var(--bio); font-size: var(--fs-md); text-shadow: 0 0 14px var(--bio-glow); margin-bottom: var(--sp-2); }
.subcraft__rating span { color: var(--ink-dim); font-size: var(--fs-sm); }
.subcraft__desc { color: var(--ink-soft); font-size: var(--fs-base); margin-bottom: var(--sp-3); }
.spec-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-2) var(--sp-3); border-top: 1px solid var(--line-soft); padding-top: var(--sp-3); margin-bottom: var(--sp-3); }
.spec-row div { font-family: var(--mono); }
.spec-row dt { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); }
.spec-row dd { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink); }
@media (max-width: 820px) { .subcraft { grid-template-columns: 1fr; } .subcraft--flip .subcraft__media { order: 0; } .subcraft__media::after, .subcraft--flip .subcraft__media::after { background: linear-gradient(0deg, oklch(11% 0.03 240 / .7), transparent 60%); } }

/* Engineering / hull */
.hull-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: center; }
.hull-fig svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 30px oklch(84% 0.13 200 / .2)); }
.hull-list { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-3); }
.hull-list div { display: flex; gap: var(--sp-2); align-items: baseline; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-soft); }
.hull-list .k { color: var(--bio); min-width: 5.5em; }
@media (max-width: 820px) { .hull-grid { grid-template-columns: 1fr; } }

/* Dive log */
.dive-log { display: flex; flex-direction: column; }
.dive { display: grid; grid-template-columns: 1fr auto; gap: var(--sp-3); padding: var(--sp-3) 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.dive:last-child { border-bottom: 1px solid var(--line-soft); }
.dive__title { font-family: var(--display); font-weight: 600; font-size: var(--fs-md); }
.dive__body { color: var(--ink-soft); font-size: var(--fs-sm); margin-top: 4px; }
.dive__badge { font-family: var(--mono); font-size: var(--fs-xs); color: var(--bio); letter-spacing: .06em; white-space: nowrap; }

/* Charter */
.charter { text-align: center; }
.charter .panel { max-width: 720px; margin-inline: auto; }
.charter h2 { font-size: var(--fs-2xl); max-width: 20ch; margin: var(--sp-2) auto var(--sp-3); }
.charter .prose { color: var(--ink-soft); max-width: 50ch; margin-inline: auto; }
.charter__cta { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; margin-top: var(--sp-4); }

/* Footer */
.site-footer { padding-block: var(--sp-5) var(--sp-4); border-top: 1px solid var(--line-soft); background: oklch(7% 0.025 248 / .72); backdrop-filter: blur(10px); }

/* Assurance band — trust signals */
.footer-assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); padding-bottom: var(--sp-4); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.assure { display: flex; align-items: center; gap: var(--sp-2); }
.assure__ico { width: 30px; height: 30px; flex: 0 0 auto; color: var(--bio); filter: drop-shadow(0 0 10px var(--bio-glow)); }
.assure div { display: flex; flex-direction: column; min-width: 0; }
.assure__k { font-family: var(--display); font-weight: 600; font-size: var(--fs-base); color: var(--ink); line-height: 1.2; }
.assure__v { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .04em; color: var(--ink-dim); margin-top: 3px; }

.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.footer-brand__name { font-family: var(--display); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 1.2rem; color: var(--ink); display: block; }
.footer-brand__est { display: block; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--bio); margin-top: 6px; }
.footer-brand p { max-width: 40ch; margin-top: var(--sp-2); color: var(--ink-dim); font-family: var(--mono); font-size: var(--fs-sm); line-height: 1.55; }
.footer-nap { font-style: normal; margin-top: var(--sp-3); display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-nap__row { color: var(--ink-soft); }
a.footer-nap__row:hover { color: var(--bio); }
.footer-col h4 { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--bio); margin: 0 0 var(--sp-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5em; font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-col a:hover { color: var(--bio); }
.footer-social { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); }
.footer-social a { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--ink-soft); transition: color .25s, border-color .25s, box-shadow .25s; }
.footer-social a:hover { color: var(--bio); border-color: var(--bio); box-shadow: 0 0 16px var(--bio-glow); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); padding-top: var(--sp-3); font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-dim); }
.footer-legal-nav { display: flex; gap: var(--sp-3); }
.footer-legal-nav a:hover { color: var(--bio); }
.footer-demo { color: var(--ink-dim); opacity: .7; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-3); } .footer-assure { grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: var(--sp-3); } .footer-assure { grid-template-columns: 1fr; } .footer-bottom { justify-content: flex-start; } }

/* Dialog */
.inquiry-dialog { border: none; padding: 0; background: transparent; max-width: 540px; width: 92vw; }
.inquiry-dialog::backdrop { background: oklch(4% 0.02 250 / .7); backdrop-filter: blur(4px); }
.inquiry-dialog__panel { background: var(--panel-solid); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-4); }
.inquiry-dialog h3 { font-size: var(--fs-lg); }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--sp-2); }
.field label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.field input, .field textarea { font-family: var(--mono); font-size: var(--fs-sm); padding: 10px 12px; background: oklch(8% 0.02 245 / .8); border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bio); }
.field--hp { position: absolute; left: -9999px; }
.form-actions { display: flex; gap: var(--sp-2); align-items: center; margin-top: var(--sp-3); }
.form-msg { font-family: var(--mono); font-size: var(--fs-sm); }
.form-msg--ok { color: var(--bio); } .form-msg--err { color: var(--amber); }
.dialog-close { margin-left: auto; background: none; border: none; color: var(--ink-dim); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Inner templates */
.page-hero { padding-top: calc(var(--header-h) + var(--sp-5)); padding-bottom: var(--sp-4); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 20ch; }
.page-hero .lede { font-family: var(--mono); color: var(--ink-soft); max-width: 56ch; margin-top: var(--sp-2); }
.sub-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); }
.sub-card { display: block; overflow: hidden; }
.sub-card__frame { aspect-ratio: 16/11; overflow: hidden; border-radius: var(--radius); margin-bottom: var(--sp-2); }
.sub-card__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sub-card:hover .sub-card__frame img { transform: scale(1.05); }
.sub-card h3 { font-size: var(--fs-md); }
.sub-card__meta { font-family: var(--mono); font-size: var(--fs-sm); color: var(--bio); }

.single-sub { padding-top: calc(var(--header-h) + var(--sp-5)); }
.single-sub__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-5); align-items: start; }
.single-sub__media { border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + var(--sp-3)); }
.single-sub__media img { width: 100%; display: block; }
.spec-table { margin-top: var(--sp-4); border-top: 1px solid var(--line); }
.spec-table__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--mono); }
.spec-table__row dt { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.spec-table__row dd { margin: 0; color: var(--ink); }
@media (max-width: 860px) { .single-sub__grid { grid-template-columns: 1fr; } .single-sub__media { position: static; } }

.page-content { max-width: 74ch; margin-inline: auto; padding-block: var(--sp-6); }
.prose { color: var(--ink-soft); }
.prose a { color: var(--bio); }
.post-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.post-list__item { border-bottom: 1px solid var(--line-soft); padding-bottom: var(--sp-3); }
.error-404 { text-align: center; padding-block: var(--sp-7); }
.error-404 .big { font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 18vw, 12rem); color: var(--bio); text-shadow: 0 0 50px var(--bio-glow); line-height: .85; }
.searchform { display: flex; gap: var(--sp-2); }
.searchform input[type="search"] { flex: 1; font-family: var(--mono); padding: 12px 16px; background: oklch(8% 0.02 245 / .8); border: 1px solid var(--line-soft); border-radius: 999px; color: var(--ink); }
.comments-area { max-width: 74ch; margin: var(--sp-5) auto 0; padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.comments-title { margin-bottom: var(--sp-3); }
.comment-list { list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.comment-list .children { list-style: none; margin: var(--sp-3) 0 0; padding-left: var(--sp-3); border-left: 1px solid var(--line-soft); }
.comment-body { font-size: var(--fs-sm); color: var(--ink-soft); }
.comment-author { font-family: var(--mono); color: var(--ink); }
.comment-author .says { display: none; }
.comment-meta { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-dim); }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
	width: 100%; font-family: var(--mono); padding: 12px 14px; margin-bottom: var(--sp-2);
	background: oklch(8% 0.02 245 / .8); border: 1px solid var(--line-soft); border-radius: var(--radius); color: var(--ink); }
.comment-respond label { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-dim); }
.page-links { display: flex; gap: 8px; font-family: var(--mono); margin-top: var(--sp-3); }

/* Single submersible detail */
.back-link { display: inline-flex; margin-bottom: var(--sp-3); }
.single-sub__title { font-size: var(--fs-2xl); margin: .1em 0 .3em; }
.single-sub__rating { font-family: var(--mono); color: var(--ink-soft); margin-bottom: var(--sp-3); }
.single-sub__rating .depth-num { font-family: var(--display); font-weight: 700; font-size: var(--fs-xl); color: var(--bio); text-shadow: 0 0 20px var(--bio-glow); }
.single-sub__prose { margin-bottom: var(--sp-3); }
.single-sub__cta { margin-top: var(--sp-4); }

/* Single post (dive journal) */
.single-post__media { margin: 0 auto var(--sp-4); max-width: 960px; border-radius: var(--radius-lg); overflow: hidden; }
.single-post__media img { width: 100%; height: auto; display: block; }
.single-post__foot { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); }
.page-content.prose > p { margin-bottom: var(--sp-2); }
.page-content.prose h2, .page-content.prose h3 { font-family: var(--display); margin: var(--sp-3) 0 var(--sp-2); }

/* Reveal — directional */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal--left { transform: translateX(-60px); }
.reveal--right { transform: translateX(60px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal--left, .reveal--right { opacity: 1 !important; transform: none !important; } }
#main { overflow-x: clip; }
