:root {
    --accent: #1B2A41;
    --accent-text: #1B2A41;
    --accent-contrast: #F5F1EA;
    --paper: #F5F1EA;
    --navy: #1B2A41;
    --blue: #4A6FA5;
    --gold: #B08D57;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: Inter, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p,
dd,
blockquote,
h1,
h2,
h3 {
    overflow-wrap: break-word;
    hyphens: auto;
}

body {
    font-family: var(--sans);
    background-color: var(--paper);
    color: var(--navy);
    line-height: 1.7;
    margin: 0;
    background-image:
        radial-gradient(rgba(27, 42, 65, 0.035) 1px, transparent 1px),
        radial-gradient(rgba(176, 141, 87, 0.04) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 2px;
}

html[dir="rtl"] body {
    font-family: "Noto Sans Hebrew", Inter, sans-serif;
}

html[dir="rtl"] .serif {
    font-family: "Noto Sans Hebrew", Georgia, serif;
}

.serif {
    font-family: var(--serif);
}

a {
    color: var(--navy);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Language bar */
.lang-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: rgba(245, 241, 234, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(27, 42, 65, 0.08);
}

.lang-bar button {
    font: 600 0.78rem var(--sans);
    letter-spacing: 0.08em;
    background: transparent;
    border: 1px solid transparent;
    color: var(--navy);
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}

.lang-bar button:hover {
    border-color: rgba(27, 42, 65, 0.25);
}

.lang-bar button[aria-pressed="true"] {
    background: var(--navy);
    color: var(--paper);
}

@media (max-width: 640px) {
    .lang-bar {
        justify-content: center;
        background: #F5F1EA;
        padding: 8px 12px;
    }

    .hero {
        padding-top: 84px;
    }
}

.fig {
    margin: 0;
}

.fig img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(15%) contrast(1.05);
}

.fig figcaption {
    font-size: 0.75rem;
    font-style: italic;
    color: #5b6f8a;
    margin-top: 8px;
    line-height: 1.5;
}

.fig img.fallback {
    background: #E8DCC6;
    color: #5b6f8a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    font-size: 0.75rem;
    font-style: italic;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: grayscale(15%) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, rgba(27, 42, 65, 0.85), rgba(27, 42, 65, 0.85));
}

.hero-bg-caption {
    position: absolute;
    right: 20px;
    bottom: 16px;
    z-index: 2;
    max-width: 360px;
    font-size: 0.75rem;
    font-style: italic;
    color: #C9D3E3;
    text-align: right;
}

.hero-bg img.fallback {
    background: #E8DCC6;
}

.hero>*:not(.hero-bg) {
    position: relative;
    z-index: 1;
}

.hero::before {
    z-index: 0;
}

.fig-wide {
    max-width: 720px;
    margin: 0 auto 48px;
}

.fig-wide img {
    aspect-ratio: 16 / 9;
}

.fig-side {
    width: 100%;
}

.fig-side img {
    aspect-ratio: 4 / 3;
}

.bag-fig {
    width: 100%;
    margin: 0 0 40px;
}

.mission-row .fig-portrait {
    width: 100%;
}

.fig-portrait img {
    aspect-ratio: 3 / 4;
}

@media (max-width: 767px) {

    .bag-fig,
    .mission-row .fig-portrait {
        width: 100%;
    }

    .quote blockquote {
        font-size: min(clamp(1.9rem, 4vw, 2.6rem), 1.4rem);
    }
}

@media (min-width: 768px) {
    .bag-fig {
        width: 45%;
    }
}

.quote blockquote {
    position: relative;
    padding: 0 1.2em;
}

.quote blockquote::before {
    content: none;
}

.quote blockquote::after {
    content: none;
}

.quote blockquote .q-open,
.quote blockquote .q-close {
    position: absolute;
    color: var(--gold);
    font-size: 1.6em;
    line-height: 1;
}

.quote blockquote .q-open {
    left: 0;
    top: 0;
}

.quote blockquote .q-close {
    right: 0;
    bottom: -0.2em;
}

.cards {
    align-items: stretch;
}

.card-item {
    display: flex;
    flex-direction: column;
}

.card-item .card-tag {
    margin-top: auto;
}

@media (max-width: 640px) {
    .section {
        padding: 72px 20px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 96px 24px 64px;
    background:
        linear-gradient(170deg, #1B2A41 0%, #22365a 55%, #2d4670 100%);
    color: var(--paper);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 4px 4px;
    opacity: .6;
}

.hero-inner {
    position: relative;
    max-width: 880px;
}

.eyebrow-pill {
    display: inline-block;
    font: 600 0.72rem var(--sans);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 7px 16px;
    border: 1px solid rgba(176, 141, 87, 0.6);
    border-radius: 999px;
    color: #E6CFA5;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(4.5rem, 16vw, 9.5rem);
    line-height: .95;
    margin: 28px 0 14px;
    letter-spacing: -0.01em;
}

.hero .subtitle {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: #E9E2D3;
    margin: 0;
}

.hero .meta {
    margin-top: 28px;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #C9D3E3;
}

.hero .gold-line {
    width: 56px;
    height: 1px;
    background: var(--gold);
    margin: 32px auto 0;
}

.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #C9D3E3;
    font-size: 0.72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
}

.scroll-cue span.bar {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {

    0%,
    100% {
        opacity: .3;
        transform: translateY(0)
    }

    50% {
        opacity: 1;
        transform: translateY(6px)
    }
}

/* Sections */
.section {
    padding: 96px 24px;
}

.wrap {
    max-width: 1000px;
    margin: 0 auto;
}

.narrow {
    max-width: 680px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 56px;
}

.section-head .kicker {
    font: 600 .72rem var(--sans);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-head h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    margin: 10px 0 12px;
    line-height: 1.1;
}

.section-head p {
    color: #4a5870;
    margin: 0 auto;
    max-width: 560px;
    font-size: .98rem;
}

.lead p {
    font-size: 1.12rem;
    line-height: 1.85;
    color: #2a3a52;
    margin: 0 0 1.4em;
}

.lead p:first-child::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 4.2rem;
    line-height: .85;
    padding: 6px 10px 0 0;
    color: var(--navy);
}

html[dir="rtl"] .lead p:first-child::first-letter {
    float: right;
    padding: 6px 0 0 10px;
}

/* Timeline */
/* Timeline: linha em left 8px; marcador de 16px + borda 3px = 22px de diâmetro, centro em 8px → left -41px a partir do item (padding 40px) */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 0 0 40px;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(176, 141, 87, 0.15), #B08D57 6%, #B08D57 94%, rgba(176, 141, 87, 0.15));
}

.tl-item--media {
    padding-bottom: 48px;
    margin-bottom: 0;
}

.tl-item--media::before {
    display: none;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-item {
    position: relative;
    padding: 0 0 48px 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s ease, transform .8s ease;
}

.tl-item.in {
    opacity: 1;
    transform: none;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -41px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #B08D57;
    border: 3px solid #F5F1EA;
    box-sizing: content-box;
    z-index: 2;
}

.tl-date {
    display: block;
    font: 600 .72rem var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #B08D57;
    margin-bottom: 8px;
}

.timeline .tl-item,
.timeline .tl-item.alert {
    background: none;
    border: 0;
    box-shadow: none;
}

.tl-item h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: #1B2A41;
    margin: 0 0 8px;
    line-height: 1.3;
}

.tl-item p {
    margin: 0;
    color: #4A5568;
    font-size: .95rem;
    line-height: 1.7;
}

@media (min-width: 769px) {
    .timeline {
        padding-left: 48px;
    }

    .timeline::before {
        left: 15px;
    }

    .tl-item::before {
        left: -41px;
    }
}

/* Quotes */
.quotes-section {
    background: #ECE6DA;
}

.quote {
    max-width: 760px;
    margin: 0 auto 64px;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .9s ease, transform .9s ease;
}

.quote.in {
    opacity: 1;
    transform: none;
}

.quote blockquote {
    margin: 0;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.3;
    color: var(--navy);
}

.quote blockquote::before {
    content: "“";
    color: var(--gold);
}

.quote blockquote::after {
    content: "”";
    color: var(--gold);
}

.quote cite {
    display: block;
    margin-top: 18px;
    font-style: normal;
    font: 500 .8rem var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #4a5870;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card-item {
    background: #FBF9F4;
    border: 1px solid rgba(27, 42, 65, 0.1);
    border-radius: 4px;
    padding: 32px 28px;
    box-shadow: 0 1px 0 rgba(27, 42, 65, 0.04), 0 12px 30px -18px rgba(27, 42, 65, 0.25);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease, box-shadow .3s ease;
}

.card-item.in {
    opacity: 1;
    transform: none;
}

.card-item:hover {
    box-shadow: 0 18px 40px -20px rgba(27, 42, 65, 0.35);
}

.card-num {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
}

.card-item h3 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 14px 0 10px;
    line-height: 1.2;
}

.card-item p {
    margin: 0;
    color: #3b4a62;
    font-size: .95rem;
    line-height: 1.75;
}

.card-tag {
    display: inline-block;
    margin-top: 18px;
    font: 600 .68rem var(--sans);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}

/* Mission facts */
.facts {
    background: var(--navy);
    color: var(--paper);
}

.facts .section-head h2 {
    color: var(--paper);
}

.facts .section-head .kicker {
    color: #E6CFA5;
}

.facts .section-head p {
    color: #C9D3E3;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
    align-items: start;
    margin: 0;
    border-top: 1px solid rgba(230, 207, 165, 0.3);
    padding-top: 24px;
}

@media (max-width: 767px) {
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

.fact {
    padding: 0;
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    hyphens: auto;
}

.fact dt {
    font: 600 .7rem var(--sans);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #E6CFA5;
    margin: 0 0 6px;
}

.fact dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #F1ECE1;
    overflow-wrap: break-word;
    hyphens: auto;
}

.fact-wide {
    grid-column: 1 / -1;
}

.mission-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
}

@media (min-width: 768px) {
    .mission-row {
        grid-template-columns: 1.4fr 1fr;
    }
}

.mission-row .facts-grid {
    flex: none;
    min-width: 0;
}

/* Closing */
.closing p {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
    line-height: 1.6;
    color: var(--navy);
    text-align: center;
    margin: 0;
    font-style: italic;
}

.closing .gold-line {
    width: 56px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 28px;
}

/* Footer */
.site-footer {
    background: #ECE6DA;
    border-top: 1px solid rgba(27, 42, 65, 0.12);
    padding: 56px 24px 40px;
}

.site-footer .wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.site-footer .brand {
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
}

.site-footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    justify-content: center;
}

.site-footer .links a {
    font-size: .9rem;
    color: var(--navy);
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.site-footer .note {
    font-size: .8rem;
    color: #4a5870;
    max-width: 620px;
    margin: 0;
}

.site-footer .copy {
    font-size: .75rem;
    color: #4a5870;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .tl-item,
    .quote,
    .card-item {
        opacity: 1;
        transform: none;
    }
}