/* Trauma Responsive Training Solutions
   Brand kit colors (navy header and buttons, sea bands, copper accents on a
   linen background) set the business site apart from the saigeschill.com
   portfolio, which keeps the charcoal look. Fonts and layout are shared.
   Change colors and fonts here; every page uses these tokens. */

/* Fonts are served from this site (assets/fonts, Latin letters only), so no
   request goes to Google. All three are under the SIL Open Font License. */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/anton-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/montserrat-latin-var.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/roboto-latin-var.woff2") format("woff2"); }

:root {
  --charcoal: #1F2A36;     /* ink: borders, frames */
  --navy: #1F3345;         /* header, footer, headings, buttons */
  --sea: #85ABAB;          /* section bands */
  --copper: #C78F57;       /* accents only (shadows, underlines); too light for text */
  --mist: #D9DFDD;         /* browser frame bar */
  --sand: #F6F3EE;         /* page background (linen) */
  --cream: #F8F4EB;        /* button fill */
  --white: #FFFFFF;
  --text: #1F2A36;
  --muted: #4F5B66;
  --line: #D6D1C6;
  --link: #2E5E5E;

  --font-head: "Anton", Impact, "Arial Narrow Bold", sans-serif;
  --font-body: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-ui: "Roboto", "Segoe UI", Arial, sans-serif;
  --max: 1100px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }

/* While the fonts load, scale the fallback font to the same letter height as
   the real one, so text doesn't jump when it arrives. Set on every element
   because the value is worked out from each element's own font. */
*, *::before, *::after { font-size-adjust: from-font; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 2px; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .card-navy :focus-visible { outline-color: var(--copper); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--white);
  color: var(--charcoal);
  padding: .5rem 1rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 820px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ui);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding: 0 1.75rem;
}
.site-logo img { width: 170px; height: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid currentColor;
  color: inherit;
  border-radius: 8px;
  padding: .5rem .55rem;
  font: inherit;
  line-height: 0;
  cursor: pointer;
}
.burger { display: inline-flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
.burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1.75rem;
}
.site-nav a { color: inherit; text-decoration: none; font-size: 1rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; }
.site-nav .nav-cta {
  border: 2px solid var(--cream);
  border-radius: 8px;
  padding: .4rem .9rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-header .bar { flex-wrap: wrap; padding: .6rem 1.25rem; }
  .site-logo img { width: 140px; }
  .site-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .75rem; }
}

/* Type */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 1rem;
}
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1rem; text-wrap: pretty; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.175rem); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Sections */

.section { padding: 3.5rem 0; }
/* Two linen sections in a row: no colour change separates them, so trim the
   doubled padding (3.5rem + 1.5rem instead of 3.5rem + 3.5rem). */
.section:not(.section-sea):not(.section-white) + .section:not(.section-sea):not(.section-white) { padding-top: 1.5rem; }
.section-sea { background: var(--sea); }
.section-sea a:not(.btn) { color: var(--navy); }
.section-white { background: var(--white); }
.section-head { max-width: 860px; margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-lede { font-size: 1.0625rem; color: var(--muted); margin: 0; }
.section-sea .section-lede { color: var(--charcoal); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.center { text-align: center; }

.page-title { padding: 3.5rem 0 1rem; }
.page-title .lead { max-width: 720px; }

/* Hero */

.hero {
  display: flex; align-items: center;
  flex-direction: column; justify-content: center;
  /* Shorter than the screen, so the next section peeks in and invites scrolling. */
  min-height: calc(80vh - 5.5rem);
  min-height: calc(80svh - 5.5rem);
  padding: 3rem 0 4rem;
}
/* Same content edges as every other section (no wider hero column). */
.hero .wrap { width: 100%; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34em; }
.hero .actions { margin-top: 2rem; }
.hero .hero-links { margin: 1.25rem 0 0; }
.hero .trust { margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }
.hero-art { width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.about-photo { max-width: 360px; margin: 0 auto; }

/* Grids and cards */

.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid-2 { display: grid; gap: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: center; }
.split.reverse { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 2px solid var(--line);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-navy h3, .card-navy .meta { color: var(--white); }
.card .meta, .case .meta { margin-bottom: .5rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 1rem; }
.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.checklist-cols { columns: 2 300px; column-gap: 3rem; }
.checklist-cols li { break-inside: avoid; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem;
  background: var(--navy);
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: .75rem;
  border: 2px solid var(--charcoal); border-radius: 50%;
  background: var(--cream);
  font-family: var(--font-head); font-size: 1.2rem;
}
.steps h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.steps p { margin: 0; font-size: .9rem; }

.headshot { width: 100%; height: auto; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--copper); }
.art { width: 100%; max-width: 300px; margin: 0 auto; border-radius: var(--radius); }

/* Buttons: cream card with a navy outline and a solid offset shadow */

.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--navy);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--copper);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: .02em;
  padding: .6rem 1.3rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--copper); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }
/* Second button: same shape as .btn, light fill */
.btn-outline { background: var(--cream); color: var(--navy); }
.btn-outline:hover { background: var(--white); }

/* Small "go here" hint under the hero */
.scroll-hint { margin-top: 2.5rem; margin-bottom: 0; font-weight: 700; }
.scroll-hint a { color: var(--navy); text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Cards that are links */
.card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--navy); transform: translateY(-2px); }
.card-link.card-navy { color: var(--white); }
.card-link.card-navy:hover { border-color: var(--copper); }
.card-more { margin-top: auto; padding-top: .75rem; font-weight: 700; color: var(--link); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-navy .card-more { color: var(--white); }
.work-card .card-more { padding-top: 0; }
.card .card-more:last-child { margin-bottom: 0; }

.text-link { font-weight: 700; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Work */

.browser-frame { border: 2px solid var(--charcoal); border-radius: 12px; overflow: hidden; background: var(--white); }
.browser-bar { display: flex; gap: 6px; align-items: center; padding: 0 12px; height: 28px; background: var(--mist); border-bottom: 2px solid var(--charcoal); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--charcoal); }
.browser-bar span:first-child { background: var(--charcoal); }
.browser-frame img { display: block; width: 100%; height: auto; }
.shot-169 img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }

.work-card { display: flex; flex-direction: column; gap: 1rem; }
.work-card h3 { margin: 0; }
.meta { font-family: var(--font-ui); font-size: .875rem; color: var(--muted); margin: 0; }

.case { padding: 3.5rem 0; border-top: 2px solid var(--line); }
.case:first-of-type { border-top: 0; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.facts { list-style: none; padding: 0; margin: 0 0 1rem; }
.facts li { margin-bottom: .5rem; }

/* Carousel */

.carousel { position: relative; }
.carousel .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel .slides::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: .75rem; }
.carousel .dots { display: flex; justify-content: center; gap: .25rem; }
.carousel .arrow { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: var(--cream); color: var(--navy); cursor: pointer; }
.carousel .arrow:hover { background: var(--navy); color: var(--white); }
.carousel .dots button { box-sizing: content-box; width: 12px; height: 12px; padding: 6px; border: 0; border-radius: 50%; background: #B9C2C4; background-clip: content-box; cursor: pointer; }
.carousel .dots button[aria-current="true"] { background: var(--navy); }

/* Spacing helpers (used instead of inline styles) */
.mt-1 { margin-top: 1rem !important; }
.mt-15 { margin-top: 1.5rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-25 { margin-top: 2.5rem !important; }
.pt-1 { padding-top: 1rem !important; }
.pt-15 { padding-top: 1.5rem !important; }
.plain-link { color: inherit; text-decoration: none; }

/* Closing call to action */

.cta { text-align: center; }
.cta .lead { max-width: 640px; margin: 0 auto 1.75rem; }
.cta .small { margin-top: 1.5rem; }

/* Embedded estimator */

.embed-box iframe { display: block; width: 100%; min-height: 1400px; border: 0; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2.5rem; align-items: start; }
.panel { background: var(--white); border-radius: var(--radius); border: 2px solid var(--charcoal); padding: 2.25rem; }
.social { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.social svg { width: 1.75rem; height: 1.75rem; fill: currentColor; }

#contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.field-row-end { align-items: end; }
.field-group { display: flex; flex-direction: column; gap: .4rem; }
.field-group label, legend { font-weight: 700; }
.optional, .req { font-weight: 400; }
.field {
  font: inherit;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid #6E7A85;
  border-radius: 6px;
  padding: .65rem .75rem;
  width: 100%;
}
textarea.field { min-height: 120px; resize: vertical; }
.field:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.field[aria-invalid="true"] { border-color: #9B2C2A; border-width: 2px; }
.field-error { color: #9B2C2A; font-weight: 700; margin: 0; }
.field-error:empty { display: none; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: .5rem; }
.checks { display: grid; gap: .25rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.checks label { display: flex; align-items: center; gap: .6rem; min-height: 44px; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--navy); flex: 0 0 auto; }
.form-status { padding: 1rem; border-radius: 8px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { background: #F7E3E2; color: #9B2C2A; border: 2px solid #9B2C2A; }
.form-fallback { margin: 1rem 0 1.5rem; }
.form-fallback label { display: block; font-weight: 700; margin-bottom: .4rem; }
.fallback-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#contact-form .btn { align-self: flex-start; }
#contact-form .btn:disabled { opacity: .7; cursor: wait; }

/* Footer */

.site-footer {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-ui);
  padding: 2.5rem 0 2rem;
  font-size: .95rem;
}
.site-footer a { color: var(--white); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
.footer-logo img { width: 160px; height: auto; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer .legal { margin: 1.5rem 0 0; color: #C9CCCF; }

@media (max-width: 860px) {
  .hero-grid, .split, .split.reverse, .grid-2, .case-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-grid .headshot, .split .headshot { max-width: 340px; }
  .hero { min-height: 0; padding: 2.5rem 0 3rem; }
  .hero-art { max-width: 320px; }
  .section { padding: 2.5rem 0; }
  .section:not(.section-sea):not(.section-white) + .section:not(.section-sea):not(.section-white) { padding-top: 1rem; }
  .panel { padding: 1.5rem; }
}

/* Trauma-informed page */
.ti-intro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ti-intro-shot { margin: 0; transform: rotate(1.5deg); box-shadow: 10px 10px 0 var(--copper); border-radius: 12px; }
.ti-intro-shot img { display: block; width: 100%; height: auto; }
.ti-defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.ti-defs > div { border-left: 4px solid var(--copper); padding-left: 1.25rem; }
.ti-defs p { margin-bottom: 0; }
.rule-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; }
.rule-list > div { border-left: 4px solid var(--navy); padding-left: 1.25rem; }
.rule-list h3 { margin-bottom: .4rem; }
.rule-list p { margin-bottom: .6rem; max-width: 46ch; }
.rule-list p:last-child { margin-bottom: 0; }
.rule-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rule-list-1 { grid-template-columns: 1fr; gap: 1.75rem; }
.next-step { border-top: 2px solid var(--line); padding-top: 2rem; }
.next-step > p { margin: 0; font-weight: 700; color: var(--navy); }
.next-step .actions { margin-top: 1.25rem; }
.wrap.narrow { max-width: var(--max); }
.wrap.narrow > * { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.85rem); margin-top: 2.25rem; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }
.ti-versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
.ti-versus > div { padding: .5rem 3rem 0 0; }
.ti-versus > div + div { padding: .5rem 0 0 3rem; border-left: 3px solid var(--navy); }
/* Small label above each heading, so it never outsizes the section heading. */
.ti-word { font-family: var(--font-ui); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: var(--navy); margin: 0 0 .4rem; }
.ti-versus h3 { margin-bottom: .4rem; }
.ti-versus p:last-child { margin-bottom: 0; max-width: 34ch; }
.ti-versus-note { margin: 2rem 0 0; font-weight: 700; color: var(--navy); }
.ti-checklist li { font-size: 1.05rem; margin-bottom: 1rem; }
.ti-audience { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.ti-audience li { border-top: 2px solid var(--line); padding: 1.25rem 0 1rem; }
.ti-audience h3 { margin-bottom: .35rem; }
.ti-audience p { margin: 0; color: var(--muted); }
.ti-course { padding: 0 0 1.5rem; overflow: hidden; }
.ti-course .browser-frame { border: 0; border-bottom: 2px solid var(--charcoal); border-radius: 0; margin-bottom: 1.25rem; }
.ti-course .browser-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.ti-course h3, .ti-course p, .ti-course .card-more { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (max-width: 860px) {
  .ti-intro-grid, .ti-defs, .ti-audience, .rule-list, .rule-list-3 { grid-template-columns: 1fr; }
  .contact-grid > .panel { order: -1; }
  .ti-intro-shot { transform: none; max-width: 520px; }
  .ti-versus { grid-template-columns: 1fr; gap: 2rem; }
  .ti-versus > div, .ti-versus > div + div { padding: 0; border-left: 0; }
  .ti-versus > div + div { border-top: 3px solid var(--navy); padding-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .burger span, .faq-group > summary::after, .faq summary::after, .card-link { transition: none; }
  .card-link:hover { transform: none; }
}

/* FAQ: native details/summary, so it opens with a keyboard and screen readers */
/* Topic groups start closed so the page stays short; questions open inside them. */
.faq-groups { border-top: 2px solid var(--navy); }
.faq-group { border-bottom: 2px solid var(--navy); }
.faq-group > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
}
.faq-group > summary::-webkit-details-marker { display: none; }
.faq-group > summary h3 { margin: 0; }
/* Chevron (v) that flips up when open; drawn with borders so it needs no icon font. */
.faq-group > summary::after, .faq summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  margin: 0 .35rem 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s ease;
}
.faq-group > summary::after { width: .75rem; height: .75rem; border-width: 0 3px 3px 0; color: var(--navy); }
.faq summary::after { color: var(--link); align-self: center; }
.faq-group[open] > summary::after, .faq details[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.faq-group > summary:hover h3 { color: var(--link); }
.faq-group > .faq { margin-bottom: 1.5rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 700;
  color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link); }
.faq details p { margin: 0 0 1.25rem; max-width: 80ch; }

/* Home page: one picture in the "why" section, and quiet motion that answers
   the pointer. Nothing moves on scroll; everything rests under reduced motion. */
.why-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.why-grid .rule-list-1 { gap: 1.5rem; }
.why-shot { box-shadow: 10px 10px 0 var(--navy); }

/* The hero settles in once on load. */
/* Movement only, no fade: text keeps full contrast from the first frame. */
@keyframes settle { from { transform: translateY(12px); } to { transform: none; } }
[data-enter] .hero-grid > * { animation: settle .6s ease-out both; }
[data-enter] .hero-grid > :last-child { animation-delay: .12s; }

/* Linked course cards lift 2px; the screenshot eases in a little inside its frame. */
.work-card { transition: transform .2s ease; }
.work-card .browser-frame img { transition: transform .35s ease; }
.work-card:hover { transform: translateY(-2px); }
.work-card:hover .browser-frame img { transform: scale(1.025); }
.work-card:hover .card-more, .text-link:hover { text-decoration-thickness: 3px; }
.btn:active { transform: translate(7px, 7px); box-shadow: 0 0 0 var(--copper); }

@media (max-width: 860px) {
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Stand-alone links get a 44px tap area on phones. */
  .text-link, .card-more, .scroll-hint a { display: inline-block; padding-block: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-enter] .hero-grid > * { animation: none; }
  .work-card, .work-card .browser-frame img { transition: none; }
  .work-card:hover, .work-card:hover .browser-frame img, .btn:active { transform: none; }
}
