/* ═══════════════════════════════════════════════
   ALEX WABITA — Portfolio Design System
   Theme: Dark · Warm Amber · Editorial
   Fonts: Playfair Display · DM Sans · JetBrains Mono
═══════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
    /* Backgrounds */
    --bg-0:   #0C0C0C;
    --bg-1:   #111111;
    --bg-2:   #181818;
    --bg-3:   #202020;

    /* Borders */
    --border:       rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.13);

    /* Amber accent */
    --amber:      #C9963A;
    --amber-light: #E0A840;
    --amber-dim:  rgba(201, 150, 58, 0.10);
    --amber-glow: rgba(201, 150, 58, 0.06);

    /* Text */
    --t1: #EDEAE4;   /* primary */
    --t2: #9A9390;   /* secondary */
    --t3: #5A5450;   /* muted */

    /* Code syntax */
    --cs-keyword:  #C9963A;
    --cs-string:   #7FBA7A;
    --cs-key:      #86BCDE;
    --cs-operator: #666260;
    --cs-var:      #E0A840;

    /* Typography */
    --ff-display: 'Playfair Display', Georgia, serif;
    --ff-body:    'DM Sans', system-ui, -apple-system, sans-serif;
    --ff-mono:    'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing scale */
    --s1: 0.5rem;
    --s2: 0.75rem;
    --s3: 1.25rem;
    --s4: 2rem;
    --s5: 3.5rem;
    --s6: 6rem;

    /* Radii */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;

    /* Easing */
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Nav height */
    --nav-h: 68px;
}

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

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

body {
    font-family: var(--ff-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--t1);
    background: var(--bg-0);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a        { color: inherit; text-decoration: none; }
img      { max-width: 100%; height: auto; display: block; }
button   { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol   { list-style: none; }
strong   { font-weight: 600; }

/* ── GRAIN TEXTURE ── */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    opacity: 0.028;
    pointer-events: none;
    z-index: 9998;
    animation: grain 8s steps(1) infinite;
}

@keyframes grain {
    0%,100% { transform: translate(0,0) }
    10%  { transform: translate(-2%,-1%) }
    20%  { transform: translate(1%,2%) }
    30%  { transform: translate(-1%,1%) }
    40%  { transform: translate(2%,-2%) }
    50%  { transform: translate(-2%,2%) }
    60%  { transform: translate(1%,-1%) }
    70%  { transform: translate(-1%,2%) }
    80%  { transform: translate(2%,1%) }
    90%  { transform: translate(-1%,-2%) }
}

/* ── AMBIENT GLOW ── */
.ambient {
    position: fixed;
    bottom: -30vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse at center,
        rgba(201, 150, 58, 0.055) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── LOADER ── */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-inner {
    display: flex;
    gap: 9px;
    align-items: center;
}
.loader-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--amber);
    animation: ldot 1.2s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes ldot {
    0%, 80%, 100% { transform: scale(0.55); opacity: 0.35; }
    40%           { transform: scale(1);    opacity: 1; }
}

/* ── LAYOUT ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--s4);
}

.section {
    padding: var(--s6) 0;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.35s var(--ease), border-color 0.35s;
}
.nav.scrolled {
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--s4);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
}

/* Logo */
.nav-logo {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--t1);
    letter-spacing: -0.01em;
    flex-shrink: 0;
    transition: color 0.2s;
}
.nav-logo:hover { color: var(--amber); }

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--s4);
}
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t2);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--amber);
    transition: width 0.3s var(--ease);
}
.nav-link:hover,
.nav-link.active     { color: var(--t1); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav right */
.nav-right {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-shrink: 0;
}

/* Status badge */
.status-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--t2);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 5px 13px;
    border-radius: 100px;
    white-space: nowrap;
}
.status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse-dot 2.2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0); }
    50%      { opacity: .8; box-shadow: 0 0 0 4px rgba(74,222,128,0.2); }
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5.5px;
    padding: 4px;
    width: 32px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--t1);
    border-radius: 2px;
    transition: transform 0.32s var(--ease), opacity 0.2s;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════ */
.section-header { margin-bottom: var(--s5); }

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s2);
}
.section-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--t1);
}

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--r-sm);
    font-family: var(--ff-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.22s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
}
.btn-primary {
    background: var(--amber);
    color: #0C0C0C;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--amber-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,150,58,0.28);
}
.btn-ghost {
    color: var(--t1);
    border: 1px solid var(--border);
    background: transparent;
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--bg-2);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s6);
    align-items: center;
    padding: var(--s5) 0;
}

/* Eyebrow */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--t2);
    letter-spacing: 0.04em;
    margin-bottom: var(--s4);
}
.eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
}

/* Name */
.hero-name {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 8.5vw, 7rem);
    font-weight: 800;
    line-height: 0.93;
    letter-spacing: -0.035em;
    color: var(--t1);
    margin-bottom: var(--s4);
}
.hero-name em {
    font-style: italic;
    color: var(--amber);
}

/* Description */
.hero-desc {
    font-size: 1.05rem;
    color: var(--t2);
    line-height: 1.8;
    max-width: 460px;
    margin-bottom: var(--s5);
}

/* Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--t3);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: fadein 1s 1.2s both;
}
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--t3));
    animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%,100% { opacity: 0.25; transform: scaleY(0.6); }
    50%     { opacity: 1;    transform: scaleY(1); }
}

/* ── Code Window ── */
.code-window {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.code-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 48px 96px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}
.code-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 18px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green  { background: #28C840; }
.code-window-title {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--t3);
    margin-left: 6px;
}
.code-block {
    padding: var(--s4);
    overflow-x: auto;
    font-family: var(--ff-mono);
    font-size: 0.82rem;
    line-height: 1.85;
    color: var(--t1);
    tab-size: 2;
}
.code-block code { display: block; white-space: pre; }

/* Syntax */
.ck  { color: var(--cs-keyword); }
.cv  { color: var(--cs-var); }
.cs  { color: var(--cs-string); }
.ckey { color: var(--cs-key); }
.co  { color: var(--cs-operator); }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--s6);
    align-items: start;
}
.about-text p {
    color: var(--t2);
    margin-bottom: var(--s3);
    font-size: 1.05rem;
    line-height: 1.82;
}
.about-edu {
    font-size: 0.85rem !important;
    color: var(--t3) !important;
    margin-bottom: 0 !important;
    margin-top: var(--s3) !important;
    padding-top: var(--s3);
    border-top: 1px solid var(--border);
}

/* Profile image */
.profile-frame {
    position: relative;
    display: block;
    max-width: 300px;
    margin: 0 auto;
}
.profile-img {
    width: 100%;
    border-radius: var(--r-lg);
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--border);
    filter: grayscale(15%);
    transition: filter 0.5s;
}
.profile-img:hover { filter: grayscale(0%); }
.profile-accent {
    position: absolute;
    inset: -7px;
    border-radius: calc(var(--r-lg) + 4px);
    border: 1px solid rgba(201,150,58,0.28);
    pointer-events: none;
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s2);
    margin-top: var(--s3);
}
.stat-item {
    text-align: center;
    padding: var(--s3) var(--s2);
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}
.stat-number {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.65rem;
    color: var(--t3);
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ══════════════════════════════════════════
   PROJECTS — FLAGSHIP
══════════════════════════════════════════ */
.flagship-card {
    position: relative;
    background: var(--bg-1);
    border: 1px solid rgba(201,150,58,0.22);
    border-radius: var(--r-lg);
    padding: var(--s5);
    margin-bottom: var(--s5);
    overflow: hidden;
}
/* Top amber line */
.flagship-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0.55;
}
/* Ambient corner glow */
.flagship-card::after {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, var(--amber-dim) 0%, transparent 70%);
    pointer-events: none;
}

/* Flagship tag badge */
.flagship-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    background: var(--amber-dim);
    border: 1px solid rgba(201,150,58,0.18);
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: var(--s4);
}

/* Flagship inner grid */
.flagship-inner {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--s5);
    align-items: start;
}

.flagship-name {
    font-family: var(--ff-display);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--t1);
    line-height: 1;
    margin-bottom: var(--s2);
}
.flagship-tagline {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--amber);
    margin-bottom: var(--s3);
}
.flagship-desc {
    color: var(--t2);
    line-height: 1.8;
    margin-bottom: var(--s4);
}

/* Features list */
.flagship-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: var(--s4);
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--t2);
    line-height: 1.55;
}
.feature-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--amber);
    flex-shrink: 0;
    margin-top: 0.48rem;
}

/* Stack pills */
.flagship-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: var(--s4);
}
.stack-pill {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--t2);
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 4px 11px;
    border-radius: var(--r-sm);
    transition: color 0.2s, border-color 0.2s;
}
.stack-pill:hover {
    color: var(--t1);
    border-color: rgba(201,150,58,0.3);
}

/* Links */
.flagship-links {
    display: flex;
    gap: var(--s2);
    flex-wrap: wrap;
}

/* ── Flagship Screenshot ── */
.flagship-media {
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}
.shot-frame {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.shot-frame:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 72px rgba(0,0,0,0.48);
}
.shot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
}
.shot-dots { display: flex; gap: 5px; }
.shot-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.shot-dots span:nth-child(1) { background: #FF5F57; }
.shot-dots span:nth-child(2) { background: #FFBD2E; }
.shot-dots span:nth-child(3) { background: #28C840; }
.shot-url {
    font-family: var(--ff-mono);
    font-size: 0.66rem;
    color: var(--t3);
    margin: 0 auto;
}
.shot-body {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
}
.shot-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
}
.shot-overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.shot-badge {
    font-family: var(--ff-mono);
    font-size: 0.68rem;
    color: var(--t1);
    background: rgba(12,12,12,0.72);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 10px;
    border-radius: 999px;
}
.shot-caption {
    font-size: 0.76rem;
    color: var(--t3);
    line-height: 1.6;
}
.shot-caption code {
    font-family: var(--ff-mono);
    color: var(--t2);
}

/* ── More Projects ── */
.more-projects { margin-top: var(--s5); }

.more-heading {
    display: flex;
    align-items: center;
    gap: var(--s3);
    font-family: var(--ff-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--t2);
    margin-bottom: var(--s4);
}
.more-heading-line {
    flex: 1;
    height: 1px;
    background: var(--border);
    display: block;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: var(--s3);
}

/* Project card */
.project-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.project-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--s2);
}
.project-card-name {
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--t1);
}
.project-card-ext {
    color: var(--t3);
    transition: color 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.project-card-ext:hover { color: var(--amber); }
.project-card-desc {
    font-size: 0.85rem;
    color: var(--t2);
    line-height: 1.65;
    flex: 1;
}
.project-card-footer {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-wrap: wrap;
    margin-top: var(--s1);
}
.project-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--t3);
}
.lang-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.project-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--t3);
    font-family: var(--ff-mono);
}

/* Skeleton */
.project-skeleton {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s4);
    height: 160px;
    position: relative;
    overflow: hidden;
}
.project-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.025), transparent);
    animation: skel-shimmer 1.6s ease-in-out infinite;
}
@keyframes skel-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Coming soon card */
.project-coming-soon {
    background: var(--bg-1);
    border: 1px dashed rgba(201,150,58,0.2);
    border-radius: var(--r-md);
    padding: var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}
.cs-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.8;
}
.cs-name {
    font-family: var(--ff-mono);
    font-size: 0.9rem;
    color: var(--t3);
}
.cs-desc {
    font-size: 0.8rem;
    color: var(--t3);
    line-height: 1.55;
}

/* Language color dots */
.lang-TypeScript { background: #3178c6; }
.lang-JavaScript { background: #f7df1e; }
.lang-Python     { background: #3572A5; }
.lang-CSS        { background: #563d7c; }
.lang-HTML       { background: #e34c26; }
.lang-default    { background: var(--t3); }

/* ══════════════════════════════════════════
   STACK
══════════════════════════════════════════ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--s3);
}
.stack-cat {
    padding: var(--s4);
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color 0.25s, transform 0.3s var(--ease);
}
.stack-cat:hover {
    border-color: rgba(201,150,58,0.2);
    transform: translateY(-3px);
}
.stack-cat-name {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s3);
    padding-bottom: var(--s2);
    border-bottom: 1px solid var(--border);
}
.stack-items {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.stack-item {
    font-family: var(--ff-mono);
    font-size: 0.84rem;
    color: var(--t2);
    padding: 6px 10px;
    border-radius: var(--r-sm);
    transition: background 0.2s, color 0.2s;
}
.stack-item:hover {
    background: var(--bg-2);
    color: var(--t1);
}

/* ══════════════════════════════════════════
   FOCUS
══════════════════════════════════════════ */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--s3);
}
.focus-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s4);
    display: flex;
    flex-direction: column;
    gap: var(--s2);
    transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.focus-card:hover {
    border-color: rgba(201,150,58,0.24);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.28);
}
.focus-kicker {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    opacity: 0.9;
}
.focus-card h3 {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--t1);
    line-height: 1.2;
}
.focus-card p {
    color: var(--t2);
    font-size: 0.93rem;
    line-height: 1.75;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: var(--s5);
    align-items: start;
}
.contact-title {
    font-family: var(--ff-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--t1);
    line-height: 0.95;
    margin: var(--s2) 0 var(--s4);
}
.contact-title em {
    font-style: italic;
    color: var(--amber);
}
.contact-desc {
    color: var(--t2);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 540px;
    margin-bottom: var(--s4);
}
.contact-email {
    display: inline-block;
    font-family: var(--ff-display);
    font-size: clamp(1rem, 2.2vw, 1.5rem);
    font-style: italic;
    color: var(--amber);
    margin-bottom: var(--s4);
    position: relative;
    padding-bottom: 3px;
}
.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--amber);
    transition: width 0.4s var(--ease);
}
.contact-email:hover::after { width: 100%; }
.contact-actions {
    display: flex;
    gap: var(--s3);
    flex-wrap: wrap;
}
.contact-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    border: 1px solid rgba(201,150,58,0.16);
    border-radius: var(--r-lg);
    padding: var(--s4);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.contact-card-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: var(--s2);
}
.contact-card h3 {
    font-family: var(--ff-display);
    font-size: 1.8rem;
    line-height: 1.15;
    margin-bottom: var(--s3);
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-list li {
    position: relative;
    padding-left: 18px;
    color: var(--t2);
    font-size: 0.92rem;
    line-height: 1.65;
}
.contact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    padding: var(--s5) 0 var(--s4);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.footer-top,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s3);
    flex-wrap: wrap;
}
.footer-top {
    padding-bottom: var(--s3);
    margin-bottom: var(--s3);
    border-bottom: 1px solid var(--border);
}
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-name {
    font-family: var(--ff-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--t1);
}
.footer-role {
    font-size: 0.84rem;
    color: var(--t2);
}
.footer-links {
    display: flex;
    align-items: center;
    gap: var(--s3);
    flex-wrap: wrap;
}
.footer-links a {
    font-family: var(--ff-mono);
    font-size: 0.76rem;
    color: var(--t3);
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--amber);
}
.footer-copy {
    font-size: 0.78rem;
    color: var(--t3);
}
.footer-note {
    font-family: var(--ff-mono);
    font-size: 0.72rem;
    color: var(--t3);
}

/* ══════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadein {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 900px (two-col → one-col)
══════════════════════════════════════════ */
@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--s5);
    }
    .hero-card { max-width: 520px; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--s5);
    }
    .about-image { order: -1; max-width: 300px; }

    .flagship-inner {
        grid-template-columns: 1fr;
    }
    .flagship-media {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — 768px (mobile nav)
══════════════════════════════════════════ */
@media (max-width: 768px) {
    :root { --s6: 4rem; }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(12,12,12,0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: var(--s2) var(--s4) var(--s4);
        border-bottom: 1px solid var(--border);
        transform: translateY(-4px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s var(--ease), opacity 0.3s;
        z-index: 99;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-link {
        padding: var(--s2) 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-link:last-child { border-bottom: none; }
    .nav-link::after { display: none; }

    .status-badge { display: none; }
    .hamburger { display: flex; }

    .hero-name { font-size: clamp(3rem, 15vw, 5.5rem); }
    .flagship-card { padding: var(--s4); }

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

    .contact-shell {
        grid-template-columns: 1fr;
        gap: var(--s4);
    }

    .contact-title { font-size: clamp(2.5rem, 12vw, 4rem); }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

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

/* ══════════════════════════════════════════
   RESPONSIVE — 480px (small phones)
══════════════════════════════════════════ */
@media (max-width: 480px) {
    .container { padding: 0 var(--s3); }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn,
    .contact-actions .btn { justify-content: center; }

    .flagship-links {
        flex-direction: column;
    }
    .flagship-links .btn { justify-content: center; }

    .shot-overlay {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .about-stats { grid-template-columns: repeat(3, 1fr); }

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