/* ==========================================================================
   OK Gusar Omiš — Adriatic Pirate design system
   Built with the premium-web-design skill (10 Laws)
   Fonts: Oswald (headings) + Manrope (body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Color — 60/30/10 */
  --sand: #FAF7F1;            /* dominant background (60%) */
  --pearl: #F1EBDF;           /* alternate sections (30%) */
  --ink: #10233B;             /* deep Adriatic navy — text, dark sections */
  --hero-bg: #1B3A5C;         /* steel blue — hero background (lighter ink) */
  --ink-deep: #0A1828;        /* CTA / footer depth */
  --ink-soft: #22354E;        /* dark surface layer */
  --accent: #C8320C;            /* deep red — tiny signature details only */
  --accent-strong: #15787B;   /* deep Adriatic teal — interactive accent */
  --accent-hover: #0F5E61;
  --aqua: #27B0F5;            /* Light blue — headers/tags decoration */
  --aqua-light: #8FD3D4;      /* aqua on dark */
  --card: #FFFFFF;

  --text: #1C2430;
  --text-light: #6E6A60;
  --text-on-dark: #EDEAE1;
  --text-on-dark-dim: #B4BCC7;

  /* Typography */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Spacing scale (8px grid) */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem;
  --space-24: 6rem; --space-32: 8rem;
  --section: clamp(3.5rem, 7vw, 6rem);

  /* Radius — sharp editorial + soft cards */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Shadows — layered, navy-tinted */
  --shadow-tint: 16, 35, 59;
  --shadow-sm: 0 1px 2px rgba(var(--shadow-tint), 0.06), 0 1px 3px rgba(var(--shadow-tint), 0.1);
  --shadow-md: 0 4px 6px rgba(var(--shadow-tint), 0.07), 0 2px 4px rgba(var(--shadow-tint), 0.06);
  --shadow-lg: 0 10px 15px rgba(var(--shadow-tint), 0.1), 0 4px 6px rgba(var(--shadow-tint), 0.05);
  --shadow-xl: 0 20px 25px rgba(var(--shadow-tint), 0.12), 0 8px 10px rgba(var(--shadow-tint), 0.05);

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 150ms;
  --dur-normal: 250ms;
  --dur-slow: 350ms;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

::selection { background: var(--accent-strong); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-6);
  background: var(--ink);
  color: var(--text-on-dark);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--dur-fast) var(--ease-out-quart);
}
.skip-link:focus { top: var(--space-4); }

/* Visually hidden, available to assistive technology */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--dur-normal) var(--ease-out-quart),
              box-shadow var(--dur-normal) var(--ease-out-quart),
              background-color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart),
              color var(--dur-fast) var(--ease-out-quart);
}
.btn-primary {
  background: var(--ink);
  color: var(--text-on-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--ink-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(16, 35, 59, 0.3);
}
.btn-ghost:hover { background: rgba(16, 35, 59, 0.05); border-color: rgba(16, 35, 59, 0.55); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0) scale(0.98); transition-duration: 100ms; }

/* On the dark hero the buttons invert for contrast */
.hero .btn-primary {
  background: var(--text-on-dark);
  color: var(--ink);
}
.hero .btn-primary:hover { background: #fff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.15); }
.hero .btn-ghost {
  color: var(--text-on-dark);
  border-color: rgba(237, 234, 225, 0.35);
}
.hero .btn-ghost:hover { background: rgba(237, 234, 225, 0.08); border-color: rgba(237, 234, 225, 0.7); }

/* ---------- Tags / eyebrows ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: var(--space-4);
}
.tag::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-xs);
}
.tag-dark { color: var(--accent-strong); }
.tag-dark::before { background: var(--accent-strong); }
.tag-cta { color: var(--aqua-light); }
.tag-cta::before { background: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: var(--space-4);
  color: var(--ink);
  transition: background-color var(--dur-normal) var(--ease-out-quart),
              box-shadow var(--dur-normal) var(--ease-out-quart),
              color var(--dur-normal) var(--ease-out-quart),
              padding var(--dur-normal) var(--ease-out-quart);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  padding-block: var(--space-3);
}

/* Over the dark hero the header starts light */
.site-header:not(.scrolled) { color: var(--text-on-dark); }
.site-header:not(.scrolled) .btn-nav {
  background: var(--text-on-dark);
  color: var(--ink);
}
.site-header:not(.scrolled) .btn-nav:hover { background: #fff; }
.site-header:not(.scrolled) .nav-social-link { color: var(--text-on-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.brand-mark { color: var(--accent); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.65;
}

.main-nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-list { display: flex; align-items: center; gap: var(--space-6); }

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: var(--space-1);
  opacity: 0.9;
  transition: opacity var(--dur-fast) var(--ease-out-quart);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-normal) var(--ease-out-quart);
}
.nav-link:hover, .nav-link.active { opacity: 1; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-nav { padding: 0.65rem 1.4rem; font-size: 0.88rem; }

.nav-social {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-right: var(--space-3);
}
.nav-social-link {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: var(--ink);
  transition: background var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);
}
.nav-social-link:hover { background: var(--aqua); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
}
.nav-toggle-bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-normal) var(--ease-out-quart),
              opacity var(--dur-fast) var(--ease-out-quart);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (steel blue #1B3A5C, split layout) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(7rem, 13vh, 9rem);
  background: var(--hero-bg);
  color: var(--text-on-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 82% 22%, rgba(35, 160, 164, 0.28), transparent 62%),
    radial-gradient(40% 45% at 8% 88%, rgba(39, 176, 245, 0.14), transparent 60%),
    linear-gradient(160deg, var(--hero-bg) 0%, #152E4A 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(237, 234, 225, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.hero-coords {
  position: absolute;
  right: var(--space-6);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(237, 234, 225, 0.4);
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: var(--space-12);
}

.tag-hero {
  color: var(--aqua-light);
  background: rgba(35, 160, 164, 0.16);
  border: 1px solid rgba(143, 211, 212, 0.3);
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}
.tag-hero::before { background: var(--accent); }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-transform: uppercase;
  color: var(--text-on-dark);
  margin-bottom: var(--space-6);
}
.hero-title-ok {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  background: var(--accent);
  color: #fff;
  padding: 0.15em 0.6em 0.1em 0.75em;
  border-radius: var(--radius-xs);
  margin-bottom: var(--space-3);
}
.hero-title-main {
  font-size: clamp(4.25rem, 11vw, 8.25rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
}
.hero-title-outline {
  font-size: clamp(4.25rem, 11vw, 8.25rem);
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1;
  margin-top: 0.1em;
  color: var(--aqua);
  -webkit-text-stroke: 1px rgba(39, 176, 245, 0.4);
}

.hero-lead {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-on-dark-dim);
  margin-bottom: var(--space-8);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-10); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark-dim);
}
.hero-facts li { position: relative; padding-left: 1.15rem; }
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  background: var(--aqua);
  border-radius: var(--radius-xs);
}
.hero-facts li:first-child::before { background: var(--accent); }

/* Hero ball — ivory seams on ink */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-ball-wrap { position: relative; width: min(100%, 440px); }
.hero-ball { width: 100%; height: auto; overflow: visible; animation: ball-float 9s var(--ease-out-quart) infinite alternate; }
.ball-body { fill: rgba(237, 234, 225, 0.04); stroke: rgba(237, 234, 225, 0.85); stroke-width: 3; }
.ball-seam { fill: none; stroke: rgba(237, 234, 225, 0.55); stroke-width: 3; stroke-linecap: round; }
.ball-seam-accent { stroke: var(--accent); }
.ball-seam-faint { stroke: rgba(237, 234, 225, 0.25); }
.ball-orbit {
  fill: none;
  stroke: rgba(143, 211, 212, 0.5);
  stroke-width: 2;
  transform-origin: 200px 200px;
  animation: orbit-spin 70s linear infinite;
}

.hero-motion-line {
  position: absolute;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua));
  opacity: 0.55;
}
.line-1 { top: 22%; right: -6%; width: 64px; transform: rotate(-18deg); }
.line-2 { top: 30%; right: -12%; width: 96px; transform: rotate(-18deg); background: linear-gradient(90deg, transparent, var(--accent)); }
.line-3 { bottom: 18%; left: -8%; width: 72px; transform: rotate(-18deg); }

@keyframes ball-float {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-16px) rotate(2.5deg); }
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: var(--space-8);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-on-dark-dim);
  transition: opacity var(--dur-normal) var(--ease-out-quart);
}
.scroll-indicator-text { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.scroll-indicator-line { position: relative; width: 2px; height: 44px; background: rgba(237, 234, 225, 0.2); overflow: hidden; border-radius: 2px; }
.scroll-indicator-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: -50%;
  width: 100%;
  height: 50%;
  background: var(--accent);
  animation: scroll-drop 1.8s var(--ease-out-expo) infinite;
}
@keyframes scroll-drop { 0% { top: -50%; } 60%, 100% { top: 110%; } }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

/* ---------- Ticker (marquee) ---------- */
.ticker {
  position: relative;
  background: #fff;
  color: var(--text-light);
  overflow: hidden;
  padding-block: 0.85rem;
}
.ticker::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: clamp(26px, 4vw, 52px);
  background: linear-gradient(to top left, transparent calc(50% - 0.5px), #fff calc(50% + 0.5px));
}
.ticker-viewport {
  max-width: min(1140px, 100% - 3rem);
  margin-inline: auto;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-list {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-right: var(--space-8);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-list li {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.ticker-list li::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */
.section { padding-block: var(--section); }
.section-alt { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-title { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 600; margin-bottom: var(--space-4); }
.section-lead { font-size: 1.1rem; color: var(--text-light); }

/* ---------- Results ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
.results-card {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.results-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
}
.results-body { flex: 1; }
.results-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.results-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: var(--space-5);
}
.results-text strong { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .results-card { flex-direction: column; text-align: center; }
  .results-body { text-align: center; }
  .results-card .btn { width: 100%; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-media { position: relative; display: grid; gap: var(--space-6); padding: var(--space-8) var(--space-8) var(--space-12) 0; }
.photo-frame { position: relative; }
.photo-main { width: 82%; justify-self: start; }
.photo-secondary { width: 74%; justify-self: end; margin-top: 0; border: 6px solid var(--sand); z-index: 2; }
.photo-main::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 3px solid var(--aqua);
  border-radius: var(--radius-xs);
  z-index: -1;
}
.photo-secondary::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 3px solid var(--aqua);
  border-radius: var(--radius-xs);
  z-index: -1;
}
.photo-img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-lg);
}
.photo-img-secondary { aspect-ratio: 4 / 3.4; object-position: center 40%; }
.about-badge {
  position: absolute;
  top: 0;
  right: 6%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(88px, 10vw, 116px);
  aspect-ratio: 1;
  padding: var(--space-3);
  background: var(--aqua);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transform: rotate(6deg);
}

.about-content p { color: var(--text-light); margin-bottom: var(--space-4); max-width: 56ch; }
.about-content .section-title { max-width: 20ch; }

.about-quote {
  margin: var(--space-6) 0;
  padding: 1.25rem var(--space-6);
  border-left: 4px solid var(--aqua);
  background: var(--card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.about-quote p { font-size: 1.08rem; font-weight: 600; color: var(--ink); margin-bottom: var(--space-2); }
.about-quote cite { font-style: normal; font-size: 0.88rem; font-weight: 700; color: var(--text-light); }

.check-list { margin-top: 1.25rem; display: grid; gap: var(--space-3); }
.check-list li { position: relative; padding-left: 1.9rem; font-weight: 600; color: var(--text); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--aqua);
  border-radius: var(--radius-xs);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.55em;
  width: 0.5rem;
  height: 0.28rem;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

/* ---------- Program cards — icon-left ---------- */
.card-grid { display: grid; gap: var(--space-6); }
.card-grid-4 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-1) var(--space-4);
  align-items: start;
  background: var(--card);
  border: 1px solid rgba(16, 35, 59, 0.07);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-out-quart),
              box-shadow var(--dur-normal) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(35, 160, 164, 0.4); }

.card-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  border-radius: var(--radius-md);
}
.card-title { grid-column: 2; font-size: 1.28rem; font-weight: 600; letter-spacing: 0.01em; }
.card p { grid-column: 2; font-size: 0.95rem; color: var(--text-light); }

.card-tone-ink .card-icon { color: var(--ink); background: rgba(16, 35, 59, 0.07); }
.card-tone-aqua .card-icon { color: #147075; background: rgba(35, 160, 164, 0.12); }
.card-tone-mix .card-icon { color: var(--ink); background: linear-gradient(135deg, rgba(35, 160, 164, 0.18), rgba(16, 35, 59, 0.06)); }
.card-tone-sand .card-icon { color: #147075; background: var(--sand); box-shadow: inset 0 0 0 1px rgba(16, 35, 59, 0.07); }

/* ---------- Training ---------- */
.training {
  background:
    radial-gradient(55% 60% at 85% 15%, rgba(35, 160, 164, 0.06), transparent 60%),
    radial-gradient(45% 50% at 8% 90%, rgba(200, 50, 12, 0.04), transparent 55%),
    var(--pearl);
}
.training-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.training-lead { color: var(--text-light); font-size: 1.08rem; margin-bottom: 1.25rem; }
.training-note { font-size: 0.92rem; color: var(--text-light); margin-bottom: var(--space-8); }
.training-note a { color: var(--accent-strong); font-weight: 700; border-bottom: 1px solid rgba(21, 120, 123, 0.4); transition: color var(--dur-fast); }
.training-note a:hover { color: var(--ink); }

.training-schedule {
  background: var(--card);
  border: 1px solid rgba(16, 35, 59, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-xl);
}
.schedule-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1.25rem;
}
.schedule-list { display: grid; }
.schedule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(16, 35, 59, 0.08);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.schedule-time { font-weight: 800; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.schedule-place { grid-column: 1 / -1; font-size: 0.9rem; color: var(--text-light); }

/* ---------- Social ---------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 820px;
}
.social-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--card);
  border: 1px solid rgba(16, 35, 59, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-out-quart),
              box-shadow var(--dur-normal) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.social-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(35, 160, 164, 0.45); }
.social-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius-full);
  transition: background-color var(--dur-fast) var(--ease-out-quart);
}
.social-card:hover .social-icon { background: var(--aqua); }
.social-card:hover .social-icon { color: var(--ink); }
.social-text { display: flex; flex-direction: column; line-height: 1.3; }
.social-network { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); }
.social-handle { font-size: 0.92rem; color: var(--text-light); }
.social-cta { margin-left: auto; font-weight: 800; font-size: 0.9rem; color: var(--accent-strong); white-space: nowrap; }

/* ---------- CTA (dark conversion moment — bookends the dark hero) ---------- */
.cta {
  position: relative;
  background:
    radial-gradient(52% 70% at 50% 0%, rgba(35, 160, 164, 0.12), transparent 62%),
    var(--ink-deep);
  color: var(--text-on-dark);
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: clamp(30px, 5vw, 60px);
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--ink-deep) calc(50% + 0.5px));
}
.cta-inner { max-width: 620px; }
.cta-title { font-size: clamp(2.25rem, 5vw, 3.5rem); color: var(--text-on-dark); margin-bottom: var(--space-4); }
.cta-lead { color: var(--text-on-dark-dim); font-size: 1.08rem; margin-bottom: var(--space-8); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); }

/* On the dark CTA the primary button inverts to ivory, mirroring the hero */
.cta .btn-primary { background: var(--text-on-dark); color: var(--ink); box-shadow: none; }
.cta .btn-primary:hover {
  background: #fff;
  box-shadow: 0 4px 6px rgba(10, 24, 40, 0.35), 0 2px 4px rgba(10, 24, 40, 0.25);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: start;
}
.contact-lead { color: var(--text-light); margin-bottom: var(--space-8); max-width: 48ch; }

.contact-list { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) 1.25rem;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.96rem;
  line-height: 1.5;
}
.contact-item a { font-weight: 700; color: var(--accent-strong); }
.contact-item a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--accent-strong);
  background: rgba(35, 160, 164, 0.12);
  border-radius: var(--radius-md);
}

.contact-join {
  padding: var(--space-6);
  border-left: 4px solid var(--aqua);
  background: var(--card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}
.contact-join h3 { font-size: 1.2rem; margin-bottom: var(--space-2); }
.contact-join p { font-size: 0.96rem; color: var(--text-light); }

.contact-form { margin-bottom: var(--space-8); }
.contact-form label { display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: var(--space-1); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(16, 35, 59, 0.12);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(35, 160, 164, 0.12); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form-row { margin-bottom: var(--space-4); }
.contact-form .btn { width: 100%; margin-top: var(--space-2); }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(16, 35, 59, 0.08);
}
.map-frame iframe { width: 100%; height: clamp(320px, 45vw, 460px); border: 0; }
.map-caption { margin-top: var(--space-3); font-size: 0.88rem; color: var(--text-light); }
.map-caption a { font-weight: 700; color: var(--accent-strong); }
.map-caption a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--card);
  color: var(--text-light);
  padding-top: var(--space-16);
}
.site-footer::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: clamp(30px, 5vw, 60px);
  background: linear-gradient(to top left, transparent calc(50% - 0.5px), var(--card) calc(50% + 0.5px));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}
.brand-footer { color: var(--ink); margin-bottom: var(--space-4); }
.footer-tagline { font-size: 0.92rem; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  border: 1px solid rgba(16, 35, 59, 0.2);
  border-radius: var(--radius-full);
  transition: background-color var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart),
              transform var(--dur-normal) var(--ease-out-quart);
}
.footer-social a:hover { background: var(--aqua); border-color: var(--aqua); color: var(--ink); transform: translateY(-2px); }

.footer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.footer-nav ul, .footer-training ul, .footer-contact ul { display: grid; gap: var(--space-2); font-size: 0.94rem; }
.footer-nav a, .footer-contact a {
  display: inline-block;
  transition: color var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--ink); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(16, 35, 59, 0.08);
  font-size: 0.85rem;
}
.footer-top-link { font-weight: 700; color: var(--accent-strong); }
.footer-top-link:hover { color: var(--ink); }

/* ---------- Scroll reveal (hiding is opt-in: main.js adds .js only after
   its own initialization succeeds, so content is never stranded invisible) ---------- */
.js [data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.js [data-animate].is-visible { opacity: 1; transform: translateY(0); }
.card-grid [data-animate]:nth-child(2) { transition-delay: 80ms; }
.card-grid [data-animate]:nth-child(3) { transition-delay: 160ms; }
.card-grid [data-animate]:nth-child(4) { transition-delay: 240ms; }
.social-grid [data-animate]:nth-child(2) { transition-delay: 120ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 0.7fr; gap: var(--space-8); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-coords { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; z-index: 110; }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 105;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-10);
    background: rgba(10, 24, 40, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--text-on-dark);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-normal) var(--ease-out-quart),
                visibility var(--dur-normal);
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; gap: var(--space-6); text-align: center; }
  .nav-link { font-family: var(--font-head); font-size: 1.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
  .nav-social { margin-right: 0; }
  .nav-social-link { color: var(--text-on-dark); }
  .btn-nav { font-size: 1rem; padding: 0.85rem 1.8rem; }
  .site-header.menu-open { background: transparent; color: var(--text-on-dark); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero-grid { grid-template-columns: 1fr; }
  /* Message first: the decorative ball follows the actions as a small closing accent */
  .hero-ball-wrap { width: min(50vw, 200px); }
  .hero { min-height: auto; }
  .scroll-indicator { display: none; }

  .about-grid, .training-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .social-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1140px, 100% - 2.5rem); }
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: var(--space-3); }
  .tag-hero {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    line-height: 1.5;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.85rem;
  }
  .ticker-list { font-size: 0.8rem; gap: var(--space-6); padding-right: var(--space-6); }
  .ticker-list li { gap: var(--space-6); }
  .ticker-viewport { max-width: min(1140px, 100% - 2.5rem); }
  .card-grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .photo-secondary { border-width: 4px; }
  .about-media { padding: var(--space-6) var(--space-6) var(--space-10) 0; }
  .cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-animate] { opacity: 1; transform: none; }
  .hero-ball, .ball-orbit, .scroll-indicator-line::after, .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}
