/* Diving Pula — design surface. "The Descent": the homepage is a dive, from the
   sunlit surface down to the deep and back up. Diving Pula's own ocean-teal /
   deep-ink / ice-blue palette. Pure CSS — re-skin here, HTML never changes. */

@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-var.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-alt: #eef5f9;
  --surface: #ffffff;
  --ink: #0d2230;             /* deep navy — dark sections & headings */
  --ink-2: #0a1b26;
  --abyss: #061219;           /* deepest — footer / deep section */
  --body: #33454f;
  --body-soft: #5d6f79;
  --line: #e0e9ef;
  --brand: #0a6e8a;           /* ocean teal */
  --brand-dark: #075066;
  --accent: #e8743b;          /* coral — focus ring only */
  --ice: #8fd8f2;             /* ice blue */
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 76px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --sp: clamp(4rem, 9vw, 8rem);
  --font: "Sora", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .9, .28, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 1.02rem; line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-inner { padding-top: var(--header-h); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.06; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
p { margin: 0 0 1rem; text-wrap: pretty; }
:focus-visible { outline: 3px solid #c85a1f; outline-offset: 3px; box-shadow: 0 0 0 6px rgba(255,255,255,.85); }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.container-narrow { max-width: 820px; }
[id] { scroll-margin-top: calc(var(--header-h) + 14px); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 300; }
.skip-link:focus { left: .5rem; top: .5rem; }

/* sections */
.section { padding-block: var(--sp); position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 780px; margin: 0 auto clamp(2rem, 4.5vw, 3.4rem); text-align: center; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { display: block; }
.section-cta { text-align: center; margin-top: clamp(2rem, 4.5vw, 3rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .74rem; font-weight: 700; color: var(--brand); margin: 0 0 .8rem; }

/* deep (dark) section — the bottom of the dive */
.section-deep { background: linear-gradient(180deg, var(--ink-2), var(--abyss)); }
.section-deep h2, .section-deep .section-head h2 { color: #fff; }
.section-deep .eyebrow { color: var(--ice); }
.section-deep .section-cta .btn-ghost { color: #dceef7; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; background: var(--brand); color: #fff;
  padding: .85em 1.8em; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid var(--brand);
  cursor: pointer; position: relative; overflow: hidden;
  transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.28) 50%, transparent 80%);
  transform: translateX(-130%); transition: transform .6s var(--ease); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,60,80,.3); color: #fff; }
.btn:hover::after { transform: translateX(130%); }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.14); box-shadow: none; }
.btn-sm { padding: .55em 1.25em; font-size: .85rem; }
.btn-lg { padding: 1em 2.3em; font-size: 1.05rem; }

/* ---------- header (glass) ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; min-height: var(--header-h);
  display: flex; align-items: center; background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--line); transition: background .35s, box-shadow .35s, border-color .35s; }
.site-header .header-inner { display: flex; align-items: center; gap: 1.25rem; width: 100%; }
.brand { font-size: 1.28rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.brand strong { color: var(--brand); }
.site-nav { margin-left: auto; }
.site-nav > ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav > ul > li > a { display: block; padding: .6rem .8rem; color: var(--ink); font-weight: 600; font-size: .94rem; border-radius: 9px; transition: color .2s, background .2s; }
.site-nav > ul > li > a:hover { color: var(--brand); }
.has-dropdown { position: relative; }
.has-dropdown > a::after, .has-mega > a::after { content: "▾"; font-size: .68em; margin-left: .35em; opacity: .65; }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 16px 40px rgba(10,40,55,.16);
  list-style: none; margin: .4rem 0 0; padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: .55rem .8rem; border-radius: 7px; color: var(--ink); font-size: .92rem; }
.dropdown a:hover { background: var(--bg-alt); color: var(--brand); }

/* mega-menu — contained dropdown box (owner's sketch) */
.has-mega { position: relative; }
.mega { position: absolute; top: 100%; left: 0; width: 520px; max-width: calc(100vw - 2rem);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(10,40,55,.2); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index: 60; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.1rem; }
.mega-group { min-width: 0; }
.mega-group + .mega-group { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.mega-title { text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; font-weight: 700; color: var(--body-soft); margin: 0 0 .8rem; }
.mega-cards { display: grid; gap: .6rem; grid-template-columns: repeat(4, 1fr); }
.mega-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--surface); transition: transform .18s var(--ease), box-shadow .18s; }
.mega-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10,40,55,.16); }
.mega-thumb { display: block; aspect-ratio: 4/3; background: #dceaf1 center/cover no-repeat; }
.mega-label { padding: .4rem .5rem; font-size: .78rem; font-weight: 600; color: var(--ink); line-height: 1.25; }

.header-right { display: flex; align-items: center; gap: .9rem; }
.lang-switch { display: flex; gap: .3rem; }
.lang-switch a { text-transform: uppercase; font-size: .7rem; font-weight: 700; color: var(--body-soft);
  border: 1px solid var(--line); border-radius: 6px; padding: .2rem .42rem; transition: color .2s, border-color .2s; }
.lang-switch a:hover { color: var(--brand); border-color: var(--brand); }
.lang-switch a.current { color: var(--brand); border-color: var(--brand); font-weight: 800; }
.nav-cta { white-space: nowrap; }
.nav-cta-m { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; justify-content: center;
  align-items: center; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }

/* transparent-over-hero (home, top) — dark scrim keeps white text legible */
.site-header.overlay { background: linear-gradient(180deg, rgba(7,24,32,.66) 0%, rgba(7,24,32,.26) 60%, rgba(7,24,32,0) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none; border-color: transparent; box-shadow: none; }
.site-header.overlay .brand, .site-header.overlay .site-nav > ul > li > a { color: #fff; }
.site-header.overlay .brand strong { color: #fff; }
.site-header.overlay .nav-toggle span { background: #fff; }
.site-header.overlay .lang-switch a { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.site-header.overlay .lang-switch a.current { color: #fff; border-color: #fff; }
.site-header.scrolled { background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--line); box-shadow: 0 6px 24px rgba(10,40,55,.09); }
.site-header.scrolled .brand, .site-header.scrolled .site-nav > ul > li > a { color: var(--ink); }
.site-header.scrolled .brand strong { color: var(--brand); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }
.site-header.scrolled .lang-switch a { color: var(--body-soft); border-color: var(--line); }
.site-header.scrolled .lang-switch a.current { color: var(--brand); border-color: var(--brand); }

/* ---------- hero — the surface ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { will-change: transform; }
.hero-slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out;
  animation: kenburns 22s ease-in-out infinite alternate; }
.hero-slide.active { opacity: 1; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.13); } }
/* god rays — soft light shafts from the surface */
.hero-rays { position: absolute; inset: -20% -10%; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; opacity: .8;
  background:
    linear-gradient(112deg, transparent 38%, rgba(220,245,255,.5) 43%, transparent 50%),
    linear-gradient(100deg, transparent 55%, rgba(190,235,255,.4) 62%, transparent 70%),
    linear-gradient(120deg, transparent 68%, rgba(220,245,255,.35) 75%, transparent 84%);
  animation: rays 13s ease-in-out infinite alternate; }
@keyframes rays { from { transform: translateX(-3%) skewX(-1deg); opacity: .55; } to { transform: translateX(3%) skewX(1deg); opacity: .9; } }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background:
  linear-gradient(90deg, rgba(6,22,30,.62), rgba(6,22,30,.16) 65%),
  linear-gradient(180deg, rgba(8,26,36,.42), rgba(8,26,36,.34) 45%, rgba(8,26,36,.8)); }
.hero-inner { position: relative; z-index: 4; width: 100%; }
.hero-inner .eyebrow { color: #d8f2fc; text-shadow: 0 1px 14px rgba(0,0,0,.55); }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: .4rem; text-shadow: 0 3px 34px rgba(0,0,0,.5); }
.hero h1 span { color: var(--ice); }
.hero-lede { font-size: clamp(1.05rem, 2.3vw, 1.45rem); max-width: 44ch; color: #fff; margin-bottom: 2rem;
  font-weight: 300; text-shadow: 0 1px 18px rgba(0,0,0,.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .5em; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; border-radius: 999px; padding: .35em 1em; font-size: .8rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 1.2rem; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.hero-scroll { position: absolute; bottom: 4.6rem; left: 50%; transform: translateX(-50%); z-index: 4; width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.75); border-radius: 14px; }
.hero-scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff;
  border-radius: 2px; animation: scrolldot 1.7s ease-in-out infinite; }
@keyframes scrolldot { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0; } }
/* animated wave divider at the hero's foot */
.wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 5; height: clamp(46px, 7vw, 96px); overflow: hidden; pointer-events: none; }
.wave svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; fill: var(--bg); }
.wave svg:nth-child(1) { opacity: .5; animation: waveDrift 11s ease-in-out infinite alternate; }
.wave svg:nth-child(2) { animation: waveDrift 17s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift { from { transform: translateX(0); } to { transform: translateX(-6%); } }

/* ---------- split feature cards ---------- */
.split-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-card { position: relative; display: block; min-height: 400px; border-radius: var(--radius); overflow: hidden;
  color: #fff; background-color: var(--brand-dark); background-image: var(--shot); background-size: cover; background-position: center;
  transition: transform .35s var(--ease), box-shadow .35s; }
.split-card:hover { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(10,40,55,.3); }
.split-card .split-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,36,.08), rgba(8,26,36,.82)); transition: background .35s; }
.split-card:hover .split-overlay { background: linear-gradient(180deg, rgba(10,80,102,.22), rgba(8,26,36,.86)); }
.split-card .split-body { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 2rem 2.1rem; display: flex; flex-direction: column; }
.split-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.split-sub { color: rgba(255,255,255,.9); margin-top: .3rem; font-weight: 300; }
.split-link { margin-top: 1.1rem; font-size: 1.6rem; transition: transform .3s var(--ease); }
.split-card:hover .split-link { transform: translateX(10px); }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(120deg, #064154, var(--brand-dark) 55%, var(--brand)); color: #fff;
  padding-block: clamp(2.6rem, 6vw, 4.2rem); position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 60% 130% at 85% 0%, rgba(143,216,242,.14), transparent 60%); pointer-events: none; }
.stats-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); position: relative; z-index: 1; }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-num { display: block; font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; color: #fff; }
.stat-label { display: block; margin-top: .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em;
  color: #fff; font-weight: 600; }

/* ---------- card grid ---------- */
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit;
  transition: transform .25s var(--ease), box-shadow .25s; will-change: transform; }
.card a:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(10,40,55,.18); }
.card-media { display: block; aspect-ratio: 16/11; background: #dceaf1; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card a:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 1.05rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; }
.card-title { font-weight: 700; font-size: 1.08rem; color: var(--ink); letter-spacing: -.01em; }
.card-sub { font-size: .78rem; color: var(--body-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- about split ---------- */
.about-split { display: grid; gap: clamp(1.8rem, 4.5vw, 3.6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .about-split { grid-template-columns: 1fr 1fr; } }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover;
  box-shadow: 0 24px 56px rgba(10,40,55,.22); }
.about-media::after { content: ""; position: absolute; inset: 1.2rem -1.2rem -1.2rem 1.2rem; border: 2px solid var(--ice);
  border-radius: var(--radius); z-index: -1; opacity: .55; }
.about-text h2 { margin-top: .2rem; }
.prose { max-width: 65ch; }
.prose p { color: var(--body); }

/* ---------- marquee — ghost dive-site ticker ---------- */
.marquee { overflow: hidden; padding-block: clamp(1.4rem, 3vw, 2.2rem); border-block: 1px solid var(--line); background: var(--bg); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.6rem; width: max-content; white-space: nowrap;
  animation: marquee 46s linear infinite; }
.marquee-track span { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.01em;
  color: rgba(10,110,138,.28); }
@supports (-webkit-text-stroke: 1px black) {
  .marquee-track span { color: transparent; -webkit-text-stroke: 1.5px rgba(10,110,138,.34); }
}
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span.dot { -webkit-text-stroke: 0; color: var(--ice); font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- team ---------- */
.team-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: 920px; margin-inline: auto; }
.team-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
.team-photo { width: 184px; height: 184px; object-fit: cover; border-radius: 50%;
  border: 5px solid var(--surface); box-shadow: 0 12px 30px rgba(10,40,55,.22); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s; }
.team-card:hover .team-photo { transform: scale(1.05) rotate(1.5deg); box-shadow: 0 18px 40px rgba(10,110,138,.32); }
.team-name { font-weight: 800; font-size: 1.15rem; color: var(--ink); margin-top: .4rem; }
.team-certs { font-size: .84rem; color: var(--body-soft); max-width: 26ch; }

/* ---------- gallery ---------- */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { aspect-ratio: 3/2; object-fit: cover; width: 100%; transition: transform .55s var(--ease), opacity .3s; }
.gallery-grid a:hover img { transform: scale(1.08); }
.section-deep .gallery-grid a { box-shadow: 0 8px 26px rgba(0,0,0,.4); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  transition: box-shadow .25s; }
.faq-item[open] { box-shadow: 0 10px 26px rgba(10,40,55,.1); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 1.3rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .25s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; color: var(--body); }
.faq-a p { margin: 0; }

/* ---------- CTA band — resurfacing ---------- */
.cta-band { position: relative; color: #fff; text-align: center; padding-block: clamp(4.5rem, 10vw, 8rem);
  background-color: var(--brand-dark); background-image: var(--cta); background-size: cover; background-position: center;
  background-attachment: fixed; }
@supports (-webkit-touch-callout: none) { .cta-band { background-attachment: scroll; } }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(7,50,66,.84), rgba(7,30,40,.9)); }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 5vw, 3.6rem); }
.cta-band p { color: rgba(255,255,255,.92); max-width: 46ch; margin: 0 auto 2rem; font-size: 1.12rem; font-weight: 300; }

/* ---------- logo band (light, before footer) ---------- */
.logo-band { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.band-title { text-align: center; text-transform: uppercase; letter-spacing: .18em; font-size: .76rem; font-weight: 700;
  color: var(--body-soft); margin: 0 0 1.7rem; }
.logo-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem; }
.logo-strip li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .7rem 1.1rem;
  display: flex; align-items: center; transition: transform .25s var(--ease), box-shadow .25s; }
.logo-strip li:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,40,55,.14); }
.logo-strip img { height: 44px; width: auto; object-fit: contain; }

/* ---------- depth gauge (home only) ---------- */
.depth-gauge { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: .6rem; pointer-events: none; }
.dg-track { display: block; width: 3px; height: 180px; background: rgba(10,110,138,.18); border-radius: 3px; position: relative; overflow: hidden; }
.dg-fill { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--p, 0) * 1%); background: linear-gradient(var(--ice), var(--brand)); border-radius: 3px; }
.dg-read { font-size: .72rem; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: .05em;
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .2rem .5rem; border-radius: 6px; border: 1px solid var(--line); }
@media (max-width: 1320px) { .depth-gauge { display: none; } }

/* ---------- detail / index pages ---------- */
.page-head { position: relative; padding: clamp(3.2rem, 7vw, 5rem) 0 clamp(2.4rem, 5vw, 3.6rem); text-align: center;
  background: linear-gradient(160deg, var(--ink-2), var(--brand-dark) 130%); margin-bottom: clamp(1rem, 3vw, 2rem); }
.page-head h1 { margin: 0; color: #fff; }
.detail { padding-block: clamp(2rem, 5vw, 3.2rem); }
.breadcrumb { font-size: .85rem; color: var(--body-soft); margin-bottom: .8rem; }
.breadcrumb a { color: var(--body-soft); }
.detail-head h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.detail-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.detail-media img { width: 100%; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10,40,55,.16); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: .75rem; margin: 1.6rem 0 0; }
.stat { background: var(--bg-alt); border-radius: var(--radius-sm); padding: .85rem 1rem; }
.stat dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--body-soft); }
.stat dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); }
.detail-gallery { margin-top: 2.5rem; }

/* prices */
.price-download { margin: 0 0 1.6rem; }
.price-image { margin: 0 0 2rem; }
.price-image img { width: 100%; max-width: 780px; border: 1px solid var(--line); border-radius: var(--radius); }

/* contact */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.contact-dl dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--body-soft); margin-top: .9rem; }
.contact-dl dd { margin: .1rem 0 0; font-size: 1.05rem; }
.contact-social { margin-top: 1.5rem; display: flex; gap: 1rem; }
.contact-map iframe { width: 100%; height: 440px; border: 0; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(10,40,55,.14); }

/* ---------- footer — the deepest point ---------- */
.site-footer { background: linear-gradient(180deg, var(--ink-2), var(--abyss)); color: #c9d6dd;
  padding-block: clamp(3rem, 6vw, 4.5rem) 1.6rem; }
.footer-top { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.footer-brand .brand { color: #fff; font-size: 1.4rem; }
.footer-brand .brand strong { color: var(--ice); }
.footer-tag { color: #9fb2bb; max-width: 30ch; margin: .6rem 0 1rem; }
.footer-social { display: flex; gap: 1rem; }
.site-footer a { color: #c9d6dd; transition: color .2s; }
.site-footer a:hover { color: var(--ice); }
.footer-col h3 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-contact p { margin: 0 0 .5rem; }
.copyright { margin-top: 2.8rem; font-size: .8rem; color: #7e919a; }

/* ---------- scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@view-transition { navigation: auto; }

/* ---------- lightbox (with prev/next) ---------- */
.lb-overlay { position: fixed; inset: 0; background: rgba(4,14,20,.94); display: grid; place-items: center; z-index: 200; padding: 1.5rem; }
.lb-overlay img { max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: .7rem; right: .8rem; font-size: 2.1rem; color: #fff; background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; display: grid; place-items: center; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.6rem; line-height: 1;
  color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  width: 56px; height: 56px; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75);
  font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
@media (max-width: 640px) { .lb-prev { left: .4rem; } .lb-next { right: .4rem; } .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 2rem; } }

/* ---------- bubbles — ice-blue cursor trail (above content, under lightbox) ---------- */
#bubble-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.bubble {
  position: fixed; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(150,222,245,.55) 45%, rgba(108,196,232,.12) 72%);
  box-shadow: inset 0 0 6px rgba(205,242,255,.75), 0 0 6px rgba(120,205,238,.4);
  border: 1px solid rgba(180,232,250,.5);
  animation: bubble-trail var(--dur, 1.6s) ease-out forwards;
}
@keyframes bubble-trail {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: .75; }
  100% { transform: translate(calc(-50% + var(--drift, 0px)), calc(-50% - var(--rise, 90px))) scale(1); opacity: 0; }
}

/* ---------- mobile ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-cta-m { display: block; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(10,40,55,.12);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.2rem; }
  .site-nav > ul > li > a { padding: .85rem .2rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header.overlay .site-nav > ul > li > a { color: var(--ink); }
  .has-dropdown > a::after, .has-mega > a::after { float: right; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; padding: 0 0 .3rem .8rem; margin: 0; min-width: 0; }
  .has-mega { position: relative; }
  .mega { position: static; width: auto; max-width: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; }
  .mega-inner { display: block; padding: .2rem 0 .7rem; }
  .mega-group + .mega-group { border-top: 0; padding-top: 0; margin-top: .7rem; }
  .mega-cards { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .mega-thumb { aspect-ratio: 16/10; }
  .mega-label { font-size: .72rem; padding: .35rem .45rem; }
  .nav-cta-m a { display: block; margin-top: .9rem; text-align: center; background: var(--brand); color: #fff;
    padding: .8rem; border-radius: 999px; font-weight: 600; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 420px) {
  .brand { font-size: 1.02rem; }
  .header-inner { gap: .6rem; }
  .header-right { gap: .45rem; }
  .lang-switch a { padding: .16rem .3rem; font-size: .64rem; }
}

/* landscape phones: let the hero fit the real viewport */
@media (max-height: 560px) {
  .hero { min-height: 100svh; }
  .hero-scroll { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto; }
  .hero-slide { animation: none !important; }
  .hero-slide.active { opacity: 1; }
  .hero-rays { animation: none; opacity: .5; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  #bubble-layer, .depth-gauge { display: none !important; }
}
