/* ==========================================================================
   Wisdom InfoTech — V7 design system: navy, ice blue and paper
   Paper and soft grey-blue surfaces, navy bands (header, call-to-action, footer), ice-blue accents,
   steel-blue highlights. Fraunces serif headlines with Inter for text.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --sand: #e9eff4;
  --sand-2: #dce5ec;
  --line: #d9e1e8;
  --line-strong: #c4d0dc;

  --ink: #10243c;
  --ink-hover: #0b1a2d;
  --deep-navy: #0b1a2d;
  --ice: #bddbf0;
  --primary: #10243c;
  --primary-hover: #0b1a2d;
  --blue-soft: #dcebf7;
  --text: #526479;
  --muted: #637185;

  --accent: #6f93b3;
  --accent-ink: #4f7393; /* highlight text (steel blue) */
  --orange-ink: #10243c;
  --accent-soft: #e2eff9;
  --navy-soft: #dcebf7;
  --success: #2c7a4b;
  --danger: #b42318;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-sm: 0 1px 2px rgba(20, 32, 63, .06);
  --shadow: 0 1px 2px rgba(20, 32, 63, .04), 0 14px 34px -16px rgba(20, 32, 63, .18);
  --shadow-lg: 0 2px 6px rgba(20, 32, 63, .05), 0 30px 70px -28px rgba(20, 32, 63, .32);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 80px;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.68; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: rgba(85, 122, 152, .4); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; }
address { font-style: normal; }
::selection { background: var(--blue-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: calc(780px + var(--gutter) * 2); }
.container-mid { max-width: calc(960px + var(--gutter) * 2); }
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); position: relative; }
.section-soft, .section-sand { background: var(--sand); }
.section-line { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 18px; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head-row .section-head { margin-bottom: 0; }
.intro-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 6vw, 64px); }

.grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-lg { gap: clamp(32px, 5vw, 64px); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split-wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split-form { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.measure { max-width: 64ch; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.center { text-align: center; }
@media (max-width: 960px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-wide, .split-form, .intro-split { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.display-serif, .h1, .h2, .h2-serif, .h3-serif, .quote blockquote, .not-found-code, .footer-wordmark, .stat-num, .clock, .tile-title {
  font-family: var(--serif); font-optical-sizing: auto;
}
.display-serif { font-size: clamp(3rem, 6.6vw, 5.75rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; color: var(--ink); }
.h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 400; line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance; }
.h2, .h2-serif { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; }
.h3-lg { font-size: 1.45rem; }
.h3-serif { font-size: 1.45rem; font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; }
.h4 { font-size: 1.05rem; font-weight: 600; }
.display-serif em, .h1 em, .h2 em, .h2-serif em { font-weight: 400; color: var(--accent-ink); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.62; color: var(--text); max-width: 60ch; }
.section-head.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hl, .grad-text { color: var(--accent-ink); font-style: italic; }

.eyebrow, .section-label, .kicker, .card-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow { margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.eyebrow-sm { margin-bottom: 10px; }
.section-label { margin: 0 0 22px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.kicker { flex-wrap: wrap; row-gap: 8px; margin: 0 0 26px; color: var(--muted); letter-spacing: .1em; }
.kicker span { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--orange-ink); letter-spacing: .08em; white-space: nowrap; }
.card-kicker { display: block; margin: 0; font-size: 11.5px; }

.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--btn-h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.i-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary, .btn-dark { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(16, 36, 60, .2); }
.btn-primary:hover, .btn-dark:hover { background: var(--primary-hover); color: #fff; box-shadow: 0 12px 28px -12px rgba(16, 36, 60, .45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); background: rgba(16, 36, 60, .04); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { color: var(--ink); border-color: var(--ink); }
.btn-outline-light { background: transparent; color: var(--ink); border-color: rgba(20, 32, 63, .25); }
.btn-outline-light:hover { color: var(--ink); border-color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.btn-text, .link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15.5px; color: var(--ink); text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat;
  padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s var(--ease);
}
.btn-text:hover, .link-arrow:hover { background-size: 100% 1px; color: var(--ink); }
.btn-text svg, .link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn-text:hover svg, .link-arrow:hover svg, .card-link:hover .link-arrow svg { transform: translateX(3px); }
.link-arrow { color: var(--accent-ink); font-size: 15px; }
.link-btn { border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* --------------------------------------------------------------------------
   Small components
   -------------------------------------------------------------------------- */
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; line-height: 1; background: var(--sand-2); color: var(--ink); }
.tag-brand { background: var(--navy-soft); color: var(--ink); }
.tag-accent { background: var(--accent-soft); color: var(--orange-ink); }
.tag-outline { background: transparent; border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.icon-tile { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--sand); color: var(--ink); border: 1px solid var(--line); }
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile-sm { width: 38px; height: 38px; border-radius: 11px; }
.icon-tile-sm svg { width: 18px; height: 18px; }
.icon-tile-accent { background: var(--accent-soft); color: var(--orange-ink); border-color: #c9dff0; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310243c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist-inline { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.checklist-inline li { font-size: 15px; font-weight: 500; color: var(--ink); align-items: center; }
.checklist-inline li::before { margin-top: 0; }

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.card .h3 + p, .card .h4 + p, .card .h3-serif + p { margin-top: 8px; }
.card-soft { background: var(--sand); }
.card-link { color: inherit; transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease); }
.card-link:hover { color: inherit; border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-3px); }
.card-link .stretched { color: inherit; text-decoration: none; }
.card-link .stretched::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card-featured { border-color: var(--ink); box-shadow: var(--shadow); }
.card-badge { position: absolute; top: 24px; right: 24px; }
.card-foot { margin-top: auto; padding-top: 20px; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.media-frame { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--sand-2); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.ratio-4-3 { aspect-ratio: 4 / 3; }

.callout { padding: 24px 28px; border-radius: var(--radius-lg); background: var(--sand); border-left: 3px solid var(--accent); }
.callout .h4 { color: var(--ink); margin-bottom: 6px; }
.callout-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }

/* --------------------------------------------------------------------------
   Header & navigation (same menu as the live site)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(20, 32, 63, .35); }
main { padding-top: var(--header-h); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; transition: height .3s var(--ease); }
.site-header.is-scrolled .header-inner { height: 66px; }
.brand { flex: none; display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.site-header.is-scrolled .brand img { height: 38px; }

.nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  height: 44px; padding: 0 12px; border: 0; background: none; text-decoration: none;
  font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap;
  transition: color .2s var(--ease);
}
.nav-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-item.is-open > .nav-link, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-item.is-open > .nav-link::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link .chev { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.nav-item.is-open > .nav-link .chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute; top: calc(100% + 8px); left: 50%; z-index: 60; min-width: 340px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-item.is-open > .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
@media (hover: hover) and (min-width: 1201px) { .nav-item:hover > .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; } }
.nav-panel-mega { width: 640px; }
.mega-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.mega-grid-1 { grid-template-columns: 1fr; }
.panel-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background-color .15s var(--ease); }
.panel-link:hover, .panel-link.is-active { background: var(--sand); color: var(--ink); }
.panel-link .icon-tile { width: 34px; height: 34px; border-radius: 9px; }
.panel-link .icon-tile svg { width: 16px; height: 16px; }
.panel-link-title { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.panel-link-desc { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 14px 12px 6px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; padding-left: 18px; border-left: 1px solid var(--line-strong); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--ink); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }
@media (max-width: 1280px) {
  .nav-link { padding: 0 9px; font-size: 14.5px; }
  .nav-link::after { left: 9px; right: 9px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1200px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand img, .site-header.is-scrolled .brand img { height: 36px; }
}

/* Drawer */
dialog { color: inherit; }
.drawer { margin: 0 0 0 auto; padding: 0; border: 0; width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw; background: var(--bg); box-shadow: var(--shadow-lg); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .35s var(--ease); }
.drawer::backdrop { background: rgba(20, 32, 63, .35); }
@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 20px; border-bottom: 1px solid var(--line); }
.drawer-head img { height: 34px; width: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px 24px; }
.drawer-list { list-style: none; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-link, .drawer-group summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; text-decoration: none; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary .chev { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.drawer-group[open] summary .chev { transform: rotate(180deg); }
.drawer-sub { list-style: none; padding: 0 0 12px; }
.drawer-sub a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--text); text-decoration: none; }
.drawer-sub a:hover { background: var(--sand); color: var(--ink); }
.drawer-foot { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.drawer-contact { display: grid; gap: 6px; font-size: 14px; }
.drawer-contact a { color: var(--text); display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }
.drawer-contact svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Backgrounds
   -------------------------------------------------------------------------- */
.bg-glow { position: relative; isolation: isolate; overflow: hidden; }
.bg-glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(700px 380px at 90% -10%, rgba(189, 219, 240, .45), transparent 70%), radial-gradient(500px 300px at 0% 0%, rgba(16, 36, 60, .04), transparent 70%);
}

/* --------------------------------------------------------------------------
   Editorial hero (home)
   -------------------------------------------------------------------------- */
.hero-ed { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero-ed::before { content: ''; position: absolute; inset: 0 0 auto auto; width: 46%; height: 78%; z-index: -1; background: radial-gradient(closest-side, rgba(140, 185, 225, .3), transparent); }
.hero-ed-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-ed .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.hero-figure { position: relative; margin: 0; padding: 0 0 28px 28px; }
.hero-figure::before { content: ''; position: absolute; left: 0; bottom: 0; top: 40px; right: 40px; border-radius: var(--radius-xl); background: var(--sand-2); }
.hero-photo { aspect-ratio: 1 / 1.05; box-shadow: var(--shadow-lg); }
.hero-caption {
  position: absolute; left: 0; bottom: 56px; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 40px);
  padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; color: var(--text); line-height: 1.4;
}
.hero-caption strong { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.hero-caption [data-clock] { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-dot { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--success); }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--success); opacity: .35; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.stats-ed { margin-top: clamp(56px, 8vw, 96px); }
.stats-ed .stats { border-top: 1px solid var(--line); padding-top: 32px; }
@media (max-width: 960px) {
  .hero-ed-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-figure { max-width: 560px; }
}
@media (max-width: 560px) {
  .hero-figure { padding: 0 0 20px 14px; }
  .hero-caption { bottom: 36px; }
}

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { display: block; font-size: clamp(2.6rem, 5vw, 3.9rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.stat-num .unit { color: var(--accent); }
.stat-label { display: block; margin-top: 14px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.stat-sub { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   Logo marquee
   -------------------------------------------------------------------------- */
.logo-strip { padding-block: 32px; border-block: 1px solid var(--line); overflow: hidden; }
.logo-strip-inner { display: flex; align-items: center; gap: 24px 48px; }
.logo-strip-label { flex: none; max-width: 200px; margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
/* The fade mask isolates the marquee, so give it the page colour for the logos' multiply blend to work against. */
.marquee { flex: 1; min-width: 0; overflow: hidden; background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee img, .logo-row img { height: 40px; width: auto; filter: grayscale(1); mix-blend-mode: multiply; opacity: .7; transition: opacity .25s var(--ease), filter .25s var(--ease); }
.marquee img:hover { opacity: 1; filter: none; }
.logo-text { flex: none; font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 500; color: var(--ink); opacity: .7; white-space: nowrap; }
@media (max-width: 760px) {
  .logo-strip-inner { flex-direction: column; text-align: center; }
  .logo-strip-label { max-width: none; }
  .marquee { width: 100%; }
}

/* --------------------------------------------------------------------------
   Services grid (home) — hairline editorial grid
   -------------------------------------------------------------------------- */
.service-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-grid > li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-tile { display: flex; flex-direction: column; height: 100%; padding: 32px 30px 30px; color: var(--text); text-decoration: none; transition: background-color .3s var(--ease); }
.service-tile:hover { background: var(--surface); color: var(--text); }
.tile-top { display: flex; align-items: center; margin-bottom: 26px; }
.tile-icon { color: var(--ink); opacity: .75; }
.tile-icon svg { width: 24px; height: 24px; }
.tile-title { font-size: 1.55rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.tile-desc { margin-top: 12px; font-size: 15.5px; }
.tile-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; font-size: 14.5px; font-weight: 600; color: var(--accent-ink); }
.tile-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.service-tile:hover .tile-more svg { transform: translateX(4px); }
@media (max-width: 960px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: minmax(0, 1fr); } .service-tile { padding: 26px 22px; } }

/* Dual-shore clocks */
.clock-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 36px 0 0; }
.clock-pair > div { padding-top: 18px; border-top: 2px solid var(--ink); }
.clock-pair dt { font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.clock-pair dd { margin: 0; }
.clock { margin-top: 6px !important; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.clock-note { margin-top: 4px !important; font-size: 14px; color: var(--text); }
@media (max-width: 420px) { .clock-pair { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 88px); }
.principle { padding: 32px 0 36px; border-top: 1px solid var(--line); }
.principle .h3-serif { font-size: 1.65rem; margin-bottom: 10px; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

/* Feature card (AugRay) */
.feature-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.feature-card-media { position: relative; min-height: 440px; }
.feature-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-card-copy { padding: clamp(32px, 5vw, 60px); }
.feature-card-copy p { margin-top: 18px; }
.feature-card-copy .checklist { margin-top: 24px; color: var(--ink); }
@media (max-width: 960px) {
  .feature-card { grid-template-columns: minmax(0, 1fr); }
  .feature-card-media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* --------------------------------------------------------------------------
   Service cards (hub + related)
   -------------------------------------------------------------------------- */
.service-card { min-height: 100%; }
.service-card .icon-tile { margin-bottom: 24px; }
.service-card .h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.015em; }
.service-card p { font-size: 15.5px; margin-top: 10px; }
.service-hub-card { padding: 0; overflow: hidden; }
.service-hub-card .card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand-2); }
.service-hub-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-hub-card:hover .card-media img { transform: scale(1.04); }
.service-hub-card .card-body { padding: 0 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-hub-card .icon-tile { margin-top: -26px; margin-bottom: 20px; background: var(--surface); box-shadow: var(--shadow-sm); position: relative; }
.service-hub-card .h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.pillar { padding: 32px; }
.pillar .icon-tile { margin-bottom: 22px; }
.pillar p { margin-top: 10px; font-size: 16px; }
.pillar .tag { margin-top: 20px; align-self: flex-start; }
.pillar .h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }

/* --------------------------------------------------------------------------
   Case studies
   -------------------------------------------------------------------------- */
.case-card { padding: 0; overflow: hidden; }
.case-card .card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-2); }
.case-card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case-card:hover .card-media img { transform: scale(1.04); }
.case-card .card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.case-card .h3-serif { margin-top: 10px; font-size: 1.3rem; }
.case-card p { margin-top: 10px; font-size: 15.5px; }
.case-card .tags { margin-bottom: 4px; }
.case-card .h3 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.case-result { display: flex; gap: 10px; align-items: flex-start; margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.case-result svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.case-full { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.case-full:first-child { border-top: 0; padding-top: 0; }
.case-full .media-frame { aspect-ratio: 4 / 3; }
.case-full-aside .tags { margin-top: 12px; }
.case-full .h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-top: 16px; }
.case-full .lead { margin-top: 14px; }
.case-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.case-block .h4 { margin-bottom: 8px; }
.case-block p { font-size: 15.5px; }
.case-results { margin-top: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--sand); }
.case-results .h4 { margin-bottom: 14px; }
.case-results .checklist { font-size: 15.5px; color: var(--ink); }
@media (max-width: 960px) { .case-full { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .case-blocks { grid-template-columns: 1fr; } }

/* Testimonial */
.quote { max-width: 960px; margin: 0 auto; text-align: center; }
.quote-mark { display: block; width: 46px; height: 46px; margin: 0 auto 26px; color: var(--accent); }
.quote-mark svg { width: 100%; height: 100%; }
.quote blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.35rem); font-weight: 400; font-style: italic; letter-spacing: -0.015em; line-height: 1.32; color: var(--ink); text-wrap: balance; }
.quote figcaption { margin-top: 28px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { display: block; font-size: 16px; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-ink); }
.faq-plus { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--blue-soft); border-color: var(--primary); }
.faq-a { padding: 0 48px 24px 0; }

/* CTA panel */
.cta-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 48px; align-items: center;
  padding: clamp(40px, 7vw, 88px); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #e6f0ff 0%, #f2f7ff 60%, #fff3ea 100%); border: 1px solid var(--line); color: var(--text);
}
.cta-panel::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; z-index: -1; border-radius: 50%; border: 1px solid rgba(29, 78, 216, .16); box-shadow: 0 0 0 60px rgba(29, 78, 216, .045), 0 0 0 120px rgba(29, 78, 216, .03); }
.cta-panel .h2 { color: var(--ink); }
.cta-panel .lead { margin-top: 16px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.cta-panel .btn-light { background: var(--primary); color: #fff; border-color: var(--primary); }
.cta-panel .btn-light:hover { background: var(--primary-hover); color: #fff; }
.cta-points { margin-top: 24px; }
.cta-points li { color: var(--ink); }
@media (max-width: 860px) { .cta-panel { grid-template-columns: minmax(0, 1fr); } .cta-actions { min-width: 0; } }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.page-hero .h1 { margin-top: 4px; max-width: 18ch; }
.page-hero .h1.wide { max-width: 22ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .hero-actions { margin-top: 34px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.page-hero-media { position: relative; padding: 0 0 22px 22px; }
.page-hero-media::before { content: ''; position: absolute; left: 0; bottom: 0; top: 32px; right: 32px; border-radius: var(--radius-xl); background: var(--sand-2); }
.page-hero-media .media-frame { aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.page-hero-media .icon-tile { position: absolute; left: 0; bottom: 44px; width: 64px; height: 64px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.page-hero-media .icon-tile svg { width: 28px; height: 28px; }
@media (max-width: 960px) { .page-hero-split { grid-template-columns: minmax(0, 1fr); } .page-hero-media { max-width: 600px; } }

.breadcrumbs { margin-bottom: 28px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   Service detail
   -------------------------------------------------------------------------- */
.side-card { padding: 32px; border-radius: var(--radius-xl); background: var(--surface); }
.side-card .h3 { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; margin-bottom: 20px; }
.side-card .checklist { font-size: 15.5px; color: var(--ink); }
.side-card-cta { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.side-card-cta p { font-size: 15px; margin-bottom: 14px; }
.list-cards { display: grid; gap: 10px; }
.list-card { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15.5px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.list-card .icon-tile { width: 34px; height: 34px; border-radius: 10px; }
.list-card .icon-tile svg { width: 16px; height: 16px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line-strong); }
.step::before { content: ''; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--accent); }
.step .h4 { margin-bottom: 8px; }
.step p { font-size: 15.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin-inline: auto; }
.tech-cloud .tag { height: 42px; padding: 0 18px; font-size: 14.5px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); }
.skills-toolbar { display: grid; gap: 16px; margin-bottom: 32px; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field .input { padding-left: 48px; height: 54px; border-radius: 999px; }
.chip-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tab { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--text); transition: all .15s var(--ease); }
.skill-tab:hover { border-color: var(--ink); color: var(--ink); }
.skill-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-skill-card { padding: 22px; }
.app-skill-card .tag { align-self: flex-start; height: 24px; font-size: 11.5px; }
.app-skill-card .h4 { margin-top: 14px; }
.app-skill-card p { font-size: 14.5px; margin-top: 6px; }
.app-skill-card .tags { margin-top: 14px; gap: 6px; }
@media (max-width: 960px) { .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .skills-grid { grid-template-columns: minmax(0, 1fr); } }
.tech-matrix-card { padding: 26px; transition: opacity .2s var(--ease); }
.tech-matrix-card .card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tech-item-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.tech-item-row:first-child { border-top: 0; padding-top: 0; }
.tech-item-name { color: var(--ink); font-weight: 600; }
.tech-item-note { color: var(--muted); }

/* --------------------------------------------------------------------------
   About, offices, awards, careers
   -------------------------------------------------------------------------- */
.overlay-card { position: relative; margin: -72px 24px 0 auto; max-width: 420px; padding: 26px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.overlay-card .h4 { margin-bottom: 14px; }
.overlay-card .checklist { font-size: 15px; gap: 10px; }
@media (max-width: 560px) { .overlay-card { margin: -40px 12px 0; } }
.office-card { padding: 0; overflow: hidden; }
.office-card .card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.office-card .tag { align-self: flex-start; }
.office-card .h3 { margin-top: 14px; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.office-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.office-lines { list-style: none; display: grid; gap: 10px; margin-top: 20px; font-size: 15px; }
.office-lines li { display: flex; gap: 12px; align-items: flex-start; }
.office-lines svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent-ink); }
.office-lines a { font-weight: 500; }
.office-map { aspect-ratio: 16 / 7; background: var(--sand-2); border-top: 1px solid var(--line); }
.office-map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.2); }
.logo-tile { display: grid; place-items: center; height: 120px; margin-bottom: 22px; border-radius: var(--radius); background: var(--sand); }
.logo-tile img { max-height: 56px; width: auto; mix-blend-mode: multiply; }
.logo-tile img.logo-boxed { mix-blend-mode: normal; border-radius: 6px; }
.award-card .tags { margin-bottom: 12px; }
.award-card .h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.award-card p { font-size: 15.5px; margin-top: 8px; }
.job { padding: 0; }
.job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 26px 28px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-meta svg { width: 16px; height: 16px; }
.jobs-empty { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 28px; padding: 32px; }
.jobs-empty > div { flex: 1 1 320px; }
.jobs-empty .h3 { margin-bottom: 8px; }
.jobs-empty .icon-tile { flex: none; }
.job .h3 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.job details { border-top: 1px solid var(--line); }
.job summary { display: flex; align-items: center; gap: 8px; padding: 16px 28px; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 600; color: var(--accent-ink); }
.job summary::-webkit-details-marker { display: none; }
.job summary svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.job details[open] summary svg { transform: rotate(180deg); }
.job-body { padding: 0 28px 28px; font-size: 15.5px; }
.job-body .h4 { margin: 20px 0 12px; font-size: 15px; }
.job-body .checklist { gap: 10px; }
@media (max-width: 640px) { .job-head { flex-direction: column; } }

/* --------------------------------------------------------------------------
   Forms & dialogs
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.label { font-size: 14px; font-weight: 600; color: var(--ink); }
.label .req { color: var(--accent-ink); }
.input { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); font-size: 15.5px; color: var(--ink); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.input::placeholder { color: #9aa1b2; }
.input:hover { border-color: #b4bccc; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea.input { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
select.input { -webkit-appearance: none; appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7287' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.input.is-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 4px #fde4e1; }
.field-error { display: none; font-size: 13px; color: var(--danger); }
.field.has-error .field-error { display: block; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-status { display: none; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: #fdecea; color: var(--danger); }
.form-status.is-visible { display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.success-state { text-align: center; padding: 16px 0; }
.success-state:focus { outline: none; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: #e3f2e8; color: var(--success); }
.success-icon svg { width: 28px; height: 28px; }
.success-state .h3 { margin-bottom: 10px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.success-state p { font-size: 15.5px; max-width: 46ch; margin-inline: auto; }
.success-state .btn { margin-top: 20px; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); }
.form-card .h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.form-card > p { margin-top: 10px; margin-bottom: 28px; }

.modal { padding: 0; border: 0; background: transparent; width: min(640px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgba(20, 32, 63, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] .modal-card { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-card { background: var(--bg); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 24px); overflow-y: auto; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 28px 0; }
.modal-head .h3 { margin-top: 12px; font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: -0.02em; }
.modal-head p { font-size: 15px; margin-top: 8px; }
.modal-body { padding: 24px 28px 28px; }
@media (max-width: 560px) { .modal-head { padding: 22px 20px 0; } .modal-body { padding: 20px; } }
.search-modal { width: min(680px, calc(100vw - 24px)); margin-top: 10vh; }
.search-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.search-head > svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-input { flex: 1; height: 48px; border: 0; outline: none; background: transparent; font-size: 17px; color: var(--ink); }
.search-input::-webkit-search-cancel-button { display: none; }
.search-body { padding: 16px 20px 20px; max-height: 60vh; overflow-y: auto; }
.search-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-tags .label { font-weight: 500; color: var(--muted); margin-right: 4px; }
.search-tags button { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 13.5px; color: var(--text); }
.search-tags button:hover { border-color: var(--ink); color: var(--ink); }
.search-results { margin-top: 16px; }
.search-empty { padding: 24px 4px; color: var(--muted); font-size: 15px; }
.search-hit { display: block; padding: 14px; margin: 0 -14px; border-radius: 12px; color: inherit; text-decoration: none; }
.search-hit:hover, .search-hit:focus-visible { background: var(--sand); color: inherit; }
.search-hit .tag { height: 22px; font-size: 11.5px; padding: 0 8px; }
.search-hit-title { display: block; margin-top: 8px; font-weight: 600; color: var(--ink); }
.search-hit-desc { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { position: relative; overflow: hidden; background: var(--sand); border-top: 1px solid var(--line); padding-top: clamp(64px, 9vw, 104px); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 46px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--ink); background: var(--surface); text-decoration: none; }
.socials a:hover { border-color: var(--ink); color: var(--ink); }
.socials svg { width: 16px; height: 16px; }
.footer-title { font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); }
.footer-office + .footer-office { margin-top: 20px; }
.footer-office strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.footer-office p { font-size: 14.5px; line-height: 1.55; }
.footer-wordmark { margin-top: clamp(48px, 7vw, 80px); font-weight: 400; font-style: italic; font-size: clamp(4rem, 20vw, 16rem); letter-spacing: -0.04em; line-height: .8; text-align: center; white-space: nowrap; color: transparent; background: linear-gradient(180deg, rgba(29, 78, 216, .16), rgba(29, 78, 216, 0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--ink); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 */
.not-found { text-align: center; max-width: 720px; margin-inline: auto; }
.not-found-code { display: block; font-size: clamp(7rem, 22vw, 13rem); font-weight: 400; font-style: italic; letter-spacing: -0.05em; line-height: .85; color: var(--accent); }
.not-found .h1 { margin-inline: auto; }
.not-found .lead { margin: 20px auto 0; }
.not-found .hero-actions { justify-content: center; }
.pop-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 48px; text-align: left; }
.pop-links a { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.pop-links a:hover { border-color: var(--ink); }
.pop-links svg { width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 560px) { .pop-links { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Motion — scroll reveal only applies with scripting on, so no inline <script> is needed (strict CSP).
   -------------------------------------------------------------------------- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: .08s; }
  .reveal-d2 { transition-delay: .16s; }
  .reveal-d3 { transition-delay: .24s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ==========================================================================
   Navy bands — header, call-to-action and footer use the navy/ice palette
   ========================================================================== */
.site-header { background: rgba(16, 36, 60, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-scrolled { background: var(--ink); border-bottom-color: rgba(255, 255, 255, .08); box-shadow: 0 12px 30px -18px rgba(11, 26, 45, .6); }
.site-header .nav-link { color: #e2eff9; }
.site-header .nav-link:hover, .site-header .nav-item.is-open > .nav-link, .site-header .nav-link.is-active { color: #fff; }
.site-header .nav-link::after { background: var(--ice); }
.site-header .header-actions { border-left-color: rgba(255, 255, 255, .16); }
.site-header .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.site-header .icon-btn:hover { border-color: var(--ice); color: var(--ice); }
.site-header .btn-primary { background: var(--ice); color: var(--ink); box-shadow: none; }
.site-header .btn-primary:hover { background: #d1e6f5; color: var(--ink); box-shadow: none; }

.cta-panel { background: var(--ink); border-color: var(--ink); color: #d1deea; }
.cta-panel::before { border-color: rgba(189, 219, 240, .18); box-shadow: 0 0 0 60px rgba(189, 219, 240, .05), 0 0 0 120px rgba(189, 219, 240, .03); }
.cta-panel .h2 { color: #fff; }
.cta-panel .lead { color: #d1deea; }
.cta-panel .btn-light { background: var(--ice); border-color: var(--ice); color: var(--ink); }
.cta-panel .btn-light:hover { background: #d1e6f5; border-color: #d1e6f5; color: var(--ink); }
.cta-panel .btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-panel .btn-outline-light:hover { color: #fff; border-color: #fff; }
.cta-points li { color: #fff; }
.cta-points li::before { background-color: rgba(189, 219, 240, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bddbf0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

.site-footer { background: var(--deep-navy); border-top-color: var(--deep-navy); color: #b7c7d6; }
.site-footer strong { color: #fff; }
.site-footer a { color: #d1deea; text-decoration-color: rgba(189, 219, 240, .35); }
.site-footer a:hover { color: #fff; }
.footer-brand p, .footer-office p { color: #b7c7d6; }
.footer-title { color: #8fa6bb; }
.footer-links a { color: #d1deea; }
.footer-links a:hover { color: #fff; }
.socials a { background: transparent; border-color: rgba(255, 255, 255, .22); color: #fff; }
.socials a:hover { border-color: var(--ice); color: var(--ice); }
.footer-wordmark { background: linear-gradient(180deg, rgba(189, 219, 240, .16), rgba(189, 219, 240, 0) 85%); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { border-top-color: rgba(255, 255, 255, .12); color: #8fa6bb; }
.footer-legal a { color: #8fa6bb; }
.footer-legal a:hover { color: #fff; }
