:root{
  --bg:#fff7e3; /* warm bright cream */
  --paper:#fffaf0; /* bright ivory card */
  --ink:#12263f;
  --navy:#112944;
  --green:#2f766c;
  --green-dark:#21584f;
  --sage:#dce8de;
  --sage-strong:#b8d0c1;
  --gold:#c59a47;
  --line:#e7d7bd;
  --soft:#f5eddf; /* warm pale cream */
  --muted:#5d6c6d;
  --white:#ffffff;
  --radius:18px;
  --shadow:0 10px 30px rgba(18,38,63,.07);
  --max:1160px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
a{color:var(--green-dark);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.12;margin:0 0 .7em;color:var(--ink)}
h1{font-size:clamp(2.3rem,5vw,4.6rem);max-width:900px}
h2{font-size:clamp(1.8rem,3vw,2.8rem)}
h3{font-size:1.35rem}
p{margin:.5em 0 1.2em}
.site-header{position:sticky;top:0;z-index:20;background:rgba(247,242,232,.96);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{max-width:var(--max);margin:auto;padding:14px 24px;display:flex;align-items:center;gap:24px;justify-content:space-between}
.brand{font-family:Georgia,"Times New Roman",serif;font-weight:700;font-size:1.35rem;color:var(--ink);display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-mark{width:44px;height:44px;max-width:44px;max-height:44px;object-fit:cover;border-radius:50%;display:block;flex:0 0 44px}
.nav-links{display:flex;gap:16px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.nav-links a{font-size:.95rem}
.cta-small,.button{display:inline-block;background:var(--green);color:white!important;padding:12px 18px;border-radius:999px;font-weight:700;box-shadow:none;border:1px solid var(--green)}
.cta-small:hover,.button:hover{background:var(--green-dark);text-decoration:none}
.button.secondary{background:transparent;color:var(--green)!important}
.hero{max-width:var(--max);margin:auto;padding:76px 24px 58px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);gap:54px;align-items:center}
.hero .lede{font-size:1.25rem;max-width:760px;color:#3b4945}
.kicker{text-transform:uppercase;letter-spacing:.12em;font-weight:800;font-size:.78rem;color:var(--green);margin-bottom:14px}
.button-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.photo-placeholder{min-height:420px;border-radius:var(--radius);border:1px dashed #9ca9a3;background:linear-gradient(145deg,#f1eadf,#dfe9e2);display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;color:#66736e;font-weight:700;box-shadow:var(--shadow)}
.photo-placeholder.small{min-height:300px}
.trust-strip{background:var(--green);color:white}
.trust-grid{max-width:var(--max);margin:auto;padding:20px 24px;display:grid;grid-template-columns:repeat(3,1fr);gap:18px;text-align:center;font-weight:700}
.section{padding:72px 24px}.section.soft{background:var(--soft)}
.inner{max-width:var(--max);margin:auto}
.grid-2,.grid-3,.grid-4{display:grid;gap:22px}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{background:var(--paper);border:1px solid var(--line);padding:26px;border-radius:var(--radius);box-shadow:var(--shadow)}
.prose{max-width:760px}.prose.large{font-size:1.08rem}
.callout{padding:26px;border-left:4px solid var(--gold);background:var(--paper);border-radius:0 var(--radius) var(--radius) 0;margin:24px 0}
.price{font-family:Georgia,"Times New Roman",serif;font-size:2.8rem;font-weight:700;margin:.2em 0}.old-price{text-decoration:line-through;color:var(--muted);font-size:1.2rem}
.badge{display:inline-block;background:#efe6d4;color:#6d5730;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:800;letter-spacing:.04em}
ul{padding-left:1.2rem}li{margin:.45em 0}
.split{display:grid;grid-template-columns:1.15fr .85fr;gap:42px;align-items:start}
.steps{counter-reset:step}.step{display:grid;grid-template-columns:44px 1fr;gap:14px;margin:18px 0}.step:before{counter-increment:step;content:counter(step);width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:800}
footer{background:#163f3e;color:#f5f2e9;padding:36px 24px}.footer-inner{max-width:var(--max);margin:auto;display:flex;justify-content:space-between;gap:20px}.small{font-size:.9rem;color:var(--muted)}
footer .small{color:#d4ddd8}
.mobile-menu-note{display:none}
@media (max-width:760px){
  .nav{align-items:flex-start}.nav-links{display:none}.mobile-menu-note{display:block;font-size:.88rem;color:var(--muted)}
  .hero{grid-template-columns:1fr;padding-top:52px}.hero .photo-placeholder{min-height:300px}
  .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:1fr}.split{grid-template-columns:1fr}.trust-grid{grid-template-columns:1fr;gap:8px}.grid-2{grid-template-columns:1fr}
}
@media (max-width:600px){
  .nav{padding:12px 16px}.brand{font-size:1.2rem}.brand-mark{width:36px;height:36px;flex-basis:36px}.hero,.section{padding-left:18px;padding-right:18px}.hero{padding-top:38px;gap:28px}.grid-4{grid-template-columns:1fr}.button,.cta-small{width:100%;text-align:center}.button-row{display:grid}.photo-placeholder{min-height:250px}.footer-inner{flex-direction:column}.card{padding:22px}.section{padding-top:54px;padding-bottom:54px}
}

.hero-image{width:100%;height:100%;min-height:420px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow);display:block}
.hero.single{grid-template-columns:1fr;max-width:900px}
@media (max-width:760px){.hero-image{min-height:300px}}
@media (max-width:600px){.hero-image{min-height:240px}}

/* Mobile navigation: hidden on desktop; compact and usable on phones. */
.mobile-menu{display:none;position:relative}
.mobile-menu summary{list-style:none;cursor:pointer;font-weight:800;color:var(--green-dark);border:1px solid var(--line);background:var(--paper);padding:8px 12px;border-radius:999px}
.mobile-menu summary::-webkit-details-marker{display:none}
.mobile-links{position:absolute;right:0;top:46px;width:min(82vw,320px);padding:14px;background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);display:grid;gap:4px}
.mobile-links a{display:block;padding:9px 10px;border-radius:8px}
.mobile-links a:hover{background:var(--soft);text-decoration:none}
.mobile-links .mobile-cta{background:var(--green);color:#fff!important;font-weight:800;text-align:center;margin-top:4px}
@media (max-width:760px){
  .nav{align-items:center}
  .mobile-menu-note{display:none}
  .mobile-menu{display:block;margin-left:auto}
}
@media (max-width:600px){
  .brand span{font-size:1.08rem}
  .brand-mark{width:36px;height:36px;max-width:36px;max-height:36px;flex-basis:36px}
}

/* Approved preview refinements — 9 Sep 2026 */
@media (min-width:761px){
  .hero h1{font-size:clamp(2.8rem,4.35vw,4.15rem);max-width:720px}
  .hero{grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:48px}
  .nav{gap:18px}
  .nav-links{gap:13px}
  .nav-links a{font-size:.89rem}
}
.package-help{margin-top:24px;padding:18px 22px;background:var(--soft);border-radius:14px;text-align:center}
.package-help a{font-weight:800;text-decoration:underline}

#enquiry-vs-diagnostic{scroll-margin-top:90px}


/* Build v6 refinements */
.nav-links.primary{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.nav-links.primary .cta-small{margin-left:4px}
.route-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.testimonial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.testimonial{background:var(--paper);border:1px solid var(--line);padding:24px;border-radius:var(--radius);box-shadow:var(--shadow)}
.testimonial p:last-child{margin-bottom:0}
.quote-mark{font-size:2rem;line-height:1;color:var(--gold);font-family:Georgia,serif;margin-bottom:8px}
.notice{padding:16px 18px;background:#f2efe7;border:1px solid var(--line);border-radius:14px;color:#40514b}
.footer-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.footer-links a{color:#f5f2e9}
.cta-stack{display:grid;gap:12px;align-items:start}
.hero.compact{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr)}
@media (max-width:900px){.route-grid,.testimonial-grid{grid-template-columns:1fr}.nav-links.primary a{font-size:.86rem}}
@media (max-width:760px){.footer-links{justify-content:flex-start}}

/* Final footer address treatment */
footer .small{color:#e7efeb}
footer a.small{color:#f5f2e9;text-decoration:underline;text-underline-offset:2px}

/* Final mobile safety: keep the desktop nav hidden when the compact menu is active. */
@media (max-width:760px){
  .nav-links.primary{display:none}
}

/* OET Knowledge credential */
.credential-panel{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(180px,.7fr);gap:36px;align-items:center;background:var(--cream-2,#fff9f0);border:1px solid rgba(31,111,120,.15);border-radius:24px;padding:34px;}
.credential-copy p{max-width:720px;}
.credential-badge-wrap{display:flex;justify-content:center;align-items:center;}
.credential-badge{width:min(230px,100%);height:auto;display:block;border-radius:18px;}
@media (max-width:760px){.credential-panel{grid-template-columns:1fr;padding:24px;gap:22px}.credential-badge{width:190px}}


/* V2 — 11 Sep 2026: clearer package pages and Professional English pathway */
.compare-cue{
  margin:.9rem 0 0;
  font-weight:800;
  color:var(--green-dark);
}
.package-hero-compact{
  padding-top:44px;
  padding-bottom:28px;
}
.package-hero-compact h1{margin-bottom:.45em}
.package-hero-compact .lede{margin-bottom:.65em}
#coaching-options,#professional-coaching-options{scroll-margin-top:92px}

/* Keep Professional English inside the original Calm OET visual system */
.professional-theme{background:var(--bg)}
.professional-theme .site-header{background:rgba(247,242,232,.96)}
.professional-theme .hero,
.professional-theme .section.soft{background:var(--soft)}
.professional-theme .card{
  background:var(--paper);
  border:1px solid var(--line);
}
.professional-theme .kicker{color:var(--green)}
.professional-theme .button{
  background:var(--green);
  border-color:var(--green);
}
.professional-theme .button:hover{background:var(--green-dark)}
.professional-theme .button.secondary{
  background:transparent;
  color:var(--green)!important;
  border-color:var(--green);
}
.professional-theme .price{color:var(--ink)}
.professional-theme .callout{border-left-color:var(--gold)}
.professional-theme .badge{background:#efe6d4;color:#6d5730}

@media (max-width:760px){
  .package-hero-compact{padding-top:30px;padding-bottom:20px}
}

/* Supported Professional English application form */
form input[type="text"],
form input[type="email"],
form select,
form textarea{
  width:100%;
  box-sizing:border-box;
  padding:.75rem .85rem;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--paper);
  font:inherit;
  color:inherit;
}
form textarea{resize:vertical}
form input:focus,
form select:focus,
form textarea:focus{
  outline:2px solid rgba(183,154,100,.24);
  border-color:var(--gold);
}

/* The Judy Method page */
.method-flow{display:flex;flex-wrap:wrap;align-items:center;gap:.65rem;margin-top:1.4rem;padding:1rem 1.15rem;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.method-flow span{font-weight:800;color:var(--green-dark)} .method-flow b{color:var(--gold);font-size:1.2rem}
.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.5rem}
.method-number{width:2.1rem;height:2.1rem;border-radius:50%;display:grid;place-items:center;background:var(--green);color:white;font-weight:800;margin-bottom:.75rem}
.method-principle{max-width:820px;margin:0 auto}
@media(max-width:900px){.method-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.method-grid{grid-template-columns:1fr}}

/* Resources architecture */
.resource-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.resource-card{height:100%}
@media(max-width:900px){.resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.resource-grid{grid-template-columns:1fr}}

/* About Judy Method CTA visibility */
.method-about-cta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.method-about-cta .button{
  width:auto;
  min-width:240px;
  text-align:center;
}
@media(max-width:600px){
  .method-about-cta .button{width:100%}
}

/* Coaching and prices hub */
.price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px}
.price-card{display:flex;flex-direction:column;align-items:flex-start}
.price-card .button{margin-top:auto}
.choose-this{padding:14px 16px;background:var(--soft);border-left:4px solid var(--gold);border-radius:10px;margin:14px 0 22px}
@media(max-width:820px){.price-grid{grid-template-columns:1fr}}

/* Free resource landing page */
.resource-feature{max-width:820px}
.resource-hero{max-width:920px}
.resource-hero .lede{max-width:760px}

/* Exact original Calm OET colour-role restoration */
h1,h2,h3,.brand,.nav-links a{color:var(--navy)}
.site-header{background:rgba(255,250,242,.97)}
.button,.cta-small{background:var(--green);border-color:var(--green);color:#fff!important}
.button:hover,.cta-small:hover{background:var(--green-dark);border-color:var(--green-dark)}
.button.secondary{background:transparent;color:var(--navy)!important;border-color:var(--sage-strong)}
.card,.panel,.hero-card{background:rgba(255,250,242,.96)}
.section.soft{background:linear-gradient(90deg,rgba(220,232,222,.72),rgba(248,243,234,.90))}
footer{background:var(--navy);color:#f7f2e8}
footer a{color:#f7f2e8}
.kicker{color:var(--green-dark)}

/* Bright-cream Calm OET variant */
body{background:var(--bg)}
.site-header{background:rgba(255,253,247,.98)}
.card,.panel,.hero-card{background:rgba(255,253,247,.98)}
.section.soft{background:linear-gradient(90deg,rgba(220,232,222,.62),rgba(255,248,232,.96))}

/* Warm bright Calm OET finish */
html,body{background:var(--bg)}
main{background:var(--bg)}
.hero{background:var(--bg)}
.section:not(.soft){background:var(--bg)}


/* Final visual and mobile refinement */
.section-intro-grid{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);
  gap:36px;
  align-items:center;
  margin-bottom:30px;
}
.section-intro-grid.compact-intro{margin-bottom:24px}
.section-image{
  width:100%;
  height:300px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:block;
}
.team-image{object-position:center center}
.judy-portrait{object-position:center 30%}
.method-image{object-position:center center}

.resource-feature-grid{
  display:grid;
  grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);
  gap:24px;
  align-items:stretch;
}
.resource-feature-grid .resource-image{height:100%;min-height:330px}
.resource-feature-grid .resource-feature{max-width:none;margin:0}

.visual-card{padding:0;overflow:hidden}
.visual-card>img{width:100%;height:220px;object-fit:cover;display:block}
.visual-card-body{padding:24px}
.visual-card-body .button{margin-top:10px}

.price-card .choose-this{line-height:1.55}
.price-card .button{align-self:stretch;text-align:center}

/* Tablets and phones */
@media (max-width:760px){
  .section-intro-grid,
  .resource-feature-grid{grid-template-columns:1fr;gap:22px}
  .section-intro-grid .section-image{order:-1;height:240px}
  .resource-feature-grid .resource-image{min-height:0;height:240px}
  .hero .hero-image{order:-1}
  .homepage-hero .hero-image{order:0}
  .judy-portrait{object-position:center 24%}
  .method-flow{gap:7px}
}

/* Small-phone pass */
@media (max-width:600px){
  .homepage-hero h1{font-size:2.12rem;line-height:1.06}
  .hero h1{font-size:2.22rem;line-height:1.08}
  .hero .lede{font-size:1.08rem;line-height:1.55}
  .hero{padding-top:30px;padding-bottom:42px}
  .section{padding-top:46px;padding-bottom:46px}
  .section-image,
  .section-intro-grid .section-image,
  .resource-feature-grid .resource-image{height:215px}
  .visual-card>img{height:190px}
  .visual-card-body{padding:20px}
  .price-grid{gap:16px}
  .price-card{padding:19px}
  .price-card .price{font-size:2.35rem}
  .choose-this{margin:10px 0 16px;padding:12px 13px}
  .button-row{gap:9px}
  .button,.cta-small{padding:12px 15px}
  .method-flow{font-size:.82rem;line-height:1.4}
  .method-flow b{display:none}
  .method-flow span{margin:3px 3px}
}

/* Keep image crops comfortable on very narrow phones */
@media (max-width:390px){
  .homepage-hero h1{font-size:1.96rem}
  .hero h1{font-size:2.02rem}
  .section-image,
  .section-intro-grid .section-image,
  .resource-feature-grid .resource-image{height:195px}
}

/* Route visual banners */
.route-banner,
.resource-banner{
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:block;
  margin:24px 0 30px;
}
.visual-card{padding:0;overflow:hidden}
.visual-card .card-top-image{
  width:100%;
  height:210px;
  object-fit:cover;
  display:block;
}
.visual-card>div:not(.kicker){ }
.visual-card .kicker:first-of-type{margin-top:22px}
.visual-card h2,
.visual-card p,
.visual-card>a,
.visual-card .kicker{margin-left:24px;margin-right:24px}
.visual-card>a{margin-bottom:24px}

@media (max-width:600px){
  .route-banner,.resource-banner{height:205px;margin:18px 0 22px}
  .visual-card .card-top-image{height:185px}
}

/* Pre-booking legal information */
.prebooking-legal{
  max-width:1160px;
  margin:0 auto 12px;
  padding:16px 20px;
  border:1px solid var(--line);
  border-left:4px solid var(--gold);
  border-radius:12px;
  background:var(--paper);
  color:var(--ink);
}
.prebooking-legal p{margin:.35rem 0 0}
.prebooking-legal a,.form-privacy-note a{font-weight:700;text-decoration:underline}
.form-privacy-note{
  padding:12px 14px;
  background:var(--soft);
  border-radius:10px;
  border:1px solid var(--line);
}
@media(max-width:600px){
  .prebooking-legal{margin:0 18px 8px;padding:14px 15px}
}

/* Audit refinement: warmer premium treatment across the site */
body{
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.68), transparent 34%),
    var(--bg);
}
.site-header{
  background:rgba(255,250,240,.97);
  border-bottom:1px solid rgba(197,154,71,.22);
  box-shadow:0 5px 20px rgba(18,38,63,.035);
}
.hero{
  background:
    linear-gradient(100deg, rgba(255,249,235,.98), rgba(255,244,219,.92));
}
.section.soft{
  background:
    linear-gradient(90deg, rgba(220,232,222,.70), rgba(255,247,227,.98));
}
.card,.panel,.hero-card,.price-card,.visual-card{
  background:rgba(255,250,240,.97);
  border-color:rgba(197,154,71,.22);
  box-shadow:0 12px 30px rgba(18,38,63,.075);
}
.kicker,.eyebrow{
  color:var(--teal-dark);
}
h1,h2,h3{
  color:var(--navy);
}
.button,.btn-primary,.cta-primary{
  box-shadow:0 8px 18px rgba(33,88,79,.16);
}
.trust-strip{
  background:rgba(255,250,240,.92);
  border-top:1px solid rgba(197,154,71,.18);
  border-bottom:1px solid rgba(197,154,71,.18);
}
.route-banner,.resource-banner,.section-image,.method-image{
  box-shadow:0 12px 28px rgba(18,38,63,.10);
}

/* Homepage conversion clarity */
.homepage-route-buttons{margin-top:1.35rem}
.homepage-next-step{margin-top:.9rem}
.route-label{
  display:inline-block;
  margin-bottom:.55rem;
  padding:.28rem .55rem;
  border-radius:999px;
  background:var(--sage);
  color:var(--teal-dark);
  font-size:.84rem;
  font-weight:700;
  letter-spacing:.01em;
}
#oet-route,#professional-route{scroll-margin-top:110px}
@media(max-width:600px){
  .homepage-route-buttons{margin-top:1rem}
  .homepage-next-step{margin-top:.75rem}
}

/* Marketing refinement */
.diagnostic-entry{
  padding:30px 34px;
  border:1px solid rgba(197,154,71,.28);
  border-radius:18px;
  background:linear-gradient(105deg,rgba(255,250,240,.98),rgba(220,232,222,.56));
  box-shadow:0 12px 30px rgba(18,38,63,.065);
}
@media(max-width:600px){
  .diagnostic-entry{padding:22px 19px}
}

/* Pre-launch qualification note */
.fit-note{
  max-width:900px;
  margin:18px auto 28px;
  padding:18px 20px;
  border-left:4px solid var(--teal);
  background:rgba(220,232,222,.45);
  border-radius:12px;
}
.fit-note h3{margin-top:0}
.fit-note p{margin-bottom:0}

/* Genuine previous-programme testimonials */
.testimonial-section{background:rgba(255,250,240,.72)}
.testimonial-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:24px;
}
.testimonial-card{
  margin:0;
  padding:24px;
  border:1px solid rgba(197,154,71,.24);
  border-radius:16px;
  background:rgba(255,250,240,.98);
  box-shadow:0 10px 24px rgba(18,38,63,.06);
}
.testimonial-card p{
  margin:0 0 14px;
  font-size:1.05rem;
  line-height:1.6;
}
.testimonial-card cite{
  font-style:normal;
  font-weight:700;
  color:var(--teal-dark);
}
.testimonial-note{
  max-width:900px;
  margin:18px auto 0;
  color:var(--muted);
}
@media(max-width:760px){
  .testimonial-grid{grid-template-columns:1fr}
}

/* Keep The Judy Method hero image in its natural wide proportion */
.hero .method-image{
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:2 / 1;
  object-fit:cover;
  align-self:center;
}
@media(max-width:760px){
  .hero .method-image{
    height:auto;
    min-height:0;
    aspect-ratio:2 / 1;
  }
}

/* Mobile-only Judy portrait fix: keep desktop layout unchanged. */
@media (max-width:760px){
  .hero .judy-portrait{
    order:0;
    width:100%;
    height:auto;
    min-height:0;
    max-height:none;
    aspect-ratio:auto;
    object-fit:cover;
    object-position:center 24%;
    align-self:auto;
  }
}

/* Final mobile layout correction: compact heroes must collapse to one column on phones. */
@media (max-width:760px){
  .hero.compact{grid-template-columns:minmax(0,1fr)}
  .hero.compact > *{min-width:0}
  .homepage-hero .hero-image{width:100%;max-width:100%;height:auto;min-height:0}
}

/* MOBILE FIX V3 — definitive homepage hero stack on phones.
   This deliberately switches the homepage hero from Grid to Flex so no
   earlier grid rule can squeeze the text beside the portrait. */
@media (max-width: 760px) {
  .hero.compact.homepage-hero,
  .homepage-hero.hero {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .homepage-hero > div,
  .homepage-hero > .hero-image,
  .homepage-hero > img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .homepage-hero > div {
    order: 1 !important;
  }

  .homepage-hero .judy-portrait,
  .homepage-hero .hero-image {
    order: 2 !important;
    display: block !important;
    position: static !important;
    float: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center 24% !important;
    margin: 0 !important;
  }

  .homepage-hero h1,
  .homepage-hero .lede,
  .homepage-hero .kicker,
  .homepage-hero .button-row,
  .homepage-hero .homepage-next-step {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
