/* ==========================================================================
   Spejko Coach — public site design system
   Editorial grid: sharp edges, condensed uppercase display type, a single
   red-orange accent on near-black. Replaces modern.css + redesign.css.
   ========================================================================== */

:root {
    --acc: #e8412a;
    --acc-hover: #f2573f;
    --acc-soft: #f8907f;
    --ink: #0b0b0c;
    --surf: #131316;
    --surf-2: #191920;
    --line: #26262e;
    --line-strong: #3a3a45;
    --bone: #f4f1ec;
    --body: #b8b8c2;
    --body-2: #a6a6b0;
    --mute: #8f8f99;
    --dim: #5c5c66;

    --display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
    --text: 'Barlow', system-ui, sans-serif;

    --pad-y: clamp(52px, 6.6vw, 96px);
    --pad-x: clamp(18px, 3.4vw, 48px);
    --nav-h: 74px;
}

html[dir="rtl"] {
    --display: 'Tajawal', 'Barlow Condensed', sans-serif;
    --text: 'Tajawal', 'Barlow', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font-family: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--acc);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--acc-soft);
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

img {
    max-width: 100%;
}

p {
    margin: 0;
}

input,
textarea,
button,
select {
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--dim);
}

::selection {
    background: var(--acc);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--acc);
    outline-offset: 3px;
}

/* --------------------------------------------------------- shell & type */

.shell {
    max-width: 1440px;
    margin: 0 auto;
    background: var(--ink);
    position: relative;
}

.t-h1 {
    font-size: clamp(44px, 6vw, 82px);
    line-height: 0.92;
    letter-spacing: -0.005em;
}

.t-h2 {
    font-size: clamp(34px, 4.1vw, 56px);
    line-height: 0.98;
}

.t-h3 {
    font-size: clamp(28px, 2.4vw, 34px);
    line-height: 0.98;
}

.t-h4 {
    font-size: clamp(22px, 1.9vw, 26px);
    line-height: 1;
}

.t-cta {
    font-size: clamp(34px, 4.9vw, 70px);
    line-height: 0.94;
}

.lead {
    font-size: clamp(15.5px, 1.2vw, 17px);
    line-height: 1.65;
    color: var(--body);
}

.copy {
    font-size: clamp(14.5px, 1.1vw, 16.5px);
    line-height: 1.7;
    color: var(--body);
}

.copy-sm {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--mute);
}

.note {
    font-size: 12.5px;
    color: var(--mute);
}

.accent,
.text-primary {
    color: var(--acc);
}

/* Small uppercase tracked label — eyebrows, meta, stat captions */
.kicker {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mute);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--acc);
    flex: none;
}

.eyebrow span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--acc);
}

/* --------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn--solid {
    background: var(--acc);
    color: var(--ink);
}

.btn--solid:hover {
    background: var(--acc-hover);
    color: var(--ink);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--bone);
    background: transparent;
}

.btn--ghost:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.btn--ink {
    background: var(--ink);
    color: var(--acc);
}

.btn--ink:hover {
    background: var(--line);
    color: var(--acc);
}

.btn--sm {
    padding: 13px 24px;
    font-size: 13.5px;
}

.btn--block {
    width: 100%;
}

/* Card footer action: label left, arrow right */
.btn--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line-strong);
    color: var(--bone);
    font-family: var(--display);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn--row:hover {
    background: var(--acc);
    border-color: var(--acc);
    color: var(--ink);
}

.link-arrow {
    font-family: var(--display);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acc);
}

html[dir="rtl"] .arrow {
    display: inline-block;
    transform: scaleX(-1);
}

/* Arabic is cursive — tracking that flatters Latin caps only pulls it apart. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .kicker,
html[dir="rtl"] .btn,
html[dir="rtl"] .btn--row,
html[dir="rtl"] .link-arrow,
html[dir="rtl"] .nav__link,
html[dir="rtl"] .nav__brand,
html[dir="rtl"] .nav__cta,
html[dir="rtl"] .nav__drawer a,
html[dir="rtl"] .eyebrow span,
html[dir="rtl"] .sec-head__label,
html[dir="rtl"] .sec-head__num,
html[dir="rtl"] .card__tag,
html[dir="rtl"] .free-badge,
html[dir="rtl"] .free-row__title,
html[dir="rtl"] .free-row__level,
html[dir="rtl"] .free-row__go,
html[dir="rtl"] .spec__row dt,
html[dir="rtl"] .spec__row dd,
html[dir="rtl"] .field > span,
html[dir="rtl"] .footer__brand,
html[dir="rtl"] .footer__col > span,
html[dir="rtl"] .hero__badge strong,
html[dir="rtl"] .portrait__tag,
html[dir="rtl"] .pill,
html[dir="rtl"] .modal__eyebrow,
html[dir="rtl"] .modal__label,
html[dir="rtl"] .choice > span {
    letter-spacing: 0;
}

/* --------------------------------------------------------- navigation */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px var(--pad-x);
    background: rgba(11, 11, 12, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav__brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bone);
    white-space: nowrap;
}

.nav__brand:hover {
    color: var(--bone);
}

.nav__brand span {
    color: var(--acc);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--bone);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav__pref {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--mute);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav__pref:hover {
    color: var(--bone);
    border-color: var(--line-strong);
}

.nav__pref i {
    font-style: normal;
    opacity: .4;
}

.nav__cta {
    padding: 11px 22px;
    background: var(--acc);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav__cta:hover {
    background: var(--acc-hover);
    color: var(--ink);
}

.nav__burger {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--bone);
    cursor: pointer;
}

.nav__burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 4px auto;
    background: currentColor;
    transition: transform .25s ease, opacity .25s ease;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

.nav__drawer {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    z-index: 39;
    flex-direction: column;
    padding: 8px var(--pad-x) 28px;
    background: rgba(11, 11, 12, 0.98);
    border-bottom: 1px solid var(--line);
}

.nav__drawer.is-open {
    display: flex;
}

.nav__drawer a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--display);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--bone);
}

.nav__drawer a:hover {
    color: var(--acc);
}

.nav__drawer .nav__cta {
    display: block;
    margin-top: 22px;
    text-align: center;
    border-bottom: none;
    color: var(--ink);
}

/* --------------------------------------------------------- sections */

.section {
    padding: var(--pad-y) var(--pad-x);
    border-bottom: 1px solid var(--line);
}

.section--surf {
    background: var(--surf);
}

.section--accent {
    background: var(--acc);
    color: var(--ink);
    border-bottom: none;
    padding: clamp(48px, 5.4vw, 76px) var(--pad-x);
}

.sec-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
}

.sec-head__num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--acc);
}

.sec-head__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mute);
}

.sec-head__rule {
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* Headline left, supporting paragraph right */
.sec-lede {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    margin-bottom: 44px;
}

.sec-lede p {
    max-width: 30em;
}

.split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.split--wide-first {
    grid-template-columns: 7fr 5fr;
}

.split--center {
    align-items: center;
}

/* --------------------------------------------------------- hero */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 660px;
    border-bottom: 1px solid var(--line);
}

.hero__text {
    padding: clamp(44px, 6vw, 88px) clamp(18px, 3.9vw, 56px) clamp(40px, 5vw, 72px) var(--pad-x);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.hero__text .t-h1 {
    margin-bottom: 24px;
}

.hero__text .lead {
    max-width: 30em;
    margin-bottom: 34px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 38px;
}

.hero__foot {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--mute);
}

.hero__foot::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--acc);
    flex: none;
}

.hero__img {
    position: relative;
    overflow: hidden;
    background: #000;
    min-height: 360px;
}

.hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(0.35) contrast(1.1) brightness(0.72);
}

.hero__img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--ink) 0%, rgba(11, 11, 12, 0.35) 34%, transparent 70%);
}

html[dir="rtl"] .hero__img::after {
    background: linear-gradient(270deg, var(--ink) 0%, rgba(11, 11, 12, 0.35) 34%, transparent 70%);
}

.hero__badge {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    z-index: 2;
    padding: 26px 30px;
    background: rgba(11, 11, 12, 0.8);
    border-top: 1px solid var(--line);
    border-inline-end: 1px solid var(--line);
}

.hero__badge strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone);
}

.hero__badge span {
    display: block;
    font-size: 12.5px;
    color: var(--mute);
    margin-top: 4px;
}

/* Compact hero for subpages */
.hero--page {
    grid-template-columns: 1fr;
    min-height: 0;
}

/* --------------------------------------------------------- stat strip */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line);
    background: var(--surf);
}

.stats > div {
    padding: 32px clamp(18px, 2.5vw, 36px);
}

.stats > div + div {
    border-inline-start: 1px solid var(--line);
}

.stats__num {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(34px, 3.1vw, 44px);
    line-height: 1;
}

.stats > div:first-child .stats__num {
    color: var(--acc);
}

.stats__label {
    margin-top: 8px;
}

/* Two-up stat pair inside a text column */
.stat-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 32px;
}

.stat-pair > div {
    padding: 24px;
}

.stat-pair > div:first-child {
    padding-inline-start: 0;
}

.stat-pair > div + div {
    border-inline-start: 1px solid var(--line);
}

.stat-pair strong {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(36px, 3.2vw, 46px);
    line-height: 1;
    color: var(--acc);
}

.stat-pair span {
    display: block;
    margin-top: 8px;
}

/* --------------------------------------------------------- spec lists */

.spec {
    border-top: 1px solid var(--line);
    margin: 0;
}

.spec__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.spec__row dt {
    font-family: var(--display);
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0;
}

.spec__row dd {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mute);
}

.spec__row dd.is-accent {
    color: var(--acc);
}

.spec--contact .spec__row {
    grid-template-columns: 120px 1fr;
    align-items: center;
}

.spec--contact .spec__row dt {
    font-family: var(--text);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--mute);
}

.spec--contact .spec__row dd {
    font-family: var(--text);
    font-size: 15.5px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--bone);
}

/* --------------------------------------------------------- portrait */

.portrait {
    position: relative;
}

.portrait img {
    width: 100%;
    display: block;
    filter: grayscale(0.3) contrast(1.05);
}

.portrait__tag {
    position: absolute;
    inset-inline-start: -1px;
    bottom: -1px;
    padding: 14px 20px;
    background: var(--acc);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* --------------------------------------------------------- cards */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-3--tight {
    gap: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--ink);
    border: 1px solid var(--line);
    transition: border-color .3s ease, transform .3s ease;
}

.card:hover {
    border-color: var(--acc);
}

.card--lift:hover {
    transform: translateY(-6px);
}

/* For cards sitting on the plain ink background, where an ink card would
   dissolve into the section behind it. */
.card--raised {
    background: var(--surf);
}

.card__media {
    height: 250px;
    background: var(--surf-2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.card__media--sm {
    height: 172px;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.25) contrast(1.05) brightness(0.85);
    transition: filter .35s ease, transform .5s ease;
}

.card:hover .card__media img {
    filter: grayscale(0) contrast(1.05) brightness(0.95);
    transform: scale(1.03);
}

.card__body {
    padding: 28px 26px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__body--sm {
    padding: 22px 22px 24px;
}

.card__tag {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 12px;
}

.card__title {
    margin-bottom: 12px;
}

.card__text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--body-2);
    margin-bottom: 22px;
}

.card__body--sm .card__text {
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.card__foot {
    margin-top: auto;
}

/* --------------------------------------------------------- free library */

.free-badge {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--acc);
    color: var(--acc);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.free-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.free-aside p {
    max-width: 26em;
}

.free-list {
    border-top: 1px solid var(--line);
}

.free-row {
    display: grid;
    grid-template-columns: 58px 1fr 130px 150px 110px;
    align-items: center;
    gap: 20px;
    padding: 22px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--bone);
    transition: background .25s ease;
}

.free-row:hover {
    background: var(--surf-2);
    color: var(--bone);
}

.free-row__num {
    font-family: var(--display);
    font-weight: 700;
    font-size: 20px;
    color: var(--acc);
}

.free-row__title {
    display: block;
    font-family: var(--display);
    font-weight: 600;
    font-size: clamp(19px, 1.7vw, 23px);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.free-row__sub {
    display: block;
    font-size: 13.5px;
    color: var(--mute);
    margin-top: 3px;
}

.free-row__meta {
    font-size: 13.5px;
    color: var(--body-2);
}

.free-row__level {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.free-row__go {
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acc);
    text-align: end;
}

.free-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
}

.free-empty {
    padding: 44px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--mute);
    font-size: 14.5px;
}

/* --------------------------------------------------------- media frames */

.frame {
    border: 1px solid var(--line);
    background: var(--surf-2);
}

.frame--tall {
    height: clamp(280px, 32vw, 420px);
    overflow: hidden;
}

.frame--tall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.frame--pad {
    padding: 12px;
    background: var(--ink);
}

.frame--pad img {
    width: 100%;
    display: block;
}

.pill {
    display: inline-block;
    padding: 11px 18px;
    background: var(--acc);
    color: var(--ink);
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* --------------------------------------------------------- forms */

.form-panel {
    border: 1px solid var(--line);
    background: var(--surf);
    padding: clamp(24px, 2.6vw, 36px);
}

.form-panel h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    margin-bottom: 26px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.field > span {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mute);
}

.field input,
.field textarea {
    padding: 13px 14px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--bone);
    font-size: 15px;
    transition: border-color .2s ease;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--acc);
}

.field textarea {
    resize: vertical;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field-error {
    font-size: 12.5px;
    color: #ffab99;
    text-transform: none;
    letter-spacing: 0;
}

.alert {
    padding: 14px 18px;
    margin-bottom: 20px;
    border: 1px solid var(--acc);
    background: rgba(232, 65, 42, 0.10);
    color: var(--bone);
    font-size: 14px;
}

/* --------------------------------------------------------- cta band */

.cta-band {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: end;
}

.cta-band h2 {
    color: var(--ink);
}

.cta-band p {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(11, 11, 12, 0.78);
    margin-bottom: 22px;
}

/* --------------------------------------------------------- footer */

.footer {
    padding: 52px var(--pad-x) 34px;
    background: var(--surf);
}

.footer__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.footer__brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 23px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer__brand span {
    color: var(--acc);
}

.footer__blurb {
    font-size: 14px;
    color: var(--mute);
    max-width: 30em;
}

.footer__cols {
    display: flex;
    gap: 56px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col > span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dim);
}

.footer__col a {
    font-size: 14px;
    color: var(--bone);
}

.footer__col a:hover {
    color: var(--acc);
}

.footer__base {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-top: 22px;
    font-size: 12.5px;
    color: var(--dim);
}

/* --------------------------------------------------------- preferences modal */

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(6, 6, 7, 0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal[hidden] {
    display: none;
}

.modal__box {
    width: 520px;
    max-width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surf);
    border: 1px solid var(--line);
    border-top: 3px solid var(--acc);
    padding: clamp(26px, 3vw, 40px);
}

.modal__eyebrow {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--acc);
    margin-bottom: 12px;
}

.modal__box h3 {
    font-size: clamp(30px, 3.4vw, 38px);
    line-height: 1;
    margin-bottom: 28px;
}

.modal__label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 12px;
}

.modal__choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.choice {
    display: block;
    cursor: pointer;
}

.choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice > span {
    display: block;
    padding: 18px;
    text-align: start;
    border: 1px solid var(--line-strong);
    color: var(--bone);
    font-family: var(--display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: border-color .2s ease, color .2s ease;
}

.choice:hover > span {
    border-color: var(--mute);
}

.choice input:checked + span {
    border-color: var(--acc);
    color: var(--acc);
}

.choice--sm > span {
    padding: 15px 18px;
    font-size: 16px;
    text-transform: none;
}

.choice--sm input:checked + span {
    border-color: var(--bone);
    color: var(--bone);
}

.modal__actions {
    display: flex;
    gap: 12px;
}

.modal__actions .btn {
    padding: 16px 28px;
    font-size: 14.5px;
    letter-spacing: 0.16em;
}

.modal__actions .btn--ghost {
    color: var(--mute);
}

/* --------------------------------------------------------- scroll reveal */

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

[data-reveal].in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .card,
    .card__media img {
        transition: none;
    }
}

/* --------------------------------------------------------- responsive */

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .free-row {
        grid-template-columns: 48px 1fr 110px 120px 96px;
    }

    .footer__cols {
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .nav__links,
    .nav__cta {
        display: none;
    }

    .nav__burger {
        display: block;
    }

    .nav__drawer .nav__cta {
        display: block;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .free-row {
        grid-template-columns: 40px 1fr 96px;
    }

    .free-row__level {
        display: none;
    }
}

@media (max-width: 760px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stats > div {
        padding: 22px 18px;
    }

    .stats > div + div {
        border-inline-start: none;
    }

    .stats > div:nth-child(n+3) {
        border-top: 1px solid var(--line);
    }

    .stats > div:nth-child(even) {
        border-inline-start: 1px solid var(--line);
    }

    .grid-3,
    .split,
    .split--wide-first,
    .cta-band,
    .sec-lede,
    .field-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .sec-lede {
        gap: 20px;
        align-items: start;
    }

    .field-row {
        gap: 0;
    }

    .free-row {
        grid-template-columns: 34px 1fr;
        gap: 12px;
    }

    .free-row__meta,
    .free-row__go {
        display: none;
    }

    .free-foot,
    .footer__top,
    .footer__base {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer__cols {
        flex-direction: column;
        gap: 24px;
    }

    .stat-pair > div {
        padding: 20px 16px;
    }

    .stat-pair > div:first-child {
        padding-inline-start: 0;
    }

    .modal__choices {
        grid-template-columns: 1fr;
    }

    .modal__actions {
        flex-direction: column;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero__actions .btn,
    .modal__actions .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .nav__pref {
        padding: 8px 10px;
        font-size: 11px;
    }

    .nav__brand {
        font-size: 19px;
    }
}
