/* Hayag | Core stylesheet
   Layout: corporate asymmetric grid. Bold sans headings, blue as the ground for key moments,
   yellow used sparingly as a signal colour (CTAs, highlights). */

:root {
  --blue: #3C5FBA;
  --blue-700: #2E4A97;
  --navy: #17244D;
  --navy-900: #0F1936;
  --ink: #121935;
  --muted: #56607E;
  --yellow: #FFD86E;
  --yellow-600: #FFCB3D;
  --yellow-tint: #FFEDBD;
  --paper: #FFFFFF;
  --mist: #F4F6FC;
  --line: #E0E5F2;
  --line-dark: rgba(255, 255, 255, 0.14);
  --on-dark-muted: rgba(255, 255, 255, 0.74);

  --f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 76px;
  --shadow-lg: 0 30px 60px -24px rgba(23, 36, 77, 0.45);
  --shadow-md: 0 16px 40px -20px rgba(23, 36, 77, 0.28);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
figure, blockquote, dl, dd { margin: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  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: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.difference :focus-visible, .cta-panel :focus-visible, .site-footer :focus-visible,
.pillar--edu :focus-visible, .pillar--ai :focus-visible, .blueprint :focus-visible { outline-color: var(--yellow); }

/* Type */
h1, h2 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--blue);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px; width: fit-content;
}
.text-link::after { content: "\2192"; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.82em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 0.95rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 1em 1.6em; font-size: 1rem; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-600); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-700); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--yellow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  isolation: isolate;
  border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the containing
   block of the fixed mobile menu and shrink the menu to the header's height. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav { display: flex; align-items: center; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand img { display: block; height: 44px; width: auto; max-width: none; }
.brand--light img { height: 32px; }
.brand { min-height: 44px; }
.brand--light { color: #fff; }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.94rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav-link:hover { background: var(--mist); }
.has-menu > .nav-link::after {
  content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; opacity: .7;
}
.has-menu.is-open > .nav-link::after { transform: rotate(-135deg) translateY(-1px); }
.nav-cta-mobile { display: none; }

.mega {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.has-menu.is-open .mega { display: block; }
.mega-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding-block: 36px 40px; }
.mega-intro { display: flex; flex-direction: column; gap: 14px; padding-right: 24px; border-right: 1px solid var(--line); }
.mega-intro p { color: var(--muted); font-size: 0.95rem; }
.mega-intro .mega-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 24px; }
.mega-links a {
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: var(--radius);
  text-decoration: none; transition: background-color .15s ease;
}
.mega-links a:hover { background: var(--mist); }
.mega-links strong { font-weight: 600; font-size: 0.98rem; color: var(--navy); }
.mega-links span { font-size: 0.87rem; color: var(--muted); line-height: 1.45; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; margin-left: auto;
  background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px;
  font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -5px; }
.menu-toggle-bars::after { top: 5px; }
.nav-open .menu-toggle-bars { background: transparent; }
.nav-open .menu-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

/* Desktop: each menu item spans the full header height, so the pointer can travel from the trigger
   to the panel without leaving the item (opening on hover and the close delay live in js/main.js) */
@media (min-width: 1121px) {
  .primary-nav { align-self: stretch; display: flex; }
  .nav-list { align-items: stretch; }
  .nav-list > li:not(.nav-cta-mobile) { display: flex; align-items: center; }
}

@media (max-width: 1120px) {
  .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none; position: fixed; left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    background: #fff; overflow-y: auto; padding: 12px var(--gutter) 32px; border-top: 1px solid var(--line);
  }
  .nav-open .primary-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li.nav-cta-mobile { border-bottom: 0; padding-top: 20px; display: block; }
  .nav-cta-mobile .btn { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.05rem; border-radius: 0; }
  .nav-link:hover { background: none; }
  .mega { position: static; box-shadow: none; border-top: 0; }
  .mega .wrap { padding-inline: 0; }
  .mega-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 0 16px; }
  .mega-intro { border-right: 0; padding-right: 0; order: 2; padding-left: 4px; }
  .mega-intro .mega-title, .mega-intro p { display: none; }
  .mega-links { grid-template-columns: 1fr; gap: 0; }
  .mega-links a { padding: 10px 4px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 92% 10%, rgba(60, 95, 186, 0.12), transparent 70%),
    var(--mist);
  padding-block: clamp(40px, 5vw, 64px) clamp(72px, 9vw, 120px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.hero-copy { min-width: 0; }
/* Desktop: sit the copy slightly above the card's optical centre (not top-aligned, not centred) */
@media (min-width: 1121px) {
  .hero-copy { padding-top: 48px; }
}
.hero h1 { color: var(--navy); }
.hero h1 .hl {
  color: var(--blue);
  background-image: linear-gradient(transparent 74%, var(--yellow) 74%, var(--yellow) 90%, transparent 90%);
}
.hero-sub { margin-top: 28px; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-visual { position: relative; min-width: 0; animation: rise .8s cubic-bezier(.2,.7,.2,1) both .1s; }
.blueprint {
  position: relative; background: var(--blue); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-lg);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.bp-head { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 500; color: var(--on-dark-muted); }
.bp-head span:last-child { border: 1px solid var(--line-dark); padding: 1px 10px; border-radius: 999px; }
.bp-title { font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-top: 12px; }
.bp-modules { margin-top: 20px; border-top: 1px solid var(--line-dark); }
.bp-modules li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line-dark); }
.bp-num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--yellow-tint); padding-top: 2px; font-variant-numeric: tabular-nums; }
.bp-modules strong { display: block; font-weight: 600; font-size: 0.98rem; }
.bp-modules span:not(.bp-num) { display: block; font-size: 0.85rem; color: var(--on-dark-muted); margin-top: 2px; line-height: 1.45; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bp-chips li { background: var(--yellow); color: var(--navy); border: 1px solid var(--yellow); font-size: 0.76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }

@keyframes rise { from { transform: translateY(18px); } to { transform: none; } }

/* At a glance */
.glance { border-bottom: 1px solid var(--line); padding-block: clamp(44px, 6vw, 64px); }
.glance-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.glance-grid h2 { color: var(--navy); }
.glance-text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; color: var(--ink); max-width: 46em; padding-top: 8px; }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--mist { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head h2 { color: var(--navy); }
.section-head p { margin-top: 18px; font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.section-head--row > div { max-width: 680px; }
.section-head--row > p { max-width: 28em; margin-top: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pillar { display: flex; flex-direction: column; gap: 28px; padding: clamp(28px, 3.6vw, 48px); border-radius: var(--radius-lg); }
.pillar-top { display: flex; flex-direction: column; gap: 16px; }
.pillar h3 { font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
.pillar-top p { font-size: 1.02rem; }
.pillar > .btn { align-self: flex-start; margin-top: auto; }

.badge { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--navy); }
.badge--outline { background: transparent; color: var(--blue); border: 1.5px solid var(--line); }

.pillar--edu { background: var(--navy); color: #fff; }
.pillar--ai { background: var(--blue); color: #fff; }
.pillar--edu .pillar-top p, .pillar--ai .pillar-top p { color: var(--on-dark-muted); }

.pillar-links { border-top: 1px solid var(--line-dark); }
.pillar-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-weight: 500;
}
.pillar-links a::after { content: "\2192"; opacity: .55; transition: transform .2s ease, opacity .2s ease; }
.pillar-links a:hover::after { transform: translateX(4px); opacity: 1; color: var(--yellow); }

.pillar--software {
  grid-column: 1 / -1; background: #fff; border: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: clamp(28px, 4vw, 56px); align-items: start;
}
.pillar--software h3 { color: var(--navy); }
.pillar--software .pillar-top p { color: var(--muted); }
.software-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.software-list a {
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 22px; border-radius: var(--radius); background: var(--mist); text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.software-list a:hover { background: #E9EDF9; transform: translateY(-2px); }
.software-list strong { color: var(--navy); font-weight: 600; }
.software-list span { font-size: 0.9rem; color: var(--muted); line-height: 1.5; }

/* Difference */
.difference { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.difference::before {
  content: ""; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid var(--line-dark); box-shadow: 0 0 0 80px rgba(255,255,255,0.02), 0 0 0 160px rgba(255,255,255,0.015);
  pointer-events: none;
}
.diff-head { position: relative; max-width: 900px; }
.diff-statement { margin-top: 26px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; color: #fff; }
.diff-statement span { color: var(--yellow); }
.diff-head > p:not(.diff-statement) { margin-top: 20px; font-size: 1.1rem; color: var(--on-dark-muted); max-width: 40em; }
.diff-points { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-dark); }
.diff-points li { padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 12px; }
.diff-points li + li { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.diff-points svg { width: 34px; height: 34px; fill: none; stroke: var(--yellow); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.diff-points p { color: var(--on-dark-muted); font-size: 0.98rem; }

/* Who */
.who-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.who-head { position: sticky; top: calc(var(--header-h) + 32px); }
.who-head h2 { color: var(--navy); }
.who-head > p { margin-top: 18px; color: var(--muted); font-size: 1.15rem; }
.who-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.who-list li { padding-block: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.who-list h3 { color: var(--navy); display: flex; align-items: center; gap: 10px; }
.who-list h3::before { content: ""; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); flex: none; }
.who-list p { color: var(--muted); font-size: 0.96rem; }

/* Start cards */
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.start-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.start-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.start-card h3 { color: var(--navy); font-size: 1.15rem; }
.start-card p { color: var(--muted); font-size: 0.94rem; }
.tag { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.92rem; color: var(--blue); display: inline-flex; gap: 8px; }
.card-link::after { content: "\2192"; transition: transform .2s ease; }
.start-card:hover .card-link::after, .insight:hover h3 { transform: translateX(4px); }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; position: relative; }
.process::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px; background: var(--line); }
.process li { position: relative; display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--blue); color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.process li:first-child .step-num { background: var(--blue); color: #fff; }
.process h3 { color: var(--navy); }
.process p { color: var(--muted); font-size: 0.94rem; }

/* Insights */
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.insight { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.insight-img, .post-card-img, .post-hero-img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.insight-img { border-radius: var(--radius-lg); margin-bottom: 8px; }
.insight h3 { color: var(--navy); font-size: 1.18rem; transition: transform .2s ease; }
.insight p { color: var(--muted); font-size: 0.95rem; }

/* CTA */
.cta-section { padding-block: clamp(64px, 8vw, 112px); }
.cta-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: end;
  background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(32px, 5.5vw, 72px);
}
.cta-panel::after {
  content: ""; position: absolute; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 95, 186, 0.55), transparent 70%); pointer-events: none;
}
.cta-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.cta-copy h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.cta-copy p { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 30em; }
.cta-contact { position: relative; z-index: 1; display: flex; flex-direction: column; border-top: 1px solid var(--line-dark); }
.cta-contact div { padding-block: 16px; border-bottom: 1px solid var(--line-dark); }
.cta-contact dt { font-size: 0.86rem; color: var(--yellow); font-weight: 600; }
.cta-contact dd { margin-top: 4px; font-size: 1.12rem; overflow-wrap: anywhere; }
.cta-contact a { text-decoration: none; }
.cta-contact a:hover { color: var(--yellow); }

/* Footer */
.site-footer { background: var(--navy-900); color: var(--on-dark-muted); padding-block: 72px 32px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; }
.footer-bottom ul { display: flex; gap: 20px; }

/* Responsive */
@media (max-width: 1080px) {
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar--software { grid-template-columns: minmax(0, 1fr); }
  .diff-points { grid-template-columns: minmax(0, 1fr); }
  .diff-points li, .diff-points li + li { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .who-grid, .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .who-head { position: static; }
  .process { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .process li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-bottom: 28px; }
  .process .step-num { grid-row: span 2; margin-bottom: 0; }
  .process h3 { padding-top: 10px; }
  .insight-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .software-list { grid-template-columns: minmax(0, 1fr); }
  .who-list { grid-template-columns: minmax(0, 1fr); }
  .start-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; }
  .site-header .brand img { height: 36px; }
}

@media (max-width: 480px) {
  :root { --header-h: 68px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 2.05rem; }
  .hero { padding-block: 40px 64px; }
  .hero-sub { font-size: 1.05rem; }
    .blueprint { padding: 20px; }
  .bp-modules li { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
  .section-head p, .who-head > p { font-size: 1.05rem; }
  .pillar { padding: 24px; gap: 24px; }
  .pillar > .btn, .cta-copy .btn, .section-head--row > .btn { width: 100%; }
  .software-list a { padding: 18px; }
  .start-card { padding: 24px 20px; }
  .cta-panel { border-radius: 20px; padding: 28px 22px; }
  .footer-bottom { flex-direction: column; }
  .menu-toggle-label { display: none; }
  .menu-toggle { padding: 11px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Service page components (breadcrumb, role card, programs, form)
   ========================================================================== */

/* Breadcrumb */
.hero--page { padding-top: clamp(20px, 3vw, 32px); }
.breadcrumb { margin-bottom: clamp(28px, 4vw, 48px); font-size: 0.88rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-inline: 10px; color: var(--line); font-weight: 600; }
.breadcrumb a { color: var(--blue); font-weight: 600; text-decoration: none; padding-block: 10px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--navy); font-weight: 600; }

/* "AI in your team" role card (blueprint style) */
.team-card { display: flex; flex-direction: column; gap: 0; }
.team-card .bp-title { margin-top: 12px; }
.team-tabs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-bottom: 2px;
}
.team-tab {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.34);
  font: inherit; font-size: 0.9rem; font-weight: 600; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.team-tab:hover { border-color: #fff; }
.team-tab[aria-selected="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.team-panel { margin-top: 22px; border-top: 1px solid var(--line-dark); padding-top: 20px; display: flex; flex-direction: column; gap: 18px; }
.team-panel[hidden] { display: none; }
.team-panel.is-entering { animation: tabFade .3s ease both; }
.team-panel:focus-visible { outline-offset: 6px; }
@keyframes tabFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tc-label { font-size: 0.8rem; font-weight: 600; color: var(--yellow-tint); margin-bottom: 6px; }
.tc-task { font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.tc-list { display: flex; flex-direction: column; gap: 8px; }
.tc-list li { position: relative; padding-left: 18px; font-size: 0.93rem; line-height: 1.45; color: var(--on-dark-muted); }
.tc-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.tc-chip { display: inline-block; background: var(--yellow); color: var(--navy); font-size: 0.8rem; font-weight: 700; padding: 6px 13px; border-radius: 999px; }
.tc-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 0.85rem; color: var(--on-dark-muted); }

/* Problem, sources, inline related links */
.problem-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.problem-body p { font-size: 1.08rem; color: var(--ink); }
.problem-body .problem-statement { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; color: var(--navy); padding-left: 20px; border-left: 3px solid var(--yellow); }
.problem-body .sources { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.5; color: var(--muted); }

/* Contact form */
.form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-intro { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 18px; }
.form-intro h2 { color: var(--navy); }
.form-intro p { font-size: 1.1rem; color: var(--muted); }
.form-intro a { color: var(--blue); font-weight: 600; }
.form-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow-md); }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.92rem; font-weight: 600; color: var(--navy); padding: 0; }
.req { color: var(--blue); margin-left: 3px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #C6CEE4; border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2356607E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--blue); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(60, 95, 186, 0.35); outline-offset: 0; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #B42318; background-color: #FFF8F7; }
.field-error { font-size: 0.86rem; font-weight: 500; color: #B42318; }
.field-error[hidden] { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 0.95rem; cursor: pointer; line-height: 1.35; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.form-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success { display: flex; flex-direction: column; gap: 10px; padding: 8px 4px; }
.form-success[hidden] { display: none; }
.form-success h3 { color: var(--navy); font-size: 1.4rem; }
.form-success p { color: var(--muted); }
.form-success:focus { outline: none; }
.form-success::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%2317244D' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 24px no-repeat; }

@media (max-width: 960px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-intro { position: static; }
}

@media (max-width: 680px) {
  .form-fields, .check-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .team-tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
    margin-inline: calc(clamp(24px, 3vw, 34px) * -1); padding-inline: clamp(24px, 3vw, 34px);
  }
  .team-tab { flex: none; }
}

@media (max-width: 480px) {
  .team-tabs { margin-inline: -20px; padding-inline: 20px; }
  .form-card { padding: 20px 16px; }
}

/* ==========================================================================
   Service page refinements: stats, icons, tiers, reveal
   ========================================================================== */

.icon { width: 32px; height: 32px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }

/* Problem stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: clamp(36px, 5vw, 56px); }
.stats li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat-num { font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-num::after { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--yellow); margin-top: 14px; }
.stat-label { font-size: 0.94rem; line-height: 1.45; color: var(--muted); }

/* Who: icon tiles */
.who-list--icons h3::before { display: none; }
.who-list--icons li { gap: 10px; }
.icon--tile { width: 48px; height: 48px; padding: 11px; border-radius: 12px; background: rgba(60, 95, 186, 0.1); color: var(--blue); }

/* Program tiers */
.tiers { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.tier-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; max-width: 40em; }
.tier-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--navy); }
.tier-intro { color: var(--muted); font-size: 1rem; }
.program-grid { display: grid; gap: 20px; }
.program-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.program-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.program {
  display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(24px, 3vw, 32px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--blue);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.program:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(60, 95, 186, 0.4); }
.program h3 { color: var(--navy); font-size: 1.25rem; }
.program > p { color: var(--muted); font-size: 0.96rem; }
.program-facts { margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.program-facts div { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 12px; padding-block: 12px; }
.program-facts div + div { border-top: 1px dashed var(--line); }
.program-facts .icon { grid-row: span 2; margin-top: 2px; color: var(--blue); }
.program-facts dt { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.program-facts dd { font-size: 0.92rem; line-height: 1.5; color: var(--ink); margin-top: 2px; }
.tier--leaders .program { background: var(--navy); border-color: var(--navy); color: var(--yellow); }
.tier--leaders .program:hover { border-color: var(--yellow); box-shadow: 0 22px 44px -20px rgba(23, 36, 77, 0.6); }
.tier--leaders .program h3 { color: #fff; }
.tier--leaders .program > p { color: var(--on-dark-muted); }
.tier--leaders .program-facts { border-top-color: var(--line-dark); }
.tier--leaders .program-facts div + div { border-top-color: var(--line-dark); }
.tier--leaders .program-facts .icon, .tier--leaders .program-facts dt { color: var(--yellow); }
.tier--leaders .program-facts dd { color: #fff; }
.tier--leaders .program :focus-visible { outline-color: var(--yellow); }

/* Timeline: connectors drawn per step so nothing trails after step 5 */
.process--clean::before { display: none; }
.process--clean li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 44px; right: -24px; height: 1px; background: var(--line); }

/* Differentiators */
.section--roomy { padding-block: clamp(88px, 12vw, 152px); }
.section--roomy .section-head { margin-bottom: clamp(48px, 6vw, 72px); }
.edge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.edge-grid li { display: flex; flex-direction: column; gap: 14px; padding-block: 40px; border-top: 1px solid var(--line); min-width: 0; }
.edge-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: rgba(60, 95, 186, 0.1); color: var(--blue); margin-bottom: 4px; }
.edge-icon svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.edge-grid h3 { color: var(--navy); font-size: 1.25rem; }
.edge-grid p { color: var(--muted); font-size: 1rem; max-width: 30em; }

/* Scroll reveal: content is visible unless JS arms the effect */
.will-reveal { opacity: 0; transform: translateY(18px); }
.will-reveal.is-visible { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }

@media (max-width: 1080px) {
  .program-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .program-grid--3 .program:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .process--clean li:not(:last-child)::after { top: 44px; bottom: 0; left: 21.5px; right: auto; width: 1px; height: auto; }
  .process--clean li:last-child { padding-bottom: 0; }
}

@media (max-width: 680px) {
  .program-grid--2, .program-grid--3, .edge-grid { grid-template-columns: minmax(0, 1fr); }
  .program-grid--3 .program:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .stats { gap: 12px; }
  .stats li { padding: 18px 16px; }
  .program { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Hub page components (service cards, journey stepper, three-figure stat row)
   ========================================================================== */

.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(28px, 3vw, 40px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(60, 95, 186, 0.4); }
.service-card .icon--tile { width: 56px; height: 56px; padding: 13px; border-radius: 16px; margin-bottom: 8px; }
.service-card h3 { color: var(--navy); font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.25; }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-card .btn { margin-top: auto; align-self: flex-start; }

.journey-step { display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.journey-num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.18);
}
.team-tab[aria-selected="true"] .journey-num { background: var(--navy); color: var(--yellow); }
.tc-chips { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .stats--3 { grid-template-columns: minmax(0, 1fr); }
}

/* Hub variants: five-card and two-card service grids */
.service-grid--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.service-grid--5 .service-card { grid-column: span 2; }
.service-grid--5 .service-card:nth-child(n+4) { grid-column: span 3; }
.service-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .service-grid--5, .service-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .service-grid--5 .service-card, .service-grid--5 .service-card:nth-child(n+4) { grid-column: auto; }
}

/* Service page variants: two-figure stat row, single-card tier, workflow flow */
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.program-grid--1 { grid-template-columns: minmax(0, 1fr); }

.flow { display: flex; flex-direction: column; position: relative; }
.flow li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start; padding-block: 8px; border-radius: 12px; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 13.5px; top: 36px; bottom: -8px; width: 1px; background: rgba(255, 255, 255, 0.28); }
.flow-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); }
.flow-text { font-size: 0.95rem; line-height: 1.45; padding-top: 3px; }
.flow-review { background: var(--yellow); color: var(--navy); margin-inline: -10px; padding-inline: 10px; }
.flow-review .flow-num { background: var(--navy); color: var(--yellow); border-color: var(--navy); }
.flow-review::after { display: none; }
.flow-tag { display: inline-block; margin-left: 6px; font-size: 0.75rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--navy); color: #fff; vertical-align: 1px; }

@media (max-width: 680px) {
  .stats--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Education service pages: sample objective, format mocks, standalone sources line */
.tc-objective { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-dark); }
.tc-objective .tc-label { margin-bottom: 0; }
.tc-objective-text { font-size: 1rem; font-weight: 600; line-height: 1.4; }

.mock { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: #fff; color: var(--navy); }
.mock-prompt { font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.mock-choice, .mock-option { display: block; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-size: 0.9rem; font-weight: 500; line-height: 1.35; }
.mock-option.is-selected { border-color: var(--blue); background: rgba(60, 95, 186, 0.1); font-weight: 600; }
.mock-note { font-size: 0.8rem; color: var(--muted); }
.mock-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-step { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 10px; background: var(--mist); font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.mock-step b { color: var(--navy); font-size: 0.86rem; }
.mock-video { position: relative; aspect-ratio: 16 / 6; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.mock-play { width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent var(--yellow); margin-left: 4px; }
.mock-bar { position: relative; height: 6px; border-radius: 3px; background: var(--line); margin-block: 2px; }
.mock-bar::before { content: ""; position: absolute; inset: 0 62% 0 0; border-radius: 3px; background: var(--blue); }
.mock-mark { position: absolute; top: -3px; width: 3px; height: 12px; border-radius: 2px; background: var(--yellow-600); }
.mock-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }

.sources--page { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; line-height: 1.5; color: var(--muted); }

@media (max-width: 480px) {
  .mock-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Curriculum map, LMS dashboard and before/after mocks, single-figure stat */
.stats--1 { grid-template-columns: minmax(0, 440px); }
.stat-num small { font-size: 0.42em; font-weight: 600; letter-spacing: -0.01em; }

.map { display: grid; grid-template-columns: 78px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; margin-top: 18px; }
.map-col { font-size: 0.78rem; font-weight: 600; text-align: center; color: var(--on-dark-muted); }
.map-row { font-size: 0.8rem; font-weight: 600; color: var(--yellow-tint); }
.map-cell { height: 44px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.map-cell:hover { border-color: #fff; }
.map-cell[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.map-outcome { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-dark); min-height: 5.6em; }

.mock-title { font-size: 0.82rem; font-weight: 700; color: var(--blue); }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.mock-title + .mock-row { border-top: 0; }
.mock-row > span:first-child { min-width: 0; }
.mock-progress { flex: 0 0 42%; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.mock-progress i { display: block; height: 100%; border-radius: 4px; background: var(--blue); }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mock-chip { font-size: 0.76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(60, 95, 186, 0.12); color: var(--blue-700); white-space: nowrap; }
.mock-chip--warn { background: var(--yellow-tint); color: var(--navy); }
.mock-next { margin-top: 2px; }

.sheet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.sheet span { padding: 5px 7px; font-size: 0.76rem; border: 1px solid var(--line); background: var(--mist); color: var(--muted); }
.sheet span.warn { background: var(--yellow-tint); color: var(--navy); font-weight: 600; }
.mock-mail { display: flex; flex-direction: column; gap: 4px; }
.mock-mail span { font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; background: var(--mist); color: var(--muted); }
.mock-notes { display: flex; gap: 8px; }
.mock-sticky { flex: 1; padding: 8px 10px; font-size: 0.78rem; font-weight: 600; background: var(--yellow); color: var(--navy); border-radius: 4px; transform: rotate(-2deg); }
.mock-sticky + .mock-sticky { transform: rotate(2deg); }
.mock-caption { font-size: 0.8rem; font-weight: 600; color: var(--blue); }
.mock-topbar { padding: 8px 12px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 0.82rem; }
.mock-status { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mock-status li { padding: 6px 4px; border-radius: 8px; font-size: 0.74rem; font-weight: 600; text-align: center; background: var(--mist); color: var(--muted); }
.mock-status li.done { background: rgba(60, 95, 186, 0.14); color: var(--blue-700); }
.mock-status li.now { background: var(--yellow); color: var(--navy); }
.mock-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock-tiles span { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; background: var(--mist); font-size: 0.74rem; }
.mock-tiles b { color: var(--navy); font-weight: 600; }
.mock-tiles i { display: block; height: 6px; border-radius: 3px; background: var(--blue); }

@media (max-width: 480px) {
  .map { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 6px; }
  .map-col { font-size: 0.7rem; }
  .mock-tiles { grid-template-columns: minmax(0, 1fr); }
  .mock-progress { flex-basis: 34%; }
}

/* Testimonials (homepage slider) */
.section-head--center { margin-inline: auto; text-align: center; }
.slider { --slide-ease: cubic-bezier(.22, .8, .24, 1); max-width: 920px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.slider-body { width: 100%; max-width: 820px; }
.slider-stage { display: grid; min-width: 0; touch-action: pan-y; overflow-x: clip; }
.slide { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; visibility: hidden; transition: visibility 0s linear .65s; }
.slide > * { opacity: 0; transition: transform .6s var(--slide-ease), opacity .6s ease; }
.slide.is-active { visibility: visible; transition-delay: 0s; }
.slide.is-active > * { opacity: 1; transform: none; }
.slide.is-active .slide-client { transition-delay: .1s; }
.slide.is-out-left > * { transform: translateX(-56px); }
.slide.is-out-right > * { transform: translateX(56px); }
.slide.is-in-right > * { transform: translateX(56px); transition: none; }
.slide.is-in-left > * { transform: translateX(-56px); transition: none; }
.slide .quote-icon { width: 52px; height: 52px; }
.slide blockquote { margin: 0; }
.slide blockquote p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.65; color: var(--navy); }
.slide-client { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.slide-client strong { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.slide-client span { font-size: 0.95rem; color: var(--muted); }
.slide-client .slide-loc { font-size: 0.82rem; }

.slider-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.slider-lines { display: flex; justify-content: center; gap: 10px; }
.slider-line { position: relative; width: 40px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider-line::before, .slider-line-fill { content: ""; position: absolute; left: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.slider-line::before { right: 0; background: #D5DAE8; }
.slider-line:hover::before { background: #BFC7DD; }
.slider-line-fill { width: 0; background: var(--blue); }
.slider-line.is-active .slider-line-fill { width: 100%; }
.slider.is-ready .slider-line.is-active .slider-line-fill { width: 0; animation: sliderFill 8s linear forwards; }
.slider.is-paused .slider-line.is-active .slider-line-fill { animation-play-state: paused; }
@keyframes sliderFill { from { width: 0; } to { width: 100%; } }

.slider-pager { display: flex; align-items: center; gap: 18px; }
.slider-count { min-width: 4.6em; text-align: center; font-size: 0.9rem; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.slider-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: transparent; border: 1.5px solid #CBD2E6; color: var(--navy);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.slider-arrow:hover { border-color: var(--blue); color: var(--blue); }
.slider-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider:not(.is-ready) .slider-nav { display: none; }

@media (prefers-reduced-motion: reduce) {
  .slider.is-ready .slider-line.is-active .slider-line-fill { animation: none; width: 100%; }
}
.quote-icon { flex: none; fill: var(--blue); }

/* Homepage hero: goal selector (reuses the blueprint card and the [data-tabs] script) */
.goal-card .bp-title { margin-top: 0; }
.goal-sub { margin-top: 6px; font-size: 0.9rem; color: var(--on-dark-muted); }
.goal-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.goal-tabs .team-tab { white-space: normal; line-height: 1.25; padding: 8px 14px; text-align: center; }
.goal-panels { display: grid; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.goal-panel { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.goal-panel[hidden] { display: flex; visibility: hidden; }
.goal-panel:focus-visible { outline-offset: 6px; }
.goal-service { font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: #fff; }
.goal-list { display: flex; flex-direction: column; gap: 8px; }
.goal-list li { position: relative; padding-left: 26px; font-size: 0.93rem; line-height: 1.45; color: var(--on-dark-muted); }
.goal-list li::before { content: ""; position: absolute; left: 0; top: 0.12em; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M3.5 9.5l3.6 3.6L14.5 5.5' fill='none' stroke='%23FFD86E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.goal-start { font-size: 0.95rem; line-height: 1.45; color: #fff; }
.goal-btn { margin-top: 2px; }
.goal-panel.is-entering .goal-block, .goal-panel.is-entering .goal-btn { animation: goalIn .4s cubic-bezier(.22, .8, .24, 1) both; }
.goal-panel.is-entering .goal-block:nth-child(2) { animation-delay: .05s; }
.goal-panel.is-entering .goal-block:nth-child(3) { animation-delay: .25s; }
.goal-panel.is-entering .goal-btn { animation-delay: .3s; }
.goal-panel.is-entering .goal-list li { animation: goalIn .4s cubic-bezier(.22, .8, .24, 1) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes goalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .goal-tabs { display: flex; }
  .goal-tabs .team-tab { white-space: nowrap; }
}

/* Insights: listing, article pages */
.hero--simple { padding-bottom: clamp(40px, 6vw, 80px); }
.page-title-block { max-width: 760px; }
.post-list { padding-top: clamp(32px, 4vw, 56px); }
.page-intro { margin-top: 20px; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 34em; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-filter-root]:not(.is-ready) .filter { display: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(60, 95, 186, 0.4); }
.post-card[hidden] { display: none; }
.post-chip { align-self: flex-start; font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(60, 95, 186, 0.1); color: var(--blue-700); }
.post-card h2, .post-card h3 { font-size: 1.2rem; line-height: 1.35; letter-spacing: -0.01em; color: var(--navy); }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.post-card h2 a:focus-visible::after, .post-card h3 a:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 3px; }
.post-card p { color: var(--muted); font-size: 0.95rem; }
.post-card-img { border-radius: calc(var(--radius-lg) - 8px); }
.post-card .post-reading { margin-top: auto; padding-top: 4px; font-size: 0.85rem; font-weight: 600; color: var(--blue); }

.post-hero-img { margin: 0 auto clamp(28px, 4vw, 44px); max-width: 960px; }
.post-hero-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.post-head { max-width: 820px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.post-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.12; color: var(--navy); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.92rem; color: var(--muted); }
.post-meta span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: var(--yellow-600); vertical-align: middle; }

.post-body { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.post-content { max-width: 720px; margin-inline: auto; font-size: 1.06rem; line-height: 1.75; color: var(--ink); overflow-wrap: break-word; }
/* Long words and addresses wrap anywhere in running text (not in tables, where it would squeeze columns) */
.post-content :is(p, li, h2, h3, strong, em), .post-note { overflow-wrap: anywhere; }
.post-content > * + * { margin-top: 1.15em; }
.post-content h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 2.8vw, 1.95rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--navy); }
.post-content h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.35; color: var(--navy); }
.post-content h2 + *, .post-content h3 + * { margin-top: 0.7em; }
.post-content strong { font-weight: 700; color: var(--navy); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li + li { margin-top: 0.45em; }
.post-content li::marker { color: var(--blue); font-weight: 600; }
.post-content ul.checklist { list-style: none; padding-left: 0; }
.post-content .checklist li { position: relative; padding-left: 36px; }
.post-content .checklist li + li { margin-top: 0.6em; }
.post-content .checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 22px; height: 22px; border-radius: 50%; background: rgba(60, 95, 186, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.3 3.3L16 8' fill='none' stroke='%233C5FBA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.post-content code { padding: 1px 6px; border-radius: 6px; background: var(--mist); font-size: 0.92em; }
.post-summary { padding: 22px 26px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: rgba(60, 95, 186, 0.08); font-size: 1.12rem; line-height: 1.65; font-weight: 600; color: var(--navy); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.table-wrap th { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--navy); background: var(--mist); border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--line); }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: rgba(244, 246, 252, 0.6); }

.post-cta { max-width: 920px; margin: clamp(48px, 6vw, 72px) auto 0; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); background: #3C5FBA; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.post-cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff; }
.post-cta p { max-width: 38em; font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); }
.post-cta .btn { margin-top: 6px; }
.post-cta :focus-visible { outline-color: var(--yellow); }
.post-note { max-width: 720px; margin: 28px auto 0; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }

.post-sources-wrap { padding-block: clamp(36px, 5vw, 56px); }
.post-sources { max-width: 720px; margin-inline: auto; font-size: 0.8rem; line-height: 1.6; color: var(--muted); }
.post-sources h2 { margin-bottom: 10px; font-size: 0.95rem; letter-spacing: 0; line-height: 1.3; font-weight: 700; color: var(--muted); }
.post-sources ul { display: flex; flex-direction: column; gap: 6px; list-style: none; }
.post-sources li { overflow-wrap: anywhere; }

@media (max-width: 1080px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .post-content { font-size: 1.02rem; }
  .post-summary { padding: 18px 20px; font-size: 1.06rem; }
}

/* Header: current page */
.nav-link[aria-current="page"] { color: var(--blue); font-weight: 600; }
.nav-link[aria-current="page"]:hover { background: var(--mist); }

/* Form: send error, honeypot-safe helpers */
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid #F0B8B1; background: #FFF4F2; color: #8A1C12; font-size: 0.92rem; line-height: 1.5; }
.form-error[hidden] { display: none; }
.form-error a { color: inherit; font-weight: 600; }
.btn[disabled] { opacity: 0.7; cursor: progress; transform: none; }
.check-single { align-items: flex-start; }
.check-single input { margin-top: 2px; }

/* Contact page */
.contact-hero { padding-bottom: clamp(48px, 7vw, 96px); }
.contact-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "copy form" "direct form"; grid-template-rows: auto 1fr;
  gap: 36px clamp(36px, 5vw, 80px); align-items: start;
}
.contact-copy { grid-area: copy; min-width: 0; }
.contact-copy h1 { color: var(--navy); }
.contact-direct { grid-area: direct; align-self: start; min-width: 0; padding-top: 28px; border-top: 1px solid var(--line); }
.contact-card-wrap { grid-area: form; min-width: 0; }
.contact-card { padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-lg); }
.contact-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); color: var(--navy); }
.contact-card .form-card-intro { margin: 10px 0 24px; color: var(--muted); }
.contact-card .form-fields { gap: 18px; }
.form-micro { margin-top: 4px; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }
.contact-direct h2 { font-size: 1.5rem; letter-spacing: -0.02em; color: var(--navy); }
.contact-lines { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.contact-lines li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 14px; }
.contact-lines .icon { width: 24px; height: 24px; color: var(--blue); margin-top: 3px; }
.contact-lines a { font-size: 1.1rem; font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-lines a:hover { color: var(--blue); text-decoration: underline; }
.contact-lines p { grid-column: 2; margin-top: 2px; font-size: 0.93rem; line-height: 1.5; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 28px; background: var(--mist); border-radius: var(--radius-lg); }
.steps h3 { color: var(--navy); }
.steps p { color: var(--muted); font-size: 0.97rem; }

.tile-intro { max-width: 40em; margin-top: 16px; font-size: 1.1rem; color: var(--muted); }
.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.tile h3 { color: var(--navy); }
.tile p { color: var(--muted); font-size: 0.95rem; }

.close-band {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(32px, 6vw, 64px);
  border-radius: 28px; background: #3C5FBA; color: #fff;
}
.close-band h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.close-band p { max-width: 38em; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); }
.close-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }
.close-band :focus-visible { outline-color: var(--yellow); }

@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .contact-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "form" "direct"; grid-template-rows: auto; gap: 28px; }
  .contact-direct { padding-top: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 680px) {
  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .close-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .contact-card { padding: 22px 16px; }
  .close-band { border-radius: 20px; padding: 28px 22px; }
}

/* Header: keep the nav on one line between 1121px and 1279px */
.nav-link { white-space: nowrap; }
@media (min-width: 1121px) and (max-width: 1279px) {
  .nav { gap: 12px; }
  .nav-link { padding: 10px 8px; font-size: 0.9rem; }
  .nav-cta { padding: 0.75em 1.1em; font-size: 0.9rem; }
}


/* ==========================================================================
   Mobile and tablet polish (QA pass). Desktop (1121px and up) is unchanged.
   ========================================================================== */

/* Tables that scroll sideways show a soft edge shadow on the side that has more to see (invisible when the table fits) */
.table-wrap {
  background:
    linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
    linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(23, 36, 77, 0.22), rgba(23, 36, 77, 0)) left center / 14px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(23, 36, 77, 0.22), rgba(23, 36, 77, 0)) right center / 14px 100% no-repeat scroll;
}

/* Tablets in portrait: let the hero card use the full width instead of sitting in a narrow column */
@media (min-width: 681px) and (max-width: 960px) {
  .hero-visual { max-width: none; }
}

/* Notches, rounded corners and home indicators (env() is 0 on desktop) */
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
html.nav-locked { overflow: hidden; overscroll-behavior: none; }

@media (max-width: 1120px) {
  .primary-nav { overscroll-behavior: contain; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
  .menu-toggle { min-height: 44px; min-width: 44px; justify-content: center; }
  .mega-links a { min-height: 44px; justify-content: center; padding-block: 12px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 4px; }
  /* Enlarge the tap area without changing the layout: padding grows the box, a matching negative margin cancels it */
  .text-link { border-bottom: 0; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; padding-block: 11px; margin-block: -11px; }
  .cta-contact a, .contact-lines a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-lines a { justify-self: start; }
  .contact-lines p { font-size: 1rem; }
  /* Footer and legal links: 44px rows built from the row itself, with the old gaps removed so the footer does not grow */
  .footer-col ul, .footer-contact { gap: 0; }
  .footer-col a, .footer-contact a, .footer-bottom a { display: flex; align-items: center; min-height: 44px; line-height: 1.35; }
  .program-facts dd, .software-list span { font-size: 0.95rem; }
  .diff-points p { font-size: 1rem; }
  .slider-line { width: 44px; height: 44px; }
  .slider-lines { gap: 2px; }
  .filter-chip { min-height: 44px; }
}

@media (max-width: 680px) {
  :root { --gutter: clamp(20px, 5.4vw, 24px); }
  h1 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  h2 { font-size: clamp(1.75rem, 7.2vw, 2.15rem); }
  .section { padding-block: clamp(56px, 15vw, 72px); }
  .section-head { margin-bottom: 32px; }
  .contact-lines p { font-size: 1rem; }
  .hero-actions .btn, .cta-copy .btn, .close-actions .btn, .post-cta .btn { width: 100%; }

  /* Compact footer: two link columns, 44px tap rows made from padding rather than extra spacing */
  .site-footer { padding-block: 44px calc(24px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; gap: 12px; }
  .footer-title { margin-bottom: 2px; }
  .footer-bottom { margin-top: 28px; padding-top: 12px; gap: 4px; }
  .footer-bottom ul { gap: 20px; }
  /* Breadcrumb stays on one line: the last (long) crumb is shortened with an ellipsis instead of wrapping under a stray slash */
  .breadcrumb ol { flex-wrap: nowrap; }
  .breadcrumb li { flex: none; }
  .breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; }
  .breadcrumb li:last-child > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
