
:root {
    --ground: #0e1424;
    --surface: #171e32;
    --surface-2: #232c43;
    --line: #3e4861;
    --ink-soft: #aeb7ce;
    --ink: #e2e8f6;
    --accent: #35c4e6;
    --accent-ink: #111;

    --zice-04d: "Space Grotesk", "Space Grotesk Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --zice-af3: "Archivo", "Archivo Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --zice-8dc: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.78rem + 0.2vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1.0625rem);
    --text-md: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
    --text-lg: clamp(1.25rem, 1.15rem + 0.6vw, 1.5625rem);
    --text-xl: clamp(1.5rem, 1.35rem + 0.9vw, 2rem);
    --text-2xl: clamp(1.875rem, 1.6rem + 1.4vw, 2.625rem);
    --text-3xl: clamp(2.25rem, 1.85rem + 2vw, 3.5rem);
    --text-display: clamp(2.5rem, 2rem + 2.8vw, 4.25rem);

    --space-2xs: clamp(0.25rem, 0.2rem + 0.2vw, 0.375rem);
    --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.625rem);
    --space-sm: clamp(0.75rem, 0.65rem + 0.4vw, 1rem);
    --space-md: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
    --space-lg: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
    --space-xl: clamp(2.5rem, 2rem + 1.8vw, 3.75rem);
    --space-2xl: clamp(3.5rem, 2.75rem + 2.8vw, 5.5rem);
    --space-3xl: clamp(5rem, 3.75rem + 4.5vw, 8rem);

    --container-max: 1320px;
    --container-wide: 1440px;
    --container-narrow: 920px;
    --container-reading: 68ch;
    --gutter: clamp(1rem, 4vw, 2.5rem);

    --dock-height: 64px;
    --header-height: 72px;
    --radius-0: 0px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 140ms;
    --duration-base: 220ms;
    --duration-slow: 420ms;

    --focus-ring: 2px solid var(--accent);
    --focus-offset: 2px;
}

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

html {
    font-size: 16px;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background-color: var(--ground);
    color: var(--ink);
}

body {
    font-family: var(--zice-af3);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--ground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: var(--dock-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1025px) {
    body {
        padding-bottom: 0;
    }
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--zice-04d);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
    overflow-wrap: break-word;
    word-break: normal;
}

h1 {
    font-size: var(--text-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    max-width: 18ch;
}

h2 {
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.025em;
    max-width: 26ch;
}

h3 {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.2;
}

h4 {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.3;
}

h5 {
    font-size: var(--text-md);
    font-weight: 600;
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
}

p {
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--ink-soft);

    max-width: var(--container-reading);
}

p + p {
    margin-top: var(--space-sm);
}

.lede {
    font-size: var(--text-md);

    line-height: 1.55;
    color: var(--ink);
    max-width: 62ch;
}

strong, b {
    font-weight: 600;
    color: var(--ink);
}

em, i {
    font-style: italic;
}

small {
    font-size: var(--text-xs);
    line-height: 1.45;
    color: var(--ink-soft);
}

code, kbd, samp, pre {
    font-family: var(--zice-8dc);
    font-size: 0.9em;
}

code {
    background-color: var(--surface);
    border: 1px solid var(--line);
    padding: 0.125rem 0.375rem;
    color: var(--accent);
}

pre {
    background-color: var(--surface);
    border: 1px solid var(--line);
    padding: var(--space-md);
    overflow-x: auto;
    max-width: 100%;
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--ink);
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

a:focus-visible {
    outline: var(--focus-ring);
    outline-offset: var(--focus-offset);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

img {
    image-rendering: auto;
    object-fit: cover;
}

figure {
    margin: 0;
}

ul, ol {
    padding-left: 1.4rem;
    color: var(--ink-soft);
}

li + li {
    margin-top: 0.35rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

th, td {
    text-align: left;
    vertical-align: top;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    z-index: 10000;
    background-color: var(--accent);
    color: var(--accent-ink);
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    font-size: var(--text-sm);
    border: 1px solid var(--ink);
}

.skip-link:focus {
    top: 1rem;
    outline: var(--focus-ring);
}

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

.site-wrap {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.site-wrap-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;

    padding-inline: var(--gutter);
}

.site-wrap-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.split-held-section {
    position: relative;
    border-top: 1px solid var(--line);
    padding-block: var(--space-3xl);
}

.split-held-section:nth-of-type(even) {
    padding-block: var(--space-xl);
    background-color: rgba(23, 30, 50, 0.35);
}

.split-held-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 900px) {
    .split-held-grid {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: var(--space-2xl);
        align-items: start;
    }

    .split-held-side {
        position: sticky;
        top: calc(var(--header-height) + 1.5rem);
    }
}

.split-held-side h2 {
    margin-bottom: var(--space-sm);
}

.split-held-side p {
    color: var(--ink-soft);
    font-size: var(--text-base);
    line-height: 1.6;
}

.split-held-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.split-held-content figure {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.split-held-content figure picture {
    display: block;
    height: auto;
}

.split-held-content figure img {
    display: block;
    width: 100%;
    height: auto;
}

.split-held-content figcaption {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.technical-coord {
    font-family: var(--zice-8dc);
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.technical-coord::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
}

.mono-metric {
    font-family: var(--zice-8dc);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.duotone-caesura {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 280px;
    overflow: hidden;
    border-block: 1px solid var(--line);
    display: flex;
    align-items: center;
    background-color: var(--surface);
    clear: both;
}

@media (max-width: 767px) {
    .duotone-caesura {
        aspect-ratio: auto;
        min-height: auto;
        padding-block: var(--space-xl);
    }
}

.duotone-caesura img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    mix-blend-mode: luminosity;
    opacity: 0.45;
}

.duotone-caesura::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 20, 36, 0.85) 0%, rgba(23, 30, 50, 0.7) 100%);
    pointer-events: none;
}

.duotone-inner {
    position: relative;
    z-index: 2;
    padding-block: var(--space-xl);
}

.duotone-inner h2 {
    color: var(--ink);
    margin-bottom: var(--space-sm);
}

.duotone-inner p {
    color: var(--ink-soft);
    max-width: 60ch;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
