/* =====================================================================
   Wintecsys — public site styles
   Brand: Light Teal #B2D8D8 · Medium Teal #66B2B2 · Primary Teal #008080
          Deep Teal #006666 · Dark Teal #004C4C
   ===================================================================== */

:root {
  --brand-light: #B2D8D8;
  --brand-medium: #66B2B2;
  --brand-primary: #008080;
  --brand-deep: #006666;
  --brand-dark: #004C4C;
  --brand-ink: #062F2F;          /* darkest tint of the brand, for long dark surfaces */

  --background: #F7FAFA;
  --surface: #FFFFFF;
  --surface-soft: #F0F5F5;
  --surface-tint: #E3EFEF;

  --text-primary: #0B3B3B;
  --text-strong: #004C4C;
  --text-secondary: #4D6767;
  --text-muted: #557070;         /* ≥ 4.5:1 on all light surfaces (WCAG AA) */

  --border-color: rgba(0, 128, 128, 0.14);
  --border-strong: rgba(0, 102, 102, 0.28);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 76, 76, 0.06), 0 2px 8px -4px rgba(0, 76, 76, 0.12);
  --shadow-md: 0 2px 4px rgba(0, 76, 76, 0.05), 0 14px 32px -16px rgba(0, 76, 76, 0.26);
  --shadow-lg: 0 4px 10px rgba(0, 76, 76, 0.06), 0 30px 60px -28px rgba(0, 76, 76, 0.38);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container-width: 1200px;
  --gutter: clamp(1rem, 3.5vw, 2rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text-primary);
  background: var(--background); -webkit-font-smoothing: antialiased; overflow-x: clip;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { color: var(--text-strong); font-weight: 700; line-height: 1.18; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.35rem); }
.h3, h3 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem); }
.h4 { font-size: 1.05rem; }
p { text-wrap: pretty; }
::selection { background: var(--brand-primary); color: #fff; }
:focus-visible { outline: 2.5px solid var(--brand-primary); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--text-muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 1.05em; height: 1.05em; }
.icon-xs { width: 0.95em; height: 0.95em; }

.container { width: min(100% - 2 * var(--gutter), var(--container-width)); margin-inline: auto; }
.container-narrow { width: min(100% - 2 * var(--gutter), 760px); }
.container-mid { width: min(100% - 2 * var(--gutter), 980px); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-soft { background: var(--surface-soft); }
.section-dark { background: linear-gradient(160deg, var(--brand-dark), var(--brand-ink)); color: #DCEDED; }
.section-dark h2, .section-dark h3 { color: #fff; }

.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 300; padding: 0.6rem 1rem; border-radius: var(--radius-sm); background: var(--brand-dark); color: #fff; }
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.35rem; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-weight: 600; font-size: 0.97rem; line-height: 1.1; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.05rem; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 14px 28px -12px rgba(0, 102, 102, 0.6); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-130%); }
.btn-primary:hover::before { animation: shine .9s var(--ease); }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-dark:hover { background: var(--brand-ink); }
.btn-outline { background: var(--surface); color: var(--brand-dark); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-ghost { color: var(--brand-dark); border-color: var(--border-color); background: transparent; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-light); box-shadow: 0 14px 28px -12px rgba(0,0,0,.4); }
/* WhatsApp: darker green so white text meets WCAG AA (≈5.6:1) */
.btn-whatsapp { background: #0b7a3e; color: #fff; }
.btn-whatsapp:hover { background: #086332; color: #fff; box-shadow: 0 14px 28px -12px rgba(11,122,62,.55); }
.btn-label { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn .spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: .55; }
.btn.is-loading .spinner { display: inline-block; }
.icon-btn { display: inline-grid; place-items: center; position: relative; width: 44px; height: 44px; border-radius: 12px; color: var(--brand-dark); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--surface-tint); color: var(--brand-primary); }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--brand-deep); }
.link-arrow:hover { color: var(--brand-dark); }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
kbd { font-family: var(--font-mono); font-size: 0.78em; padding: 0.1em 0.45em; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface); }
.kbd-hint { display: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(247, 250, 250, 0.86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background-color .3s; }
.site-header.is-scrolled { border-color: var(--border-color); box-shadow: 0 8px 24px -18px rgba(0, 76, 76, 0.45); background: rgba(255, 255, 255, 0.92); }
.header-row { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; flex: none; }
.logo-mark { width: 38px; height: 38px; transition: transform .45s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-word { font-weight: 800; font-size: 1.32rem; letter-spacing: -0.035em; color: var(--brand-dark); }
.logo-word span { color: var(--brand-primary); }
.logo-light .logo-word { color: #fff; }
.logo-light .logo-word span { color: var(--brand-light); }
.main-nav { display: flex; align-items: center; gap: 0.15rem; margin-inline-start: auto; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.55rem 0.85rem; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.95rem; color: var(--text-secondary); transition: color .2s, background-color .2s; }
.nav-link:hover { color: var(--brand-dark); background: var(--surface-tint); }
.nav-link.is-active { color: var(--brand-dark); }
.nav-link.is-active::after { content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 3px; height: 2px; border-radius: 2px; background: var(--brand-primary); }
.nav-drop { position: relative; }
.nav-drop-btn .icon { transition: transform .25s var(--ease); }
.nav-drop.is-open .nav-drop-btn .icon { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(640px, 92vw); transform: translate(-50%, 8px); padding: 1rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity .22s, transform .22s var(--ease), visibility .22s; }
.nav-drop.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25rem; }
.mega-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem; border-radius: var(--radius-sm); transition: background-color .2s; }
.mega-item:hover { background: var(--surface-soft); }
.mega-item strong { display: block; font-size: 0.9rem; color: var(--brand-dark); line-height: 1.25; }
.mega-item small { color: var(--text-muted); font-size: 0.78rem; }
.mega-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--surface-tint); color: var(--brand-primary); }
.mega-all { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-top: 0.6rem; padding: 0.65rem; border-radius: var(--radius-sm); background: var(--surface-soft); font-weight: 600; font-size: 0.9rem; color: var(--brand-primary); }
.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.menu-btn { display: none; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.nav-cta-mobile { display: none; }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-primary), var(--brand-medium)); transform: scaleX(0); transform-origin: left; }

@media (max-width: 980px) {
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
  .header-actions { margin-inline-start: auto; }
  .main-nav { position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; background: var(--surface); border-bottom: 1px solid var(--border-color); box-shadow: 0 24px 40px -24px rgba(0, 76, 76, .4); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav.is-open > * { animation: navIn .4s var(--ease) backwards; }
  .main-nav.is-open > *:nth-child(2) { animation-delay: .04s; } .main-nav.is-open > *:nth-child(3) { animation-delay: .08s; }
  .main-nav.is-open > *:nth-child(4) { animation-delay: .12s; } .main-nav.is-open > *:nth-child(5) { animation-delay: .16s; }
  .nav-link { padding: 0.95rem 0.25rem; border-radius: 0; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; justify-content: space-between; width: 100%; }
  .nav-link:hover { background: none; }
  .nav-link.is-active::after { display: none; }
  .mega { position: static; width: auto; transform: none; padding: 0.5rem 0; border: 0; box-shadow: none; display: none; opacity: 1; visibility: visible; }
  .nav-drop.is-open .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1rem; }
}
@media (max-width: 480px) { .mega-grid { grid-template-columns: 1fr; } .kbd-hint { display: none; } }

.staging-bar { padding: 0.45rem var(--gutter); text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--brand-dark); background: repeating-linear-gradient(-45deg, var(--brand-light), var(--brand-light) 12px, #C4E1E1 12px, #C4E1E1 24px); }
.preview-bar { position: sticky; top: var(--header-h); z-index: 50; padding: 0.6rem var(--gutter); text-align: center; font-size: 0.9rem; background: #FFF6DB; color: #5C4700; border-bottom: 1px solid #F0DC9A; }
.preview-bar a { text-decoration: underline; font-weight: 600; }
.flash-wrap { padding-top: 1rem; }
.flash { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-weight: 500; border: 1px solid var(--border-color); background: var(--surface); }
.flash-success { border-color: rgba(0,128,128,.35); background: #E6F4F4; color: var(--brand-dark); }
.flash-error { border-color: #F1B8B8; background: #FFF1F1; color: #8A1C1C; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, rgba(0,128,128,.16) 1px, transparent 1.3px) 0 0 / 26px 26px; -webkit-mask-image: radial-gradient(60% 75% at 72% 40%, #000, transparent 75%); mask-image: radial-gradient(60% 75% at 72% 40%, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(102,178,178,.28), transparent 65%); animation: breathe 10s ease-in-out infinite; pointer-events: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: radial-gradient(70% 95% at 76% 42%, #000 20%, rgba(0,0,0,.3) 60%, transparent 88%); mask-image: radial-gradient(70% 95% at 76% 42%, #000 20%, rgba(0,0,0,.3) 60%, transparent 88%); }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 4.5rem); }
.chip { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.38rem 0.9rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-color); font-size: 0.84rem; font-weight: 600; color: var(--text-secondary); box-shadow: var(--shadow-sm); }
.chip-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }
.chip-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--brand-medium); animation: ping 2.4s ease-out infinite; }
.hero-title { margin-top: 1.3rem; font-size: clamp(2.5rem, 1.4rem + 4vw, 4.6rem); line-height: 1.04; letter-spacing: -0.04em; }
.accent { position: relative; color: var(--brand-primary); white-space: nowrap; }
.accent::after { content: ""; position: absolute; left: 0.02em; right: 0.02em; bottom: 0.04em; height: 0.12em; border-radius: 4px; background: var(--brand-light); z-index: -1; transform-origin: left; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-block: 0.08em; margin-block: -0.08em; }
.hero-title .wi { display: inline-block; }
.js .hero-title .wi { transform: translateY(115%); transition: transform .9s var(--ease) calc(var(--i, 0) * 70ms + .1s); }
.js .hero-title.is-split .wi { transform: none; }
.js .hero-title .accent::after { transform: scaleX(0); transition: transform 1s var(--ease) .9s; }
.js .hero-title.is-split .accent::after { transform: scaleX(1); }
.hero-lead { margin-top: 1.3rem; max-width: 36rem; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--text-secondary); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-search { display: flex; align-items: center; gap: 0.6rem; max-width: 34rem; margin-top: 1.6rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.hero-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0,128,128,.14); }
.hero-search .icon { color: var(--text-muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 0.45rem 0; font-size: 0.95rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 1.4rem; color: var(--text-muted); font-size: 0.9rem; }
.hero-facts strong { color: var(--brand-dark); }

.hero-art { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; justify-self: center; }
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--brand-light); stroke-width: 1.4; stroke-linecap: round; }
.hero-rings circle:not(.ring):not(.ripple):not(.orb) { fill: var(--background); stroke: var(--brand-medium); }
.hero-rings .ring-dash { stroke: var(--brand-medium); stroke-dasharray: 3 9; transform-origin: 260px 260px; animation: spin 90s linear infinite; }
.hero-rings .ripple { stroke: var(--brand-primary); transform-origin: 260px 260px; animation: ripple 5.5s ease-out infinite; }
.hero-rings .ripple.r2 { animation-delay: -2.7s; }
.orbit { transform-origin: 260px 260px; animation: spin 24s linear infinite; }
.orbit.o2 { animation-duration: 17s; animation-direction: reverse; }
.orbit.o3 { animation-duration: 30s; animation-delay: -14s; }
.hero-rings .orb { fill: var(--brand-primary); stroke: none; }
.hero-rings .orb.hollow { fill: var(--surface); stroke: var(--brand-primary); stroke-width: 2; }
.hero-core { position: absolute; inset: 24%; display: grid; place-items: center; border-radius: 30%; color: #fff; background: linear-gradient(145deg, var(--brand-primary), var(--brand-dark)); box-shadow: 0 40px 70px -30px rgba(0, 76, 76, .7), inset 0 1px 0 rgba(255,255,255,.25); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
.hero-core svg { width: 62%; fill: var(--brand-light); }
.hero-core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); animation: sheen 6s ease-in-out infinite; }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.8rem; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); font-size: 0.82rem; font-weight: 600; color: var(--brand-dark); white-space: nowrap; animation: float 6s ease-in-out infinite; translate: calc(var(--tx, 0px) * var(--k, 1)) calc(var(--ty, 0px) * var(--k, 1)); transition: translate .35s ease-out; }
.float-chip .icon { color: var(--brand-primary); }
.fc-1 { top: 6%; left: -6%; --k: -1.4; } .fc-2 { top: 40%; right: -10%; animation-delay: -2s; --k: 1.8; }
.fc-3 { bottom: 10%; left: -2%; animation-delay: -4s; --k: -2.2; } .fc-4 { bottom: -2%; right: 6%; animation-delay: -1s; --k: 1.2; }

@media (max-width: 899px) { .hero-canvas { display: none; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 340px; }
  .hero::after { width: 480px; height: 480px; right: -200px; }
}
@media (max-width: 560px) {
  .hero-art { max-width: 270px; margin-top: 0.5rem; }
  .float-chip { font-size: 0.72rem; padding: 0.38rem 0.6rem; }
  .fc-1 { left: -14%; } .fc-2 { right: -18%; } .fc-3 { left: -10%; } .fc-4 { right: -6%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .accent { white-space: normal; }
  .hero-search { border-radius: var(--radius-md); }
}

/* ---------- topic marquee ---------- */
.topic-strip { overflow: hidden; border-block: 1px solid var(--border-color); background: var(--surface); padding-block: 0.9rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.topic-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.topic-strip:hover .topic-track, .topic-strip:focus-within .topic-track { animation-play-state: paused; }
.topic-set { display: flex; flex: none; }
.topic-set a { display: inline-flex; align-items: center; gap: 0.5rem; margin-inline-end: 2.2rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; transition: color .2s; }
.topic-set a .icon { color: var(--brand-medium); }
.topic-set a:hover { color: var(--brand-primary); }

/* ---------- section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.section-lead { margin-top: 0.6rem; color: var(--text-secondary); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-deep); }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--brand-medium); }
.eyebrow-light { color: var(--brand-light); }

/* ---------- cards ---------- */
.card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card:focus-within { border-color: var(--brand-primary); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand-light);
  background: linear-gradient(rgba(178,216,216,.09) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(178,216,216,.09) 1px, transparent 1px) 0 0 / 26px 26px, radial-gradient(120% 120% at 100% 0%, var(--brand-primary), var(--brand-dark) 70%); }
.card-placeholder .icon { width: 54px; height: 54px; stroke-width: 1.2; transition: transform .6s var(--ease); }
.card:hover .card-placeholder .icon { transform: scale(1.1) rotate(-4deg); }
.card-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.card-cat { position: relative; z-index: 2; align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-primary); }
.card-cat:hover { color: var(--brand-dark); }
.card-title { font-size: 1.14rem; line-height: 1.32; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a { background: linear-gradient(var(--brand-light), var(--brand-light)) 0 100% / 0 0.35em no-repeat; transition: background-size .4s var(--ease); }
.card:hover .card-title a { background-size: 100% 0.35em; }
.card-excerpt { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.85rem; font-size: 0.82rem; color: var(--text-muted); }
.card-meta > * + *::before { content: ""; display: inline-block; width: 3px; height: 3px; margin-right: 0.85rem; border-radius: 50%; background: var(--brand-medium); vertical-align: middle; transform: translateY(-1px); }
.card-lead { display: grid; grid-template-rows: auto 1fr; }
.card-lead .card-media { aspect-ratio: 16 / 9; }
.card-lead .card-body { padding: 1.5rem 1.6rem 1.7rem; gap: 0.75rem; }
.card-lead .card-title { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); line-height: 1.2; letter-spacing: -0.025em; }
.card-row { flex-direction: row; }
.card-row .card-media { width: 38%; flex: none; aspect-ratio: auto; min-height: 100%; }
.card-row .card-body { padding: 1rem 1.15rem; }
.card-row .card-title { font-size: 1.02rem; }
.card-row .card-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.9rem; }
.card-row .card-placeholder .icon { width: 36px; height: 36px; }
.card-row .card-meta > span:first-child:not(:last-child) { display: none; }
.card-row .card-meta > time::before { display: none; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.featured-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.4rem; }
.featured-grid > .reveal { height: 100%; }
.featured-side { display: grid; gap: 1rem; grid-auto-rows: 1fr; }
.blog-lead { margin-bottom: 1.4rem; }
.blog-lead .card-lead { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
.blog-lead .card-lead .card-media { aspect-ratio: auto; min-height: 320px; }
.blog-lead .card-lead .card-body { justify-content: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .featured-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .blog-lead .card-lead { grid-template-columns: 1fr; } .blog-lead .card-lead .card-media { min-height: 0; aspect-ratio: 16/9; } }
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card-row .card-media { width: 34%; }
}

.load-more-wrap { display: flex; justify-content: center; margin-top: 2.25rem; }
.empty-state { display: grid; justify-items: center; gap: 0.75rem; padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 1.5rem; text-align: center; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--border-strong); }
.empty-state p { max-width: 32rem; color: var(--text-secondary); }
.empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--surface-tint); color: var(--brand-primary); }
.empty-icon .icon { width: 30px; height: 30px; }
.skeleton { border-radius: var(--radius-md); background: linear-gradient(90deg, var(--surface-soft) 25%, var(--surface-tint) 37%, var(--surface-soft) 63%) 0 0 / 400% 100%; animation: shimmer 1.4s ease infinite; min-height: 320px; }

/* ---------- topics ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.topic-card { position: relative; display: flex; flex-direction: column; gap: 0.5rem; padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.topic-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(300px circle at var(--mx, 80%) var(--my, 0%), rgba(102,178,178,.18), transparent 70%); transition: opacity .35s; }
.topic-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-medium)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.topic-card:hover::before { opacity: 1; }
.topic-card:hover::after { transform: scaleX(1); }
.topic-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 0.4rem; border-radius: 14px; background: var(--surface-tint); color: var(--brand-primary); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.topic-icon .icon { width: 24px; height: 24px; }
.topic-card:hover .topic-icon { background: var(--brand-primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.topic-name { font-weight: 700; font-size: 1.08rem; color: var(--brand-dark); }
.topic-desc { color: var(--text-secondary); font-size: 0.92rem; flex: 1; }
.topic-count { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--brand-primary); }
.topic-count .icon { transition: transform .25s var(--ease); }
.topic-card:hover .topic-count .icon { transform: translateX(4px); }
@media (max-width: 1024px) { .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .topic-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 0.9rem; padding: 1.05rem; }
  .topic-icon { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
}

/* ---------- picks ---------- */
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; counter-reset: pick; }
.pick { display: flex; gap: 1.2rem; padding: 1.4rem 0; border-top: 1px solid rgba(178,216,216,.18); }
.pick-num { font-size: 2.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--brand-medium); }
.pick .card-cat { color: var(--brand-light); }
.pick h3 { margin-top: 0.3rem; font-size: 1.18rem; }
.pick h3 a { background: linear-gradient(var(--brand-medium), var(--brand-medium)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.pick h3 a:hover { background-size: 100% 2px; }
.pick .card-meta { margin-top: 0.4rem; color: rgba(220,237,237,.7); }
@media (max-width: 760px) { .picks { grid-template-columns: 1fr; } }

/* ---------- newsletter ---------- */
.newsletter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.5rem 3rem; padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.newsletter::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(178,216,216,.55), transparent 65%); }
.newsletter .eyebrow::before { display: none; }
.newsletter h2 { font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2rem); }
.newsletter-copy p { margin-top: 0.6rem; color: var(--text-secondary); }
.newsletter-row { display: flex; gap: 0.5rem; padding: 0.35rem; border-radius: var(--radius-pill); background: var(--surface-soft); border: 1px solid var(--border-color); transition: border-color .2s, box-shadow .2s; }
.newsletter-row:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0,128,128,.14); }
.newsletter-row input { flex: 1; min-width: 0; padding: 0.6rem 0.9rem; border: 0; background: none; outline: none; font-size: 1rem; }
.newsletter-compact { grid-template-columns: 1fr; }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .newsletter-row { flex-direction: column; border-radius: var(--radius-md); } .newsletter-row .btn { width: 100%; } }
.form-status { min-height: 1.3em; margin-top: 0.6rem; font-size: 0.92rem; font-weight: 500; }
.form-status.is-ok { color: var(--brand-deep); }
.form-status.is-error { color: #A12424; }
.form-note { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.4rem; font-size: 0.82rem; color: var(--text-muted); }
.form-note a { text-decoration: underline; }

/* ---------- about preview + CTA ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.about-grid p { margin-top: 0.9rem; color: var(--text-secondary); font-size: 1.05rem; }
.about-grid .link-arrow { margin-top: 1.25rem; }
.principles { display: grid; gap: 0.75rem; }
.principles li { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); transition: transform .3s var(--ease); }
.principles li:hover { transform: translateX(6px); }
.principles li > span { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--brand-primary); color: #fff; }
.principles li p { margin-top: 0.15rem; font-size: 0.92rem; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.cta-band { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #DCEDED;
  background: radial-gradient(520px circle at 92% 0%, rgba(102,178,178,.35), transparent 60%), linear-gradient(150deg, var(--brand-primary), var(--brand-dark) 60%, var(--brand-ink)); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(178,216,216,.08) 1px, transparent 1px) 0 0 / 36px 36px, linear-gradient(90deg, rgba(178,216,216,.08) 1px, transparent 1px) 0 0 / 36px 36px; -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000); mask-image: linear-gradient(100deg, transparent 15%, #000); animation: drift 22s linear infinite; }
.cta-band::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -90px; top: -130px; border: 1.5px dashed rgba(178,216,216,.35); border-radius: 50%; animation: spin 70s linear infinite; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.cta-copy { max-width: 40rem; }
.cta-copy p { margin-top: 0.5rem; }
@media (max-width: 560px) { .cta-band .btn { width: 100%; white-space: normal; } }

/* ---------- page hero, filters ---------- */
.page-hero { position: relative; padding-block: clamp(2rem, 1.5rem + 2.5vw, 3.75rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--border-color); background: linear-gradient(180deg, var(--surface), var(--background)); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(circle, rgba(0,128,128,.12) 1px, transparent 1.3px) 0 0 / 24px 24px; -webkit-mask-image: radial-gradient(50% 90% at 100% 0%, #000, transparent 70%); mask-image: radial-gradient(50% 90% at 100% 0%, #000, transparent 70%); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 0.6rem; }
.page-lead { margin-top: 0.75rem; max-width: 46rem; font-size: 1.1rem; color: var(--text-secondary); }
.page-lead.prose-inline p + p { margin-top: 0.6rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--brand-medium); }
.breadcrumbs a:hover { color: var(--brand-primary); text-decoration: underline; }
.breadcrumbs span[aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-search { display: flex; align-items: center; gap: 0.5rem; max-width: 36rem; margin-top: 1.25rem; padding: 0.35rem 0.35rem 0.35rem 1rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border-strong); transition: box-shadow .2s, border-color .2s; }
.inline-search:focus-within { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0,128,128,.14); }
.inline-search .icon { color: var(--text-muted); }
.inline-search input { flex: 1; min-width: 0; width: 100%; border: 0; outline: none; background: none; padding: 0.5rem 0; }
.inline-search .icon-btn { width: 36px; height: 36px; }
.topic-hero { display: flex; align-items: flex-start; gap: 1.25rem; margin-top: 1rem; }
.topic-hero h1 { margin-top: 0; }
.topic-hero-icon { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 20px; color: #fff; background: linear-gradient(145deg, var(--brand-primary), var(--brand-dark)); box-shadow: var(--shadow-md); }
.topic-hero-icon .icon { width: 32px; height: 32px; }
@media (max-width: 560px) { .topic-hero { flex-direction: column; } }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips-center { justify-content: center; margin-top: 0.5rem; }
.chip-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; border-radius: var(--radius-pill); border: 1px solid var(--border-color); background: var(--surface); font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); transition: all .2s; }
.chip-link:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.chip-link.is-active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.chips-lg .chip-link { padding: 0.6rem 1.1rem; font-size: 0.95rem; }
.sort { display: flex; align-items: center; gap: 0.75rem; font-size: 0.88rem; color: var(--text-muted); }
.sort a { font-weight: 600; color: var(--text-secondary); padding-bottom: 2px; border-bottom: 2px solid transparent; }
.sort a.is-active { color: var(--brand-dark); border-color: var(--brand-primary); }
@media (max-width: 640px) { .filter-bar .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .chip-link { flex: none; } }

.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
.pagination ol { display: flex; gap: 0.35rem; }
.pagination li a, .pagination li span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 0.5rem; border-radius: 12px; font-weight: 600; border: 1px solid var(--border-color); background: var(--surface); }
.pagination li a:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.pagination li span[aria-current] { background: var(--brand-primary); color: #fff; border-color: var(--brand-primary); }
.pagination .gap { display: grid; place-items: center; min-width: 24px; color: var(--text-muted); }
.page-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--border-color); background: var(--surface); font-weight: 600; }
.page-btn:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tag-list a { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.8rem; border-radius: var(--radius-pill); background: var(--surface-tint); font-size: 0.85rem; font-weight: 600; color: var(--brand-deep); transition: background-color .2s, color .2s; }
.tag-list a:hover { background: var(--brand-primary); color: #fff; }
.tag-list small { opacity: .7; }
.tag-list-lg { margin-top: 1rem; }

/* ---------- article ---------- */
.article-header { padding-top: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.article-cat { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.5rem; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--surface-tint); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--brand-deep); }
.article-cat:hover { background: var(--brand-primary); color: #fff; }
.article-title { margin-top: 1rem; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); line-height: 1.1; }
.article-dek { margin-top: 1rem; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem); color: var(--text-secondary); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.4rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); font-size: 0.9rem; color: var(--text-muted); }
.article-meta > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.article-meta .icon { color: var(--brand-medium); }
.author-chip strong { color: var(--brand-dark); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; font-weight: 700; font-size: 0.9rem; color: #fff; background: linear-gradient(145deg, var(--brand-medium), var(--brand-deep)); }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.article-hero { margin-top: 2rem; }
.article-hero img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); max-height: 620px; object-fit: cover; }
.article-hero figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.85rem; color: var(--text-muted); }

.article-layout { display: grid; grid-template-columns: 240px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 1rem + 4vw, 4.5rem); padding-block: clamp(2rem, 1.5rem + 2vw, 3.25rem) var(--section); }
.article-layout.no-toc { grid-template-columns: minmax(0, 720px); }
.toc { position: relative; }
.toc-box { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; }
.toc-box summary { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); list-style: none; cursor: default; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box ol { border-left: 2px solid var(--border-color); }
.toc-box a { display: block; margin-left: -2px; padding: 0.38rem 0 0.38rem 0.95rem; border-left: 2px solid transparent; font-size: 0.88rem; line-height: 1.4; color: var(--text-secondary); transition: color .2s, border-color .2s; }
.toc-box .toc-l3 a { padding-left: 1.75rem; font-size: 0.84rem; }
.toc-box a:hover { color: var(--brand-primary); }
.toc-box a.is-active { color: var(--brand-dark); font-weight: 600; border-left-color: var(--brand-primary); }
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .toc-box { position: static; max-height: none; padding: 1rem 1.15rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); }
  .toc-box summary { cursor: pointer; margin: 0; }
  .toc-box summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s; }
  .toc-box[open] summary { margin-bottom: 0.75rem; }
  .toc-box[open] summary::after { transform: rotate(-135deg); }
}

/* prose: long-form reading */
.prose { font-size: 1.1rem; line-height: 1.78; color: #173F3F; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.9rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.8em; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin-top: 1.6em; font-size: 1.1rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose a { color: var(--brand-primary); font-weight: 500; text-decoration: underline; text-decoration-color: var(--brand-light); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s, color .2s; }
.prose a:hover { color: var(--brand-dark); text-decoration-color: var(--brand-primary); }
.prose strong { color: var(--brand-dark); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.05em; top: 0.72em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-medium); transform: rotate(45deg); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--brand-primary); font-weight: 700; }
.prose li + li { margin-top: 0.45em; }
.prose li > ul, .prose li > ol { margin-top: 0.45em; }
.prose blockquote { position: relative; padding: 1.1rem 1.4rem 1.1rem 1.6rem; border-radius: 0 var(--radius-md) var(--radius-md) 0; border-left: 4px solid var(--brand-primary); background: var(--surface-soft); color: var(--brand-dark); font-size: 1.08rem; font-weight: 500; }
.prose blockquote p + p { margin-top: 0.6em; }
.prose hr { border: 0; height: 1px; background: var(--border-color); margin-block: 2.5em; }
.prose img { border-radius: var(--radius-md); margin-inline: auto; }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.88rem; color: var(--text-muted); }
.prose code, .prose pre { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.prose code { font-family: var(--font-mono); font-size: 0.86em; padding: 0.15em 0.4em; border-radius: 6px; background: var(--surface-tint); color: var(--brand-deep); }
.prose pre { position: relative; margin-inline: calc(var(--gutter) * -0.5); padding: 1.15rem 1.25rem; border-radius: var(--radius-md); background: #052828; color: #D6ECEC; font-size: 0.88rem; line-height: 1.65; overflow-x: auto; box-shadow: inset 0 0 0 1px rgba(178,216,216,.12); tab-size: 4; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose pre[data-lang]::before { content: attr(data-lang); position: absolute; top: 0.55rem; right: 3.4rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-medium); }
.copy-code { position: absolute; top: 0.45rem; right: 0.45rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--brand-light); background: rgba(178,216,216,.08); opacity: .75; transition: opacity .2s, background-color .2s; }
.copy-code:hover, .copy-code:focus-visible { opacity: 1; background: rgba(178,216,216,.18); }
.copy-code.is-done { color: #fff; background: var(--brand-primary); opacity: 1; }
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.55; }
.prose th, .prose td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-color); }
.prose th { background: var(--surface-soft); color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:hover { background: rgba(178,216,216,.12); }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.callout { padding: 1rem 1.25rem; border-radius: var(--radius-md); background: var(--surface-tint); border: 1px solid var(--border-color); }
.prose h2 .anchor, .prose h3 .anchor { margin-left: 0.4rem; opacity: 0; color: var(--brand-medium); font-weight: 400; transition: opacity .2s; text-decoration: none; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus { opacity: 1; }
@media (max-width: 640px) { .prose { font-size: 1.04rem; line-height: 1.72; } .prose pre { margin-inline: calc(var(--gutter) * -1); border-radius: 0; } }

.article-footer { display: grid; gap: 1.75rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-color); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share > span { margin-right: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.share-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--surface); color: var(--brand-deep); transition: all .2s; }
.share-btn:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; transform: translateY(-2px); }
.author-box { display: flex; gap: 1.1rem; padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); }
.author-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.author-name { font-weight: 700; font-size: 1.1rem; color: var(--brand-dark); }
.author-bio { margin-top: 0.35rem; color: var(--text-secondary); font-size: 0.95rem; }
.adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.adj { display: grid; gap: 0.35rem; padding: 1.1rem 1.25rem; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: var(--surface); transition: border-color .25s, transform .3s var(--ease); }
.adj:hover { border-color: var(--brand-primary); transform: translateY(-2px); }
.adj span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 700; color: var(--brand-primary); text-transform: uppercase; letter-spacing: 0.06em; }
.adj strong { color: var(--brand-dark); line-height: 1.35; }
.adj-next { text-align: right; } .adj-next span { justify-content: flex-end; }
@media (max-width: 560px) { .adjacent { grid-template-columns: 1fr; } .adj-next { text-align: left; } .adj-next span { justify-content: flex-start; } }

/* ---------- forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr); gap: 2rem; align-items: start; }
.form-card { padding: clamp(1.4rem, 1rem + 2vw, 2.25rem); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-md); }
.form-card .btn-block { margin-top: 1.5rem; }
.context-note { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-soft); font-size: 0.9rem; color: var(--text-secondary); }
.context-note a { color: var(--brand-primary); font-weight: 600; text-decoration: underline; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { display: grid; gap: 0.4rem; margin-top: 1.1rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--brand-dark); }
.optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-soft); font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23006666' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-primary); background: var(--surface); box-shadow: 0 0 0 4px rgba(0,128,128,.14); }
.field [aria-invalid="true"] { border-color: #C23B3B; background: #FFF8F8; }
.field-error { font-size: 0.85rem; font-weight: 600; color: #A12424; }
.contact-aside { display: grid; gap: 1rem; }
.aside-card { padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); }
.steps-mini { display: grid; gap: 0.9rem; margin-top: 1rem; counter-reset: s; }
.steps-mini li { position: relative; display: grid; padding-left: 2.6rem; counter-increment: s; }
.steps-mini li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-tint); color: var(--brand-primary); font-weight: 700; font-size: 0.85rem; }
.steps-mini span { font-size: 0.9rem; color: var(--text-secondary); }
.mail-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; font-weight: 600; color: var(--brand-primary); overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .field input, .field select, .field textarea { font-size: 16px; } }

.notice-page { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; padding-block: clamp(3rem, 2rem + 5vw, 6rem); text-align: center; }
.notice-page .page-lead { margin-inline: auto; }
.notice-page .inline-search { width: 100%; }
.error-code { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 2px var(--brand-medium); background: linear-gradient(180deg, var(--brand-light), transparent) text; -webkit-background-clip: text; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); color: rgba(220, 237, 237, 0.82); background: linear-gradient(170deg, var(--brand-dark), var(--brand-ink)); position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand-medium), transparent); animation: sweep 7s linear infinite; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr; gap: 2rem 2.5rem; }
.footer-brand p { margin-top: 1rem; max-width: 22rem; font-size: 0.94rem; }
.footer-social { display: flex; gap: 0.4rem; margin-top: 1.25rem; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(178,216,216,.2); color: var(--brand-light); transition: all .2s; }
.footer-social a:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.footer-col { display: grid; align-content: start; gap: 0.55rem; }
.footer-col h2 { margin-bottom: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-light); }
.footer-col a { width: fit-content; font-size: 0.94rem; transition: color .2s, transform .25s var(--ease); }
.footer-col > a:hover { color: #fff; transform: translateX(3px); }
.footer-col p { font-size: 0.92rem; }
.footer-col .btn { margin-top: 0.4rem; color: var(--brand-dark); }
.footer-phone a { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 24px; font-weight: 600; }
.footer-phone a:hover { color: #fff; }
.footer-topics { grid-template-columns: 1fr; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 3rem; padding-block: 1.3rem; border-top: 1px solid rgba(178,216,216,.14); font-size: 0.86rem; color: rgba(220,237,237,.6); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer-topics { grid-template-columns: 1fr 1fr; column-gap: 1rem; } .footer-topics h2 { grid-column: 1 / -1; } }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: clamp(1rem, 8vh, 6rem) var(--gutter) 1rem; background: rgba(4, 38, 38, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .2s ease; }
.search-panel { width: min(680px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); overflow: hidden; animation: dropIn .3s var(--ease); }
.search-form { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 1.2rem; border-bottom: 1px solid var(--border-color); }
.search-form > .icon { color: var(--brand-primary); width: 22px; height: 22px; }
.search-form input { flex: 1; min-width: 0; padding: 0.85rem 0; border: 0; outline: none; background: none; font-size: 1.12rem; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-results { overflow-y: auto; padding: 0.5rem; }
.search-hint { padding: 1rem; color: var(--text-muted); font-size: 0.92rem; }
.search-item { display: grid; gap: 0.2rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); transition: background-color .15s; }
.search-item:hover, .search-item:focus, .search-item.is-focus { background: var(--surface-soft); outline: none; }
.search-item small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-primary); }
.search-item strong { color: var(--brand-dark); }
.search-item span { font-size: 0.88rem; color: var(--text-secondary); }
.search-item mark { background: var(--brand-light); color: inherit; border-radius: 3px; padding: 0 2px; }
.search-all { display: flex; justify-content: center; gap: 0.4rem; margin: 0.25rem; padding: 0.8rem; border-radius: var(--radius-sm); background: var(--surface-soft); font-weight: 600; color: var(--brand-primary); }
.search-loading { display: grid; gap: 0.5rem; padding: 0.5rem; }
.search-loading i { height: 58px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-soft) 25%, var(--surface-tint) 37%, var(--surface-soft) 63%) 0 0 / 400% 100%; animation: shimmer 1.2s ease infinite; }
body.no-scroll { overflow: hidden; }

/* ---------- toast + consent ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 250; max-width: calc(100% - 2rem); padding: 0.7rem 1.15rem; border-radius: var(--radius-pill); background: var(--brand-dark); color: #fff; font-size: 0.92rem; box-shadow: var(--shadow-lg); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 240; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; max-width: 760px; margin-inline: auto; padding: 1rem 1.2rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); box-shadow: var(--shadow-lg); font-size: 0.92rem; animation: dropIn .4s var(--ease); }
.consent a { color: var(--brand-primary); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.5rem; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (max-width: 640px) { .js .reveal { transform: translateY(12px); transition-duration: .5s; } }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { to { transform: translateX(130%); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .35; } 100% { transform: scale(1.48); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { to { background-position: 36px 36px, 36px 36px; } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes navIn { from { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .hero-title .wi { opacity: 1; transform: none; }
  .js .hero-title .accent::after { transform: none; }
  .topic-track { animation: none; flex-wrap: wrap; width: auto; }
  .topic-set[aria-hidden="true"] { display: none; }
  .hero-canvas { display: none; }
}

@media print {
  .site-header, .site-footer, .toc, .share, .cta-band, .newsletter, .adjacent, .search-overlay, .consent, .staging-bar { display: none !important; }
  body { background: #fff; }
  .article-layout { display: block; padding: 0; }
  .prose a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}

/* ---------- Services (page, home section, footer) ---------- */
.services-hero .services-intro { max-width: 46rem; margin-top: 0.9rem; color: var(--text-secondary); font-size: 1.08rem; }
.services-hero .services-intro p { margin: 0 0 0.6rem; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); scroll-margin-top: 6rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.service-card:hover, .service-card:target { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.service-card h3 { font-size: 1.08rem; line-height: 1.35; margin: 0; }
.service-card > p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; }
.service-card .link-arrow { margin-top: auto; padding-top: 0.4rem; }
.service-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-primary); color: #fff; }
.service-icon .icon { width: 24px; height: 24px; }
.service-points { list-style: none; margin: 0.2rem 0 0.4rem; padding: 0; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.service-points li { display: flex; gap: 0.5rem; align-items: flex-start; }
.service-points .icon { flex: none; margin-top: 0.2rem; color: var(--brand-primary); }
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; counter-reset: none; }
.process li { padding: 1.4rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border-color); }
.process h3 { font-size: 1.05rem; margin: 0.5rem 0 0.4rem; }
.process p { margin: 0; color: var(--text-secondary); font-size: 0.93rem; }
.process-num { font-family: var(--font-mono); font-weight: 700; color: var(--brand-primary); font-size: 0.95rem; }
.home-services .service-card { padding: 1.3rem; }
.home-services .service-card > p { font-size: 0.92rem; }
.home-services-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
@media (max-width: 1024px) { .service-grid, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid, .process { grid-template-columns: 1fr; } }
