/* Layout: single column, sticky glass nav, ember-lit hero, two wide project cards, git-log timeline, marquee, oversized contact.
   Two looks on one token set: "dark" (default, bold, amber glow carried over from the old bbdev.hu) and "light" (minimal, flat, quiet).
   The site's own toggle sets <html data-mode="dark|light">. */
:root {
    --ink: #0e0d12;
    --ink-2: #17151d;
    --ink-3: #201d28;
    --line: #2d2936;
    --fg: #f1ecf5;
    --muted: #a19aae;
    --amber: #ffb547;
    --coral: #ff7a5c;
    --leaf: #8bd99a;
    --accent: var(--amber);

    --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
    --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

    --step--1: clamp(.8rem, .78rem + .1vw, .875rem);
    --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
    --step-1: clamp(1.25rem, 1.15rem + .5vw, 1.5rem);
    --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
    --step-3: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem);
    --step-4: clamp(3.5rem, 1.5rem + 10vw, 10rem);

    --grain: .06;
    --aurora: 28%;
    --name-glow: color-mix(in oklab, var(--amber) 35%, transparent);
    --shadow: 0 30px 60px -30px #000;
    --btn-glow: 0 8px 30px -10px var(--amber);
    --btn-glow-hover: 0 12px 40px -8px var(--amber);
    /* project brand colours, as given */
    --gainzlog: rgb(125 84 199);
    --firsthand: rgb(204 51 51);
    /* lighter versions of the same hue, for small text on the dark ground */
    --gainzlog-text: #a88ae4;
    --firsthand-text: #ff5757;
    --li-blue: #0a66c2;
    --fwd-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M14 4.5 21 11l-7 6.5v-3.9c-4.5-.2-8 1.4-10.5 5.4.5-6.5 4-10.3 10.5-10.6z'/%3E%3C/svg%3E"); /* outlined "forward" arrow shown after every external link */
    --ps-cross: #7fa7ff;
    --ps-circle: #ff6b78;

    --radius: 20px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}
:root[data-mode="light"] {
    --ink: #fbfbf9;
    --ink-2: #ffffff;
    --ink-3: #eeecf1;
    --line: #e5e2e9;
    --fg: #17151d;
    --muted: #6a6476;
    --amber: #a65f00;
    --coral: #c9432a;
    --leaf: #2a8742;
    --grain: 0;
    --aurora: 9%;
    --name-glow: transparent;
    --shadow: 0 24px 48px -28px rgba(23, 21, 29, .28);
    --btn-glow: none;
    --btn-glow-hover: 0 10px 24px -12px rgba(23, 21, 29, .45);
    --gainzlog-text: var(--gainzlog);
    --firsthand-text: var(--firsthand);
    --ps-cross: #2f5fd0;
    --ps-circle: #c92f3f;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--fg);
    font: 400 var(--step-0)/1.65 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color .4s, color .4s;
}
body::after { /* film grain */
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: var(--grain);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--amber); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.dim { color: var(--muted); }
.small { font-size: var(--step--1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
    .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-2); font-weight: 700; }
p { margin: 0; }

/* scroll progress */
.progress {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
    background: linear-gradient(90deg, var(--amber), var(--coral));
    transform-origin: 0 50%;
    transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
    .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

/* nav */
.nav {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 50;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: color-mix(in oklab, var(--ink) 70%, transparent);
    border-bottom: 1px solid color-mix(in oklab, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; font: 800 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -.03em; }
.logo .family { color: var(--amber); }
:root[lang="hu"] .logo .family { order: -1; } /* Hungarian name order: Bozóki Bálint */
@media (max-width: 400px) { .logo { font-size: 1.1rem; } }
.nav-links { display: flex; gap: clamp(.75rem, 2vw, 2rem); align-items: center; font-size: var(--step--1); }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-cta { color: var(--ink); background: var(--amber); padding: .45rem .9rem; border-radius: 999px; font-weight: 600; }
.nav-links .nav-cta:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* language + theme toggles */
.toggles { display: flex; gap: .4rem; }
.toggle {
    height: 34px; min-width: 34px; padding: 0 .6rem;
    display: inline-grid; place-items: center;
    border-radius: 999px; border: 1px solid var(--line);
    background: transparent; color: var(--fg);
    font-size: .72rem; font-weight: 600; letter-spacing: .04em; cursor: pointer;
    transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.toggle:hover { border-color: var(--amber); color: var(--amber); }
.toggle:active { transform: scale(.92); }
.toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-mode="light"] .i-moon { display: block; }
:root[data-mode="light"] .i-sun { display: none; }

/* circular theme reveal (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4rem, 12vh, 9rem) clamp(4rem, 10vh, 7rem);
}
.hero::before { /* slow amber aurora */
    content: "";
    position: absolute;
    inset: -30% -10% auto 30%;
    height: 120%;
    z-index: -2;
    background: radial-gradient(closest-side, color-mix(in oklab, var(--amber) var(--aurora), transparent), transparent 70%);
    filter: blur(30px);
    animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-25%, 15%) scale(1.15); } }
/* the whole page is a firework playground: clicking or tapping never selects text */
body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    cursor: crosshair;
}
a, button, label { cursor: pointer; }
input, textarea { -webkit-user-select: text; user-select: text; cursor: text; } /* the form still needs normal text editing */
/* one fixed canvas over the page; clicks pass through to the content below */
#sparks { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }
.hero-inner { display: grid; gap: 1.6rem; justify-items: start; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: var(--step--1); color: var(--muted);
    border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem .4rem .7rem;
    background: color-mix(in oklab, var(--ink-2) 70%, transparent);
}
.eyebrow .xp { color: var(--amber); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 var(--leaf); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-name {
    font-size: var(--step-4);
    font-weight: 800;
    line-height: .88;
    letter-spacing: -.045em;
    display: grid;
}
.hero-name .family {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 2px var(--amber);
    /* drop-shadow follows the drawn outline only. text-shadow would glow from the
       solid glyph shape in iOS Safari and look like a selection highlight. */
    filter: drop-shadow(0 0 18px var(--name-glow));
}
.char { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc((var(--i) + var(--off, 0)) * 45ms + 150ms); }
.hero-name .family { --off: 6; }
:root[lang="hu"] .hero-name .family { order: -1; --off: 0; }
:root[lang="hu"] .hero-name .given { --off: 6; }
@keyframes rise { from { transform: translateY(.6em) rotate(6deg); opacity: 0; filter: blur(8px); } }

.lede { max-width: 38ch; font-size: var(--step-1); color: color-mix(in oklab, var(--fg) 85%, var(--muted)); }

.term {
    font-size: var(--step--1);
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: .7rem 1rem;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.prompt { color: var(--leaf); margin-right: .5rem; }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--amber); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hint { font-size: .75rem; color: var(--muted); opacity: .7; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font: 600 var(--step--1)/1 var(--body);
    padding: 1rem 1.5rem; border-radius: 999px;
    text-decoration: none; cursor: pointer; border: 0;
    transition: transform .3s var(--ease), background .2s, box-shadow .3s;
}
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: var(--btn-glow); }
.btn-primary:hover { box-shadow: var(--btn-glow-hover); }
.btn-ghost { color: var(--fg); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }

/* sections */
.section { padding-block: clamp(4rem, 10vw, 8rem); }
.section-head { display: grid; gap: .8rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.kicker { font-size: var(--step--1); color: var(--amber); letter-spacing: .04em; }

/* about */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.about-text { display: grid; gap: 1.2rem; max-width: 62ch; color: color-mix(in oklab, var(--fg) 88%, var(--muted)); }
.aside { color: var(--muted); font-style: italic; }
.lenny { font-style: normal; color: var(--amber); white-space: nowrap; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ink); padding: 1.4rem; display: flex; flex-direction: column-reverse; gap: .3rem; }
.stat dd { margin: 0; font: 800 clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem)/1 var(--display); color: var(--amber); font-variant-numeric: tabular-nums; }
.stat dt { font-size: var(--step--1); color: var(--muted); }

/* projects */
#projects { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
#projects .section-head { margin-bottom: 0; }
.project {
    position: relative;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(120% 80% at 100% 0%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
        var(--ink-2);
    border: 1px solid var(--line);
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .5s var(--ease), border-color .3s;
    overflow: hidden;
    --accent-text: var(--accent);
}
.project:hover { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.project.is-tilting { transition: transform .08s linear, border-color .3s; will-change: transform; }
@media (min-width: 900px) { .project { grid-template-columns: 1.15fr 1fr; align-items: center; } }
.project-body { display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.project h3 { font-size: var(--step-3); }
.project-title { display: flex; align-items: center; gap: .3em; }
.project-title img { width: .9em; height: .9em; flex-shrink: 0; object-fit: contain; }
.project-title .hl { color: var(--accent); } /* exact brand colour: GainzLog purple, Firsthand red */
.tag { font-size: .75rem; color: var(--accent-text); text-transform: uppercase; letter-spacing: .08em; }
.tagline { font: 600 var(--step-1)/1.3 var(--display); color: var(--accent-text); }
.project-body > p:not(.tag):not(.tagline) { color: color-mix(in oklab, var(--fg) 85%, var(--muted)); max-width: 56ch; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-size: .8rem; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--ink); }
.link-out { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: gap .2s, color .2s; display: inline-flex; gap: .35rem; }
.link-out:hover { color: var(--accent-text); gap: .6rem; }
.glare {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--accent) 16%, transparent), transparent 45%);
}
.project:hover .glare { opacity: 1; }

/* project screenshots in a minimal browser frame */
.shot {
    margin: 0; min-width: 0;
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); background: var(--ink);
    box-shadow: var(--shadow);
}
.shot-bar { display: flex; align-items: center; gap: .8rem; padding: .55rem .8rem; background: var(--ink-3); border-bottom: 1px solid var(--line); }
.shot-dots { width: 8px; height: 8px; border-radius: 50%; background: var(--line); box-shadow: 13px 0 0 var(--line), 26px 0 0 var(--line); margin-right: 26px; }
.shot-url { flex: 1; font-size: .7rem; color: var(--muted); background: var(--ink); border-radius: 6px; padding: .25rem .6rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot img { display: block; width: 100%; height: auto; }
.offscreen .track { animation-play-state: paused; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; display: grid; gap: 2.2rem; }
.timeline::before {
    content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 2px;
    background: linear-gradient(var(--amber), var(--coral) 50%, var(--line));
    transform-origin: top;
}
.commit { position: relative; display: grid; gap: .35rem; max-width: 70ch; }
.commit::before {
    content: ""; position: absolute; left: calc(-2rem + 0px); top: .35rem;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--ink); border: 2px solid var(--amber);
}
.commit:first-child::before { background: var(--amber); box-shadow: 0 0 0 6px color-mix(in oklab, var(--amber) 20%, transparent); }
.commit.edu::before { border-color: var(--leaf); }
.meta { font-size: var(--step--1); color: var(--muted); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.ref { color: var(--ink); background: var(--amber); padding: .1rem .5rem; border-radius: 6px; font-weight: 600; font-size: .72rem; }
.ref-edu { background: var(--leaf); }
.commit h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.25; }
.commit h3 span { color: var(--muted); font-weight: 400; }
.co-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--muted) 45%, transparent); text-underline-offset: .2em; transition: color .2s, text-decoration-color .2s; }
.co-link:hover { color: var(--amber); text-decoration-color: var(--amber); }
.commit > p:last-child:not(.meta) { color: color-mix(in oklab, var(--fg) 80%, var(--muted)); }

/* marquee */
.stack { overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding-block: .6rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 1rem; flex-shrink: 0; animation: scroll 40s linear infinite; }
.reverse .track { animation-direction: reverse; animation-duration: 48s; }
.marquee:hover .track { animation-play-state: paused; }
.track span {
    font: 600 clamp(1.1rem, 2.5vw, 1.6rem)/1 var(--display);
    padding: .9rem 1.4rem; border-radius: 999px; border: 1px solid var(--line);
    white-space: nowrap; background: var(--ink-2); transition: color .2s, border-color .2s;
}
.track span:hover { color: var(--amber); border-color: var(--amber); }
@keyframes scroll { to { transform: translateX(calc(-50% - .5rem)); } }

/* off the clock */
.hobbies { display: grid; gap: 1rem; }
@media (min-width: 760px) { .hobbies { grid-template-columns: repeat(3, 1fr); } }
.hobby {
    display: grid; gap: .7rem; align-content: start; min-width: 0;
    padding: 1.6rem; border-radius: var(--radius);
    border: 1px solid var(--line); background: var(--ink-2);
    transition: border-color .3s, transform .4s var(--ease);
}
.hobby:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); transform: translateY(-4px); } /* transform, since the scroll reveal owns `translate` */
.hobby-icon {
    width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px;
    color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent);
}
.hobby-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hobby h3 { font-size: var(--step-1); }
.hobby p { color: color-mix(in oklab, var(--fg) 82%, var(--muted)); }

/* external links: forward arrow after the text, tinted with the link colour */
a[target="_blank"]::after {
    content: "";
    display: inline-block; flex-shrink: 0;
    width: .85em; height: .85em; margin-left: .3em; vertical-align: -.05em;
    background-color: currentColor;
    -webkit-mask: var(--fwd-icon) center / contain no-repeat;
    mask: var(--fwd-icon) center / contain no-repeat;
    transition: transform .25s var(--ease);
}
a[target="_blank"]:hover::after { transform: translateX(3px); }
.link-out::after, .footer-li::after { margin-left: 0; } /* these are flex rows with their own gap */

/* contact */
.contact { display: grid; gap: 2rem; }
.big { font-size: var(--step-4); line-height: .92; letter-spacing: -.045em; }
.big em { font-style: normal; color: var(--amber); }
.contact-lead { max-width: 58ch; font-size: var(--step-1); color: color-mix(in oklab, var(--fg) 82%, var(--muted)); }
.contact-grid { max-width: 760px; }
.contact-form { display: grid; gap: 1rem; min-width: 0; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 400 var(--step--1)/1.2 var(--mono); color: var(--muted); letter-spacing: .03em; }
.field label .opt { opacity: .7; }
.field input, .field textarea {
    width: 100%; font: inherit; color: var(--fg);
    background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px;
    padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--amber);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--amber) 18%, transparent);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* honeypot for bots */
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: var(--step--1); color: var(--muted); min-height: 1.4em; }
.form-status[data-kind="ok"] { color: var(--leaf); }
.form-status[data-kind="error"] { color: var(--coral); }

.footer {
    display: grid; gap: 1.2rem; justify-items: center; text-align: center; align-items: center;
    padding-block: 2rem 3rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted);
}
@media (min-width: 760px) {
    .footer { grid-template-columns: 1fr auto 1fr; text-align: left; }
    .footer > :first-child { justify-self: start; }
    .footer > :last-child { justify-self: end; }
}
.footer-li {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--fg); text-decoration: none; font-weight: 600;
    padding: .45rem .9rem .45rem .5rem; border-radius: 999px; border: 1px solid var(--line);
    transition: border-color .2s, color .2s, transform .3s var(--ease);
}
.footer-li svg { width: 22px; height: 22px; }
.footer-li .li-bg { fill: var(--li-blue); }
.footer-li .li-fg { fill: #fff; }
.footer-li:hover { border-color: var(--li-blue); transform: translateY(-2px); }

/* PlayStation-style combo display in the footer */
.combo { display: inline-flex; vertical-align: middle; cursor: help; flex-wrap: wrap; align-items: center; }
.combo .step { display: inline-flex; align-items: center; gap: .2rem; }
.combo .step + .step::before { content: ","; color: var(--muted); }
.combo .plus { color: var(--muted); font-size: .75rem; }
.pad {
    --c: var(--muted);
    width: 1.7em; height: 1.7em; display: inline-grid; place-items: center;
    border-radius: 50%; border: 1px solid var(--line); background: var(--ink-2);
    color: var(--c); font-size: .8rem; line-height: 1;
    transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.pad-dir { border-radius: 6px; }
/* face-button symbols drawn as SVG so ✕ and ○ are the same size, like on the controller */
.pad svg { width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.pad-x { --c: var(--ps-cross); }
.pad-o { --c: var(--ps-circle); }
.pad.hit { background: var(--c); color: var(--ink); border-color: var(--c); transform: translateY(-2px); box-shadow: 0 4px 14px -4px var(--c); }
.pad-dir.hit { --c: var(--amber); }

/* easter egg banner */
.perfect {
    position: fixed; inset: 0; z-index: 90; pointer-events: none;
    display: grid; place-items: center;
    font: 800 clamp(3rem, 14vw, 11rem)/1 var(--display); letter-spacing: -.04em; font-style: italic;
    color: var(--amber);
    -webkit-text-stroke: 3px var(--fg);
    text-shadow: 0 0 80px var(--name-glow);
    animation: perfect 1.8s var(--ease) both;
}
@keyframes perfect {
    0% { opacity: 0; transform: scale(2.4) skewX(-12deg); }
    18% { opacity: 1; transform: scale(1) skewX(-12deg); }
    24% { transform: scale(1.06) skewX(-12deg); }
    80% { opacity: 1; transform: scale(1) skewX(-12deg); }
    100% { opacity: 0; transform: scale(.9) skewX(-12deg); }
}

/* scroll-driven reveals: elements stay fully visible where unsupported */
@supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    .timeline::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 60%; }
}
@keyframes reveal { from { opacity: 0; translate: 0 40px; } } /* translate, not transform, so it never fights the card tilt */
@keyframes draw { from { transform: scaleY(0); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .project { transform: none !important; }
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
