/* Intella Consulting. Design system from the approved homepage mockup (preview.durazzodigital.com/intella/).
   Mobile first: base rules target 360px; min-width queries add the larger layouts. */

/* ---------- Fonts (self-hosted, Latin subset, OFL) ---------- */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/atkinson-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/atkinson-700.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/newsreader-var.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 99.6%; }
@font-face { font-family: "Newsreader Fallback"; src: local("Georgia"); size-adjust: 103.3%; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F7F9FA;
  --mist: #EAF3F7;
  --sky: #CFE3EC;
  --line: #DCE5EA;
  --line-strong: #7D929C;   /* form borders: 3.3:1 on white */
  --teal: #176B8A;
  --teal-deep: #0F4F68;
  --navy: #12303D;
  --ink: #172A33;
  --muted: #4A5D66;
  --white: #FFFFFF;
  --error: #A3261B;         /* 6.6:1 on white */
  --display: "Newsreader", "Newsreader Fallback", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Atkinson Fallback", Arial, sans-serif;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(18, 48, 61, .06), 0 12px 32px -16px rgba(18, 48, 61, .24);
  --header-h: 64px;
}
@media (min-width: 561px) { :root { --header-h: 76px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.contact :focus-visible, .path.feature :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 .55em; letter-spacing: -0.015em; font-optical-sizing: auto; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; margin: 0 0 .5em; }
p { margin: 0 0 1em; max-width: 62ch; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4em; }
strong, b { font-weight: 700; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
.band { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.band.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band.white { background: var(--white); border-block: 1px solid var(--line); }
.band.mist { background: var(--mist); }
.section-intro { max-width: 46rem; margin-bottom: 2.25rem; }
.section-intro p { color: var(--muted); font-size: 1.15rem; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin: 0 0 .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1.1rem; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: .75rem; color: var(--white); }
main:focus { outline: none; }

/* Staging-only placeholder highlight */
mark.ph { background: #FFF1B8; color: #3D2E00; padding: .05em .35em; border-radius: 4px; outline: 1px dashed #8A6D00; font-size: .92em; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.2; text-decoration: none; text-align: center; padding: .95rem 1.6rem; min-height: 48px; border-radius: 999px; border: 2px solid var(--teal); background: var(--teal); color: var(--white); cursor: pointer; transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(18, 48, 61, .6); }
.btn.quiet { background: transparent; color: var(--teal); }
.btn.quiet:hover { background: var(--mist); color: var(--teal-deep); box-shadow: none; }
.btn.light { background: var(--white); border-color: var(--white); color: var(--teal-deep); }
.btn.light:hover { background: var(--mist); border-color: var(--mist); color: var(--teal-deep); }
.btn.small { padding: .55rem 1.05rem; min-height: 44px; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }
.actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.75rem; }
.actions .btn { width: 100%; }
@media (min-width: 561px) { .actions { flex-direction: row; flex-wrap: wrap; } .actions .btn { width: auto; } }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.link-arrow::after { content: "\2192"; transition: transform .2s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: var(--header-h); }
.brand { display: block; flex: 0 1 auto; min-width: 0; padding: .35rem 0; }
.brand img { width: 150px; height: auto; }
@media (min-width: 400px) { .brand img { width: 172px; } }
@media (min-width: 561px) { .brand img { width: 210px; } }
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 380px) { .header-actions .btn.small { padding: .5rem .8rem; font-size: .9rem; } }
.menu-toggle { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; min-width: 44px; padding: .5rem .7rem; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 .95rem/1 var(--body); cursor: pointer; }
.menu-toggle:hover { border-color: var(--teal); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; } .menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 380px) { .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a { color: var(--ink); text-decoration: none; display: block; }
.nav-list a[aria-current] { color: var(--teal-deep); font-weight: 700; }

/* Small screens: menu panel under the header (only when JS runs; without JS the list shows inline) */
@media (max-width: 1099px) {
  .site-nav { order: 3; flex-basis: 100%; }
  .header-bar { flex-wrap: wrap; }
  .js .header-bar { flex-wrap: nowrap; }
  .nav-list { display: flex; flex-wrap: wrap; gap: .25rem 1rem; padding-bottom: .75rem; }
  .js .site-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: var(--white); border-top: 1px solid var(--line); overflow-y: auto; padding: .5rem 1rem 2rem; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .js .site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
  .js .nav-list { display: block; padding: 0; max-width: 34rem; margin: 0 auto; }
  .js .nav-list a { font-family: var(--display); font-size: 1.5rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); min-height: 48px; }
  .js .nav-list a[aria-current]::after { content: " (current section)"; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  html:not(.js) .menu-toggle { display: none; }
}
@media (min-width: 1100px) {
  .menu-toggle { display: none; }
  .site-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
  .nav-list { display: flex; gap: 1.35rem; align-items: center; }
  .nav-list a { font-size: 1rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
  .nav-list a:hover, .nav-list a[aria-current] { border-bottom-color: var(--teal); }
  .brand img { width: 230px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Homepage hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: radial-gradient(60rem 30rem at 90% -10%, var(--mist), transparent 70%), radial-gradient(40rem 24rem at -10% 110%, var(--mist), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); }
.creds { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .85rem; }
.creds li { display: flex; align-items: baseline; gap: .75rem; margin: 0; }
.creds strong { flex: none; min-width: 4.5rem; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.15; color: var(--teal-deep); }
.creds span { display: block; font-size: .95rem; color: var(--muted); line-height: 1.4; }
.portrait { margin: 0; position: relative; max-width: 420px; width: 100%; justify-self: start; }
.portrait .photo { position: relative; }
.portrait .photo::before { content: ""; position: absolute; inset: .75rem -.6rem -.75rem .6rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--sky), var(--mist)); }
.portrait .photo::after { content: ""; position: absolute; width: 64px; height: 83px; left: -10px; bottom: -16px; background: url("../images/intella-icon.webp") center / contain no-repeat; opacity: .9; }
.portrait img { position: relative; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--mist); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.portrait figcaption { margin-top: 2rem; font-size: .95rem; color: var(--muted); }
.portrait figcaption b { color: var(--ink); }
@media (min-width: 701px) {
  .creds { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .creds li { display: block; }
  .creds span { margin-top: .25rem; font-size: .92rem; }
}
@media (min-width: 901px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2.5rem, 6vw, 5rem); }
  .portrait { justify-self: end; max-width: 440px; }
  .portrait .photo::before { inset: 1.5rem -1.5rem -1.5rem 1.5rem; }
  .portrait .photo::after { width: 96px; height: 125px; left: -28px; bottom: -22px; }
  .portrait figcaption { margin-top: 2.5rem; }
}

/* ---------- Audience paths ---------- */
.paths { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
.path { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 1.4rem; background: var(--paper); display: flex; flex-direction: column; }
.path .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--teal-deep); margin-bottom: 1.25rem; }
.path .icon svg { width: 26px; height: 26px; }
.path h3 a { color: inherit; text-decoration: none; }
.path h3 a:hover { text-decoration: underline; }
.path > p { color: var(--muted); font-size: 1.02rem; }
.path h4 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .5rem 0 .75rem; }
.path ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.path li { margin: 0; }
.path li a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; color: var(--ink); text-decoration: none; transition: border-color .2s ease; }
.path li a:hover { border-color: var(--teal); }
.path li b { display: block; font-size: 1.02rem; color: var(--teal-deep); }
.path li span { display: block; font-size: .93rem; color: var(--muted); line-height: 1.45; margin-top: .15rem; }
.path .btn { margin-top: auto; align-self: stretch; }
.path.feature { background: var(--navy); border-color: var(--navy); color: var(--white); }
.path.feature h3 { color: var(--white); }
.path.feature > p { color: #CFDDE4; }
.path.feature h4 { color: #A9C3CF; }
.path.feature .icon { background: rgba(255, 255, 255, .1); color: var(--sky); }
.path.feature li a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.path.feature li a:hover { border-color: var(--white); }
.path.feature li b { color: var(--white); }
.path.feature li span { color: #B9CCD5; }
@media (min-width: 561px) { .path { padding: 2rem 1.75rem; } .path .btn { align-self: flex-start; } }
@media (min-width: 901px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Points, quotes ---------- */
.points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.point { border-top: 3px solid var(--teal); padding-top: 1.25rem; }
.point p { color: var(--muted); font-size: 1.02rem; margin: 0; }
@media (min-width: 901px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 1081px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; background: var(--white); border-radius: var(--radius); padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.quote .tag { align-self: flex-start; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-deep); background: var(--mist); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.1rem; }
.quote blockquote { margin: 0 0 1.25rem; }
.quote blockquote p { font-family: var(--display); font-size: 1.2rem; line-height: 1.45; color: var(--ink); margin: 0; }
.quote figcaption { margin-top: auto; color: var(--muted); font-size: .98rem; }
.quote.single { max-width: 46rem; }

/* ---------- About block ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
.about-grid > div > p { color: var(--muted); }
@media (min-width: 901px) { .about-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); } }
.chips { list-style: none; margin: 1.5rem 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .45rem .95rem; font-size: .98rem; margin: 0; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.card h2, .card h3 { font-size: 1.4rem; }
.card dl { margin: 0; display: grid; gap: 1rem; }
.card dt { font-weight: 700; }
.card dd { margin: .1rem 0 0; color: var(--muted); font-size: 1rem; }
.card .speak { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.card .speak p { font-size: 1rem; margin-bottom: .5rem; }

/* ---------- Resource teaser ---------- */
.teaser { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.teaser h3 { font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: .35em; }
.teaser p { color: var(--muted); margin: 0; }
@media (min-width: 901px) { .teaser { grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 2.5rem; } }

/* ---------- FAQ (the only collapsed content on the site) ---------- */
.faq-list { display: grid; gap: .75rem; max-width: 52rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.15rem; }
.faq-question { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; min-height: 48px; font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.3; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: "+"; font-family: var(--body); font-size: 1.5rem; line-height: 1; color: var(--teal-deep); width: 2rem; height: 2rem; border-radius: 50%; background: var(--mist); display: grid; place-items: center; flex: none; }
.faq-item[open] .faq-question::after { content: "\2212"; }
.faq-question:focus-visible { outline-offset: 0; }
.faq-answer p { color: var(--muted); margin: 0 0 1.15rem; }
@media (min-width: 561px) { .faq-item { padding: 0 1.4rem; } .faq-question { font-size: 1.25rem; } }

/* ---------- Closing call to action ---------- */
.contact .panel { background: var(--teal-deep); color: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.75rem); display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.contact .panel::after { content: ""; position: absolute; right: -40px; top: -30px; width: 220px; height: 286px; background: url("../images/intella-icon.webp") center / contain no-repeat; opacity: .12; pointer-events: none; }
.contact h2 { color: var(--white); }
.contact p { color: #D3E3EA; }
.contact .btn.quiet { color: var(--white); border-color: rgba(255, 255, 255, .7); }
.contact .btn.quiet:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.contact .links { position: relative; z-index: 1; background: #225D74; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 1.4rem; }
.contact .links dl { margin: 0; display: grid; gap: .9rem; }
.contact .links dt { font-size: .85rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #BFD6E0; }
.contact .links dd { margin: .15rem 0 0; }
.contact .links a { color: var(--white); }
@media (min-width: 901px) { .contact .panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C8D3D8; font-size: .98rem; padding: 3rem 0 2rem; }
.site-footer p { max-width: 40ch; margin: 0 0 .75rem; }
.site-footer a { color: var(--paper); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.footer-name { font-family: var(--display); font-size: 1.4rem; color: var(--white); }
.footer-title { font-family: var(--body); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #A9BBC3; margin: 0 0 .75rem; }
.footer-col ul, .social, .footer-bottom ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a, .footer-bottom a, .social a { display: inline-block; padding: .4rem 0; min-height: 24px; }
.social { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin-top: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: .75rem; font-size: .92rem; }
.footer-bottom p { max-width: none; margin: 0; }
.footer-bottom ul { display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (min-width: 701px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1081px) { .footer-top { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 2rem; } .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Inner pages ---------- */
.breadcrumb { font-size: .95rem; margin-bottom: 1.5rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.breadcrumb li { margin: 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--muted); }
.breadcrumb a { display: inline-block; padding: .2rem 0; }
.page-hero { padding: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(2.5rem, 6vw, 4rem); background: radial-gradient(60rem 30rem at 90% -20%, var(--mist), transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 981px) { .page-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); } }
.answer { font-size: 1.2rem; color: var(--ink); max-width: 60ch; }
.byline { font-size: .95rem; color: var(--muted); margin: 1.25rem 0 0; }
.facts { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.facts h2 { font-family: var(--body); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.facts dl { margin: 0; display: grid; gap: .85rem; }
.facts dl > div { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { font-weight: 700; font-size: .95rem; }
.facts dd { margin: .1rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 981px) { .content-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; align-items: start; } .content-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.prose { max-width: 44rem; }
.prose section + section { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
.prose h3 { margin-top: 1.75rem; }
.prose ul li, .prose ol li { margin-bottom: .55em; }
.prose p, .prose li { color: var(--ink); }
.definition { border-left: 4px solid var(--teal); background: var(--white); padding: 1rem 1.25rem; border-radius: 0 14px 14px 0; margin: 1.25rem 0; }
.definition p { margin: 0; }
.note { background: var(--mist); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 1.5rem 0; font-size: 1rem; }
.note p { margin: 0; }
.note p + p { margin-top: .6rem; }
.source { font-size: .95rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cards > li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.15rem 1.25rem; margin: 0; }
.cards > li h3 { font-size: 1.2rem; margin-bottom: .35em; }
.cards > li p { margin: 0; color: var(--muted); font-size: 1rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0 3.25rem; margin: 0; min-height: 2.5rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--teal-deep); color: var(--white); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.steps h3 { font-size: 1.2rem; margin: .2rem 0 .3rem; }
.steps p { margin: 0; color: var(--muted); }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card + .aside-card { margin-top: 1rem; }
.site-form .cf-turnstile { min-height: 65px; margin: .25rem 0 1rem; }
.aside-photo { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1rem; background: var(--mist); }
.aside-card h2 { font-family: var(--body); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .85rem; }
.aside-card ul { list-style: none; margin: 0; padding: 0; }
.aside-card li { margin: 0; border-bottom: 1px solid var(--line); }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li a { display: block; padding: .7rem 0; text-decoration: none; font-weight: 700; }
.aside-card li a:hover { text-decoration: underline; }
.aside-card p { font-size: 1rem; color: var(--muted); }
.aside-card .btn { width: 100%; }
.related { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 701px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related li { margin: 0; }
.related a { display: block; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); transition: border-color .2s ease; }
.related a:hover { border-color: var(--teal); }
.related b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--teal-deep); margin-bottom: .35rem; }
.related span { display: block; color: var(--muted); font-size: 1rem; }

/* ---------- Simple page (thank you, 404) ---------- */
.simple { padding: clamp(3rem, 8vw, 6rem) 0; }
.simple .wrap > * { max-width: 44rem; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-group label, .form-group legend { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-hint { display: block; font-size: .95rem; color: var(--muted); margin: -.1rem 0 .4rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--line-strong); border-radius: 12px; padding: .75rem .9rem; min-height: 48px; }
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-weight: 700; font-size: .95rem; margin-top: .35rem; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; margin-top: 1rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
  .js .reveal.visible { opacity: 1; transform: none; }
}

/* Tap targets: standalone links get at least 24px of height (WCAG 2.2 target size) */
.path h3 a, .contact .links a, .site-footer p a { display: inline-block; padding: .2rem 0; min-height: 24px; }
.nowrap { white-space: nowrap; }
.card + .card { margin-top: 1.25rem; }
.cards > li h3, .steps > li h3 { margin-top: 0; }

/* ---------- The Curiosity Collaborative page (accents from its logo; text colors pass 4.5:1) ---------- */
.cc { --cc-navy: #2a4257; --cc-teal: #276a73; --cc-gold: #e3b04f; --cc-sage: #8da584; --cc-plum: #8a6687; --cc-coral: #c96a54; --cc-sand: #fbf7ee; }
.cc main .eyebrow, section.cc .eyebrow { color: var(--cc-teal); }
.cc main h1, .cc main h2, section.cc h3 { color: var(--cc-navy); }
.cc-logo { margin: 0; justify-self: center; width: 100%; max-width: 360px; background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); }
.cc-logo img { width: 100%; height: auto; }
.cc-tagline { font-family: var(--display); font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.35; color: var(--cc-navy); margin: 0 0 1rem; }
.cc-band { background: var(--cc-sand); border-block: 1px solid var(--line); }
.cc-lenses { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.cc-lenses li { margin: 0; display: inline-flex; align-items: center; gap: .55rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; color: var(--cc-navy); font-size: 1rem; }
.cc-lenses li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--cc-teal)); flex: none; }
.cc-quote { margin: 0; border-left: 4px solid var(--cc-gold); padding: .25rem 0 .25rem 1.25rem; }
.cc-quote blockquote { margin: 0; }
.cc-quote blockquote p { font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; color: var(--cc-navy); }
.cc-quote figcaption { color: var(--muted); font-size: 1rem; margin-top: .75rem; }
.cc-quote figcaption b { color: var(--ink); }
.cc-join { position: relative; overflow: hidden; background: var(--cc-navy); color: #dce5ec; border-radius: var(--radius-lg); padding: clamp(1.75rem, 5vw, 3.5rem); }
.cc .cc-join h2 { color: var(--white); }
.cc-join p { color: #dce5ec; position: relative; }
.cc .cc-join .eyebrow { color: #f2cf86; }
.cc-join .actions { position: relative; }
.cc-join img.cc-mark { position: absolute; right: -40px; bottom: -50px; width: 260px; opacity: .12; pointer-events: none; }
.cc-join :focus-visible { outline-color: var(--white); }
.cc-email { font-weight: 700; color: var(--white); word-break: break-all; }
