/* ==========================================================================
   Dia Account — public site styles
   ========================================================================== */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy-950: #051526;
  --navy-900: #071d33;
  --navy-800: #0b2a4a;
  --navy-700: #0f3a66;
  --blue: #005294;          /* logo blue */
  --blue-500: #0a66b5;
  --blue-300: #6db4ea;
  --blue-100: #e4eef7;
  --sage: #7a837a;          /* logo grey-green */
  --sage-600: #5c665d;
  --sage-200: #d5dad4;
  --sage-100: #eef0ec;
  --paper: #f6f7f4;
  --white: #ffffff;
  --ink: #12202d;
  --text: #2d3a47;
  --muted: #5b6773;
  --line: #dde2dd;
  --ok: #1d6b45;
  --ok-bg: #e7f3ec;
  --error: #a3261c;
  --error-bg: #fbeceb;

  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(7, 29, 51, .06), 0 2px 8px rgba(7, 29, 51, .05);
  --shadow-md: 0 8px 30px rgba(7, 29, 51, .10), 0 2px 6px rgba(7, 29, 51, .05);
  --shadow-lg: 0 24px 60px rgba(7, 29, 51, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 96px;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 2px; border-radius: 3px; }
main:focus { outline: none; }
::selection { background: var(--blue); color: #fff; }
[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; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--navy-800); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ------------------------------------------------------------- Typography */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); font-weight: 600; line-height: 1.18; letter-spacing: -.012em; text-wrap: balance; }
.h3 { font-size: 1.5rem; margin-bottom: 1.25rem; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 2.25rem; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--blue-300); }
.section-title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.625rem); max-width: 22em; }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* ---------------------------------------------------------------- Buttons */
.btn { --btn-bg: var(--blue); --btn-fg: #fff; --btn-hover: var(--navy-800); position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: .7rem; padding: .95rem 1.6rem; border: 0; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; letter-spacing: .01em; transition: color .35s var(--ease), box-shadow .35s var(--ease), transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-hover); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { color: var(--btn-fg); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-hover: var(--blue-100); }
.btn[disabled] { opacity: .65; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 1.05em; height: 1.05em; transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ----------------------------------------------------------------- Topbar */
.topbar { background: var(--navy-900); color: #c7d3df; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar-note { letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-links { display: flex; gap: 1.75rem; flex: none; }
.topbar-links a { display: inline-flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; transition: color .2s; }
.topbar-links a:hover { color: var(--blue-300); }
.topbar-links .icon { width: 1rem; height: 1rem; color: var(--blue-300); }

/* ----------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: box-shadow .3s var(--ease), border-color .3s; }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); } }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(7, 29, 51, .08); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.site-header.is-stuck .header-inner { min-height: 68px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: auto; max-height: 78px; object-fit: contain; object-position: left center; transition: max-height .3s var(--ease); }
.site-header.is-stuck .brand img { max-height: 54px; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; color: var(--sage); }
.brand-text strong { font-family: var(--font-sans); font-weight: 700; font-size: 2rem; letter-spacing: .02em; color: var(--blue); text-transform: lowercase; }
.brand-text span { font-size: .72rem; letter-spacing: .34em; margin-top: .2rem; }

.menu { display: flex; align-items: center; gap: .25rem; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-link { position: relative; display: inline-flex; align-items: center; gap: .35rem; padding: .75rem 1rem; background: none; border: 0; color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; border-radius: var(--radius); transition: color .2s; }
.menu-link > span { position: relative; padding-block: .2rem; }
.menu-link > span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.menu-link:hover, .menu-item.is-active > .menu-link { color: var(--blue); }
.menu-link:hover > span::after, .menu-item.is-active > .menu-link > span::after, .menu-item.is-open > .menu-link > span::after { transform: scaleX(1); transform-origin: left; }
.menu-chevron { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.menu-item.is-open .menu-chevron { transform: rotate(180deg); }
.submenu-toggle { background: none; border: 0; padding: .5rem; margin-left: -.75rem; color: var(--ink); border-radius: var(--radius); }

.submenu { position: absolute; top: 100%; left: 0; min-width: 270px; padding: .5rem; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.menu-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.submenu a { display: block; padding: .65rem .9rem; border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 500; transition: background .2s, color .2s, padding-left .25s var(--ease); }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--blue-100); color: var(--blue); padding-left: 1.15rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; margin-right: -.6rem; border-radius: var(--radius); }
.nav-toggle-box { display: block; position: relative; width: 26px; height: 18px; }
.nav-toggle-box span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle-box span:nth-child(1) { top: 0; }
.nav-toggle-box span:nth-child(2) { top: 8px; }
.nav-toggle-box span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
.nav-contact { display: none; }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: transparent; opacity: 0; transition: opacity .3s; }
.nav-backdrop.is-visible { opacity: 1; }

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  /* A backdrop-filter would turn the header into the containing block of the fixed mobile panel. */
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-links { gap: 1.25rem; }
  .brand img { max-height: 52px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 110; width: min(88vw, 380px); padding: calc(var(--header-h) + 1rem) 1.5rem 2rem; background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; display: flex; flex-direction: column; }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; box-shadow: 0 0 0 100vmax rgba(5, 21, 38, .55); }
  .nav-toggle { position: relative; z-index: 120; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu-link { flex: 1; justify-content: space-between; padding: 1rem .25rem; font-size: 1.125rem; border-radius: 0; }
  .menu-link > span::after { display: none; }
  .submenu-toggle { margin: 0; padding: 1rem .5rem; }
  .submenu { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 .75rem .75rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .menu-item.is-open > .submenu { display: block; }
  .submenu a { padding: .7rem .75rem; border-left: 2px solid var(--line); border-radius: 0; }
  .submenu a:hover, .submenu a[aria-current="page"] { border-left-color: var(--blue); background: none; }
  .nav-contact { display: grid; gap: .9rem; margin-top: auto; padding-top: 2rem; }
  .nav-contact a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 600; }
  .nav-contact .icon { color: var(--blue); }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .topbar-links span { font-size: .8125rem; }
  .topbar-links li:nth-child(2) span { display: none; }
  .topbar-links li:nth-child(2) a::after { content: "E-mail us"; font-size: .8125rem; }
}

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; color: #fff; background: var(--navy-900); overflow: hidden; }
.hero-slides { position: relative; display: grid; }
.hero-slide { grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(260px, 30vw, 380px); opacity: 0; visibility: hidden; transition: opacity .9s var(--ease), visibility 0s .9s; }
.hero--home .hero-slide { min-height: clamp(480px, 62vh, 680px); align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; z-index: 1; }
.hero-media { position: absolute; inset: -6% 0; background: radial-gradient(1000px 500px at 80% 30%, rgba(27, 127, 209, .5), transparent 60%), linear-gradient(135deg, var(--navy-900), var(--navy-700)); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero--home .hero-slide.is-active .hero-media img { animation: hero-zoom 14s linear both; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 21, 38, .88) 0%, rgba(5, 21, 38, .68) 42%, rgba(5, 21, 38, .18) 100%), linear-gradient(0deg, rgba(5, 21, 38, .55), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero--home .hero-content { padding-bottom: clamp(5.5rem, 10vw, 8rem); }
.hero-title { font-family: var(--font-serif); font-weight: 600; color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1.12; letter-spacing: -.015em; max-width: 17em; text-wrap: balance; }
.hero--home .hero-title { font-size: clamp(2.25rem, 1.1rem + 4.4vw, 4rem); max-width: 14em; }
.hero-text { margin-top: 1.25rem; max-width: 36em; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); line-height: 1.6; color: #d4deea; }
.hero-actions { margin-top: 2.25rem; }

.js .hero-slide .hero-title, .js .hero-slide .hero-text, .js .hero-slide .hero-actions, .js .hero-slide .breadcrumb { opacity: 0; transform: translateY(22px); }
.js .hero-slide.is-active .hero-title, .js .hero-slide.is-active .hero-text, .js .hero-slide.is-active .hero-actions, .js .hero-slide.is-active .breadcrumb { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .hero-slide.is-active .breadcrumb { transition-delay: .05s; }
.js .hero-slide.is-active .hero-title { transition-delay: .15s; }
.js .hero-slide.is-active .hero-text { transition-delay: .3s; }
.js .hero-slide.is-active .hero-actions { transition-delay: .45s; }

.breadcrumb { margin-bottom: 1.25rem; font-size: .9375rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .35rem .6rem; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .6rem; color: #b9c8d8; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, .4); }
.breadcrumb a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s; }
.breadcrumb a:hover { border-color: #fff; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3vw, 2.25rem); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-inline: auto; }
.hero-dots { display: flex; gap: .6rem; }
.hero-dot { position: relative; width: 56px; height: 24px; padding: 0; background: none; border: 0; }
.hero-dot span { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: rgba(255, 255, 255, .3); border-radius: 3px; overflow: hidden; transition: background .2s; }
.hero-dot:hover span { background: rgba(255, 255, 255, .55); }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { transform: scaleX(1); }
[data-slider].is-playing .hero-dot.is-active span::after { animation: dot-fill var(--slide-ms, 7000ms) linear both; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(5, 21, 38, .25); color: #fff; transition: background .25s, border-color .25s, color .25s; }
.hero-arrow:hover { background: #fff; border-color: #fff; color: var(--navy-800); }
.hero-arrow--prev .icon { transform: rotate(180deg); }
.hero-arrow .icon-play { display: none; }
.hero-arrow[data-paused="true"] .icon-play { display: block; }
.hero-arrow[data-paused="true"] .icon-pause { display: none; }

/* --------------------------------------------------------------- Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tint { background: var(--paper); border-block: 1px solid var(--line); }
.section--flush { padding: 0; }
.content-narrow { max-width: 860px; margin-inline: auto; }

/* Reveal on scroll (only when JS is available) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--reveal-delay, 0ms), transform .8s var(--ease) var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Prose */
.prose { max-width: 46em; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.3125rem; margin-top: 1.9em; }
.prose h4 { font-size: 1.125rem; margin-top: 1.6em; font-family: var(--font-sans); font-weight: 700; letter-spacing: 0; }
.prose > :first-child { margin-top: 0; }
.prose .lead { font-size: clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem); line-height: 1.55; color: var(--ink); font-family: var(--font-serif); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.6em; }
.prose ul > li::before { content: ""; position: absolute; left: .15em; top: .68em; width: .55em; height: .55em; border: 2px solid var(--blue); border-radius: 50%; }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--blue); font-weight: 700; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--blue); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .3s var(--ease), color .2s; }
.prose a:hover { background-size: 100% 2px; color: var(--navy-800); }
.prose a.button { display: inline-flex; padding: .85rem 1.5rem; border-radius: var(--radius); background: var(--blue); color: #fff; font-weight: 600; transition: background .25s; }
.prose a.button:hover { background: var(--navy-800); color: #fff; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--blue); font-family: var(--font-serif); font-size: 1.1875rem; color: var(--ink); }
.prose .note { padding: 1.1rem 1.35rem; background: var(--blue-100); border-left: 3px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose .img-left { float: left; max-width: min(45%, 360px); margin: .35em 1.75em 1em 0; }
.prose .img-right { float: right; max-width: min(45%, 360px); margin: .35em 0 1em 1.75em; }
.prose .img-center { margin-inline: auto; }
.prose .img-wide { width: 100%; }
.prose::after { content: ""; display: table; clear: both; }
.prose .text-center { text-align: center; }
.prose .text-right { text-align: right; }
.prose figure figcaption { margin-top: .6em; font-size: .9375rem; color: var(--muted); }
.prose--outro { margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { background: var(--navy-800); color: #fff; font-weight: 600; border-bottom: 0; }
.prose tbody tr:hover { background: var(--paper); }
@media (max-width: 600px) { .prose .img-left, .prose .img-right { float: none; max-width: 100%; margin: 1em 0; } }

/* ------------------------------------------------------------- Home/about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.about-main .section-title { margin-bottom: 1.75rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: calc(var(--header-h) + 2rem); }
.fact { position: relative; padding: clamp(1.4rem, 2.5vw, 2rem); background: #fff; transition: background .35s var(--ease); }
.fact::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.fact:hover { background: var(--paper); }
.fact:hover::after { transform: scaleX(1); }
.fact-value { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.1; color: var(--blue); letter-spacing: -.01em; }
.fact-label { margin-top: .6rem; font-size: .9375rem; line-height: 1.45; color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .facts { position: static; } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Cards */
.card-grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 980px) { .card-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .card-grid, .card-grid--3 { grid-template-columns: 1fr; } }

.service-card, .content-card { --mx: 50%; --my: 0%; position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(1.75rem, 3vw, 2.5rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.service-card::before, .content-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(10, 102, 181, .11), transparent 65%); opacity: 0; transition: opacity .4s; }
.service-card::after, .content-card::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue), var(--blue-300)); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.service-card:hover, .service-card:focus-within, .content-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before, .content-card:hover::before { opacity: 1; }
.service-card:hover::after, .service-card:focus-within::after, .content-card:hover::after { transform: scaleX(1); }
.service-card-num { position: absolute; right: 1.5rem; top: 1.1rem; font-family: var(--font-serif); font-size: 3.25rem; font-weight: 600; line-height: 1; color: var(--sage-100); transition: color .4s; user-select: none; }
.service-card:hover .service-card-num, .content-card:hover .service-card-num { color: var(--blue-100); }
.service-card-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 1.6rem; border-radius: 50%; background: var(--blue-100); color: var(--blue); transition: background .4s var(--ease), color .4s var(--ease), transform .5s var(--ease); }
.service-card-icon .icon { width: 28px; height: 28px; }
.service-card:hover .service-card-icon { background: var(--blue); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card-title { font-size: 1.4375rem; margin-bottom: .8rem; }
.service-card-title a { color: inherit; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card-text { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.service-card-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1.6rem; font-weight: 600; color: var(--blue); }
.service-card-more .icon { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.service-card:hover .service-card-more .icon { transform: translateX(6px); }
.content-card-title { font-size: 1.375rem; margin-bottom: .9rem; padding-right: 3.5rem; }
.content-cards { margin-top: 2.5rem; }

/* ----------------------------------------------------------------- Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); }
.value { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.value::before { content: ""; position: absolute; top: -1px; left: 0; width: 3rem; height: 3px; background: var(--blue); transition: width .5s var(--ease); }
.value:hover::before { width: 100%; }
.value-icon { display: inline-flex; color: var(--sage); margin-bottom: 1rem; transition: color .3s, transform .4s var(--ease); }
.value-icon .icon { width: 34px; height: 34px; }
.value:hover .value-icon { color: var(--blue); transform: translateY(-3px); }
.value-title { font-size: 1.375rem; margin-bottom: .6rem; }
.value-text { color: var(--muted); }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- CTA */
.cta { position: relative; overflow: hidden; background: var(--navy-800); color: #fff; }
.cta::before, .cta::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; pointer-events: none; }
.cta::before { width: 520px; height: 520px; right: -140px; top: -260px; }
.cta::after { width: 320px; height: 320px; right: -40px; top: -160px; border-color: rgba(109, 180, 234, .25); }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.cta-title { color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.375rem); }
.cta-text { margin-top: .75rem; max-width: 40em; color: #c9d5e2; }

/* -------------------------------------------------------------- Accordion */
.accordion { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.prose + .accordion { margin-top: 2.5rem; }
.accordion:first-child { margin-top: 0; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem .25rem; cursor: pointer; list-style: none; transition: color .2s; }
.acc-head::-webkit-details-marker { display: none; }
.acc-num { font-family: var(--font-serif); font-size: 1.0625rem; font-weight: 600; color: var(--sage); min-width: 1.75rem; transition: color .3s; }
.acc-title { flex: 1; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.625rem); transition: color .3s; }
.acc-head:hover .acc-title, .acc-item[open] .acc-title { color: var(--blue); }
.acc-item[open] .acc-num, .acc-head:hover .acc-num { color: var(--blue); }
.acc-icon { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; transition: background .3s, border-color .3s, transform .45s var(--ease); }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); transition: transform .45s var(--ease), background .3s; }
.acc-icon::after { transform: rotate(90deg); }
.acc-head:hover .acc-icon { border-color: var(--blue); }
.acc-item[open] .acc-icon { background: var(--blue); border-color: var(--blue); transform: rotate(180deg); }
.acc-item[open] .acc-icon::before, .acc-item[open] .acc-icon::after { background: #fff; }
.acc-item[open] .acc-icon::after { transform: rotate(0deg); }
.acc-body { overflow: hidden; }
.acc-body > .prose { padding: 0 .25rem 2rem calc(1.75rem + 1.5rem); }
@media (max-width: 600px) { .acc-body > .prose { padding-left: .25rem; } .acc-head { gap: .9rem; } }

.accordion + .prose--outro { border-top: 0; padding-top: 0; margin-top: 2.5rem; }

/* ------------------------------------------------------- Indexed sections */
.indexed { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.prose + .indexed { margin-top: 3rem; }
.indexed-nav { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.indexed-nav-title { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-600); margin-bottom: 1rem; }
.indexed-nav ol { border-left: 1px solid var(--line); }
.indexed-nav a { position: relative; display: flex; gap: .85rem; padding: .7rem 0 .7rem 1.25rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-weight: 500; line-height: 1.35; transition: color .25s, border-color .25s, padding-left .3s var(--ease); }
.indexed-nav a:hover { color: var(--ink); padding-left: 1.5rem; }
.indexed-nav a.is-current { color: var(--blue); border-left-color: var(--blue); font-weight: 600; }
.indexed-nav-num { font-family: var(--font-serif); font-size: .9375rem; color: var(--sage); }
.indexed-nav a.is-current .indexed-nav-num { color: var(--blue); }
.indexed-section { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.indexed-section:first-child { padding-top: 0; border-top: 0; }
.indexed-num { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1; color: var(--sage-200); transition: color .5s var(--ease); min-width: 1.6em; }
.indexed-section.is-current .indexed-num, .indexed-section:hover .indexed-num { color: var(--blue); }
.indexed-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 1rem; }
@media (max-width: 900px) {
  .indexed { grid-template-columns: 1fr; }
  .indexed-nav { position: static; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
  .indexed-nav a { padding-block: .5rem; }
}
@media (max-width: 520px) { .indexed-section { grid-template-columns: 1fr; gap: .5rem; } .indexed-num { font-size: 1.75rem; } }

/* --------------------------------------------------------------- Contacts */
.contact-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-grid--single { grid-template-columns: minmax(0, 640px); }
.contact-side { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-list { display: grid; gap: 1.6rem; }
.contact-list li { display: flex; gap: 1.1rem; }
.contact-list-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--blue); transition: background .3s, color .3s, border-color .3s; }
.contact-list li:hover .contact-list-icon { background: var(--blue); border-color: var(--blue); color: #fff; }
.contact-list-label { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-600); margin-bottom: .15rem; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--sage-200); transition: color .2s, border-color .2s; }
.contact-list a:hover { color: var(--blue); border-color: var(--blue); }
.contact-list a.link-arrow { margin-top: .4rem; border: 0; color: var(--blue); font-size: .9375rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: .4rem; font-weight: 600; font-size: .9375rem; color: var(--ink); }
.field .req { color: var(--error); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: .85rem 1rem; background: #fff; border: 1px solid #c3cbc5; border-radius: var(--radius); font-size: 1rem; line-height: 1.5; transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 9rem; }
.field input:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10, 102, 181, .18); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); }
.field-error { margin-top: .35rem; font-size: .875rem; color: var(--error); }
.form-note { font-size: .875rem; color: var(--muted); line-height: 1.5; }
.contact-form .btn { justify-self: start; }
.form-status { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 500; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b9dcc8; }
.form-status.is-error { background: var(--error-bg); color: var(--error); border: 1px solid #efc4c0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* -------------------------------------------------------------------- Map */
.map { position: relative; height: clamp(320px, 45vw, 480px); background: var(--sage-100); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map--wide { border-radius: 0; border-inline: 0; border-bottom: 0; }
.prose .map { margin-block: 2rem; }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; background:
  linear-gradient(rgba(246, 247, 244, .86), rgba(246, 247, 244, .86)),
  repeating-linear-gradient(0deg, transparent 0 59px, var(--sage-200) 59px 60px),
  repeating-linear-gradient(90deg, transparent 0 59px, var(--sage-200) 59px 60px),
  linear-gradient(115deg, transparent 0 46%, #fff 46% 49%, transparent 49% 100%),
  linear-gradient(28deg, transparent 0 60%, #fff 60% 62.5%, transparent 62.5% 100%),
  var(--sage-100); }
.map-placeholder-inner { display: grid; justify-items: center; gap: .9rem; max-width: 30rem; }
.map-pin { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 0 0 10px rgba(10, 102, 181, .14); animation: pin-pulse 2.6s var(--ease) infinite; }
.map-pin .icon { width: 26px; height: 26px; }
@keyframes pin-pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(10, 102, 181, .16); } 50% { box-shadow: 0 0 0 18px rgba(10, 102, 181, 0); } }
.map-address { font-weight: 600; color: var(--ink); }
.map-note { font-size: .8125rem; color: var(--muted); line-height: 1.45; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--navy-950); color: #aebccb; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); }
.footer-brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: .9rem; }
.footer-text { max-width: 28em; line-height: 1.65; }
.footer-text a { color: #fff; }
.footer-heading { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.2rem; }
.footer-nav ul { display: grid; gap: .6rem; }
.site-footer a { color: #d5dfea; text-decoration: none; transition: color .2s, padding-left .3s var(--ease); }
.footer-nav a:hover { color: #fff; padding-left: .4rem; }
.footer-contact ul { display: grid; gap: .95rem; }
.footer-contact li { display: flex; gap: .8rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .25rem; color: var(--blue-300); }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.footer-social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; transition: background .25s, border-color .25s; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-bottom { padding-block: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: #8597a9; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Back to top */
.to-top { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom, 0px)); z-index: 80; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--navy-800); box-shadow: var(--shadow-md); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), background .25s, color .25s; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-800); color: #fff; }
.to-top .icon { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.to-top:hover .icon { transform: translateY(-3px); }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.to-top-ring .to-top-progress { stroke: var(--blue); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--progress, 0)); stroke-linecap: round; }
.to-top:hover .to-top-ring circle:first-child { stroke: transparent; }
.to-top:hover .to-top-progress { stroke: var(--blue-300); }

/* ------------------------------------------------------ Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero-slide .hero-title, .js .hero-slide .hero-text, .js .hero-slide .hero-actions, .js .hero-slide .breadcrumb { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Print */
@media print {
  .topbar, .site-header, .hero-controls, .to-top, .cta, .map, .contact-form, .nav-backdrop, .indexed-nav { display: none !important; }
  .hero { background: none; color: #000; }
  .hero-media, .hero-shade { display: none; }
  .hero-title, .hero-text, .breadcrumb li, .breadcrumb a { color: #000 !important; }
  .hero-slide { min-height: 0 !important; }
  .hero-slide:not(.is-active) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .acc-item > .acc-body { display: block; }
  .site-footer { background: none; color: #000; }
  .site-footer a, .footer-brand, .footer-heading { color: #000; }
  .indexed { grid-template-columns: 1fr; }
}
