/* ============================================================
   Eduard Dumitrascu - personal site
   Clean · light · minimal (Apple/Stripe-inspired)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-tint:   #f6f7f9;
  --ink:       #0c1116;
  --ink-soft:  #4a5560;
  --ink-faint: #8a949e;
  --line:      #e7eaee;
  --accent:    #1453ff;     /* refined electric blue */
  --accent-ink:#0b3bcc;
  --dark:      #0c1320;
  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;
  --shadow:    0 10px 40px -18px rgba(12, 19, 32, .22);
  --shadow-sm: 0 4px 18px -10px rgba(12, 19, 32, .25);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:'Fraunces', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.22rem; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow--light { color: #9fc0ff; }

.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 36em; }
.section-sub { font-size: 1.06rem; color: var(--ink-soft); max-width: 40em; margin-top: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .96rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #eef2ff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 2rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 600; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--dark); color: #fff;
  font-family: var(--font-serif); font-size: 1rem; letter-spacing: .02em;
}
.brand-name { font-size: 1.02rem; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { font-size: .94rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 1.4rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: center; }
.hero-copy h1 { margin: .4rem 0 1.4rem; }
.hero-actions { display: flex; gap: 1rem; margin: 2rem 0 1.8rem; flex-wrap: wrap; }
.hero-quote { font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); border-left: 3px solid var(--accent); padding-left: 1rem; }

.hero-visual { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(150deg, #dfe7ff, #eef1f6 55%, #e7ecf4);
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-fallback {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: var(--font-serif); font-size: 6rem; color: #b9c6e8;
}
.portrait--placeholder .portrait-fallback { display: grid; }

.floating-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .85rem 1.05rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.fc-num { font-family: var(--font-serif); font-size: 1.5rem; color: var(--accent); line-height: 1; }
.fc-label { font-size: .72rem; color: var(--ink-soft); margin-top: .3rem; line-height: 1.3; }
.fc-1 { top: 8%; left: -34px; }
.fc-2 { bottom: 18%; right: -30px; }
.fc-3 { bottom: -22px; left: 14%; }

/* ---------- Trust bar ---------- */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2.2rem 0; background: var(--bg-tint); }
.trust-label { text-align: center; font-size: .82rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 1.1rem; }
.logos { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.6rem; }
.logos li { font-family: var(--font-serif); font-size: 1.25rem; color: #9aa4b0; font-weight: 500; opacity: .85; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 52em; margin-bottom: 3rem; }
.section-head h2 { margin-top: .2rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; }
.about-body p { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1.06rem; }
.about-body strong { color: var(--ink); font-weight: 600; }
.pull-quote {
  font-family: var(--font-serif); font-style: italic; font-size: 1.45rem;
  line-height: 1.4; color: var(--ink); margin-top: 1.8rem;
  padding: 1.4rem 0 .2rem; border-top: 1px solid var(--line);
}

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.6rem; }
.stat-num { font-family: var(--font-serif); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--accent); line-height: 1; }
.stat-suffix { font-family: var(--font-serif); font-size: 1.6rem; color: var(--accent); }
.stat p { margin-top: .8rem; font-size: .95rem; color: var(--ink-soft); }

/* Cards (roles) */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dae2; }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.card-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-weight: 600; font-size: .9rem; }
.card-link:hover { color: var(--accent-ink); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.project { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.project-img {
  aspect-ratio: 16/10;
  background-image: linear-gradient(0deg, rgba(12,19,32,.12), rgba(12,19,32,.04)), var(--img);
  background-size: cover; background-position: center;
  background-color: #dfe5ee;
}
.project-body { padding: 1.5rem 1.5rem 1.7rem; }
.project-body h3 { margin-bottom: .5rem; }
.project-body p { color: var(--ink-soft); font-size: .96rem; }

/* Articles */
.articles-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.article {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.article:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dae2; }
.article-tag { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.article h3 { margin: .7rem 0 .5rem; }
.article p { color: var(--ink-soft); font-size: .96rem; }
.article-go { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--ink); }

/* Video */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.video { display: block; }
.video-thumb {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background-image: linear-gradient(0deg, rgba(12,19,32,.35), rgba(12,19,32,.05)), var(--thumb);
  background-size: cover; background-position: center; background-color: #c9d2de;
  display: grid; place-items: center; transition: transform .2s ease;
}
.video:hover .video-thumb { transform: translateY(-4px); box-shadow: var(--shadow); }
.play {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.92);
  color: var(--accent); display: grid; place-items: center; font-size: 1.1rem;
  padding-left: 3px; box-shadow: var(--shadow-sm);
}
.video h3 { margin-top: 1rem; font-size: 1.05rem; }
.video-cta { text-align: center; margin-top: 2.6rem; }

/* Speaking */
.speaking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.speaking-intro .btn { margin-top: 1.6rem; }
.speaking-list { list-style: none; }
.speaking-list li {
  display: flex; gap: 1.5rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.sp-year { font-family: var(--font-serif); color: var(--accent); width: 3.5rem; flex: none; font-size: 1.05rem; }
.sp-name { font-weight: 500; }

/* Contact */
.section--dark { background: var(--dark); color: #e9eef6; }
.section--dark h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-intro p { color: #aeb9c9; max-width: 32em; margin-bottom: 1.8rem; }
.contact-details { list-style: none; display: grid; gap: .8rem; }
.contact-details a { color: #fff; font-size: 1.08rem; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 2px; transition: border-color .2s; }
.contact-details a:hover { border-color: var(--accent); }

.contact-form { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .85rem; color: #aeb9c9; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: .8rem 1rem; color: #fff; font-family: inherit; font-size: .98rem;
  transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7686; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.contact-form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.hidden { display: none; }

/* Footer */
.site-footer { background: #07101f; color: #9fb0c5; padding: 3rem 0; }
.footer-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand strong { color: #fff; display: block; font-size: 1rem; }
.footer-brand span { font-size: .82rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { font-size: .9rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: .82rem; width: 100%; padding-top: 1.4rem; margin-top: .4rem; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Reveal animation (only hide when JS is active) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .about-grid, .speaking-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .projects-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem 28px 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0;
  }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .stats-grid, .cards-grid, .projects-grid, .video-grid { grid-template-columns: 1fr; }
  .fc-1 { left: -8px; } .fc-2 { right: -8px; } .fc-3 { left: 8%; }
}

/* ============================================================
   Master audit fixes - appended overrides (later source wins)
   ============================================================ */

/* Contrast (WCAG 1.4.3) */
:root { --ink-faint: #5f6975; }
.logos li { color: #5f6975; opacity: 1; }

/* Visible focus (WCAG 2.4.7) */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.section--dark a:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.btn-light:focus-visible {
  outline: 2px solid #9fc0ff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(20, 83, 255, .45);
}

/* Screen-reader-only + skip link */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: .6rem 1rem;
  border-radius: 8px; transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* Sticky header: solid fallback, glass where supported */
.site-header { background: rgba(255, 255, 255, .92); }
@supports ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .site-header {
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
  }
}

/* Hero no longer clips its floating cards */
.hero { overflow: visible; }
body { overflow-x: hidden; }

/* Counter digits do not jitter */
.stat-num, .fc-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Scroll-spy active nav */
.nav-links a[aria-current="true"] { color: var(--accent); }

/* Larger hamburger hit area */
.nav-toggle { padding: 11px; }

/* Stat source caption */
.stat-src { display: block; margin-top: .5rem; font-size: .74rem; color: var(--ink-faint); }

/* aspect-ratio fallback for Safari <15 / old WebView */
@supports not (aspect-ratio: 1) {
  .portrait { height: 0; padding-top: 125%; }
  .project-img { position: relative; height: 0; padding-top: 62.5%; }
  .video-thumb { position: relative; height: 0; padding-top: 56.25%; }
}

/* Touch: don't latch hover-lift on tap */
@media (hover: none) {
  .btn:hover, .card:hover, .article:hover, .project:hover { transform: none; }
  .video:hover .video-thumb { transform: none; }
}

/* Reduced motion hardening */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover, .card:hover, .project:hover,
  .article:hover, .video:hover .video-thumb { transform: none !important; }
}

/* Tablet: pull floating cards inward so labels never clip */
@media (max-width: 960px) {
  .fc-1 { left: 0; } .fc-2 { right: 0; }
}

/* Mobile */
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .site-header.menu-open .nav-links a {
    display: block; padding: .85rem 0; min-height: 44px; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .nav-links {
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .field input, .field textarea, .field select { font-size: 16px; }
}

/* Print stylesheet */
@media print {
  .site-header, .nav-toggle, .contact-form, .video-cta, .newsletter-form { display: none !important; }
  .section--dark { background: #fff !important; color: #000 !important; }
  .section--dark h2, .contact-details a { color: #000 !important; }
  body { color: #000 !important; background: #fff !important; }
  .card, .project, .article, .stat { box-shadow: none !important; border-color: #ccc !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}

/* ---------- Hero aux line ---------- */
.hero-aux { font-size: .92rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.hero-aux a { color: var(--accent); font-weight: 600; }

/* ---------- Contact form: select + consent ---------- */
.field select {
  width: 100%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: .8rem 1rem; color: #fff; font-family: inherit; font-size: .98rem;
}
.field select option { color: #111; }
.field select:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.09); }
.form-consent { font-size: .85em; color: #aeb9c9; margin: .2em 0 1.2em; }
.form-consent a { color: #9fc0ff; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq-list summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .25s ease; color: var(--accent); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: .75rem 0 0; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Press ---------- */
.press-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding: 0; }
.press-list a { display: flex; flex-direction: column; gap: .45rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.press-list a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4dae2; }
.press-outlet { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); }
.press-title { font-size: .92rem; color: var(--ink-soft); }
@media (max-width: 960px) { .press-list { grid-template-columns: 1fr; } }

/* ---------- Signature talks ---------- */
.talks { margin-bottom: 2.2rem; }
.talks-head { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-faint); font-family: var(--font-sans); font-weight: 600; margin-bottom: 1rem; }
.talks-grid { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.talk { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.2rem 1.4rem; }
.talk h4 { font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem; margin-bottom: .35rem; }
.talk p { color: var(--ink-soft); font-size: .95rem; margin-bottom: .5rem; }
.talk-fit { font-size: .78rem; color: var(--accent); font-weight: 600; }

/* ---------- Section note (illustrative imagery) ---------- */
.section-note { margin-top: 1.6rem; font-size: .82rem; color: var(--ink-faint); text-align: center; }

/* ---------- Newsletter band ---------- */
.newsletter-band { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.newsletter-form input[type=email] { flex: 1 1 220px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .85rem 1.3rem; font: inherit; font-size: 16px; color: var(--ink); }
.newsletter-note { flex-basis: 100%; font-size: .8rem; color: var(--ink-faint); margin-top: .2rem; }
@media (max-width: 960px) { .newsletter-band { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Highlights (power band under hero) ---------- */
.highlights { padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hl-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.7rem; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.hl-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--accent), #6b9bff); }
.hl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d4dae2; }
.hl-kicker { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; color: var(--ink-faint); margin-bottom: .65rem; }
.hl-figure { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1; color: var(--accent); margin-bottom: .7rem; }
.hl-card p { color: var(--ink-soft); font-size: .97rem; line-height: 1.55; }
.hl-card strong { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .highlights-grid { grid-template-columns: 1fr; } }

/* ---------- Hero portrait crop (landscape source → portrait box) ---------- */
.portrait img { object-position: 1% center; }

/* ============================================================
   Accessibility widget + user preference modes
   ============================================================ */

/* Floating button */
.a11y-fab {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff;
  background: var(--accent); color: #fff; cursor: pointer;
  box-shadow: 0 10px 28px -8px rgba(20, 83, 255, .7);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, background .2s ease;
}
.a11y-fab:hover { transform: translateY(-2px) scale(1.04); background: var(--accent-ink); }
.a11y-fab svg { width: 30px; height: 30px; }

/* Panel */
.a11y-panel {
  position: fixed; left: 20px; bottom: 86px; z-index: 1001;
  width: 330px; max-width: calc(100vw - 40px);
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 24px 70px -22px rgba(12, 19, 32, .45);
  padding: 1.1rem 1.2rem 1.3rem; font-family: var(--font-sans);
  max-height: calc(100vh - 120px); overflow: auto;
  display: none;
}
.a11y-panel[data-open="true"] { display: block; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.a11y-head h2 { font-family: var(--font-sans); font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
.a11y-close { background: none; border: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 4px 8px; border-radius: 8px; }
.a11y-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--ink-faint); margin: .6rem 0 .5rem; }

/* Text size stepper */
.a11y-size { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.a11y-size button {
  flex: 1; min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; font-size: 1.05rem;
}
.a11y-size button:hover { border-color: var(--accent); }
.a11y-size .a11y-size-val { flex: 1.2; text-align: center; font-weight: 600; font-size: .95rem; }

/* Toggle grid */
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-opt {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: .75rem .5rem; min-height: 72px; border: 1px solid var(--line);
  border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer;
  font-size: .8rem; line-height: 1.2; text-align: center;
}
.a11y-opt svg { width: 22px; height: 22px; }
.a11y-opt:hover { border-color: var(--accent); }
.a11y-opt[aria-pressed="true"] { border-color: var(--accent); background: rgba(20, 83, 255, .09); color: var(--accent-ink); font-weight: 600; }
.a11y-reset { margin-top: .9rem; width: 100%; min-height: 44px; border: 1px solid var(--line); background: var(--bg-tint); color: var(--ink); border-radius: 10px; cursor: pointer; font: inherit; font-weight: 600; }
.a11y-reset:hover { border-color: var(--accent); color: var(--accent-ink); }

/* Reading guide bar */
.a11y-guide { position: fixed; left: 0; right: 0; height: 2.4em; pointer-events: none; z-index: 999; background: rgba(20, 83, 255, .10); border-top: 2px solid rgba(20, 83, 255, .55); border-bottom: 2px solid rgba(20, 83, 255, .55); display: none; }
html.a11y-guide-on .a11y-guide { display: block; }

/* ---- MODE: High contrast ---- */
html.a11y-contrast {
  --ink: #000; --ink-soft: #161616; --ink-faint: #2a2a2a; --line: #000;
  --bg: #fff; --bg-tint: #fff; --accent: #0030c0; --accent-ink: #001e80;
}
html.a11y-contrast body { background: #fff; color: #000; }
html.a11y-contrast .section--tint, html.a11y-contrast .trustbar { background: #fff; }
html.a11y-contrast .section--dark { background: #000; color: #fff; }
html.a11y-contrast .section--dark h2, html.a11y-contrast .contact-details a { color: #fff; }
html.a11y-contrast .card, html.a11y-contrast .project, html.a11y-contrast .article,
html.a11y-contrast .stat, html.a11y-contrast .hl-card, html.a11y-contrast .press-list a,
html.a11y-contrast .talk, html.a11y-contrast .faq-list details { border-color: #000 !important; }
html.a11y-contrast a:not(.btn):not(.a11y-opt) { text-decoration: underline; }
html.a11y-contrast .btn-primary { background: #0030c0; color: #fff; }
html.a11y-contrast .logos li, html.a11y-contrast .eyebrow, html.a11y-contrast .stat-src,
html.a11y-contrast .section-note, html.a11y-contrast .talk-fit { color: #000; }

/* ---- MODE: Readable / legible font ---- */
html.a11y-readable { --font-sans: 'Verdana', 'Tahoma', Arial, sans-serif; --font-serif: 'Verdana', 'Tahoma', Arial, sans-serif; }
html.a11y-readable body { letter-spacing: .03em; word-spacing: .08em; line-height: 1.85; }
html.a11y-readable h1 { line-height: 1.25; }

/* ---- MODE: Highlight links ---- */
html.a11y-links a:not(.btn):not(.a11y-opt):not(.a11y-fab) {
  text-decoration: underline; text-underline-offset: 3px;
  background: rgba(20, 83, 255, .14); box-shadow: 0 0 0 2px rgba(20, 83, 255, .18);
  border-radius: 3px;
}
html.a11y-contrast.a11y-links a:not(.btn) { background: #ff0; color: #000; box-shadow: 0 0 0 2px #000; }

/* ---- MODE: Pause animations ---- */
html.a11y-motion-off *, html.a11y-motion-off *::before, html.a11y-motion-off *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.a11y-motion-off .reveal { opacity: 1 !important; transform: none !important; }

/* ---- MODE: Big cursor ---- */
html.a11y-bigcursor, html.a11y-bigcursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='42' height='42' viewBox='0 0 42 42'%3E%3Cpath d='M7 3l25 15-11 2.2 6 12.5-5.2 2.4-6-12.6L8 30z' fill='%23000' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* Widget responsive */
@media (max-width: 480px) {
  .a11y-fab { left: 14px; bottom: 14px; }
  .a11y-panel { left: 14px; right: 14px; width: auto; bottom: 78px; }
}
@media print { .a11y-fab, .a11y-panel, .a11y-guide { display: none !important; } }

/* ============================================================
   Nav responsive (authoritative) - collapse the LINKS to a hamburger
   before they overflow. The CTA stays a real button OUTSIDE .nav-links:
   visible on desktop + tablet, hidden on phone (sticky CTA covers it).
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }
  .nav-cta { margin-left: 1rem; }
  .site-header.menu-open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 1rem 28px 1.5rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0;
    max-height: calc(100vh - 72px); overflow-y: auto; z-index: 60;
  }
  .site-header.menu-open .nav-links a {
    display: block; padding: .85rem 0; min-height: 44px; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .nav-links a:last-child { border-bottom: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 720px) {
  .nav-cta { display: none; } /* phone: hamburger + sticky CTA cover it */
}

/* Mobile sticky contact CTA (auto-hides when #contact is in view) */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 84px;
    z-index: 60; justify-content: center; align-items: center; min-height: 48px;
    padding: .9rem 1rem; background: var(--accent); color: #fff; font-weight: 600;
    border-radius: 999px; box-shadow: 0 10px 26px -8px var(--accent); text-decoration: none;
  }
  .mobile-cta.is-hidden { display: none; }
}

/* Header layout hardening - brand & CTA never wrap, tidy link spacing */
.brand { flex: none; }
.brand-name { white-space: nowrap; }
.nav-links { gap: 1.25rem; flex-wrap: nowrap; }
.nav-links a { white-space: nowrap; }
.nav-cta { flex: none; white-space: nowrap; }
