/* WordFarm public website (P9): red and white, approachable, uncluttered. Logical properties keep RTL ready. */
:root {
    --wfs-red: #d62311;
    --wfs-red-deep: #a91b0d;
    --wfs-white: #ffffff;
    --wfs-neutral: #f6f5f3;
    --wfs-charcoal: #292929;
    --wfs-gray: #616161;
    --wfs-border: #d9d9d9;
    --wfs-green: #28734a;
    --wfs-radius: 16px;
    --wfs-font: "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC",
        "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Thai", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body.wfs-body {
    margin: 0;
    background: var(--wfs-white);
    color: var(--wfs-charcoal);
    font-family: var(--wfs-font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body.wfs-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.wfs-body > main { flex: 1; }

a { color: var(--wfs-red-deep); }
img { max-width: 100%; height: auto; }

.wfs-wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }

.wfs-skip { position: absolute; inset-inline-start: -999px; }
.wfs-skip:focus { inset-inline-start: 12px; top: 12px; z-index: 10; background: var(--wfs-white); padding: 8px 12px; }

/* Header */
.wfs-header { position: sticky; top: 0; z-index: 5; background: var(--wfs-white); border-bottom: 3px solid var(--wfs-red); }
.wfs-header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; }
.wfs-brand { display: inline-flex; align-items: center; }
.wfs-brand img { display: block; height: 32px; width: auto; }
.wfs-brand-small img { height: 26px; }
.wfs-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.wfs-nav a { padding: 6px 12px; border-radius: 999px; color: var(--wfs-charcoal); text-decoration: none; font-weight: 600; }
.wfs-nav a:hover, .wfs-nav a.is-active { background: var(--wfs-neutral); color: var(--wfs-red-deep); }
.wfs-header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 16px; }
.wfs-signin { color: var(--wfs-charcoal); font-weight: 600; text-decoration: none; }

/* Buttons */
.wfs-button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px;
    border: 2px solid var(--wfs-red); border-radius: 999px; background: var(--wfs-red); color: var(--wfs-white);
    font-weight: 700; text-decoration: none; text-align: center;
}
.wfs-button:hover { background: var(--wfs-red-deep); border-color: var(--wfs-red-deep); }
.wfs-button-secondary { background: var(--wfs-white); color: var(--wfs-red-deep); }
.wfs-button-secondary:hover { background: #fff4f2; color: var(--wfs-red-deep); }
.wfs-button-large { min-height: 52px; padding: 12px 28px; font-size: 1.05rem; }
.wfs-button-block { display: flex; width: 100%; }
.wfs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 12px; }

/* Sections */
.wfs-hero { background: var(--wfs-neutral); padding: 56px 0; }
.wfs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; }
.wfs-lead { font-size: 1.2rem; color: var(--wfs-charcoal); max-width: 40em; }
.wfs-note { color: var(--wfs-gray); font-size: 0.95rem; }
.wfs-kicker { margin: 0 0 8px; font-weight: 700; }
.wfs-page-head { background: var(--wfs-neutral); padding: 44px 0 36px; }
.wfs-page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; margin: 0 0 12px; }
.wfs-section { padding: 56px 0; }
.wfs-section-alt { background: var(--wfs-neutral); }
.wfs-section h2 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 16px; }
.wfs-two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.wfs-more { font-weight: 700; }

.wfs-phone { margin: 0; justify-self: center; }
.wfs-phone img {
    display: block; width: 300px; border: 10px solid var(--wfs-charcoal); border-radius: 36px;
    box-shadow: 0 24px 48px rgba(41, 41, 41, 0.18); background: var(--wfs-white);
}
.wfs-phone-small img { width: 240px; }

.wfs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wfs-step { background: var(--wfs-white); border: 1px solid var(--wfs-border); border-radius: var(--wfs-radius); padding: 20px; }
.wfs-step img {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
    border-radius: 12px; border: 1px solid var(--wfs-border); margin-bottom: 16px;
}
.wfs-step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.wfs-step p { margin: 0; }

.wfs-checks { list-style: none; padding: 0; margin: 0 0 20px; }
.wfs-checks li { position: relative; padding-inline-start: 30px; margin: 10px 0; }
.wfs-checks li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: 0.45em; width: 18px; height: 10px;
    border-inline-start: 3px solid var(--wfs-red); border-bottom: 3px solid var(--wfs-red); transform: rotate(-45deg);
}
[dir="rtl"] .wfs-checks li::before { transform: rotate(45deg); }

.wfs-language-grid {
    list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    grid-auto-rows: 1fr; gap: 12px;
}
.wfs-language-grid li, .wfs-language-grid a { min-width: 0; }
.wfs-language-grid li { display: flex; }
.wfs-language-grid a span { overflow-wrap: anywhere; }
/* Every tile has the same height, whatever the length of the language name. */
.wfs-language-grid a {
    display: flex; align-items: center; gap: 12px; flex: 1; padding: 14px 18px; border: 1px solid var(--wfs-border);
    border-radius: 12px; color: var(--wfs-charcoal); font-weight: 700; text-decoration: none; background: var(--wfs-white);
}
.wfs-language-grid a:hover { border-color: var(--wfs-red); color: var(--wfs-red-deep); }
.wfs-language-grid-large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 192px), 1fr)); }
.wfs-language-grid-large a { padding: 16px; font-size: 1.1rem; }
/* A flag beside each language, so people find theirs at a glance. */
.wfs-flag {
    flex: none; width: 30px; height: 20px; border-radius: 3px; object-fit: cover;
    box-shadow: 0 0 0 1px rgba(41, 41, 41, 0.14);
}
.wfs-language-grid-large .wfs-flag { width: 36px; height: 24px; }
.wfs-flag-title { display: inline-block; width: 48px; height: 32px; border-radius: 5px; vertical-align: -0.08em; margin-inline-end: 8px; }

/* Hovering: what can be pressed lifts a little, everywhere on the site (owner request, 12 October 2026). */
.wfs-button, .wfs-nav a, .wfs-language-grid a, .wfs-flag, .wfs-step, .wfs-plan, .wfs-researchers img, .wfs-brand img,
.wfs-faq summary, .wfs-more {
    transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.15s ease, background-color 0.15s ease,
        color 0.15s ease;
}
@media (hover: hover) {
    .wfs-language-grid a:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(41, 41, 41, 0.1); }
    .wfs-language-grid a:hover .wfs-flag { transform: scale(1.15) rotate(-4deg); }
    .wfs-button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(214, 35, 17, 0.24); }
    .wfs-step:hover, .wfs-plan:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(41, 41, 41, 0.08); }
    .wfs-researchers li:hover img { transform: scale(1.06); box-shadow: 0 8px 22px rgba(41, 41, 41, 0.2); }
    .wfs-brand:hover img { transform: scale(1.03); }
    .wfs-faq summary:hover { color: var(--wfs-red-deep); }
}
.wfs-button:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
    .wfs-button, .wfs-nav a, .wfs-language-grid a, .wfs-flag, .wfs-step, .wfs-plan, .wfs-researchers img, .wfs-brand img,
    .wfs-faq summary, .wfs-more { transition: none; }
    .wfs-language-grid a:hover, .wfs-language-grid a:hover .wfs-flag, .wfs-button:hover, .wfs-button:active,
    .wfs-step:hover, .wfs-plan:hover, .wfs-researchers li:hover img, .wfs-brand:hover img { transform: none; }
}

/* Pricing */
.wfs-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wfs-plan { border: 1px solid var(--wfs-border); border-radius: var(--wfs-radius); padding: 28px; display: flex; flex-direction: column; }
.wfs-plan .wfs-button-block { margin-top: auto; }
.wfs-plan-featured { border: 3px solid var(--wfs-red); }
.wfs-plan h2 { margin: 0; }
.wfs-plan-price { font-size: 2.4rem; font-weight: 800; margin: 8px 0 12px; }
.wfs-plan-price span { font-size: 1rem; font-weight: 600; color: var(--wfs-gray); }

/* Long-form pages: the text column starts where the page heading does, at a readable width. */
.wfs-prose > * { max-width: 760px; }
.wfs-prose h2 { margin-top: 40px; }
.wfs-prose h2:first-child { margin-top: 0; }
.wfs-how { background: #fff4f2; border-inline-start: 4px solid var(--wfs-red); padding: 12px 16px; border-radius: 8px; }
.wfs-references ol { max-width: 880px; padding-inline-start: 1.4em; }
.wfs-references li { margin-bottom: 12px; overflow-wrap: anywhere; }
.wfs-faq details { border-bottom: 1px solid var(--wfs-border); padding: 16px 0; }
.wfs-faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.wfs-faq details p { margin: 12px 0 0; }

.wfs-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.wfs-table th, .wfs-table td { padding: 10px 12px; border-bottom: 1px solid var(--wfs-border); text-align: start; }
.wfs-table th { background: var(--wfs-neutral); font-size: 0.95rem; }
.wfs-target { font-size: 1.2rem; font-weight: 700; }

/* Call to action and footer */
.wfs-cta { background: var(--wfs-red); color: var(--wfs-white); padding: 56px 0; text-align: center; }
.wfs-cta h2 { font-size: 2rem; margin: 0 0 8px; }
.wfs-cta p { margin: 0 0 24px; font-size: 1.1rem; }
.wfs-cta .wfs-button { background: var(--wfs-white); color: var(--wfs-red-deep); border-color: var(--wfs-white); }
.wfs-cta .wfs-button:hover { background: #fff4f2; }
.wfs-footer { border-top: 1px solid var(--wfs-border); padding: 32px 0 24px; }
.wfs-footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wfs-footer p { margin: 4px 0; color: var(--wfs-gray); }
.wfs-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.wfs-footer nav a { color: var(--wfs-charcoal); text-decoration: none; font-weight: 600; }
.wfs-legal { font-size: 0.9rem; color: var(--wfs-gray); margin-top: 16px; }

@media (max-width: 860px) {
    .wfs-two, .wfs-plans { grid-template-columns: 1fr; }
    .wfs-steps { grid-template-columns: 1fr; }
    .wfs-hero { padding: 36px 0; }
    .wfs-section { padding: 40px 0; }
}

@media (max-width: 560px) {
    .wfs-header-row { gap: 8px 12px; padding-block: 10px; }
    .wfs-nav { order: 3; width: 100%; }
    .wfs-nav a { padding: 6px 10px; }
    .wfs-header-actions { gap: 12px; }
    .wfs-phone img { width: 240px; }
}

/* Contact form */
.wfs-form { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.wfs-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.wfs-form input, .wfs-form select, .wfs-form textarea {
    min-height: 44px; padding: 10px 12px; border: 1px solid var(--wfs-border); border-radius: 10px;
    font: inherit; font-weight: 400; color: var(--wfs-charcoal); background: var(--wfs-white);
}
.wfs-form input:focus, .wfs-form select:focus, .wfs-form textarea:focus { outline: 2px solid var(--wfs-red); outline-offset: 1px; }
.wfs-form .wfs-button { align-self: flex-start; }
.wfs-notice { background: #eef7f1; border-inline-start: 4px solid var(--wfs-green); padding: 16px 20px; border-radius: 8px; }
.wfs-notice h2 { margin: 0 0 4px; font-size: 1.3rem; }
.wfs-error { background: #fff4f2; border-inline-start: 4px solid var(--wfs-red); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }

/* Homepage video: a branded poster until the visitor presses play */
.wfs-video { margin: 0; }
.wfs-video-play, .wfs-video-frame {
    position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9;
    border: 0; border-radius: var(--wfs-radius); overflow: hidden; background: var(--wfs-red);
    box-shadow: 0 24px 48px rgba(41, 41, 41, 0.18);
}
.wfs-video-mark { width: 26%; height: auto; margin-bottom: 8%; }
.wfs-video-button {
    position: absolute; inset-inline-start: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px; border-radius: 999px; background: var(--wfs-white); color: var(--wfs-red-deep); font-weight: 700;
}
.wfs-video-icon {
    width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
    border-inline-start: 13px solid var(--wfs-red);
}
.wfs-video-play:hover .wfs-video-button, .wfs-video-play:focus-visible .wfs-video-button { background: #fff4f2; }
.wfs-video .wfs-note { margin: 8px 0 0; font-size: 0.85rem; }

/* Researchers interviewed */
.wfs-researcher-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* Welcome offer for signed-in learners */
.wfs-offer { background: #fff4f2; border-bottom: 1px solid var(--wfs-red); }
.wfs-offer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-block: 12px; }
.wfs-offer-row p { flex: 1 1 32em; margin: 0; }
.wfs-offer-ends { white-space: nowrap; color: var(--wfs-red-deep); font-weight: 700; }
.wfs-countdown { display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; vertical-align: top; }
.wfs-cd-part { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.1; }
.wfs-cd-part small { font-size: 0.6em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.8; }
.wfs-cd-sep { padding: 0 2px; }
.wfs-plan-price s { font-size: 1.2rem; color: var(--wfs-gray); font-weight: 600; }
.wfs-plan-price .wfs-offer-price { font-size: inherit; color: inherit; font-weight: inherit; }

/* Science page */
.wfs-visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.wfs-stats { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 0; }
.wfs-stats > div {
    display: flex; flex-direction: column-reverse; min-width: 180px; padding: 14px 18px; border-radius: 12px;
    background: var(--wfs-white); border: 1px solid var(--wfs-border);
}
.wfs-stats dt { color: var(--wfs-gray); font-size: 0.9rem; }
.wfs-stats dd { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.wfs-measure { max-width: 760px; }
.wfs-eyebrow { margin: 0 0 6px; font-weight: 700; color: var(--wfs-red-deep); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.wfs-figure {
    margin: 24px 0; padding: 20px 22px; background: var(--wfs-white); border: 1px solid var(--wfs-border);
    border-radius: var(--wfs-radius);
}
.wfs-figure-title { display: block; margin: 0 0 16px; font-weight: 700; }
.wfs-figure-note { margin: 16px 0 0; color: var(--wfs-gray); font-size: 0.88rem; }

.wfs-comparison {
    margin-top: 24px;
    border: 1px solid var(--wfs-border);
    border-radius: var(--wfs-radius);
    overflow: hidden;
}
.wfs-comparison table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.wfs-comparison thead th { background: var(--wfs-neutral); }
.wfs-comparison th, .wfs-comparison td {
    padding: 11px 16px;
    text-align: start;
    border-bottom: 1px solid var(--wfs-border);
    overflow-wrap: anywhere;
}
.wfs-comparison thead th:first-child { width: 50%; }
.wfs-comparison td:nth-child(2), .wfs-comparison thead th:nth-child(2) { background: #fff4f2; }
.wfs-comparison .wfs-comparison-group th { background: var(--wfs-neutral); color: var(--wfs-gray); }
.wfs-comparison tbody:last-child tr:last-child > * { border-bottom: 0; }
.wfs-comparison a { color: inherit; text-decoration-color: var(--wfs-border); text-underline-offset: 3px; }
.wfs-comparison a:hover, .wfs-comparison a:focus-visible { color: var(--wfs-red-deep); }
.wfs-comparison small { display: block; color: var(--wfs-gray); }
.wfs-comparison-count { margin-inline-start: 0.25em; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The 24 criteria */
.wfs-criteria { display: grid; gap: 28px; margin-top: 28px; }
.wfs-criterion { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 18px; scroll-margin-top: 90px; }
.wfs-criterion > div > * { max-width: 760px; }
.wfs-criterion > div > .wfs-figure { max-width: none; }
.wfs-criterion h3 { margin: 4px 0 8px; font-size: 1.25rem; }
.wfs-criterion p { margin: 0 0 12px; }
.wfs-criterion .wfs-figure-note { margin: 16px 0 0; }
.wfs-criterion-number {
    display: flex; align-items: center; justify-content: center; min-width: 3rem; height: 3rem; padding: 0 6px;
    border: 2px solid var(--wfs-red); border-radius: 999px; color: var(--wfs-red-deep); font-weight: 800;
    background: var(--wfs-white); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.95rem;
}
[id^="criterion-"] { scroll-margin-top: 90px; }

/* The four retrieval formats */
.wfs-formats-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: stretch; }
.wfs-formats-head, .wfs-formats-side { font-weight: 700; display: flex; flex-direction: column; justify-content: center; }
.wfs-formats-head { text-align: center; }
.wfs-formats-head small, .wfs-formats-side small { font-weight: 400; color: var(--wfs-gray); }
.wfs-format {
    display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--wfs-border); background: #fff4f2; scroll-margin-top: 90px;
}
.wfs-format-hardest { border-color: var(--wfs-red); }
.wfs-format-step { color: var(--wfs-red-deep); font-weight: 700; font-size: 0.85rem; }
.wfs-format-criterion { color: var(--wfs-gray); font-size: 0.85rem; }

/* Days between reviews */
.wfs-intervals { display: grid; gap: 8px; }
.wfs-interval { display: grid; grid-template-columns: 8.5rem 1fr; align-items: center; gap: 14px; }
.wfs-interval-label { color: var(--wfs-gray); font-size: 0.92rem; }
.wfs-interval-track { display: flex; align-items: center; gap: 10px; height: 24px; border-inline-start: 1px solid #e7e3df; }
.wfs-interval-bar { display: block; height: 14px; border-start-end-radius: 4px; border-end-end-radius: 4px; background: var(--wfs-red); }
.wfs-interval-value { font-weight: 700; white-space: nowrap; }

@media (max-width: 640px) {
    .wfs-comparison { font-size: 0.875rem; }
    .wfs-comparison th, .wfs-comparison td { padding: 9px 8px; }
    .wfs-comparison thead th:first-child { width: 45%; }
    .wfs-criterion { grid-template-columns: 1fr; gap: 8px; }
    .wfs-criterion-number { justify-self: start; }
    [id^="criterion-"] { scroll-margin-top: 180px; }
    .wfs-formats-grid { grid-template-columns: 1fr 1fr; }
    .wfs-formats-grid > span:first-child, .wfs-formats-side { display: none; }
    .wfs-interval { grid-template-columns: 6.5rem 1fr; gap: 10px; }
    .wfs-figure { padding: 16px; }
}

@media (max-width: 360px) {
    [id^="criterion-"] { scroll-margin-top: 220px; }
}

.wfs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Two drifting rows of portraits behind the full-width homepage hero. */
.wfs-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding-block: clamp(64px, 9vw, 124px); }
.wfs-hero-backdrop { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #f9ebe7; }
.wfs-hero-backdrop::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, #fff 20%, rgba(255,255,255,0.98) 42%, rgba(255,255,255,0.35) 100%);
}
.wfs-hero-track { display: flex; width: max-content; position: absolute; inset-block-start: 24px; inset-inline-start: 0; opacity: 0.70; }
.wfs-hero-track + .wfs-hero-track { inset-block-start: auto; inset-block-end: 24px; }
.wfs-hero-portraits { display: flex; gap: 18px; padding-inline-end: 18px; animation: wfs-hero-drift 95s linear infinite; }
.wfs-hero-track + .wfs-hero-track .wfs-hero-portraits { animation-direction: reverse; animation-delay: -32s; }
.wfs-hero-portraits img {
    width: clamp(100px, 12vw, 200px); aspect-ratio: 1; border-radius: 50%; object-fit: cover;
    border: 5px solid white;
}
.wfs-hero.is-paused .wfs-hero-portraits { animation-play-state: paused; }
.wfs-hero-copy { max-width: 840px; }
.wfs-hero-copy h1 { text-wrap: balance; }
#comparison, #research { scroll-margin-top: 100px; }
.wfs-hero-copy .wfs-lead { margin-inline: auto; }
.wfs-hero-copy .wfs-actions { justify-content: center; }
.wfs-eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; font-weight: 700; color: var(--wfs-red-deep); }
.wfs-motion-control { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; }
@keyframes wfs-hero-drift { to { transform: translateX(-100%); } }

/* Research portraits orbit the WordFarm icon, staying upright as their rings turn. */
.wfs-research-section { text-align: center; }
.wfs-research-section .wfs-lead { margin-inline: auto; }
.wfs-researcher-links { justify-content: center; }
.wfs-research-stage {
    --orbit-size: min(608px, calc(100vw - 40px));
    --inner-radius: calc(var(--orbit-size) * 0.28);
    --outer-radius: calc(var(--orbit-size) * 0.43);
    position: relative; width: var(--orbit-size); aspect-ratio: 1; margin: 0 auto 14px;
}
.wfs-research-stage::before, .wfs-research-stage::after {
    content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: calc(2 * var(--inner-radius)); aspect-ratio: 1; border: 1px solid #e5bbb4; border-radius: 50%;
}
.wfs-research-stage::after { width: calc(2 * var(--outer-radius)); }
.wfs-researchers {
    --radius: var(--inner-radius); --period: 150s; --direction: normal; --counter: reverse;
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    list-style: none; padding: 0; margin: 0;
    animation: wfs-orbit var(--period) linear infinite var(--direction);
}
.wfs-research-outer { --radius: var(--outer-radius); --period: 190s; --direction: reverse; --counter: normal; }
.wfs-researchers li {
    position: absolute; top: 50%; left: 50%; width: calc(var(--orbit-size) * 0.129); aspect-ratio: 1;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--radius)) rotate(calc(-1 * var(--angle)));
}
.wfs-researcher {
    display: block; width: 100%; height: 100%; padding: 0; overflow: hidden;
    border: 3px solid white; border-radius: 50%; background: white; cursor: pointer; pointer-events: auto;
    box-shadow: 0 4px 14px rgba(41,41,41,0.16);
    animation: wfs-orbit var(--period) linear infinite var(--counter);
}
.wfs-researcher img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wfs-researcher:focus-visible { outline: 2px solid var(--wfs-red); outline-offset: 3px; }
.wfs-research-stage:focus-within :is(.wfs-researchers, .wfs-researcher),
.is-paused :is(.wfs-researchers, .wfs-researcher) { animation-play-state: paused; }
@media (hover: hover) {
    .wfs-research-stage:hover :is(.wfs-researchers, .wfs-researcher) { animation-play-state: paused; }
}
.wfs-research-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 18%; border-radius: 26%; box-shadow: 0 12px 35px rgba(41,41,41,0.13);
}
@keyframes wfs-orbit { to { transform: rotate(360deg); } }

.wfs-link-button {
    border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--wfs-red-deep);
    text-decoration: underline; cursor: pointer;
}
.wfs-research-dialog { max-width: min(480px, 90vw); border: 1px solid var(--wfs-border); border-radius: 20px; padding: 28px; color: var(--wfs-charcoal); }
.wfs-research-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.wfs-research-dialog form { text-align: right; }

@media (prefers-reduced-motion: reduce) {
    .wfs-hero-portraits, .wfs-researchers, .wfs-researcher { animation: none; }
    .wfs-motion-control { display: none; }
}
