/* ============================================================
   Elliris Solutions — engineering studio UI
   Typography: IBM Plex Sans + JetBrains Mono
   Dark-first, sharp edges, acid-lime accent.
   ============================================================ */

:root {
    --bg:            #0a0a0a;
    --bg-raised:    #101010;
    --bg-surface:    #141414;
    --bg-deep:       #070707;
    --text:          #ededed;
    --text-soft:     #b5b5b5;
    --text-muted:    #7a7a7a;
    --text-dim:      #4a4a4a;
    --border:        #1e1e1e;
    --border-strong: #2a2a2a;
    --accent:        #5ea2ff;
    --accent-deep:   #3d85f0;
    --accent-glow:   rgba(94, 162, 255, 0.22);
    --on-accent:     #0a0a0a;
    --grid-line:     rgba(255, 255, 255, 0.035);
    --grid-dot:      rgba(255, 255, 255, 0.06);

    /* syntax */
    --syn-key:     #c9a0ff;
    --syn-str:     #a5d6a7;
    --syn-prop:    #7ad7ff;
    --syn-var:     #ededed;
    --syn-comment: #5c5c5c;
    --syn-num:     #3a3a3a;
}

[data-theme="light"] {
    --bg:            #fbfbfa;
    --bg-raised:    #ffffff;
    --bg-surface:    #f4f4f2;
    --bg-deep:       #f7f7f5;
    --text:          #0a0a0a;
    --text-soft:     #2a2a2a;
    --text-muted:    #6b6b6b;
    --text-dim:      #a3a3a3;
    --border:        #e7e7e3;
    --border-strong: #d1d1cc;
    --accent:        #1d4ed8;
    --accent-deep:   #1e3a8a;
    --accent-glow:   rgba(29, 78, 216, 0.14);
    --on-accent:     #ffffff;
    --grid-line:     rgba(0, 0, 0, 0.04);
    --grid-dot:      rgba(0, 0, 0, 0.08);

    --syn-key:     #7c3aed;
    --syn-str:     #15803d;
    --syn-prop:    #0369a1;
    --syn-var:     #0a0a0a;
    --syn-comment: #9ca3af;
    --syn-num:     #c4c4c4;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-feature-settings: "ss01", "cv02";
    line-height: 1.55;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

.mono, code, pre { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.mono-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================================
   BACKDROP — subtle dot grid
   ============================================================ */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
    opacity: 0.9;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px clamp(20px, 4vw, 40px);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(18px, 3vw, 40px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
}
.brand-mark {
    display: inline-flex;
    color: var(--accent);
}
.brand-dim { color: var(--text-muted); font-weight: 400; }

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 32px);
}
.nav-links a {
    position: relative;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 400;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.nav-links a:hover::before { opacity: 1; }

.nav-utils {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--bg-raised);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
}
.status-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%      { box-shadow: 0 0 0 6px transparent; }
}

.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    background: var(--bg-raised);
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    padding: 7px 10px;
    letter-spacing: 0.06em;
    transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: var(--accent); background: var(--accent-glow); }

.theme-toggle {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text-soft);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-strong); }
.theme-toggle svg { transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); }
[data-theme="light"] .theme-toggle svg { transform: rotate(180deg); }

@media (max-width: 980px) {
    .status-pill { display: none; }
}
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-inner { grid-template-columns: auto 1fr; gap: 12px; }
    .nav-utils { margin-left: auto; }
}

/* ============================================================
   SECTION MECHANICS
   ============================================================ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.eyebrow-tick { color: var(--accent); }

.section-head {
    max-width: 720px;
    margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head-inline {
    max-width: none;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.section-title {
    font-size: clamp(30px, 4.5vw, 52px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -0.022em;
    color: var(--text);
    margin-bottom: 18px;
    text-wrap: balance;
}
.section-lede {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 60ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: clamp(60px, 10vw, 110px) 0 clamp(60px, 8vw, 100px);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-title {
    font-size: clamp(40px, 6.5vw, 84px);
    line-height: 1.02;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
    color: var(--text);
    text-wrap: balance;
}
.hero-title .accent {
    color: var(--accent);
    font-weight: 400;
    font-style: normal;
    display: inline-block;
    position: relative;
}
.hero-title .accent::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    animation: hero-underline 1.2s cubic-bezier(0.77, 0, 0.175, 1) 0.6s forwards;
    opacity: 0.28;
}
@keyframes hero-underline { to { transform: scaleX(1); } }

.hero-sub {
    font-size: clamp(15px, 1.2vw, 17px);
    line-height: 1.65;
    color: var(--text-soft);
    max-width: 52ch;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.005em;
    border-radius: 2px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--on-accent);
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px -8px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.btn-arrow {
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

.hero-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    max-width: 520px;
}
.hero-facts dt { margin-bottom: 4px; }
.hero-facts dd {
    font-size: 14px;
    color: var(--text);
    font-weight: 400;
}
@media (max-width: 480px) {
    .hero-facts { grid-template-columns: repeat(2, 1fr); }
    .hero-facts > div:last-child { display: none; }
}

/* Hero code window */
.hero-visual {
    position: relative;
}
.code-window {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    box-shadow:
        0 1px 0 0 rgba(255,255,255,0.03) inset,
        0 30px 60px -20px rgba(0,0,0,0.6),
        0 0 0 1px var(--border);
    position: relative;
}
[data-theme="light"] .code-window {
    box-shadow:
        0 1px 0 0 rgba(255,255,255,1) inset,
        0 20px 40px -20px rgba(0,0,0,0.15),
        0 0 0 1px var(--border);
}
.code-window::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.4;
}

.code-chrome {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-deep);
}
.code-dots {
    display: inline-flex;
    gap: 6px;
}
.code-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}
.code-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-size: 11.5px;
    color: var(--text-soft);
}
.code-meta {
    margin-left: auto;
    font-size: 10.5px;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    display: inline-flex;
    gap: 8px;
}
.code-meta .sep { opacity: 0.5; }

.code-body {
    margin: 0;
    padding: 18px 18px 22px 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 12.5px;
    line-height: 1.8;
    background: var(--bg-raised);
    color: var(--text);
    overflow-x: auto;
    tab-size: 2;
    position: relative;
}
.code-body::after {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 20px;
    left: 50px;
    width: 1px;
    background: var(--border);
}
.c-num {
    display: inline-block;
    width: 30px;
    padding-right: 10px;
    text-align: right;
    color: var(--syn-num);
    user-select: none;
    margin-right: 14px;
}
.c-comment { color: var(--syn-comment); font-style: italic; }
.c-key     { color: var(--syn-key); }
.c-var     { color: var(--syn-var); }
.c-prop    { color: var(--syn-prop); }
.c-str     { color: var(--syn-str); }
.c-cursor  {
    display: inline-block;
    color: var(--accent);
    margin-left: 2px;
    animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 980px) {
    .code-body { font-size: 11.5px; }
}

/* ============================================================
   MODULES (SERVICES)
   ============================================================ */
.services {
    padding: clamp(60px, 10vw, 110px) 0;
    border-top: 1px solid var(--border);
}

.modules {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}
@media (max-width: 900px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modules { grid-template-columns: 1fr; } }

.module {
    background: var(--bg-raised);
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    transition: background-color 0.3s ease;
}
.module::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.module:hover {
    background: var(--bg-surface);
}
.module:hover::before { transform: scaleX(1); }

.module header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.module h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--text);
    transition: color 0.2s ease;
}
.module:hover h3 { color: var(--accent); }
.module p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
    flex: 1;
}

.mono-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed var(--border-strong);
}
.mono-list span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--text-muted);
    padding: 3px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    letter-spacing: 0.02em;
}

/* ============================================================
   STACK
   ============================================================ */
.stack {
    padding: clamp(60px, 10vw, 110px) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    position: relative;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.stack-tile {
    background: var(--bg-raised);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: background-color 0.25s ease, color 0.25s ease;
    cursor: default;
}
.stack-tile:hover {
    background: var(--bg-surface);
    color: var(--accent);
}
.stack-tile .mono-label {
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}
.stack-tile:hover .mono-label { color: var(--text-muted); }

/* ============================================================
   STUDIO
   ============================================================ */
.studio {
    padding: clamp(60px, 10vw, 110px) 0;
    border-top: 1px solid var(--border);
}
.studio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: start;
}
@media (max-width: 900px) {
    .studio-grid { grid-template-columns: 1fr; gap: 40px; }
}

.studio-head {
    position: sticky;
    top: 100px;
}
.studio-body > p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-soft);
    max-width: 62ch;
    margin-bottom: 44px;
}

.principles {
    list-style: none;
    display: grid;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}
.principles li {
    background: var(--bg-raised);
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 22px 24px;
    transition: background-color 0.25s ease;
}
.principles li:hover { background: var(--bg-surface); }
.principle-num {
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
    padding-top: 4px;
}
.principles h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.principles p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 56ch;
}

@media (max-width: 900px) {
    .studio-head { position: static; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    padding: clamp(60px, 10vw, 110px) 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 40px);
    align-items: stretch;
}
@media (max-width: 760px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: clamp(28px, 4vw, 44px);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-primary {
    background: linear-gradient(180deg, var(--bg-raised) 0%, var(--bg-surface) 100%);
    min-height: 240px;
    justify-content: space-between;
}
.contact-primary::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform: scaleX(0.12);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.contact-primary:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.contact-primary:hover::after { transform: scaleX(1); }

.contact-card .mono-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-value {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text);
    word-break: break-all;
    transition: color 0.25s ease;
}
.contact-primary:hover .contact-value { color: var(--accent); }
.contact-hint {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-top: auto;
}

.contact-meta {
    display: grid;
    grid-auto-rows: 1fr;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    background: var(--bg-raised);
}
.meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 18px 22px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.25s ease;
}
.meta-row:last-child { border-bottom: none; }
.meta-row:hover { background: var(--bg-surface); }
.meta-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 400;
    transition: color 0.2s ease;
}
a.meta-value:hover { color: var(--accent); }
.meta-value .dim { color: var(--text-muted); margin-left: 4px; }

@media (max-width: 520px) {
    .meta-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.foot {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.foot-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
}
.foot-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.foot-brand .brand-mark { color: var(--accent); }
.foot-meta {
    display: inline-flex;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    flex-wrap: wrap;
}
.foot-meta .sep { opacity: 0.5; }
.foot-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}
@media (max-width: 760px) {
    .foot-grid { grid-template-columns: 1fr; gap: 12px; text-align: center; justify-items: center; }
    .foot-meta { justify-content: center; }
}

/* ============================================================
   REVEAL MOTION
   ============================================================ */
body:not(.is-loaded) .hero-copy > *,
body:not(.is-loaded) .code-window,
body:not(.is-loaded) .nav-inner {
    opacity: 0;
}

body.is-loaded .nav-inner {
    animation: slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.is-loaded .hero-copy > * {
    animation: slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
body.is-loaded .hero-copy > :nth-child(1) { animation-delay: 0.1s; }
body.is-loaded .hero-copy > :nth-child(2) { animation-delay: 0.2s; }
body.is-loaded .hero-copy > :nth-child(3) { animation-delay: 0.3s; }
body.is-loaded .hero-copy > :nth-child(4) { animation-delay: 0.4s; }
body.is-loaded .hero-copy > :nth-child(5) { animation-delay: 0.5s; }
body.is-loaded .code-window {
    animation: slide-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--stagger, 0ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    body:not(.is-loaded) .hero-copy > *,
    body:not(.is-loaded) .code-window,
    body:not(.is-loaded) .nav-inner { opacity: 1; }
    .hero-title .accent::after { transform: scaleX(1); }
    .status-dot { animation: none; }
    .c-cursor { animation: none; }
}
