:root {
  --ink: #102925;
  --green-950: #062f2b;
  --green-900: #083d37;
  --green-800: #0b5148;
  --green-100: #dceae5;
  --gold: #d8ad5b;
  --gold-dark: #9f7630;
  --paper: #fffaf2;
  --sand: #f1eadf;
  --white: #fff;
  --muted: #60736d;
  --line: rgba(16, 41, 37, .16);
  --shadow: 0 22px 60px rgba(6, 47, 43, .12);
  --serif: "Newsreader", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --body: "Libre Franklin", Arial, sans-serif;
  --page: min(1240px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
h3 { line-height: 1.25; }
p { text-wrap: pretty; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: 12px; transform: translateY(-150%); background: var(--white); padding: 10px 16px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%); width: min(1320px, calc(100% - 36px)); min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 10px 14px 10px 20px; background: rgba(255, 250, 242, .94); border: 1px solid rgba(255,255,255,.8); border-radius: 14px; box-shadow: 0 14px 35px rgba(6,47,43,.12); backdrop-filter: blur(15px); transition: top .25s, box-shadow .25s; }
.site-header.is-scrolled { top: 8px; box-shadow: 0 12px 34px rgba(6,47,43,.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--green-950); text-decoration: none; }
.brand img { width: 48px; height: 46px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: var(--serif); font-size: 1.25rem; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-family: var(--sans); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(16px, 2vw, 30px); font-family: var(--sans); }
.main-nav a { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.main-nav a:not(.nav-cta) { position: relative; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--gold-dark); transition: right .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.nav-cta { padding: 12px 20px; color: var(--white); background: var(--green-900); border-radius: 9px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: var(--green-900); transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 720px; color: var(--white); background: var(--green-950); overflow: hidden; }
.hero-copy { position: relative; z-index: 3; width: 59%; min-height: 720px; display: flex; flex-direction: column; justify-content: center; padding: 118px max(6vw, calc((100vw - 1240px) / 2)) 40px; padding-right: clamp(30px, 5vw, 76px); }
.eyebrow { margin-bottom: 20px; font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.eyebrow-dark { color: var(--gold-dark); }
.hero h1 { max-width: 760px; margin-bottom: 20px; font-size: clamp(2.85rem, 3.6vw, 3.8rem); }
.hero h1 em { color: var(--gold); font-weight: 500; }
.hero-lead { max-width: 660px; margin-bottom: 0; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.4vw, 1.2rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 13px 22px; border: 1px solid transparent; border-radius: 8px; font-family: var(--sans); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .main-nav a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .text-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-gold { color: var(--ink); background: var(--gold); }
.button-gold:hover { background: #e5bd70; }
.button-ghost { color: var(--white); border-color: rgba(255,255,255,.45); background: transparent; }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 680px; margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.18); list-style: none; }
.hero-proof li { display: flex; flex-direction: column; padding: 0 20px; border-left: 1px solid rgba(255,255,255,.18); }
.hero-proof li:first-child { padding-left: 0; border-left: 0; }
.hero-proof strong { font-family: var(--serif); color: var(--gold); font-size: 1.65rem; line-height: 1.1; }
.hero-proof span { margin-top: 5px; color: rgba(255,255,255,.67); font-family: var(--sans); font-size: .76rem; line-height: 1.35; }
.hero-portrait { position: absolute; z-index: 1; inset: 0 0 0 auto; width: 66%; min-width: 0; margin: 0; background: #5c4636; overflow: hidden; }
.hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--green-950) 0%, rgba(6,47,43,.94) 12%, rgba(6,47,43,.45) 35%, transparent 62%), linear-gradient(0deg, rgba(6,47,43,.58), transparent 32%); pointer-events: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 34%; }
.hero-portrait figcaption { position: absolute; z-index: 2; right: clamp(24px, 4vw, 60px); bottom: 38px; display: flex; flex-direction: column; min-width: 245px; padding: 18px 22px; color: var(--white); background: rgba(6,47,43,.82); border-left: 3px solid var(--gold); backdrop-filter: blur(10px); }
.hero-portrait figcaption strong { font-family: var(--serif); font-size: 1.25rem; }
.hero-portrait figcaption span { color: rgba(255,255,255,.75); font-family: var(--sans); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.section { padding: clamp(88px, 10vw, 150px) max(24px, calc((100vw - 1240px) / 2)); }
.section-heading { margin-bottom: 58px; }
.section-heading h2 { max-width: 830px; margin-bottom: 0; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: clamp(40px, 8vw, 120px); }
.split-heading > p { max-width: 490px; margin: 0 0 8px; color: var(--muted); }

.audience { background: var(--paper); }
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.age-card { min-height: 290px; padding: 34px 28px; border-left: 1px solid var(--line); }
.age-card:first-child { border-left: 0; }
.age-index { color: var(--gold-dark); font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.age-card h3 { margin: 56px 0 16px; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.age-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.demands { margin-top: 96px; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(50px, 10vw, 130px); align-items: start; }
.demands-intro h3 { max-width: 450px; font-family: var(--serif); font-size: clamp(2rem, 3.2vw, 3.25rem); font-weight: 600; }
.demand-list { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; list-style: none; border-top: 1px solid var(--line); }
.demand-list li { position: relative; padding: 19px 10px 19px 27px; border-bottom: 1px solid var(--line); font-family: var(--sans); font-weight: 600; }
.demand-list li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 8px; height: 8px; border: 2px solid var(--gold-dark); border-radius: 50%; }

.other-evaluations { color: var(--white); background: var(--green-800); }
.other-evaluations .eyebrow { color: var(--gold); }
.other-evaluations .split-heading > p { color: rgba(255,255,255,.72); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.service-grid article { min-height: 310px; padding: 36px 30px; border-left: 1px solid rgba(255,255,255,.25); }
.service-grid article:first-child { border-left: 0; }
.service-grid span { color: var(--gold); font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .12em; }
.service-grid h3 { margin: 62px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.service-grid p { margin: 0; color: rgba(255,255,255,.72); font-size: .92rem; }

.about { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); gap: clamp(70px, 10vw, 150px); background: var(--sand); }
.about-photo { position: relative; min-height: 680px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 23%; filter: saturate(.85) contrast(1.02); }
.about-photo p { position: absolute; left: 24px; right: -42px; bottom: 28px; margin: 0; padding: 24px 28px; color: var(--white); background: var(--green-900); border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 1.45rem; line-height: 1.35; }
.about-copy { align-self: center; }
.about-copy h2 { margin-bottom: 30px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy .lead-copy { color: var(--ink) !important; font-size: 1.15rem; font-weight: 500; }
.principles { margin: 42px 0 0; border-top: 1px solid var(--line); }
.principles div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--sans); font-weight: 700; }
.principles dd { margin: 0; color: var(--muted); font-size: .9rem; }

.process { color: var(--white); background: var(--green-950); }
.process-heading { display: grid; grid-template-columns: .65fr 1.2fr .65fr; gap: 50px; align-items: end; }
.process-heading .eyebrow { align-self: start; }
.process-heading h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.process-heading > p:last-child { margin: 0 0 8px; color: rgba(255,255,255,.68); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.timeline > li > span { color: var(--gold); font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.timeline div { display: grid; grid-template-columns: minmax(200px, .45fr) 1fr; gap: 40px; }
.timeline h3 { margin: 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.timeline p { max-width: 670px; margin: 0; color: rgba(255,255,255,.68); }

.locations { background: var(--paper); }
.location-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.location-card { min-height: 450px; padding: clamp(34px, 5vw, 62px); border: 1px solid var(--line); }
.location-primary { color: var(--white); background: var(--green-800); border-color: transparent; }
.location-online { background: var(--sand); }
.card-kicker { margin-bottom: 40px; font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.location-online .card-kicker { color: var(--gold-dark); }
.location-card h3 { max-width: 560px; margin-bottom: 18px; font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 600; }
.location-card > p:not(.card-kicker) { max-width: 600px; color: rgba(255,255,255,.75); }
.location-online > p:not(.card-kicker) { color: var(--muted); }
.location-card address { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.24); font-style: normal; }
.location-card address strong { display: block; margin-bottom: 7px; color: var(--gold); font-family: var(--sans); }
.location-card small { display: block; margin-top: 12px; color: rgba(255,255,255,.65); }
.location-note { margin-top: 48px; padding: 22px 0 0; border-top: 1px solid var(--line); font-size: .9rem; }

.content-callout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 10vw, 150px); align-items: end; color: var(--white); background: var(--gold-dark); }
.content-callout h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.content-callout .eyebrow { color: var(--white); opacity: .7; }
.content-callout-copy p { color: rgba(255,255,255,.78); }
.text-link { display: inline-flex; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; font-family: var(--sans); font-weight: 700; text-decoration: none; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(60px, 10vw, 140px); background: var(--paper); }
.faq-intro { position: sticky; top: 120px; align-self: start; }
.faq-intro h2 { font-size: clamp(2.5rem, 4.5vw, 4rem); }
.faq-intro > p:last-child { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 25px 44px 25px 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 19px; color: var(--gold-dark); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 42px 26px 0; color: var(--muted); }

.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 110px); color: var(--white); background: var(--green-950); }
.contact-copy h2 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.contact-copy > p:not(.eyebrow) { max-width: 560px; color: rgba(255,255,255,.7); }
.contact-channels { margin: 54px 0 0; padding: 0; list-style: none; }
.contact-channels li { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.contact-channels span { color: var(--gold); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-channels a { overflow-wrap: anywhere; text-decoration: none; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: clamp(28px, 5vw, 52px); color: var(--ink); background: var(--paper); }
.form-heading h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 2rem; }
.form-heading p, .privacy-note { color: var(--muted); font-size: .82rem; }
.contact-form label { display: flex; flex-direction: column; gap: 7px; }
.contact-form label > span { font-family: var(--sans); font-size: .78rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-full { grid-column: 1 / -1; }
.contact-form .button { width: 100%; border: 0; }
.privacy-note { margin: -8px 0 0; text-align: center; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: center; padding: 38px max(24px, calc((100vw - 1240px) / 2)); color: var(--white); background: #042622; border-top: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand strong { font-family: var(--serif); font-size: 1.15rem; }
.footer-brand span { color: rgba(255,255,255,.58); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; gap: 24px; font-family: var(--sans); font-size: .82rem; }
.footer-links a { text-decoration: none; }
.site-footer > p { margin: 0; color: rgba(255,255,255,.52); font-size: .75rem; text-align: right; }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--sans); font-size: .72rem; }
.footer-legal a { color: rgba(255,255,255,.62); text-decoration: none; }
.footer-legal a:hover { color: var(--white); }
.mobile-contact { display: none; }

/* CONTENT HUB */
.content-page { background: var(--paper); }
.content-hero { padding: 180px max(24px, calc((100vw - 1240px) / 2)) 110px; color: var(--white); background: var(--green-950); }
.content-hero h1 { max-width: 920px; margin-bottom: 30px; font-size: clamp(3.4rem, 7vw, 6.8rem); }
.content-hero h1 em { color: var(--gold); }
.content-hero > p:last-child { max-width: 660px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.12rem; }
.content-categories { background: var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.category-card { min-height: 430px; display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--line); background: var(--white); }
.category-card:nth-child(2) { color: var(--white); background: var(--green-800); border-color: transparent; }
.category-number { color: var(--gold-dark); font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
.category-card:nth-child(2) .category-number { color: var(--gold); }
.category-card h2 { margin: auto 0 18px; font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.category-card p { margin: 0 0 28px; color: var(--muted); }
.category-card:nth-child(2) p { color: rgba(255,255,255,.7); }
.status { align-self: flex-start; padding: 7px 10px; color: var(--gold-dark); background: rgba(216,173,91,.13); border: 1px solid rgba(159,118,48,.28); font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.category-card:nth-child(2) .status { color: var(--gold); border-color: rgba(216,173,91,.4); background: rgba(216,173,91,.1); }
.category-action { align-self: flex-start; display: inline-flex; gap: 12px; padding-bottom: 6px; color: var(--gold); border-bottom: 1px solid currentColor; font-family: var(--sans); font-weight: 700; text-decoration: none; }
.content-note { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 10vw, 130px); background: var(--sand); }
.content-note h2 { font-size: clamp(2.5rem, 4.8vw, 4.3rem); }
.content-note-copy { color: var(--muted); }
.content-note-copy strong { color: var(--ink); }

/* SNAP-IV TOOL */
.tool-page { background: var(--paper); }
.tool-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(50px, 9vw, 130px); align-items: end; padding: 180px max(24px, calc((100vw - 1240px) / 2)) 100px; color: var(--white); background: var(--green-950); }
.tool-hero h1 { max-width: 800px; margin: 0; font-size: clamp(3.5rem, 6.5vw, 6.5rem); }
.tool-hero h1 em { color: var(--gold); }
.tool-hero-copy > p { color: rgba(255,255,255,.76); font-size: 1.05rem; }
.tool-warning { margin: 28px 0 0; padding: 20px; border: 1px solid rgba(216,173,91,.42); background: rgba(216,173,91,.08); }
.tool-warning strong { color: var(--gold); }
.model-guide { background: var(--sand); }
.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.model-grid article { min-height: 290px; padding: 30px 24px; border-left: 1px solid var(--line); }
.model-grid article:first-child { border-left: 0; }
.model-grid > article > span { color: var(--gold-dark); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.model-grid h3 { margin: 60px 0 13px; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; }
.model-grid p { margin: 0; color: var(--muted); font-size: .87rem; }
.calculator { background: var(--paper); }
.calculator-heading { max-width: 760px; margin-bottom: 54px; }
.calculator-heading h2 { margin-bottom: 16px; }
.calculator-heading > p:last-child { color: var(--muted); }
.score-form { border: 1px solid var(--line); background: var(--white); }
.score-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; background: var(--sand); border-bottom: 1px solid var(--line); }
.score-setup > label { display: flex; flex-direction: column; gap: 8px; }
.score-setup label > span, .input-mode legend { font-family: var(--sans); font-size: .78rem; font-weight: 700; }
.score-setup input[type="text"], .score-setup select { width: 100%; min-height: 52px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.input-mode { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.input-mode legend { margin-bottom: 8px; }
.input-mode label { cursor: pointer; }
.input-mode input { position: absolute; opacity: 0; pointer-events: none; }
.input-mode label span { display: block; min-width: 150px; padding: 11px 16px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.input-mode input:checked + span { color: var(--white); background: var(--green-800); border-color: var(--green-800); }
.input-mode input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 3px; }
.selected-model { padding: 22px 32px; color: var(--white); background: var(--green-800); }
.selected-model strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.selected-model p { max-width: 920px; margin: 5px 0 0; color: rgba(255,255,255,.75); font-size: .88rem; }
.score-inputs { padding: 32px; }
.domain-fieldset { margin: 0 0 32px; padding: 0; border: 0; }
.domain-fieldset:last-child { margin-bottom: 0; }
.domain-fieldset legend { width: 100%; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.65rem; font-weight: 600; }
.domain-fieldset legend small { margin-left: 8px; color: var(--muted); font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.item-grid { display: grid; grid-template-columns: repeat(9, minmax(70px, 1fr)); gap: 10px; }
.item-score { display: flex; flex-direction: column; gap: 6px; }
.item-score span { color: var(--muted); font-family: var(--sans); font-size: .72rem; font-weight: 700; }
.item-score select { width: 100%; min-height: 48px; padding: 8px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.domain-entry-note { margin-bottom: 26px; padding: 20px; background: var(--sand); }
.domain-entry-note strong { font-family: var(--sans); }
.domain-entry-note p { margin: 4px 0 0; color: var(--muted); font-size: .87rem; }
.domain-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.domain-score { display: flex; flex-direction: column; min-height: 230px; padding: 22px; border: 1px solid var(--line); }
.domain-score strong { margin-bottom: 7px; font-family: var(--serif); font-size: 1.35rem; }
.domain-score > span { min-height: 48px; color: var(--muted); font-size: .8rem; }
.domain-score input { width: 100%; min-height: 58px; margin-top: auto; padding: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; font-family: var(--serif); font-size: 1.6rem; }
.domain-score small { margin-top: 7px; color: var(--muted); font-size: .7rem; }
.form-error { min-height: 26px; margin: 0; padding: 0 32px; color: #9b2f2f; font-family: var(--sans); font-size: .85rem; font-weight: 700; }
.score-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 22px 32px 32px; }
.button-light { color: var(--green-900); background: var(--white); border-color: var(--line); }
.button-light:hover { background: var(--sand); }
.score-results { background: var(--sand); }
.report-header { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.report-header h2 { margin: 0; }
.report-meta { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: .78rem; }
.result-chart, .result-table-wrap, .result-description { margin-bottom: 28px; padding: 30px; background: var(--white); border: 1px solid var(--line); }
.result-chart h3 { margin-bottom: 26px; font-family: var(--serif); font-size: 1.8rem; }
.chart-row { display: grid; grid-template-columns: 220px 1fr 190px; gap: 20px; align-items: center; margin-top: 22px; }
.chart-label { display: flex; flex-direction: column; }
.chart-label strong { font-family: var(--sans); font-size: .85rem; }
.chart-label span { color: var(--muted); font-size: .72rem; }
.chart-track { height: 22px; background: var(--sand); overflow: hidden; }
.chart-track span { display: block; height: 100%; background: var(--gold); }
.chart-classification { justify-self: end; padding: 6px 9px; font-family: var(--sans); font-size: .7rem; font-weight: 700; text-align: center; }
.chart-classification.high { color: #7a2525; background: #f3dcdc; }
.chart-classification.medium { color: #704f11; background: #f7e7be; }
.chart-classification.low { color: #365c45; background: #dceade; }
.chart-classification.neutral { color: var(--muted); background: var(--sand); }
.result-table-wrap { overflow-x: auto; }
.result-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.result-table caption { margin-bottom: 18px; text-align: left; font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.result-table th, .result-table td { padding: 15px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.result-table thead th { color: var(--muted); font-family: var(--sans); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.result-table tbody th { font-family: var(--sans); }
.result-description > p:first-child { color: var(--ink); font-weight: 600; }
.result-description p { color: var(--muted); }
.report-disclaimer { padding: 20px; color: var(--muted); border: 1px solid var(--line); font-size: .82rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.dialog-open { overflow: hidden; }
.email-dialog { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 16px; color: var(--ink); background: rgba(4, 30, 27, .76); backdrop-filter: blur(7px); overflow: auto; }
.email-dialog[hidden] { display: none; }
.email-dialog-shell { position: relative; width: min(680px, 100%); max-height: calc(100vh - 32px); padding: clamp(28px, 5vw, 48px); background: var(--paper); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 28px 90px rgba(4,30,27,.35); overflow: auto; }
.dialog-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 42px; height: 42px; padding: 0; color: var(--green-900); background: transparent; border: 1px solid var(--line); border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.email-dialog h2 { max-width: 550px; margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.email-dialog-form > p:not(.eyebrow) { color: var(--muted); }
.email-field { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; font-family: var(--sans); font-weight: 700; }
.email-field input { width: 100%; min-height: 56px; padding: 13px 15px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.email-privacy { margin: 12px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.email-error { padding: 0; }
.email-submit { width: 100%; margin-top: 6px; }
.email-preview { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.email-preview summary { color: var(--green-900); font-family: var(--sans); font-weight: 700; cursor: pointer; }
.email-preview-card { margin-top: 18px; padding: 26px; background: var(--white); border: 1px solid var(--line); }
.email-preview-brand { display: inline-block; margin-bottom: 16px; color: #007e5d; font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.email-preview-card h3 { margin-bottom: 14px; font-family: var(--serif); font-size: 1.7rem; }
.email-preview-card > p { color: var(--muted); font-size: .86rem; }
.email-preview-note { padding: 14px; background: var(--sand); }
.email-neurolabs-block { margin-top: 22px; padding: 22px; color: var(--white); background: #007e5d; }
.email-neurolabs-block strong { font-family: var(--serif); font-size: 1.25rem; }
.email-neurolabs-block p { margin: 8px 0 14px; color: rgba(255,255,255,.8); font-size: .83rem; }
.email-neurolabs-block span { color: #f0cd69; font-family: var(--sans); font-size: .8rem; font-weight: 800; }
.email-dialog-success { text-align: center; }
.success-mark { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--white); background: var(--green-800); border-radius: 50%; font-size: 1.7rem; }
.email-dialog-success h2 { margin-left: auto; margin-right: auto; }
.email-dialog-success > p:not(.eyebrow) { max-width: 510px; margin-left: auto; margin-right: auto; color: var(--muted); }
.email-dialog-success .button { margin-top: 14px; }
.neurolabs-cta { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(60px, 10vw, 140px); align-items: end; color: var(--white); background: var(--green-800); }
.neurolabs-cta h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.neurolabs-cta > div:last-child p { color: rgba(255,255,255,.72); }

@media (max-width: 1000px) {
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model-grid article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .model-grid article:nth-child(4) { border-top: 1px solid var(--line); }
  .item-grid { grid-template-columns: repeat(5, 1fr); }
  .chart-row { grid-template-columns: 190px 1fr; }
  .chart-classification { grid-column: 2; justify-self: start; }
}

@media (max-width: 1080px) {
  .site-header { width: calc(100% - 24px); }
  .main-nav { gap: 16px; }
  .main-nav a { font-size: .8rem; }
  .hero-copy { width: 62%; padding-left: 5vw; padding-right: 4vw; }
  .process-heading { grid-template-columns: 1fr 2fr; }
  .process-heading > p:last-child { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-links { justify-self: end; }
  .site-footer > p { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 860px) {
  :root { --page: calc(100% - 40px); }
  .site-header { top: 10px; min-height: 66px; padding: 7px 8px 7px 13px; }
  .site-header.is-scrolled { top: 5px; }
  .brand img { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1.08rem; }
  .brand-copy small { font-size: .6rem; }
  .menu-toggle { display: flex; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 75px 12px auto; max-height: calc(100vh - 90px); display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 8px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin-top: 12px; padding: 14px; text-align: center; border: 0; }

  .hero { min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-areas: "intro" "portrait" "actions" "proof"; padding: 118px 20px 52px; }
  .hero-copy { display: contents; }
  .hero-intro { grid-area: intro; }
  .hero h1 { margin-bottom: 18px; font-size: clamp(3rem, 12vw, 5.2rem); }
  .hero-lead { margin-bottom: 28px; font-size: 1rem; }
  .hero-portrait { position: relative; inset: auto; width: auto; grid-area: portrait; height: min(92vw, 520px); margin: 0 -20px; }
  .hero-portrait::after { background: linear-gradient(0deg, rgba(6,47,43,.58), transparent 35%); }
  .hero-portrait img { object-position: center 32%; }
  .hero-portrait figcaption { right: 16px; bottom: 16px; min-width: 210px; padding: 13px 16px; }
  .hero-actions { grid-area: actions; margin: 24px 0 0; }
  .hero-actions .button { flex: 1 1 240px; }
  .hero-proof { grid-area: proof; width: 100%; margin-top: 34px; }

  .split-heading, .demands, .about, .location-grid, .content-callout, .faq, .contact, .content-note { grid-template-columns: 1fr; }
  .split-heading { gap: 24px; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .age-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .age-card:nth-child(4) { border-top: 1px solid var(--line); }
  .about { gap: 65px; }
  .about-photo { min-height: 600px; }
  .about-photo p { right: 20px; }
  .process-heading { grid-template-columns: 1fr; gap: 18px; }
  .process-heading > p:last-child { grid-column: auto; }
  .timeline li { grid-template-columns: 70px 1fr; }
  .timeline div { grid-template-columns: 1fr; gap: 8px; }
  .location-card { min-height: auto; }
  .faq-intro { position: static; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form > * { grid-column: 1; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 330px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { min-height: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.25); }
  .service-grid article:first-child { border-top: 0; }
  .service-grid h3 { margin-top: 28px; }
  .tool-hero, .neurolabs-cta { grid-template-columns: 1fr; }
  .tool-hero { gap: 32px; padding-top: 140px; }
  .score-setup { grid-template-columns: 1fr; }
  .input-mode { grid-column: 1; }
  .item-grid { grid-template-columns: repeat(4, 1fr); }
  .domain-entry-grid { grid-template-columns: 1fr; }
  .domain-score { min-height: 190px; }
  .report-header { grid-template-columns: 1fr; }
  .report-meta { align-items: flex-start; }
  .chart-row { grid-template-columns: 1fr; gap: 8px; }
  .chart-classification { grid-column: 1; justify-self: start; }
}

@media (max-width: 560px) {
  body { padding-bottom: 68px; }
  h2 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .section { padding: 78px 20px; }
  .eyebrow { margin-bottom: 14px; font-size: .7rem; }
  .hero { padding-top: 106px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-portrait { height: 92vw; max-height: 455px; }
  .hero-proof { grid-template-columns: 1fr; gap: 15px; padding-top: 20px; }
  .hero-proof li, .hero-proof li:first-child { display: grid; grid-template-columns: 100px 1fr; align-items: center; padding: 0; border: 0; }
  .hero-proof strong { font-size: 1.4rem; }
  .hero-proof span { margin: 0; }
  .age-grid { grid-template-columns: 1fr; }
  .age-card { min-height: 0; padding: 26px 4px; border-left: 0; border-top: 1px solid var(--line); }
  .age-card:first-child { border-top: 0; }
  .age-card h3 { margin: 24px 0 10px; }
  .demands { margin-top: 70px; gap: 28px; }
  .demand-list { grid-template-columns: 1fr; }
  .about-photo { min-height: 480px; }
  .about-photo p { left: 12px; right: 12px; bottom: 12px; padding: 18px; font-size: 1.15rem; }
  .principles div { grid-template-columns: 1fr; gap: 4px; }
  .timeline li { grid-template-columns: 48px 1fr; gap: 14px; }
  .timeline > li > span { font-size: 1.55rem; }
  .timeline h3 { font-size: 1.4rem; }
  .location-card { padding: 30px 24px; }
  .content-callout { gap: 34px; }
  .faq-list summary { font-size: 1rem; }
  .contact-channels li { grid-template-columns: 1fr; gap: 2px; }
  .contact-form { padding: 24px 18px; }
  .site-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 38px 20px; }
  .footer-links { flex-wrap: wrap; gap: 14px 20px; }
  .site-footer > p { text-align: left; }
  .footer-legal { width: 100%; }
  .mobile-contact { position: fixed; z-index: 90; inset: auto 0 0; display: block; padding: 9px 12px; background: rgba(255,250,242,.96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
  .mobile-contact a { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--white); background: var(--green-900); border-radius: 7px; font-family: var(--sans); font-size: .88rem; font-weight: 700; text-decoration: none; }
  .content-hero { padding: 135px 20px 76px; }
  .content-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .content-categories { padding-left: 12px; padding-right: 12px; }
  .category-card { min-height: 350px; padding: 28px 24px; }
  .tool-hero { padding: 130px 20px 72px; }
  .tool-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .model-grid { grid-template-columns: 1fr; }
  .model-grid article, .model-grid article:nth-child(3), .model-grid article:nth-child(4) { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .model-grid article:first-child { border-top: 0; }
  .model-grid h3 { margin-top: 28px; }
  .score-setup, .score-inputs, .score-actions { padding-left: 18px; padding-right: 18px; }
  .selected-model { padding: 20px 18px; }
  .input-mode label { flex: 1 1 135px; }
  .input-mode label span { min-width: 0; }
  .item-grid { grid-template-columns: repeat(3, 1fr); }
  .domain-fieldset legend small { display: block; margin: 3px 0 0; }
  .result-chart, .result-table-wrap, .result-description { padding: 20px 16px; }
  .result-table { min-width: 680px; }
  .neurolabs-cta { gap: 30px; }
}

@media (max-width: 560px) {
  .email-dialog { padding: 10px; }
  .email-dialog-shell { max-height: calc(100vh - 20px); }
  .email-dialog-shell { padding: 34px 20px 24px; }
  .email-dialog h2 { padding-right: 26px; font-size: 2.2rem; }
  .email-preview-card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
