@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-base:         oklch(9% 0.012 240);
    --bg-elevated:     oklch(13% 0.014 240);
    --bg-card:         oklch(17% 0.014 240);
    --text-pure:       oklch(96% 0.005 240);
    --text-muted:      oklch(62% 0.008 240);
    --text-dim:        oklch(38% 0.008 240);
    --accent-electric:   oklch(62% 0.2 220);
    --accent-electric-2: oklch(68% 0.2 220);
    --accent-platinum: #E5E4E2;
    --iridescent:      linear-gradient(105deg, var(--accent-electric) 0%, var(--accent-electric-2) 50%, var(--accent-platinum) 100%);
    --accent-glow:     oklch(62% 0.2 220 / 0.08);
    --terminal-bg:     oklch(8% 0.012 240);
    --terminal-border: oklch(22% 0.012 240);
    --terminal-text:   oklch(84% 0.008 240);
    --border-subtle:   oklch(96% 0.005 240 / 0.06);
    --border-muted:    oklch(96% 0.005 240 / 0.12);
    --border-electric:   oklch(62% 0.2 220 / 0.25);
    --border-electric-2: oklch(68% 0.2 220 / 0.22);
    --font-display:    'Space Grotesk', 'Helvetica Neue', sans-serif;
    --font-body:       'DM Sans', 'Helvetica Neue', sans-serif;
    --font-mono:       'DM Mono', 'JetBrains Mono', monospace;
}

*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    cursor: none;
    overflow-x: clip;
}

body {
    background-color: var(--bg-base);
    color: var(--text-pure);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.55;
    cursor: none;
}

a, button { cursor: none; }

::selection {
    background: oklch(62% 0.2 220 / 0.25);
    color: var(--text-pure);
}

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

.txt-iridescent {
    background: var(--iridescent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iridescent-sweep 7s ease-in-out infinite;
}

@keyframes iridescent-sweep {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.cursor-dot {
    position: fixed;
    width: 5px; height: 5px;
    background: var(--accent-platinum);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    will-change: left, top;
}

.cursor-ring {
    position: fixed;
    width: 30px; height: 30px;
    border: 1px solid oklch(62% 0.2 220 / 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                height 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                border-color 0.25s,
                background 0.25s;
    will-change: left, top;
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-ring { display: none; }
}

.cursor-ring.expanded {
    width: 48px; height: 48px;
    border-color: var(--accent-electric);
    background: oklch(62% 0.2 220 / 0.05);
}

.scroll-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--iridescent);
    z-index: 99997;
    pointer-events: none;
    transition: width 0.05s linear;
}

.grain {
    position: fixed;
    inset: 0;
    background-image: url("../images/grain.svg");
    background-size: 200px 200px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 9997;
}

.zen-fade, .zen-left, .zen-right {
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-fade {
    opacity: 0;
    transform: translateY(44px);
    filter: blur(6px);
}
.zen-fade.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.zen-left {
    opacity: 0;
    transform: translateX(-52px);
    filter: blur(6px);
}
.zen-left.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.zen-right {
    opacity: 0;
    transform: translateX(52px);
    filter: blur(6px);
}
.zen-right.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

[data-delay="0"] { transition-delay: 0s; }
[data-delay="1"] { transition-delay: 0.11s; }
[data-delay="2"] { transition-delay: 0.22s; }
[data-delay="3"] { transition-delay: 0.33s; }
[data-delay="4"] { transition-delay: 0.44s; }
[data-delay="5"] { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .zen-fade, .zen-left, .zen-right {
        opacity: 1; transform: none; filter: none; transition: none;
    }
    .txt-iridescent { animation: none; }
}

#main-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease,
                border-color 0.4s ease, padding 0.35s ease;
    border-bottom: 1px solid transparent;
}

#main-nav.scrolled {
    background: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border-subtle);
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}

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

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.92;
    transition: opacity 0.25s ease;
}

@media (hover: hover) {
    .nav-brand:hover .brand-lockup  { opacity: 1; }
}

.brand-mark {
    height: 34px;
    width: 34px;
    flex-shrink: 0;
    color: var(--accent-electric);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--accent-platinum);
}

.brand-sub {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.43rem;
    letter-spacing: 0.11em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--accent-platinum);
}

.brand-lockup--footer .brand-mark { height: 42px; width: 42px; }
.brand-lockup--footer .brand-name { font-size: 1.3rem; }
.brand-lockup--footer .brand-sub  { font-size: 0.53rem; }

.nav-links {
    display: flex;
    gap: 2.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -5px;
    width: 100%; height: 1px;
    background: var(--iridescent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

@media (hover: hover) {
    .nav-links a:hover  { color: var(--text-pure); }
}
@media (hover: hover) {
    .nav-links a:hover::after  { transform: scaleX(1); }
}

.nav-cta {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent-platinum);
    text-decoration: none;
    border: 1px solid var(--border-muted);
    padding: 0.5rem 1.3rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    transition: background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .nav-cta:hover  {
        background: rgba(242,241,237,0.05);
        border-color: var(--border-electric);
    }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-toggle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: 0.3rem 0.7rem;
    cursor: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

@media (hover: hover) {
    .lang-toggle:hover  {
        color: var(--accent-electric);
        border-color: var(--border-electric);
        background: oklch(62% 0.2 220 / 0.04);
    }
}

.lang-toggle--mobile {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    padding: 0.5rem 1.4rem;
    border-color: var(--border-muted);
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s ease, border-color 0.2s ease,
                opacity 0.4s ease 0.30s,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.30s;
}

.nav-mobile.open .lang-toggle--mobile {
    opacity: 1;
    transform: translateY(0);
}

#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 8rem 5% 6rem;
    overflow: hidden;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 40%, oklch(6% 0.012 240 / 0.85) 100%);
    pointer-events: none;
}

.hero-cursor-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle 480px at var(--glow-x, 30%) var(--glow-y, 45%),
        oklch(62% 0.2 220 / 0.07),
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
}

.hero-aurora {
    position: absolute;
    top: -20%; right: -15%;
    width: 60vw; height: 60vw;
    max-width: 900px; max-height: 900px;
    background:
        radial-gradient(circle at 35% 40%, oklch(62% 0.2 220 / 0.07) 0%, transparent 50%),
        radial-gradient(circle at 65% 60%, oklch(68% 0.2 220 / 0.06) 0%, transparent 55%),
        radial-gradient(circle at 50% 80%, oklch(85% 0.01 240 / 0.05) 0%, transparent 50%);
    filter: blur(40px);
    animation: aurora-drift 18s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora-drift {
    0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
    100% { transform: translate(-6%, 8%) rotate(12deg) scale(1.12); }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.8rem;
    opacity: 0;
    animation: hero-rise 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
}

.hero-eyebrow .eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--iridescent);
    flex-shrink: 0;
    animation: dot-pulse 3s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 oklch(62% 0.2 220 / 0.4); }
    50%      { box-shadow: 0 0 0 7px oklch(62% 0.2 220 / 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.7rem, 7vw, 5.6rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--text-pure);
    margin-bottom: 2.4rem;
}

.ht-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
    margin-bottom: -0.14em;
}

.ht-line > span {
    display: block;
    transform: translateY(110%);
    animation: hero-line-up 1.1s cubic-bezier(0.16,1,0.3,1) forwards;
}

.ht-line:nth-child(1) > span { animation-delay: 0.35s; }
.ht-line:nth-child(2) > span { animation-delay: 0.5s; }

@keyframes hero-line-up {
    to { transform: translateY(0); }
}

@keyframes hero-rise {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-rotator {
    position: relative;
    display: inline-block;
    vertical-align: top;
    min-width: 6ch;
}

.rot-word {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    background: var(--iridescent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iridescent-sweep 7s ease-in-out infinite;
    position: absolute;
    left: 0; top: 0;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(5px);
    transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1),
                transform 0.55s cubic-bezier(0.16,1,0.3,1),
                filter 0.55s cubic-bezier(0.16,1,0.3,1);
    pointer-events: none;
}

.rot-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    pointer-events: auto;
}

.rot-word.leaving {
    opacity: 0;
    transform: translateY(-0.4em);
    filter: blur(5px);
}

.hero-sub {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
    opacity: 0;
    animation: hero-rise 1s cubic-bezier(0.16,1,0.3,1) 0.85s forwards;
}

.hero-sub strong {
    color: var(--text-pure);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1.4rem;
    align-items: center;
    white-space: nowrap;
    opacity: 0;
    animation: hero-rise 1s cubic-bezier(0.16,1,0.3,1) 1.05s forwards;
}

.btn-primary {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--bg-base);
    background: var(--accent-platinum);
    padding: 0.9rem 2.2rem;
    border-radius: 100px;
    letter-spacing: 0.03em;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                box-shadow 0.35s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--iridescent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span { position: relative; z-index: 1; }

@media (hover: hover) {
    .btn-primary:hover  {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px oklch(62% 0.2 220 / 0.18);
    }
}

@media (hover: hover) {
    .btn-primary:hover::before  { opacity: 1; }
}

.btn-ghost {
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    display: inline-block;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .btn-ghost:hover  { color: var(--text-pure); }
}

.hero-meta {
    position: absolute;
    bottom: 2.4rem;
    left: 5%; right: 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    z-index: 2;
    opacity: 0;
    animation: hero-rise 1s ease 1.5s forwards;
}

.hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.hero-scroll-hint .scroll-line {
    width: 1px; height: 34px;
    background: linear-gradient(180deg, var(--text-dim), transparent);
    animation: scroll-drip 2.2s ease-in-out infinite;
    transform-origin: top;
}

@keyframes scroll-drip {
    0%, 100% { transform: scaleY(0.4); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

.marquee {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.3rem 0;
    overflow: hidden;
    position: relative;
    background: var(--bg-elevated);
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-base), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-base), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 36s linear infinite;
}

@media (hover: hover) {
    .marquee:hover .marquee-track  { animation-play-state: paused; }
}

.marquee-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 0 1.6rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .marquee-item:hover  { color: var(--text-pure); }
}

.marquee-sep {
    width: 5px; height: 5px;
    border-radius: 1px;
    background: var(--iridescent);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.7;
}

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

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

.container { max-width: 1200px; margin: 0 auto; }

.section-padded { padding: 9rem 5%; position: relative; }

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--accent-electric);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    display: block;
    opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.4rem, 4.5vw, 3.9rem);
    margin-bottom: 2.5rem;
    letter-spacing: -0.03em;
    color: var(--text-pure);
    line-height: 1.05;
}

.section-title em,
.section-title strong {
    font-family: var(--font-display);
    font-weight: 600;
    background: var(--iridescent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: iridescent-sweep 7s ease-in-out infinite;
}

#atelier {
    padding: 11rem 5%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 7rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.atelier-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

.atelier-text strong { color: var(--text-pure); font-weight: 500; }

.link-arrow {
    color: var(--accent-electric);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    opacity: 0.85;
    transition: opacity 0.2s, letter-spacing 0.3s ease;
}

@media (hover: hover) {
    .link-arrow:hover  { opacity: 1; letter-spacing: 0.06em; }
}

.atelier-visual { position: relative; padding-left: 3.5rem; }

.visual-accent-line {
    position: absolute;
    left: 0; top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, var(--border-electric) 40%, var(--border-subtle) 100%);
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 2.1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-electric), transparent);
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.4rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(242,241,237,0.015);
}

.code-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--border-muted);
}

.code-filename {
    margin-left: 0.5rem;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}

.code-body { padding: 1.6rem 1.8rem 1.8rem; }

.code-line {
    color: var(--terminal-text);
    opacity: 0.15;
    transform: translateX(-5px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.code-line.revealed   { opacity: 1; transform: translateX(0); }
.code-line.indent     { padding-left: 1.6rem; }
.c-key                { color: #5EA7E5; }
.c-prop               { color: #82AAFF; }
.c-fn                 { color: #89DDFF; }
.c-str                { color: #A5C8FF; }
.c-bool               { color: #F78C6C; }
.code-comment         { color: #546E7A; margin-top: 0.2rem; }

#process {
    background: radial-gradient(ellipse 60% 55% at 15% 0%, oklch(62% 0.2 220 / 0.04) 0%, transparent 60%);
}

.process-grid {
    margin-top: 4.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border-subtle);
    border-left: 1px solid var(--border-subtle);
}

.process-step {
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.6rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--iridescent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

@media (hover: hover) {
    .process-step:hover  { background: rgba(242,241,237,0.015); }
}
@media (hover: hover) {
    .process-step:hover::after  { transform: scaleX(1); }
}

.ps-num {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--text-dim);
    display: block;
    margin-bottom: 1.6rem;
    transition: color 0.4s ease;
}

@media (hover: hover) {
    .process-step:hover .ps-num  {
        background: var(--iridescent);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.ps-name {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-pure);
    margin-bottom: 0.8rem;
}

.ps-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.services-list {
    margin-top: 4rem;
    border-top: 1px solid var(--border-subtle);
}

.service-row {
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.6rem 0;
    display: grid;
    grid-template-columns: 5rem 1fr 2.5rem;
    gap: 2rem;
    align-items: start;
    position: relative;
    transition: border-bottom-color 0.3s ease, padding-left 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

.service-row::before {
    content: '';
    position: absolute;
    left: -1px; top: 0; bottom: 0;
    width: 2px;
    background: var(--iridescent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

@media (hover: hover) {
    .service-row:hover::before  { transform: scaleY(1); }
}
@media (hover: hover) {
    .service-row:hover          { border-bottom-color: var(--border-electric); padding-left: 1.2rem; }
}

.sr-num {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--accent-electric);
    letter-spacing: 0.2em;
    opacity: 0.6;
    padding-top: 0.5rem;
}

.sr-body { min-width: 0; }

.sr-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sr-name {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 500;
    color: var(--text-pure);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sr-tag {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-electric);
    border: 1px solid var(--border-electric);
    border-radius: 100px;
    padding: 0.2rem 0.7rem;
    white-space: nowrap;
    opacity: 0.85;
}

.sr-icon {
    width: 22px; height: 22px;
    color: var(--text-dim);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .service-row:hover .sr-icon  { color: var(--accent-electric); }
}

.sr-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 0.9rem;
    max-width: 640px;
    transition: color 0.3s ease;
}

@media (hover: hover) {
    .service-row:hover .sr-desc  { color: #B6B5BC; }
}

.sr-arrow {
    width: 22px; height: 22px;
    color: var(--text-dim);
    padding-top: 0.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

@media (hover: hover) {
    .service-row:hover .sr-arrow  {
        color: var(--accent-electric);
        transform: translate(3px, -3px);
    }
}

#contact {
    padding: 11rem 5% 9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw; height: 60vh;
    background: radial-gradient(ellipse at center,
        oklch(62% 0.2 220 / 0.05) 0%,
        oklch(68% 0.2 220 / 0.04) 35%,
        transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

.contact-header { text-align: center; position: relative; z-index: 1; }

.contact-reply-note {
    margin-top: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.terminal {
    width: 100%;
    max-width: 740px;
    background-color: var(--terminal-bg);
    border: 1px solid var(--terminal-border);
    border-radius: 10px;
    box-shadow:
        0 50px 100px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.03),
        inset 0 1px 0 rgba(255,255,255,0.04);
    font-family: var(--font-mono);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background: #141416;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--terminal-border);
}

.terminal-buttons { display: flex; gap: 8px; }

.btn { width: 11px; height: 11px; border-radius: 50%; cursor: none; }
.btn.close { background: #ED6A5E; }
.btn.min   { background: #F4BF4F; }
.btn.max   { background: #61C554; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #5A5A62;
    font-size: 0.68rem;
    margin-right: 38px;
    letter-spacing: 0.06em;
}

.boot-seq {
    padding: 1.6rem 2.2rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    margin-bottom: 0.5rem;
}

.boot-line {
    font-size: 0.78rem;
    color: #4A4A55;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(3px);
    animation: boot-appear 0.3s ease forwards;
    animation-delay: calc(var(--i, 0) * 550ms + 400ms);
    animation-play-state: paused;
}

.boot-seq.active .boot-line { animation-play-state: running; }

@keyframes boot-appear {
    to { opacity: 1; transform: translateY(0); }
}

.boot-tag    { color: #555560; }
.boot-ok     { color: var(--accent-electric); }
.boot-ready  { color: #7A7A88; }

.boot-sep {
    height: 1px;
    background: rgba(255,255,255,0.04);
    margin-top: 1rem;
    opacity: 0;
    animation: boot-appear 0.2s ease forwards;
    animation-delay: calc(var(--i, 0) * 550ms + 400ms);
    animation-play-state: paused;
}

.boot-seq.active .boot-sep { animation-play-state: running; }

.terminal-body {
    padding: 1.8rem 2.2rem 2.5rem;
    color: var(--terminal-text);
    font-size: 0.875rem;
}

.terminal-line {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}

.prompt {
    color: #4A4A52;
    margin-right: 1rem;
    white-space: nowrap;
    user-select: none;
}

.prompt .cwd { color: var(--accent-electric); opacity: 0.9; }

.prompt-text { color: #7A7A88; white-space: nowrap; }

.input-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    width: calc(100% - 20px);
    outline: none;
    caret-color: transparent;
    cursor: none;
}

input.terminal-input { height: 1.5rem; }

.terminal-textarea {
    display: block;
    width: 100%;
    min-height: 1.5rem;
    line-height: 1.5rem;
    padding: 0;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    caret-color: var(--accent-electric);
}

.term-note {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #7A7A88;
    margin: -0.6rem 0 1rem;
}

.term-note:empty { display: none; }

.term-hint {
    font-size: 0.75rem;
    color: #5A5A66;
    margin: 0 0 1.4rem;
}

.term-actions { margin: -0.4rem 0 1.2rem; }

.term-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    color: var(--accent-electric);
    background: oklch(62% 0.2 220 / 0.06);
    border: 1px solid oklch(62% 0.2 220 / 0.35);
    border-radius: 4px;
    padding: 0.45rem 0.9rem;
    cursor: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .term-btn:hover {
        background: oklch(62% 0.2 220 / 0.12);
        border-color: var(--accent-electric);
    }
}

.success-msg:focus { outline: none; }

.terminal-measure {
    position: absolute;
    left: -9999px;
    top: 0;
    visibility: hidden;
    white-space: pre;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.cursor {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--accent-electric);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    vertical-align: middle;
}

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

.terminal-input::placeholder { color: rgba(255,255,255,0.07); }

.success-msg { margin-top: 0.5rem; }

.term-error {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #E05C5C;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.term-error.visible {
    max-height: 4rem;
    opacity: 1;
    margin: -0.6rem 0 1rem;
}

.boot-seq.fadeout {
    animation: boot-fadeout 0.5s ease forwards;
}

@keyframes boot-fadeout {
    0%   { opacity: 1; transform: translateY(0); max-height: 200px; }
    60%  { opacity: 0; transform: translateY(-6px); }
    100% { opacity: 0; max-height: 0; padding: 0; margin: 0; overflow: hidden; }
}

.confirm-line {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.9;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.confirm-line.show {
    opacity: 1;
    transform: translateY(0);
}

.confirm-line.ok   { color: var(--accent-electric); }
.confirm-line.err  { color: #E05C5C; }
.confirm-line.dim  { color: #4A4A55; }
.confirm-line.muted { color: #7A7A88; }

.confirm-sep {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 1.2rem 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.confirm-sep.show { opacity: 1; }

.confirm-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0.3rem 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.confirm-bar-wrap.show { opacity: 1; }

.confirm-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}

.confirm-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--iridescent);
    border-radius: 2px;
    transition: width 1.1s cubic-bezier(0.4,0,0.2,1);
}

.confirm-receipt {
    border: 1px solid oklch(62% 0.2 220 / 0.15);
    border-radius: 6px;
    padding: 1.2rem 1.5rem;
    margin-top: 0.6rem;
    background: oklch(62% 0.2 220 / 0.03);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.confirm-receipt.show {
    opacity: 1;
    transform: translateY(0);
}

.confirm-receipt-title {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-electric);
    margin-bottom: 0.9rem;
    opacity: 0.7;
}

.confirm-receipt-row {
    display: flex;
    gap: 0.8rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.confirm-receipt-label {
    color: #4A4A55;
    width: 5.5rem;
    flex-shrink: 0;
}

.confirm-receipt-row strong.is-ok { color: var(--accent-electric); }

.confirm-bar-wrap .confirm-line { opacity: 1; }
.confirm-bar-wrap .confirm-line.ok { color: var(--accent-electric); }

.confirm-receipt-row strong {
    color: var(--text-pure);
    font-weight: 500;
}

.confirm-receipt-note {
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.confirm-receipt-note span { color: var(--accent-electric); }

.boot-i-0 { --i: 0; }
.boot-i-1 { --i: 1; }
.boot-i-2 { --i: 2; }
.boot-i-3 { --i: 3; }
.boot-i-4 { --i: 4; }

@media (max-width: 600px) {
    .terminal-body   { padding: 1.5rem 1.2rem; }
    .terminal-header { padding: 0.8rem 1rem; }
    .prompt          { margin-right: 0.6rem; }
    .terminal-line   { flex-wrap: wrap; }
    .prompt-text     { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    .input-wrapper   { flex-basis: 100%; margin-top: 0.3rem; }
}

.privacy-note {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.privacy-note a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

@media (hover: hover) {
    .privacy-note a:hover  { color: var(--accent-electric); }
}

html[lang="es"] .prv-en,
html[lang="en"] .prv-es { display: none; }
html[lang="es"] .prv-es,
html[lang="en"] .prv-en { display: inline; }

footer {
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-base) 100%);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 5% 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-dim);
    letter-spacing: 0.01em;
    max-width: 260px;
    line-height: 1.5;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-end;
    padding-top: 0.2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

@media (hover: hover) {
    .footer-nav a:hover  { color: var(--text-pure); }
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-sub {
    font-size: 0.68rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--border-muted);
    border-radius: 50%;
    padding: 0;
    cursor: none;
    transition: border-color 0.2s ease;
    z-index: 1001;
}

@media (hover: hover) {
    .nav-hamburger:hover  { border-color: var(--accent-electric); }
}

.nav-hamburger span {
    display: block;
    width: 16px; height: 1.5px;
    background: var(--accent-platinum);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.25,0.46,0.45,0.94),
                opacity   0.25s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.3); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(11,12,14,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.nav-mobile.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-mob-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.9rem 2rem;
    opacity: 0;
    transform: translateY(12px);
    transition: color 0.2s ease,
                opacity 0.4s ease,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.nav-mobile.open .nav-mob-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-mob-link:nth-child(1) { transition-delay: 0.05s; }
.nav-mob-link:nth-child(2) { transition-delay: 0.10s; }
.nav-mob-link:nth-child(3) { transition-delay: 0.15s; }
.nav-mob-link:nth-child(4) { transition-delay: 0.20s; }
.nav-mob-link:nth-child(5) { transition-delay: 0.25s; }

@media (hover: hover) {
    .nav-mob-link:hover  { color: var(--text-pure); }
}

.nav-mob-cta {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-platinum);
    text-decoration: none;
    border: 1px solid var(--border-muted);
    padding: 0.75rem 2.2rem;
    border-radius: 100px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(12px);
    transition: background 0.2s ease, border-color 0.2s ease,
                opacity 0.4s ease 0.25s,
                transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94) 0.25s;
}

.nav-mobile.open .nav-mob-cta {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: hover) {
    .nav-mob-cta:hover  {
        background: rgba(242,241,237,0.05);
        border-color: var(--border-electric);
    }
}

@media (max-width: 960px) {
    #atelier {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 7rem 5%;
    }

    .atelier-visual     { padding-left: 0; }
    .visual-accent-line { display: none; }

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

    .nav-links          { display: none; }
    .nav-cta            { display: none; }
    .lang-toggle        { display: none; }
    .nav-hamburger      { display: flex; }
    .nav-mobile         { display: flex; }
    .lang-toggle--mobile { display: inline-block; }

    .service-row { grid-template-columns: 3.5rem 1fr 2rem; gap: 1.2rem; }
    .service-row:hover { padding-left: 0; }

    .footer-inner  { flex-direction: column; align-items: center; text-align: center; }
    .footer-brand  { align-items: center; }
    .footer-tagline { max-width: none; }
    .footer-nav    { align-items: center; flex-direction: row; flex-wrap: wrap; justify-content: center; column-gap: 1.8rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
}

@media (max-width: 600px) {
    #hero { padding: 7rem 6% 7rem; }

    .hero-eyebrow { letter-spacing: 0.2em; margin-bottom: 2rem; }
    .hero-sub     { font-size: 0.98rem; }
    .hero-cta     { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; }
    .hero-meta    { display: none; }
    .hero-aurora  { width: 120vw; height: 120vw; top: -10%; right: -40%; }

    .process-grid { grid-template-columns: 1fr; }
    .process-step { padding: 2.2rem 1.6rem 2.4rem; }

    .service-row { grid-template-columns: 2.8rem 1fr; }
    .sr-arrow    { display: none; }
    .sr-head     { flex-wrap: wrap; gap: 0.6rem; }

}


@media (max-width: 560px) {

    .hero-title { font-size: clamp(1.8rem, 9.2vw, 2.7rem); }

}

#ekos-ai {
    padding: 11rem 5%;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 7rem;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
}

.engine-list { display: flex; flex-direction: column; }

.engine-item {
    display: flex;
    gap: 1.6rem;
    padding: 1.6rem 0;
    border-top: 1px solid var(--border-subtle);
}

.engine-item:last-child { border-bottom: 1px solid var(--border-subtle); }

.engine-num {
    font-family: var(--font-mono);
    font-size: 0.67rem;
    color: var(--accent-electric);
    opacity: 0.85;
    padding-top: 0.35rem;
    flex-shrink: 0;
}

.engine-name {
    font-size: 1.02rem;
    font-weight: 500;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
}

.engine-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.faq-list { max-width: 820px; }

.faq-item { border-top: 1px solid var(--border-subtle); }

.faq-item:last-child { border-bottom: 1px solid var(--border-subtle); }

.faq-item.is-animating { overflow: hidden; }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
    font-size: 1.05rem;
    color: var(--text-pure);
    cursor: none;
    list-style: none;
    transition: color 0.25s ease;
}

.faq-q::-webkit-details-marker { display: none; }

@media (hover: hover) {
    .faq-q:hover  { color: var(--accent-electric-2); }
}

.faq-icon {
    position: relative;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--text-dim);
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-icon::before { left: 0; top: 5px; width: 12px; height: 1px; }
.faq-icon::after  { left: 5px; top: 0; width: 1px; height: 12px; }

.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-item[open] .faq-icon::before { background: var(--accent-electric); }

.faq-a {
    padding: 0 3rem 1.7rem 0;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    #ekos-ai {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        padding: 7rem 5%;
    }

    .faq-a { padding-right: 0; }
}


.to-top {
    position: fixed;
    right: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-right));
    bottom: calc(clamp(1rem, 3vw, 2rem) + env(safe-area-inset-bottom));
    z-index: 900;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text-muted);
    background: oklch(13% 0.014 240 / 0.85);
    border: 1px solid var(--border-muted);
    border-radius: 50%;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s,
                color 0.2s ease, border-color 0.2s ease;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s,
                color 0.2s ease, border-color 0.2s ease;
}

.to-top svg { width: 18px; height: 18px; }

@media (hover: hover) {
    .to-top:hover {
        color: var(--accent-electric);
        border-color: var(--accent-electric);
    }
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10001;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--bg-base);
    background: var(--accent-platinum);
    border-radius: 6px;
    text-decoration: none;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

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

:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 3px;
}

.terminal-input:focus-visible,
main:focus,
main:focus-visible { outline: none; }

@media (pointer: coarse) {
    .terminal-input,
    .terminal-measure { font-size: 16px; }
    .term-btn {
        min-height: 44px;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    .nav-hamburger { width: 44px; height: 44px; }
    .lang-toggle--mobile { min-height: 44px; min-width: 64px; }
    .nav-brand { display: inline-flex; align-items: center; min-height: 44px; }
    .btn-ghost,
    .link-arrow,
    .privacy-note a {
        display: inline-block;
        padding-block: 14px;
        margin-block: -14px;
    }
    .footer-nav { row-gap: 0; }
    .footer-nav a { padding-block: 0.85rem; }
}

@media (max-width: 600px) {
    .footer-nav { flex-direction: column; align-items: center; gap: 0.4rem; }
}

.is-hidden { display: none; }
