/* ==========================================================================
   ZEDX Terminal Portfolio — vanilla CSS
   Palette: deep black / matrix green / neon cyan
   ========================================================================== */

:root {
    --bg: #000000;
    --bg-soft: #020b05;
    --panel: rgba(2, 12, 6, 0.74);
    --panel-solid: #03100a;
    --green: #00ff41;
    --green-bright: #7dffa5;
    --green-dim: rgba(0, 255, 65, 0.55);
    --green-muted: rgba(0, 255, 65, 0.34);
    --green-line: rgba(0, 255, 65, 0.18);
    --cyan: #3df2ff;
    --red: #ff5f56;
    --yellow: #ffbd2e;
    --green-dot: #27c93f;
    --text: #c8ffd8;
    --text-dim: rgba(178, 255, 200, 0.56);
    --font: "Fira Code", "SFMono-Regular", "Cascadia Code", "Courier New", monospace;
    --radius: 12px;
    --hud-height: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hud-height) + 24px);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

:focus-visible {
    outline: 1px solid var(--green);
    outline-offset: 3px;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3,
ul,
ol,
dl,
dd,
figure {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

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

button {
    cursor: pointer;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--green);
    color: #000;
    font-size: 13px;
}

.skip-link:focus {
    top: 12px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #010402;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 65, 0.25);
    border: 2px solid #010402;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 65, 0.45);
}

/* --------------------------------------------------------------------------
   Background scene (Three.js canvas + CSS fallback)
   -------------------------------------------------------------------------- */

.scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 255, 65, 0.08), transparent 46%),
        radial-gradient(circle at 82% 62%, rgba(61, 242, 255, 0.05), transparent 40%),
        #000;
    pointer-events: none;
}

.scene__glow {
    position: absolute;
    top: 22%;
    left: 50%;
    width: min(900px, 110vw);
    height: min(900px, 110vw);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 255, 65, 0.1), rgba(0, 255, 65, 0.02) 42%, transparent 68%);
    filter: blur(30px);
    animation: pulse-glow 14s ease-in-out infinite;
}

.scene__floor {
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: -32%;
    height: 105%;
    transform: perspective(420px) rotateX(63deg);
    transform-origin: 50% 100%;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.3) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: 0.22;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 78%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.55) 38%, transparent 78%);
    animation: floor-scroll 16s linear infinite;
}

#scene-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.scene__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 42%, transparent 32%, rgba(0, 0, 0, 0.55) 82%, #000 100%);
}

.scene__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.22) 3px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.28;
}

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.96);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.06);
    }
}

@keyframes floor-scroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 52px;
    }
}

/* --------------------------------------------------------------------------
   HUD header
   -------------------------------------------------------------------------- */

.hud {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: var(--hud-height);
    padding: 0 clamp(16px, 4vw, 40px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.13);
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hud__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    white-space: nowrap;
    text-shadow: 0 0 16px rgba(0, 255, 65, 0.4);
}

.hud__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: status-pulse 2.4s ease-in-out infinite;
}

.hud__muted {
    color: var(--green-dim);
}

.hud__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.hud__nav a {
    display: inline-flex;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: 0.02em;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.hud__nav a:hover,
.hud__nav a.is-active {
    color: var(--green);
    border-color: rgba(0, 255, 65, 0.24);
    background: rgba(0, 255, 65, 0.06);
}

.hud__index {
    color: var(--green-muted);
    font-size: 10px;
    padding-top: 2px;
}

.hud__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

.hud__clock {
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.hud__online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
}

.hud__online span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.hud__admin {
    padding: 4px 9px;
    border: 1px solid rgba(61, 242, 255, 0.22);
    border-radius: 4px;
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
}

.hud__admin:hover {
    background: rgba(61, 242, 255, 0.08);
    box-shadow: 0 0 18px rgba(61, 242, 255, 0.16);
}

@keyframes status-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* --------------------------------------------------------------------------
   Shell + terminal chrome
   -------------------------------------------------------------------------- */

.shell {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: calc(var(--hud-height) + clamp(24px, 5vw, 56px)) clamp(12px, 3vw, 28px) 64px;
}

.terminal {
    border: 1px solid rgba(0, 255, 65, 0.28);
    border-radius: var(--radius);
    background: linear-gradient(165deg, rgba(3, 18, 10, 0.88), rgba(0, 5, 2, 0.84));
    box-shadow:
        0 0 0 1px rgba(0, 255, 65, 0.04),
        0 0 70px rgba(0, 255, 65, 0.08),
        0 30px 90px rgba(0, 0, 0, 0.9),
        inset 0 1px 0 rgba(125, 255, 165, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    overflow: hidden;
    animation: terminal-in 0.9s var(--ease) both;
}

@keyframes terminal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.994);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.16);
    background: linear-gradient(to bottom, rgba(10, 28, 16, 0.92), rgba(3, 12, 7, 0.92));
}

.terminal__dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.dot--red {
    background: var(--red);
    box-shadow: 0 0 8px rgba(255, 95, 86, 0.4);
}

.dot--yellow {
    background: var(--yellow);
    box-shadow: 0 0 8px rgba(255, 189, 46, 0.35);
}

.dot--green {
    background: var(--green-dot);
    box-shadow: 0 0 8px rgba(39, 201, 63, 0.35);
}

.terminal__title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 10px;
    color: var(--green-dim);
    letter-spacing: 0.04em;
}

.terminal__badge span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.terminal__body {
    padding: clamp(20px, 4.2vw, 54px);
}

/* --------------------------------------------------------------------------
   Server-side flash (no-JS fallback)
   -------------------------------------------------------------------------- */

.page-flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    padding: 11px 14px;
    border: 1px solid var(--green-line);
    border-radius: 6px;
    background: rgba(0, 255, 65, 0.04);
    font-size: 0.76rem;
}

.page-flash > span {
    color: var(--green);
}

.page-flash ul {
    margin-top: 4px;
}

.page-flash li {
    color: var(--text-dim);
    font-size: 0.7rem;
}

.page-flash--success {
    border-color: rgba(0, 255, 65, 0.32);
}

.page-flash--error {
    border-color: rgba(255, 95, 86, 0.4);
    background: rgba(255, 95, 86, 0.05);
}

.page-flash--error > span {
    color: #ff8b84;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-bottom: 10px;
}

.eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.tag {
    padding: 4px 9px;
    border: 1px solid rgba(0, 255, 65, 0.28);
    border-radius: 3px;
    color: var(--green);
    background: rgba(0, 255, 65, 0.05);
}

.eyebrow__muted {
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.hero__title {
    margin-top: clamp(18px, 3vw, 30px);
    font-size: clamp(2.5rem, 7.4vw, 5.6rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: #e9fff0;
    text-wrap: balance;
}

.hero__title-accent {
    display: block;
    color: var(--green);
    text-shadow:
        0 0 22px rgba(0, 255, 65, 0.3),
        0 0 70px rgba(0, 255, 65, 0.13);
}

.hero__role {
    margin-top: 20px;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: #dcffe6;
    letter-spacing: 0.01em;
}

.hero__role-prompt {
    color: var(--cyan);
    margin-right: 4px;
}

.hero__amp {
    color: var(--green);
    font-weight: 600;
}

.boot {
    margin-top: clamp(26px, 4vw, 40px);
    max-width: 790px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    background: rgba(0, 8, 4, 0.78);
    box-shadow: inset 0 0 34px rgba(0, 255, 65, 0.035);
    overflow: hidden;
}

.boot__head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 14px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.13);
    background: rgba(0, 255, 65, 0.035);
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.boot__label {
    color: var(--green);
}

.boot__hint {
    color: var(--text-dim);
    opacity: 0.65;
}

.boot__output {
    padding: 15px 16px 17px;
    min-height: 128px;
    font-size: clamp(0.78rem, 1.5vw, 0.92rem);
    line-height: 1.95;
}

.boot__line {
    display: flex;
    gap: 10px;
    color: var(--green);
    text-shadow: 0 0 14px rgba(0, 255, 65, 0.18);
}

.boot__line--static {
    color: var(--text-dim);
}

.boot__arrow {
    color: var(--cyan);
    flex-shrink: 0;
}

.boot__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.boot__typing::after {
    content: "";
    display: inline-block;
    width: 0.55ch;
    height: 1.05em;
    margin-left: 2px;
    background: var(--green);
    vertical-align: -0.16em;
    box-shadow: 0 0 10px var(--green);
    animation: blink 1.05s step-end infinite;
}

.cursor {
    display: inline-block;
    width: 0.58ch;
    height: 1.02em;
    background: var(--green);
    vertical-align: -0.16em;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.75);
    animation: blink 1.05s step-end infinite;
}

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

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: clamp(26px, 4vw, 38px);
}

.btn {
    --btn-border: rgba(0, 255, 65, 0.32);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--btn-border);
    border-radius: 5px;
    background: rgba(0, 255, 65, 0.04);
    color: var(--green-bright);
    font-size: 12px;
    letter-spacing: 0.03em;
    transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    background: rgba(0, 255, 65, 0.09);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.1);
    color: #eafff0;
}

.btn--primary {
    background: var(--green);
    border-color: var(--green);
    color: #001a07;
    font-weight: 600;
    box-shadow: 0 0 24px rgba(0, 255, 65, 0.18);
}

.btn--primary:hover {
    background: #5cff86;
    color: #001a07;
    box-shadow: 0 0 36px rgba(0, 255, 65, 0.32);
}

.btn--ghost {
    --btn-border: rgba(61, 242, 255, 0.22);
    background: transparent;
    color: var(--cyan);
}

.btn--ghost:hover {
    border-color: var(--cyan);
    background: rgba(61, 242, 255, 0.06);
    box-shadow: 0 8px 30px rgba(61, 242, 255, 0.08);
}

.btn__prompt {
    opacity: 0.65;
}

.btn--primary .btn__prompt {
    opacity: 0.55;
}

.btn__cursor {
    margin-left: -2px;
    animation: blink 1.1s step-end infinite;
}

.btn[disabled] {
    opacity: 0.55;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.status-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: clamp(28px, 4vw, 42px);
    border-top: 1px solid rgba(0, 255, 65, 0.1);
    padding-top: 18px;
}

.status-strip li {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 0 18px;
    border-right: 1px solid rgba(0, 255, 65, 0.12);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.03em;
}

.status-strip li:first-child {
    padding-left: 0;
}

.status-strip li:last-child {
    border-right: 0;
}

.status-strip span {
    color: var(--text-dim);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Shared section pieces
   -------------------------------------------------------------------------- */

.section-divider {
    height: 1px;
    margin: clamp(40px, 6vw, 68px) 0;
    background: linear-gradient(to right, transparent, rgba(0, 255, 65, 0.3) 18%, rgba(0, 255, 65, 0.3) 82%, transparent);
    position: relative;
}

.section-divider::after {
    content: "";
    position: absolute;
    top: -2px;
    left: 22%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 14px var(--green);
    animation: travel 9s linear infinite;
}

@keyframes travel {
    0% {
        left: 8%;
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    88% {
        opacity: 1;
    }
    100% {
        left: 92%;
        opacity: 0;
    }
}

.section {
    position: relative;
}

.cmd {
    font-size: clamp(0.72rem, 1.5vw, 0.82rem);
    color: var(--text-dim);
    margin-bottom: clamp(22px, 3vw, 30px);
    overflow-wrap: anywhere;
}

.cmd__user {
    color: var(--cyan);
}

.cmd__path {
    color: var(--green);
}

.cmd__command {
    color: #effff4;
}

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.section__index {
    color: var(--green-muted);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section__title {
    font-size: clamp(1.45rem, 3.4vw, 2.25rem);
    font-weight: 400;
    line-height: 1.22;
    letter-spacing: -0.035em;
    color: #eafff0;
    max-width: 22ch;
}

.section__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 3px;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.section__badge--live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--green);
    border-color: rgba(0, 255, 65, 0.32);
}

.section__badge--live span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: status-pulse 2s infinite;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: clamp(24px, 4vw, 52px);
    align-items: start;
}

.about__copy p {
    color: var(--text-dim);
    font-size: 0.92rem;
    max-width: 62ch;
}

.about__copy p + p {
    margin-top: 16px;
}

.about__copy strong {
    color: var(--green-bright);
    font-weight: 500;
}

.about__signature {
    margin-top: 22px !important;
    padding-left: 14px;
    border-left: 1px solid rgba(0, 255, 65, 0.35);
    color: var(--text) !important;
    font-size: 0.82rem !important;
}

.about__signature span {
    color: var(--cyan);
}

.whoami {
    border: 1px solid rgba(0, 255, 65, 0.16);
    border-radius: 8px;
    background: rgba(0, 6, 3, 0.55);
    padding: 4px 16px;
}

.whoami > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.09);
    font-size: 0.76rem;
}

.whoami > div:last-child {
    border-bottom: 0;
}

.whoami dt {
    color: var(--green-muted);
}

.whoami dd {
    color: var(--text);
    overflow-wrap: anywhere;
}

.whoami .ok {
    color: var(--green);
}

.whoami .ok::before {
    content: "● ";
    font-size: 8px;
    vertical-align: 1px;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: clamp(24px, 4vw, 34px);
}

.stack li {
    padding: 5px 10px;
    border: 1px solid rgba(0, 255, 65, 0.15);
    border-radius: 3px;
    color: var(--text-dim);
    font-size: 10px;
    letter-spacing: 0.05em;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.stack li:hover {
    color: var(--green);
    border-color: rgba(0, 255, 65, 0.38);
    background: rgba(0, 255, 65, 0.05);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 14px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid rgba(0, 255, 65, 0.16);
    border-radius: 8px;
    background: linear-gradient(160deg, rgba(0, 255, 65, 0.045), rgba(0, 0, 0, 0.2) 55%);
    transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, background 0.25s;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 1px;
    background: var(--green);
    opacity: 0.55;
    box-shadow: 0 0 12px var(--green);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 255, 65, 0.45);
    background: linear-gradient(160deg, rgba(0, 255, 65, 0.075), rgba(0, 0, 0, 0.24) 60%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55), 0 0 32px rgba(0, 255, 65, 0.06);
}

.service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
}

.service-card__index {
    font-size: 10px;
    color: var(--green-muted);
    letter-spacing: 0.1em;
}

.service-card__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 255, 65, 0.22);
    border-radius: 6px;
    background: rgba(0, 255, 65, 0.05);
    color: var(--green);
}

.service-card__icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.6;
}

.service-card__icon:has(svg) .service-card__fallback {
    display: none;
}

.service-card__fallback {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--green-dim);
}

.service-card__title {
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    color: #ecfff1;
}

.service-card__label {
    color: var(--green);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.service-card__description {
    margin-top: 10px;
    color: var(--text-dim);
    font-size: 0.8rem;
    line-height: 1.75;
    flex: 1;
}

.service-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.service-card__price {
    font-size: 0.74rem;
    color: var(--green-bright);
}

.service-card__price span {
    color: var(--green-muted);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.service-card__link {
    color: var(--cyan);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.2s, text-shadow 0.2s;
}

.service-card__link:hover {
    color: #b9fbff;
    text-shadow: 0 0 14px rgba(61, 242, 255, 0.5);
}

.empty-state {
    padding: 32px;
    border: 1px dashed rgba(0, 255, 65, 0.25);
    border-radius: 8px;
    font-size: 0.85rem;
}

.empty-state .prompt {
    color: var(--cyan);
}

.empty-state__muted {
    margin-top: 8px;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid rgba(0, 255, 65, 0.14);
    border-radius: 8px;
    background: rgba(0, 6, 3, 0.4);
    overflow: hidden;
}

.process__step {
    position: relative;
    padding: 22px 20px 20px;
    border-right: 1px solid rgba(0, 255, 65, 0.1);
    transition: background 0.25s;
}

.process__step:last-child {
    border-right: 0;
}

.process__step:hover {
    background: rgba(0, 255, 65, 0.035);
}

.process__number {
    display: block;
    margin-bottom: 18px;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1;
    color: rgba(0, 255, 65, 0.22);
    letter-spacing: -0.04em;
}

.process__step h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.02em;
}

.process__step p {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    line-height: 1.7;
}

.process__state {
    display: inline-block;
    margin-top: 18px;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-muted);
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: clamp(26px, 4vw, 52px);
    align-items: start;
}

.contact__intro > p {
    color: var(--text-dim);
    font-size: 0.84rem;
    max-width: 38ch;
}

.contact__list {
    margin-top: 24px;
    border-top: 1px solid rgba(0, 255, 65, 0.1);
}

.contact__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.09);
    font-size: 0.72rem;
    color: var(--text);
}

.contact__list span {
    color: var(--green-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.65rem;
}

.contact__note {
    margin-top: 22px;
    font-size: 0.72rem !important;
    color: var(--green-dim) !important;
    line-height: 1.8;
}

.contact__note .prompt {
    color: var(--cyan);
}

.request-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(18px, 3vw, 26px);
    border: 1px solid rgba(0, 255, 65, 0.16);
    border-radius: 8px;
    background: rgba(0, 8, 4, 0.6);
    box-shadow: inset 0 0 50px rgba(0, 255, 65, 0.025);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.field label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}

.field__prompt {
    color: var(--cyan);
    margin-right: 4px;
}

.field__required {
    color: var(--green);
    margin-left: 3px;
}

.field input,
.field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid rgba(0, 255, 65, 0.16);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #e9fff0;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(178, 255, 200, 0.25);
}

.field input:hover,
.field textarea:hover {
    border-color: rgba(0, 255, 65, 0.28);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(0, 255, 65, 0.65);
    background: rgba(0, 20, 8, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 255, 65, 0.06), 0 0 26px rgba(0, 255, 65, 0.05);
}

.field textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.7;
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: rgba(255, 95, 86, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 95, 86, 0.06);
}

.field__error {
    min-height: 0;
    margin: 0;
    color: #ff8b84;
    font-size: 0.68rem;
    line-height: 1.5;
}

.field__error:empty {
    display: none;
}

.field__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.field__counter {
    color: var(--green-muted);
    font-size: 0.66rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

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

.request-form__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 4px;
}

.request-form__hint {
    font-size: 0.66rem;
    color: var(--text-dim);
    opacity: 0.7;
}

.request-form__hint kbd {
    padding: 1px 4px;
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.62rem;
    color: var(--text);
}

.response {
    border: 1px solid rgba(0, 255, 65, 0.22);
    border-radius: 6px;
    background: #000;
    overflow: hidden;
    animation: response-in 0.35s var(--ease) both;
}

@keyframes response-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.response__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.14);
    background: rgba(0, 255, 65, 0.04);
    font-size: 9px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--green-muted);
}

.response__body {
    padding: 12px;
    font-size: 0.76rem;
    line-height: 1.9;
}

.response__line {
    display: flex;
    gap: 8px;
    color: var(--green);
    overflow-wrap: anywhere;
}

.response__line::before {
    content: ">";
    color: var(--cyan);
    flex-shrink: 0;
}

.response__line--muted {
    color: var(--text-dim);
}

.response__line--error {
    color: #ff8b84;
}

.response__line--error::before {
    color: #ff5f56;
}

.response__line--typing::after {
    content: "";
    display: inline-block;
    width: 0.55ch;
    height: 1em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -0.12em;
    animation: blink 1s step-end infinite;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.terminal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(44px, 6vw, 72px);
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.12);
    font-size: 0.66rem;
    color: var(--text-dim);
}

.terminal__footer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.terminal__footer a {
    color: var(--green-dim);
    transition: color 0.2s;
}

.terminal__footer a:hover {
    color: var(--green);
}

.terminal__build {
    color: var(--green-muted);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal-ready {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-ready.is-visible {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1000px) {
    .hud__nav a {
        padding: 7px 7px;
        gap: 4px;
    }

    .hud__clock {
        display: none;
    }

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

    .whoami {
        max-width: 520px;
    }

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

    .contact__intro > p {
        max-width: 60ch;
    }

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

    .process__step:nth-child(2) {
        border-right: 0;
    }

    .process__step:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    }
}

@media (max-width: 760px) {
    :root {
        --hud-height: 58px;
    }

    body {
        font-size: 14px;
    }

    .hud {
        gap: 12px;
    }

    .hud__nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        gap: 0;
        justify-content: space-around;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(0, 255, 65, 0.18);
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(16px);
    }

    .hud__nav a {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 5px 8px;
        font-size: 10px;
    }

    .hud__index {
        font-size: 8px;
        padding: 0;
    }

    .hud__online,
    .hud__admin {
        display: none;
    }

    .shell {
        padding-bottom: 96px;
    }

    .terminal__body {
        padding: 20px 16px;
    }

    .terminal__badge {
        display: none;
    }

    .terminal__title {
        text-align: right;
        font-size: 10px;
    }

    .hero__title {
        font-size: clamp(2.2rem, 11vw, 3.4rem);
    }

    .boot__hint {
        display: none;
    }

    .status-strip {
        gap: 8px 0;
    }

    .status-strip li {
        padding: 0 12px;
        font-size: 10px;
    }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section__badge {
        align-self: flex-start;
    }

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

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

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

    .process__step {
        border-right: 0;
        border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    }

    .process__step:last-child {
        border-bottom: 0;
    }

    .process__number {
        margin-bottom: 10px;
        font-size: 1.35rem;
    }

    .terminal__footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .request-form__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .request-form__hint {
        width: 100%;
        text-align: center;
    }

    .whoami > div {
        grid-template-columns: 74px minmax(0, 1fr);
    }
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

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

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

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

    .scene__floor,
    .scene__glow {
        animation: none;
    }
}
