.skip-link {
    position: absolute; top: -48px; left: 8px;
    background: var(--accent); color: #000;
    padding: 0.5rem 1rem; border-radius: 6px;
    font-family: 'DM Mono', monospace; font-size: 0.7rem;
    text-decoration: none; z-index: 999;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }


:root {
    --bg: #0e0f0b;
    --text: #dedad2;
    --muted: #5a5a50;
    --dim: #3a3a32;
    --accent: #3cff18;
    --border: rgba(255,255,255,0.07);
    --hero-o: #FF4400;
    /* KNOK colour palette — screen blend for dark bg */
    --color-purered: #FF0000;
    --c1: #2845D6;
    --c2: #FF6500;
    --c3: #2FA084;
    --c4: #FFCC00;
    --c5: #B153D7;
    --c6: #FF4B91;
    --c7: #285A48;
    --knok-blend: screen;
    /* Typography Digits colour tokens */
    --c-gold:       #FFC81E;
    --c-gold-deep:  #FFC900;
    --c-amber:      #FFB823;
    --c-vermillion: #FF4400;
    --c-orange:     #FA8112;
    --c-red:        #FF0000;
    --c-coral:      #FA5C5C;
    --c-tangerine:  #FF6500;
    --c-blue:       #0046FF;
    --c-slate:      #3B7597;
    --c-crimson:    #EA2264;
    --c-lavender:   #CB9DF0;
    --c-aqua:       #6DE1D2;
    --c-sage:       #6A9C89;
    --c-teal:       #36ADA3;
    --c-olive:      #898121;
}

[data-theme="light"] {
    --bg: #dedede;
    --text: #191919;
    --muted: #6b6b6b;
    --dim: #b6b6b6;
    --accent: #ff2a00;
    --border: rgba(0,0,0,0.13);
    --hero-o: #FFC300;
    /* KNOK colour remapping for multiply blend */
    --c1: #FF4B91;
    --c2: #FFCC00;
    --c3: #2FA084;
    --c4: #2845D6;
    --c5: #B153D7;
    --c6: #FF6500;
    --c7: #5A7ACD;
    --knok-blend: multiply;
    /* Typography Digits — dark tones for light bg */
    --c-gold:       #7a5c00;
    --c-gold-deep:  #6b5000;
    --c-amber:      #7a5200;
    --c-vermillion: #991a00;
    --c-orange:     #8a4500;
    --c-red:        #990000;
    --c-coral:      #8a2020;
    --c-tangerine:  #8a3800;
    --c-blue:       #002eb3;
    --c-slate:      #1e4a63;
    --c-crimson:    #7a0033;
    --c-lavender:   #4a1a7a;
    --c-aqua:       #1a6b65;
    --c-sage:       #2a5040;
    --c-teal:       #1a5550;
    --c-olive:      #4a4600;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: hidden; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    scrollbar-width: none;
    font-size: clamp(15px, 1.1vw, 17px);
    transition: background 0.6s ease, color 0.6s ease;
}
body::-webkit-scrollbar { display: none; }

#dim-layer {
    position: fixed; inset: 0; background: #000;
    opacity: 0; pointer-events: none; z-index: 102;
    transition: opacity 3s ease;
}

#dim-indicator {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
    display: flex; align-items: center; gap: 0.4rem;
    font-family: 'DM Mono', monospace; font-size: 0.72rem;
    color: var(--accent); opacity: 0;
    transition: opacity 1.5s ease; pointer-events: none;
}
#dim-indicator svg { width: 12px; height: 12px; stroke: var(--accent); fill: none; stroke-width: 2; }

.theme-flash { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; }
.theme-flash.active { opacity: 1; }

.top-bar {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 0.75rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    transition: background 0.6s ease, border-color 0.6s ease;
}
.top-bar-left {
    display: flex; align-items: center; gap: 0.75rem;
}
.top-bar-centre {
    position: absolute; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center;
}
.top-bar-right {
    display: flex; align-items: center;
}

.location-info {
    display: flex; align-items: center; gap: 0.7rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--text);
}
.location-icon { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.weather-icon { width: 13px; height: 13px; stroke: var(--text); fill: none; stroke-width: 2; flex-shrink: 0; }
.temp { color: var(--accent); font-family: 'DM Mono', monospace; }

.time-info {
    position: fixed; right: 1.8rem; top: 50%; transform: translateY(-50%);
    font-family: 'DM Mono', monospace; font-size: 0.7rem;
    color: var(--text); letter-spacing: 0.1em;
    z-index: 99; writing-mode: vertical-rl;
}
.time-info .divider { color: var(--muted); }

.dark-mode-toggle {
    background: transparent; border: 1px solid var(--muted);
    border-radius: 50px;
    padding: 0.25rem 0.7rem; cursor: pointer;
    display: flex; align-items: center; gap: 0.3rem;
    font-family: 'DM Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.6s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}
.dark-mode-toggle:hover { border-color: var(--accent); color: var(--accent); }
.dark-mode-toggle svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }


.shop-toggle {
    background: transparent; border: 1px solid var(--muted);
    border-radius: 50px;
    padding: 0.25rem 0.7rem; cursor: pointer;
    display: flex; align-items: center; gap: 0.3rem;
    font-family: 'DM Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--text); text-decoration: none;
    line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.6s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
}
.shop-toggle:hover { border-color: var(--accent); color: var(--accent); }
.shop-toggle svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }

.container { max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; padding-left: 3rem; padding-right: 3rem; padding-top: 0; padding-bottom: 0; position: relative; z-index: 5; }

/* ── Hero ── */
header {
    height: 100vh; display: flex; align-items: center;
    justify-content: center; position: relative; overflow: hidden;
}

.hero-content { text-align: center; z-index: 10; animation: fadeInUp 1s ease-out; padding-top: 4rem; }

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem; font-weight: 400;
    color: var(--text); letter-spacing: 0.04em;
    margin-bottom: 1.6rem;
}
.hero-tagline .dot { color: var(--text); margin: 0 0.5em; }

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 400; line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
    perspective: 600px;
}
h1 .last-name {
    display: block;
    font-style: italic;
    color: var(--text);
}
h1 .hero-o {
    color: var(--hero-o);
}

.hero-sub {
    margin-top: 2.2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text);
}

/* ── Highlighter block — reusable accent highlight ── */
.hl {
    background: var(--hl-dark, #FFC300);
    color: #000;
    padding: 0.16em 0.32em;
    margin: 0 -0.05em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
[data-theme="light"] .hl { background: var(--hl-light, #FF4400); }

/* ── Hero availability badge ── */
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.55em;
    justify-content: center;
    max-width: min(620px, 88vw);
    margin-top: 2rem;
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text);
    line-height: 1.6; text-align: center;
    transition: border-color 0.25s ease, color 0.25s ease;
    animation: fadeInUp 1s ease-out 0.25s both;
}
.hero-badge:hover { border-color: var(--accent); color: var(--accent); }
.hero-badge-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); flex-shrink: 0;
    animation: badgePulse 2.4s ease-out infinite;
}
@keyframes badgePulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
    70%  { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* ── Hero CTA buttons ── */
.hero-cta {
    display: flex; justify-content: center; gap: 1rem;
    margin-top: 1.6rem;
    animation: fadeInUp 1s ease-out 0.45s both;
}
.hero-btn {
    display: inline-flex; align-items: center; gap: 0.45em;
    padding: 0.55rem 1.2rem;
    border-radius: 100px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.1em; text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease,
                color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.hero-btn svg {
    width: 12px; height: 12px; stroke: currentColor;
    fill: none; stroke-width: 2;
    transition: transform 0.25s ease;
}
.hero-btn:hover { transform: translateY(-2px); }
.hero-btn:hover svg { transform: translateX(3px); }
.hero-btn-primary {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.hero-btn-primary:hover,
.hero-btn-primary:focus-visible,
.hero-btn-primary:active {
    border-color: var(--accent); color: var(--accent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent);
}
.hero-btn-ghost {
    background: transparent; color: var(--text);
    border: 1px solid var(--border);
}
.hero-btn-ghost:hover,
.hero-btn-ghost:focus-visible,
.hero-btn-ghost:active {
    border-color: var(--accent); color: var(--accent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 30%, transparent);
}

@media (max-width: 520px) {
    .hero-cta { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-btn { width: min(280px, 80vw); justify-content: center; }
    .hero-badge { font-size: 0.6rem; }
}

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

.spin-a {
    display: inline-block;
    transform-style: preserve-3d;
}
@keyframes spinLetter {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}
.spin-a.spinning {
    animation: spinLetter 1s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

/* ── tagline dots twirl (rotateZ) ── */
.dot {
    display: inline-block;
}
@keyframes spinDot {
    0%   { transform: rotateZ(0deg) scale(1); }
    40%  { transform: rotateZ(200deg) scale(1.6); }
    100% { transform: rotateZ(360deg) scale(1); }
}
.dot.spinning {
    animation: spinDot 0.9s cubic-bezier(0.1, 0.75, 0.3, 1) forwards;
}

/* ── Background lines ── */
.floating-lines { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.line { position: absolute; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent); height: 2px; }
[data-theme="light"] .line { background: linear-gradient(90deg, transparent, rgba(0,0,0,0.2), transparent); }
.line:nth-child(1) { width: 300px; top: 20%; left: -300px; animation: floatLine1 15s ease-in-out infinite; }
.line:nth-child(2) { width: 200px; top: 40%; right: -200px; animation: floatLine2 12s ease-in-out infinite 2s; }
.line:nth-child(3) { width: 250px; top: 60%; left: -250px; animation: floatLine3 18s ease-in-out infinite 4s; }
.line:nth-child(4) { width: 180px; top: 80%; right: -180px; animation: floatLine4 14s ease-in-out infinite 1s; }
.line:nth-child(5) { width: 220px; top: 30%; left: -220px; animation: floatLine5 16s ease-in-out infinite 3s; }
@keyframes floatLine1 { 0%,100%{transform:translateX(0) translateY(0);opacity:0} 10%{opacity:1} 50%{transform:translateX(calc(100vw + 300px)) translateY(-30px);opacity:1} 90%{opacity:0} }
@keyframes floatLine2 { 0%,100%{transform:translateX(0) translateY(0);opacity:0} 10%{opacity:1} 50%{transform:translateX(calc(-100vw - 200px)) translateY(40px);opacity:1} 90%{opacity:0} }
@keyframes floatLine3 { 0%,100%{transform:translateX(0) translateY(0);opacity:0} 10%{opacity:1} 50%{transform:translateX(calc(100vw + 250px)) translateY(-20px);opacity:1} 90%{opacity:0} }
@keyframes floatLine4 { 0%,100%{transform:translateX(0) translateY(0);opacity:0} 10%{opacity:1} 50%{transform:translateX(calc(-100vw - 180px)) translateY(25px);opacity:1} 90%{opacity:0} }
@keyframes floatLine5 { 0%,100%{transform:translateX(0) translateY(0);opacity:0} 10%{opacity:1} 50%{transform:translateX(calc(100vw + 220px)) translateY(-35px);opacity:1} 90%{opacity:0} }

/* ── Language switch crossfade ── */
[data-i18n] {
    transition: opacity 0.18s ease;
}
.scramble-char {
    display: inline-block;
    white-space: pre;
}

/* ── Scroll progress line ── */
#scroll-progress {
    position: fixed; top: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent); z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Top-bar blur on scroll ── */
.top-bar.scrolled {
    background: rgba(14,15,11,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .top-bar.scrolled {
    background: rgba(222,222,222,0.9);
}

/* ── Scroll-reveal animations ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    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; }

/* ── Sections ── */
section { padding: clamp(4rem, 8vw, 9rem) 0; border-top: 1px solid var(--border); }

.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1rem; display: block;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 400; letter-spacing: -0.02em;
    color: var(--text); line-height: 1.1;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}
h2 em { font-style: italic; color: var(--accent); }

/* ── Skills — dropdown-style panels (matches .lang-dropdown) ── */
.skills-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    width: 100%;
    align-items: start;
}
.skills-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 0;
}
.skills-col-toggle {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: transparent; border: none;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    text-align: left;
    border-radius: 50px;
    transition: background 0.2s ease;
}
.skills-col-toggle:hover { background: rgba(255,255,255,0.06); }
[data-theme="light"] .skills-col-toggle:hover { background: rgba(0,0,0,0.05); }
.skills-col-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent);
    display: block;
}
.skills-chevron {
    width: 12px; height: 12px; flex-shrink: 0;
    stroke: var(--muted); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    transition: transform 0.25s ease, stroke 0.2s ease;
}
.skills-col-toggle:hover .skills-chevron { stroke: var(--accent); }
.skills-col.open .skills-chevron { transform: rotate(180deg); }
.skills-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}
.skills-col.open .skills-panel { grid-template-rows: 1fr; }
.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
    min-height: 0;
    padding-top: 2px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.skills-col.open .skills-list {
    opacity: 1;
    transform: translateY(0);
}
.skills-list li {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.32rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 50px;
    cursor: default;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.skills-list li:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
    color: var(--accent);
}
[data-theme="light"] .skills-list li:hover { background: rgba(0,0,0,0.05); }

/* ── About — split layout ── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
    width: 100%;
}
.about-split > * { min-width: 0; }
.about-body {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.85;
    color: var(--text); font-weight: 300;
}
.about-body p { margin-bottom: 1.4rem; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 500; }

/* ── About headshot ── */
.about-headshot-wrap {
    position: relative;
    width: 50%;
    aspect-ratio: 3 / 4;
    margin-bottom: 2rem;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 82% 100%, 0 100%);
}
/* Bottom fade */
.about-headshot-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
    pointer-events: none;
    z-index: 2;
}
/* Film grain overlay */
.about-headshot-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    mix-blend-mode: overlay;
}
.about-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
}
.about-headshot-wrap:hover .about-headshot {
    filter: grayscale(0%) contrast(1.07);
    transform: scale(1.02);
}

/* Theme-aware image switching */
.headshot-light { display: none; }
.headshot-dark  { display: block; }
[data-theme="light"] .headshot-light { display: block; filter: grayscale(100%) contrast(1.05); }
[data-theme="light"] .headshot-dark  { display: none; }

.what-i-do-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 1.2rem; display: block;
}
.what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--border);
    width: 100%;
}
.what-grid > * { min-width: 0; }
.what-item {
    padding: 1.8rem 0;
    border-top: none; border-left: none; border-right: none;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    user-select: none; -webkit-user-select: none;
    width: 100%; background: none;
    text-align: left; color: inherit; font: inherit;
}
.what-item:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}
.what-item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--border); }
.what-item:nth-child(even) { padding-left: 2rem; }
.what-item-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    margin-bottom: 0.8rem;
}
.what-item-header:hover .what-title { color: var(--accent); }
.what-item.open .what-title { color: var(--accent); }
.what-title {
    font-size: 0.95rem; font-weight: 500;
    color: var(--text); flex: 1;
    transition: color 0.3s ease;
}
.what-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.what-arrow svg { width: 20px; height: 20px; stroke: var(--text); fill: none; stroke-width: 3; transition: stroke 0.3s ease; }
.what-item-header:hover .what-arrow svg { stroke: var(--accent); }
.what-item.open .what-arrow { transform: rotate(45deg); }
.what-item.open .what-arrow svg { stroke: var(--accent); }

/* Always-visible preview text */
.what-preview {
    font-size: 0.88rem; line-height: 1.75;
    color: var(--text); font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* Extra text revealed on expand */
.what-body {
    overflow: hidden; height: 0;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.what-body-inner {
    padding-top: 0.3rem;
    opacity: 0; transform: translateY(-4px);
    transition: opacity 0.35s ease 0.05s, transform 0.45s cubic-bezier(0.16,1,0.3,1) 0.05s;
}
.what-item.open .what-body-inner { opacity: 1; transform: translateY(0); }
.what-item.open .what-preview {
    -webkit-line-clamp: unset;
    overflow: visible;
}
.what-desc {
    font-size: 0.85rem; line-height: 1.75;
    color: var(--text); font-weight: 300;
}

/* ── Projects accordion ── */
.projects-accordion { border-top: 1px solid var(--border); width: 100%; overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.accordion-header {
    display: flex; align-items: center; gap: 2rem;
    padding: 1.8rem 0; cursor: pointer;
    transition: all 0.3s ease;
    user-select: none; -webkit-user-select: none;
    width: 100%; background: none; border: none; text-align: left;
    color: inherit; font: inherit;
}
.accordion-header:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}
.accordion-header:hover .accordion-title { color: var(--accent); }
.accordion-header:hover .accordion-num { color: var(--accent); }
.accordion-num {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem; color: var(--text);
    min-width: 2rem; letter-spacing: 0.08em;
    transition: color 0.3s ease;
}
.accordion-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 400; color: var(--text);
    flex: 1; letter-spacing: -0.01em;
    transition: color 0.3s ease;
}
.accordion-arrow {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-arrow svg { width: 24px; height: 24px; stroke: var(--text); fill: none; stroke-width: 3; transition: stroke 0.3s ease; }
.accordion-header:hover .accordion-arrow svg { stroke: var(--accent); }
.accordion-item.open .accordion-arrow { transform: rotate(45deg); }
.accordion-item.open .accordion-arrow svg { stroke: var(--accent); }
.accordion-item.open .accordion-title { color: var(--accent); }
.accordion-item.open .accordion-num { color: var(--accent); }
.accordion-body { overflow: hidden; height: 0; transition: height 0.55s cubic-bezier(0.16, 1, 0.3, 1); padding: 0 0 0 4rem; }
.accordion-body-inner {
    padding-bottom: 2.5rem; opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.4s ease 0.05s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    user-select: none; -webkit-user-select: none;
}
.accordion-item.open .accordion-body-inner { user-select: text; -webkit-user-select: text; opacity: 1; transform: translateY(0); }
.accordion-body p {
    font-size: 0.88rem; line-height: 1.85;
    color: var(--text); opacity: 0.72; font-weight: 300;
    max-width: 720px; margin-bottom: 1.4rem;
}
.project-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--accent); text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}
.project-link:hover { gap: 0.9rem; }
.project-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Project tech tags ── */
.project-tags {
    display: flex; flex-wrap: wrap; gap: 0.3rem;
    margin-bottom: 1.2rem;
}
.project-tag {
    font-family: 'DM Mono', monospace;
    font-size: 0.57rem; letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.18rem 0.52rem;
    border: 1px solid var(--muted);
    border-radius: 50px;
    line-height: 1;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.accordion-item.open .project-tag { color: var(--text); border-color: var(--muted); }
.accordion-item.open .project-tag:hover { color: var(--accent); border-color: var(--accent); }
.certifications .project-tag { color: var(--text); border-color: var(--muted); }
.cert-card .project-tag { transition: color 0.3s ease, border-color 0.3s ease; }
.cert-card:hover .project-tag,
.cert-card:focus-visible .project-tag,
.cert-card:active .project-tag { color: var(--accent); border-color: var(--accent); }

/* ── Stats bar ── */
.stats-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 3rem 2rem;
    flex-wrap: wrap;
}
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    overflow: visible;
    text-decoration: none;
    color: inherit;
}
.stat-item:nth-of-type(1) { animation: floatStat1 3.8s ease-in-out infinite; }
.stat-item:nth-of-type(2) { animation: floatStat2 5.1s ease-in-out infinite; }
.stat-item:nth-of-type(3) { animation: floatStat3 4.3s ease-in-out infinite; }
.stat-item:nth-of-type(4) { animation: floatStat4 6.0s ease-in-out infinite; }
.stat-item:nth-of-type(5) { animation: floatStat5 4.7s ease-in-out infinite 0.8s; }

.stat-item:hover {
    animation-play-state: paused;
}

@keyframes floatStat1 {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); }
    20%  { transform: translateY(-10px) scale(1.03) rotate(1deg); }
    50%  { transform: translateY(-5px) scale(0.97) rotate(-0.5deg); }
    75%  { transform: translateY(-13px) scale(1.02) rotate(0.8deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}
@keyframes floatStat2 {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); }
    15%  { transform: translateY(-14px) scale(1.04) rotate(-1.2deg); }
    45%  { transform: translateY(-4px) scale(0.96) rotate(0.6deg); }
    70%  { transform: translateY(-10px) scale(1.02) rotate(-0.8deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}
@keyframes floatStat3 {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); }
    30%  { transform: translateY(-7px) scale(1.05) rotate(1deg); }
    55%  { transform: translateY(-15px) scale(0.97) rotate(-0.7deg); }
    80%  { transform: translateY(-4px) scale(1.01) rotate(0.4deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}
@keyframes floatStat4 {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); }
    25%  { transform: translateY(-11px) scale(0.96) rotate(-1deg); }
    60%  { transform: translateY(-6px) scale(1.04) rotate(0.9deg); }
    85%  { transform: translateY(-13px) scale(1.01) rotate(-0.5deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}
@keyframes floatStat5 {
    0%   { transform: translateY(0px) scale(1) rotate(0deg); }
    22%  { transform: translateY(-9px) scale(1.03) rotate(-0.9deg); }
    52%  { transform: translateY(-14px) scale(0.97) rotate(0.7deg); }
    78%  { transform: translateY(-5px) scale(1.02) rotate(-0.4deg); }
    100% { transform: translateY(0px) scale(1) rotate(0deg); }
}

/* Orbiting dot — radius scales with circle size via --orbit-r */
.stats-bar { --orbit-r: 44px; }
.stat-item::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.65;
    top: calc(50% - 2.5px);
    left: calc(50% - 2.5px);
    transform-origin: 2.5px 2.5px;
}
.stat-item:nth-of-type(1)::after { animation: orbitDot1 6s linear infinite; }
.stat-item:nth-of-type(2)::after { animation: orbitDot2 8s linear infinite reverse; }
.stat-item:nth-of-type(3)::after { animation: orbitDot3 7s linear infinite 1.2s; }
.stat-item:nth-of-type(4)::after { animation: orbitDot4 9s linear infinite reverse 0.5s; }
.stat-item:nth-of-type(5)::after { animation: orbitDot5 7.5s linear infinite 0.9s; }
@keyframes orbitDot1 {
    from { transform: rotate(0deg) translateY(calc(var(--orbit-r) * -1)); }
    to   { transform: rotate(360deg) translateY(calc(var(--orbit-r) * -1)); }
}
@keyframes orbitDot2 {
    from { transform: rotate(0deg) translateY(calc(var(--orbit-r) * -1)); }
    to   { transform: rotate(360deg) translateY(calc(var(--orbit-r) * -1)); }
}
@keyframes orbitDot3 {
    from { transform: rotate(0deg) translateY(calc(var(--orbit-r) * -1)); }
    to   { transform: rotate(360deg) translateY(calc(var(--orbit-r) * -1)); }
}
@keyframes orbitDot4 {
    from { transform: rotate(0deg) translateY(calc(var(--orbit-r) * -1)); }
    to   { transform: rotate(360deg) translateY(calc(var(--orbit-r) * -1)); }
}
@keyframes orbitDot5 {
    from { transform: rotate(0deg) translateY(calc(var(--orbit-r) * -1)); }
    to   { transform: rotate(360deg) translateY(calc(var(--orbit-r) * -1)); }
}



.stat-num {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    transition: transform 0.3s ease;
    width: 100%;
}
.stat-item:hover .stat-num { transform: scale(1.1); }
.stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    text-align: center;
    padding: 0 0.5rem;
    transition: color 0.3s ease;
}
.stat-item:hover .stat-label { color: var(--accent); }

/* ── Cert cards ── */
.cert-scroll-container {
    width: 100%;
}
.cert-grid {
    display: flex;
    flex-direction: row;
    gap: clamp(0.5rem, 1vw, 0.7rem);
    background: transparent;
    width: 100%;
    overflow: visible;
    align-items: stretch;
}
.cert-card {
    background: var(--bg);
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-height: 240px;
    box-sizing: border-box;
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
    transition: background 0.3s ease, transform 0.2s cubic-bezier(.22,.61,.36,1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
}
.cert-card:hover,
.cert-card:focus-visible,
.cert-card:active { background: rgba(255,255,255,0.03); z-index: 2; }

/* Blood group design element (A+) */
.cert-card--blood { overflow: hidden; }
.cert-blood-group {
    position: absolute;
    left: 50%;
    top: 54%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 13rem;
    line-height: 0.8;
    letter-spacing: -0.04em;
    color: #fa1e0e;
    opacity: 0.30;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
    z-index: 0;
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.22,.61,.36,1);
}
[data-theme="light"] .cert-blood-group { color: #fa1e0e; opacity: 0.22; }
.cert-card--blood:hover .cert-blood-group,
.cert-card--blood:focus-visible .cert-blood-group,
.cert-card--blood:active .cert-blood-group {
    opacity: 0.40;
    transform: translate(-50%, -50%) scale(1.04);
}
/* Keep the card content above the watermark */
.cert-card--blood .cert-card-top,
.cert-card--blood .cert-card-tags,
.cert-card--blood .cert-card-meta { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
    .cert-card { transition: background 0.3s ease; }
}
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .cert-card:focus-visible,
[data-theme="light"] .cert-card:active { background: rgba(0,0,0,0.02); }
.cert-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
}
.cert-card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.75rem, 1vw, 0.95rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1.4;
    transition: color 0.3s ease;
}
.cert-card:hover .cert-card-title,
.cert-card:focus-visible .cert-card-title,
.cert-card:active .cert-card-title { color: var(--accent); }
.cert-card-arrow {
    flex-shrink: 0;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--text);
    border-radius: 50%;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.cert-card:hover .cert-card-arrow,
.cert-card:focus-visible .cert-card-arrow,
.cert-card:active .cert-card-arrow { border-color: var(--accent); transform: translate(2px, -2px); }
.cert-card-arrow svg { width: 10px; height: 10px; stroke: var(--text); fill: none; stroke-width: 2; transition: stroke 0.3s ease; }
.cert-card:hover .cert-card-arrow svg,
.cert-card:focus-visible .cert-card-arrow svg,
.cert-card:active .cert-card-arrow svg { stroke: var(--accent); }
.cert-card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.cert-card-meta {
    display: flex; flex-direction: column; gap: 0.35rem;
    margin-top: auto;
}
.cert-card-meta span {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    color: var(--text);
    transition: color 0.3s ease;
}
.cert-card:hover .cert-card-meta span,
.cert-card:focus-visible .cert-card-meta span,
.cert-card:active .cert-card-meta span { color: var(--accent); }
.cert-scroll-hint { display: none; align-items: center; gap: 0.5rem; font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--text); margin-bottom: 1rem; }
.cert-scroll-hint svg { width: 14px; height: 14px; stroke: var(--text); fill: none; stroke-width: 2; flex-shrink: 0; }
@media (max-width: 900px) {
    .cert-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        margin: 0 -3rem;
        padding: 0 3rem;
        cursor: grab;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
    .cert-scroll-container:active { cursor: grabbing; }
    .cert-scroll-container::-webkit-scrollbar { display: none; }
    .cert-grid { width: max-content; }
    .cert-card { width: 220px; flex: none; }
    .cert-scroll-hint { display: flex; }
}
/* ── Writing — mobile list (unused, mindmap shown instead) ── */

/* ── Writing — radial mind-map ── */
.writing-intro {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0.75;
}
.writing-mindmap {
    padding: 1rem 0 3rem;
    width: 100%;
}

/* Radial container — CSS Grid keeps every card in its own track,
   so rows/columns auto-size to real content height/width and
   cards can never overlap, regardless of text length or viewport. */
.mindmap-radial {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    overflow: visible;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(130px, auto) minmax(150px, 1fr);
    grid-template-areas:
        "tl .   tr"
        "ml hub mr"
        "bl bc  br";
    column-gap: clamp(0.75rem, 3vw, 2.5rem);
    row-gap: clamp(1.75rem, 4vw, 3rem);
    align-items: center;
    padding: 1.5rem 0.5rem;
}

/* SVG lines overlay */
.mindmap-svg-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}
.mindmap-svg-lines line,
.mindmap-svg-lines polyline {
    fill: none;
    stroke: var(--dim);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}
/* Lit connector — slightly heavier so it reads clearly even where
   the mobile trunks overlap into a shared spine. */
.mindmap-svg-lines .mm-line.is-lit {
    stroke: var(--accent);
    stroke-width: 2;
}

/* Hub wrap — sits in the centre grid cell */
.mindmap-hub-wrap {
    grid-area: hub;
    justify-self: center;
    align-self: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mindmap-hub {
    flex-shrink: 0;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    text-align: center;
    text-decoration: none;
    padding: 1rem;
    line-height: 1.4;
    cursor: pointer;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    user-select: none;
    z-index: 2;
}
[data-theme="light"] .mindmap-hub {
    border-color: rgba(0,0,0,0.28);
}
/* Idle pulse ring — a quiet, permanent "this is clickable" cue */
.mindmap-hub::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    animation: hubPulse 2.4s ease-in-out infinite;
}
@keyframes hubPulse {
    0%,100% { opacity: 0; transform: scale(0.88); }
    50%      { opacity: 0.35; transform: scale(1.05); }
}
/* Focus (keyboard) — accent glow on all devices. Hover is gated to
   real pointer devices below so a tap never leaves the hub stuck lit. */
.mindmap-hub:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(60,255,24,0.07), 0 0 28px rgba(60,255,24,0.08);
    color: var(--accent);
}
[data-theme="light"] .mindmap-hub:focus-visible {
    box-shadow: 0 0 0 5px rgba(255,42,0,0.07), 0 0 28px rgba(255,42,0,0.06);
}
.mindmap-hub:focus-visible::after {
    animation: none;
    opacity: 0;
}
@media (hover: hover) {
    .mindmap-hub:hover {
        border-color: var(--accent);
        box-shadow: 0 0 0 5px rgba(60,255,24,0.07), 0 0 28px rgba(60,255,24,0.08);
        color: var(--accent);
    }
    [data-theme="light"] .mindmap-hub:hover {
        box-shadow: 0 0 0 5px rgba(255,42,0,0.07), 0 0 28px rgba(255,42,0,0.06);
    }
    .mindmap-hub:hover::after {
        animation: none;
        opacity: 0;
    }
}
/* Hub glow when any card is hovered/focused/tapped — same styling
   as the hub's own hover, toggled from JS so card + line + circle
   light up together as one continuous accent path. */
.mindmap-hub.hub-glow {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(60,255,24,0.07), 0 0 28px rgba(60,255,24,0.08);
    color: var(--accent);
}
[data-theme="light"] .mindmap-hub.hub-glow {
    box-shadow: 0 0 0 5px rgba(255,42,0,0.07), 0 0 28px rgba(255,42,0,0.06);
}
.mindmap-hub.hub-glow::after {
    animation: none;
    opacity: 0;
}

/* Nodes — grid items, fanned toward the edge of their own cell */
.mindmap-node {
    display: inline-flex;
    flex-direction: column;
    border: 1px solid var(--dim);
    border-radius: 20px;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    color: var(--text);
    max-width: 200px;
    z-index: 2;
    /* Hidden state — collapses to a point at its own center */
    opacity: 0;
    transform: scale(0);
    transform-origin: center center;
    pointer-events: none;
    transition:
        opacity    0.3s ease,
        transform  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color 0.3s ease,
        color        0.3s ease,
        box-shadow   0.3s ease;
}

/* Grid-area placement — desktop (7 nodes fanned around a centred hub) */
/* node 1: Art of Becoming — bottom centre */
.mindmap-node[data-node="1"] { grid-area: bc; justify-self: center; align-self: end; }
/* node 2: Art of Unlearning — top right */
.mindmap-node[data-node="2"] { grid-area: tr; justify-self: end; align-self: start; }
/* node 3: Building Resilience — top left */
.mindmap-node[data-node="3"] { grid-area: tl; justify-self: start; align-self: start; max-width: 210px; }
/* node 4: Road Is Always Calling — mid left */
.mindmap-node[data-node="4"] { grid-area: ml; justify-self: start; align-self: center; }
/* node 5: One Ear, Two Kids — mid right */
.mindmap-node[data-node="5"] { grid-area: mr; justify-self: end; align-self: center; }
/* node 6: Co-Evolving — bottom left */
.mindmap-node[data-node="6"] { grid-area: bl; justify-self: start; align-self: end; max-width: 200px; }
/* node 7: The Weight of Enough — bottom right */
.mindmap-node[data-node="7"] { grid-area: br; justify-self: end; align-self: end; max-width: 190px; }

/* Open state — snap to full size, keep position */
.mindmap-radial.is-open .mindmap-node {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
/* Subtle unique rotations when open, for the hand-placed feel */
.mindmap-radial.is-open .mindmap-node[data-node="1"] { transform: scale(1) rotate(-0.8deg); }
.mindmap-radial.is-open .mindmap-node[data-node="2"] { transform: scale(1) rotate( 0.6deg); }
.mindmap-radial.is-open .mindmap-node[data-node="3"] { transform: scale(1) rotate(-1.1deg); }
.mindmap-radial.is-open .mindmap-node[data-node="4"] { transform: scale(1) rotate( 0.5deg); }
.mindmap-radial.is-open .mindmap-node[data-node="5"] { transform: scale(1) rotate(-0.7deg); }
.mindmap-radial.is-open .mindmap-node[data-node="6"] { transform: scale(1) rotate( 0.9deg); }
.mindmap-radial.is-open .mindmap-node[data-node="7"] { transform: scale(1) rotate(-0.6deg); }

/* Node inner content */
.node-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.82rem, 1.2vw, 0.95rem);
    font-weight: 400;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.node-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text);
    margin-top: 0.25rem;
    line-height: 1.45;
    max-width: 280px;
    transition: color 0.3s ease;
}

/* Hover on individual node */
/* Accent state — driven from JS (hover, focus, and tap) so the card
   lights and fades on the same lifecycle as its line and the hub,
   instead of sticking on after a tap the way CSS :hover does. */
.mindmap-node.is-accent {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(60,255,24,0.06);
}
[data-theme="light"] .mindmap-node.is-accent {
    box-shadow: 0 0 0 3px rgba(255,42,0,0.06);
}
.mindmap-node.is-accent .node-title { color: var(--accent); }
.mindmap-node.is-accent .node-desc  { color: var(--accent); }
/* Line accent on hover — handled in JS by reading hovered node index */

/* ── Mobile mindmap: stacked grid rows ─────────────────────────
   2 nodes per row, hub as its own full-width row in the middle.
   Rows auto-size to content height, so tall cards simply push
   the next row down instead of overlapping anything.
───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mindmap-radial {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "n2 n3"
            "n1 n5"
            "hub hub"
            "n4 n6"
            "n7 n7";
        row-gap: 1.5rem;
        column-gap: 0.75rem;
        padding: 0.5rem 0.25rem 1.5rem;
    }
    .mindmap-node { max-width: none !important; width: 100%; box-sizing: border-box; align-self: center !important; border-radius: 14px; padding: 0.5rem 0.85rem; }
    .mindmap-node[data-node="2"] { grid-area: n2; justify-self: start; }
    .mindmap-node[data-node="3"] { grid-area: n3; justify-self: end; }
    .mindmap-node[data-node="1"] { grid-area: n1; justify-self: start; }
    .mindmap-node[data-node="5"] { grid-area: n5; justify-self: end; }
    .mindmap-node[data-node="4"] { grid-area: n4; justify-self: start; }
    .mindmap-node[data-node="6"] { grid-area: n6; justify-self: end; }
    .mindmap-node[data-node="7"] { grid-area: n7; justify-self: center; max-width: 260px !important; }
    .mindmap-hub { width: 112px; height: 112px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
    .mindmap-radial { row-gap: 1.1rem; }
    .mindmap-hub { width: 100px; height: 100px; font-size: 0.76rem; }
    .mindmap-node[data-node="7"] { max-width: 220px !important; }
    .node-title { font-size: 0.74rem; }
    .node-desc  { font-size: 0.6rem; }
}

@media (max-width: 360px) {
    .mindmap-hub { width: 88px; height: 88px; font-size: 0.68rem; }
    .mindmap-node[data-node="7"] { max-width: 190px !important; }
    .mindmap-node { padding: 0.42rem 0.7rem; }
    .node-title { font-size: 0.68rem; }
    .node-desc  { font-size: 0.56rem; }
}

.contact { text-align: center; padding: clamp(4rem, 8vw, 9rem) 0; }
.contact h2 { margin-bottom: 1rem; }
.contact-sub {
    font-family: 'Playfair Display', serif;
    font-style: italic; font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text); margin-bottom: clamp(2rem, 4vw, 3.5rem);
    max-width: 580px; margin-left: auto; margin-right: auto; line-height: 1.75;
}
.contact-links {
    display: flex; gap: 1rem;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 2.5rem;
}
.contact-links a {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text); text-decoration: none;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--muted);
    border-radius: 50px;
    line-height: 1;
    display: inline-flex; align-items: center;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.cv-download {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text); text-decoration: none;
    padding: 0.25rem 0.7rem;
    background: transparent;
    border: 1px solid var(--muted);
    border-radius: 50px;
    line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.cv-download:hover { border-color: var(--accent); color: var(--accent); }
.cv-download svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Section nav dots ── */
#section-nav {
    position: fixed; left: 1.8rem; top: 50%; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 0.65rem;
    z-index: 50;
}
.nav-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--dim);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, height 0.3s ease;
    border: none; padding: 0;
    position: relative;
}
.nav-dot::after {
    content: attr(data-label);
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font-family: 'DM Mono', monospace; font-size: 0.6rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--accent); white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.nav-dot:hover::after { opacity: 1; }
.nav-dot.active {
    background: var(--accent);
    transform: scaleX(1) scaleY(2.5);
    border-radius: 3px;
}
@media (max-width: 768px) { #section-nav { display: none; } }

/* ── Google Play button style ── */
.play-link {
    display: inline-flex; align-items: center; gap: 0.3rem;
    color: var(--text); text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem; letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--muted);
    border-radius: 50px;
    padding: 0.25rem 0.7rem;
    line-height: 1;
    transition: border-color 0.3s ease, color 0.3s ease;
    margin-top: 0.5rem;
}
.play-link:hover { border-color: var(--accent); color: var(--accent); }
.play-link svg { width: 10px; height: 10px; fill: currentColor; flex-shrink: 0; }

/* ── Cert cards equal height ── */
.cert-card { align-self: stretch; height: auto; }

/* ── Active touch state for accordion on mobile ── */
.accordion-header:active .accordion-title { color: var(--accent); }
.accordion-header:active .accordion-num { color: var(--accent); }

/* ── Footer ── */
footer {
    padding: 3rem 2.5rem 2.5rem;
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: stretch;
    gap: 1.5rem;
    text-align: left;
}
.footer-rule {
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        var(--muted) 0, var(--muted) 6px,
        transparent 6px, transparent 12px
    );
    opacity: 0.55;
}
.footer-legal { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-copy {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.14em;
    font-weight: 500; text-transform: uppercase;
    color: var(--text); margin: 0;
}
.footer-rights {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.14em;
    font-weight: 400; text-transform: uppercase;
    color: var(--text); margin: 0;
}
.footer-tagline {
    margin: 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem; letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}
.footer-tagline .ft-bracket { color: var(--text); font-weight: 500; }
.footer-tagline .ft-text { font-weight: 500; color: var(--text); margin: 0 0.55em; }
.made-with-intention {
    position: fixed;
    bottom: 2.8rem;
    left: 2rem;
    color: #fec508;
    font-family: 'DM Mono', monospace;
    font-style: normal;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.made-with-intention .text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.made-with-intention svg { width: 13px; height: 13px; stroke: #fec508; fill: none; stroke-width: 2; }
[data-theme="light"] .made-with-intention { color: #8700ff; }
[data-theme="light"] .made-with-intention svg { stroke: #8700ff; }


/* ── Scroll to top ── */
#scroll-top {
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 2rem auto;
    width: 38px; height: 38px;
    background: transparent;
    border: 1px solid var(--text);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { border-color: var(--accent); transform: translateY(-2px); }
#scroll-top svg { width: 16px; height: 16px; stroke: var(--text); fill: none; stroke-width: 2; transition: stroke 0.3s ease; }
#scroll-top:hover svg { stroke: var(--accent); }

/* ── Responsive ── */

/* Large desktop (1400px+) */
@media (min-width: 1400px) {
    .container { max-width: 1360px; }
    .stat-item { width: 160px; height: 160px; }
    .stats-bar { --orbit-r: 50px; }
    .cert-card { padding: 2rem 1.6rem; }
}

/* Desktop / laptop (1024px–1399px) — default, no overrides needed */
@media (max-width: 1199px) {
    .time-info { right: 1.2rem; font-size: 0.66rem; }
}

/* Tablet landscape / small laptop (1024px) */
@media (max-width: 1023px) {
    .top-bar { padding: 0.75rem 1.2rem; }
    .about-split { grid-template-columns: 1fr; gap: 3.5rem; }
    .skills-table { grid-template-columns: 1fr; gap: 1rem; }
    .what-grid { grid-template-columns: 1fr; }
    .what-item:nth-child(odd) { padding-right: 0; border-right: none; }
    .what-item:nth-child(even) { padding-left: 0; }
    /* Stats */
    .stat-item { width: 120px; height: 120px; }
    .stats-bar { --orbit-r: 38px; }

    /* Cert cards — switch to scroll */
    .cert-scroll-container {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        margin: 0 -3rem;
        padding: 0 3rem;
        cursor: grab;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }
    .cert-scroll-container:active { cursor: grabbing; }
    .cert-scroll-container::-webkit-scrollbar { display: none; }
    .cert-grid { width: max-content; }
    .cert-card { width: 240px; flex: none; min-height: 220px; }
}

/* Tablet portrait (768px) */
@media (max-width: 768px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .top-bar { padding: 0.65rem 1rem; }
    /* time-info stays fixed — reposition below the top bar row */
    .time-info { top: 2.6rem; right: auto; left: 50%;
                 transform: translateX(-50%);
                 writing-mode: horizontal-tb; white-space: nowrap;
                 font-size: 0.64rem; }
    .dark-mode-toggle { font-size: 0.57rem; padding: 0.22rem 0.6rem; }
    .shop-toggle { font-size: 0.57rem; padding: 0.22rem 0.6rem; }
    .location-info { font-size: 0.6rem; gap: 0.5rem; }
    header { padding-top: 6.5rem; height: auto; min-height: 100vh; }
    h1 { font-size: clamp(2.8rem, 13vw, 4.5rem); }
    .hero-tagline { font-size: 0.88rem; }
    .hero-sub { font-size: 1rem; margin-top: 1.6rem; }
    .accordion-header { gap: 1rem; padding: 1.4rem 0; }
    .accordion-body { padding-left: 1.5rem; }
    .contact-links { gap: 0.6rem; }
    .made-with-intention {
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.6rem 0 2rem;
        font-size: 0.68rem;
    }
    .made-with-intention .text { writing-mode: horizontal-tb; }
    footer { padding-bottom: 0; }
    /* Stats */
    .stats-bar { gap: 2rem; padding: 2.5rem 1rem; --orbit-r: 34px; }
    .stat-item { width: 110px; height: 110px; }
    .stat-label { font-size: 0.5rem; }
    /* Certs */
    .cert-scroll-container { margin: 0 -1.5rem; padding: 0 1.5rem; }
    .cert-card { width: 210px; min-height: 200px; padding: 1.2rem 1rem; }
    .cert-card-title { font-size: 0.82rem; }
    /* Writing */
    .writing-intro { font-size: 0.9rem; }
}

/* Large phone (600px) */
@media (max-width: 600px) {
    #dim-indicator { display: none; }
    #section-nav { display: none; }
    .top-bar { padding: 0.5rem 1rem; }
    .time-info { top: 3rem; font-size: 0.6rem; }
    .location-info { font-size: 0.62rem; gap: 0.5rem; }
    .stats-bar { display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem; justify-content: center; padding: 2rem 1rem; --orbit-r: 38px; }
    .stat-item { width: 120px; height: 120px; }
    .cert-card { width: 190px; }
    .made-with-intention { display: flex; position: static; flex-direction: row; padding: 0.6rem 0 2rem; }
}

/* Small phone (480px) */
@media (max-width: 480px) {
    .container { padding-left: 1.2rem; padding-right: 1.2rem; }
    .top-bar { padding: 0.55rem 0.8rem; }
    .dark-mode-toggle { font-size: 0.55rem; padding: 0.2rem 0.55rem; }
    .shop-toggle { font-size: 0.55rem; padding: 0.2rem 0.55rem; }
    .location-info { font-size: 0.57rem; gap: 0.4rem; }
    .accordion-num { display: none; }
    .accordion-body { padding-left: 0; }
    h1 { font-size: clamp(2.4rem, 16vw, 3.5rem); }
    .hero-tagline { font-size: 0.78rem; letter-spacing: 0.02em; }
    .contact-links { flex-direction: column; align-items: center; }
    .contact-links a { width: 100%; max-width: 240px; text-align: center; justify-content: center; }
    .cv-download { width: 100%; max-width: 240px; justify-content: center; }
    .stat-item { width: 105px; height: 105px; }
    .stats-bar { --orbit-r: 33px; }
    .cert-card { width: 170px; min-height: 190px; padding: 1rem 0.8rem; }
    .cert-card-title { font-size: 0.75rem; }
    .cert-card-meta span { font-size: 0.52rem; }
    .accordion-title { font-size: 0.95rem; }
    .made-with-intention { display: flex; position: static; flex-direction: row; font-size: 0.65rem; padding: 0.6rem 0 2rem; }
}

/* Extra small (360px) */
@media (max-width: 360px) {
    .hero-tagline { font-size: 0.7rem; letter-spacing: 0; }
}

/* ═══════════════════════════════════════════════════════
   KNOK MATRIX — geometric SVG digit system (dark mode)
   ═══════════════════════════════════════════════════════ */
.art-digit path,
.art-digit rect,
.art-digit circle,
.art-digit polygon {
    mix-blend-mode: var(--knok-blend);
    transition: mix-blend-mode 0.4s ease;
}
.art-digit .knockout {
    mix-blend-mode: normal !important;
    opacity: 1 !important;
    fill: var(--bg) !important;
    transition: fill 0.6s ease;
}
.art-digit {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Dual-layer stat number ── */
.knok-digits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
/* Light mode desktop: hide KNOK, show typo word-cloud */
[data-theme="light"] .knok-digits { display: flex; }

.typo-digits {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
[data-theme="light"] .typo-digits { display: none; }

.knok-slot {
    width: 130px;
    height: 182px;
    overflow: hidden;
    flex-shrink: 0;
}
.knok-digits--two .knok-slot {
    width: 100px;
    height: 140px;
}
.typo-slot {
    width: 136px;
    height: 182px;
    overflow: hidden;
    flex-shrink: 0;
}
.typo-digits--two .typo-slot {
    width: 108px;
    height: 144px;
}
.typo-slot:empty {
    background: var(--dim);
    border-radius: 4px;
    animation: typoSkeleton 1.3s ease-in-out infinite;
}
@keyframes typoSkeleton {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.7; }
}
.typo-slot .digit-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: typoFadeIn 0.9s ease forwards;
}
@keyframes typoFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@media (max-width: 1023px) {
    .knok-slot { width: 108px; height: 152px; }
    .typo-slot { width: 114px; height: 152px; }
    .knok-digits--two .knok-slot { width: 84px; height: 118px; }
    .typo-digits--two .typo-slot { width: 88px; height: 117px; }
}
@media (max-width: 768px) {
    .knok-slot { width: 90px; height: 126px; }
    .typo-slot { width: 95px; height: 127px; }
    .knok-digits--two .knok-slot { width: 70px; height: 98px; }
    .typo-digits--two .typo-slot { width: 74px; height: 99px; }
}
@media (max-width: 480px) {
    .knok-slot { width: 76px; height: 106px; }
    .typo-slot { width: 80px; height: 107px; }
    .knok-digits--two .knok-slot { width: 60px; height: 84px; }
    .typo-digits--two .typo-slot { width: 63px; height: 84px; }
}

[data-theme="light"] .shimmer-rect { display: none; }

/* ── Mobile performance: disable GPU-heavy effects ── */
@media (max-width: 768px) {
    /* Disable mix-blend-mode on all KNOK SVG shapes — prevents GPU layer explosion */
    .art-digit path,
    .art-digit rect,
    .art-digit circle,
    .art-digit polygon {
        mix-blend-mode: normal !important;
    }
    /* Disable wordLife + shimmer animations — stops ~1,400 concurrent animations */
    .word         { animation: none !important; opacity: var(--wo, 0.9) !important; }
    .shimmer-rect { animation: none !important; opacity: 0 !important; display: none !important; }
    /* Floating background lines stay on: transform/opacity only, compositor-cheap */
}

.w-gold       { fill: var(--c-gold); }
.w-gold-deep  { fill: var(--c-gold-deep); }
.w-amber      { fill: var(--c-amber); }
.w-vermillion { fill: var(--c-vermillion); }
.w-orange     { fill: var(--c-orange); }
.w-red        { fill: var(--c-red); }
.w-coral      { fill: var(--c-coral); }
.w-tangerine  { fill: var(--c-tangerine); }
.w-blue       { fill: var(--c-blue); }
.w-slate      { fill: var(--c-slate); }
.w-crimson    { fill: var(--c-crimson); }
.w-lavender   { fill: var(--c-lavender); }
.w-aqua       { fill: var(--c-aqua); }
.w-sage       { fill: var(--c-sage); }
.w-teal       { fill: var(--c-teal); }
.w-olive      { fill: var(--c-olive); }
.word { transition: fill 0.7s ease; }

@keyframes wordLife {
    0%   { opacity: 0; }
    12%  { opacity: var(--wo, 1); }
    52%  { opacity: calc(var(--wo, 1) * 0.38); }
    100% { opacity: var(--wo, 1); }
}
@keyframes shimmerSweep {
    0%   { transform: translateX(0px); }
    42%  { transform: translateX(600px); }
    100% { transform: translateX(600px); }
}
.shimmer-rect { animation: shimmerSweep 12s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    /* Existing */
    .word         { animation: none !important; opacity: var(--wo, 0.9) !important; }
    .shimmer-rect { animation: none !important; opacity: 0 !important; }
    .typo-slot .digit-svg { animation: none !important; opacity: 1 !important; }
    .typo-slot:empty      { animation: none !important; }
    /* Floating background lines */
    .line { animation: none !important; opacity: 0 !important; }
    /* Scroll-reveal — show immediately, no motion */
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    /* Scramble characters — skip flicker, show final char directly */
    .scramble-char { transition: none !important; }
    /* Language switch crossfade — instant swap */
    [data-i18n] { transition: none !important; }
    /* Scroll-to-top entrance */
    #scroll-top { transition: opacity 0.2s ease, border-color 0.2s ease !important; transform: none !important; }
    #scroll-top.visible { transform: none !important; }
    /* Mindmap nodes */
    .mindmap-node { transition: none !important; }
    /* Stat bar — stop the looping float + orbiting dots */
    .stat-item { animation: none !important; }
    .stat-item::after { animation: none !important; opacity: 0 !important; }
    /* Hero fade-in */
    .hero-content { animation: none !important; opacity: 1 !important; }
    /* Hero badge + CTA — no pulse, no entrance motion */
    .hero-badge-dot { animation: none !important; }
    .hero-badge, .hero-cta { animation: none !important; opacity: 1 !important; }
}

/* ── Language Toggle ─────────────────────────────────── */
.lang-globe-wrap {
    position: relative;
    display: flex; align-items: center;
}
.lang-globe-btn {
    background: transparent; border: none;
    padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text);
    transition: color 0.3s ease;
    flex-shrink: 0;
}
.lang-globe-btn:hover,
.lang-globe-btn.active { color: var(--accent); }
.lang-globe-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 140px;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.lang-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.lang-option {
    display: block;
    width: 100%;
    padding: 0.32rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    text-align: left;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.lang-option:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
    color: var(--accent);
}
[data-theme="light"] .lang-option:hover { background: rgba(0,0,0,0.05); }
.lang-option.current {
    color: var(--accent);
    border-color: var(--border);
    background: rgba(60,255,24,0.05);
}
[data-theme="light"] .lang-option.current { background: rgba(255,42,0,0.05); }
.lang-divider { display: none; }


/* ── Stat backdrop — faint combo chart behind the numbers ─────────── */
.stats-bar { position: relative; }
.stats-bar > .stat-item { z-index: 1; }

.stat-backdrop{
  position:absolute; left:8%; right:8%; bottom:0;
  z-index:0; pointer-events:none;
  opacity:.16; mix-blend-mode:screen;          /* dark is the default theme */
}
.stat-backdrop svg{ width:100%; height:auto; display:block; }

[data-theme="light"] .stat-backdrop{
  opacity:.14; mix-blend-mode:multiply;        /* sinks into the cream */
}

@media (prefers-reduced-motion:no-preference){
  .stat-backdrop .sb-grow{transform:scaleY(0);transform-box:fill-box;transform-origin:bottom;
    animation:sbGrow .8s cubic-bezier(.3,.7,.2,1) forwards;animation-delay:var(--d,0s)}
  .stat-backdrop .sb-line{stroke-dasharray:var(--len);stroke-dashoffset:var(--len);
    animation:sbLine 1.9s cubic-bezier(.55,.02,.2,1) forwards}
  @keyframes sbGrow{to{transform:scaleY(1)}}
  @keyframes sbLine{to{stroke-dashoffset:0}}
}

/* stats reflow to a grid on small screens — keep the backdrop wide-only */
@media (max-width:760px){ .stat-backdrop{ left:0; right:0; } }  /* show on portrait, full width */


/* ── Ecosystem strip — Available on / Built with (added) ── */
.ecosystem { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.eco-row { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.4rem); }
.eco-row + .eco-row { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.eco-label {
    flex: 0 0 auto; min-width: 7rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--text);
}
.eco-divider { flex: 0 0 auto; width: 1px; height: 2.4rem; background: var(--text); }
.eco-marquee {
    flex: 1 1 auto; min-width: 0; overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.eco-track {
    display: flex; width: max-content; align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    will-change: transform;
    animation: eco-scroll var(--eco-speed, 40s) linear infinite;
}
.eco-track--reverse { animation-direction: reverse; }
.eco-row--wide { --eco-speed: 85s; }   /* wider row, longer duration = same visual speed */
@keyframes eco-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.eco-word {
    flex: 0 0 auto; white-space: nowrap; user-select: none;
    font-family: 'DM Sans', sans-serif; font-weight: 1000; font-size: 1rem;
    color: var(--text);
}
@media (max-width: 640px) {
    .eco-row { flex-wrap: wrap; gap: 0.8rem; }
    .eco-divider { display: none; }
    .eco-label { min-width: 0; }
    .eco-marquee { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .eco-track { animation: none; flex-wrap: wrap; width: auto; }
    .eco-marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ── Contact orb: click to change shape (github.com/ShazMoghaddam/orbs) ── */
.contact-orb {
    display: block;
    width: min(120px, 32vw); aspect-ratio: 1;
    margin: calc(-1 * clamp(0.75rem, 2vw, 2rem)) auto clamp(1.5rem, 3vw, 2.25rem);
    padding: 0; border: 0; border-radius: 50%;
    background: none; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.contact-orb canvas { display: block; width: 100%; height: 100%; color: var(--text); }
.contact-orb:focus-visible { outline: 1px solid var(--muted); outline-offset: 4px; }
