/* ========================================= */
/*   REAS STUDIO — HOMEPAGE (Minimalist Dark) */
/*   Aesthetic: Vercel / Linear              */
/* ========================================= */

:root {
    /* Core surfaces */
    --bg: #000000;
    --bg-elev-1: #0a0a0a;
    --bg-elev-2: #111111;
    --bg-elev-3: #161616;

    /* Borders */
    --border: #1f1f1f;
    --border-strong: #2a2a2a;
    --border-hover: #3a3a3a;

    /* Text */
    --text: #ffffff;
    --text-soft: #ededed;
    --text-muted: #8a8a8a;
    --text-faint: #5a5a5a;

    /* Accents (used very sparingly) */
    --accent: #ffffff;
    --glow: rgba(255, 255, 255, 0.06);

    /* Type */
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', ui-monospace, monospace;

    /* Radii */
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-pill: 999px;

    /* Layout */
    --container: 1180px;
    --container-pad: clamp(20px, 5vw, 40px);

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.5s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

::selection {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

.section {
    padding: clamp(80px, 12vw, 140px) 0;
    position: relative;
    z-index: 2;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--border-strong);
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.1;
    color: var(--text);
}

.section-sub {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 560px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    transition: transform 0.18s var(--ease), background 0.25s var(--ease),
        border-color 0.25s var(--ease), color 0.25s var(--ease), opacity 0.25s var(--ease);
    white-space: nowrap;
}

.btn ion-icon {
    font-size: 1.05em;
}

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

.btn-primary:hover {
    transform: translateY(-1px);
    background: #e7e7e7;
    border-color: #e7e7e7;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    transform: translateY(-1px);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border-color: transparent;
}

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

.btn-full {
    width: 100%;
}

/* ---------- Background particle canvas ---------- */
.bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Faint circuit / grid veil behind everything */
.bg-veil {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Header / Nav ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.18rem;
    letter-spacing: -0.03em;
    color: var(--text);
    display: inline-flex;
    align-items: baseline;
}

.logo .dot {
    color: var(--text-muted);
}

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

.nav-link {
    position: relative;
    padding: 8px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: color 0.2s var(--ease);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 8px;
    padding: 8px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    color: var(--text);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-cta:hover {
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.04);
}

.nav-cta::after {
    display: none;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.nav-toggle ion-icon {
    font-size: 1.5rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    z-index: 2;
    padding-top: clamp(140px, 18vw, 200px);
    padding-bottom: clamp(70px, 10vw, 110px);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.015);
    margin-bottom: 30px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
    animation: blink 2.4s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.2rem, 5.4vw, 3.9rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.038em;
    color: var(--text);
}

.hero-title .accent {
    background: linear-gradient(180deg, #ffffff 0%, #8a8a8a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.55);
}

.hero-sub {
    margin-top: 26px;
    max-width: 540px;
    color: var(--text-muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-meta {
    margin-top: 48px;
    display: flex;
    gap: clamp(28px, 5vw, 56px);
    flex-wrap: wrap;
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-meta-num {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-meta-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- Terminal window ---------- */
.terminal {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: #0c0c0c;
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a2a2a;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-faint);
    margin: 0 auto;
    padding-right: 42px;
}

.terminal-body {
    padding: 22px 24px 26px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.75;
    color: #d6d6d6;
    min-height: 320px;
}

.t-line {
    white-space: pre;
    min-height: 1.75em;
    opacity: 0;
    transition: opacity 0.15s var(--ease);
}

.t-line.shown {
    opacity: 1;
}

.t-line .ln {
    display: inline-block;
    width: 26px;
    color: var(--text-faint);
    user-select: none;
}

.t-prompt { color: #6a8aff; }
.t-kw { color: #c678dd; }
.t-fn { color: #61afef; }
.t-type { color: #e5c07b; }
.t-str { color: #98c379; }
.t-num { color: #d19a66; }
.t-com { color: #5c6370; font-style: italic; }
.t-mut { color: #e06c75; }

.cursor {
    display: inline-block;
    width: 8px;
    height: 1em;
    background: #d6d6d6;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 1.05s steps(1) infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ---------- Services ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
        rgba(255, 255, 255, 0.05), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-elev-3);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-elev-1);
    display: grid;
    place-items: center;
    color: var(--text);
}

.service-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-tags {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-elev-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
}

.project-shot {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #050505;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.project-card.featured .project-shot {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
    border-bottom: none;
    border-right: 1px solid var(--border);
}

.project-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
    transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}

.project-card:hover .project-shot img {
    transform: scale(1.03);
    filter: saturate(1) contrast(1.02);
}

.project-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.project-body {
    padding: 26px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.project-card.featured .project-body {
    justify-content: center;
    padding: clamp(28px, 4vw, 44px);
}

.project-flagship {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.project-flagship::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--text);
}

.project-card.featured .project-title {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.project-subtitle {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-top: -6px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
}

.project-cta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    width: fit-content;
    transition: gap 0.2s var(--ease);
}

.project-cta ion-icon {
    font-size: 1.05rem;
    transition: transform 0.2s var(--ease);
}

.project-cta:hover {
    gap: 12px;
}

.project-cta:hover ion-icon {
    transform: translateX(2px);
}

.project-status {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 3px 8px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}

/* ---------- Founder ---------- */
.founder {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(36px, 6vw, 72px);
    align-items: center;
}

.founder-photo {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elev-1);
    aspect-ratio: 4 / 5;
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05) brightness(0.95);
    transition: filter 0.5s var(--ease);
}

.founder-photo:hover img {
    filter: grayscale(0.6) contrast(1.05) brightness(0.98);
}

.founder-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

.founder-photo-frame {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--r-lg) - 4px);
    pointer-events: none;
    z-index: 2;
}

.founder-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.founder-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--border-strong);
}

.founder-title {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text);
}

.founder-body {
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.7;
    max-width: 560px;
}

.founder-sig {
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.signature {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
    position: relative;
    padding-bottom: 6px;
}

.signature::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--text-muted), transparent);
}

.founder-role {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.founder-skills {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.founder-skill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 5px 11px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
}

.founder-github {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    width: fit-content;
}

.founder-github:hover {
    color: var(--text);
}

.founder-github ion-icon {
    font-size: 1.1rem;
}

/* ---------- Contact ---------- */
.contact {
    border-top: 1px solid var(--border);
    background: var(--bg-elev-1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(36px, 6vw, 64px);
    align-items: center;
}

.contact-title {
    font-size: clamp(1.8rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.contact-sub {
    margin-top: 16px;
    color: var(--text-muted);
    max-width: 460px;
}

.contact-details {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item ion-icon {
    font-size: 1.1rem;
    color: var(--text);
}

.contact-card {
    background: var(--bg-elev-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-card .btn {
    margin-top: 4px;
}

.contact-card-foot {
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    text-align: center;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 48px);
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-social {
    margin-top: 18px;
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text-muted);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-social a:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
    width: fit-content;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-contact .footer-email {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.footer-contact .btn {
    margin-top: 6px;
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-faint);
    font-size: 0.84rem;
}

.footer-legal {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-legal a {
    color: var(--text-faint);
    transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
    color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .project-card.featured {
        grid-template-columns: 1fr;
    }
    .project-card.featured .project-shot {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 280px;
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .founder {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .founder-photo {
        max-width: 360px;
        aspect-ratio: 1 / 1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--container-pad) 20px;
        background: rgba(0, 0, 0, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .nav.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .nav-link,
    .nav-cta {
        padding: 14px 12px;
        border-radius: var(--r-sm);
        margin-left: 0;
        border: none;
    }
    .nav-cta {
        border: 1px solid var(--border);
    }
    .nav-toggle {
        display: inline-flex;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero-meta {
        gap: 24px 36px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-actions .btn {
        flex: 1 1 auto;
    }
    .terminal-body {
        font-size: 0.76rem;
        padding: 18px 16px 20px;
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .bg-canvas,
    .bg-veil {
        display: none;
    }
}
