:root {
    --page-bg: #ece9e2;
    --page-bg-deep: #dbd2c4;
    --header-bg: #26231f;
    --header-border: #38312a;
    --display-font: Georgia, "Times New Roman", serif;
    --text-light: #ffffff;
    --muted-light: #ddd6ca;
    --accent: #e48a32;
    --accent-deep: #9f5616;
    --ink: #211a14;
    --ink-muted: #675c50;
    --surface-border: rgba(78, 56, 31, 0.14);
    --shadow-soft: 0 22px 52px rgba(34, 24, 16, 0.12);
    --shadow-strong: 0 26px 62px rgba(31, 22, 14, 0.18);
}

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

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100svh;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(228, 138, 50, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(78, 56, 31, 0.14), transparent 24%),
        linear-gradient(180deg, #f7f1e7 0%, var(--page-bg) 52%, var(--page-bg-deep) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

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

a {
    overflow-wrap: anywhere;
}

.page-shell {
    width: 100%;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: block;
    padding-top: 30px;
}

.section-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 10px clamp(16px, 3vw, 22px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    color: var(--text-light);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-title,
.brand-tagline {
    margin: 0;
}

.brand-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.brand-accent {
    color: var(--accent);
}

.brand-tagline {
    margin-top: 3px;
    max-width: 240px;
    color: var(--muted-light);
    font-size: 0.64rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(14px, 2vw, 22px);
    flex-wrap: wrap;
    min-width: 0;
}

.site-nav a {
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.3vw, 0.98rem);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 12px;
    min-width: 0;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(240px, 100%);
    width: 100%;
    max-width: 280px;
    padding: 8px 14px;
    background: #f8f5f0;
    border-radius: 999px;
    flex: 1 1 220px;
}

.search-icon {
    width: 12px;
    height: 12px;
    border: 2px solid #b6ad9f;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #b6ad9f;
    border-radius: 999px;
    transform: rotate(45deg);
    transform-origin: center;
}

.search-form input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #928978;
    font: inherit;
    outline: none;
}

.search-form input::placeholder {
    color: #928978;
}

.menu-button {
    display: grid;
    align-content: space-between;
    width: 40px;
    height: 40px;
    padding: 10px 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: 0 0 40px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--text-light);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: min(220px, calc(100vw - 32px));
    max-height: min(320px, calc(100vh - 110px));
    overflow-y: auto;
    background: rgba(23, 23, 23, 0.96);
    border: 1px solid rgba(228, 138, 50, 0.3);
    border-radius: 14px;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dropdown-content.active {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 12px 18px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid rgba(228, 138, 50, 0.1);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(228, 138, 50, 0.16);
    color: var(--accent);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
}

.purpose-hero,
.direction-overview,
.mission-framework,
.values-section {
    position: relative;
}

.purpose-hero-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.88fr);
    gap: 24px;
    align-items: stretch;
}

.purpose-hero-copy,
.purpose-hero-panel,
.overview-card,
.mission-card,
.direction-card,
.core-card {
    animation: rise-up 0.7s ease both;
}

.purpose-hero-copy,
.purpose-hero-panel,
.overview-card,
.mission-card,
.direction-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}

.purpose-hero-copy {
    padding: clamp(28px, 4vw, 44px);
    background:
        linear-gradient(145deg, rgba(255, 250, 243, 0.96), rgba(246, 237, 225, 0.92)),
        linear-gradient(180deg, transparent, rgba(228, 138, 50, 0.06));
}

.purpose-hero-copy::after {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -110px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 138, 50, 0.2), transparent 70%);
    pointer-events: none;
}

.purpose-hero-copy h1 {
    font-family: var(--display-font);
    max-width: 13ch;
    margin-bottom: 18px;
    font-size: clamp(2.45rem, 5vw, 4.3rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.purpose-lead {
    max-width: 58ch;
    margin-bottom: 26px;
    color: var(--ink-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.purpose-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.purpose-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.purpose-button:hover {
    transform: translateY(-2px);
}

.purpose-button-primary {
    background: linear-gradient(135deg, var(--accent), #f0a24f);
    color: #fffaf5;
    box-shadow: 0 14px 24px rgba(159, 86, 22, 0.22);
}

.purpose-button-primary:hover {
    box-shadow: 0 18px 30px rgba(159, 86, 22, 0.28);
}

.purpose-button-secondary {
    border: 1px solid rgba(107, 74, 37, 0.18);
    background: rgba(255, 255, 255, 0.64);
    color: var(--ink);
}

.purpose-button-secondary:hover {
    background: rgba(255, 255, 255, 0.92);
}

.purpose-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.purpose-stat {
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(110, 79, 45, 0.12);
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(8px);
}

.purpose-stat strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    line-height: 1.25;
}

.purpose-stat span {
    display: block;
    color: var(--ink-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.purpose-hero-panel {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(43, 36, 31, 0.98), rgba(27, 23, 19, 0.96)),
        radial-gradient(circle at top right, rgba(228, 138, 50, 0.24), transparent 32%);
    color: #f8f0e5;
}

.hero-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.purpose-hero-panel .section-kicker {
    color: #f0bb82;
}

.purpose-hero-panel .section-kicker::before {
    opacity: 0.45;
}

.hero-panel-header h2 {
    font-family: var(--display-font);
    margin-bottom: 0;
    font-size: 1.6rem;
    line-height: 1.08;
}

.hero-panel-badge {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid rgba(240, 187, 130, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f5d7b0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vision-statement {
    margin-bottom: 0;
    color: #fff5e8;
    font-size: 1.04rem;
    line-height: 1.82;
}

.vision-pillars {
    display: grid;
    gap: 14px;
}

.vision-pillar {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-pillar h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: #fff4e6;
}

.vision-pillar p {
    margin-bottom: 0;
    color: rgba(248, 240, 229, 0.8);
    font-size: 0.94rem;
    line-height: 1.65;
}

.vision-image {
    flex: 1;
    min-height: 240px;
    margin: 2px 0 0;
    display: grid;
    place-items: center;
}

.vision-image img {
    display: block;
    width: min(100%, 360px);
    height: auto;
    max-height: 100%;
    border-radius: 24px;
    object-fit: contain;
    object-position: center;
}

.direction-overview {
    margin-top: 22px;
}

.direction-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.overview-card {
    padding: 24px;
    background: rgba(255, 251, 246, 0.74);
    backdrop-filter: blur(10px);
}

.overview-label {
    margin-bottom: 10px;
    color: var(--accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.overview-card h2 {
    font-family: var(--display-font);
    margin-bottom: 12px;
    font-size: 1.38rem;
    line-height: 1.25;
}

.overview-card p:last-child {
    margin-bottom: 0;
    color: var(--ink-muted);
    line-height: 1.68;
}

.mission-framework {
    margin-top: 24px;
}

.mission-framework-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.mission-card {
    padding: clamp(26px, 4vw, 38px);
    background:
        linear-gradient(180deg, rgba(43, 36, 31, 0.98), rgba(32, 27, 23, 0.98)),
        radial-gradient(circle at top left, rgba(228, 138, 50, 0.18), transparent 30%);
    box-shadow: var(--shadow-strong);
}

.direction-card {
    padding: clamp(26px, 4vw, 38px);
    background:
        linear-gradient(145deg, rgba(255, 250, 243, 0.96), rgba(245, 236, 226, 0.9)),
        linear-gradient(180deg, transparent, rgba(228, 138, 50, 0.06));
    box-shadow: var(--shadow-strong);
}

.mission-card-header,
.direction-card-header {
    margin-bottom: 18px;
}

.mission-card h2,
.direction-card h2 {
    margin-bottom: 0;
    line-height: 1.12;
}

.mission-card h2 {
    font-family: var(--display-font);
    color: #fff8f0;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.direction-card h2 {
    font-family: var(--display-font);
    color: var(--ink);
    font-size: clamp(1.75rem, 3vw, 2.2rem);
}

.mission-card .section-kicker {
    color: #f0bb82;
}

.mission-card .section-kicker::before {
    opacity: 0.45;
}

.mission-lead {
    margin: 0 0 18px;
    color: #f7efe5;
    font-size: 0.98rem;
    line-height: 1.6;
}

.mission-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
}

.mission-list li {
    position: relative;
    padding-left: 24px;
    color: #ffffff;
    font-size: clamp(0.95rem, 1.4vw, 1rem);
    line-height: 1.72;
}

.mission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(228, 138, 50, 0.16);
    transform: translateY(-50%);
}

.direction-track {
    display: grid;
    gap: 16px;
}

.direction-step {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(110, 79, 45, 0.12);
}

.direction-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(228, 138, 50, 0.12);
    color: var(--accent-deep);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.direction-step h3 {
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--ink);
}

.direction-step p {
    margin-bottom: 0;
    color: var(--ink-muted);
    line-height: 1.66;
}

.values-section {
    padding: 46px 0 80px;
}

.values-heading {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;
}

.values-heading .section-kicker {
    justify-content: center;
}

.values-heading h2 {
    font-family: var(--display-font);
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.85rem);
    line-height: 1.05;
}

.values-heading p {
    margin-bottom: 0;
    color: var(--ink-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.core-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

.core-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding: clamp(24px, 4vw, 34px) clamp(20px, 3vw, 28px);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(78, 56, 31, 0.1);
    box-shadow: 0 16px 36px rgba(38, 28, 20, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.core-card::before {
    content: "";
    position: absolute;
    inset: auto -15% -35% auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(228, 138, 50, 0.16), transparent 72%);
    pointer-events: none;
}

.core-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 18px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(228, 138, 50, 0.12);
    transition: transform 0.3s ease;
}

.core-card h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.2rem, 2vw, 1.35rem);
    font-weight: 700;
}

.core-card p {
    margin: 0;
    color: var(--ink-muted);
    font-size: clamp(0.95rem, 1.4vw, 1rem);
    line-height: 1.72;
}

@media (hover: hover) and (pointer: fine) {
    .mission-card:hover,
    .direction-card:hover,
    .overview-card:hover,
    .core-card:hover {
        transform: translateY(-8px);
    }

    .mission-card:hover,
    .direction-card:hover {
        box-shadow: 0 28px 60px rgba(228, 138, 50, 0.14), 0 0 26px rgba(228, 138, 50, 0.08);
    }

    .core-card:hover {
        box-shadow: 0 24px 48px rgba(228, 138, 50, 0.16), 0 0 24px rgba(228, 138, 50, 0.08);
    }

    .core-card:hover .core-icon {
        transform: scale(1.06) rotate(4deg);
    }
}

.site-footer {
    background: #26211d;
    color: #f4ede4;
}

.footer-shell {
    padding: 34px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 1fr) minmax(180px, 1fr);
    gap: 32px;
    align-items: start;
}

.footer-brand-block {
    max-width: 430px;
}

.footer-brand,
.footer-intro,
.footer-description,
.footer-bottom p,
.footer-links,
.footer-contact-list {
    margin: 0;
}

.footer-brand {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
}

.footer-intro {
    margin-top: 8px;
    max-width: 300px;
    color: #d4c8bd;
    font-size: 0.98rem;
    line-height: 1.45;
}

.footer-description {
    margin-top: 14px;
    max-width: 360px;
    color: #bcae9f;
    font-size: 0.96rem;
    line-height: 1.6;
}

.footer-contact-list,
.footer-links {
    padding: 0;
    list-style: none;
}

.footer-contact-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e5dbd1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-contact-icon {
    width: 18px;
    height: 18px;
    color: #f0e7de;
    flex: 0 0 18px;
    margin-top: 2px;
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
}

.footer-contact-list a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-contact-list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.footer-contact-list a:hover,
.footer-links a:hover {
    color: var(--accent);
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #d0c2b5;
    font-size: 0.95rem;
    line-height: 1.45;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
    color: #bcae9f;
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex-wrap: wrap;
}

.footer-legal-item {
    position: relative;
}

.footer-legal-label {
    display: inline-flex;
    align-items: center;
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4c8bd;
    font-size: 0.95rem;
    font-family: inherit;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
}

.footer-legal-label:focus {
    outline: 2px solid rgba(228, 138, 50, 0.7);
    outline-offset: 4px;
    border-radius: 6px;
}

.footer-legal-item:hover .footer-legal-label,
.footer-legal-item:focus-within .footer-legal-label {
    color: var(--accent);
}

.footer-legal-card {
    position: absolute;
    left: 0;
    bottom: calc(100% + 14px);
    width: min(320px, calc(100vw - 40px));
    padding: 14px 16px;
    background: #fff9f2;
    border: 1px solid rgba(72, 53, 31, 0.16);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(12, 8, 5, 0.26);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 30;
}

.footer-legal-card::after {
    content: "";
    position: absolute;
    left: 18px;
    top: 100%;
    width: 12px;
    height: 12px;
    background: #fff9f2;
    border-right: 1px solid rgba(72, 53, 31, 0.16);
    border-bottom: 1px solid rgba(72, 53, 31, 0.16);
    transform: rotate(45deg) translateY(-6px);
}

.footer-legal-item:hover .footer-legal-card,
.footer-legal-item:focus-within .footer-legal-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.footer-legal-card strong {
    display: block;
    margin-bottom: 6px;
    color: #2b2018;
    font-size: 0.95rem;
}

.footer-legal-card p {
    margin: 0;
    color: #4f4135;
    font-size: 0.88rem;
    line-height: 1.55;
}

@keyframes rise-up {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .purpose-hero-shell,
    .mission-framework-shell,
    .direction-overview-grid {
        grid-template-columns: 1fr;
    }

    .purpose-stat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .brand {
        grid-column: 1;
        grid-row: 1;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        justify-content: center;
        gap: 14px 20px;
        padding-top: 2px;
    }
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px 16px;
    }

    .brand,
    .site-nav,
    .header-actions {
        grid-column: auto;
        grid-row: auto;
        width: 100%;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 12px 18px;
    }

    .header-actions {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .search-form {
        flex: 1 1 240px;
        min-width: 0;
        max-width: none;
    }

    .dropdown-content {
        min-width: min(220px, calc(100vw - 32px));
    }

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

    .footer-brand-block {
        max-width: none;
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

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

@media (max-width: 640px) {
    body {
        font-size: 15px;
    }

    main {
        padding-top: 22px;
    }

    .section-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .site-header {
        gap: 12px;
        padding: 14px 12px;
    }

    .brand {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-title {
        font-size: 1.3rem;
    }

    .brand-tagline {
        max-width: 170px;
        font-size: 0.54rem;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 10px 14px;
    }

    .site-nav a {
        font-size: 0.92rem;
    }

    .header-actions {
        align-items: stretch;
    }

    .search-form {
        order: 1;
        width: 100%;
    }

    .menu-button {
        order: 2;
        align-self: center;
        margin-left: auto;
    }

    .dropdown-content {
        top: calc(100% + 6px);
        width: min(260px, calc(100vw - 24px));
    }

    .purpose-hero-copy,
    .purpose-hero-panel,
    .overview-card,
    .mission-card,
    .direction-card,
    .core-card {
        border-radius: 22px;
    }

    .purpose-hero-copy,
    .purpose-hero-panel,
    .overview-card,
    .mission-card,
    .direction-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .purpose-hero-copy h1 {
        max-width: none;
        font-size: 2.4rem;
    }

    .purpose-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vision-image {
        min-height: 190px;
    }

    .vision-image img {
        width: min(100%, 280px);
        border-radius: 18px;
    }

    .direction-step {
        grid-template-columns: 1fr;
    }

    .direction-index {
        width: 48px;
        height: 48px;
    }

    .values-section {
        padding: 38px 0 56px;
    }

    .footer-shell {
        padding: 30px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-brand {
        font-size: 1.7rem;
    }

    .footer-legal {
        gap: 16px;
    }

    .footer-legal-card {
        left: 50%;
        bottom: calc(100% + 12px);
        width: min(320px, calc(100vw - 32px));
        transform: translateX(-50%) translateY(10px);
    }

    .footer-legal-card::after {
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 420px) {
    .brand-tagline {
        max-width: 170px;
        font-size: 0.54rem;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .purpose-hero-copy h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .values-heading h2 {
        font-size: clamp(1.85rem, 8vw, 2.2rem);
    }
}

/* Footer legal popovers must stay inside the viewport. */
.footer-legal,
.footer-legal-item {
    max-width: 100%;
    overflow: visible;
}

.footer-legal-card {
    box-sizing: border-box;
    max-width: calc(100vw - 32px);
    overflow-wrap: anywhere;
}

.footer-legal-item:last-child .footer-legal-card {
    left: auto;
    right: 0;
    transform: translateY(10px);
}

.footer-legal-item:last-child .footer-legal-card::after {
    left: auto;
    right: 28px;
}

.footer-legal-item:last-child:hover .footer-legal-card,
.footer-legal-item:last-child:focus-within .footer-legal-card {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .footer-bottom {
        align-items: stretch;
    }

    .footer-legal {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .footer-legal-item {
        position: static;
    }

    .footer-legal-label {
        white-space: normal;
    }

    .footer-legal-card {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 32px));
        transform: translateY(10px);
    }

    .footer-legal-card::after {
        left: 24px;
        right: auto;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:hover .footer-legal-card,
    .footer-legal-item:focus-within .footer-legal-card {
        transform: translateY(0);
    }

    .footer-legal-item:last-child .footer-legal-card {
        left: auto;
        right: 0;
        transform: translateY(10px);
    }

    .footer-legal-item:last-child .footer-legal-card::after {
        left: auto;
        right: 28px;
        transform: rotate(45deg) translateY(-6px);
    }

    .footer-legal-item:last-child:hover .footer-legal-card,
    .footer-legal-item:last-child:focus-within .footer-legal-card {
        transform: translateY(0);
    }
}
