@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,500;1,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --void: #050506;
    --void-deep: #000000;
    --graphite: #131417;
    --graphite-soft: #1b1d21;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --regolith: #3a3c40;
    --lunar-white: #f2f1ee;
    --dust: #8d9096;
    --steel-blue: #c1793f;
    --safety-orange: #96502a;
    --warm-light: #e8b877;
    --ink: #f2f1ee;
    --line: rgba(242, 241, 238, 0.12);
    --line-light: rgba(242, 241, 238, 0.26);
    --glow-cyan: rgba(193, 121, 63, 0.4);
    --glow-amber: rgba(150, 80, 42, 0.4);
    --font-display: "Archivo", "IBM Plex Sans", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Archivo", Arial, sans-serif;
    --font-utility: "IBM Plex Mono", "Courier New", monospace;
    --page-max: 1280px;
    --content-max: 1120px;
    --gutter: 32px;
    --radius-card: 8px;
    --radius-window: 32px;
    --shadow-window: 0 24px 70px rgba(0, 0, 0, 0.6);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --reveal-distance: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--void);
    overscroll-behavior: none;
}

body {
    margin: 0;
    min-width: 320px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
    position: relative;
}

/* Fixed background video — sits behind the ambient mesh, starts
   showing through once you scroll past the hero (the hero's own
   photo covers it while in view). A dark scrim keeps text readable
   over it. Hidden on small screens and for reduced-motion users. */
.bg-video {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bg-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-video::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 6, 0.12) 0%, rgba(5, 5, 6, 0.08) 40%, rgba(5, 5, 6, 0.25) 100%);
    content: "";
}


/* FIX: exclude .bg-video and .skip-link so this rule no longer overrides
   their position: fixed */
.site-body > *:not(.bg-video):not(.skip-link) {
    position: relative;
    z-index: 1;
}

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

a {
    color: inherit;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
dl,
dd {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1;
}

h1 {
    font-size: 122px;
    letter-spacing: -0.02em;
    font-weight: 500;
}

h3 {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}

h2 {
    font-size: 58px;
    font-weight: 500;
}

h3 {
    font-size: 26px;
}

p {
    max-width: 75ch;
}

/* Small uppercase mono label — used above headings to add a technical,
   understated marker without touching real content. Opt-in: add
   class="eyebrow" to any element. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--steel-blue);
    font-family: var(--font-utility);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    display: inline-block;
    width: 22px;
    height: 1px;
    background: var(--safety-orange);
    content: "";
}

.eyebrow::after {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: var(--steel-blue);
    content: "";
    animation: cursor-blink 1.1s steps(1) infinite;
}

@keyframes cursor-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--safety-orange);
    color: var(--void);
    font-weight: 700;
    text-decoration: none;
    transform: translateY(-250%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--steel-blue);
    outline-offset: 4px;
}

::selection {
    background: var(--steel-blue);
    color: var(--void);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--graphite-soft);
    border: 2px solid var(--void);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--steel-blue);
}

.site-body {
    overflow-x: hidden;
}

.site-hero,
.page-hero {
    position: relative;
    isolation: isolate;
    color: var(--lunar-white);
}

.site-hero {
    display: flex;
    flex-direction: column;
    min-height: 600px;
    height: 100svh;
    max-height: 900px;
    padding: 0 var(--gutter);
    overflow: hidden;
    background-color: var(--void);
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 150px), transparent 100%);
}

.site-hero::before {
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 22%, rgba(242, 241, 238, 0.9), transparent),
        radial-gradient(1px 1px at 22% 68%, rgba(242, 241, 238, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 38% 14%, rgba(242, 241, 238, 0.8), transparent),
        radial-gradient(1px 1px at 54% 78%, rgba(242, 241, 238, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 68% 32%, rgba(242, 241, 238, 0.9), transparent),
        radial-gradient(1px 1px at 82% 58%, rgba(242, 241, 238, 0.65), transparent),
        radial-gradient(1.5px 1.5px at 91% 20%, rgba(242, 241, 238, 0.85), transparent),
        radial-gradient(1px 1px at 14% 88%, rgba(242, 241, 238, 0.55), transparent),
        radial-gradient(1.5px 1.5px at 47% 46%, rgba(242, 241, 238, 0.75), transparent),
        radial-gradient(1px 1px at 76% 84%, rgba(242, 241, 238, 0.6), transparent);
    background-repeat: no-repeat;
    content: "";
    animation: star-twinkle 5s ease-in-out infinite alternate;
}

@keyframes star-twinkle {
    from {
        opacity: 0.55;
    }
    to {
        opacity: 1;
    }
}

.site-hero::after {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("src/images/built-to-stay.png");
    background-position: center;
    background-size: cover;
    content: "";
    animation: hero-drift 26s var(--ease-out) infinite alternate;
}

@keyframes hero-drift {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1100px 620px at 18% -12%, rgba(232, 184, 119, 0.1), transparent 60%),
        radial-gradient(900px 520px at 88% 8%, rgba(193, 122, 69, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.36) 42%, rgba(0, 0, 0, 0.82) 100%);
}

.hero-scrim::after {
    position: absolute;
    right: 8%;
    bottom: 64px;
    left: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warm-light) 38%, var(--steel-blue) 64%, transparent);
    content: "";
    opacity: 0.5;
    animation: horizon-pulse 4.5s ease-in-out infinite;
}

@keyframes horizon-pulse {
    0%, 100% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.75;
    }
}

.page-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(193, 122, 69, 0.09), transparent 60%),
        rgba(0, 0, 0, 0.5);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 25px 0;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--lunar-white);
    text-decoration: none;
}

.brand-mark__icon {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.brand-mark__logo {
    height: 60px;
    width: auto;
    display: block;
}

.brand-mark--dark {
    color: var(--void);
}

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

.site-nav__links a {
    color: var(--lunar-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    text-underline-offset: 5px;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
    color: var(--warm-light);
    text-decoration: underline;
}

.hero-content {
    width: min(100%, var(--page-max));
    margin: auto;
    padding: 64px 0 84px;
}

.hero-content h1 {
    width: min(680px, 100%);
    margin-top: 0;
    color: var(--lunar-white);
    font-size: 104px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 0.98;
}

.hero-content h1 span {
    color: var(--steel-blue);
    font-style: italic;
    font-weight: 600;
}

/* Load-in: the heading fades and rises into place once, no per-line
   stagger since "Built to stay." now stays on a single line. */
.hero-content h1 {
    animation: fade-up 900ms var(--ease-out) 60ms both;
}

.hero-content__summary {
    width: min(560px, 100%);
    margin-top: 26px;
    color: rgba(244, 245, 240, 0.9);
    font-size: 20px;
    line-height: 1.45;
    animation: fade-up 900ms var(--ease-out) 420ms both;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

@keyframes fade-up {
    from {
        transform: translateY(var(--reveal-distance));
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content .action-row {
    animation: fade-up 900ms var(--ease-out) 520ms both;
}

.button {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-card);
    color: var(--lunar-white);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 220ms ease;
    will-change: transform;
}

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

.button--light {
    background: var(--lunar-white);
    color: var(--void);
    box-shadow: 0 0 0 rgba(232, 184, 119, 0);
}

.button--light:hover {
    background: var(--warm-light);
    box-shadow: 0 8px 28px var(--glow-amber);
}

.button--ghost {
    border-color: rgba(242, 241, 238, 0.4);
    background: rgba(5, 5, 6, 0.4);
    backdrop-filter: blur(10px);
}

.button--ghost:hover {
    border-color: var(--steel-blue);
    background: rgba(5, 5, 6, 0.7);
    color: var(--steel-blue);
    box-shadow: 0 8px 28px var(--glow-cyan);
}

.button--dark {
    background: var(--graphite);
    color: var(--lunar-white);
    border-color: var(--glass-border);
}

.button--dark:hover {
    background: var(--safety-orange);
    color: var(--void);
    box-shadow: 0 8px 28px var(--glow-amber);
}

.button--outline {
    border-color: var(--ink);
    color: var(--ink);
}

.button--outline:hover {
    background: var(--steel-blue);
    border-color: var(--steel-blue);
    color: var(--void);
    box-shadow: 0 8px 28px var(--glow-cyan);
}

.section {
    padding: 144px var(--gutter);
}

.outputs-section {
    padding-top: 92px;
}

.content-grid,
.section-intro,
.window-story {
    width: min(100%, var(--content-max));
    margin: 0 auto;
}

.content-grid--statement {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.78fr);
    gap: 96px;
}

.content-grid--statement h2 {
    max-width: 680px;
    margin-top: 0;
}

.body-copy {
    padding-top: 52px;
}

.body-copy p {
    font-size: 18px;
    line-height: 1.62;
}

.body-copy p + p {
    margin-top: 22px;
}

/* CHANGED: background made semi-transparent so the fixed video shows through */
.material-surface {
    position: relative;
    isolation: isolate;
    background-color: rgba(58, 60, 64, 0.12);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 130px, #000 calc(100% - 130px), transparent 100%);
}

.material-surface::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("src/images/regolith-surface.png");
    background-position: center;
    background-repeat: repeat;
    background-size: 620px 620px;
    content: "";
    opacity: 0.085;
}

.material-surface > * {
    position: relative;
    z-index: 1;
}

.process-section {
    border-top: 1px solid rgba(242, 241, 238, 0.1);
    border-bottom: 1px solid rgba(242, 241, 238, 0.1);
}

.section-intro {
    max-width: var(--content-max);
}

.section-intro h2 {
    max-width: 730px;
    margin-top: 0;
}

.section-intro > p:last-child {
    margin-top: 20px;
    color: rgba(242, 241, 238, 0.72);
    font-size: 18px;
}

.process-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    width: min(100%, var(--content-max));
    margin: 76px auto 0;
    padding: 0;
    list-style: none;
}

.process-rail__item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 210px;
    padding: 0 25px 0 0;
    border-left: none;
    border-top: 2px solid rgba(242, 241, 238, 0.14);
    padding-top: 22px;
    transition: border-color 260ms ease;
}

.process-rail__item:hover {
    border-top-color: var(--safety-orange);
}

.process-rail__item + .process-rail__item {
    border-left: 1px solid rgba(242, 241, 238, 0.14);
    padding-left: 24px;
}

.process-rail__item:last-child {
    padding-right: 0;
}

.process-rail__number {
    color: var(--safety-orange);
    font-family: var(--font-utility);
    font-size: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 0 24px var(--glow-amber);
    transition: text-shadow 260ms ease;
}

.process-rail__item:hover .process-rail__number {
    text-shadow: 0 0 40px var(--glow-amber);
}

.process-rail__item h3 {
    margin-top: 0;
    font-size: 25px;
    line-height: 1.05;
}

.process-rail__item p:last-child {
    margin-top: 13px;
    color: rgba(242, 241, 238, 0.75);
    font-size: 15px;
    line-height: 1.5;
}

.window-story {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.7fr);
    align-items: start;
    gap: 84px;
}

.window-story__content {
    padding-top: 64px;
}

.window-frame {
    position: relative;
    overflow: hidden;
    border: 14px solid var(--regolith);
    border-radius: var(--radius-window);
    background: var(--regolith);
    box-shadow: var(--shadow-window);
    transition: box-shadow 320ms ease, border-color 320ms ease;
}

.window-frame:hover {
    border-color: var(--graphite-soft);
    box-shadow: var(--shadow-window), 0 0 60px rgba(193, 122, 69, 0.1);
}

.window-frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1.18;
    object-fit: cover;
    transition: transform 900ms var(--ease-out);
}

.window-frame:hover img {
    transform: scale(1.035);
}

.window-frame__marker {
    position: absolute;
    right: 22px;
    bottom: 22px;
}

.window-frame__marker img {
    display: block;
    width: 40px;
    height: 40px;
}

.window-story__content h2 {
    margin-top: 0;
}

.window-story__content > p:not(.annotation) {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.62;
}

.annotation {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: rgba(242, 241, 238, 0.64);
    font-family: var(--font-utility);
    font-size: 11px;
    line-height: 1.6;
}

.section-intro--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.58fr);
    gap: 72px;
    align-items: end;
}

.section-intro--split > p {
    margin-bottom: 4px;
    color: rgba(242, 241, 238, 0.74);
    font-size: 17px;
    line-height: 1.58;
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100%, var(--content-max));
    margin: 62px auto 0;
}

.output-card {
    position: relative;
    min-height: 275px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.output-card:hover {
    border-color: var(--steel-blue);
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 44px rgba(193, 122, 69, 0.14);
}

.output-card__signal {
    display: block;
    width: 14px;
    height: 14px;
    margin-bottom: 22px;
    border-radius: 50%;
}

.output-card__signal--blue {
    background: var(--steel-blue);
}

.output-card__signal--light {
    border: 1px solid var(--steel-blue);
    background: var(--lunar-white);
}

.output-card__signal--orange {
    background: var(--safety-orange);
}

.output-card h3 {
    margin-top: 12px;
}

.output-card > p:last-child {
    margin-top: 16px;
    color: rgba(242, 241, 238, 0.72);
    font-size: 16px;
    line-height: 1.5;
}

/* Regolith calculator — a live estimator wired to real composition
   data, sitting under the three output cards. */
.regolith-calc {
    width: min(100%, var(--content-max));
    margin: 88px auto 0;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.regolith-calc__intro {
    max-width: 640px;
}

.regolith-calc__intro h3 {
    margin-top: 6px;
    font-size: 32px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.regolith-calc__intro p {
    margin-top: 14px;
    color: rgba(242, 241, 238, 0.7);
    font-size: 16px;
    line-height: 1.55;
}

.regolith-calc__slider {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.regolith-calc__slider-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
    font-family: var(--font-utility);
    font-size: 13px;
    color: var(--dust);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.regolith-calc__slider-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    color: var(--warm-light);
    text-shadow: 0 0 22px rgba(232, 184, 119, 0.4);
}

/* Custom range input — a glowing rust-filled track with a round thumb */
.regolith-calc input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--steel-blue) 0%, var(--steel-blue) var(--fill, 0%), var(--graphite-soft) var(--fill, 0%), var(--graphite-soft) 100%);
    outline: none;
    cursor: pointer;
}

.regolith-calc input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border: 3px solid var(--void);
    border-radius: 50%;
    background: var(--steel-blue);
    box-shadow: 0 0 0 4px rgba(193, 121, 63, 0.18), 0 0 24px rgba(193, 121, 63, 0.55);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.regolith-calc input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.12);
    box-shadow: 0 0 0 6px rgba(193, 121, 63, 0.22), 0 0 32px rgba(193, 121, 63, 0.7);
}

.regolith-calc input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--graphite-soft);
}

.regolith-calc input[type="range"]::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: var(--steel-blue);
}

.regolith-calc input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid var(--void);
    border-radius: 50%;
    background: var(--steel-blue);
    box-shadow: 0 0 24px rgba(193, 121, 63, 0.55);
    cursor: pointer;
}

.regolith-calc__scale {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--dust);
    font-family: var(--font-utility);
    font-size: 11px;
}

.regolith-calc__results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.regolith-result {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.02);
}

.regolith-result h4 {
    margin: 0 0 4px;
    color: var(--lunar-white);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 500;
}

.regolith-result__subtitle {
    margin: 0 0 18px;
    color: var(--dust);
    font-family: var(--font-utility);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.regolith-result ul {
    display: grid;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.regolith-result li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}

.regolith-result li:last-child {
    border-bottom: none;
}

.regolith-result li span:first-child {
    color: rgba(242, 241, 238, 0.68);
}

.regolith-result li span:last-child {
    font-family: var(--font-utility);
    font-weight: 500;
    color: var(--warm-light);
}

/* CHANGED: background made semi-transparent so the fixed video shows through */
.proof-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--void-deep);
    color: var(--lunar-white);

}

.proof-section::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(720px 520px at 8% 30%, rgba(168, 90, 46, 0.14), transparent 65%);
    content: "";
    pointer-events: none;
}

.proof-section__content {
    position: relative;
    z-index: 1;
}

.proof-section__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 96px clamp(40px, 4.2vw, 72px) 96px max(var(--gutter), calc((100vw - var(--content-max)) / 2));
}

.proof-section h2 {
    margin-top: 0;
    color: var(--lunar-white);
}

.proof-section__content > p {
    margin-top: 26px;
    color: rgba(244, 245, 240, 0.77);
    font-size: 18px;
    line-height: 1.62;
}

.proof-section__image {
    min-height: 560px;
    filter: grayscale(0.25) contrast(1.06);
}

.proof-section__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 28px;
    color: var(--steel-blue);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    text-underline-offset: 6px;
}

.text-link:hover {
    color: var(--safety-orange);
    text-decoration: underline;
}

.text-link--light {
    color: var(--warm-light);
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.66fr);
    width: 100%;
    margin: 0;
    padding: 144px max(var(--gutter), calc((100vw - var(--content-max)) / 2));
    gap: 80px;
    align-items: end;
}

.contact-section.material-surface {
    background-color: var(--graphite);
    -webkit-mask-image: none;
    mask-image: none;
}

.contact-section h2 {
    max-width: 650px;
    margin-top: 0;
}

.contact-section__details {
    display: grid;
    justify-items: start;
    gap: 16px;
    padding-bottom: 4px;
}

.contact-link {
    color: var(--lunar-white);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.15;
    text-decoration: none;
    text-underline-offset: 6px;
    overflow-wrap: anywhere;
}

.contact-link:hover {
    color: var(--safety-orange);
    text-decoration: underline;
}

.contact-section__details > p {
    color: rgba(242, 241, 238, 0.68);
}

.contact-section__details .text-link {
    margin-top: 2px;
}

/* CHANGED: background made semi-transparent so the fixed video shows through */
.site-footer {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 36px max(var(--gutter), calc((100vw - var(--page-max)) / 2));
    background: var(--void);
    color: rgba(244, 245, 240, 0.68);
    font-size: 13px;
}

.site-footer .brand-mark {
    color: var(--lunar-white);
}

.site-footer p {
    max-width: none;
}

.footer-tagline {
    justify-self: end;
    margin-right: 40px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-right: 64px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    color: var(--lunar-white);
    font-size: 15px;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-socials a:hover,
.footer-socials a:focus-visible {
    background: var(--safety-orange);
    border-color: var(--safety-orange);
    color: var(--void);
    transform: translateY(-2px);
}

/* Scroll reveal utility — opt-in. Add class="reveal" to any element,
   then toggle "is-visible" via a small IntersectionObserver (see notes).
   Elements never included in this treatment are unaffected. */
.reveal {
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transform: translateY(var(--reveal-distance));
    opacity: 0;
}

.reveal.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* Careers */

.page-hero {
    min-height: 570px;
    padding: 0 var(--gutter);
    background-color: var(--void);
    background-position: center;
    background-size: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 130px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - 130px), transparent 100%);
}

.page-hero--careers {
    background-image: url("src/images/radical-lab.png");
}

.page-hero__scrim {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(193, 122, 69, 0.09), transparent 60%),
        rgba(0, 0, 0, 0.5);
}

.page-hero__content {
    width: min(100%, var(--page-max));
    margin: 76px auto 0;
    padding-bottom: 84px;
}

.page-hero__content h1 {
    max-width: 780px;
    margin-top: 0;
    color: var(--lunar-white);
    font-size: 76px;
}

.page-hero__content > p {
    max-width: 610px;
    margin-top: 24px;
    color: rgba(244, 245, 240, 0.84);
    font-size: 19px;
    line-height: 1.5;
}

.careers-intro h2 {
    max-width: 640px;
}

.openings-section {
    border-top: 1px solid rgba(242, 241, 238, 0.1);
}

.role-card {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    width: min(100%, var(--content-max));
    margin: 62px auto 0;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.role-card:hover {
    border-color: var(--steel-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(193, 122, 69, 0.12);
}

.role-card__main h3 {
    margin-top: 13px;
}

.role-card__main > p:last-child {
    margin-top: 15px;
    color: rgba(242, 241, 238, 0.74);
    font-size: 17px;
}

/* Legacy job pages using the shared system */

.page-header {
    position: relative;
    min-height: 116px;
    padding: 0 var(--gutter);
    background: var(--void);
    border-bottom: 1px solid var(--line);
}

.page-header .logo {
    position: absolute;
    top: 26px;
    left: max(var(--gutter), calc((100vw - var(--page-max)) / 2));
    z-index: 2;
}

.page-header .logo-image {
    display: block;
    width: 42px;
    height: 42px;
}

.page-header .logo a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--lunar-white);
    text-decoration: none;
}

.page-header .logo a::after {
    width: 142px;
    content: "Lunar Metallurgy\A Corporation";
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    white-space: pre;
}

.page-header .navbar {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 38px 0;
}

.page-header .navbar a {
    color: var(--lunar-white);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    text-underline-offset: 5px;
}

.page-header .navbar a:hover,
.page-header .navbar a.active {
    color: var(--warm-light);
    text-decoration: underline;
}

.page-title,
.job-container h1 {
    color: var(--lunar-white);
}

.page-title {
    margin-bottom: 24px;
    font-size: 68px;
}

.page-intro {
    color: rgba(242, 241, 238, 0.76);
    font-size: 19px;
    line-height: 1.62;
}

.container {
    width: min(100%, var(--content-max));
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 48px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: border-color 220ms ease, transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.card:hover {
    border-color: var(--steel-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(193, 122, 69, 0.12);
}

.card h3 {
    font-size: 27px;
}

.card p,
.job-meta {
    color: rgba(242, 241, 238, 0.72);
}

.job-meta {
    margin-top: 12px;
    font-family: var(--font-utility);
    font-size: 12px;
}

.job-button {
    align-self: flex-start;
    margin-top: auto;
}

.job-container {
    max-width: 850px;
}

.page-header + .section {
    padding-top: 72px;
    padding-bottom: 52px;
}

.page-header + .section + .section {
    padding-top: 52px;
    padding-bottom: 96px;
}

.job-container h1 {
    font-size: 64px;
}

.job-summary {
    max-width: 650px;
    margin-top: 20px;
    color: rgba(242, 241, 238, 0.74);
    font-size: 21px;
    line-height: 1.48;
}

.job-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.job-detail {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
    font-family: var(--font-utility);
    font-size: 12px;
}

.job-container h2 {
    margin-top: 56px;
    font-size: 37px;
}

.job-container h3 {
    color: var(--lunar-white);
    font-size: 18px;
    line-height: 1.42;
}

.job-container p,
.job-container li {
    color: rgba(242, 241, 238, 0.8);
    font-size: 17px;
    line-height: 1.65;
}

.job-container p + p {
    margin-top: 18px;
}

.job-container ul {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    margin-top: 20px;
}

.job-container a:not(.cta) {
    color: var(--steel-blue);
    font-weight: 700;
    text-underline-offset: 5px;
}

.cta,
.job-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    background: var(--graphite);
    color: var(--lunar-white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 220ms ease;
}

.cta:hover,
.job-button:hover {
    background: var(--safety-orange);
    color: var(--void);
    box-shadow: 0 8px 28px var(--glow-amber);
    transform: translateY(-2px);
}

/* Design-system page */

.system-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 25px var(--gutter);
}

.system-header .text-link {
    margin-top: 0;
}

.system-main {
    padding-bottom: 112px;
}

.system-intro {
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 104px var(--gutter);
    border: 1px solid var(--line);
}

.system-intro h1 {
    margin-top: 0;
    color: var(--lunar-white);
    font-size: 88px;
}

.system-intro > p:last-child {
    max-width: 680px;
    margin-top: 25px;
    font-size: 19px;
    line-height: 1.58;
}

.system-section {
    width: min(100%, var(--page-max));
    margin: 0 auto;
    padding: 96px var(--gutter);
    border-bottom: 1px solid var(--line);
}

.system-section__heading h2 {
    max-width: 660px;
    margin-top: 0;
}

.swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 48px;
}

.swatch {
    display: flex;
    min-height: 148px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    border: 1px solid var(--line);
    font-family: var(--font-utility);
    font-size: 11px;
}

.swatch code {
    margin-top: 4px;
    font-family: inherit;
    font-size: 11px;
}

.swatch--void {
    background: var(--void);
    color: var(--lunar-white);
}

.swatch--graphite {
    background: var(--graphite);
    color: var(--lunar-white);
}

.swatch--regolith {
    background: var(--regolith);
    color: var(--lunar-white);
}

.swatch--white {
    background: var(--lunar-white);
    color: var(--void);
}

.swatch--steel {
    background: var(--steel-blue);
    color: var(--void);
}

.swatch--orange {
    background: var(--safety-orange);
    color: var(--void);
}

.type-specimens {
    display: grid;
    gap: 0;
    margin-top: 48px;
    border-top: 1px solid var(--line);
}

.type-specimen {
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

.type-specimen > p:last-child {
    margin-top: 0;
}

.type-specimen--display > p:last-child {
    max-width: 1040px;
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 700;
    line-height: 0.98;
}

.type-specimen--body > p:last-child {
    max-width: 720px;
    font-size: 21px;
    line-height: 1.5;
}

.type-specimen--utility > p:last-child {
    color: var(--steel-blue);
    font-family: var(--font-utility);
    font-size: 15px;
}

.texture-rule {
    display: grid;
    grid-template-columns: 90px minmax(170px, 1fr) 90px minmax(170px, 1fr) 90px minmax(170px, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 50px;
}

.texture-rule__number {
    color: var(--lunar-white);
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
}

.texture-rule__number--accent {
    color: var(--safety-orange);
}

.texture-rule p {
    color: rgba(242, 241, 238, 0.72);
    font-size: 15px;
    line-height: 1.45;
}

.system-window-demo {
    margin-top: 50px;
}

.system-window-demo img {
    aspect-ratio: 2 / 1;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 50px;
}

.component-panel {
    min-height: 236px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.component-panel .action-row {
    margin-top: 26px;
}

.component-title {
    margin-top: 0;
    color: var(--lunar-white);
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.1;
}

.component-title + p {
    margin-top: 14px;
    color: rgba(242, 241, 238, 0.7);
    font-size: 15px;
    line-height: 1.48;
}

.component-panel--dark {
    border-color: var(--steel-blue);
    background: var(--void-deep);
    color: var(--lunar-white);
    box-shadow: 0 0 32px rgba(193, 122, 69, 0.1);
}

.component-panel--dark .component-title {
    color: var(--lunar-white);
}

.component-panel--dark .text-link {
    margin-top: 26px;
}

@media (max-width: 1060px) {
    :root {
        --gutter: 26px;
    }

    h1 {
        font-size: 92px;
    }

    .hero-content h1 {
        font-size: 82px;
    }

    h2 {
        font-size: 48px;
    }

    .content-grid--statement,
    .window-story {
        gap: 54px;
    }

    .process-rail__item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding-right: 18px;
    }

    .proof-section__content {
        padding: 68px 44px;
    }

    .swatch-grid {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }

    .texture-rule {
        grid-template-columns: 72px 1fr;
        gap: 14px 18px;
    }
}

@media (max-width: 780px) {
    :root {
        --gutter: 20px;
        --radius-window: 22px;
    }

    h1 {
        font-size: 60px;
    }

    .hero-content h1 {
        font-size: 57px;
    }

    h2 {
        font-size: 39px;
    }

    h3 {
        font-size: 26px;
    }

    .site-hero {
        min-height: 600px;
        height: 100svh;
    }

    .site-hero::after {
        background-position: 42% center;
    }

    .site-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 20px;
    }

    .site-nav__links {
        gap: 16px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .site-nav__links::-webkit-scrollbar {
        display: none;
    }

    .site-nav__links a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .hero-content {
        padding: 38px 0 96px;
    }

    .hero-content__summary {
        font-size: 18px;
    }

    .section {
        padding: 84px var(--gutter);
    }

    .content-grid--statement,
    .window-story,
    .section-intro--split,
    .proof-section,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .body-copy {
        padding-top: 0;
    }

    .window-story__content {
        padding-top: 0;
    }

    .body-copy p,
    .window-story__content > p:not(.annotation) {
        font-size: 17px;
    }

    .process-rail {
        grid-template-columns: 1fr;
        gap: 0;
        margin-top: 46px;
    }

    .process-rail__item {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 24px 0 0 0;
        border-left: none;
        border-top: 2px solid rgba(242, 241, 238, 0.14);
    }

    .process-rail__item + .process-rail__item {
        border-left: none;
        padding-left: 0;
    }

    .process-rail__number {
        font-size: 34px;
    }

    .process-rail__item:last-child {
        padding-bottom: 0;
    }

    .window-frame {
        border-width: 10px;
    }

    .window-frame img {
        aspect-ratio: 1 / 1;
    }

    .section-intro--split > p {
        font-size: 16px;
    }

    .output-grid,
    .component-grid,
    .regolith-calc__results {
        grid-template-columns: 1fr;
    }

    .regolith-calc {
        padding: 32px 24px;
    }

    .output-card {
        min-height: 240px;
    }

    .proof-section__content {
        padding: 62px 28px;
    }

    .proof-section {
        padding: 0;
    }

    .proof-section__image {
        min-height: 390px;
    }

    .contact-section {
        padding: 84px var(--gutter);
    }

    .site-footer {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 32px var(--gutter);
    }

    .page-hero {
        min-height: 560px;
    }

    .page-hero__content {
        margin-top: 48px;
        padding-bottom: 64px;
    }

    .page-hero__content h1 {
        font-size: 54px;
    }

    .role-card {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 45px;
        padding: 26px;
    }

    .page-header {
        min-height: 164px;
    }

    .page-header .logo {
        top: 18px;
        left: var(--gutter);
    }

    .page-header .navbar {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 16px;
        padding-top: 106px;
        padding-bottom: 18px;
        scrollbar-width: none;
    }

    .page-header .navbar::-webkit-scrollbar {
        display: none;
    }

    .page-header .navbar a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .page-title,
    .job-container h1 {
        font-size: 48px;
    }

    .page-intro,
    .job-summary {
        font-size: 18px;
    }

    .job-container h2 {
        margin-top: 42px;
        font-size: 32px;
    }

    .system-header {
        padding: 20px var(--gutter);
    }

    .system-header .text-link {
        font-size: 13px;
    }

    .system-intro,
    .system-section {
        padding: 66px var(--gutter);
    }

    .system-intro h1 {
        font-size: 58px;
    }

    .system-intro > p:last-child {
        font-size: 17px;
    }

    .swatch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 36px;
    }

    .type-specimen--display > p:last-child {
        font-size: 42px;
    }

    .type-specimen--body > p:last-child {
        font-size: 18px;
    }

}

@media (max-width: 460px) {
    h1,
    .page-hero__content h1 {
        font-size: 44px;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    h2 {
        font-size: 32px;
    }

    .brand-mark__name {
        font-size: 13px;
    }

    .contact-link {
        font-size: 20px;
    }

    .page-header .logo a::after {
        width: 130px;
        font-size: 13px;
    }

    .system-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .site-hero::after {
        animation: none;
    }

    .bg-video video {
        display: none;
    }

    .hero-content h1,
    .hero-content__summary,
    .hero-content .action-row {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ------------------------------------------------------------------
   Video ends after the "A settlement is a system..." section.
   A full-width gradient fades the video into the dark background at the
   bottom of that section, and everything below sits on the original
   dark void + soft grey mesh instead of the video.
   ------------------------------------------------------------------ */
.window-story {
    position: relative;
}

.window-story::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: 100vw;
    height: 640px;
    margin-left: -50vw;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 6, 0) 0%,
        rgba(5, 5, 6, 0.06) 12%,
        rgba(5, 5, 6, 0.18) 28%,
        rgba(5, 5, 6, 0.38) 45%,
        rgba(5, 5, 6, 0.62) 62%,
        rgba(5, 5, 6, 0.84) 80%,
        rgba(5, 5, 6, 0.96) 92%,
        #050506 100%
    );
    content: "";
    pointer-events: none;
}

.outputs-section {
    background-color: var(--void);
    background-image:
        radial-gradient(circle, rgba(58, 60, 64, 0.5), transparent 60%),
        radial-gradient(circle, rgba(30, 32, 36, 0.7), transparent 55%),
        radial-gradient(circle, rgba(193, 122, 69, 0.07), transparent 62%);
    background-repeat: no-repeat;
    background-size: 1150px 1150px, 1000px 1000px, 900px 900px;
    background-position: 8% 40%, 92% 55%, 46% 96%;
}

/* ------------------------------------------------------------------
   Contact section + contact form
   ------------------------------------------------------------------ */
.contact-section {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    align-items: start;
    gap: 72px;
}

.contact-section__heading > p {
    margin-top: 22px;
    color: rgba(242, 241, 238, 0.74);
    font-size: 18px;
    line-height: 1.6;
}

.contact-section__details {
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-form {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.contact-form__title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--lunar-white);
}

.contact-form__note {
    margin-bottom: 28px;
    color: rgba(242, 241, 238, 0.64);
    font-size: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.form-field label {
    color: var(--dust);
    font-family: var(--font-utility);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.form-field label span {
    color: var(--steel-blue);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-light);
    border-radius: var(--radius-card);
    background: rgba(5, 5, 6, 0.55);
    color: var(--lunar-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(141, 144, 150, 0.8);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
    border-color: rgba(242, 241, 238, 0.4);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--steel-blue);
    background: rgba(5, 5, 6, 0.75);
    box-shadow: 0 0 0 3px rgba(193, 121, 63, 0.18), 0 0 24px rgba(193, 121, 63, 0.2);
    outline: none;
}

.form-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%23c1793f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-field select option {
    background: var(--graphite);
    color: var(--lunar-white);
}

.form-field input:user-invalid,
.form-field select:user-invalid,
.form-field textarea:user-invalid {
    border-color: #d9674a;
}

/* Honeypot — hidden from people, catches bots */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
}

.contact-form .button {
    cursor: pointer;
}

.contact-form .button[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.form-status {
    min-height: 1.4em;
    margin: 0;
    color: rgba(242, 241, 238, 0.74);
    font-family: var(--font-utility);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.form-status--success {
    color: var(--warm-light);
}

.form-status--error {
    color: #e48a70;
}

@media (max-width: 1060px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 780px) {
    .contact-form {
        padding: 28px 22px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------
   Contact form — stylised pass (instrument-panel look)
   ------------------------------------------------------------------ */
.contact-form {
    position: relative;
    counter-reset: field;
    padding: 44px 44px 40px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(193, 121, 63, 0.12), transparent 70%),
        rgba(10, 10, 12, 0.55);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

/* Glowing hairline across the top edge */
.contact-form::before {
    position: absolute;
    top: 0;
    right: 12%;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warm-light) 35%, var(--steel-blue) 65%, transparent);
    content: "";
    opacity: 0.8;
    pointer-events: none;
}

/* Corner tick marks, like a viewfinder */
.contact-form::after {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 22px;
    height: 22px;
    border-right: 1px solid var(--steel-blue);
    border-bottom: 1px solid var(--steel-blue);
    content: "";
    opacity: 0.7;
    pointer-events: none;
}

.contact-form__topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--steel-blue);
    font-family: var(--font-utility);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-form__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--steel-blue);
    box-shadow: 0 0 0 4px rgba(193, 121, 63, 0.18), 0 0 14px rgba(193, 121, 63, 0.9);
    animation: form-dot-pulse 2.2s ease-in-out infinite;
}

@keyframes form-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.contact-form__topline-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(193, 121, 63, 0.5), rgba(242, 241, 238, 0.08));
}

.contact-form__topline > span:last-child {
    color: var(--dust);
}

.contact-form__title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.02;
    text-transform: none;
}

.contact-form__note {
    margin-bottom: 34px;
    color: rgba(242, 241, 238, 0.66);
    font-size: 15px;
}

/* Numbered mono labels */
.form-field {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.form-field > label,
.form-field > legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--dust);
    font-family: var(--font-utility);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.form-field > label::before,
.form-field > legend::before {
    color: var(--safety-orange);
    content: "0" counter(field);
    counter-increment: field;
    font-weight: 500;
}

.form-field:focus-within > label,
.form-field:focus-within > legend {
    color: var(--warm-light);
}

.form-field > legend {
    margin-bottom: 14px;
    float: none;
}

/* Inputs: dark glass with an accent line that draws in on focus */
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    padding: 15px 16px 14px;
    border: 1px solid rgba(242, 241, 238, 0.14);
    border-bottom-color: rgba(242, 241, 238, 0.3);
    border-radius: 6px;
    background:
        linear-gradient(90deg, var(--warm-light), var(--steel-blue)) no-repeat left bottom / 0% 2px,
        rgba(255, 255, 255, 0.03);
    transition: border-color 200ms ease, background-size 420ms var(--ease-out), box-shadow 240ms ease, background-color 200ms ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
    border-color: rgba(193, 121, 63, 0.5);
    background:
        linear-gradient(90deg, var(--warm-light), var(--steel-blue)) no-repeat left bottom / 100% 2px,
        rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(193, 121, 63, 0.14);
}

.form-field textarea {
    min-height: 150px;
}

/* Reason: selectable chips */
.reason-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.reason-chips .chip {
    position: relative;
    display: inline-flex;
    margin: 0;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
}

.reason-chips .chip::before {
    content: none;
}

.reason-chips .chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.reason-chips .chip span {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border: 1px solid rgba(242, 241, 238, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(242, 241, 238, 0.78);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.reason-chips .chip:hover span {
    border-color: var(--steel-blue);
    color: var(--lunar-white);
    transform: translateY(-1px);
}

.reason-chips .chip input:checked + span {
    border-color: var(--steel-blue);
    background: rgba(193, 121, 63, 0.2);
    color: var(--warm-light);
    box-shadow: 0 0 22px rgba(193, 121, 63, 0.3);
}

.reason-chips .chip input:focus-visible + span {
    outline: 3px solid var(--steel-blue);
    outline-offset: 3px;
}

/* Submit */
.contact-form__actions {
    margin-top: 14px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.contact-form__submit {
    gap: 14px;
    min-height: 52px;
    padding: 14px 26px;
    font-size: 15px;
}

.contact-form__arrow {
    display: inline-block;
    transition: transform 220ms var(--ease-out);
}

.contact-form__submit:hover .contact-form__arrow {
    transform: translateX(5px);
}

@media (max-width: 780px) {
    .contact-form {
        padding: 30px 22px 28px;
    }

    .contact-form__title {
        font-size: 30px;
    }
}
