@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-400.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/Manrope-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sora";
    src: url("../fonts/Sora-500.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sora";
    src: url("../fonts/Sora-600.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sora";
    src: url("../fonts/Sora-700.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Sora";
    src: url("../fonts/Sora-800.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #f5f0ea;
    --bg-strong: #efe6dc;
    --surface: rgba(255, 255, 255, 0.7);
    --surface-strong: rgba(255, 255, 255, 0.9);
    --surface-soft: rgba(255, 250, 245, 0.72);
    --line: rgba(18, 18, 22, 0.1);
    --line-strong: rgba(18, 18, 22, 0.16);
    --text: #131317;
    --muted: #5f6069;
    --muted-strong: #353741;
    --accent: #147962;
    --accent-strong: #0d5d4d;
    --accent-soft: rgba(20, 121, 98, 0.1);
    --shadow-sm: 0 16px 40px rgba(19, 19, 23, 0.05);
    --shadow-lg: 0 28px 90px rgba(19, 19, 23, 0.09);
    --radius-sm: 18px;
    --radius-md: 28px;
    --radius-lg: 42px;
    --container-width: 1200px;
    --font-label: 0.76rem;
    --font-meta: 0.92rem;
    --font-body: 1.035rem;
    --font-body-lg: 1.18rem;
    --font-title-sm: 1.35rem;
    --font-title-md: clamp(2.1rem, 5vw, 3.25rem);
    --font-title-lg: clamp(2.4rem, 6vw, 4rem);
    --font-hero: clamp(3rem, 8vw, 5.8rem);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    touch-action: pan-x pan-y;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: "Manrope", "Helvetica Neue", sans-serif;
    line-height: 1.62;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 28%),
        radial-gradient(circle at 86% 16%, rgba(245, 221, 199, 0.66) 0%, rgba(245, 221, 199, 0) 30%),
        radial-gradient(circle at 50% 100%, rgba(20, 121, 98, 0.08) 0%, rgba(20, 121, 98, 0) 32%),
        linear-gradient(180deg, #fbf7f2 0%, var(--bg) 54%, #f0e8de 100%);
    position: relative;
    touch-action: pan-x pan-y;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(19, 19, 23, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 19, 23, 0.03) 1px, transparent 1px);
    background-size: 128px 128px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04));
    opacity: 0.1;
    z-index: 0;
}

header,
main,
footer {
    position: relative;
    z-index: 1;
}

body > main {
    flex: 1 0 auto;
}

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

picture {
    display: block;
}

figure {
    margin: 0;
}

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

button {
    cursor: pointer;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

strong {
    color: var(--muted-strong);
}

.site-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.54;
}

.site-background__map {
    position: absolute;
    inset: -7%;
    width: 114%;
    height: 114%;
    transform: translate3d(0, 0, 0) scale(1.02);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.34) 82%, transparent 100%);
}

.site-background__lines line {
    stroke: rgba(19, 19, 23, 0.095);
    stroke-width: 1.35;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.site-background__lines line[data-weight="soft"] {
    stroke: rgba(255, 255, 255, 0.32);
    stroke-width: 1.05;
}

.site-background__lines line[data-weight="strong"] {
    stroke: rgba(19, 19, 23, 0.14);
    stroke-width: 1.6;
}

.site-background__lines--accent line {
    stroke: rgba(20, 121, 98, 0.18);
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-dasharray: 24 36 88 142;
    opacity: 0.72;
    vector-effect: non-scaling-stroke;
}

.site-background__node {
    fill: rgba(255, 255, 255, 0.95);
    stroke: rgba(19, 19, 23, 0.17);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.site-background__node--minor {
    fill: rgba(255, 255, 255, 0.84);
    stroke-width: 1.2;
}

.site-background__node--major {
    fill: rgba(255, 255, 255, 0.96);
    stroke: rgba(20, 121, 98, 0.24);
    stroke-width: 1.85;
}

.obfuscated-email {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

.obfuscated-email:hover {
    color: var(--accent);
}

.container {
    width: min(var(--container-width), calc(100vw - 2.5rem));
    margin: 0 auto;
}

.section {
    padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.section--accent {
    position: relative;
}

.section--accent::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 1px solid rgba(18, 18, 22, 0.08);
    border-bottom: 1px solid rgba(18, 18, 22, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.14) 100%);
}

.section--accent > * {
    position: relative;
    z-index: 1;
}

.home-view .section--opaque {
    background: #f4ede4;
}

.home-view .section--opaque.section--accent::before {
    background: #f4ede4;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    gap: 0.55rem;
    margin: 0 0 1rem;
    color: var(--accent-strong);
    font-size: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.eyebrow::before {
    content: "";
    width: 1.25rem;
    height: 1px;
    background: currentColor;
    opacity: 0.58;
}

.hero {
    padding-top: clamp(2rem, 4vw, 3.75rem);
    padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "hero-top"
        "hero-media"
        "hero-bottom"
        "hero-portal";
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero__copy {
    display: contents;
}

.hero__copy-top,
.hero__copy-bottom {
    min-width: 0;
}

.hero__copy-top {
    grid-area: hero-top;
    position: relative;
    z-index: 2;
    display: grid;
    justify-items: start;
}

.hero__copy-bottom {
    grid-area: hero-bottom;
}

.hero__portal {
    grid-area: hero-portal;
}

.hero h1 {
    margin: 0;
    max-width: 10ch;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: var(--font-hero);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.lead {
    max-width: 54ch;
    margin: 1.35rem 0 0;
    color: var(--muted-strong);
    font-size: var(--font-body-lg);
    line-height: 1.72;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0.9rem 1.45rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--font-body);
    font-weight: 700;
    line-height: 1;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #15161a 0%, #1e2c2a 100%);
    box-shadow: 0 16px 34px rgba(21, 22, 26, 0.18);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(21, 22, 26, 0.22);
}

.portal-entry {
    width: fit-content;
    max-width: 46rem;
    margin: 1.3rem auto 0;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(18, 18, 22, 0.08);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 250, 245, 0.62) 100%);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.portal-entry__title {
    margin: 0;
    color: var(--text);
    font-size: var(--font-body-lg);
    font-weight: 800;
    letter-spacing: 0.02em;
}

.portal-entry__text {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: var(--font-body-lg);
}

.portal-entry__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    color: var(--accent-strong);
    font-weight: 700;
}

.portal-entry__link::after {
    content: "->";
    font-size: 0.82em;
}

.portal-entry__link:hover {
    color: var(--accent);
}

.hero__media {
    grid-area: hero-media;
    position: relative;
    align-self: start;
    overflow: hidden;
    margin-top: 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(18, 18, 22, 0.08);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: var(--shadow-lg);
    isolation: isolate;
    z-index: 1;
}

.hero__media::before {
    content: none;
}

.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(19, 19, 23, 0) 42%, rgba(19, 19, 23, 0.18) 100%),
        radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.24), transparent 28%);
    z-index: 1;
}

.hero__media img {
    width: 100%;
    height: 100%;
    min-height: 460px;
    object-fit: cover;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

.split > div:first-child {
    min-width: 0;
}

.split h2,
.contact-intro h2 {
    margin: 0;
    max-width: 14ch;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: var(--font-title-md);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.split > div:first-child > p:not(.eyebrow),
.contact-intro > p:not(.eyebrow) {
    max-width: 58ch;
    margin: 1rem 0 0;
    color: var(--muted-strong);
    font-size: var(--font-body-lg);
}

.split__media-stack {
    position: relative;
    display: grid;
    gap: 1rem;
}

.split__media {
    overflow: hidden;
    border-radius: calc(var(--radius-lg) - 6px);
    border: 1px solid rgba(18, 18, 22, 0.08);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: var(--shadow-sm);
}

.split__media img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.section-head {
    margin-bottom: 1.5rem;
}

.value-showcase {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(18, 18, 22, 0.08);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 8;
    background: rgba(255, 255, 255, 0.44);
}

.value-showcase::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(19, 19, 23, 0) 0%, rgba(19, 19, 23, 0.16) 100%);
}

.value-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.value-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.35rem;
}

.value-card {
    min-width: 0;
    min-height: 100%;
    padding: 1.5rem;
    border: 1px solid rgba(18, 18, 22, 0.08);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 250, 245, 0.6) 100%);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.value-card h2 {
    margin: 0;
    max-width: 12ch;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: var(--font-title-sm);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.value-card p {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: var(--font-body-lg);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 3rem);
    align-items: start;
}

.contact-intro {
    min-width: 0;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: clamp(1.35rem, 3vw, 2rem);
    border: 1px solid rgba(18, 18, 22, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 248, 242, 0.62) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.contact-form__field {
    display: grid;
    gap: 0.5rem;
}

.contact-form label {
    color: var(--muted-strong);
    font-size: var(--font-body);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(18, 18, 22, 0.1);
    border-radius: 18px;
    padding: 0.92rem 1rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.74);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.contact-form textarea {
    min-height: 148px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(95, 96, 105, 0.72);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(20, 121, 98, 0.32);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 4px rgba(20, 121, 98, 0.08);
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: rgba(189, 55, 40, 0.28);
    background: rgba(189, 55, 40, 0.08);
    box-shadow: 0 0 0 4px rgba(189, 55, 40, 0.06);
}

.contact-form__error {
    margin: 0;
    color: #9a3425;
    font-size: var(--font-meta);
    font-weight: 600;
}

.contact-form button {
    width: fit-content;
    min-width: 13rem;
    min-height: 3.35rem;
    margin-top: 0.35rem;
    padding: 0.9rem 1.35rem;
    border: none;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #15161a 0%, #203330 100%);
    box-shadow: 0 16px 32px rgba(21, 22, 26, 0.18);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(21, 22, 26, 0.22);
}

.contact-form__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.form-feedback {
    margin: 0 0 0.25rem;
    padding: 0.95rem 1rem;
    border: 1px solid transparent;
    border-radius: 18px;
    font-size: var(--font-meta);
    font-weight: 600;
}

.form-feedback--success {
    color: #0e5d4b;
    background: rgba(20, 121, 98, 0.12);
    border-color: rgba(20, 121, 98, 0.18);
}

.form-feedback--error {
    color: #922f21;
    background: rgba(189, 55, 40, 0.1);
    border-color: rgba(189, 55, 40, 0.16);
}

.footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 1.75rem 0 2.4rem;
    border-top: 1px solid rgba(18, 18, 22, 0.08);
}

.home-view .footer {
    background: #f4ede4;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer p {
    margin: 0;
    color: var(--muted);
    font-size: var(--font-meta);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    color: var(--muted-strong);
    font-size: var(--font-meta);
}

.footer__nav a {
    position: relative;
}

.footer__nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.12rem;
    height: 1px;
    background: currentColor;
    transition: right 0.2s ease;
}

.footer__nav a:hover::after {
    right: 0;
}

.legal-page {
    min-height: calc(100vh - 6rem);
    display: flex;
    align-items: flex-start;
}

.legal-shell {
    width: min(940px, calc(100vw - 2.5rem));
}

.legal-card {
    padding: clamp(1.45rem, 3.5vw, 2.75rem);
    border: 1px solid rgba(18, 18, 22, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 249, 243, 0.66) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.legal-head {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}

.legal-head .eyebrow {
    margin: 0;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    color: var(--muted-strong);
    font-size: var(--font-body);
    font-weight: 700;
}

.legal-back::before {
    content: "<-";
    font-size: 0.82em;
}

.legal-back:hover {
    color: var(--accent-strong);
}

.legal-card h1 {
    margin: 0;
    max-width: 11ch;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: var(--font-title-lg);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.legal-intro {
    margin: 1.25rem 0 0;
    color: var(--muted-strong);
    font-size: var(--font-body);
}

.legal-updated {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: var(--font-meta);
}

.legal-section + .legal-section {
    margin-top: 2rem;
}

.legal-section h2 {
    margin: 0 0 0.75rem;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: var(--font-title-sm);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.legal-section p {
    margin: 0 0 0.9rem;
    color: var(--muted);
}

.legal-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--muted);
}

.legal-list li + li {
    margin-top: 0.5rem;
}

.legal-list .obfuscated-email,
.legal-section .obfuscated-email {
    word-break: break-word;
}

body.portal-notice-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.portal-notice-page__main {
    flex: 1 0 auto;
    display: grid;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 2.5rem) 0;
}

.portal-notice-page__card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(1.3rem, 3vw, 2rem);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.portal-notice-page__card h1 {
    margin: 0;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.portal-notice-page__text {
    margin: 1rem 0 0;
    color: var(--muted-strong);
    font-size: var(--font-body-lg);
    line-height: 1.55;
}

.portal-notice-page__actions {
    margin-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

@media (min-width: 640px) {
    .value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .footer p {
        max-width: 34rem;
    }

    .contact-form {
        padding: 1.7rem;
    }
}

@media (min-width: 960px) {
    .hero h1 {
        max-width: none;
        white-space: nowrap;
    }

    .hero__grid {
        grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr);
        grid-template-areas:
            "hero-top hero-top"
            "hero-bottom hero-media"
            "hero-portal hero-portal";
        gap: clamp(3rem, 5vw, 5rem);
        align-items: start;
    }

    .hero__media {
        margin-top: 0;
        margin-right: -5.5rem;
    }

    .hero__media img {
        min-height: 640px;
    }

    .split {
        grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    }

    .split__media-stack {
        min-height: 42rem;
        padding: 0 0 6.4rem 2.5rem;
        align-items: end;
    }

    .split__media {
        width: 82%;
        margin-left: auto;
    }

    .split__media--secondary {
        position: absolute;
        left: 0;
        bottom: -5.4rem;
        width: 48%;
        margin-left: 0;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .contact-form {
        margin-top: 0.4rem;
    }
}

@media (max-width: 959px) {
    .hero h1,
    .split h2,
    .contact-intro h2,
    .legal-card h1 {
        max-width: none;
    }

    .hero__media img {
        min-height: 390px;
    }

    .split__media-stack {
        gap: 1.2rem;
    }
}

@media (max-width: 639px) {
    .container,
    .legal-shell {
        width: calc(100vw - 1.5rem);
    }

    .section {
        padding: 3rem 0;
    }

    .portal-entry,
    .value-card,
    .contact-form,
    .legal-card,
    .hero__media,
    .value-showcase,
    .split__media {
        border-radius: 24px;
    }

    .hero__actions,
    .contact-form button,
    .btn {
        width: 100%;
    }

    .contact-form button,
    .btn {
        min-width: 0;
    }

    .eyebrow {
        white-space: normal;
    }

    .footer__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }

    .footer p {
        max-width: none;
    }

    .hero__media img {
        min-height: 340px;
    }

    .hero__media {
        margin-top: 1.4rem;
    }

    .split__media img {
        min-height: 240px;
    }

    .value-showcase {
        aspect-ratio: 5 / 4;
    }
}
