:root {
    color-scheme: dark;
    --bg: #111413;
    --surface: #1b211f;
    --surface-raised: #222926;
    --surface-strong: #0c0f0e;
    --ink: #eef1e8;
    --muted: #a8b2ac;
    --muted-strong: #d6dacd;
    --line: rgba(214, 218, 205, 0.14);
    --blue: #8fa3d8;
    --cyan: #65b8ae;
    --green: #a0ad63;
    --coral: #d1836e;
    --yellow: #c8a96b;
    --shadow: 0 26px 76px rgba(0, 0, 0, 0.34);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: min(1120px, calc(100% - 40px));
    --title-font: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(101, 184, 174, 0.14), transparent 30rem),
        radial-gradient(circle at 88% 10%, rgba(209, 131, 110, 0.12), transparent 26rem),
        radial-gradient(circle at 55% 55%, rgba(200, 169, 107, 0.06), transparent 32rem),
        linear-gradient(180deg, #111413 0%, #141816 52%, #101211 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(214, 218, 205, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 218, 205, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 72%);
    animation: grid-drift 18s linear infinite;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 38%, rgba(101, 184, 174, 0.075) 45%, transparent 52% 100%),
        linear-gradient(245deg, transparent 0 42%, rgba(209, 131, 110, 0.065) 50%, transparent 58% 100%);
    background-size: 180% 180%;
    animation: light-sweep 14s ease-in-out infinite alternate;
}

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

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

a {
    color: inherit;
}

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

:focus-visible {
    outline: 3px solid rgba(101, 184, 174, 0.46);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    transform: translateY(-140%);
    border-radius: 999px;
    background: var(--surface-strong);
    color: #fff;
    padding: 10px 14px;
    text-decoration: none;
    transition: transform 180ms ease;
}

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

.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-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    background: rgba(17, 20, 19, 0.86);
}

.nav-shell {
    width: var(--container);
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-links a,
.button,
.site-footer a {
    text-decoration: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #0c0f0e, #252d29);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: inset 0 -3px 0 var(--coral);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.brand:hover .brand-mark {
    transform: rotate(-6deg) translateY(-1px);
    box-shadow: inset 0 -3px 0 var(--coral), 0 14px 28px rgba(101, 184, 174, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(27, 33, 31, 0.74);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2);
}

.nav-links a {
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--muted-strong);
    font-size: 0.93rem;
    font-weight: 700;
    transition: color 180ms ease, background 180ms ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 999px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: rgba(101, 184, 174, 0.14);
    color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-raised);
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}

.section {
    width: var(--container);
    margin: 0 auto;
    padding: 96px 0;
}

.hero {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding-top: 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.72fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
    color: var(--ink);
    font-family: var(--title-font);
    line-height: 1.02;
    letter-spacing: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 24px;
    font-size: clamp(3.55rem, 8.6vw, 7.3rem);
    font-weight: 800;
}

h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(100deg, var(--blue), var(--cyan), var(--green), var(--coral));
    background-size: 240% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    animation: text-shine 7s ease-in-out infinite;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(2.15rem, 4.2vw, 4.25rem);
    font-weight: 800;
}

h3 {
    font-weight: 700;
    font-size: 1.35rem;
}

.hero-lede,
.section-heading p,
.about-copy p,
.contact-card p {
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-lede {
    max-width: 720px;
    margin-bottom: 30px;
}

.hero-actions,
.social-row,
.contact-actions,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.22), transparent 68% 100%);
    transform: translateX(-115%);
    transition: transform 480ms ease;
}

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

.button:hover::before {
    transform: translateX(115%);
}

.button-primary {
    background: linear-gradient(135deg, var(--yellow), var(--coral));
    color: #101211;
    box-shadow: 0 14px 34px rgba(209, 131, 110, 0.16);
}

.button-primary:hover {
    box-shadow: 0 18px 44px rgba(209, 131, 110, 0.22);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(34, 41, 38, 0.72);
    color: var(--ink);
}

.button-secondary:hover {
    background: rgba(45, 55, 51, 0.88);
}

.social-row {
    margin-top: 24px;
}

.social-row a {
    position: relative;
    color: var(--muted-strong);
    font-weight: 800;
    text-decoration-color: rgba(101, 184, 174, 0.42);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.social-row a:hover {
    color: var(--blue);
}

.hero-visual {
    position: relative;
    min-height: 580px;
    perspective: 1100px;
}

.code-stream {
    position: absolute;
    top: 18px;
    left: -42px;
    z-index: 3;
    display: grid;
    gap: 8px;
    width: min(240px, 58%);
    pointer-events: none;
}

.code-stream span {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(34, 41, 38, 0.74);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
    color: var(--muted-strong);
    padding: 7px 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
    animation: code-float 5.8s ease-in-out infinite;
}

.code-stream span:nth-child(2) {
    margin-left: 36px;
    animation-delay: -1.1s;
}

.code-stream span:nth-child(3) {
    margin-left: 14px;
    animation-delay: -2.4s;
}

.code-stream span:nth-child(4) {
    margin-left: 60px;
    animation-delay: -3.6s;
}

.portrait-card {
    position: relative;
    overflow: hidden;
    height: min(68vh, 640px);
    min-height: 460px;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--shadow);
    transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 260ms ease, box-shadow 260ms ease;
}

.portrait-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    z-index: 1;
    border: 1px solid rgba(238, 241, 232, 0.28);
    border-radius: 22px;
    pointer-events: none;
}

.portrait-card::after {
    content: "";
    position: absolute;
    inset: -42%;
    background: linear-gradient(115deg, transparent 38%, rgba(238, 241, 232, 0.2) 48%, transparent 58%);
    transform: translateX(-42%) rotate(8deg);
    animation: portrait-sheen 7s ease-in-out infinite;
    pointer-events: none;
}

.portrait-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    filter: saturate(1.03) contrast(1.02);
}

.signal-panel {
    position: absolute;
    right: -18px;
    bottom: 34px;
    width: min(320px, 78%);
    border: 1px solid rgba(238, 241, 232, 0.16);
    border-radius: 20px;
    background: rgba(12, 15, 14, 0.88);
    color: #fff;
    padding: 22px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(16px);
    animation: panel-rise 5.8s ease-in-out infinite;
}

.panel-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--yellow);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signal-panel strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.signal-panel p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
}

.compact {
    padding-top: 0;
}

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

.metrics article {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(34, 41, 38, 0.86), rgba(27, 33, 31, 0.78));
    padding: 24px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.metrics article::after {
    content: "";
    position: absolute;
    inset: auto 18px 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--coral), var(--yellow), var(--cyan));
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 260ms ease;
}

.metrics article:hover {
    border-color: rgba(101, 184, 174, 0.26);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
    transform: translateY(-5px);
}

.metrics article:hover::after {
    transform: scaleX(1);
}

.metrics span {
    display: block;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1;
}

.metrics p {
    margin: 12px 0 0;
    color: var(--muted);
    font-weight: 700;
}

.section-heading {
    max-width: 790px;
    margin-bottom: 42px;
}

.section-heading p {
    margin-bottom: 0;
}

.spectrum {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.spectrum-line {
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--blue));
    background-size: 180% 100%;
    animation: spectrum-flow 5.5s linear infinite;
}

.spectrum article {
    position: relative;
    min-height: 255px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(34, 41, 38, 0.88), rgba(27, 33, 31, 0.8));
    padding: 74px 22px 24px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.spectrum article:hover {
    border-color: rgba(101, 184, 174, 0.26);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
    transform: translateY(-7px);
}

.spectrum article span {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    color: #101211;
    font-size: 0.78rem;
    font-weight: 900;
}

.spectrum h3,
.project-card h3,
.foundation-block h3 {
    margin-bottom: 12px;
}

.spectrum p,
.project-card p,
.foundation-grid p {
    margin-bottom: 0;
    color: var(--muted);
}

.tool-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tool-grid span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(34, 41, 38, 0.72);
    padding: 9px 13px;
    color: var(--muted-strong);
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-grid span:hover {
    border-color: rgba(101, 184, 174, 0.26);
    background: rgba(45, 55, 51, 0.9);
    color: var(--cyan);
    transform: translateY(-3px);
}

.dark-band {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(101, 184, 174, 0.12), transparent 42%),
        linear-gradient(315deg, rgba(209, 131, 110, 0.12), transparent 36%),
        linear-gradient(180deg, #151917, #101211),
        var(--surface-strong);
    color: #fff;
    padding-left: max(20px, calc((100vw - 1120px) / 2));
    padding-right: max(20px, calc((100vw - 1120px) / 2));
}

.dark-band::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    animation: grid-drift 16s linear infinite reverse;
}

.dark-band > * {
    position: relative;
    z-index: 1;
}

.section-heading.invert h2,
.section-heading.invert p,
.dark-band .eyebrow {
    color: #fff;
}

.section-heading.invert p {
    color: rgba(255, 255, 255, 0.74);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.065);
    padding: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.project-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.18), transparent 42%);
    transition: opacity 220ms ease;
    pointer-events: none;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.18);
    transform: translateY(-8px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}

.project-card:hover::before {
    opacity: 1;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card.feature {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(101, 184, 174, 0.18), rgba(209, 131, 110, 0.08));
}

.project-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 34px;
}

.project-type,
.project-index {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card h3 {
    color: #fff;
}

.project-card p {
    color: rgba(255, 255, 255, 0.72);
}

.tag-row {
    margin-top: auto;
    padding-top: 22px;
}

.tag-row span {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.82);
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 850;
}

.foundation-block {
    display: grid;
    grid-template-columns: 0.45fr 1fr;
    gap: 24px;
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    padding: 24px;
}

.foundation-block h3,
.foundation-block h4 {
    color: #fff;
}

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

.foundation-grid article {
    border-left: 3px solid var(--yellow);
    padding-left: 14px;
}

.foundation-grid h4 {
    margin-bottom: 8px;
}

.foundation-grid p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
}

.split {
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 56px;
    align-items: start;
}

.about-copy {
    display: grid;
    gap: 18px;
}

.about-copy p {
    margin-bottom: 0;
}

.contact-section {
    padding-top: 16px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 0.45fr;
    gap: 32px;
    align-items: center;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(34, 41, 38, 0.94), rgba(24, 29, 27, 0.94));
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow);
}

.contact-card h2 {
    max-width: 760px;
}

.contact-actions {
    justify-content: flex-end;
}

.contact-actions .button {
    width: 100%;
}

.site-footer {
    width: var(--container);
    margin: 0 auto;
    padding: 34px 0 48px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 0.94rem;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--ink);
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

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

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

    body::before,
    body::after,
    .code-stream span,
    .portrait-card::after,
    .signal-panel,
    .spectrum-line,
    h1 span {
        animation: none !important;
    }
}

@media (max-width: 980px) {
    :root {
        --container: min(100% - 32px, 760px);
    }

    .hero {
        min-height: auto;
        padding-top: 42px;
    }

    .hero-grid,
    .split,
    .contact-card,
    .foundation-block {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

    .code-stream {
        left: 16px;
    }

    .portrait-card {
        height: 620px;
        min-height: 0;
    }

    .signal-panel {
        right: 18px;
    }

    .metrics,
    .spectrum,
    .project-grid,
    .foundation-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card.feature {
        grid-column: span 1;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        min-height: 66px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        left: 16px;
        right: 16px;
        display: none;
        align-items: stretch;
        flex-direction: column;
        border-radius: 18px;
        padding: 8px;
        background: rgba(27, 33, 31, 0.96);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
    }

    .section {
        padding: 72px 0;
    }

    .compact,
    .contact-section {
        padding-top: 0;
    }

    .hero-grid {
        gap: 36px;
    }

    .hero-actions .button,
    .contact-actions .button {
        width: 100%;
    }

    .portrait-card {
        height: 520px;
    }

    .code-stream {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin-bottom: 14px;
        grid-template-columns: 1fr 1fr;
    }

    .code-stream span,
    .code-stream span:nth-child(2),
    .code-stream span:nth-child(3),
    .code-stream span:nth-child(4) {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .signal-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin: -80px 18px 0;
    }

    .metrics,
    .spectrum,
    .project-grid,
    .foundation-grid {
        grid-template-columns: 1fr;
    }

    .spectrum-line {
        top: 36px;
        left: 38px;
        right: auto;
        bottom: 36px;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, var(--coral), var(--yellow), var(--green), var(--cyan), var(--blue));
    }

    .spectrum article {
        min-height: 0;
        padding: 26px 22px 24px 78px;
    }

    .spectrum article span {
        top: 24px;
    }

    .site-footer {
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    :root {
        --container: min(100% - 24px, 100%);
    }

    h1 {
        font-size: 3.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .brand span:last-child {
        display: none;
    }

    .portrait-card {
        height: 430px;
    }

    .metrics article,
    .project-card,
    .foundation-block,
    .contact-card {
        padding: 20px;
    }
}

@keyframes grid-drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 56px 56px;
    }
}

@keyframes light-sweep {
    from {
        background-position: 0% 40%;
        opacity: 0.72;
    }

    to {
        background-position: 100% 56%;
        opacity: 1;
    }
}

@keyframes text-shine {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes code-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, -10px, 0);
    }
}

@keyframes portrait-sheen {
    0%,
    42% {
        transform: translateX(-62%) rotate(8deg);
        opacity: 0;
    }

    55% {
        opacity: 1;
    }

    76%,
    100% {
        transform: translateX(62%) rotate(8deg);
        opacity: 0;
    }
}

@keyframes panel-rise {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes spectrum-flow {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 180% 50%;
    }
}
