/* =============================================================
   AQUA WIKI GROUP — Public stylesheet
   Marine theme · blue palette · wave motifs · image placeholders
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ===== Theme variables (defaults — DB overrides via render_theme_css) ===== */
:root {
  --ocean-deep: #082548;
  --ocean: #0E3B6B;
  --ocean-mid: #1E5F8E;
  --ocean-bright: #2E86C1;
  --cyan: #5DADE2;
  --sky: #AED6F1;
  --foam: #EBF5FB;
  --seafoam: #76D7C4;
  --algae: #16A085;
  --coral: #E76F51;
  --sand: #F4E4BC;
  --sun: #F4D03F;
  --pearl: #FDFEFE;
  --ink: #082548;
  --ink-soft: #2C3E50;
  --ink-mute: #5D6D7E;
  --line: #D4E6F1;
  --bg: #F4F9FC;
  --card: #FFFFFF;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a { color: var(--ocean-mid); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ocean-bright); }

/* ===== Marine Liquid Wave Background (AGRESSIF & RAPIDE) ===== */
body::before,
body::after {
  content: '';
  position: fixed;
  /* Taille réduite pour accentuer la courbure visible à l'écran */
  width: 250vw;
  height: 250vw;
  left: 50%;
  top: 100%;
  pointer-events: none;
  z-index: 0;
  transform-origin: 50% 50%;
}

body::before {
  /* Déformation très marquée */
  border-radius: 38%;
  /* Couleur très visible */
  background: rgba(93, 173, 226, 0.40); 
  /* Rotation très rapide */
  animation: liquid-spin 10s linear infinite;
  /* Remonte très haut sur la page */
  margin-top: -75vh; 
  margin-left: -125vw; 
}

body::after {
  /* Déformation encore plus asymétrique */
  border-radius: 35%;
  /* Océan brillant très visible */
  background: rgba(46, 134, 193, 0.30); 
  /* Rotation fulgurante en sens inverse */
  animation: liquid-spin 7s linear infinite reverse;
  margin-top: -65vh;
  margin-left: -125vw;
}

@keyframes liquid-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; opacity: 0.8; }
}

/* Keep content clickable above the background */
body > * { position: relative; z-index: 1; }

/* ===== Layout ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { padding: 80px 0; position: relative; }
section + section { border-top: 1px solid var(--line); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

em { color: var(--ocean-bright); font-style: italic; font-family: 'Fraunces', serif; }
strong { color: var(--ink); font-weight: 600; }

p { margin-bottom: 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.8; }

/* ===== Section headers ===== */
.section-header { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 50px; align-items: end; }
.section-num {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.section-intro { color: var(--ink-mute); font-size: 0.95rem; line-height: 1.8; padding-top: 8px; border-left: 2px solid var(--cyan); padding-left: 18px; }

@media (max-width: 768px) {
  .section-header { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { border-left: none; border-top: 2px solid var(--cyan); padding-left: 0; padding-top: 14px; }
}

/* =============================================================
   NAV
   ============================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  background: rgba(244,249,252,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,230,241,0.6);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav-logo span {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links > a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links > a:hover { color: var(--ocean-bright); }
.nav-links > a.active { color: var(--ocean-bright); }
.nav-links > a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ocean-bright);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links > a:hover::after,
.nav-links > a.active::after { transform: scaleX(1); }

.nav-cta,
.nav-links a.nav-cta {
  padding: 10px 22px;
  background: var(--ocean-deep);
  color: var(--pearl);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--ocean-deep);
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}
.nav-cta:hover,
.nav-links a.nav-cta:hover {
  background: var(--ocean-bright);
  border-color: var(--ocean-bright);
  color: var(--pearl);
}
.nav-cta::after,
.nav-links a.nav-cta::after { display: none !important; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-mute);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
}
.lang-current:hover { border-color: var(--cyan); color: var(--ocean-bright); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 12px 32px rgba(8,37,72,0.18);
  overflow: hidden;
  z-index: 1000;
}
.lang-switch:hover .lang-menu,
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a:hover { background: var(--foam); color: var(--ocean-bright); }
.lang-menu a.active { color: var(--ocean-bright); font-weight: 600; background: var(--foam); }

/* Hamburger (mobile only) */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 4px;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: all 0.2s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--ocean-deep);
  color: var(--pearl);
  z-index: 200;
  padding: 80px 32px 40px;
  overflow-y: auto;
}
body.menu-open .mobile-menu { display: block; }
body.menu-open { overflow: hidden; }
.mobile-menu-inner { max-width: 600px; margin: 0 auto; }
.mobile-menu-section { margin-bottom: 36px; }
.mobile-menu-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--pearl);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(174,214,241,0.15);
  transition: color 0.2s;
  text-decoration: none;
}
.mobile-menu a.sub-link { font-size: 0.95rem; padding: 10px 0; opacity: 0.9; }
.mobile-menu a.active { color: var(--cyan); }
.mobile-menu a:hover { color: var(--cyan); }
.mobile-cta {
  display: inline-block !important;
  margin-top: 24px;
  padding: 14px 28px !important;
  background: var(--cyan);
  color: var(--ocean-deep) !important;
  border: none !important;
  border-radius: 4px;
  font-weight: 600;
}
.mobile-menu-contact {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(174,214,241,0.15);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--cyan);
  line-height: 1.9;
  letter-spacing: 0.05em;
}
.mobile-menu-contact a { display: inline; padding: 0; border: none; color: var(--cyan); }

@media (max-width: 968px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  nav { padding: 12px 18px; }
  .nav-logo span { font-size: 0.95rem; }
  .nav-logo-img { width: 36px; height: 36px; }
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: transparent; /* <-- C'est ça la clé ! On rend le fond transparent */
}

/* Caustic shimmer — light spots that drift like sunlight on water */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(174,214,241,0.55) 0%, transparent 18%),
    radial-gradient(circle at 78% 22%, rgba(118,215,196,0.40) 0%, transparent 16%),
    radial-gradient(circle at 35% 70%, rgba(174,214,241,0.40) 0%, transparent 22%),
    radial-gradient(circle at 88% 78%, rgba(118,215,196,0.30) 0%, transparent 18%),
    radial-gradient(circle at 52% 40%, rgba(174,214,241,0.30) 0%, transparent 14%);
  animation: hero-caustics 14s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
@keyframes hero-caustics {
  0%   { opacity: 0.55; transform: translate3d(0, 0, 0) scale(1); }
  50%  { opacity: 0.85; transform: translate3d(20px, -10px, 0) scale(1.04); }
  100% { opacity: 0.6;  transform: translate3d(-15px, 8px, 0) scale(0.98); }
}
.hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; opacity: 0.5; }
}

/* Wave decoration at bottom of hero — flowing horizontally */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -50%;
  width: 200%;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q360 0 720 40 T1440 40 T2160 40 T2880 40 L2880 80 L0 80 Z' fill='%23F4F9FC'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: wave-flow-hero 18s linear infinite;
  will-change: transform;
}
@keyframes wave-flow-hero {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}

.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px; align-items: center; }
.hero-label { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; letter-spacing: 0.25em; color: var(--ocean-bright); text-transform: uppercase; margin-bottom: 24px; padding: 6px 14px; background: var(--card); border: 1px solid var(--cyan); border-radius: 30px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.2rem); margin-bottom: 28px; line-height: 1.05; }
.hero-title em { color: var(--ocean-bright); }
.hero-lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 36px; max-width: 580px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.2s;
  border: 1px solid;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary, .btn.btn-primary { background: var(--ocean-deep); color: var(--pearl); border-color: var(--ocean-deep); }
.btn-primary:hover, .btn.btn-primary:hover { background: var(--ocean-bright); border-color: var(--ocean-bright); color: var(--pearl); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(46,134,193,0.25); }
.btn-secondary, .btn.btn-secondary { background: var(--card); color: var(--ocean-deep); border-color: var(--ocean-deep); }
.btn-secondary:hover, .btn.btn-secondary:hover { background: var(--ocean-deep); color: var(--pearl); }

.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 36px; border-top: 1px solid var(--line); }
.hero-meta-item { }
.hero-meta-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ocean-bright); text-transform: uppercase; margin-bottom: 6px; }
.hero-meta-value { font-family: 'Fraunces', serif; font-size: 1rem; color: var(--ink); font-weight: 500; }

/* Hero visual: image placeholder with marine motif */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(8,37,72,0.18);
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-bright) 60%, var(--cyan) 100%);
}
.hero-visual::before {
  /* Decorative compass rose overlay */
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='%23FDFEFE' stroke-width='1' opacity='0.3'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='%23FDFEFE' stroke-width='1' opacity='0.2'/%3E%3Cpath d='M100 20 L110 100 L100 180 L90 100 Z' fill='%23FDFEFE' opacity='0.4'/%3E%3Cpath d='M20 100 L100 110 L180 100 L100 90 Z' fill='%23FDFEFE' opacity='0.3'/%3E%3Cpath d='M40 40 L105 95 L160 160 L95 105 Z' fill='%23FDFEFE' opacity='0.15'/%3E%3Cpath d='M40 160 L105 105 L160 40 L95 95 Z' fill='%23FDFEFE' opacity='0.15'/%3E%3Ctext x='100' y='28' text-anchor='middle' font-family='Georgia, serif' font-size='10' fill='%23FDFEFE' opacity='0.6'%3EN%3C/text%3E%3Ctext x='100' y='185' text-anchor='middle' font-family='Georgia, serif' font-size='10' fill='%23FDFEFE' opacity='0.6'%3ES%3C/text%3E%3Ctext x='25' y='105' text-anchor='middle' font-family='Georgia, serif' font-size='10' fill='%23FDFEFE' opacity='0.6'%3EW%3C/text%3E%3Ctext x='175' y='105' text-anchor='middle' font-family='Georgia, serif' font-size='10' fill='%23FDFEFE' opacity='0.6'%3EE%3C/text%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.hero-visual::after {
  /* Wave overlay at bottom */
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 30%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath d='M0 100 Q360 60 720 100 T1440 100 L1440 200 L0 200 Z' fill='%23FDFEFE' opacity='0.18'/%3E%3Cpath d='M0 130 Q360 90 720 130 T1440 130 L1440 200 L0 200 Z' fill='%23FDFEFE' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.hero-visual-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--pearl);
  text-transform: uppercase;
  opacity: 0.85;
  z-index: 2;
}

/* Hero visual variant — features the actual logo emblem */
.hero-visual--emblem::before { display: none; }
.hero-visual-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  max-width: 460px;
  height: auto;
  border-radius: 50%;
  z-index: 2;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
}
.hero-visual--emblem::after {
  /* keep the wave at the bottom but soften it */
  opacity: 0.7;
}
@media (max-width: 768px) {
  .hero-visual-img { width: 70%; }
}

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   IMAGE PLACEHOLDERS
   Drop these in any section. Replace .placeholder-img with <img>
   when real photography arrives.
   ============================================================= */
.placeholder-img {
  position: relative;
  display: block;
  width: 100%;
  background:
    linear-gradient(135deg, var(--ocean-mid) 0%, var(--ocean-bright) 50%, var(--cyan) 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(8,37,72,0.12);
}
.placeholder-img--16-9  { aspect-ratio: 16/9; }
.placeholder-img--4-3   { aspect-ratio: 4/3; }
.placeholder-img--1-1   { aspect-ratio: 1; }
.placeholder-img--3-4   { aspect-ratio: 3/4; }

.placeholder-img::before {
  /* Decorative wave pattern overlay */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200' preserveAspectRatio='none'%3E%3Cpath d='M0 100 Q100 60 200 100 T400 100' fill='none' stroke='%23FDFEFE' stroke-width='2' opacity='0.25'/%3E%3Cpath d='M0 130 Q100 90 200 130 T400 130' fill='none' stroke='%23FDFEFE' stroke-width='2' opacity='0.18'/%3E%3Cpath d='M0 70 Q100 30 200 70 T400 70' fill='none' stroke='%23FDFEFE' stroke-width='2' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.placeholder-img__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--pearl);
  text-transform: uppercase;
  opacity: 0.75;
  text-align: center;
  padding: 8px 14px;
  background: rgba(8,37,72,0.4);
  backdrop-filter: blur(4px);
  border-radius: 4px;
}
.placeholder-img__icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  width: 64px;
  height: 64px;
  opacity: 0.55;
}

/* =============================================================
   STORY / ORIGIN section
   ============================================================= */
.story { background: var(--card); }
.story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; align-items: start; }
.story-visual { position: sticky; top: 100px; }
.story-visual .placeholder-img--3-4 { box-shadow: 0 16px 48px rgba(8,37,72,0.15); }
.story-text p { margin-bottom: 20px; line-height: 1.85; color: var(--ink-soft); font-size: 1rem; }
.story-text p:first-of-type { font-size: 1.15rem; color: var(--ink); }

.story-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 2px solid var(--line); }
.story-logo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 28px rgba(8, 37, 72, 0.18);
}
.story-logo-text { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--ink); letter-spacing: 0.06em; font-weight: 500; }

@media (max-width: 968px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .story-visual { position: static; }
}

/* =============================================================
   STRUCTURE section — three layers visualization
   ============================================================= */
.structure { background: linear-gradient(180deg, var(--bg) 0%, var(--foam) 100%); }
.structure-visual {
  margin-top: 40px;
  padding: 50px 40px;
  background: var(--card);
  border-radius: 12px;
  border: 1px solid var(--line);
  position: relative;
}

.structure-parent {
  text-align: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  border-radius: 8px;
  color: var(--pearl);
}
.structure-parent-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.25em; color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; }
.structure-parent-name { font-family: 'Fraunces', serif; font-size: 1.6rem; letter-spacing: 0.05em; }

.structure-connector { display: block; width: 2px; height: 40px; background: var(--cyan); margin: 0 auto; }

.structure-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.structure-layer {
  padding: 22px;
  background: var(--card);
  border-radius: 8px;
  border-top: 4px solid var(--ocean-bright);
  text-align: center;
  position: relative;
}
.structure-layer:nth-child(1) { border-top-color: var(--ocean-bright); }
.structure-layer:nth-child(2) { border-top-color: var(--seafoam); }
.structure-layer:nth-child(3) { border-top-color: var(--coral); }

.structure-layer-icon { width: 48px; height: 48px; margin: 0 auto 12px; }
.structure-layer-name { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.structure-layer-desc { font-size: 0.85rem; color: var(--ink-mute); line-height: 1.5; }

.structure-clusters {
  background: var(--foam);
  padding: 24px;
  border-radius: 8px;
  border-left: 3px solid var(--ocean-bright);
}
.structure-clusters-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ocean); text-transform: uppercase; margin-bottom: 14px; }
.structure-clusters-list { display: flex; flex-wrap: wrap; gap: 8px; }
.structure-cluster {
  display: inline-block;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--cyan);
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--ocean-deep);
  font-weight: 500;
}

@media (max-width: 768px) {
  .structure-layers { grid-template-columns: 1fr; }
}

/* =============================================================
   DIVISIONS grid
   ============================================================= */
.divisions { }
.divisions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.division-card {
  background: var(--card);
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
  position: relative;
}
.division-card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 16px 48px rgba(8,37,72,0.12);
}

.division-card-image { position: relative; aspect-ratio: 16/9; }
.division-card-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.division-card-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.division-card-name { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.division-card-tagline { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; flex: 1; }

.division-card-stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.division-card-stat { font-size: 0.8rem; color: var(--ink-mute); }
.division-card-stat strong { color: var(--ocean-deep); font-family: 'Fraunces', serif; font-size: 1rem; display: block; }

.division-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
}
.division-card:hover .division-card-cta { color: var(--ocean-deep); }

@media (max-width: 768px) {
  .divisions-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   ACTIVITIES (waters)
   ============================================================= */
.activities { background: var(--card); }
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 26px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  /* Subtle wave at top */
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ocean-bright), var(--cyan), var(--seafoam));
}
.activity-card:hover { border-color: var(--cyan); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(8,37,72,0.08); }
.activity-icon { width: 44px; height: 44px; margin-bottom: 18px; color: var(--ocean-bright); }
.activity-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.activity-title { font-family: 'Fraunces', serif; font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; font-weight: 500; }
.activity-desc { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); }

@media (max-width: 968px) {
  .activities-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .activities-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact { background: linear-gradient(180deg, var(--foam) 0%, var(--card) 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info-block { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; margin-bottom: 14px; }
.contact-info-label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ocean-bright); text-transform: uppercase; margin-bottom: 8px; }
.contact-info-value { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
.contact-info-value a { color: var(--ink); }
.contact-info-value a:hover { color: var(--ocean-bright); }

.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.15em; color: var(--ink-mute); text-transform: uppercase; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--card);
  transition: all 0.15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--ocean-bright);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.15);
}
.form-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.form-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-feedback { padding: 14px 18px; border-radius: 6px; margin-bottom: 18px; font-size: 0.9rem; display: none; }
.form-feedback.success { display: block; background: rgba(118,215,196,0.15); color: var(--algae); border-left: 3px solid var(--algae); }
.form-feedback.error { display: block; background: rgba(231,111,81,0.1); color: var(--coral); border-left: 3px solid var(--coral); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
}

/* =============================================================
   PAGE HEADER (about, privacy, divisions)
   ============================================================= */
.page-header {
  padding: 100px 0 60px;
  background: linear-gradient(180deg, var(--ocean-deep) 0%, var(--ocean) 100%);
  color: var(--pearl);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -50%;
  width: 200%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q360 0 720 30 T1440 30 T2160 30 T2880 30 L2880 60 L0 60 Z' fill='%23F4F9FC'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: wave-flow-page-header 22s linear infinite reverse;
  will-change: transform;
}
@keyframes wave-flow-page-header {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-header::after { animation: none; }
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--pearl); font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 14px; }
.page-subtitle { color: var(--sky); max-width: 760px; font-size: 1.05rem; line-height: 1.7; }

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { color: var(--pearl); }
.breadcrumb .separator { margin: 0 10px; opacity: 0.5; }

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--ocean-deep);
  color: var(--sky);
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}
footer::before {
  /* Decorative wave at top of footer — flowing horizontally */
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2880 50' preserveAspectRatio='none'%3E%3Cpath d='M0 25 Q360 50 720 25 T1440 25 T2160 25 T2880 25 L2880 0 L0 0 Z' fill='%23F4F9FC'/%3E%3C/svg%3E");
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: wave-flow-footer 26s linear infinite;
  will-change: transform;
}
@keyframes wave-flow-footer {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  footer::before { animation: none; }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px 30px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(174,214,241,0.15);
}

.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-img {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.footer-brand-name { font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--pearl); letter-spacing: 0.05em; line-height: 1; }
.footer-brand-tagline { color: var(--sky); font-size: 0.92rem; line-height: 1.7; opacity: 0.85; max-width: 320px; }

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--sky); font-size: 0.92rem; opacity: 0.85; text-decoration: none; transition: opacity 0.15s; }
.footer-col a:hover { color: var(--pearl); opacity: 1; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
}
.footer-bottom a { color: var(--cyan); text-decoration: none; }
.footer-bottom a:hover { color: var(--pearl); opacity: 1; }

@media (max-width: 968px) {
  .footer-inner { padding: 60px 28px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =============================================================
   TICKER (domain marquee)
   ============================================================= */
.ticker {
  background: var(--ocean);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}
.ticker::before, .ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--ocean), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--ocean), transparent); }

.ticker-track { display: inline-flex; gap: 50px; animation: ticker-scroll 60s linear infinite; white-space: nowrap; }
.ticker-item { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--cyan); opacity: 0.8; }
.ticker-item::before { content: '◊ '; color: var(--seafoam); margin-right: 6px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* =============================================================
   WHATSAPP floating button
   ============================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: all 0.2s;
  animation: wa-pulse 2.5s infinite;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 32px; height: 32px; display: block; }
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--ocean-deep);
  color: var(--pearl);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 8px 20px rgba(8, 37, 72, 0.25);
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--ocean-deep);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 600px) {
  .whatsapp-tooltip { display: none; }
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 0 rgba(37,211,102,0.5); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 0 0 14px rgba(37,211,102,0); }
}

/* =============================================================
   ABOUT page extras
   ============================================================= */
.about-intro { padding: 80px 0; }
.about-intro p { font-size: 1.1rem; line-height: 1.8; color: var(--ink-soft); margin-bottom: 18px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.principle-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--ocean-bright);
  border-radius: 8px;
  padding: 30px;
}
.principle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--ocean-bright);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.principle-card h3 { font-size: 1.25rem; margin-bottom: 14px; }
.principle-card p { font-size: 0.95rem; line-height: 1.7; color: var(--ink-soft); }
@media (max-width: 768px) {
  .principles-grid { grid-template-columns: 1fr; }
}

.founder-section { background: linear-gradient(180deg, var(--ocean-deep), var(--ocean)); color: var(--pearl); padding: 80px 0; margin-top: 60px; position: relative; }
.founder-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.founder-section h2 { color: var(--pearl); margin-bottom: 24px; }
.founder-section p { color: var(--sky); margin-bottom: 18px; font-size: 1rem; line-height: 1.8; }
.founder-section strong, .founder-section em { color: var(--cyan); }
@media (max-width: 768px) { .founder-grid { grid-template-columns: 1fr; gap: 30px; } }

/* =============================================================
   PRIVACY / generic content
   ============================================================= */
.legal-content { padding: 60px 0; max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--ink); border-bottom: 2px solid var(--cyan); padding-bottom: 10px; }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--ocean-deep); }
.legal-content p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { margin: 14px 0 14px 24px; }
.legal-content li { color: var(--ink-soft); line-height: 1.7; margin-bottom: 8px; }

/* =============================================================
   WAVE DIVIDER (utility)
   ============================================================= */
.wave-divider {
  position: relative;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 40 Q360 0 720 40 T1440 40 L1440 80 L0 80 Z' fill='%23EBF5FB'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}