/* =============================================================
   iHeartMedia Tel Aviv — /advertise/israel  ·  V2 (hero motion)
   Page stylesheet. Loads AFTER Bootstrap 5.3.8, which it only
   reads through the --bs-* bridge in :root — no Bootstrap source
   is overridden by selector weight.

   Order below: tokens → base → components → sections →
   parked contact-form styles → mobile navigation.
   ============================================================= */
/* ==========================================================
   Tokens
   ========================================================== */
:root {
    --crimson: #C6002B;
    --crimson-dark: #99001F;
    --crimson-soft: #FBE3E8;
    --surface: #FFFFFF;
    --surface-tint: #F2F2F3;
    --text: #2E0615;
    --text-muted: #4A535C;
    --text-soft: #59626A;
    --rule: #D6D9DD;
    --accent-text: #C6002B;
    --header-bg: #FFFFFF;
    --header-rule: #E3E5E8;
    --tile-dark: #2E0615;
    --dark-section: #2E0615;
    --portrait: #46101F;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    /* Standalone page: its own header pins to the top of the viewport. */
    --global-nav-offset: 0px;
    --page-nav-h: 60px;
    --radius-lg: 28px;
    --radius-md: 20px;

    /* Bootstrap bridge */
    --bs-body-bg: var(--surface);
    --bs-body-color: var(--text);
    --bs-body-font-family: var(--font-body);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.6;
    --bs-emphasis-color: var(--text);
    --bs-secondary-color: var(--text-muted);
    --bs-border-color: var(--rule);
    --bs-link-color: var(--accent-text);
    --bs-link-color-rgb: 198, 0, 43;
    --bs-link-hover-color: var(--crimson-dark);
    --bs-link-hover-color-rgb: 153, 0, 31;
    --bs-focus-ring-color: rgba(198, 0, 43, 0.35);
    --bs-primary: #C6002B;
    --bs-primary-rgb: 198, 0, 43;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --surface: #220410;
        --surface-tint: #2E0615;
        --text: #F2F4F6;
        --text-muted: #B4BCC5;
        --text-soft: #9AA3AD;
        --rule: #4E1B2C;
        --accent-text: #FF4D6D;
        --header-bg: #220410;
        --header-rule: #43101F;
        --tile-dark: #43101F;
        --dark-section: #17030A;
        --portrait: #380A18;
        --bs-link-color-rgb: 255, 77, 109;
        --bs-link-hover-color: #FF8095;
        --bs-link-hover-color-rgb: 255, 128, 149;
    }
}

:root[data-theme="dark"] {
    --surface: #220410;
    --surface-tint: #2E0615;
    --text: #F2F4F6;
    --text-muted: #B4BCC5;
    --text-soft: #9AA3AD;
    --rule: #4E1B2C;
    --accent-text: #FF4D6D;
    --header-bg: #220410;
    --header-rule: #43101F;
    --tile-dark: #43101F;
    --dark-section: #17030A;
    --portrait: #380A18;
    --bs-link-color-rgb: 255, 77, 109;
    --bs-link-hover-color: #FF8095;
    --bs-link-hover-color-rgb: 255, 128, 149;
}

/* ==========================================================
   Base
   ========================================================== */
@media (min-width: 992px) {
    :root {
        --page-nav-h: 76px;
    }
}

html {
    scroll-padding-top: calc(var(--global-nav-offset) + var(--page-nav-h) + env(safe-area-inset-top, 0px) + 8px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-optical-sizing: auto;
    background: var(--surface);
    color: var(--text);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 3px;
}

.on-crimson :focus-visible,
.on-dark :focus-visible {
    outline-color: #FFFFFF;
}

.skip-link {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 0.5rem);
    left: 1rem;
    z-index: 1100;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    background: var(--crimson);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-weight: 600;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    color: #FFFFFF;
}

.container-xxl {
    --bs-gutter-x: 3rem;
}

.section {
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section-title {
    margin: 0;
    font-weight: 800;
    font-size: clamp(2.25rem, 4.6vw, 4rem);
    line-height: 1;
    letter-spacing: -0.035em;
}

.section-title .dot {
    color: var(--accent-text);
}

.section-intro {
    margin: 0;
    max-width: 34rem;
    font-size: 1.1875rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.section-head {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
    --bs-btn-font-family: var(--font-display);
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.625rem;
    --bs-btn-padding-y: 0.75rem;
    --bs-btn-font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-lg {
    --bs-btn-padding-x: 1.875rem;
    --bs-btn-font-size: 1rem;
    min-height: 56px;
}

.btn-primary {
    --bs-btn-bg: var(--crimson);
    --bs-btn-border-color: var(--crimson);
    --bs-btn-hover-bg: var(--crimson-dark);
    --bs-btn-hover-border-color: var(--crimson-dark);
    --bs-btn-active-bg: var(--crimson-dark);
    --bs-btn-active-border-color: var(--crimson-dark);
    --bs-btn-disabled-bg: var(--crimson);
    --bs-btn-disabled-border-color: var(--crimson);
    --bs-btn-focus-shadow-rgb: 198, 0, 43;
}

.btn-invert {
    --bs-btn-color: var(--crimson);
    --bs-btn-bg: #FFFFFF;
    --bs-btn-border-color: #FFFFFF;
    --bs-btn-hover-color: var(--crimson-dark);
    --bs-btn-hover-bg: var(--crimson-soft);
    --bs-btn-hover-border-color: var(--crimson-soft);
    --bs-btn-active-color: var(--crimson-dark);
    --bs-btn-active-bg: var(--crimson-soft);
    --bs-btn-active-border-color: var(--crimson-soft);
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.btn-ghost-light {
    --bs-btn-color: #FFFFFF;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(255, 255, 255, 0.6);
    --bs-btn-hover-color: var(--crimson);
    --bs-btn-hover-bg: #FFFFFF;
    --bs-btn-hover-border-color: #FFFFFF;
    --bs-btn-active-color: var(--crimson);
    --bs-btn-active-bg: #FFFFFF;
    --bs-btn-active-border-color: #FFFFFF;
    --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

/* ==========================================================
   Hero (from Direction C)
   ========================================================== */
.hero {
    position: relative;
    background: var(--crimson);
    color: #FFFFFF;
    padding-block: clamp(3.5rem, 7vw, 5.5rem);
    min-height: clamp(440px, 58vh, 620px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero > .container-xxl {
    position: relative;
    z-index: 1;
}

.hero-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(2.25rem, 4.2vw, 3.75rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.hero-lede {
    margin: 1.5rem 0 1.75rem;
    max-width: 34rem;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--crimson-soft);
}

/* ==========================================================
   Who we are
   ========================================================== */
.who-lede {
    margin: 0 0 2.5rem;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    line-height: 1.5;
}

.pillar {
    height: 100%;
    padding-top: 1.25rem;
    border-top: 2px solid var(--text);
}

.pillar h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pillar p {
    margin: 0;
    color: var(--text-muted);
}

/* ==========================================================
   Offerings: platform cards
   Each card's art comes from its own --img custom property.
   The values below are tonal STAND-INS: replace each with
   url("…") pointing at the real photograph for that platform.
   ========================================================== */
.offerings-head {
    max-width: 52rem;
    margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
    text-align: center;
}

.eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.offerings-head .section-title {
    line-height: 1.05;

    /* Centred headline: even the lines out rather than leaving an orphan.
     Browsers without support just wrap normally. */
    text-wrap: balance;
}

.offerings-head .section-title em {
    font-style: normal;
    color: var(--accent-text);
}

.platform {
    position: relative;
    display: flex;
    align-items: flex-end;

    /* Height comes from the breakpoint rules below, not from here: on a
     phone it is a floor the body can push past, and a fixed ratio once
     the cards sit side by side and the body is short enough to trust. */
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    isolation: isolate;
    background: var(--tile-dark);
    color: #FFFFFF;
    text-decoration: none;
}

.platform-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--img);
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Legibility wash: the copy sits in the darkest part of the card. */
.platform::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top,
    rgba(23, 3, 10, 0.92) 6%,
    rgba(23, 3, 10, 0.62) 42%,
    rgba(23, 3, 10, 0.10) 100%);
}

.platform:hover .platform-media,
.platform:focus-visible .platform-media {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .platform-media {
        transition: none;
    }

    .platform:hover .platform-media,
    .platform:focus-visible .platform-media {
        transform: none;
    }
}

.platform-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.platform-num {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;

    /* 1.4.3. At 13px this needs 4.5:1, and it sits highest in the copy
     block where the scrim is thinnest — on the two-line Podcasts card a
     bright photograph would take 0.72 down to 4.20:1. 0.85 holds every
     card at 5.15:1 or better against a worst-case white image. */
    color: rgba(255, 255, 255, 0.85);
}

.platform-title {
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.platform-desc {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Full-width on a phone, where the longest body runs to four lines. A
   zero-width spacer sets the picture height instead of aspect-ratio, so
   a body taller than the ratio makes the card taller rather than being
   clipped against the top edge — 78% of the content width lands a 342px
   card at ~285px, leaving ~90px of art under the worst copy. */
@media (max-width: 575.98px) {
    .platform::before {
        content: "";
        flex: 0 0 0px;
        width: 0;
        padding-top: 78%;
    }
}

@media (min-width: 576px) {
    .platform {
        aspect-ratio: 3 / 4;
    }
}

@media (min-width: 992px) {
    .platform {
        aspect-ratio: 4 / 5;
        padding: 2rem;
    }
}

.offerings-cta {
    margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
    text-align: center;
}

/* ==========================================================
   How we work
   ========================================================== */
.how {
    background: var(--surface-tint);
}

.steps-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.step-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
    align-items: baseline;
    padding: 1.5rem 0;
    border-top: 1px solid var(--rule);
}

.step-row:last-child {
    border-bottom: 1px solid var(--rule);
}

.step-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent-text);
}

.step-name {
    margin: 0;
    font-size: clamp(1.375rem, 2.4vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.step-desc {
    grid-column: 2;
    margin: 0;
    color: var(--text-muted);
}

@media (min-width: 992px) {
    .step-row {
        grid-template-columns: 96px minmax(0, 360px) minmax(0, 1fr);
        gap: 2rem;
        align-items: center;
        padding: 1.75rem 0;
    }

    .step-desc {
        grid-column: auto;
    }
}

/* ==========================================================
   Proof
   ========================================================== */
/* ==========================================================
   Team
   ========================================================== */
.team {
    background: var(--dark-section);
    color: #FFFFFF;
}

.team .section-intro {
    color: #C9CFD6;
}

.team .section-title .dot,
.team .eyebrow {
    color: #FF4D6D;
}

.person {
    margin: 0;
}

.portrait {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    margin-bottom: 1rem;
    border-radius: 24px;
    overflow: hidden;
    background: var(--portrait);
    color: #8A5E6C;
}

.portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.person-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.person-role {
    display: block;
    color: #C9CFD6;
}

.person-place {
    display: block;
    font-size: 0.875rem;
    color: #9AA3AD;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact {
    background: var(--crimson);
    color: #FFFFFF;
}

.contact .section-intro {
    color: var(--crimson-soft);
}

.contact-details {
    margin: 2.5rem 0 0;
}

.contact-details dt {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--crimson-soft);
}

.contact-details dd {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
}

.contact-details a {
    color: #FFFFFF;
}

.form-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
}

.form-card :focus-visible {
    outline-color: var(--accent-text);
}

.form-label {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 14px;
    border-color: var(--rule);
    background-color: var(--surface);
    color: var(--text);
    font-size: 1rem;
}

.form-select {
    background-color: var(--surface);
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-text);
    background-color: var(--surface);
    color: var(--text);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-control::placeholder {
    color: var(--text-soft);
    opacity: 1;
}

.was-validated .form-control:invalid,
.form-control.is-invalid,
.was-validated .form-select:invalid,
.form-select.is-invalid {
    border-color: #B3261E;
}

.invalid-feedback {
    color: #B3261E;
    font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .invalid-feedback {
        color: #FF8A80;
    }

    :root:not([data-theme="light"]) .was-validated .form-control:invalid,
    :root:not([data-theme="light"]) .was-validated .form-select:invalid {
        border-color: #FF8A80;
    }
}

:root[data-theme="dark"] .invalid-feedback {
    color: #FF8A80;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .form-select {
        --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    }
}

:root[data-theme="dark"] .form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.form-note {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-soft);
}

/* Simplified contact: headline, mail link, office.
   The form styles above stay in place so the full version can be
   restored by uncommenting its markup and script alone. */
.contact-simple {
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.contact-simple .section-intro {
    max-width: 32rem;
    margin-inline: auto;
}

.contact-mail {
    display: inline-block;
    margin-top: clamp(2rem, 4vw, 2.75rem);

    /* Enough vertical padding to clear a 44px target at the small end
     of the clamp, where the type is 22px. */
    padding: 0.5rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 3.2vw, 2.375rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}

.contact-mail:hover {
    color: var(--crimson-soft);
    text-decoration-thickness: 3px;
}

.contact-office {
    margin: 1.5rem 0 0;
    font-size: 1.0625rem;
    color: var(--crimson-soft);
}

.form-success {
    padding: 1rem 1.25rem;
    border-radius: 14px;
    background: var(--surface-tint);
    color: var(--text);
    font-weight: 500;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
    background: var(--surface);
    color: var(--text-muted);
    padding-block: 3rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal {
    border-top: 1px solid var(--rule);
    color: var(--text-soft);
}

.footer-nav a,
.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-nav a {
    font-weight: 500;
}

.footer-nav a:hover,
.footer-legal a:hover {
    color: var(--text);
    text-decoration: underline;
}

/* ==========================================================
   Site header — this page carries its own, with a route back
   ========================================================== */
.page-nav {
    position: sticky;
    top: calc(var(--global-nav-offset) + env(safe-area-inset-top, 0px));
    z-index: 900;

    /* stays below the global nav and its menu drawer */
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-rule);
}

.page-nav-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--page-nav-h);
}

.page-nav-label {
    display: inline-flex;
    flex: none;
    align-items: center;

    /* The lockup itself is 22px on a phone; the link still needs a 44px
     target, so the height lives here rather than on the mark. */
    min-height: 44px;
    text-decoration: none;
}

/* Masthead lockup from the original build: iHeartMedia wordmark
   plus the Tel Aviv line. */
.ihm-mark {
    display: block;
    height: 30px;
    width: auto;
}

.ihm-mark .ihm-fg {
    fill: var(--text);
}

.ihm-mark .ihm-red {
    fill: var(--accent-text);
}

.ihm-mark .ihm-grey {
    fill: #7C7E80;
}

@media (min-width: 992px) {
    .ihm-mark {
        height: 38px;
    }
}

.page-nav-links {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0 1.5rem 0 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 2rem), transparent);
}

.page-nav-links::-webkit-scrollbar {
    display: none;
}

.page-nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.page-nav-links a:hover {
    color: var(--text);
}

.page-nav-links a.active {
    color: var(--text);
    box-shadow: inset 0 -2px 0 var(--accent-text);
}

.page-nav .btn {
    flex: none;
    min-height: 44px;
    --bs-btn-padding-y: 0.375rem;
    --bs-btn-padding-x: 1.125rem;
}

@media (min-width: 768px) {
    .page-nav-label {
        display: inline-flex;
    }
}

@media (min-width: 992px) {
    .page-nav-inner {
        gap: 2rem;
    }

    .page-nav-links {
        justify-content: center;
        gap: 2rem;
        padding: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .page-nav .btn {
        min-height: 44px;
        --bs-btn-padding-y: 0.5rem;
        --bs-btn-padding-x: 1.375rem;
    }
}

.back-link {
    display: none;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    flex: none;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
}

.back-link:hover {
    color: var(--text);
}

@media (min-width: 1200px) {
    .back-link {
        display: inline-flex;
    }
}

/* ==========================================================
   Hero source line
   ========================================================== */
/* ==========================================================
   Reveal pass: content fades up as it enters, once.
   Added by script, so with JS off everything is simply visible.
   ========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--rd, 0s);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================
   Hero visual: waves leaving the iHeart mark
   Pure SVG and CSS. Everything stops for reduced motion, when
   the hero scrolls away, or when the viewer asks it to.
   ========================================================== */
.hero-rings {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.hero-rings svg {
    position: absolute;
    right: -14%;
    top: 50%;
    transform: translateY(-50%);
    height: 128%;
}

/* Phones stack the hero, so the art moves out of the text column entirely:
   anchored low and right, clear of the headline and lede, alongside the
   two buttons rather than behind them. */
@media (max-width: 991.98px) {
    .hero-rings {
        opacity: 0.55;
    }

    .hero-rings svg {
        top: auto;
        bottom: -4%;
        right: -30vw;
        width: 108vw;
        height: auto;
        transform: none;
    }
}

@media (min-width: 992px) {
    .hero-rings {
        width: 50%;
        opacity: 1;
    }

    .hero-rings svg {
        right: 40px;
        height: 118%;
    }
}

.mark {
    fill: #FFFFFF;
    transform-box: fill-box;
    transform-origin: center;
    animation: markbeat 5.5s ease-in-out infinite;
}

.wave {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 1.75;
    transform-box: fill-box;
    transform-origin: center;
    animation: waveout 5.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: var(--d);
}

.spark {
    fill: #FFFFFF;
    opacity: 0.25;
    animation: sparkle 5.5s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes markbeat {
    0%,
    62%,
    100% {
        transform: scale(1);
    }

    8% {
        transform: scale(1.05);
    }

    18% {
        transform: scale(1);
    }
}

@keyframes waveout {
    0% {
        transform: scale(0.19);
        opacity: 0;
    }

    7% {
        opacity: 0.85;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

@keyframes sparkle {
    0%,
    70%,
    100% {
        opacity: 0.18;
    }

    35% {
        opacity: 0.85;
    }
}

.hero.is-motion-paused .wave,
.hero.is-motion-paused .mark,
.hero.is-motion-paused .spark {
    animation-play-state: paused;
}

.hero-motion-toggle {
    position: absolute;
    right: 1.5rem;
    bottom: 1.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(46, 6, 21, 0.25);
    color: #FFFFFF;
}

.hero-motion-toggle:hover {
    background: rgba(46, 6, 21, 0.45);
}

.hero-motion-toggle .icon-play {
    display: none;
}

.hero.is-motion-paused .hero-motion-toggle .icon-play {
    display: block;
}

.hero.is-motion-paused .hero-motion-toggle .icon-pause {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .wave,
    .mark,
    .spark {
        animation: none;
    }

    .wave {
        opacity: 0.22;
    }

    .hero-motion-toggle {
        display: none;
    }
}

/* ==========================================================
   Proof: reach comparisons
   ========================================================== */
.reach-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.reach-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--rule);
}

.reach-row:last-child {
    border-bottom: 1px solid var(--rule);
}

.reach-label {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.reach-source {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-soft);
}

.reach-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    justify-content: center;
}

.bar-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar {
    height: 22px;
    min-width: 4px;
    border-radius: 4px;
    background: var(--accent-text);
}

.bar--them {
    background: var(--rule);
}

.bar-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--accent-text);
    white-space: nowrap;
}

.bar-them-label {
    font-size: 0.9375rem;
    color: var(--text-soft);
    white-space: nowrap;
}

.reach-key {
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--text-soft);
}

@media (min-width: 992px) {
    .reach-row {
        grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
        gap: 3rem;
        align-items: center;
    }

    .bar {
        height: 26px;
    }
}

/* ==========================================================
   Mobile navigation
   A native <dialog> opened with showModal(), so the browser
   supplies the focus trap, Escape-to-close, background inert
   and the top-layer stacking. No library.
   ========================================================== */
.nav-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: -0.25rem;
    padding: 0;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
}

.nav-toggle:hover {
    border-color: var(--text-muted);
}

@media (min-width: 992px) {
    .nav-toggle {
        display: none;
    }
}

/* Below the breakpoint the inline row is replaced by the panel. */
@media (max-width: 991.98px) {
    .page-nav-links {
        display: none;
    }

    .page-nav .btn {
        margin-left: auto;
    }
}

.nav-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--crimson);
    color: #FFFFFF;
    overflow: hidden;
}

.nav-panel::backdrop {
    background: rgba(23, 3, 10, 0.6);
}

.nav-panel-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: calc(env(safe-area-inset-top, 0px) + 0.75rem)
           calc(env(safe-area-inset-right, 0px) + 1.25rem)
           calc(env(safe-area-inset-bottom, 0px) + 1.5rem)
           calc(env(safe-area-inset-left, 0px) + 1.25rem);
}

.nav-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 60px;
}

/* The lockup reads on crimson, so every ink in it goes white. */
.nav-panel .ihm-mark {
    height: 24px;
}

.nav-panel .ihm-mark .ihm-fg,
.nav-panel .ihm-mark .ihm-red {
    fill: #FFFFFF;
}

.nav-panel .ihm-mark .ihm-grey {
    fill: rgba(255, 255, 255, 0.7);
}

.nav-close {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: transparent;
    color: #FFFFFF;
}

.nav-close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.nav-panel nav {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.nav-panel-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}

.nav-panel-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-display);
    font-size: clamp(1.375rem, 6.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--crimson-soft);
    text-decoration: none;
}

.nav-panel-links li:last-child a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-panel-links a.active {
    color: #FFFFFF;
    font-weight: 700;
}

/* The marker is reserved on every link and only inked on the current
   one, so the labels keep a single left edge and colour is not the
   only thing carrying the state. */
.nav-panel-links a::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

.nav-panel-links a.active::before {
    background: #FFFFFF;
}

.nav-panel-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--crimson-soft);
    text-decoration: none;
}

.nav-panel-foot:hover {
    color: #FFFFFF;
}

.nav-panel :focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 3px;
}

/* Motion. The curve is the one iOS uses for sheets: a fast start that
   settles rather than easing evenly, which is most of what reads as
   "native". Open and close are symmetric so neither end snaps. */
.nav-panel {
    opacity: 0;
    transition: opacity 0.26s cubic-bezier(0.32, 0.72, 0, 1);
    overscroll-behavior: contain;
}

.nav-panel.is-open {
    opacity: 1;
}

.nav-panel::backdrop {
    opacity: 0;
    transition: opacity 0.26s ease-out;
}

.nav-panel.is-open::backdrop {
    opacity: 1;
}

.nav-panel .nav-panel-inner {
    transform: translateY(-12px);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.nav-panel.is-open .nav-panel-inner {
    transform: none;
}

/* The list settles in behind the panel, each row a beat after the one
   above, so the panel arrives as a thing rather than a flat layer. */
.nav-panel-links li {
    opacity: 0;
    transform: translateY(10px);
}

.nav-panel.is-open .nav-panel-links li {
    opacity: 1;
    transform: none;
    transition: opacity 0.34s cubic-bezier(0.32, 0.72, 0, 1) var(--d, 0ms),
              transform 0.34s cubic-bezier(0.32, 0.72, 0, 1) var(--d, 0ms);
}

.nav-panel-links li:nth-child(1) {
    --d: 60ms;
}

.nav-panel-links li:nth-child(2) {
    --d: 90ms;
}

.nav-panel-links li:nth-child(3) {
    --d: 120ms;
}

.nav-panel-links li:nth-child(4) {
    --d: 150ms;
}

.nav-panel-links li:nth-child(5) {
    --d: 180ms;
}

/* Closing drops the stagger: waiting on a cascade to leave feels slow. */
.nav-panel:not(.is-open) .nav-panel-links li {
    transition: opacity 0.14s ease-in;
}

/* Touch has no hover, so a press state is the only feedback there is.
   The grey iOS tap flash is replaced rather than left on top of it. */
.nav-panel a,
.nav-panel button,
.nav-toggle,
.page-nav .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* A full-bleed band, square to the dividers — a rounded box here reads
   as a card and curls the hairline at both ends. */
.nav-panel-links a {
    transition: background-color 0.12s ease-out;
}

.nav-panel-links a:active {
    background: rgba(255, 255, 255, 0.16);
}

.nav-close:active,
.nav-toggle:active {
    transform: scale(0.92);
}

.nav-close,
.nav-toggle {
    transition: transform 0.1s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.nav-panel-foot:active {
    color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
    .nav-panel,
    .nav-panel::backdrop,
    .nav-panel .nav-panel-inner,
    .nav-panel.is-open .nav-panel-links li,
    .nav-panel-links a,
    .nav-close,
    .nav-toggle {
        transition: none;
    }

    .nav-panel-links li {
        opacity: 1;
        transform: none;
    }

    .nav-close:active,
    .nav-toggle:active {
        transform: none;
    }
}

/* Phones give the lockup less room, and the panel needs the space. */
@media (max-width: 991.98px) {
    .ihm-mark {
        height: 22px;
    }
}

/* ==========================================================
   Accessibility — WCAG 2.0 AA (the technical core of IS 5568)
   ========================================================== */
/* 2.4.7 Focus Visible.
   Bootstrap's own .btn:focus-visible sets outline:0 and substitutes a
   box-shadow ring, which resolves to transparent against these custom
   button variants — so keyboard focus on every CTA was invisible. This
   rule carries the same specificity and is declared later, so it wins. */
.btn:focus-visible {
    outline: 3px solid var(--accent-text);
    outline-offset: 3px;
}

/* A crimson ring disappears on crimson or near-black; flip it to white. */
.on-crimson .btn:focus-visible,
.on-dark .btn:focus-visible,
.hero .btn:focus-visible,
.site-footer .btn:focus-visible {
    outline-color: #FFFFFF;
}

/* 1.4.4 Resize Text.
   Every item in the header row is flex:none, and the 1rem gaps scale with
   the root font, so at 200% text nothing could give and the menu button
   was pushed off the screen — a loss of functionality, not just layout.
   Letting the row wrap keeps it reachable. Scoped below the breakpoint,
   where the inline link row is hidden, so at normal sizes and on desktop
   the header is untouched. */
@media (max-width: 991.98px) {
    .page-nav-inner {
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
}

/* A long headline word should break rather than push the page wider
   when the text is scaled right up. */
h1,
h2,
h3,
.hero-title,
.section-title {
    overflow-wrap: break-word;
}

/* 1.4.4, continued. The text must double; the spacing around it need not.
   At 200% the 3rem container gutter resolves to 96px and the 1rem gap to
   64px — 160px of pure spacing on a 390px screen, which is most of what
   pushed the header out of the viewport. Pinning both to pixels below the
   breakpoint keeps the row intact while the type still scales. */
@media (max-width: 991.98px) {
    .page-nav-inner {
        --bs-gutter-x: 24px;
        gap: 12px;
    }

    .page-nav-links {
        padding-right: 20px;
        gap: 20px;
    }
}

/* Long unbreakable strings — an email address, a URL — must not push the
   page wider when the text is scaled up. The display mail link is an
   inline-block, so it sizes to its content and overflow-wrap alone does
   nothing: it needs the max-width before it can break. */
.contact-mail {
    max-width: 100%;
    overflow-wrap: break-word;
}

/* =============================================================
   Accessibility statement — /advertise/israel/accessibility
   Served by this same stylesheet, so the statement costs no extra
   CSS once this file is cached.

   Anything that would otherwise change the landing page is scoped
   to body.doc-page. The .doc-*, .todo and .draft-banner names are
   unique to the statement and need no scoping.
   ============================================================= */
/* The statement is a document, not a landing page: its header
   carries only the lockup and a route back, so the row is spaced
   apart rather than packed left, and the back-link — hidden below
   1200px on the landing page — shows at every width. */
.doc-page .page-nav-inner {
    justify-content: space-between;
}

.doc-page .back-link {
    display: inline-flex;
}

.doc-page .back-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    /* The text must double for 1.4.4; the gutter around it need not.
     Scoped: on the landing page the 3rem gutter is load-bearing. */
    .doc-page .container-xxl {
        --bs-gutter-x: 24px;
    }
}

.draft-banner {
    margin: 0;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rule);
    background: var(--surface-tint);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.doc-wrap {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}

/* Head and body share one measure so the heading and the prose
   start on the same left edge. break-word keeps a long URL from
   pushing the page wider when the text is scaled up. */
.doc-head,
.doc-body {
    max-width: 44rem;
    overflow-wrap: break-word;
}

.doc-head {
    padding-bottom: clamp(1.5rem, 3vw, 2rem);
}

.doc-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
}

.doc-lede {
    margin: 1.25rem 0 0;
    max-width: 42rem;
    font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
    color: var(--text-muted);
}

.doc-body h2 {
    margin: clamp(2.25rem, 4vw, 3rem) 0 0.75rem;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.doc-body h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
}

.doc-body p,
.doc-body li {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.doc-body p {
    margin: 0 0 1rem;
}

.doc-body ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.doc-body li {
    margin-bottom: 0.375rem;
}

.doc-body a {
    color: var(--accent-text);
}

.doc-meta {
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Marks every value that still needs a real answer before publishing. */
.todo {
    display: inline-block;
    padding: 0.1em 0.45em;
    border-radius: 4px;
    background: var(--crimson-soft);
    color: var(--crimson-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9em;
    font-weight: 600;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .todo {
        background: #46101F;
        color: #FFC9D4;
    }
}

:root[data-theme="dark"] .todo {
    background: #46101F;
    color: #FFC9D4;
}

.footer-legal a,
.footer-legal span[aria-current] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text);
    text-decoration: underline;
}

.footer-legal span[aria-current] {
    color: var(--text);
    font-weight: 600;
}