/*! Sailing Club Divers — design system
 *  Copyright (c) 2026 Matvey Klimanskiy. All rights reserved. */
/* =========================================================================
   Sailing Club Divers — design system
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --f-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1220px;
  --wrap-narrow: 820px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --sp-section: clamp(4.5rem, 8vw, 8rem);
  --sp-tight: clamp(3rem, 5vw, 5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .45s;

  --shadow-sm: 0 2px 10px rgba(0, 20, 35, .18);
  --shadow: 0 18px 40px -18px rgba(0, 20, 35, .5);
  --shadow-lg: 0 40px 80px -30px rgba(0, 20, 35, .65);
}

/* dark (default) */
html[data-theme="dark"] {
  --bg: #04121e;
  --bg-2: #071e30;
  --bg-3: #0a2739;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .11);
  --border-2: rgba(255, 255, 255, .2);
  --text: #eaf5f9;
  --text-2: #a6c1d0;
  --muted: #7f9cad;
  --brand: #2ad0ee;
  --brand-2: #0b8fb8;
  --brand-ink: #04121e;
  --accent: #ffc600;
  --hero-veil-1: rgba(3, 14, 24, .30);
  --hero-veil-2: rgba(3, 14, 24, .92);
  --glass: rgba(6, 24, 38, .94);
  --glass-solid: #061826;
  --img-fade: #04121e;
  color-scheme: dark;
}

/* light */
html[data-theme="light"] {
  --bg: #f4f9fb;
  --bg-2: #ffffff;
  --bg-3: #e8f2f7;
  --surface: #ffffff;
  --surface-2: #f0f7fa;
  --border: rgba(6, 40, 60, .12);
  --border-2: rgba(6, 40, 60, .24);
  --text: #062334;
  --text-2: #3d6274;
  --muted: #4f6f7f;
  --brand: #06718f;
  --brand-2: #055a73;
  --brand-ink: #ffffff;
  --accent: #d99b00;
  --hero-veil-1: rgba(3, 14, 24, .25);
  --hero-veil-2: rgba(3, 14, 24, .88);
  --glass: rgba(255, 255, 255, .95);
  --glass-solid: #ffffff;
  --img-fade: #f4f9fb;
  --shadow-sm: 0 2px 10px rgba(6, 40, 60, .07);
  --shadow: 0 18px 40px -20px rgba(6, 40, 60, .28);
  --shadow-lg: 0 40px 80px -34px rgba(6, 40, 60, .35);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 1.25rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--text); }

::selection { background: var(--brand); color: var(--brand-ink); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed; left: 0; top: 0; z-index: 999;
  transform: translateY(-200%);
  background: var(--brand); color: var(--brand-ink);
  padding: .7rem 1.2rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip:focus { transform: translateY(0); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }
@media (max-width: 600px) { .wrap, .wrap--narrow { width: calc(100% - 2rem); } }

.section { padding-block: var(--sp-section); position: relative; }
.section--tight { padding-block: var(--sp-tight); }

.ic { width: 22px; height: 22px; flex: none; }
.ic--xs { width: 16px; height: 16px; }
.ic--star { width: 15px; height: 15px; fill: var(--accent); stroke: none; }

/* ---------- typography helpers ---------- */
.kicker {
  font-family: var(--f-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .9rem;
}
.lede { color: var(--text-2); font-size: 1.08em; max-width: 62ch; }
.note {
  font-size: .875rem; color: var(--muted);
  border-left: 2px solid var(--border-2);
  padding-left: .9rem; margin-top: 1.2rem;
}
.side-note { font-size: .92rem; color: var(--text-2); }

.shead { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.shead--split {
  max-width: none; display: flex; gap: 2rem;
  align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
}
.shead--split > div { max-width: 720px; }
.shead h2 { margin-bottom: .45em; }

.pullquote {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem);
  font-weight: 300; font-style: italic;
  line-height: 1.35; color: var(--text);
  max-width: 26ch; margin: 0 0 2.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.pullquote .ic { color: var(--brand); margin-top: .45em; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-display); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .6rem 1.15rem; font-size: .875rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--full { width: 100%; }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--brand), var(--brand-2));
  --btn-fg: var(--brand-ink); --btn-bd: transparent;
  box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn--primary:hover { box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--brand) 80%, transparent); }

.btn--outline { --btn-bd: var(--border-2); }
.btn--outline:hover { --btn-bg: var(--surface-2); --btn-bd: var(--brand); }

.btn--ghost { --btn-bd: transparent; --btn-bg: var(--surface); }
.btn--ghost:hover { --btn-bg: var(--surface-2); }

.btn--glass {
  --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .38);
}
.btn--glass:hover { --btn-bg: rgba(255, 255, 255, .22); }

.btn--wa { --btn-bg: #25d366; --btn-fg: #04121e; --btn-bd: transparent; }
.btn--wa:hover { --btn-bg: #1fbe5b; }

.btnrow { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.chip {
  display: inline-flex; align-items: center;
  font-size: .82rem; font-weight: 500;
  padding: .4rem .9rem; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.chip--link:hover { border-color: var(--brand); color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.6rem; }
.chips--center { justify-content: center; }

.pill {
  display: inline-block; font-family: var(--f-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: .6rem;
}

.tagchip {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-family: var(--f-display); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
  background: rgba(4, 18, 30, .78);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: .35rem .75rem; border-radius: 100px;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-size: .8rem; color: var(--text-2);
  position: relative; z-index: 60;
}
.topbar__in { display: flex; align-items: center; gap: 1.4rem; min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; min-height: 26px; gap: .45rem; color: var(--text-2); }
a.topbar__item:hover { color: var(--brand); }
.topbar__spacer { flex: 1; }
.topbar__socials { display: flex; gap: .35rem; }
.soc {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text-2);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.soc svg { width: 17px; height: 17px; }
.soc:hover { color: var(--brand); background: var(--surface-2); }
/* Korean breaks lines mid-word unless told otherwise, which is very visible
   in the display headings */
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3,
html[lang="ko"] h4, html[lang="ko"] .btn, html[lang="ko"] .nav__link {
  word-break: keep-all;
}

/* ---------- language switcher ---------- */
.langs { gap: .45rem; }
.langs__list { display: inline-flex; align-items: center; flex-wrap: wrap; }
.langs__a {
  color: var(--text-2); padding: .15rem .1rem; border-radius: 4px;
  transition: color .2s var(--ease);
}
.langs__a:hover { color: var(--brand); }
.langs__a.is-active { color: var(--text); font-weight: 600; }
.langs__sep { margin: 0 .45rem; color: var(--border-2); user-select: none; }

/* the topbar is gone below 640px, so the drawer carries the same choice */
.nav__langs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.lang-chip {
  padding: .45rem .75rem; border: 1px solid var(--border); border-radius: 100px;
  font-size: .85rem; line-height: 1; color: var(--text-2);
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-chip:hover { color: var(--text); border-color: var(--border-2); }
.lang-chip.is-active {
  background: var(--brand); border-color: var(--brand);
  color: var(--brand-ink); font-weight: 600;
}

@media (max-width: 900px) { .topbar__item--hide { display: none; } }
@media (max-width: 640px) { .topbar { display: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 70;
  background: var(--glass);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }

body.has-hero .site-header {
  background: transparent;
  position: fixed; left: 0; right: 0; top: 0; will-change: top;
}
body.has-hero .site-header.is-stuck {
  background: var(--glass);
}
body.has-hero .topbar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 61;
  background: transparent; border-bottom-color: rgba(255, 255, 255, .14);
}
body.has-hero .topbar .topbar__item, body.has-hero .topbar .soc { color: rgba(255, 255, 255, .82); }
body.has-hero .topbar .langs__a { color: rgba(255, 255, 255, .82); }
body.has-hero .topbar .langs__a.is-active { color: #fff; }
body.has-hero .topbar .langs__a:hover { color: var(--brand); }
body.has-hero .topbar .langs__sep { color: rgba(255, 255, 255, .4); }
body.has-hero .topbar a.topbar__item:hover, body.has-hero .topbar .soc:hover { color: var(--brand); }
body.has-hero .site-header { top: 40px; transition: top .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease); }
body.has-hero .site-header.is-stuck { top: 0; }
@media (max-width: 640px) { body.has-hero .site-header, body.has-hero .site-header.is-stuck { top: 0; } }
/* scoped to .site-header — without it the footer logo also turned white,
   which is invisible on the light theme's white footer */
body.has-hero .site-header .brand__txt strong,
body.has-hero .site-header .nav__link,
body.has-hero .site-header .icon-btn { color: #fff; }
body.has-hero .site-header:not(.is-stuck) .brand__txt strong,
body.has-hero .site-header:not(.is-stuck) .brand__txt em,
body.has-hero .site-header:not(.is-stuck) .nav__link { text-shadow: 0 1px 10px rgba(2, 14, 24, .55); }
/* over the photo hero the header is always "dark mode", whatever the page theme:
   the light-theme brand colour is too dark to read there. */
body.has-hero .site-header:not(.is-stuck) .brand__txt em { color: #6fe0fb; }
body.has-hero .site-header.is-stuck .brand__txt strong,
body.has-hero .site-header.is-stuck .nav__link,
body.has-hero .site-header.is-stuck .icon-btn { color: var(--text); }

.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.site-header.is-stuck .header__in { min-height: 66px; }
.header__in, .site-header.is-stuck .header__in { transition: min-height .3s var(--ease); }

.brand { display: flex; align-items: center; gap: .7rem; color: inherit; flex: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong {
  font-family: var(--f-display); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--text);
}
.brand__txt em {
  font-style: normal; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}
.brand:hover { color: inherit; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: var(--f-display); font-size: .9rem; font-weight: 500;
  padding: .6rem .7rem; border-radius: var(--r-sm); color: var(--text);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: var(--brand); }
.nav__caret { width: 9px; height: 6px; opacity: .6; transition: transform .25s var(--ease); }
.nav__item--has-sub:hover .nav__caret { transform: rotate(180deg); }
.nav__toggle { display: none; }
.nav__foot { display: none; }

.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
  list-style: none; margin: 0; padding: .5rem;
  background: var(--glass-solid); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.nav__item--has-sub:hover .subnav,
.nav__item--has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translateY(0); }
.subnav a {
  display: block; padding: .55rem .8rem; border-radius: var(--r-sm);
  font-size: .9rem; color: var(--text-2);
}
.subnav a:hover, .subnav a.is-active { background: var(--surface-2); color: var(--brand); }

.header__actions { display: flex; align-items: center; gap: .5rem; flex: none; position: relative; z-index: 69; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.theme-toggle .ic--sun { display: none; }
.theme-toggle .ic--moon { display: block; }
html[data-theme="light"] .theme-toggle .ic--sun { display: block; }
html[data-theme="light"] .theme-toggle .ic--moon { display: none; }
.theme-toggle .ic { width: 19px; height: 19px; }

/* .icon-btn centres with `place-items`, which does nothing on the main axis of a
   flex container — the bars need an explicit justify-content or they sit at the top. */
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 65;
  background: rgba(2, 10, 18, .6);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav-scrim.is-on { opacity: 1; }

@media (max-width: 1120px) {
  .header__cta { display: none; }
  .nav__link { padding: .6rem .5rem; font-size: .86rem; }
}
@media (max-width: 980px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(370px, 88vw); z-index: 68;
    background: var(--glass-solid); border-left: 1px solid var(--border);
    padding: 5.5rem 1.5rem 2rem; overflow-y: auto;
    transform: translateX(102%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--border); }
  .nav__link { padding: 1rem .25rem; font-size: 1.05rem; color: var(--text) !important; justify-content: space-between; }
  .nav__caret { display: none; }
  .nav__item--has-sub { position: relative; }
  .nav__toggle {
    display: block; position: absolute; top: .55rem; right: 0;
    width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .nav__toggle::before, .nav__toggle::after {
    content: ""; position: absolute; left: 50%; top: 50%; background: var(--text);
    transform: translate(-50%, -50%); transition: transform .3s var(--ease), opacity .2s;
  }
  .nav__toggle::before { width: 11px; height: 1.6px; }
  .nav__toggle::after { width: 1.6px; height: 11px; }
  .nav__toggle[aria-expanded="true"]::after { opacity: 0; }
  .subnav {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none; padding: 0 0 .6rem;
    display: none;
  }
  .subnav.is-open { display: block; }
  .nav__foot { display: block; margin-top: 1.6rem; }
  .nav__foot .btn { width: 100%; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(8rem, 18vh, 12rem) clamp(4rem, 10vh, 7rem);
  isolation: isolate; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 12s var(--ease) forwards; will-change: transform; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 15% 100%, rgba(2, 20, 34, .92), transparent 70%),
    linear-gradient(180deg, rgba(2, 14, 24, .72) 0%, rgba(2, 14, 24, .18) 32%, rgba(2, 14, 24, .82) 78%, var(--img-fade) 100%);
}
.hero__in { position: relative; z-index: 2; color: #fff; }
.hero__kicker {
  font-family: var(--f-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 1.1rem;
}
.hero__title { margin: 0 0 1.1rem; color: #fff; max-width: 15ch; font-weight: 800; }
.hero__title span {
  background: linear-gradient(100deg, var(--brand), #9be9ff 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 300;
}
.hero__lede { max-width: 58ch; color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem;
  list-style: none; margin: 2.6rem 0 0; padding: 0;
  font-size: .86rem; color: rgba(255, 255, 255, .82);
}
.hero__trust li { display: flex; align-items: center; gap: .5rem; }
.hero__trust .ic { color: var(--brand); }

.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 14px; z-index: 3;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 7px;
  background: #fff; border-radius: 2px; transform: translateX(-50%);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; contain: strict; }
.bubbles span {
  position: absolute; bottom: -8%; will-change: transform, opacity;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .07) 62%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, .18);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12% { opacity: .8; }
  85% { opacity: .5; }
  100% { transform: translate3d(28px, -105vh, 0) scale(1.15); opacity: 0; }
}
.bubbles span:nth-child(1) { left: 6%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 14%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 2s; }
.bubbles span:nth-child(3) { left: 22%; width: 14px; height: 14px; animation-duration: 19s; animation-delay: 4s; }
.bubbles span:nth-child(4) { left: 31%; width: 8px; height: 8px; animation-duration: 14s; animation-delay: 1s; }
.bubbles span:nth-child(5) { left: 39%; width: 5px; height: 5px; animation-duration: 11s; animation-delay: 6s; }
.bubbles span:nth-child(6) { left: 47%; width: 12px; height: 12px; animation-duration: 17s; animation-delay: 3s; }
.bubbles span:nth-child(7) { left: 55%; width: 7px; height: 7px; animation-duration: 13s; animation-delay: 7s; }
.bubbles span:nth-child(8) { left: 63%; width: 16px; height: 16px; animation-duration: 21s; animation-delay: 1.5s; }
.bubbles span:nth-child(9) { left: 71%; width: 6px; height: 6px; animation-duration: 12s; animation-delay: 5s; }
.bubbles span:nth-child(10) { left: 78%; width: 11px; height: 11px; animation-duration: 16s; animation-delay: 8s; }
.bubbles span:nth-child(11) { left: 85%; width: 8px; height: 8px; animation-duration: 14s; animation-delay: 2.5s; }
.bubbles span:nth-child(12) { left: 92%; width: 13px; height: 13px; animation-duration: 18s; animation-delay: 6.5s; }
.bubbles span:nth-child(13) { left: 44%; width: 9px; height: 9px; animation-duration: 20s; animation-delay: 9s; }
.bubbles span:nth-child(14) { left: 68%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: 4.5s; }

/* ---------- page hero (inner pages) ---------- */
.phero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(9.5rem, 20vh, 12rem) clamp(3.5rem, 8vh, 6rem);
  color: #fff;
}
.phero--tall { padding-block: clamp(11rem, 26vh, 15rem) clamp(4.5rem, 10vh, 7rem); }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.phero__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 80% at 10% 100%, rgba(2, 20, 34, .9), transparent 68%),
    linear-gradient(180deg, rgba(2, 14, 24, .82) 0%, rgba(2, 14, 24, .42) 45%, rgba(2, 14, 24, .88) 100%);
}
.phero__fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(180deg, transparent, var(--img-fade));
}
.phero__in { position: relative; z-index: 2; max-width: 60rem; }
.phero__title { color: #fff; margin-bottom: .5em; text-shadow: 0 2px 24px rgba(2, 14, 24, .6); }
.phero__sub { color: rgba(255, 255, 255, .88); max-width: 62ch; font-size: 1.06rem; text-shadow: 0 1px 14px rgba(2, 14, 24, .6); }
.phero .kicker { color: var(--brand); }

@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.phero__in > *, .hero__in > * { animation: heroIn .8s var(--ease) both; }
.phero__in > *:nth-child(1), .hero__in > *:nth-child(1) { animation-delay: .05s; }
.phero__in > *:nth-child(2), .hero__in > *:nth-child(2) { animation-delay: .14s; }
.phero__in > *:nth-child(3), .hero__in > *:nth-child(3) { animation-delay: .23s; }
.phero__in > *:nth-child(4), .hero__in > *:nth-child(4) { animation-delay: .32s; }
.phero__in > *:nth-child(5), .hero__in > *:nth-child(5) { animation-delay: .41s; }
@media (prefers-reduced-motion: reduce) { .phero__in > *, .hero__in > * { animation: none; } }

.crumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255, 255, 255, .62); margin-bottom: 1.6rem;
}
.crumbs a { color: rgba(255, 255, 255, .78); }
.crumbs a:hover { color: var(--brand); }
.crumbs i { font-style: normal; opacity: .4; }

/* ---------- stats bar ---------- */
.statsbar { background: var(--bg-2); border-block: 1px solid var(--border); }
.statsbar__in {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; padding-block: clamp(2rem, 4vw, 3rem);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: var(--border);
}
.stat__n, .stat__suf {
  font-family: var(--f-display); font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem);
  font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -.03em;
}
.stat__suf { color: var(--brand); }
.stat__l {
  display: block; margin-top: .5rem; font-size: .82rem;
  color: var(--muted); letter-spacing: .04em;
}
@media (max-width: 720px) {
  .statsbar__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; }
  .stat:nth-child(3)::before { display: none; }
}

/* ---------- split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.split--rev .split__media { order: -1; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__badge {
  position: absolute; left: 1.4rem; bottom: 1.4rem;
  background: var(--glass);
  border: 1px solid var(--border-2); border-radius: var(--r);
  padding: .85rem 1.15rem; display: flex; flex-direction: column; line-height: 1.25;
}
.split__badge strong { font-family: var(--f-display); font-size: 1.2rem; color: var(--text); }
.split__badge span { font-size: .78rem; color: var(--muted); }
.split__text .btn { margin-top: 1.4rem; margin-right: .6rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
}

/* ---------- checks ---------- */
.checks { list-style: none; margin: 1.4rem 0; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
.checks .ic { color: var(--brand); margin-top: .35em; }
.checks--2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.8rem; }
@media (max-width: 700px) { .checks--2col { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.featgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .featgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .featgrid { grid-template-columns: 1fr; } }
.feat {
  display: flex; flex-direction: column;
  padding: 2rem 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  position: relative; overflow: hidden;
}
.feat::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 60%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 26%, transparent), transparent);
  opacity: 0; transition: opacity .4s var(--ease);
}
.feat:hover { transform: translateY(-6px); border-color: var(--border-2); }
.feat:hover::after { opacity: 1; }
.feat__ic {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 15px; margin-bottom: 1.2rem;
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.feat h3 { margin-bottom: .5rem; }
.feat p { color: var(--text-2); font-size: .93rem; flex: 1; }

.card__go {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem;
  font-family: var(--f-display); font-size: .85rem; font-weight: 600; color: var(--brand);
}
.card__go .ic { transition: transform .3s var(--ease); }
a:hover .card__go .ic { transform: translateX(4px); }

/* ---------- cards ---------- */
.cardgrid { display: grid; gap: 1.5rem; }
.cardgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cardgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cardgrid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cardgrid--3, .cardgrid--2 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--border); color: var(--text);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow); color: var(--text); }
.card__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(3, 16, 27, .55));
}
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .45rem; }
.card__body > p { color: var(--text-2); font-size: .92rem; flex: 1; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: 1.1rem;
  padding-top: 1.1rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}
.card__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.card__meta .ic { color: var(--brand); }
.card--feature { border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.card--spec .card__media { aspect-ratio: 3 / 2; }
.card--el { flex-direction: row; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
.card--el .card__ic {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
}
.card--el .card__body { padding: 0; }
.card--el h3 { font-size: 1.1rem; }

/* ---------- pricing ---------- */
.section--packages { background: var(--bg-2); }
.pricegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1000px) { .pricegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pricegrid { grid-template-columns: 1fr; } }
.price {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.6rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.price:hover { transform: translateY(-6px); border-color: var(--border-2); }
.price--featured {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 10%, transparent), var(--surface));
  box-shadow: var(--shadow);
}
.price__flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #04121e;
  padding: .3rem .8rem; border-radius: 100px; white-space: nowrap;
}
.price__name {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 700;
  margin: 0; letter-spacing: -.02em;
}
.price__dives { font-size: .85rem; color: var(--brand); margin: 0 0 1rem; letter-spacing: .06em; text-transform: uppercase; }
.price__amt {
  font-family: var(--f-display); font-size: 3rem; font-weight: 700;
  line-height: 1; margin: 0 0 1.4rem; letter-spacing: -.04em;
}
.price__amt sup { font-size: .42em; font-weight: 600; vertical-align: super; color: var(--muted); margin-right: .1em; }
.price__list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .5rem; flex: 1; }
.price__list li { display: flex; gap: .55rem; align-items: center; font-size: .88rem; color: var(--text-2); }
.price__list .ic { color: var(--brand); }

.incl {
  margin-top: 2.5rem; padding: clamp(1.6rem, 3vw, 2.5rem);
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
}
.incl h3 { margin-bottom: .6rem; }

/* ---------- ladder ---------- */
.ladder { display: grid; gap: .7rem; }
.step {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.1rem 1.3rem; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.step:hover { transform: translateX(6px); border-color: var(--brand); color: var(--text); }
.step__n {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; font-family: var(--f-display); font-weight: 700; font-size: .95rem;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.step__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.step__body strong { font-family: var(--f-display); font-size: 1.02rem; }
.step__body em { font-style: normal; font-size: .84rem; color: var(--muted); }
.step__meta { font-size: .78rem; color: var(--brand); white-space: nowrap; flex: none; }
@media (max-width: 520px) { .step__meta { display: none; } }

/* ---------- panel ---------- */
.panel {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; padding: clamp(1.8rem, 4vw, 3.5rem);
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border);
}
.panel--rev { grid-template-columns: 1fr 1.1fr; }
.panel--rev .panel__media { order: -1; }
.panel__media { border-radius: var(--r-lg); overflow: hidden; }
.panel__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.panel__text .btn { margin-top: 1.4rem; }
@media (max-width: 860px) {
  .panel, .panel--rev { grid-template-columns: 1fr; }
  .panel--rev .panel__media { order: 0; }
}

/* ---------- specs grid ---------- */
.specgrid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
@media (max-width: 900px) { .specgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .specgrid { grid-template-columns: 1fr; } }
.spec {
  background: var(--bg); padding: 1.35rem 1.3rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.spec__ic { color: var(--brand); margin-bottom: .4rem; }
.spec__k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec__v { font-family: var(--f-display); font-size: 1.02rem; font-weight: 600; line-height: 1.3; }

/* ---------- two column layout w/ sidebar ---------- */
.layout2 { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.layout2--wide { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 940px) { .layout2, .layout2--wide { grid-template-columns: 1fr; } }

.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; }
.prose p { color: var(--text-2); }
.prose > .btn { margin-top: 1rem; }

.sidecard {
  padding: 1.7rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  position: sticky; top: 110px;
}
.sidecard h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.sidecard h3 + h3 { margin-top: 1.6rem; }
.sidecard .btn { margin-top: .7rem; }
.sidecard--contact { position: static; }
@media (max-width: 940px) { .sidecard { position: static; } }

/* ---------- timeline ---------- */
.tl { position: relative; padding-left: 1.9rem; margin: 1.4rem 0 0; }
.tl::before {
  content: ""; position: absolute; left: 6px; top: .6rem; bottom: .6rem; width: 1px;
  background: linear-gradient(180deg, var(--brand), transparent);
}
.tl__row { position: relative; padding-bottom: 1.7rem; }
.tl__row:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -1.9rem; top: .38rem;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--brand);
}
.tl__body h4 { margin-bottom: .3rem; color: var(--text); }
.tl__body p { color: var(--text-2); font-size: .94rem; margin: 0; }
.tl--awards .tl__body h4 { font-family: var(--f-display); font-size: 1.3rem; color: var(--brand); }

/* ---------- three-up ---------- */
.threeup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 800px) { .threeup { grid-template-columns: minmax(0, 1fr); } }
.upitem { padding: 1.8rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.upitem__n {
  font-family: var(--f-display); font-size: 2.4rem; font-weight: 700;
  color: color-mix(in srgb, var(--brand) 40%, transparent); line-height: 1; display: block; margin-bottom: .8rem;
}
.upitem p { color: var(--text-2); font-size: .93rem; margin: 0; }

/* ---------- specialty blocks ---------- */
.specblock {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
}
.specblock:first-child { border-top: none; padding-top: 0; }
.specblock--rev .specblock__media { order: 2; }
.specblock__media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.specblock__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.specblock__text .btn { margin-top: 1rem; }
.minispecs {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin: 1.2rem 0 0; font-size: .82rem; color: var(--muted);
}
.minispecs span { display: inline-flex; align-items: center; gap: .4rem; }
.minispecs .ic { color: var(--brand); }
@media (max-width: 860px) {
  .specblock, .specblock--rev { grid-template-columns: 1fr; }
  .specblock--rev .specblock__media { order: 0; }
}

/* ---------- gallery ---------- */
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px; gap: 1rem;
}
.gitem { position: relative; margin: 0; overflow: hidden; border-radius: var(--r); background: var(--bg-3); }
.gitem img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gitem:hover img { transform: scale(1.08); }
.gitem figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .8rem;
  font-size: .78rem; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3, 16, 27, .85));
  opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gitem:hover figcaption { opacity: 1; transform: translateY(0); }
.gitem:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gitem:nth-child(6) { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 165px; }
  .gitem:nth-child(1) { grid-column: span 2; }
  .gitem:nth-child(6) { grid-column: span 2; }
}

/* ---------- reviews marquee ---------- */
.section--reviews { background: var(--bg-2); overflow: hidden; }
.marquee { margin-top: 2.5rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__row {
  display: flex; gap: 1.25rem; width: max-content;
  animation: slide 70s linear infinite; will-change: transform;
}
.marquee__row.is-paused { animation-play-state: paused; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.review {
  width: 340px; flex: none; margin: 0;
  padding: 1.7rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.review__stars { display: flex; gap: 2px; margin-bottom: .9rem; }
.review blockquote {
  margin: 0 0 1.2rem; font-size: .94rem; color: var(--text-2); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden;
}
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.review__name { font-family: var(--f-display); font-weight: 600; font-size: .92rem; }
.review__lang {
  font-size: .68rem; letter-spacing: .1em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 100px; padding: .12rem .5rem;
}
@media (prefers-reduced-motion: reduce) { .marquee__row { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- team ---------- */
.teamgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 900px) { .teamgrid { grid-template-columns: 1fr; max-width: 620px; } }
.member {
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.member:hover { transform: translateY(-6px); border-color: var(--border-2); }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-3); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--ease); }
.member:hover .member__photo img { transform: scale(1.05); }
.member__body { padding: 1.6rem; }
.member__body h3 { margin-bottom: .2rem; }
.member__role {
  font-family: var(--f-display); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.member__body > p { color: var(--text-2); font-size: .92rem; }
.member__langs { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--muted); margin-top: 1rem; }
.member__langs .ic { color: var(--brand); }

/* ---------- accordion ---------- */
.accs { display: grid; gap: .7rem; }
.acc { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; background: none; border: none; cursor: pointer;
  font-family: var(--f-display); font-size: 1rem; font-weight: 600; color: var(--text); text-align: left;
}
.acc__ic { color: var(--brand); transition: transform .35s var(--ease); }
.acc__q[aria-expanded="true"] .acc__ic { transform: rotate(45deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a > p { overflow: hidden; margin: 0; padding: 0 1.4rem; color: var(--text-2); font-size: .95rem; }
.acc.is-open .acc__a > p { padding-bottom: 1.35rem; }

/* ---------- next card ---------- */
.nextcard {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.8rem, 3.5vw, 3rem); border-radius: var(--r-xl);
  background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, transparent), var(--surface));
  border: 1px solid var(--border);
}
.nextcard h2 { margin-bottom: .4rem; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
.nextcard > div { max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(4rem, 8vw, 6.5rem); color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(2, 16, 28, .93) 30%, rgba(2, 16, 28, .55));
}
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band .lede { color: rgba(255, 255, 255, .82); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn--ghost { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); }

/* ---------- contact ---------- */
/* auto-fit rather than a fixed count: the row holds five cards on a wide
   screen and sheds one at a time as it narrows, so adding a channel does
   not leave a lone card stranded on its own row. */
.contactgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .contactgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .contactgrid { grid-template-columns: 1fr; } }
.ccard {
  display: flex; flex-direction: column; gap: .3rem; padding: 1.6rem;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
a.ccard:hover { transform: translateY(-5px); border-color: var(--brand); color: var(--text); }
.ccard__ic {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px;
  background: var(--surface-2); color: var(--brand); margin-bottom: .8rem;
  border: 1px solid var(--border);
}
.ccard__ic--wa { background: rgba(37, 211, 102, .14); color: #25d366; border-color: rgba(37, 211, 102, .3); }
.ccard__ic--tg { background: rgba(42, 171, 238, .14); color: #2aabee; border-color: rgba(42, 171, 238, .3); }
.ccard__ic--zl { background: rgba(0, 104, 255, .16); color: #3d8bff; border-color: rgba(0, 104, 255, .36); }
.ccard__ic--ig { background: rgba(225, 48, 108, .14); color: #e1306c; border-color: rgba(225, 48, 108, .32); }
.ccard__ic--fb { background: rgba(24, 119, 242, .14); color: #4a90ff; border-color: rgba(24, 119, 242, .34); }
.ccard__ic--kk { background: rgba(255, 198, 0, .16); color: #f5c400; border-color: rgba(255, 198, 0, .34); font-family: var(--f-display); font-weight: 800; }
.ccard__k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ccard__v { font-family: var(--f-display); font-size: 1rem; font-weight: 600; word-break: break-word; }

/* ---------- form ---------- */
.form { display: grid; gap: 1rem; margin-top: 1.8rem; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form label {
  display: grid; gap: .45rem;
  font-family: var(--f-display); font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; color: var(--text-2);
}
.form input, .form select, .form textarea {
  font-family: var(--f-body); font-size: .95rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: .8rem .95rem; width: 100%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--brand); outline: none; background: var(--surface-2); }
.form textarea { resize: vertical; min-height: 110px; }
.form__note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; }
.form__note.is-ok { color: var(--brand); }

.mapwrap { margin: 1.4rem 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); }
.mapwrap iframe { width: 100%; height: 250px; border: 0; display: block; }
html[data-theme="dark"] .mapwrap iframe { filter: invert(.92) hue-rotate(180deg) saturate(.75) contrast(.95); }

.fcol__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fcol__contact li { display: flex; gap: .7rem; align-items: flex-start; padding: .25rem 0; font-size: .88rem; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.fcol__contact .ic { color: var(--brand); margin-top: .3em; flex: none; }
.fcol__contact a { color: var(--text-2); }
.fcol__contact a:hover { color: var(--brand); }
.fcol__contact--big li { font-size: .95rem; }
.fcol__contact--big small { color: var(--muted); font-size: .8rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; margin-top: 0;
}
.footer__top {
  display: grid;
  /* minmax(0, …) so long link text can wrap instead of blowing the column out */
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 2.5rem 2rem; padding-bottom: 3rem;
}
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fcol--brand { grid-column: span 3; }
}
@media (max-width: 680px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .fcol--brand { grid-column: span 2; }
}
.fcol h4 {
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1rem;
}
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
/* footer links double as mobile navigation — keep them thumb-sized */
.fcol ul a { display: inline-block; padding: .5rem 0; font-size: .88rem; color: var(--text-2); overflow-wrap: anywhere; }
.fcol ul a:hover { color: var(--brand); }
.fcol__lede { font-size: .88rem; color: var(--text-2); max-width: 34ch; margin: 1.1rem 0 1.2rem; }
.brand--footer img { width: 48px; height: 48px; }
.footer__socials { display: flex; gap: .5rem; }
/* footer icons are a touch target, so keep them comfortably tappable */
.footer__socials .soc { width: 44px; height: 44px; border: 1px solid var(--border); }
.footer__socials .soc svg { width: 19px; height: 19px; }

.footer__badges {
  display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3.5rem);
  flex-wrap: wrap; padding: 2rem 0; border-top: 1px solid var(--border);
}
.footer__badges img {
  height: 44px; width: auto; opacity: .55;
  filter: grayscale(1) brightness(0);
  transition: opacity .3s var(--ease), filter .3s var(--ease);
}
.footer__badges img:hover { opacity: .95; }
html[data-theme="dark"] .footer__badges img { filter: grayscale(1) brightness(0) invert(1); opacity: .5; }
html[data-theme="dark"] .footer__badges img:hover { opacity: .95; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 1.8rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}
.footer__bottom p { margin: 0; }

/* ---------- floating actions ---------- */
.quick-contact {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 55;
  display: flex; flex-direction: column; gap: .6rem;
}
.qc {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem .9rem; border-radius: 100px;
  font-family: var(--f-display); font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow); color: #04121e;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.qc span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s var(--ease); }
.qc:hover { transform: translateY(-3px); color: #04121e; }
.qc:hover span { max-width: 100px; }
.qc--wa { background: #25d366; }
.qc--tg { background: #2aabee; }
/* Zalo blue is dark enough that the shared dark ink fails contrast, so
   this one pill keeps white text — on hover too. */
.qc--zl { background: #0068ff; }
.qc--zl, .qc--zl:hover { color: #fff; }
.qc .ic { width: 21px; height: 21px; }

.to-top {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 55;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--glass);
  border: 1px solid var(--border-2); color: var(--text); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-on { opacity: 1; transform: translateY(0); pointer-events: auto; }
@media (max-width: 640px) { .to-top { display: none; } }

/* ---------- reveal ---------- */
html.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; }
  .bubbles { display: none; }
}

/* ---------- misc sections ---------- */
.section--sites, .section--specs { background: var(--bg-2); }
.section--gallery { background: var(--bg-2); }
.section--faq { background: var(--bg); }
.section--intro + .section--feats { padding-top: 0; }
body.has-hero .statsbar { position: relative; z-index: 2; }
