/* ==========================================================================
   Klinik am Rhein — Design System
   Plastische & Ästhetische Chirurgie · Düsseldorf
   Art direction: editorial · architectural · calm luxury
   Palette: deep navy + white · light-blue & silver accents
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Core palette */
  --navy:        #0A1E3F;
  --navy-deep:   #081831;
  --navy-800:    #0B2545;
  --navy-700:    #123059;
  --navy-600:    #1B3F6E;

  /* Accents */
  --blue:        #4E7CB8;   /* light-blue accent */
  --blue-soft:   #8FA9CB;
  --blue-mist:   #DCE6F2;
  --silver:      #C7D0DC;
  --silver-soft: #E7ECF3;

  /* Neutrals */
  --white:       #FFFFFF;
  --paper:       #F7F9FC;
  --paper-2:     #EEF2F8;
  --ink:         #14213A;   /* body text on light */
  --ink-soft:    #45577A;
  --ink-faint:   #74829C;

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9rem);
  --radius: 18px;
  --radius-lg: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Elevation */
  --shadow-sm: 0 2px 10px rgba(10, 30, 63, 0.06);
  --shadow-md: 0 18px 44px rgba(10, 30, 63, 0.10);
  --shadow-lg: 0 40px 90px rgba(8, 24, 49, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
.h-eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.h-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.h-eyebrow.center::before { display: none; }

h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }
em, .ital { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 880px; }
section { position: relative; }
.section-pad { padding-block: var(--section); }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.16) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:hover::after { transform: translateX(120%); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.gold, .btn.accent { --btn-bg: var(--blue); }
.btn.light { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn.ghost {
  --btn-bg: transparent; --btn-fg: var(--navy);
  box-shadow: inset 0 0 0 1.5px rgba(10,30,63,0.22);
}
.btn.ghost:hover { --btn-bg: var(--navy); --btn-fg: var(--white); box-shadow: var(--shadow-md); }
.btn.ghost.on-dark { --btn-fg: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.3); }
.btn.ghost.on-dark:hover { --btn-bg: var(--white); --btn-fg: var(--navy); }

.link-underline {
  font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding-bottom: 3px;
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0% 1.5px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link-underline:hover { background-size: 100% 1.5px; }
.link-underline .arrow { transition: transform 0.4s var(--ease); }
.link-underline:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.35rem;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; z-index: 2; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.5s var(--ease);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { line-height: 1.05; color: var(--white); transition: color 0.5s var(--ease); }
.brand-text .name { font-family: var(--display); font-size: 1.28rem; font-weight: 500; letter-spacing: 0.01em; display: block; }
.brand-text .sub { font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.72; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  color: rgba(255,255,255,0.86);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  position: relative; padding-block: 4px;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1.5px; background: var(--blue-soft);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta { margin-left: 0.4rem; }

/* Scrolled state */
.nav.scrolled {
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(10,30,63,0.08), var(--shadow-sm);
  padding-block: 0.85rem;
}
.nav.scrolled .brand-text, .nav.scrolled .brand-text .name { color: var(--navy); }
.nav.scrolled .brand-mark { border-color: rgba(10,30,63,0.2); }
.nav.scrolled .brand-mark svg .mk-stroke { stroke: var(--navy); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a[aria-current="page"] { color: var(--navy); }
.nav.scrolled .nav-toggle span { background: var(--navy); }

/* Pages with a light header (no dark hero) start in solid style */
.nav.solid { background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(16px); box-shadow: var(--shadow-sm); }
.nav.solid .brand-text, .nav.solid .brand-text .name { color: var(--navy); }
.nav.solid .brand-mark { border-color: rgba(10,30,63,0.2); }
.nav.solid .brand-mark svg .mk-stroke { stroke: var(--navy); }
.nav.solid .nav-links a { color: var(--ink-soft); }
.nav.solid .nav-links a[aria-current="page"] { color: var(--navy); }
.nav.solid .nav-toggle span { background: var(--navy); }

.nav-toggle { display: none; width: 40px; height: 40px; z-index: 2; position: relative; }
.nav-toggle span {
  position: absolute; left: 9px; width: 22px; height: 2px; background: var(--white);
  border-radius: 2px; transition: 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  background: radial-gradient(120% 120% at 80% 0%, var(--navy-700) 0%, var(--navy) 42%, var(--navy-deep) 100%);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 60% at 15% 90%, rgba(78,124,184,0.16) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(8,24,49,0.15) 0%, transparent 30%, rgba(8,24,49,0.35) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 8rem 4rem; }
.hero-eyebrow { color: var(--blue-soft); }
.hero h1 { color: var(--white); max-width: 16ch; margin-top: 1.6rem; }
.hero h1 .accent { color: var(--blue-soft); font-style: italic; }
.hero p.lead { color: rgba(255,255,255,0.82); max-width: 46ch; margin-top: 1.7rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3.4rem;
  padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,0.14);
  max-width: 620px;
}
.hero-meta div { line-height: 1.3; }
.hero-meta .k { font-family: var(--display); font-size: 1.5rem; color: var(--white); display: block; }
.hero-meta .v { font-size: 0.82rem; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  color: rgba(255,255,255,0.55); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--blue-soft), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--white); animation: scrollDown 2.4s var(--ease) infinite;
}
@keyframes scrollDown { 0% { transform: translateY(-10%); } 100% { transform: translateY(320%); } }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ==========================================================================
   Generic section pieces
   ========================================================================== */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: 1.1rem; }
.section-head p { margin-top: 1.2rem; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: linear-gradient(135deg, var(--navy-700), var(--navy)); box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media:hover img { transform: scale(1.05); }
.split-media .tag {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--navy);
  padding: 0.6rem 1.1rem; border-radius: 100px; font-size: 0.8rem; font-weight: 600;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(6px);
}

/* Feature trio */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature {
  background: var(--white); border-radius: var(--radius); padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(10,30,63,0.05);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-soft));
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature:hover::before { transform: scaleX(1); }
.feature .ficon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-mist); color: var(--navy); margin-bottom: 1.4rem;
}
.feature .ficon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.feature p { color: var(--ink-soft); font-size: 0.98rem; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 420px; display: flex; align-items: flex-end;
  background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.svc-card .bg { position: absolute; inset: 0; z-index: 0; }
.svc-card .bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.svc-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(8,24,49,0.92) 0%, rgba(8,24,49,0.5) 42%, rgba(8,24,49,0.12) 100%);
}
.svc-card .body { position: relative; z-index: 2; padding: 2rem; width: 100%; }
.svc-card .num { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--blue-soft); font-weight: 600; }
.svc-card h3 { color: var(--white); margin: 0.7rem 0 0.6rem; font-size: 1.55rem; }
.svc-card p { color: rgba(255,255,255,0.8); font-size: 0.94rem; }
.svc-card .svc-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; }
.svc-card .svc-list span {
  font-size: 0.76rem; padding: 0.3rem 0.7rem; border-radius: 100px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.16);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-card:hover .bg img { transform: scale(1.07); }

/* Detailed service rows (services.html) */
.svc-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid rgba(10,30,63,0.09); }
.svc-row:first-of-type { border-top: none; }
.svc-row.reverse .svc-row-media { order: 2; }
.svc-row-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 5/4; background: var(--navy-700); box-shadow: var(--shadow-md); }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-row h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.svc-row .chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.chip {
  font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 100px;
  background: var(--white); border: 1px solid rgba(10,30,63,0.1); color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Process / journey
   ========================================================================== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-size: 2.6rem; color: var(--blue-soft); line-height: 1;
  display: block; margin-bottom: 1rem;
}
.step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(78,124,184,0.12) 100%);
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ==========================================================================
   Dark band (safety / values / cta)
   ========================================================================== */
.band {
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: var(--white); position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background:
    radial-gradient(50% 60% at 88% 12%, rgba(78,124,184,0.22) 0%, transparent 60%),
    radial-gradient(46% 60% at 6% 92%, rgba(143,169,203,0.14) 0%, transparent 60%);
}
.band h2 { color: var(--white); }
.band .lead { color: rgba(255,255,255,0.8); }
.band .h-eyebrow { color: var(--blue-soft); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; position: relative; z-index: 2; }
.pillar {
  padding: 2rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px); transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,0.09); transform: translateY(-4px); }
.pillar .picon { color: var(--blue-soft); margin-bottom: 1rem; }
.pillar .picon svg { width: 30px; height: 30px; }
.pillar h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.pillar p { color: rgba(255,255,255,0.74); font-size: 0.94rem; }

/* ==========================================================================
   Testimonials / voices (illustrative, no invented names)
   ========================================================================== */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.voice {
  background: var(--white); border-radius: var(--radius); padding: 2.2rem 2rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(10,30,63,0.05);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.voice:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.voice .quote-mark { font-family: var(--display); font-size: 3rem; line-height: 0.5; color: var(--blue-soft); height: 1.4rem; }
.voice p { color: var(--ink); font-size: 1.02rem; font-style: italic; }
.voice .attrib { margin-top: auto; font-size: 0.82rem; color: var(--ink-faint); font-style: normal; }
.voice-note { text-align: center; font-size: 0.82rem; color: var(--ink-faint); margin-top: 2rem; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { max-width: 860px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid rgba(10,30,63,0.12); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.6rem 0; text-align: left;
  font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--navy);
}
.faq-q .ficon-plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq-q .ficon-plus::before, .faq-q .ficon-plus::after {
  content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform 0.4s var(--ease);
}
.faq-q .ficon-plus::before { left: 0; top: 10px; width: 22px; height: 2px; }
.faq-q .ficon-plus::after { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item.open .ficon-plus::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease); }
.faq-a .faq-a-inner { padding: 0 0 1.7rem; color: var(--ink-soft); max-width: 68ch; }
.faq-item.open .faq-q { color: var(--blue); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.1rem; grid-auto-flow: dense; }
.g-item { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--navy-700); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); min-height: 220px; }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,49,0.4), transparent 55%); opacity: 0; transition: opacity 0.5s var(--ease); }
.g-item:hover img { transform: scale(1.06); }
.g-item:hover::after { opacity: 1; }
.g-item .cap { position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2; color: var(--white); font-size: 0.86rem; font-weight: 500; opacity: 0; transform: translateY(8px); transition: 0.5s var(--ease); }
.g-item:hover .cap { opacity: 1; transform: none; }
.g-span-6 { grid-column: span 6; }
.g-span-4 { grid-column: span 4; }
.g-span-8 { grid-column: span 8; }
.g-tall { grid-row: span 2; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat { padding: 1.5rem 1rem; border-right: 1px solid rgba(10,30,63,0.1); }
.stat:last-child { border-right: none; }
.stat .icon { color: var(--blue); margin-bottom: 0.8rem; display: flex; justify-content: center; }
.stat .icon svg { width: 30px; height: 30px; }
.stat h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.stat p { font-size: 0.9rem; color: var(--ink-soft); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1.1rem; }
.contact-card {
  display: flex; gap: 1.2rem; align-items: flex-start;
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(10,30,63,0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-card .cc-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--blue-mist); color: var(--navy); display: grid; place-items: center; }
.contact-card .cc-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.contact-card a, .contact-card p { color: var(--ink-soft); font-size: 0.98rem; }
.contact-card a:hover { color: var(--blue); }

form.klr-form { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); border: 1px solid rgba(10,30,63,0.05); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.field label .req { color: var(--blue); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.9rem 1.05rem; border-radius: 12px;
  border: 1.5px solid rgba(10,30,63,0.14); background: var(--paper);
  font: inherit; color: var(--ink); transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); background: var(--white);
  box-shadow: 0 0 0 4px rgba(78,124,184,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.form-consent input { width: 18px; height: 18px; flex: none; margin-top: 3px; accent-color: var(--blue); }
.form-note { font-size: 0.82rem; color: var(--ink-faint); margin-top: 1rem; }
.form-note.client-hint { color: var(--blue); font-weight: 500; }

/* ==========================================================================
   Page hero (interior pages)
   ========================================================================== */
.page-hero {
  background: radial-gradient(120% 120% at 82% 0%, var(--navy-700) 0%, var(--navy) 46%, var(--navy-deep) 100%);
  color: var(--white); padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3.5rem, 7vw, 6rem);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background: radial-gradient(46% 70% at 88% 20%, rgba(78,124,184,0.2) 0%, transparent 62%);
}
.page-hero .inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: var(--white); margin-top: 1.3rem; }
.page-hero .lead { color: rgba(255,255,255,0.82); margin-top: 1.4rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.55); display: flex; gap: 0.55rem; align-items: center; }
.breadcrumb a:hover { color: var(--blue-soft); }
.breadcrumb span { opacity: 0.5; }

/* ==========================================================================
   Prose (legal pages)
   ========================================================================== */
.prose { max-width: 800px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.8rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; margin-bottom: 0.6rem; }
.prose p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.prose ul { margin: 0 0 1.1rem; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.prose a { color: var(--blue); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--navy); }
.placeholder {
  display: inline; background: rgba(78,124,184,0.12); color: var(--navy-700);
  border: 1px dashed rgba(78,124,184,0.5); border-radius: 6px; padding: 0.05em 0.45em;
  font-size: 0.94em; font-weight: 500;
}
.legal-updated { font-size: 0.85rem; color: var(--ink-faint); margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(10,30,63,0.1); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band .inner { position: relative; z-index: 2; max-width: 760px; margin-inline: auto; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-band .lead { margin: 1.4rem auto 2.4rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-deep); color: rgba(255,255,255,0.72); padding-top: clamp(4rem, 8vw, 6rem); position: relative; overflow: hidden; }
.footer::before { content: ""; position: absolute; inset: 0; opacity: 0.4; pointer-events: none; background: radial-gradient(40% 60% at 90% 0%, rgba(78,124,184,0.18), transparent 60%); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; position: relative; z-index: 2; }
.footer .brand-text .name, .footer .brand-text { color: var(--white); }
.footer-about { max-width: 34ch; margin-top: 1.3rem; font-size: 0.95rem; }
.footer h4 { color: var(--white); font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 600; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a { font-size: 0.95rem; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--blue-soft); }
.footer-contact li { margin-bottom: 0.8rem; font-size: 0.95rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue-soft); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem); padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-size: 0.82rem; position: relative; z-index: 2;
}
.footer-bottom .legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--white); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .g-span-8, .g-span-6, .g-span-4 { grid-column: span 3; }
}
@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.8rem;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
    transform: translateX(100%); transition: transform 0.5s var(--ease); padding: 2rem;
  }
  body.menu-open .nav-links { transform: none; }
  .nav-links a { color: var(--white); font-size: 1.4rem; font-family: var(--display); }
  .nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--white); }
  .nav-links .nav-cta { margin-top: 0.5rem; }
  .nav-toggle { display: block; }
  .features, .svc-grid, .pillars, .voices, .process, .stats { grid-template-columns: 1fr 1fr; }
  .process { gap: 2rem 1.4rem; }
  .split, .svc-row, .svc-row.reverse, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media, .svc-row.reverse .svc-row-media { order: 0; }
  .split-media { aspect-ratio: 16/11; }
  .stat { border-right: none; border-bottom: 1px solid rgba(10,30,63,0.1); padding-bottom: 1.5rem; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .features, .svc-grid, .pillars, .voices, .process, .stats, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g-span-8, .g-span-6, .g-span-4, .g-tall { grid-column: span 2; grid-row: auto; }
  .hero-meta { gap: 1.5rem 2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
