/* ============================================================
   Tender Hearts — Theme Foundation
   Dark-mode-first · Geist body · luxury, tactile, accessible
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Lexend:wght@400;500;600;700&display=swap');

:root {
  /* Shared easing — single source of truth */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Brand hues */
  --blue:      #4FA3D8;
  --blue-deep: #2176AD;
  --coral:     #3D90C6;
  --coral-deep:#2176AD;
  --sage:      #4FA3D8;
  --gold:      #FFD700;

  /* Type */
  --serif: 'Newsreader', Georgia, serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;
  --font-body: var(--sans);

  /* Radii & motion */
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 34px;
  --maxw: 1240px;
}

/* ---------- DARK (default) ---------- */
:root, :root[data-theme="dark"] {
  --bg:        #0C151E;
  --bg-2:      #0F1B27;
  --surface:   #142435;
  --surface-2: #18293B;
  --text:      #E8EFF5;
  --text-soft: #B7C6D4;
  --muted:     #8499A9;
  --line:      rgba(150, 185, 214, 0.16);
  --line-2:    rgba(150, 185, 214, 0.28);
  --hero-overlay: linear-gradient(180deg, rgba(8,16,24,0.62) 0%, rgba(8,16,24,0.50) 40%, rgba(12,21,30,0.86) 88%, var(--bg) 100%);
  --card-shadow: 0 18px 50px rgba(0,0,0,0.45);
  --header-solid: rgba(10, 18, 26, 0.86);
  --primary: var(--blue);
  --on-primary: #06121C;
  --eyebrow: var(--coral);
}

/* ---------- LIGHT ---------- */
:root[data-theme="light"] {
  --bg:        #FBFCFD;
  --bg-2:      #F2F8FC;
  --surface:   #FFFFFF;
  --surface-2: #F4F9FC;
  --text:      #16252F;
  --text-soft: #41566A;
  --muted:     #6B7E8E;
  --line:      rgba(20, 60, 95, 0.12);
  --line-2:    rgba(20, 60, 95, 0.22);
  --hero-overlay: linear-gradient(180deg, rgba(12,30,46,0.34) 0%, rgba(12,30,46,0.26) 40%, rgba(251,252,253,0.84) 90%, var(--bg) 100%);
  --card-shadow: 0 18px 44px rgba(14, 58, 90, 0.12);
  --header-solid: rgba(251, 252, 253, 0.88);
  --primary: var(--blue-deep);
  --on-primary: #FFFFFF;
  --eyebrow: var(--blue-deep);
  /* Light mode: retire coral/red accents in favor of the site blue */
  --coral: #3D90C6;
  --coral-deep: #2176AD;
}
/* Recolor inline heart marks (logo, loader) to blue site-wide */
svg path[fill="#DB6E4D"] { fill: #2176AD; }

/* ---------- Dyslexia-friendly toggle ---------- */
:root[data-dys="on"] { --font-body: 'Lexend', system-ui, sans-serif; --serif: 'Lexend', system-ui, sans-serif; }

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-2); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.012em; color: var(--text); }
h2.title { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 22px; text-wrap: balance; }
.lede { font-size: 21px; color: var(--text-soft); max-width: 62ch; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--eyebrow);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--sans); font-weight: 600; font-size: 18px;
  padding: 17px 30px; border-radius: 999px; min-height: 58px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 21px; height: 21px; flex-shrink: 0; }
.btn--primary { background: var(--coral-deep); color: #fff; box-shadow: 0 12px 28px rgba(33,118,173,0.34); }
.btn--primary:hover { background: var(--coral); transform: translateY(-3px); box-shadow: 0 18px 36px rgba(33,118,173,0.42); }
.btn--blue { background: var(--primary); color: var(--on-primary); box-shadow: 0 12px 28px rgba(33,118,173,0.32); }
.btn--blue:hover { transform: translateY(-3px); filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--blue); transform: translateY(-3px); color: var(--blue); }
.btn--lg { font-size: 20px; padding: 20px 36px; min-height: 64px; }

/* ============================================================
   FILM GRAIN OVERLAY
   ============================================================ */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  will-change: transform;
  animation: grainshift 1.2s steps(4) infinite;
}
@keyframes grainshift {
  0% { transform: translate(0,0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0,0); }
}

/* ============================================================
   TOUCH GLOW LAYER
   ============================================================ */
.glow-layer { position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden; }
.touch-glow {
  position: absolute; width: 320px; height: 320px; margin: -160px 0 0 -160px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255,215,0,0.22) 0%, rgba(255,215,0,0.12) 35%, rgba(255,215,0,0) 70%);
  will-change: transform, opacity;
}

/* ============================================================
   CUSTOM CURSOR (heart) — desktop / fine pointer only
   ============================================================ */
.cursor-dot, .cursor-trail { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button, body.has-cursor input, body.has-cursor select, body.has-cursor textarea, body.has-cursor [role="button"] { cursor: none; }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none;
    width: 26px; height: 26px; margin: -13px 0 0 -13px; color: var(--coral);
    transform: translate(-100px,-100px);
    filter: drop-shadow(0 2px 6px rgba(33,118,173,0.5));
  }
  .cursor-dot svg { width: 100%; height: 100%; transition: transform .2s var(--ease); transform-origin: center; }
  .cursor-dot.is-active svg { transform: scale(1.45); }
  .cursor-trail {
    display: block; position: fixed; top: 0; left: 0; z-index: 9997; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; color: var(--coral);
    opacity: .5; transform: translate(-100px,-100px);
  }
}

/* ============================================================
   PAGE LOADER (beating heart + drawing line)
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-mark { width: 96px; height: 96px; animation: heartbeat 1.1s var(--ease) infinite; }
.loader-mark .ekg { stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawline 1.1s var(--ease) infinite; }
.loader-label { margin-top: 22px; font-family: var(--serif); font-size: 22px; color: var(--text); letter-spacing: .02em; opacity: .9; }
.loader-sub { margin-top: 6px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes drawline { 0% { stroke-dashoffset: 60; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -60; } }

/* ============================================================
   PAGE TRANSITION VEIL
   ============================================================ */
.veil {
  position: fixed; inset: 0; z-index: 9990; background: var(--bg); pointer-events: none;
  opacity: 0; transition: opacity .42s var(--ease);
}
.veil.show { opacity: 1; pointer-events: all; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }

/* clip wipe for images */
.clip-wipe { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.clip-wipe.in { clip-path: inset(0 0 0 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .clip-wipe { clip-path: inset(0 0 0 0) !important; }
  .grain { animation: none; }
  .hero-bg .kb, .page-hero-bg .kb { animation: none !important; }
  [data-parallax] { transform: none !important; }
  .loader { display: none !important; }
}


/* ============================================================
   Tender Hearts — Components
   ============================================================ */

/* ============================================================
   STICKY HEADER + UTILITY CLUSTER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid {
  background: var(--header-solid);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
/* Subtle scrim behind transparent header so nav stays legible over bright hero images */
.site-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0));
  opacity: 1; transition: opacity .4s var(--ease);
}
.site-header.solid::before { opacity: 0; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 80px; }

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--text); }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--eyebrow); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav a { position: relative; font-weight: 500; font-size: 16px; color: var(--text-soft); padding: 9px 15px; border-radius: 999px; transition: color .25s var(--ease); }
.nav a::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--text); }

/* Legibility over hero image (transparent header): force light text */
.site-header:not(.solid) .nav a,
.site-header:not(.solid) .brand-name { color: #fff; }
.site-header:not(.solid) .nav a { color: rgba(255,255,255,0.9); }
.site-header:not(.solid) .nav a:hover,
.site-header:not(.solid) .nav a.active { color: #fff; }
.site-header:not(.solid) .icon-btn { color: rgba(255,255,255,0.92); }
.site-header:not(.solid) .icon-btn:hover { color: #fff; }
.site-header:not(.solid) .contact-pill { color: #fff; }
.site-header:not(.solid) .nav a,
.site-header:not(.solid) .brand-name,
.site-header:not(.solid) .brand-sub { text-shadow: 0 1px 4px rgba(0,0,0,0.45); }
/* Solid header: strong theme text for clarity */
.site-header.solid .nav a { color: var(--text); }
.site-header.solid .nav a:hover, .site-header.solid .nav a.active { color: var(--text); }

.cluster { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* borderless icon buttons */
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--text-soft); transition: background .25s var(--ease), color .25s var(--ease);
  position: relative;
}
.icon-btn svg { width: 23px; height: 23px; }
.icon-btn:hover { background: color-mix(in srgb, var(--sage) 22%, transparent); color: var(--text); }

/* contact pill */
.contact-ctl { position: relative; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 17px;
  border-radius: 999px; background: color-mix(in srgb, var(--sage) 16%, transparent);
  color: var(--text); font-weight: 600; font-size: 15.5px; transition: background .25s var(--ease);
}
.contact-pill svg { width: 19px; height: 19px; color: var(--sage); }
.contact-pill:hover { background: color-mix(in srgb, var(--sage) 28%, transparent); }
.contact-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 288px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--card-shadow); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
}
.contact-ctl:hover .contact-menu, .contact-ctl:focus-within .contact-menu, .contact-menu.open { opacity: 1; visibility: visible; transform: none; }
.contact-menu a { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 10px; font-weight: 500; font-size: 16px; transition: background .2s var(--ease); }
.contact-menu a:hover { background: var(--surface-2); }
.contact-menu a svg { width: 21px; height: 21px; color: var(--sage); flex-shrink: 0; }
.contact-menu a > span { min-width: 0; flex: 1; }
.contact-menu .cm-k { font-size: 12px; color: var(--muted); display: block; }
.contact-menu .cm-v { font-size: 14px; color: var(--text); display: block; overflow-wrap: anywhere; }

/* utility CTA + hamburger */
.cluster .btn { height: 46px; min-height: 46px; padding: 0 22px; font-size: 16px; }
.hamburger { display: none; }

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.search-panel {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line); padding: 22px 0; transform: translateY(-100%);
  transition: transform .4s var(--ease); box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.search-panel.open { transform: none; }
.search-row { display: flex; align-items: center; gap: 14px; }
.search-input { flex: 1; background: transparent; border: none; font-family: var(--serif); font-size: clamp(22px,3vw,32px); color: var(--text); padding: 8px 0; }
.search-input::placeholder { color: var(--muted); }
.search-input:focus { outline: none; }
.search-mic, .search-close { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--text-soft); transition: background .25s var(--ease), color .25s var(--ease); }
.search-mic svg, .search-close svg { width: 24px; height: 24px; }
.search-mic.listening { background: var(--coral); color: #fff; animation: pulse 1.2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(33,118,173,.5); } 50% { box-shadow: 0 0 0 12px rgba(33,118,173,0); } }
.search-results { margin-top: 14px; display: flex; flex-direction: column; gap: 4px; max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: 10px; transition: background .2s var(--ease); }
.search-results a:hover, .search-results a.sel { background: var(--surface); }
.search-results .sr-t { font-weight: 600; font-size: 18px; }
.search-results .sr-d { font-size: 14px; color: var(--muted); }
.search-empty { padding: 14px; color: var(--muted); }

/* ============================================================
   SETTINGS / ACCESSIBILITY PANEL
   ============================================================ */
.settings-scrim { position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.settings-scrim.open { opacity: 1; visibility: visible; }
.settings-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 76; width: min(400px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgba(0,0,0,.35);
  transform: translateX(100%); transition: transform .42s var(--ease); padding: 26px; overflow-y: auto;
}
.settings-panel.open { transform: none; }
.settings-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.settings-head h2 { font-size: 24px; }
.settings-sub { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.set-group { padding: 20px 0; border-top: 1px solid var(--line); }
.set-group h3 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.set-row label { font-weight: 500; font-size: 16px; }
.set-row .hint { font-size: 13px; color: var(--muted); }

/* toggle switch */
.switch { position: relative; width: 54px; height: 30px; border-radius: 999px; background: var(--line-2); transition: background .3s var(--ease); flex-shrink: 0; }
.switch[aria-checked="true"] { background: var(--sage); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch[aria-checked="true"]::after { transform: translateX(24px); }

/* range + select */
.set-control { width: 100%; }
.set-control input[type=range] { width: 100%; accent-color: var(--sage); height: 28px; }
.set-select { width: 100%; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-family: var(--sans); font-size: 15px; }
.seg { display: flex; gap: 6px; background: var(--surface-2); border-radius: 12px; padding: 5px; }
.seg button { flex: 1; padding: 10px; border-radius: 8px; font-weight: 600; font-size: 15px; color: var(--text-soft); transition: background .25s var(--ease), color .25s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu { position: fixed; inset: 0; z-index: 65; background: var(--bg); transform: translateY(-100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; padding: 100px 32px 40px; }
.mobile-menu.open { transform: none; }
.mobile-menu a.m-link { font-family: var(--serif); font-size: 30px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.mobile-menu .m-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   HERO (bg image + ken burns + bleed)
   ============================================================ */
.hero, .page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: 150px;
  margin-bottom: -130px; /* bleed into next section */
  padding-bottom: 250px;
}
.hero-bg, .page-hero-bg { position: absolute; inset: -10%; z-index: -2; will-change: transform; }
.hero-bg .kb, .page-hero-bg .kb {
  position: absolute; inset: -4%; background-size: cover; background-position: center; background-color: #0a1118;
  animation: kenburns 26s var(--ease) infinite alternate; will-change: transform;
}
@keyframes kenburns { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.14) translate(-1.5%, -2%); } }
.hero::after, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }

.hero { padding-top: 200px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }
.hero-grid--solo { grid-template-columns: 1fr; }
.hero-grid--solo .hero-copy { max-width: 880px; }
.hero h1 { font-size: clamp(46px, 6vw, 82px); margin-bottom: 26px; text-wrap: balance; color: #fff; }
.hero h1 em { font-style: italic; color: var(--coral); }
.hero h1, .hero .lede { text-shadow: 0 2px 22px rgba(6,14,22,0.6), 0 1px 2px rgba(6,14,22,0.55); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(96deg, rgba(6,14,22,0.66) 0%, rgba(6,14,22,0.4) 40%, rgba(6,14,22,0.08) 72%, transparent 100%); }
.hero .lede { font-size: 23px; margin-bottom: 38px; color: #DCE8F2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 38px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 22px 32px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 15.5px; color: #EAF3FA; }
.trust-item svg { width: 25px; height: 25px; color: var(--sage); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.5); aspect-ratio: 4/5; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hero-badge {
  position: absolute; left: -26px; bottom: 40px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--card-shadow); padding: 18px 22px; display: flex; align-items: center; gap: 15px; max-width: 260px;
}
.hero-badge .hb-icon { width: 50px; height: 50px; border-radius: 50%; background: color-mix(in srgb, var(--coral) 20%, transparent); display: grid; place-items: center; color: var(--coral); flex-shrink: 0; }
.hero-badge .hb-icon svg { width: 27px; height: 27px; }
.hero-badge .hb-num { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--text); line-height: 1; }
.hero-badge .hb-lbl { font-size: 14px; color: var(--text-soft); }

/* page hero (inner) */
.page-hero { padding-top: 168px; padding-bottom: 230px; }
.page-hero-inner { position: relative; max-width: 800px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: #C6D6E4; margin-bottom: 18px; }
.breadcrumb a { color: #fff; opacity: .85; }
.breadcrumb a:hover { opacity: 1; }
.page-hero h1 { font-size: clamp(42px, 5.4vw, 70px); margin-bottom: 18px; text-wrap: balance; color: #fff; }
.page-hero .lede { font-size: 22px; color: #DCE8F2; }

/* section that emerges over hero */
.emerge { position: relative; z-index: 2; background: var(--bg); border-radius: 34px 34px 0 0; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
@media (max-width: 1180px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); border-color: var(--line-2); }
.svc-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-photo img { transform: scale(1.06); }
.svc-body { padding: 30px 32px 34px; display: flex; gap: 20px; }
.svc-icon { width: 60px; height: 60px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); }
.svc-icon svg { width: 32px; height: 32px; }
.svc-card:nth-child(2) .svc-icon { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.svc-card:nth-child(3) .svc-icon { background: color-mix(in srgb, var(--sage) 22%, transparent); color: var(--sage); }
.svc-card h3 { font-size: 25px; margin-bottom: 9px; }
.svc-card p { color: var(--text-soft); font-size: 17px; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; color: var(--blue); font-size: 16px; }
.svc-more svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-more svg { transform: translateX(4px); }
.svc-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.svc-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 16.5px; color: var(--text-soft); }
.svc-list li svg { width: 22px; height: 22px; color: var(--sage); flex-shrink: 0; margin-top: 1px; }
.section-foot { margin-top: 50px; text-align: center; }

/* ---- Alternating service rows (services page) ---- */
.svc-rows { display: flex; flex-direction: column; gap: 30px; margin-top: 0; }
.svc-note { margin-top: 20px; color: var(--text-soft); font-size: 16.5px; text-wrap: pretty; }
.svc-row-cta { margin-top: 16px; height: 54px; min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.svc-row:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); border-color: var(--line-2); }
.svc-row .svc-photo { min-height: 360px; height: 100%; aspect-ratio: auto; }
.svc-row .svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-row:hover .svc-photo img { transform: scale(1.06); }
.svc-row:nth-child(even) .svc-photo { order: 2; }
.svc-row .svc-body { padding: 48px; display: flex; gap: 22px; align-items: flex-start; }

/* ---- Editorial service features (services page) ---- */
.svc-stack { display: flex; flex-direction: column; gap: 44px; margin-top: 8px; }
.svc-feature { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.svc-feature:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); border-color: var(--line-2); }
.svc-banner { position: relative; aspect-ratio: 20 / 7; background: var(--surface-2); overflow: hidden; }
.svc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .8s var(--ease); }
.svc-feature:hover .svc-banner img { transform: scale(1.04); }
.svc-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,24,0) 42%, rgba(8,16,24,0.6) 100%); }
.svc-num { position: absolute; left: 48px; bottom: 20px; z-index: 1; font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 6vw, 74px); line-height: 1; color: #fff; opacity: .96; text-shadow: 0 2px 20px rgba(0,0,0,.45); letter-spacing: -0.02em; }
.svc-content { display: grid; grid-template-columns: 1.35fr 1fr; }
.svc-main { padding: 46px 48px; }
.svc-main .svc-icon { margin-bottom: 22px; }
.svc-main h3 { font-size: clamp(26px, 2.6vw, 33px); margin-bottom: 16px; text-wrap: balance; }
.svc-main .desc { color: var(--text-soft); font-size: 17.5px; text-wrap: pretty; }
.svc-feature:nth-child(2) .svc-icon { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.svc-feature:nth-child(3) .svc-icon { background: color-mix(in srgb, var(--sage) 22%, transparent); color: var(--sage); }
.svc-aside { padding: 46px 44px; background: var(--surface-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.svc-aside h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.svc-aside .svc-list { margin-top: 0; }
@media (max-width: 900px) {
  .svc-content { grid-template-columns: 1fr; }
  .svc-aside { border-left: none; border-top: 1px solid var(--line); }
  .svc-banner { aspect-ratio: 16 / 9; }
  .svc-main, .svc-aside { padding: 34px; }
  .svc-num { left: 34px; }
}

/* ---- Sticky alternating service sections (services page) ---- */
.svc-sticky-flow { display: flex; flex-direction: column; gap: 112px; margin-top: 8px; }
.svc-sticky-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.svc-sticky-media { position: relative; }
.svc-sticky-row:nth-child(even) .svc-sticky-media { order: 2; }
.svc-sticky-inner { position: sticky; top: 116px; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--card-shadow); }
.svc-sticky-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.svc-sticky-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,24,0) 52%, rgba(8,16,24,0.55) 100%); }
.svc-sticky-inner .svc-num { left: 36px; bottom: 24px; }
.svc-sticky-text { padding-top: 4px; max-width: 560px; }
.svc-sticky-text .svc-icon { margin-bottom: 22px; }
.svc-sticky-text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 16px; text-wrap: balance; }
.svc-sticky-text .desc { color: var(--text-soft); font-size: 17.5px; text-wrap: pretty; }
.svc-sticky-text .incl-h { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 30px 0 16px; }
.svc-sticky-row:nth-child(2) .svc-icon { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.svc-sticky-row:nth-child(3) .svc-icon { background: color-mix(in srgb, var(--sage) 22%, transparent); color: var(--sage); }
@media (max-width: 900px) {
  .svc-sticky-row { grid-template-columns: 1fr; gap: 26px; }
  .svc-sticky-row:nth-child(even) .svc-sticky-media { order: 0; }
  .svc-sticky-inner { position: static; aspect-ratio: 16 / 10; }
  .svc-sticky-flow { gap: 64px; }
  .svc-sticky-text { max-width: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: center; }
.about-grid.flip .about-media { order: 2; }
.about-media { position: relative; }
.about-figure { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--card-shadow); aspect-ratio: 4/3; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.stat-chip { position: absolute; right: -22px; top: 38px; background: var(--primary); color: var(--on-primary); border-radius: var(--r-md); padding: 20px 24px; box-shadow: var(--card-shadow); text-align: center; }
.stat-chip .n { font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 1; }
.stat-chip .l { font-size: 13px; margin-top: 6px; opacity: .9; }
.about-copy p { color: var(--text-soft); margin-bottom: 20px; font-size: 18.5px; }
.sig { font-family: var(--serif); font-style: italic; font-size: 23px; color: var(--text); }
.sig-role { font-size: 15px; color: var(--muted); font-style: normal; }

/* stats band */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; margin-top: 10px; }
.stat-cell { text-align: center; padding: 20px; }
.stat-cell .num { font-family: var(--serif); font-size: clamp(40px,5vw,60px); font-weight: 600; color: var(--blue); line-height: 1; }
.stat-cell .cap { margin-top: 10px; color: var(--text-soft); font-size: 16px; }

/* ============================================================
   WHY US
   ============================================================ */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); border-color: var(--line-2); }
.why-ic { width: 56px; height: 56px; border-radius: 16px; background: color-mix(in srgb, var(--coral) 18%, transparent); color: var(--coral); display: grid; place-items: center; margin-bottom: 20px; }
.why-ic svg { width: 29px; height: 29px; }
.why-card h3 { font-size: 22px; margin-bottom: 11px; }
.why-card p { color: var(--text-soft); font-size: 16.5px; }

/* ============================================================
   VALUES
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); border-color: var(--line-2); }
.v-ic { width: 58px; height: 58px; border-radius: 16px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.value-card:nth-child(2) .v-ic { background: color-mix(in srgb, var(--coral) 20%, transparent); color: var(--coral); }
.value-card:nth-child(3) .v-ic { background: color-mix(in srgb, var(--sage) 22%, transparent); color: var(--sage); }
.v-ic svg { width: 29px; height: 29px; }
.value-card h3 { font-size: 21px; margin-bottom: 10px; }
.value-card p { color: var(--text-soft); font-size: 16px; }

/* ============================================================
   TESTIMONIAL SLIDER
   ============================================================ */
.tst-slider { position: relative; max-width: 920px; margin: 48px auto 0; }
.tst-track { position: relative; min-height: 340px; }
.tst-slide { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.tst-slide.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.tst-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 48px; text-align: center; box-shadow: var(--card-shadow); }
.tst-stars { display: flex; gap: 5px; justify-content: center; color: var(--coral); margin-bottom: 22px; }
.tst-stars svg { width: 24px; height: 24px; }
.tst-quote { font-family: var(--serif); font-size: clamp(22px,2.6vw,30px); line-height: 1.45; color: var(--text); margin-bottom: 30px; text-wrap: pretty; }
.tst-person { display: flex; align-items: center; justify-content: center; gap: 15px; }
.tst-person img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.tst-meta { text-align: center; }
.tst-meta .nm { font-weight: 700; color: var(--text); font-size: 17px; }
.tst-meta .rl { font-size: 14px; color: var(--muted); }
.tst-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.tst-arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: background .25s var(--ease), transform .25s var(--ease); }
.tst-arrow:hover { background: var(--surface-2); transform: scale(1.06); }
.tst-arrow svg { width: 22px; height: 22px; }
.tst-dots { display: flex; gap: 9px; }
.tst-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); transition: background .25s var(--ease), transform .25s var(--ease); }
.tst-dot.active { background: var(--coral); transform: scale(1.3); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ci-row { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ci-row:last-of-type { border-bottom: none; }
.ci-ic { width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.ci-ic svg { width: 25px; height: 25px; }
.ci-row .k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ci-row .v { font-size: 21px; font-weight: 600; color: var(--text); font-family: var(--serif); }
.ci-row .v.small { font-size: 18px; font-family: var(--sans); font-weight: 500; }

.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 42px; box-shadow: var(--card-shadow); }
.contact-card h3 { font-size: 27px; margin-bottom: 8px; }
.contact-card .sub { color: var(--text-soft); margin-bottom: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 17px; color: var(--text);
  padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 108px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }

.map-wrap { margin-top: 28px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--card-shadow); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(.2); }

/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.socials { display: flex; gap: 12px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-soft); transition: transform .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.socials a:hover { color: var(--text); transform: translateY(-3px); border-color: var(--coral); box-shadow: 0 0 18px color-mix(in srgb, var(--coral) 50%, transparent); }
.socials a svg { width: 21px; height: 21px; }
.contact-socials { margin-top: 30px; }
.contact-socials .k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; background: linear-gradient(125deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 70px 56px; text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px; background: radial-gradient(circle, color-mix(in srgb, var(--coral) 26%, transparent), transparent 70%); border-radius: 50%; }
.cta-band::after { content: ""; position: absolute; bottom: -140px; left: -90px; width: 420px; height: 420px; background: radial-gradient(circle, color-mix(in srgb, var(--blue) 24%, transparent), transparent 70%); border-radius: 50%; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 16px; text-wrap: balance; }
.cta-band p { color: var(--text-soft); font-size: 21px; max-width: 56ch; margin: 0 auto 34px; text-wrap: pretty; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 76px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.footer-brand p { margin-top: 18px; max-width: 36ch; font-size: 16px; color: var(--text-soft); }
.footer-brand .socials { margin-top: 22px; }
.footer-col h4 { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col a, .footer-col li { display: block; padding: 7px 0; font-size: 16px; color: var(--text-soft); overflow-wrap: anywhere; }
.footer-link { position: relative; }
.footer-col a.footer-link { display: block; width: fit-content; max-width: 100%; }
.footer-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.footer-link:hover { color: var(--text); }
.footer-link:hover::after { transform: scaleX(1); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 14px; color: var(--muted); flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hamburger { display: grid; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .about-grid, .about-grid.flip, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media, .about-grid.flip .about-media { order: -1; }
  .hero-figure { aspect-ratio: 16/11; max-height: 380px; }
  .about-figure { aspect-ratio: 16/12; max-height: 460px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1.4fr 1fr; }
  .cluster .contact-pill .cp-num { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .services-grid, .why-grid, .values-grid, .footer-top { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .svc-body { flex-direction: column; gap: 16px; }
  .cluster .util-cta { display: none; }
  .hero { padding-top: 148px; padding-bottom: 180px; }
  .page-hero { padding-top: 128px; padding-bottom: 168px; }
  .hero h1 { font-size: clamp(38px, 9vw, 54px); }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .btn--lg { font-size: 18px; padding: 17px 24px; min-height: 56px; }
  .cta-band { padding: 48px 24px; }
  .contact-card { padding: 30px 22px; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; height: 72px; }
  .cluster { gap: 4px; }
  #btnSearch { display: none; }
  .icon-btn { width: 42px; height: 42px; }
  .icon-btn svg { width: 21px; height: 21px; }
  .contact-pill { padding: 0 12px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 10px; }
}


/* mm-batch-patch: drawer centering */
.mobile-menu{align-items:center;}
.mobile-menu > *:not(button){width:100%;max-width:440px;margin-left:auto;margin-right:auto;}
