:root {
    --background: #000;
    --panel: #070707;
    --panel-hover: #0d0d0d;
    --foreground: #ededed;
    --foreground-soft: #9a9a9a;
    --foreground-muted: #5a5a5a;
    --foreground-faint: #3a3a3a;
    --border: #1c1c1c;
    --border-hover: #333;
    --accent: #00e08a;
    --accent-dim: rgba(0, 224, 138, 0.14);
    --content-width: 1160px;
    --gutter: 1.75rem;
    --font-display: "Space Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

html {
    background: var(--background);
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--foreground);
    background: var(--background);
    font-family: var(--font-mono);
    font-size: 14px;
    font-feature-settings: "liga" 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* grid + glow backdrop */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 20%, transparent 80%);
}

/* scanlines */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.35;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018) 0 1px,
        transparent 1px 3px
    );
}

::selection {
    color: #000;
    background: var(--accent);
}

a {
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

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

svg {
    display: block;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 2000;
    padding: 0.6rem 1rem;
    border: 1px solid var(--accent);
    background: #000;
    color: var(--accent);
    font-size: 0.75rem;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
}

/* ---------- layout rails ---------- */

.nav-inner,
.statusbar-inner,
.hero-content,
.section,
.footer-inner,
.footer-bottom {
    width: min(calc(100% - 2 * var(--gutter)), var(--content-width));
    margin-inline: auto;
}

/* vertical rails flanking the content column */
.rails {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.rails::before,
.rails::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--border) 12%,
        var(--border) 88%,
        transparent
    );
}

.rails::before {
    left: max(var(--gutter), calc(50% - var(--content-width) / 2));
}

.rails::after {
    right: max(var(--gutter), calc(50% - var(--content-width) / 2));
}

/* ---------- nav ---------- */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    background: rgba(0, 0, 0, 0.9);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.brand-mark {
    color: var(--accent);
    font-size: 0.95rem;
    line-height: 1;
}

.brand-text {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.terminal-caret {
    display: inline-block;
    background: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 34px;
    padding: 0 0.85rem;
    color: var(--foreground-muted);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-index {
    color: var(--foreground-faint);
    font-size: 0.62rem;
    transition: color 0.15s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
    color: #fff;
    background: #111;
}

.nav-link:hover .nav-index,
.nav-link:focus-visible .nav-index {
    color: var(--accent);
}

.nav-link-cta {
    margin-left: 0.5rem;
    border: 1px solid var(--border);
    color: var(--foreground);
}

.nav-link-cta:hover,
.nav-link-cta:focus-visible {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: #fff;
}

.nav-arrow,
.btn-arrow {
    display: inline-block;
    transition: transform 0.15s var(--ease);
}

.nav-link-cta:hover .nav-arrow,
.cta-button:hover .btn-arrow,
.project-button:hover .btn-arrow {
    transform: translate(2px, -2px);
}

.cta-button.secondary:hover .btn-arrow {
    transform: translateY(2px);
}

/* ---------- status bar ---------- */

.statusbar {
    border-bottom: 1px solid var(--border);
    background: #030303;
}

.statusbar-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 30px;
    overflow: hidden;
    color: var(--foreground-faint);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.status-clock {
    margin-left: auto;
    color: var(--foreground-muted);
}

.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 224, 138, 0.5);
    animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 224, 138, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(0, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 224, 138, 0); }
}

/* ---------- hero ---------- */

.hero-section {
    position: relative;
    padding: 7rem 0 6rem;
}

.hero-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--border);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 5rem;
    align-items: center;
}

.title-main {
    display: inline-block;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(3.6rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-transform: none;
}

.hero-subtitle {
    position: relative;
    max-width: 40rem;
    margin-top: 1.75rem;
    color: var(--foreground-soft);
    font-size: 0.9rem;
    line-height: 1.85;
}

.prompt {
    margin-right: 0.35rem;
    color: var(--accent);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.25rem;
}

.cta-button,
.project-button,
.member-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    text-decoration: none;
    transition:
        color 0.15s var(--ease),
        background 0.15s var(--ease),
        border-color 0.15s var(--ease),
        box-shadow 0.15s var(--ease);
}

.cta-button {
    min-height: 44px;
    padding: 0 1.15rem;
    border: 1px solid transparent;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.cta-button.primary {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.cta-button.primary:hover,
.cta-button.primary:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 24px rgba(0, 224, 138, 0.25);
}

.cta-button.secondary {
    border-color: var(--border-hover);
    background: transparent;
    color: var(--foreground);
}

.cta-button.secondary:hover,
.cta-button.secondary:focus-visible {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: #fff;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
}

.stat {
    flex: 1 1 0;
    min-width: 110px;
    padding: 1rem 1rem 0 0;
}

.stat + .stat {
    padding-left: 1.25rem;
    border-left: 1px solid var(--border);
}

.stat dt {
    color: var(--foreground-faint);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.stat dd {
    margin-top: 0.3rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

/* ---------- terminal card ---------- */

.hero-visual {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.terminal {
    position: relative;
    width: min(100%, 480px);
    border: 1px solid var(--border);
    background: #050505;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* corner ticks */
.terminal::before,
.terminal::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border: 1px solid var(--accent);
    opacity: 0.7;
}

.terminal::before {
    top: -1px;
    left: -1px;
    border-right: 0;
    border-bottom: 0;
}

.terminal::after {
    right: -1px;
    bottom: -1px;
    border-top: 0;
    border-left: 0;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 38px;
    padding: 0 0.9rem;
    border-bottom: 1px solid var(--border);
    background: #0a0a0a;
    color: var(--foreground-muted);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
}

.terminal-path {
    color: var(--accent);
}

.terminal-tag {
    color: var(--foreground-faint);
}

.terminal-body {
    overflow-x: auto;
    padding: 1.25rem 1.25rem 1.25rem 0.75rem;
}

.code-body {
    counter-reset: ln;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    line-height: 2;
    tab-size: 2;
}

.ln::before {
    display: inline-block;
    width: 2.4em;
    padding-right: 1em;
    color: #2a2a2a;
    content: counter(ln);
    counter-increment: ln;
    text-align: right;
}

.code-comment { color: #4a4a4a; }
.code-keyword { color: var(--accent); }
.code-variable { color: #e5e5e5; }
.code-string { color: #8a8a8a; }
.code-op { color: #555; }
.code-fn { color: #cfcfcf; }

.terminal-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 1rem;
    border-top: 1px solid var(--border);
    background: #080808;
    font-size: 0.74rem;
}

.terminal-prompt {
    color: var(--accent);
}

.terminal-typed {
    color: var(--foreground-soft);
    white-space: pre;
}

.terminal-caret {
    width: 7px;
    height: 14px;
}

/* ---------- marquee ---------- */

.marquee {
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: #030303;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.7rem 0;
    color: var(--foreground-faint);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    animation: scroll-x 32s linear infinite;
}

.marquee-sep {
    color: var(--accent);
    opacity: 0.55;
}

@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
    padding: 6.5rem 0;
}

.section + .section {
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 3rem;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    color: var(--foreground-muted);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-kicker::after {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--border) 0 4px,
        transparent 4px 8px
    );
    content: "";
}

.kicker-num {
    color: var(--accent);
}

.section-title {
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.section-subtitle {
    max-width: 42rem;
    margin-top: 0.9rem;
    color: var(--foreground-muted);
    font-size: 0.82rem;
}

/* ---------- projects ---------- */

.projects-grid,
.team-grid {
    display: grid;
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 280px;
    padding: 1.6rem;
    background: var(--panel);
    transition: background 0.2s var(--ease);
}

.project-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.project-card:hover,
.project-card:focus-within {
    background: var(--panel-hover);
}

.project-card:hover::after,
.project-card:focus-within::after {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    color: var(--foreground);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.project-icon svg {
    width: 18px;
    height: 18px;
}

.project-card:hover .project-icon {
    border-color: var(--accent);
    color: var(--accent);
}

.project-icon-ghost {
    border-style: dashed;
    color: var(--foreground-faint);
}

.project-status {
    color: var(--foreground-faint);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.project-title {
    margin-top: 0.4rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.project-description {
    color: var(--foreground-muted);
    font-size: 0.8rem;
    line-height: 1.75;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
}

.project-tags li {
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--border);
    color: var(--foreground-faint);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
}

.project-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.project-button {
    min-height: 36px;
    padding: 0 0.8rem;
    border: 1px solid var(--border-hover);
    color: var(--foreground);
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}

.project-button:hover,
.project-button:focus-visible {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: #fff;
}

.project-card-empty .project-title,
.project-card-empty .project-description {
    color: var(--foreground-muted);
}

/* ---------- about ---------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
}

.about-card {
    padding: 2.25rem;
    background: var(--panel);
}

.about-text {
    color: var(--foreground-soft);
    font-size: 1rem;
    line-height: 1.9;
}

.about-facts {
    display: flex;
    flex-direction: column;
    background: var(--panel);
}

.fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.5rem;
    font-size: 0.76rem;
}

.fact + .fact {
    border-top: 1px solid var(--border);
}

.fact-key {
    color: var(--foreground-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fact-val {
    color: var(--foreground);
}

.fact-val a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.fact-val a:hover {
    border-bottom-color: var(--accent);
}

/* ---------- team ---------- */

.team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-member {
    min-width: 0;
    background: var(--panel);
}

.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--panel);
    transition: background 0.2s var(--ease);
}

.member-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.member-card:hover,
.member-card:focus-within {
    background: var(--panel-hover);
}

.member-card:hover::after,
.member-card:focus-within::after {
    opacity: 1;
}

.member-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.member-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #101010;
    filter: grayscale(1);
    transition: filter 0.25s var(--ease), border-color 0.2s var(--ease);
}

.member-card:hover .member-avatar {
    border-color: var(--border-hover);
    filter: grayscale(0);
}

.avatar-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.1rem;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    min-width: 0;
}

.member-name {
    overflow: hidden;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-role {
    display: block;
    overflow: hidden;
    color: var(--foreground-muted);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-index {
    color: var(--foreground-faint);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
}

.member-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
}

.member-skills li {
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--border);
    color: var(--foreground-muted);
    font-size: 0.66rem;
}

.member-description p {
    color: var(--foreground-muted);
    font-size: 0.8rem;
    line-height: 1.75;
}

.member-description p::before {
    margin-right: 0.4rem;
    color: var(--accent);
    content: "//";
    opacity: 0.6;
}

.special-message {
    margin-top: auto;
}

.special-message .message-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    background: #0b0b0b;
}

.message-icon {
    color: var(--accent);
    font-size: 0.8rem;
}

.message-text {
    color: var(--foreground-soft);
    font-size: 0.76rem;
}

.member-footer {
    padding: 0 1.5rem 1.5rem;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.member-link {
    min-height: 34px;
    padding: 0 0.7rem;
    border: 1px solid var(--border);
    color: var(--foreground-muted);
    font-size: 0.74rem;
}

.member-link:hover,
.member-link:focus-visible {
    border-color: var(--accent);
    background: var(--accent-dim);
    color: #fff;
}

/* link icons: bare glyph, no plate/background */
.link-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: none;
    border: 0;
    color: currentColor;
    fill: currentColor;
}

.member-link:hover .link-icon {
    color: var(--accent);
}

/* ---------- footer ---------- */

.footer {
    border-top: 1px solid var(--border);
    background: #020202;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 4rem 0;
}

.footer-heading {
    max-width: 26rem;
    margin-bottom: 1.4rem;
    color: #fff;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.footer-meta {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.55rem 1.5rem;
    align-items: center;
    font-size: 0.72rem;
}

.footer-key {
    color: var(--foreground-faint);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-val {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--foreground-soft);
}

.footer-val a {
    color: var(--foreground-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--border-hover);
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.footer-val a:hover {
    border-bottom-color: var(--accent);
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    color: var(--foreground-faint);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- focus ---------- */

a:focus-visible,
.cta-button:focus-visible,
.member-link:focus-visible,
.project-button:focus-visible,
.nav-link:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .terminal {
        width: min(100%, 560px);
    }

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

@media (max-width: 768px) {
    :root {
        --gutter: 1.15rem;
    }

    .rails {
        display: none;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding: 0 0.55rem;
        font-size: 0.72rem;
    }

    .nav-index {
        display: none;
    }

    .statusbar-inner .status-item:nth-child(2),
    .statusbar-inner .status-item:nth-child(3) {
        display: none;
    }

    .hero-section {
        padding: 4.5rem 0 4rem;
    }

    .section {
        padding: 4.5rem 0;
    }

    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
    }
}

@media (max-width: 560px) {
    .title-main {
        font-size: clamp(3rem, 18vw, 4.5rem);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }

    .hero-stats {
        gap: 0;
    }

    .stat {
        flex: 1 1 33%;
        min-width: 0;
        padding-right: 0.5rem;
    }

    .stat + .stat {
        padding-left: 0.75rem;
    }

    .stat dd {
        font-size: 1.15rem;
    }

    .about-card,
    .project-card {
        padding: 1.25rem;
    }

    .member-header,
    .member-body {
        padding: 1.15rem;
    }

    .member-footer {
        padding: 0 1.15rem 1.15rem;
    }

    .member-name,
    .member-role {
        white-space: normal;
    }

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

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

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

    .marquee-track {
        animation: none;
    }
}

@media (prefers-contrast: more) {
    :root {
        --border: #383838;
        --border-hover: #5a5a5a;
        --foreground-soft: #d0d0d0;
        --foreground-muted: #a0a0a0;
        --foreground-faint: #808080;
    }

    body::after {
        display: none;
    }
}
