/* Happy Work Studio · design tokens
   Layout concept: a warm studio page. Cream canvas, wide margins, one berry accent,
   taupe bands for rhythm, and the "smile" from the H in the logo as the recurring mark. */
:root {
  --bg: #F8F1EB;          /* cream canvas */
  --surface: #FFFCF9;     /* cards, answer boxes */
  --band: #EFE4DA;        /* soft taupe band */
  --taupe: #CEBEB1;
  --ink: #2B1200;         /* headings */
  --text: #4A3A33;        /* body copy, warm grey */
  --muted: #7A6A61;
  --line: #E0D2C6;
  --berry: #B0304C;       /* single brand accent */
  --berry-deep: #862E39;
  --berry-soft: #F3DDE1;
  --caramel: #B69069;
  --taupe-strong: #A8968A;
  --on-berry: #FFFFFF;
  --footer-bg: #2B1200;
  --footer-text: #E9DCD2;
  --focus: #B0304C;

  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.2vw, 4.6rem);

  --radius: 18px;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1210; --surface: #241915; --band: #2C201B; --taupe: #4A3A33;
    --ink: #F8F1EB; --text: #DDCFC6; --muted: #B3A398; --line: #3D2E28;
    --berry: #E5708E; --berry-deep: #F19AB0; --berry-soft: #3A1E25; --caramel: #D9B48E; --taupe-strong: #8E7E73;
    --on-berry: #1A1210; --footer-bg: #120C0A; --footer-text: #D9CBC1; --focus: #F19AB0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1210; --surface: #241915; --band: #2C201B; --taupe: #4A3A33;
  --ink: #F8F1EB; --text: #DDCFC6; --muted: #B3A398; --line: #3D2E28;
  --berry: #E5708E; --berry-deep: #F19AB0; --berry-soft: #3A1E25; --caramel: #D9B48E; --taupe-strong: #8E7E73;
  --on-berry: #1A1210; --footer-bg: #120C0A; --footer-text: #D9CBC1; --focus: #F19AB0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: var(--step-0); line-height: 1.65; font-weight: 400; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--berry-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--berry); color: var(--on-berry); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.band { background: var(--band); }
.eyebrow { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--berry); }
.lede { font-size: var(--step-1); line-height: 1.55; color: var(--text); max-width: 62ch; font-weight: 300; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: 28px; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }

/* the smile: the curved bar from the logo's H */
.smile { display: block; width: 74px; height: 14px; color: var(--berry); }
.smile path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.under-smile { position: relative; white-space: nowrap; }
.under-smile svg { position: absolute; left: 2%; right: 2%; bottom: -0.12em; width: 96%; height: 0.32em; color: var(--berry); overflow: visible; }
.under-smile svg path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; flex: none; }
.brand img { width: 150px; height: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 10px; border-radius: 999px; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--berry-soft); color: var(--berry-deep); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); padding: 4px 8px; border-radius: 999px; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--berry); background: var(--berry); color: var(--on-berry); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn:hover { background: var(--berry-deep); border-color: var(--berry-deep); color: var(--on-berry); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--berry); }
.btn.ghost:hover { background: var(--berry-soft); color: var(--berry-deep); }
.btn.small { padding: 9px 16px; font-size: 0.88rem; }
.mobile-nav { display: none; }
.mobile-nav summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] .mobile-panel { display: grid; }
.mobile-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); gap: 2px; box-shadow: 0 18px 30px -20px rgba(43, 18, 0, .35); }
.mobile-panel a { color: var(--ink); text-decoration: none; font-size: 1.1rem; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.mobile-panel .lang { margin-top: 14px; justify-self: start; }
@media (max-width: 1240px) { .main-nav, .header-tools .lang, .header-tools .btn { display: none; } .mobile-nav { display: block; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-grid > * { min-width: 0; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: italic; color: var(--berry); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.essentials-figure { margin: 0; display: grid; gap: 18px; justify-items: center; }
.essentials-figure svg { width: min(100%, 360px); height: auto; }
.essentials-figure .seg { fill: none; stroke-width: 34; }
.essentials-figure figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; max-width: 32ch; }
.ess-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; width: min(100%, 360px); }
.ess-list li { display: grid; grid-template-columns: 26px 1fr; align-items: baseline; font-size: 0.92rem; color: var(--ink); font-weight: 500; }
.ess-list b { font-family: var(--display); color: var(--berry); font-weight: 400; font-size: 1.1rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* answer-first box (built for people and AI answer engines alike) */
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); display: grid; gap: 10px; max-width: 78ch; }
.answer .label { display: inline-flex; align-items: center; gap: 10px; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--berry); }
.answer .label .smile { width: 28px; height: 8px; }
.answer p { color: var(--ink); font-size: 1.04rem; }

/* page head */
.page-head { padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); }
.page-head .stack { max-width: 880px; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--taupe); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--berry); }

/* grids & cards */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 1.3rem; }
.card .meta { font-size: var(--step--1); font-weight: 600; color: var(--berry); letter-spacing: 0.02em; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.card.link { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card.link:hover { border-color: var(--berry); transform: translateY(-2px); }
.plain { display: grid; gap: 8px; }
.plain h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 32px; margin-bottom: clamp(24px, 3vw, 40px); }
.head-row .stack { max-width: 720px; }

/* journey (a real sequence, so the numbers carry meaning) */
.journey { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.journey::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: var(--taupe); }
.journey li { position: relative; display: grid; gap: 10px; align-content: start; }
.journey .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--berry); color: var(--berry); font-family: var(--display); font-size: 1.5rem; position: relative; }
.journey li:last-child .num { background: var(--berry); color: var(--on-berry); }
.journey .tier { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.journey a { text-decoration: none; color: inherit; }
.journey a:hover h3 { color: var(--berry); }
@media (max-width: 900px) { .journey { grid-template-columns: 1fr; gap: 20px; } .journey::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; } .journey li { grid-template-columns: 56px 1fr; column-gap: 18px; } .journey li > :not(.num) { grid-column: 2; } .journey .num { grid-row: span 3; } }
.track-band { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 28px; background: var(--taupe); color: var(--ink); border-radius: var(--radius); padding: 22px 28px; text-decoration: none; }
.track-band:hover { color: var(--ink); filter: brightness(1.03); }
.track-band h3 { font-size: 1.5rem; }
.track-band .eyebrow { color: var(--berry-deep); }
@media (max-width: 760px) { .track-band { grid-template-columns: 1fr; } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stats div { border-top: 2px solid var(--berry); padding-top: 14px; display: grid; gap: 4px; }
.stats b { font-family: var(--display); font-weight: 400; font-size: var(--step-3); color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stats span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* purpose quote */
.purpose { background: var(--berry); color: var(--on-berry); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); display: grid; gap: 18px; }
.purpose .eyebrow { color: var(--on-berry); opacity: .85; }
.purpose blockquote { margin: 0; font-family: var(--display); font-size: var(--step-3); line-height: 1.15; color: var(--on-berry); font-style: italic; text-wrap: balance; }
.purpose .smile { color: var(--on-berry); }

/* chips (clients, partners) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li, .chips a { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; }
.chips a:hover { border-color: var(--berry); color: var(--berry); }
.sector { display: grid; grid-template-columns: 260px 1fr; gap: 16px 32px; padding-block: 24px; border-top: 1px solid var(--line); }
.sector h2 { font-size: var(--step-1); }
@media (max-width: 760px) { .sector { grid-template-columns: 1fr; } }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--band); }
tr:last-child td { border-bottom: 0; }
td .tier-tag { font-weight: 700; color: var(--berry); white-space: nowrap; }
td a { font-weight: 600; }

/* program lists */
.rows { display: grid; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 220px; gap: 6px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.row h3 { font-family: var(--sans); font-weight: 700; font-size: 1.08rem; }
.row .dur { color: var(--berry); font-weight: 600; font-size: 0.92rem; text-align: right; }
.row p { grid-column: 1 / -1; max-width: 72ch; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } .row .dur { text-align: left; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr auto; gap: 6px 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .n { font-family: var(--display); font-size: 2.6rem; color: var(--berry); line-height: 1; grid-row: span 3; }
.steps .dur { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--berry); white-space: nowrap; }
.steps p { grid-column: 2 / -1; }
@media (max-width: 620px) { .steps li { grid-template-columns: 44px 1fr; } .steps .n { font-size: 2rem; } .steps .dur { grid-column: 2; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.ticks li::before { content: ""; width: 12px; height: 12px; margin-top: 0.5em; border-radius: 3px; background: var(--berry); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.split > * { min-width: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.box { border-radius: var(--radius); padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 10px; align-content: start; }
.box.outline { border: 2px solid var(--berry); background: var(--surface); }
.box.fill { background: var(--band); }
.box .eyebrow { margin-bottom: 2px; }

/* essentials grid on service pages */
.ess-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ess-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.ess-grid b { font-family: var(--display); font-weight: 400; color: var(--berry); font-size: 1.8rem; line-height: 1; }
.ess-grid h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.ess-grid p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 960px) { .ess-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ess-grid { grid-template-columns: 1fr; } }

/* facts */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { font-weight: 700; color: var(--ink); padding-right: 28px; font-size: 0.92rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }

/* people */
.person { display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-content: start; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--taupe); color: var(--ink); font-family: var(--display); font-size: 1.4rem; grid-row: span 3; }
.person .role { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--berry); }
.person p { grid-column: 2; font-size: 0.95rem; }
.founder { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: start; }
.founder .avatar { width: 120px; height: 120px; font-size: 2.4rem; background: var(--berry); color: var(--on-berry); grid-row: auto; }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; } }

/* blog */
.post-card { text-decoration: none; color: inherit; display: grid; gap: 14px; align-content: start; }
.cover { aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); position: relative; overflow: hidden; display: grid; align-items: end; padding: 18px; color: #FFFFFF; font-family: var(--display); font-size: 1.4rem; }
.cover.culture { background: #B0304C; }
.cover.wellbeing { background: #862E39; }
.cover.leadership { background: #B69069; }
.cover.future { background: #4A3A33; }
.cover svg { position: absolute; right: -6%; top: 10%; width: 70%; opacity: 0.22; }
.cover svg path { fill: none; stroke: #FFFFFF; stroke-width: 14; stroke-linecap: round; }
.post-card h3 { font-size: 1.35rem; }
.post-card:hover h3 { color: var(--berry); }
.post-meta { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article { max-width: 72ch; }
.article h2 { font-size: var(--step-2); margin-top: 1.8em; }
.article h3 { margin-top: 1.4em; }
.article p, .article li { margin-top: 0.9em; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-top: 0.4em; }
.article .table-wrap { margin-top: 1.4em; }
.article .note { background: var(--berry-soft); border-radius: 12px; padding: 14px 18px; color: var(--ink); }
.article blockquote { border-left: 3px solid var(--berry); margin: 1.2em 0; padding-left: 18px; font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.cover.big { aspect-ratio: 21 / 8; font-size: var(--step-2); }
@media (max-width: 620px) { .cover.big { aspect-ratio: 16 / 9; } }

/* events */
.event { display: grid; grid-template-columns: 170px 1fr; gap: 20px 36px; padding-block: 32px; border-top: 1px solid var(--line); }
.event > * { min-width: 0; }
.datebox { display: grid; gap: 4px; align-content: start; }
.datebox .d { font-family: var(--display); font-size: var(--step-3); color: var(--ink); line-height: 1; }
.datebox .m { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--1); color: var(--berry); }
.status { display: inline-flex; width: fit-content; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--berry-soft); color: var(--berry-deep); }
.status.past { background: var(--band); color: var(--muted); }
.event dl { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 4px 0 0; font-size: 0.92rem; }
.event dt { font-weight: 700; color: var(--ink); }
.event dd { margin: 0; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 0.9rem; display: grid; }
.flow b { font-variant-numeric: tabular-nums; color: var(--berry); }
@media (max-width: 760px) { .event { grid-template-columns: 1fr; } .flow { grid-template-columns: repeat(2, 1fr); } }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 1.8rem; color: var(--berry); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; max-width: 72ch; }

/* cta band */
.cta { background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.cta h2 { color: var(--bg); }
.cta p { color: color-mix(in srgb, var(--bg) 80%, transparent); max-width: 52ch; }
.cta .contact-lines { display: grid; gap: 6px; font-weight: 600; }
.cta .contact-lines a { color: var(--bg); text-decoration: none; }
.cta .btn { background: var(--berry); border-color: var(--berry); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* forms */
form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 0.9rem; color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--taupe); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--berry); outline-offset: 1px; border-color: var(--berry); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--berry-deep); background: var(--berry-soft); padding: 10px 14px; border-radius: 10px; }
.hp { display: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; }
.inline-form input { flex: 1 1 220px; }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: clamp(56px, 7vw, 96px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-block: 56px 32px; }
.footer-grid > * { min-width: 0; }
.footer-grid h2 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: #FFFFFF; font-weight: 700; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.footer-grid .brand img { width: 170px; }
.footer-grid address { font-style: normal; display: grid; gap: 6px; font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom .lang { border-color: rgba(255, 255, 255, .2); }
.footer-bottom .lang a { color: var(--footer-text); }
.footer-bottom .lang a[aria-current="true"] { background: #FFFFFF; color: #2B1200; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: no-preference) {
  .hero .reveal { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .reveal:nth-child(2) { animation-delay: .06s; } .hero .reveal:nth-child(3) { animation-delay: .12s; } .hero .reveal:nth-child(4) { animation-delay: .18s; }
  .under-smile svg path { stroke-dasharray: 200; animation: dash 1s .4s ease-out both; }
}
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes dash { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.site-footer label { color: #FFFFFF; }
.site-footer input { border-color: transparent; }

/* hero cycle: the four tiers as one continuous loop with a turning needle */
.cycle-figure { margin: 0; display: grid; gap: 16px; justify-items: center; }
.cycle { width: min(100%, 380px); height: auto; overflow: visible; }
.cycle .seg { fill: none; stroke-width: 30; }
.cycle .seg-link { cursor: pointer; }
.cycle .seg-link:hover .seg, .cycle .seg-link:focus-visible .seg { stroke-width: 36; }
.cycle .seg-num { font-family: var(--display); font-size: 22px; fill: var(--ink); }
.cycle .cycle-center { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
.cycle .needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(45deg); }
.cycle .halo { transform-box: view-box; transform-origin: 200px 200px; }
@media (prefers-reduced-motion: no-preference) {
  .cycle .needle { animation: needle 9s linear infinite; }
  .cycle .needle .tip { animation: tip 1.8s ease-in-out infinite; }
  .cycle .halo { animation: halo 3.6s ease-in-out infinite; }
}
@keyframes needle { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes tip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes halo { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .55; } }
.cycle-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(100%, 420px); }
.cycle-list a { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font-size: .9rem; font-weight: 600; line-height: 1.25; height: 100%; }
.cycle-list a:hover { border-color: var(--berry); }
.cycle-list b { font-family: var(--display); font-weight: 400; color: var(--berry); font-size: 1.4rem; }
.cycle-list small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.cycle-track { width: min(100%, 420px); text-decoration: none; color: var(--ink); background: var(--taupe); border-radius: 14px; padding: 10px 14px; font-weight: 600; font-size: .92rem; }
.cycle-track small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--berry-deep); font-weight: 700; }
.cycle-figure figcaption { font-size: var(--step--1); color: var(--muted); text-align: center; max-width: 40ch; }

/* methodology: U.S. Surgeon General Five Essentials */
.method-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.method-grid > * { min-width: 0; }
.ess-figure { margin: 0; }
.ess-diagram { width: 100%; max-width: 480px; height: auto; display: block; margin-inline: auto; }
.ess-diagram .ess-num { font-family: var(--display); font-size: 34px; fill: #FFFFFF; }
.ess-diagram .ess-center { font-family: var(--display); font-size: 20px; fill: var(--ink); }
.ess-diagram .ess-small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; fill: var(--berry); }
.ess-cards { list-style: none; padding: 0; margin: clamp(24px, 3vw, 40px) 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ess-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.ess-cards b { font-family: var(--display); font-weight: 400; color: var(--berry); font-size: 1.6rem; line-height: 1; }
.ess-cards h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; }
.ess-cards p { font-size: .9rem; color: var(--muted); }
.small-note { font-size: var(--step--1); }
@media (max-width: 960px) { .method-grid { grid-template-columns: 1fr; } .ess-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ess-cards { grid-template-columns: 1fr; } }

/* values */
.values { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px 40px; align-items: start; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.values > * { min-width: 0; }
.values-slogan { font-size: var(--step-2); }
.values-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.values-list h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 1.35rem; color: var(--berry); }
.values-list p { font-size: .92rem; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .values-list { grid-template-columns: 1fr; } }

/* program areas (home) and library */
.area-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.area-card { position: relative; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, transform .2s; }
.area-card:hover { border-color: var(--berry); transform: translateY(-2px); }
.area-card h3 { font-size: 1.2rem; }
.area-card p { font-size: .9rem; color: var(--muted); }
.area-card .more { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--berry); }
.area-count { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--berry); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .area-grid { grid-template-columns: 1fr; } }
.area-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.area-jump a { text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .9rem; }
.area-jump a span { color: var(--berry); margin-left: 4px; font-variant-numeric: tabular-nums; }
.area-jump a:hover { border-color: var(--berry); }
.prog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.prog-grid > * { min-width: 0; }
@media (max-width: 960px) { .prog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .prog-grid { grid-template-columns: 1fr; } }
.prog { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.prog h3 { font-family: var(--sans); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.prog p { font-size: .92rem; }
.prog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--step--1); color: var(--muted); }
.chip { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--berry-soft); color: var(--berry-deep); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.prog-expert { margin-top: auto; padding-top: 4px; font-size: .88rem; font-weight: 600; text-decoration: none; }

/* photos */
.avatar.photo { object-fit: cover; padding: 0; background: var(--taupe); }
.founder .avatar.photo { width: 120px; height: 120px; border-radius: 50%; }
.founder .avatar.photo.portrait { width: 200px; height: 250px; border-radius: var(--radius); }
.person .avatar.photo { width: 64px; height: 64px; border-radius: 50%; grid-row: span 3; }
@media (max-width: 620px) { .founder .avatar.photo.portrait { width: 160px; height: 200px; } }
.site-footer address strong { color: #FFFFFF; font-weight: 600; }
.nw { white-space: nowrap; }
.person { grid-template-columns: 84px 1fr; }
.person .avatar, .person .avatar.photo { width: 84px; height: 84px; }
/* logo keeps its proportions everywhere (footer sits in a grid that stretches items) */
.brand { align-items: center; }
.brand img { height: auto; align-self: center; object-fit: contain; }
.footer-grid .brand { justify-self: start; width: auto; }
.footer-grid .brand img { width: 170px; max-width: 100%; aspect-ratio: 400 / 105; }
