:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --surface-soft: #f1f1ee;
  --text: #222321;
  --muted: #6d6f69;
  --line: #dcded8;
  --accent: #ef6c3e;
  --accent-soft: #fff0ea;
  --dark: #222321;
  --radius: 22px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin: 0 auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--surface-soft); }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(248,248,246,.86); backdrop-filter: blur(14px); transition: .2s ease; }
.site-header.is-scrolled { border-color: var(--line); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: #fff; font-weight: 700; }
.nav { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.nav a:hover, .text-link:hover { color: var(--accent); }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--dark); color: #fff; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: #353633; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(54px, 6.4vw, 86px); max-width: 840px; }
h2 { font-size: clamp(38px, 4.4vw, 58px); max-width: 800px; }
h3 { font-size: 27px; }

.hero { padding-top: 86px; padding-bottom: 112px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.hero-lead { max-width: 660px; margin: 28px 0 0; color: var(--muted); font-size: 20px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.text-link { font-weight: 700; transition: color .2s ease; }
.hero-visual { min-height: 470px; position: relative; }

.section-heading { margin-bottom: 42px; }
.section-heading p, .section-intro { color: var(--muted); max-width: 680px; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { min-height: 390px; padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.service-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.service-icon svg { width: 31px; height: 31px; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.service-card p { max-width: 540px; color: var(--muted); font-size: 17px; }
.service-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 34px; }
.price strong { display: block; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.price span { color: var(--muted); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chips span { border: 1px solid var(--line); background: var(--surface-soft); border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 600; }

.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.sticky-heading { position: sticky; top: 120px; }
.process-list { border-top: 1px solid var(--line); }
.process-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.process-item > span { color: var(--accent); font-size: 14px; font-weight: 700; padding-top: 5px; }
.process-item p { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.about-note { padding-top: 18px; border-top: 1px solid var(--line); }

.availability-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.availability-box { min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.availability-box span { color: var(--muted); font-size: 14px; font-weight: 600; }
.availability-box strong { font-size: 21px; letter-spacing: -.03em; }
.availability-cta { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.availability-cta a { color: var(--text); font-weight: 700; }

.contact-section { background: var(--dark); color: #fff; }
.contact-section .eyebrow { color: #ff8a60; }
.contact-section .eyebrow::before { background: #ff8a60; }
.contact-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.contact-copy p { max-width: 520px; font-size: 18px; color: rgba(255,255,255,.68); }
.contact-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-points span { border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 9px 13px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.83); }
.contact-form { padding: 30px; border-radius: 26px; background: #fff; color: var(--text); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: block; margin-bottom: 16px; }
label > span, legend { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 13px 14px; color: var(--text); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(239,108,62,.09); }
textarea { resize: vertical; }
.hidden-field { position: absolute; overflow: hidden; clip: rect(0 0 0 0); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }
.checkbox-fieldset { margin: 2px 0 18px; padding: 0; border: 0; }
.checkbox-fieldset legend { width: 100%; margin-bottom: 10px; }
.checkbox-fieldset legend small { margin-left: 6px; color: var(--muted); font-weight: 500; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.check-option { position: relative; margin: 0; cursor: pointer; }
.check-option input { position: absolute; opacity: 0; pointer-events: none; }
.check-option > span { display: flex; min-height: 74px; flex-direction: column; justify-content: center; margin: 0; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; transition: .18s ease; }
.check-option strong { font-size: 14px; }
.check-option small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.check-option input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.check-option input:focus-visible + span { outline: 3px solid rgba(239,108,62,.18); outline-offset: 2px; }
.btn-submit { width: 100%; margin-top: 4px; background: var(--accent); }
.btn-submit:hover { background: #da5b31; }
.form-status { min-height: 22px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.footer { background: #171816; color: rgba(255,255,255,.62); }
.footer-inner { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; }
.footer a { color: #fff; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .58s ease, transform .58s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (max-width: 980px) {
  .section { padding: 82px 0; }
  .nav { display: none; }
  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { min-height: 390px; max-width: 620px; width: 100%; }
  .process-layout, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .sticky-heading { position: static; }
  .availability-grid { grid-template-columns: repeat(3, 1fr); }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 66px 0; }
  .nav-wrap { min-height: 68px; }
  .site-header .btn-small { display: none; }
  h1 { font-size: clamp(43px, 12.7vw, 59px); }
  h2 { font-size: clamp(34px, 9.8vw, 46px); }
  h3 { font-size: 25px; }
  .hero { padding: 44px 0 72px; }
  .hero-grid { gap: 38px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-meta { margin-top: 34px; gap: 8px 18px; }
  .hero-visual { min-height: 310px; }
  .service-grid, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 26px; }
  .service-bottom { align-items: flex-start; flex-direction: column; }
  .chips { justify-content: flex-start; }
  .process-item { grid-template-columns: 42px 1fr; gap: 12px; }
  .availability-grid { grid-template-columns: 1fr 1fr; }
  .availability-box { min-height: 126px; padding: 19px; }
  .availability-grid .availability-box:last-child { grid-column: 1 / -1; min-height: 105px; }
  .availability-cta { flex-direction: column; gap: 6px; }
  .contact-form { padding: 20px; border-radius: 20px; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; }
  .checkbox-fieldset legend small { display: block; margin: 2px 0 0; }
  .footer-inner { min-height: 100px; align-items: flex-start; justify-content: center; flex-direction: column; padding: 22px 0; }
}

@media (max-width: 420px) { .checkbox-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* v4 refinements */
.brand { background: var(--accent); }
.nav-wrap { justify-content: space-between; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.eyebrow::before { display: none; }
.contact-section .eyebrow::before { display: none; }
.process-item { grid-template-columns: 58px 1fr; }
.process-item > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 980px) {
  .nav-actions { gap: 0; }
}
@media (max-width: 640px) {
  .nav-actions { margin-left: auto; }
  .process-item { grid-template-columns: 46px 1fr; gap: 14px; }
  .process-item > span { width: 38px; height: 38px; }
}

/* v6: interactive flashcards + simplified about */
.hero-grid { grid-template-columns: 1.02fr .98fr; gap: 76px; }
.hero-visual { min-height: 500px; display: grid; place-items: center; }
.flashcard-deck { position: relative; width: min(100%, 500px); height: 390px; isolation: isolate; }
.flashcard {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 360px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: 0 26px 70px rgba(34,35,33,.09);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform-origin: 50% 110%;
  backface-visibility: hidden;
  transition: transform .45s cubic-bezier(.22,.8,.25,1), opacity .35s ease, box-shadow .3s ease;
  overflow: hidden;
}
.flashcard:nth-child(1) { transform: translate(0,0) rotate(0deg); z-index: 4; }
.flashcard:nth-child(2) { transform: translate(16px,14px) rotate(2deg); z-index: 3; }
.flashcard:nth-child(3) { transform: translate(30px,28px) rotate(4deg); z-index: 2; }
.flashcard:nth-child(4) { transform: translate(42px,40px) rotate(5.5deg); z-index: 1; }
.flashcard.is-leaving { transform: translate(-120%, 18px) rotate(-13deg) !important; opacity: 0; pointer-events: none; }
.flashcard.is-returning { transition: none; }
.flashcard-kicker { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.flashcard-problem { margin-top: 72px; font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.055em; line-height: 1.02; }
.flashcard-rule { width: 64px; height: 3px; margin: 24px 0 18px; border-radius: 999px; background: var(--accent); }
.flashcard-answer { font-size: 18px; font-weight: 700; }
.flashcard small { margin-top: auto; padding-top: 36px; color: var(--muted); font-size: 12px; font-weight: 600; }
.flashcard-cta { background: var(--accent); color: #fff; border-color: transparent; cursor: pointer; justify-content: flex-start; }
.flashcard-cta .flashcard-kicker { color: rgba(255,255,255,.72); }
.flashcard-cta strong { max-width: 360px; margin-top: 48px; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.05em; }
.flashcard-cta > span:not(.flashcard-kicker) { margin-top: auto; padding-right: 54px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.flashcard-cta i { position: absolute; right: 32px; bottom: 27px; font-style: normal; font-size: 28px; }


.about-simple { display: grid; grid-template-columns: .42fr .58fr; gap: 80px; align-items: center; }
.about-photo-wrap { display: flex; justify-content: center; }
.photo-placeholder-large {
  width: min(100%, 310px);
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: var(--surface);
  border: 1px dashed #bfc2ba;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}
.about-content h2 { max-width: 650px; }
.about-lead { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.about-facts { margin-top: 34px; border-top: 1px solid var(--line); }
.about-facts p { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 190px 1fr; gap: 24px; }
.about-facts strong { font-size: 15px; }
.about-facts span { color: var(--muted); font-size: 15px; }
.about-content .about-note { margin-top: 24px; padding: 0; border: 0; color: var(--muted); font-size: 15px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 450px; }
  .flashcard-deck { width: min(92%, 570px); }
  .about-simple { grid-template-columns: 1fr; gap: 42px; }
  .about-photo-wrap { justify-content: flex-start; }
  .photo-placeholder-large { width: 260px; }
}

@media (max-width: 640px) {
  .hero-visual { min-height: 390px; }
  .flashcard-deck { width: calc(100% - 34px); height: 335px; }
  .flashcard { min-height: 315px; padding: 24px; border-radius: 22px; }
  .flashcard:nth-child(2) { transform: translate(9px,10px) rotate(1.5deg); }
  .flashcard:nth-child(3) { transform: translate(17px,19px) rotate(3deg); }
  .flashcard:nth-child(4) { transform: translate(24px,28px) rotate(4deg); }
  .flashcard-problem { margin-top: 48px; font-size: 37px; }
  .flashcard-cta strong { margin-top: 34px; font-size: 30px; }
  .flashcard small { padding-top: 24px; }
  .photo-placeholder-large { width: min(72vw, 270px); }
  .about-facts p { grid-template-columns: 1fr; gap: 5px; }
}

/* v10: real about photo */
.about-simple {
  grid-template-columns: .38fr .62fr;
  gap: 56px;
  align-items: stretch;
}
.about-photo-wrap {
  align-items: flex-start;
  align-self: stretch;
}
.about-photo-wrap .about-photo-card {
  position: sticky;
  top: 104px;
  width: min(100%, 390px);
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(34,35,33,.08);
  background: #d7d7d3;
  box-shadow: 0 22px 50px rgba(34,35,33,.09);
}
.about-photo-card {
  position: relative;
}
.about-photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.02) brightness(.98);
}
.about-facts p {
  grid-template-columns: 180px 1fr;
}
@media (max-width: 980px) {
  .about-simple {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: start;
  }
  .about-photo-wrap {
    align-self: auto;
  }
  .about-photo-wrap .about-photo-card {
    position: static;
    width: min(100%, 420px);
  }
}
@media (max-width: 640px) {
  .about-photo-wrap .about-photo-card {
    width: 100%;
    max-width: 360px;
    border-radius: 24px;
  }
}


/* v12: responsive refinements only */
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .2s ease, top .2s ease;
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.about-body { min-width: 0; }

/* Hero switches to a centered single-column layout as soon as cards move below copy. */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }
  .hero-copy {
    width: 100%;
    text-align: center;
  }
  .hero-copy h1 {
    max-width: none;
    width: 100%;
  }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-lead {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions { justify-content: center; }
  .hero-visual {
    width: 100%;
    max-width: none;
    min-height: 455px;
    overflow: clip;
  }
  .flashcard-deck {
    width: min(calc(100% - 92px), 520px);
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .nav-wrap { position: relative; }
  .nav-actions { gap: 10px; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .nav {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(330px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 45px rgba(34,35,33,.12);
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    padding: 12px 13px;
    border-radius: 10px;
    color: var(--text);
    font-weight: 600;
  }
  .nav a:hover { background: var(--surface-soft); }

  /* About tablet: 40% photo + 60% heading, body aligns full-width beneath. */
  .about-simple {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: 38px;
    row-gap: 34px;
    align-items: start;
  }
  .about-content { display: contents; }
  .about-photo-wrap {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }
  .about-heading {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .about-heading h2 {
    max-width: none;
    font-size: clamp(36px, 5.3vw, 52px);
  }
  .about-body {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .about-photo-wrap .about-photo-card {
    position: static;
    width: 100%;
    max-width: 390px;
  }
  .about-lead { max-width: 840px; }
}

/* Service cards need more room than a phone-only breakpoint. */
@media (max-width: 780px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
}

@media (max-width: 640px) {
  .nav-actions { gap: 0; }
  .menu-toggle { display: block; }
  .nav { right: 0; width: min(310px, calc(100vw - 28px)); }

  .hero-copy { text-align: center; }
  .hero-copy .eyebrow { width: 100%; justify-content: center; }
  .hero-actions {
    align-items: center;
    justify-content: center;
  }
  .hero-visual {
    min-height: 390px;
    overflow: clip;
  }
  .flashcard-deck {
    width: calc(100% - 52px);
    max-width: 500px;
  }

  /* About mobile: heading first, then photo left and text right. */
  .about-simple {
    grid-template-columns: minmax(118px, .42fr) minmax(0, .58fr);
    column-gap: 18px;
    row-gap: 28px;
  }
  .about-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .about-heading h2 {
    font-size: clamp(34px, 9.8vw, 46px);
  }
  .about-photo-wrap {
    grid-column: 1;
    grid-row: 2;
  }
  .about-body {
    grid-column: 2;
    grid-row: 2;
  }
  .about-photo-wrap .about-photo-card {
    width: 100%;
    max-width: none;
    border-radius: 22px;
  }
  .about-lead {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.5;
  }
  .about-facts { margin-top: 20px; }
  .about-facts p {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 13px 0;
  }
  .about-facts strong,
  .about-facts span,
  .about-content .about-note { font-size: 12px; }
  .about-content .about-note { margin-top: 16px; line-height: 1.45; }
}

@media (max-width: 430px) {
  .about-simple {
    grid-template-columns: minmax(105px, .4fr) minmax(0, .6fr);
    column-gap: 14px;
  }
  .about-lead { font-size: 14px; }
  .about-facts p { padding: 10px 0; }
  .about-facts strong,
  .about-facts span,
  .about-content .about-note { font-size: 11px; }
}

/* v13: narrow viewport fixes — desktop layout remains unchanged */

/* Once hero stacks, give the whole deck enough real vertical room.
   No clipping: rotated cards may extend naturally to the bottom edge. */
@media (max-width: 1080px) {
  body {
    overflow-x: clip;
  }

  .hero {
    overflow: visible;
  }

  .hero-visual {
    min-height: 430px;
    height: 430px;
    overflow: visible;
    align-items: start;
  }

  .flashcard-deck {
    height: 420px;
    width: min(calc(100% - 110px), 520px);
  }
}

/* Mobile About:
   heading full width;
   photo left + intro right;
   achievements and final note full width below. */
@media (max-width: 640px) {
  .hero-visual {
    min-height: 365px;
    height: 365px;
    overflow: visible;
  }

  .flashcard-deck {
    height: 355px;
    width: calc(100% - 58px);
  }

  .about-simple {
    grid-template-columns: minmax(112px, 40%) minmax(0, 60%);
    column-gap: 18px;
    row-gap: 24px;
    align-items: start;
  }

  .about-content {
    display: contents;
  }

  .about-heading {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .about-photo-wrap {
    grid-column: 1;
    grid-row: 2;
  }

  .about-body {
    display: contents;
  }

  .about-lead {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 0;
    max-width: none;
    font-size: 15px;
    line-height: 1.52;
  }

  .about-facts {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 2px;
  }

  .about-note {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0 !important;
  }

  .about-photo-wrap .about-photo-card {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
  }

  .about-facts p {
    grid-template-columns: minmax(118px, .38fr) 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .about-facts strong,
  .about-facts span {
    font-size: 12px;
  }

  .about-content .about-note {
    font-size: 12px;
    line-height: 1.5;
  }
}

@media (max-width: 430px) {
  .hero-visual {
    min-height: 350px;
    height: 350px;
  }

  .flashcard-deck {
    height: 342px;
    width: calc(100% - 48px);
  }

  .about-simple {
    grid-template-columns: minmax(102px, 39%) minmax(0, 61%);
    column-gap: 14px;
  }

  .about-lead {
    font-size: 13px;
    line-height: 1.47;
  }

  .about-facts p {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 11px 0;
  }

  .about-facts strong,
  .about-facts span,
  .about-content .about-note {
    font-size: 11px;
  }
}

/* v14: CTA flashcard keeps its orange identity at every breakpoint. */
.flashcard-deck .flashcard-cta,
.flashcard-deck .flashcard-cta:not(.is-active) {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.flashcard-deck .flashcard-cta .flashcard-kicker,
.flashcard-deck .flashcard-cta:not(.is-active) .flashcard-kicker {
  color: rgba(255,255,255,.72);
}

/* Keep the interactive deck outside reveal compositing. */
.hero-grid {
  opacity: 1;
  transform: none;
}
