/* FILE: assets/css/main.css */

/* ========================================= */
/* 1. RESET & VARIABLES                      */
/* ========================================= */
:root {
    --color-primary: #ff0000;       /* Red X */
    --color-accent: #2979ff;        /* Blue Hover Effect */
    --bg-color: #FBF8FF;            /* Ghost Lavender (Main BG) */
    --card-bg: #ffffff;             /* White Cards */
    --alt-bg: #ffffff;              /* Bright White */
    --text-color: #333333;          /* Dark Text */
    --text-muted: #666666;          /* Grey Text */
    --track-color: #cfcfcf;         
    --font-main: 'Oswald', sans-serif;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.08);
    --btn-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --alt-bg: #111111;
    --text-color: #f0f0f0;
    --text-muted: #aaaaaa;
    --track-color: #444444; 
    --shadow-light: 0 10px 30px rgba(0,0,0,0.5);
}

body {
    margin: 0; padding: 0;
    background-color: var(--bg-color); color: var(--text-color);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden; width: 100%; min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px; background-attachment: fixed;
}

/* ========================================= */
/* 2. TOP BAR & NAVIGATION                   */
/* ========================================= */
.top-bar {
    position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000;
    width: min(1240px, calc(100% - 220px)); height: 72px; box-sizing: border-box; padding: 0 22px 0 26px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px;
    background: rgba(16, 16, 16, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.top-bar.scrolled { background: rgba(12, 12, 12, 0.85); }

.nav-left-group { display: flex; align-items: center; gap: 14px; }
.nav-right-group { display: contents; }
.top-socials { justify-self: end; display: flex; align-items: center; gap: 26px; }
.top-socials a { color: rgba(240, 240, 240, 0.8); font-size: 1.2rem; transition: color 0.3s ease, transform 0.3s ease; }
.top-socials a:hover { color: var(--color-primary); transform: translateY(-2px); }

.js-menu {
    position: fixed; top: 24px; left: 28px; width: 60px; height: 60px; cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 2005; 
}
.menu-lines-wrapper { display: flex; flex-direction: column; justify-content: center; align-items: center; height: 24px; }
.menu-line { display: block; width: 30px; height: 3px; background-color: var(--text-color); margin: 3px 0; transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1); }
.menu-text { font-family: var(--font-main); font-size: 10px; font-weight: 700; letter-spacing: 1px; position: absolute; bottom: 5px; transition: opacity 0.3s ease; color: var(--text-color); }

.text-open { opacity: 1; transform: translateY(0); }
.text-close { opacity: 0; transform: translateY(10px); }

.js-menu.is-active .menu-line { background-color: #fff; } 
.js-menu.is-active .menu-text { color: #fff; }
.js-menu.is-active .text-open { opacity: 0; transform: translateY(-10px); }
.js-menu.is-active .text-close { opacity: 1; transform: translateY(0); }
.js-menu.is-active .menu-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.js-menu.is-active .menu-line:nth-child(2) { opacity: 0; }
.js-menu.is-active .menu-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.site-logo {
    font-family: var(--font-main); font-size: 1.45rem; font-weight: 700;
    color: var(--text-color); text-transform: uppercase; letter-spacing: 2px;
    user-select: none; transition: color 0.3s ease; cursor: pointer;
}
.site-logo:hover { color: var(--color-primary); }

.top-links { display: flex; align-items: center; gap: clamp(28px, 6vw, 110px); list-style: none; margin: 0; padding: 0; }
.t-link {
    font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.03em;
    color: rgba(240, 240, 240, 0.78); text-decoration: none; text-transform: capitalize;
    position: relative; padding-bottom: 5px; transition: color 0.3s;
}
.t-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--color-primary); transition: width 0.3s ease-out;
}
.t-link:hover { color: #fff; }
.t-link:hover::after { width: 100%; }


/* Fix: Hide solid navbar when menu is open */
.header.is-active .top-bar {
    background: transparent !important;
    box-shadow: none !important;
    border-color: transparent !important;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}

/* ========================================= */
/* 3. OVERLAY MENU                           */
/* ========================================= */
.header__nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 1900; background-color: #000; opacity: 0; visibility: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); overflow: hidden;
}
.header.is-active .header__nav { opacity: 1; visibility: visible; }
.nav-bg-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(0.4) contrast(1.2); }
.nav-content { width: 100%; height: 100%; display: flex; justify-content: space-between; padding: 120px 80px 60px; box-sizing: border-box; }
.nav-left { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; width: 50%; }
.nav-link-overlay {
    font-family: var(--font-main); font-size: 3.5rem; line-height: 1.1; font-weight: 700; color: #ffffff;
    text-decoration: none; text-transform: uppercase; letter-spacing: 2px; position: relative; display: inline-block;
    opacity: 0; transform: translateY(20px); transition: color 0.3s ease, transform 0.5s ease, opacity 0.5s ease;
}
.nav-link-overlay:hover { color: var(--color-primary); text-shadow: 0 0 15px rgba(255, 0, 0, 0.4); }
.nav-link-news { display: inline-flex; align-items: center; gap: 0.3em; }
.nav-link-news:hover { color: #3fc4f0; text-shadow: 0 0 12px rgba(63, 196, 240, 0.8), 0 0 32px rgba(27, 159, 207, 0.6); }
.nav-link-news .news-logo { transition: filter 0.3s ease; filter: drop-shadow(0 0 6px rgba(63, 196, 240, 0.55)); }
.nav-link-news:hover .news-logo { filter: drop-shadow(0 0 10px rgba(63, 196, 240, 0.9)); }
.nav-link-intro .intro-x {
    display: inline-block; font-weight: 900; font-size: 1.2em; line-height: 1; margin-right: 0.25em;
    color: #ff2a2a; text-shadow: 0 0 10px rgba(255, 30, 30, 0.75), 0 0 26px rgba(255, 0, 0, 0.45);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-link-intro:hover { color: #ff3b3b; text-shadow: 0 0 12px rgba(255, 40, 40, 0.8), 0 0 32px rgba(255, 0, 0, 0.55); }
.nav-link-intro:hover .intro-x { color: #ff2020; transform: scale(1.12) rotate(-6deg); text-shadow: 0 0 14px rgba(255, 30, 30, 0.95), 0 0 40px rgba(255, 0, 0, 0.7); }

.nav-link-projects { display: inline-flex; align-items: center; gap: 0.3em; }
.projects-logo {
    width: 0.85em; height: 0.85em; flex-shrink: 0; color: #22c55e;
    filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.6));
    transition: color 0.3s ease, filter 0.3s ease, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-link-projects:hover { color: #86efac; text-shadow: 0 0 12px rgba(134, 239, 172, 0.85), 0 0 32px rgba(74, 222, 128, 0.55); }
.nav-link-projects:hover .projects-logo { color: #86efac; filter: drop-shadow(0 0 12px rgba(134, 239, 172, 0.95)); transform: rotate(120deg); }

.nav-link-special { display: inline-flex; align-items: center; gap: 0.3em; }
.special-logo {
    width: 0.9em; height: 0.9em; flex-shrink: 0;
    filter: drop-shadow(-1.5px 0 #ff2bd6) drop-shadow(1.5px 0 #22e6ff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
    transition: filter 0.3s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.special-logo .sp-l { fill: #ffffff; }
.special-logo .sp-d { fill: #b9bfcc; }
.nav-link-special:hover, .header__nav.is-special .nav-link-special {
    color: #ffffff;
    text-shadow: -2px 0 rgba(255, 43, 214, 0.85), 2px 0 rgba(34, 230, 255, 0.85), 0 0 14px rgba(255, 255, 255, 0.9), 0 0 34px rgba(150, 130, 255, 0.6);
}
.nav-link-special:hover .special-logo, .header__nav.is-special .special-logo {
    filter: drop-shadow(-3px 0 #ff2bd6) drop-shadow(3px 0 #22e6ff) drop-shadow(0 0 14px rgba(255, 255, 255, 0.95));
    transform: rotate(135deg);
}
.header.is-active .header__nav.is-special .nav-link-overlay:not(.nav-link-special) { opacity: 0.15; transition-delay: 0s; }

/* SPECIAL click: a hand-drawn arrow points at the LuShadowX X */
.special-arrow {
    position: absolute; left: 0; top: 0; width: 170px; height: auto; pointer-events: none; z-index: 2;
    opacity: 0; transform-origin: 100% 50%;
    transform: translate(var(--ax, 0px), var(--ay, 0px)) rotate(var(--ar, 0deg)) scale(0.4);
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}
.header__nav.is-special .special-arrow {
    opacity: 1; transform: translate(var(--ax, 0px), var(--ay, 0px)) rotate(var(--ar, 0deg)) scale(1);
    animation: special-arrow-nudge 0.9s ease-in-out 0.5s infinite;
}
@keyframes special-arrow-nudge {
    0%, 100% { transform: translate(var(--ax, 0px), var(--ay, 0px)) rotate(var(--ar, 0deg)) translateX(0); }
    50% { transform: translate(var(--ax, 0px), var(--ay, 0px)) rotate(var(--ar, 0deg)) translateX(14px); }
}
.header__nav.is-special .brand-x {
    color: #ffffff;
    text-shadow: -3px 0 rgba(255, 43, 214, 0.85), 3px 0 rgba(34, 230, 255, 0.85), 0 0 30px rgba(255, 255, 255, 0.8);
}

/* Hover previews: menu background swaps to the hovered link's video */
.nav-bg-video { transition: opacity 0.5s ease, transform 0.8s ease; }
.nav-bg-video--preview { opacity: 0; transform: scale(1.05); filter: brightness(0.45) contrast(1.1); }
.header__nav[data-preview="news"] .nav-bg-video--preview[data-preview="news"],
.header__nav[data-preview="intro"] .nav-bg-video--preview[data-preview="intro"],
.header__nav[data-preview="projects"] .nav-bg-video--preview[data-preview="projects"] { opacity: 1; transform: scale(1); }
.header__nav[data-preview] .nav-bg-video--main { opacity: 0; }

/* Progress bar with a running cat */
.preview-bar {
    position: absolute; left: 80px; right: 80px; bottom: 28px; height: 40px;
    opacity: 0; transition: opacity 0.4s ease; pointer-events: none; color: #fff;
    --accent: #ff3b3b; --p: 0;
}
.header__nav[data-preview] .preview-bar { opacity: 1; }
.header__nav[data-preview="news"] .preview-bar { --accent: #3fc4f0; }
.header__nav[data-preview="projects"] .preview-bar { --accent: #6dff8e; }
.preview-bar__track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.15); border-radius: 3px; }
.preview-bar__fill { height: 100%; width: calc(var(--p) * 100%); background: var(--accent); border-radius: 3px; box-shadow: 0 0 12px var(--accent); }
.preview-cat {
    position: absolute; bottom: 2px; left: calc(var(--p) * 100%); width: 62px; height: auto;
    transform: translateX(-50%); filter: drop-shadow(0 0 6px var(--accent));
}
.preview-cat .cat-body, .preview-cat .cat-tail, .preview-cat .cat-legs { transform-box: fill-box; animation-play-state: paused; }
.preview-cat .cat-body { animation: cat-bob 0.3s ease-in-out infinite alternate; }
.preview-cat .cat-tail { transform-origin: 100% 100%; animation: cat-tail 0.3s ease-in-out infinite alternate; }
.preview-cat .cat-legs { transform-origin: 50% 0; }
.preview-cat .cat-legs--a { animation: cat-legs 0.3s ease-in-out infinite alternate; }
.preview-cat .cat-legs--b { animation: cat-legs 0.3s ease-in-out infinite alternate-reverse; }
.header__nav.is-playing .preview-cat * { animation-play-state: running; }
@keyframes cat-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes cat-tail { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes cat-legs { from { transform: skewX(-28deg); } to { transform: skewX(28deg); } }
.news-logo { height: 0.9em; width: auto; flex-shrink: 0; }
.nav-right { width: 40%; display: flex; align-items: center; justify-content: flex-end; position: relative; }
.brand-vertical { writing-mode: vertical-rl; font-family: var(--font-main); font-size: 16vh; font-weight: 900; color: #ffffff; opacity: 1; letter-spacing: 2vh; cursor: default; }

/* LuShadowX Interaction */
.brand-x {
    color: #ffffff; text-shadow: none; cursor: pointer; display: inline-block;
    font-size: 1.2em; vertical-align: middle;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-x:hover {
    color: var(--color-primary);
    text-shadow: 0 0 30px rgba(255, 0, 0, 0.9), 0 0 60px rgba(255, 0, 0, 0.5);
    transform: scale(1.2) rotate(10deg);
}

.nav-footer { position: absolute; bottom: 40px; left: 80px; display: flex; align-items: center; gap: 20px; }
.official-text { font-family: var(--font-main); color: #fff; font-size: 0.9rem; letter-spacing: 2px; margin-right: 20px; opacity: 0.7; }
.social-icon { width: 24px; height: 24px; fill: #fff; transition: all 0.3s ease; opacity: 0.7; }
.social-icon:hover { opacity: 1; fill: var(--color-primary); transform: scale(1.1); }
.header.is-active .nav-link-overlay { opacity: 1; transform: translateY(0); }
.header.is-active .nav-link-overlay:nth-child(1) { transition-delay: 0.1s; }
.header.is-active .nav-link-overlay:nth-child(2) { transition-delay: 0.15s; }
.header.is-active .nav-link-overlay:nth-child(3) { transition-delay: 0.2s; }
.header.is-active .nav-link-overlay:nth-child(4) { transition-delay: 0.25s; }
.header.is-active .nav-link-overlay:nth-child(5) { transition-delay: 0.3s; }
.header.is-active .nav-link-overlay:nth-child(6) { transition-delay: 0.35s; }
.header.is-active .nav-link-overlay:nth-child(7) { transition-delay: 0.4s; }
.header.is-active .nav-link-overlay:nth-child(8) { transition-delay: 0.45s; }

/* ========================================= */
/* 4. BACKGROUND LAYERS                      */
/* ========================================= */
.p-stc { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; pointer-events: none; filter: drop-shadow(0 0 4px rgba(255, 0, 0, 0.2)); }
.p-bg { position: relative; width: 100%; height: 100%; display: flex; justify-content: space-between; }
.p-left, .p-right { position: relative; width: 50%; height: 100%; }
.p-left svg, .p-right svg { position: absolute; top: 0; height: 100%; width: auto; }
.p-left svg { left: 0; } .p-right svg { right: 0; }
.st-base { fill: none; stroke: var(--track-color); stroke-width: 1px; opacity: 0.5; transition: stroke 0.3s; }
.st-anim { fill: none; stroke: var(--color-primary); stroke-width: 0.6px; stroke-dasharray: 600 1400; stroke-dashoffset: 2000; animation: lineFlow 4s linear infinite; }
@keyframes lineFlow { to { stroke-dashoffset: 0; } }
.texture-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; pointer-events: none; opacity: 0.02; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='[http://www.w3.org/2000/svg'%3E%3Cfilter](http://www.w3.org/2000/svg'%3E%3Cfilter) id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"); }
.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 998; pointer-events: none; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.01) 50%, rgba(0,0,0,0.01)); background-size: 100% 4px; }

/* Intro stage: paper cutouts around "Ideas Into Reality" */
.stage {
    --ink: #0d0f0e; --paper: #ece6d9; --red: #b94835; --blue: #3159c7; --amber: #f1a42d;
    --display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; --mono: 'Courier New', Courier, monospace;
    --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
    position: relative; z-index: 10; isolation: isolate; width: 100%; min-height: max(42rem, 100svh);
    overflow: clip; box-shadow: inset 0 0 10rem #000; color: var(--paper);
}
.masthead {
    position: absolute; z-index: 13; top: clamp(0.85rem, 1.35vw, 1.7rem); left: clamp(0.85rem, 1.35vw, 1.7rem); right: clamp(0.85rem, 1.35vw, 1.7rem);
    display: flex; justify-content: space-between; align-items: flex-start; opacity: 0;
}
.stage.is-active .masthead { animation: stage-header-drop 1s var(--ease-premium) 0.25s both; }
.wordmark { display: block; color: var(--paper); text-decoration: none; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; }
.wordmark b { font-size: clamp(1.25rem, 1.65vw, 2rem); line-height: 0.66; letter-spacing: -0.08em; }
.signal-clip {
    position: absolute; left: 50%; top: -0.6rem; transform: translate(-50%);
    width: clamp(7rem, 10vw, 10rem); aspect-ratio: 1; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='none' stroke='%23fff' stroke-width='.45'%3E%3Cline x1='20' y1='50' x2='79.8' y2='50'/%3E%3Ccircle cx='15.7' cy='50' r='4.2'/%3E%3Ccircle cx='84.1' cy='50' r='4.2'/%3E%3C/g%3E%3Ccircle cx='49' cy='50' r='13' fill='url(%23g)'/%3E%3Ccircle cx='49' cy='50' r='4.2' fill='%23fff'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.signal-clip.is-ready { background: url('../images/clock-sprite.webp?v=2') 0 0 / 1300% 1200% no-repeat; }
.signal { position: absolute; left: 50%; transform: translate(-50%); display: flex; gap: 0.4rem; }
.signal i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber); }
.stage.is-active .signal i { animation: stage-signal 2.4s ease-in-out infinite; }
.signal i:nth-child(2) { background: var(--blue); animation-delay: 0.18s; }
.signal i:nth-child(3) { background: var(--red); animation-delay: 0.36s; }

.stage-copy { position: absolute; z-index: 9; top: 48%; left: 50%; width: min(27rem, 32vw); transform: translate(-50%, -50%); }
.stage-copy h1 {
    position: relative; display: grid; grid-template-columns: 0.34em 3.4em; grid-template-rows: repeat(3, 0.69em); align-items: start;
    width: max-content; margin: 0; color: var(--red); font-family: var(--display); font-weight: 700;
    font-size: clamp(3.25rem, 5.2vw, 6.25rem); line-height: 0.69; letter-spacing: -0.072em;
}
.lockup-i, .ideas-rest, .into-rest, .reality-word { display: block; opacity: 0; transform-origin: 0; }
.lockup-i { grid-area: 1 / 1 / 3; line-height: 0.7; transform-origin: top; }
.ideas-rest { grid-area: 1 / 2; }
.into-rest { grid-area: 2 / 2; position: relative; z-index: 2; overflow: visible; }
.reality-word { grid-area: 3 / 1 / auto / 3; margin-left: -0.26em; }
.stage.is-active .lockup-i { animation: stage-letter-set 1.4s var(--ease-premium) 0.32s both; }
.stage.is-active .ideas-rest { animation: stage-type-dock 1.25s var(--ease-premium) 0.42s both; }
.stage.is-active .into-rest { animation: stage-type-dock 1.35s var(--ease-premium) 0.56s both; }
.stage.is-active .reality-word { animation: stage-type-dock 1.45s var(--ease-premium) 0.72s both; }
.title-label {
    position: absolute; z-index: 3; top: 52%; left: 52%; padding: 0.34rem 0.6rem;
    color: var(--ink); background: var(--paper); font: 700 clamp(0.36rem, 0.42vw, 0.52rem) / 1 var(--mono);
    letter-spacing: 0.02em; white-space: nowrap; opacity: 0; transform: translateY(-50%) rotate(-1.5deg); box-shadow: 0 0.15rem #00000047;
}
.stage.is-active .title-label { animation: stage-name-card 1.35s var(--ease-premium) 0.88s both; }

.signal-thread { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.signal-thread path {
    fill: none; stroke: #ece6d97a; stroke-width: 0.072rem; stroke-linecap: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0.0625rem 0.0625rem #000000e6);
}
.stage.is-active .signal-thread path { animation: stage-thread-draw 4s var(--ease-premium) 0.55s forwards; }

.cutout {
    --tilt-x: 0deg; --tilt-y: 0deg; --enter-x: 0%; --enter-y: 0%; --enter-r: 0deg; --enter-rx: 0deg; --enter-ry: 0deg;
    --snap-x: 0rem; --snap-y: 0rem; --snap-r: 0deg; --echo-x: 0rem; --echo-y: 0rem; --echo-r: 0deg; --arrival-delay: 0s;
    position: absolute; z-index: 5; margin: 0; opacity: 0; cursor: grab; touch-action: pan-y; outline: none;
    will-change: transform, opacity;
}
.stage.is-active .cutout { animation: stage-paper-dock 1.25s var(--ease-premium) var(--arrival-delay) both; }
.cutout img {
    display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none;
    transform: perspective(53rem) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    filter: drop-shadow(0 1.125rem 0.85rem #0000008c); will-change: transform;
    transition: transform 0.25s var(--ease-premium);
}
.cutout:hover img { transform: perspective(53rem) translate3d(0, -0.35rem, 1.25rem) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.035); }
.cutout.is-grabbed { cursor: grabbing; z-index: 8; }
.cutout.is-grabbed img { transform: perspective(53rem) translate3d(0, 0, 1.75rem) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(0.98); }
.guitar { --enter-x: -110%; --enter-y: -75%; --enter-r: -42deg; --enter-rx: -18deg; --enter-ry: 24deg; --snap-x: 1.6rem; --snap-y: 0.65rem; --snap-r: 4deg; --echo-x: -0.62rem; --echo-y: -0.26rem; --echo-r: -1.8deg; --arrival-delay: 80ms; width: clamp(12rem, 17vw, 22rem); top: 3%; left: 6%; rotate: -12deg; }
.keyboard { --enter-x: 115%; --enter-y: -85%; --enter-r: 44deg; --enter-rx: -16deg; --enter-ry: -22deg; --snap-x: -1.65rem; --snap-y: 0.7rem; --snap-r: -4deg; --echo-x: 0.65rem; --echo-y: -0.28rem; --echo-r: 1.8deg; --arrival-delay: 0.18s; width: clamp(23rem, 35vw, 43rem); top: -5%; right: 1%; rotate: 8deg; }
.headphones { --enter-x: -120%; --enter-y: 25%; --enter-r: -38deg; --enter-rx: 14deg; --enter-ry: 20deg; --snap-x: 1.85rem; --snap-y: -0.35rem; --snap-r: 4.5deg; --echo-x: -0.7rem; --echo-y: 0.16rem; --echo-r: -2deg; --arrival-delay: 0.3s; width: clamp(13rem, 19vw, 24rem); top: 47%; left: 2%; rotate: -5deg; }
.sampler { --enter-x: 120%; --enter-y: 26%; --enter-r: 40deg; --enter-rx: 16deg; --enter-ry: -22deg; --snap-x: -1.85rem; --snap-y: -0.4rem; --snap-r: -4.5deg; --echo-x: 0.72rem; --echo-y: 0.18rem; --echo-r: 2deg; --arrival-delay: 0.42s; width: clamp(12rem, 17vw, 21rem); top: 46%; right: 4%; rotate: 9deg; }
.watch { --enter-x: 0%; --enter-y: 135%; --enter-r: 25deg; --enter-rx: 22deg; --enter-ry: -8deg; --snap-y: -1.3rem; --snap-r: -3deg; --echo-y: 0.5rem; --echo-r: 1.35deg; --arrival-delay: 0.54s; width: clamp(12rem, 17vw, 21rem); bottom: 4%; left: 42%; rotate: -6deg; }

.scroll-cue {
    position: absolute; z-index: 13; bottom: 1.1rem; left: 50%; transform: translate(-50%);
    display: flex; align-items: center; gap: 0.7rem; opacity: 0;
    color: var(--paper); text-decoration: none; font: 700 0.52rem / 1 var(--mono); letter-spacing: 0.16em;
}
.stage.is-active .scroll-cue { animation: stage-cue-in 0.9s 1.8s both; }
.scroll-cue i { color: var(--red); font-size: 1.1rem; font-style: normal; }
.stage.is-active .scroll-cue i { animation: stage-cue-bounce 1.6s ease-in-out 2.5s infinite; }

/* The top bar and menu wait until the intro stage is scrolled past */
.top-bar, .js-menu { transition-property: background-color, border-color, box-shadow, opacity; transition-duration: 0.4s; }
body.at-intro .top-bar, body.at-intro .js-menu { opacity: 0; pointer-events: none; }
/* Over the light contact section the menu button turns dark */
body.on-light .js-menu:not(.is-active) .menu-line { background-color: #11110f; }
body.on-light .js-menu:not(.is-active) .menu-text { color: #11110f; }

@keyframes stage-header-drop { from { opacity: 0; transform: translateY(-1.75rem) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes stage-signal { 0%, 100% { opacity: 0.55; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes stage-letter-set { 0% { opacity: 0; clip-path: inset(0 0 100%); transform: translateY(-1.8rem) scaleY(0.35); } 58% { opacity: 1; clip-path: inset(0); transform: translateY(0.12rem) scaleY(1.88); } to { opacity: 1; clip-path: inset(0); transform: scaleY(1.82); } }
@keyframes stage-type-dock { 0% { opacity: 0; transform: translateY(-2.6rem) rotateX(-62deg) scaleY(0.76); } 48% { opacity: 1; transform: translateY(0.42rem) rotateX(7deg) scaleY(1.035); } 72% { transform: translateY(-0.15rem) rotateX(-2deg) scaleY(0.993); } to { opacity: 1; transform: none; } }
@keyframes stage-name-card { 0% { opacity: 0; transform: translate(4rem, -1.5rem) rotate(18deg) scale(0.72); } 24% { opacity: 1; transform: translate(-0.75rem, -0.1rem) rotate(-6deg) scale(1.08); } 43% { transform: translate(0.5rem, -0.65rem) rotate(4deg) scale(0.97); } 61% { transform: translate(-0.24rem, -0.45rem) rotate(-2.3deg) scale(1.02); } 78% { transform: translate(0.12rem, -50%) rotate(-0.8deg) scale(0.995); } to { opacity: 1; transform: translateY(-50%) rotate(-1.5deg); } }
@keyframes stage-thread-draw { to { stroke-dashoffset: 0; } }
@keyframes stage-paper-dock { 0% { opacity: 0; transform: perspective(70rem) translate3d(var(--enter-x), var(--enter-y), -8rem) rotateX(var(--enter-rx)) rotateY(var(--enter-ry)) rotateZ(var(--enter-r)) scale(0.78); } 45% { opacity: 1; transform: perspective(70rem) translate3d(var(--snap-x), var(--snap-y), 1rem) rotateX(-2deg) rotateY(2deg) rotateZ(var(--snap-r)) scale(1.035); } 68% { transform: perspective(70rem) translate3d(var(--echo-x), var(--echo-y), 0) rotateX(1deg) rotateY(-1deg) rotateZ(var(--echo-r)) scale(0.988); } 86% { transform: perspective(70rem) translate(0.1rem, -0.04rem) rotate(0.16deg) scale(1.003); } to { opacity: 1; transform: none; } }
@keyframes stage-cue-in { from { opacity: 0; transform: translate(-50%, 0.9rem); } to { opacity: 1; transform: translate(-50%); } }
@keyframes stage-cue-bounce { 0%, 100% { transform: translateY(-0.15rem); } 50% { transform: translateY(0.35rem); } }

@media (max-width: 74rem) {
    .stage-copy { width: min(25rem, 38vw); }
}
@media (max-width: 60rem) {
    .stage { min-height: max(46rem, 100svh); }
    .masthead { top: 0.85rem; left: 0.85rem; right: 0.85rem; }
    .stage-copy { width: min(29rem, 72vw); }
    .stage-copy h1 { font-size: clamp(3.5rem, 10.5vw, 6rem); }
    .guitar { width: clamp(10rem, 26vw, 15rem); top: 4%; left: 2%; }
    .keyboard { width: clamp(19rem, 48vw, 28rem); top: 4%; right: -12%; }
    .headphones { width: clamp(10rem, 28vw, 16rem); top: 60%; left: -3%; }
    .sampler { width: clamp(9rem, 24vw, 14rem); top: 60%; right: 0%; }
    .watch { width: clamp(10rem, 28vw, 16rem); bottom: 5%; left: 36%; }
}
@media (max-width: 42rem) {
    .stage { min-height: max(44rem, 100svh); }
    .wordmark b { font-size: 1.2rem; }
    .signal { top: 0.2rem; }
    .signal-clip { top: -0.4rem; width: 6.5rem; }
    .stage-copy { width: 82%; top: 48%; }
    .stage-copy h1 { font-size: clamp(3.2rem, 14vw, 4.75rem); }
    .title-label { padding: 0.28rem 0.4rem; font-size: 0.34rem; left: 52%; }
    .guitar { width: 36vw; top: 5%; left: -4%; }
    .keyboard { width: 65vw; top: 9%; right: -21%; }
    .headphones { width: 40vw; top: 66%; left: -8%; }
    .sampler { width: 34vw; top: 64%; right: -4%; }
    .watch { width: 40vw; bottom: 5%; left: 30%; }
    .scroll-cue { font-size: 0.45rem; bottom: 0.8rem; }
}
@media (max-width: 25rem) {
    .stage-copy h1 { font-size: 3rem; }
}

/* Contact: light paper section */
.contact-section {
    --ink: #11110f; --paper: #f2f0e9; --line-dark: #11110f24; --accent: #c15f3c;
    position: relative; z-index: 10; background: var(--paper); color: var(--ink); padding: 120px 0 80px;
    font-family: 'Inter', ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.contact-inner { width: min(100% - 56px, 1380px); margin-inline: auto; }
.section-label {
    display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; gap: 14px;
    color: #77736a; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
}
.section-label-line { height: 1px; background: var(--line-dark); }
.contact-heading { display: grid; grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr); align-items: start; gap: 50px; margin: 58px 0 70px; }
.contact-heading > p { max-width: 290px; margin: 10px 0 0; color: #6e6a61; line-height: 1.5; font-size: 1.1rem; }
.contact-heading h2 { margin: 0; color: var(--ink); font-size: clamp(3.8rem, 8.4vw, 9.4rem); font-weight: 560; line-height: 0.92; letter-spacing: -0.07em; }
.contact-layout { display: grid; grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr); gap: clamp(36px, 7vw, 110px); padding-top: 52px; border-top: 1px solid var(--line-dark); }
.contact-direct { display: flex; flex-direction: column; gap: 12px; }
.contact-direct a { display: flex; align-items: center; gap: 16px; padding: 17px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid #11110f33; }
.contact-direct a > i { flex: none; width: 22px; color: var(--accent); font-size: 1.15rem; text-align: center; }
.contact-direct a span { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.contact-direct small { color: #77736a; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-form, .contact-form label { display: flex; flex-direction: column; }
.contact-form { gap: 28px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-form label { gap: 9px; }
.contact-form label > span { color: #4e4a43; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 8px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
    width: 100%; box-sizing: border-box; padding: 13px 0 15px; color: var(--ink); background: transparent;
    border: 0; border-bottom: 1px solid #11110f47; border-radius: 0; outline: none;
    font: inherit; font-size: 16px; line-height: 1.45; transition: border-color 0.18s;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8e897e; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-submit-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-submit-row p { margin: 0; color: #6e6a61; font-size: 12px; }
.form-submit-row button {
    display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-width: 168px; padding: 15px 20px;
    color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 13px; font-weight: 700; transition: background 0.18s, transform 0.18s;
}
.form-submit-row button:hover, .form-submit-row button:focus-visible { background: var(--accent); transform: translateY(-2px); }
@media (max-width: 760px) {
    .contact-section { padding: 86px 0 60px; }
    .contact-inner { width: min(100% - 32px, 1380px); }
    .contact-heading { grid-template-columns: 1fr; gap: 26px; margin: 42px 0 50px; }
    .contact-heading h2 { font-size: clamp(3.6rem, 17vw, 5.7rem); }
    .contact-layout { grid-template-columns: 1fr; gap: 44px; }
    .field-row { grid-template-columns: 1fr; }
    .form-submit-row { flex-direction: column; align-items: stretch; }
    .form-submit-row button { width: 100%; }
}

/* About + Skills in Orbit (ported layout) */
.about-page, .skills-orbit-page, .skills-transfer-clone { --ink:#0d0f0e; --paper:#ece6d9; --paper-light:#f7f2e8; --red:#b94835; --blue:#3159c7; --amber:#f1a42d; --green:#31895b; --about-accent:#3457d5; --hand:"Segoe Print","Bradley Hand","Comic Sans MS",cursive; --mono:"Courier New",Courier,monospace; --page-gutter:clamp(1rem,3vw,3.75rem); --about-ticker-height:4.75rem; --ease-premium:cubic-bezier(.16,1,.3,1); }
@media (max-width:42rem) { .about-page, .skills-orbit-page { --page-gutter:1.1rem; } }
.about-page{z-index:30;isolation:isolate;color:#151515;background:#ebe7de url('../images/paper-grid.webp') 0 0/32rem 32rem;width:100%;height:100svh;min-height:100svh;position:relative;overflow:hidden}
.about-page:before{content:"";z-index:0;pointer-events:none;background:radial-gradient(circle at 76% 16%,#ffffffa8,#0000 35%),linear-gradient(105deg,#3457d50d,#0000 32%);position:absolute;inset:0}
.about-spread{z-index:2;height:calc(100svh - var(--about-ticker-height));grid-template-columns:minmax(30rem,44.5%) minmax(0,1fr);min-height:0;display:grid;position:relative;overflow:hidden}
.about-visual{--art-scale:1.17;--art-shift:-18%;--astronaut-top:.15rem;--astronaut-right:0rem;--astronaut-bottom:.2rem;--astronaut-left:0rem;height:calc(100svh - var(--about-ticker-height));min-width:0;min-height:calc(100svh - var(--about-ticker-height));isolation:isolate;align-self:start;position:relative;overflow:clip}
.about-visual:before{content:"";z-index:3;top:var(--astronaut-top);left:var(--astronaut-left);width:calc(100% - var(--astronaut-left) - var(--astronaut-right));height:calc(100% - var(--astronaut-top) - var(--astronaut-bottom));background:var(--about-accent);transform:translate(.7rem, .5rem) scale(var(--art-scale)) translateX(var(--art-shift));transform-origin:0 100%;position:absolute;-webkit-mask:url('../images/about-anime.webp') 0 100%/contain no-repeat;mask:url('../images/about-anime.webp') 0 100%/contain no-repeat}
.astronaut-cutout{z-index:4;top:var(--astronaut-top);left:var(--astronaut-left);width:calc(100% - var(--astronaut-left) - var(--astronaut-right));height:calc(100% - var(--astronaut-top) - var(--astronaut-bottom));object-fit:contain;object-position:left bottom;transform:scale(var(--art-scale)) translateX(var(--art-shift));transform-origin:0 100%;filter:drop-shadow(.28rem 0 0 var(--paper-light)) drop-shadow(-.28rem 0 0 var(--paper-light)) drop-shadow(0 .3rem 0 var(--paper-light)) drop-shadow(0 -.28rem 0 var(--paper-light)) drop-shadow(.75rem .9rem 0 #23201b2e);position:absolute}
.about-copy{--copy-pull:min(5vw, 6rem);z-index:5;height:100%;width:calc(100% + var(--copy-pull));min-width:0;min-height:0;margin-left:calc(0rem - var(--copy-pull));font-family:var(--hand);grid-template:"heading heading""intro facts"minmax(0,1fr)"photos photos"clamp(13.5rem,29svh,18rem)/minmax(0,.68fr) minmax(0,1.32fr);align-content:stretch;gap:clamp(.9rem,1.8vh,1.5rem) clamp(1.4rem,2.4vw,3rem);padding:clamp(1.25rem,2.4vh,2rem) clamp(1.2rem,2.3vw,2.8rem) clamp(.65rem,1.2vh,1rem) clamp(2rem,2.5vw,3rem);display:grid;position:relative;overflow:hidden}
.about-copy *{font-family:var(--hand)}
.about-heading{grid-area:heading;min-width:0;max-width:74rem;position:relative}
.about-location-tags{align-items:flex-start;gap:.25rem;display:flex;position:absolute;top:.2rem;right:clamp(.25rem,2vw,2.5rem)}
.about-location-tags span{color:#191919;letter-spacing:.08em;background:#f7f2e8f0;border:.0625rem solid #151515b8;padding:.32rem .55rem .25rem;display:block;transform:rotate(-4deg);box-shadow:.14rem .18rem #15151524;font:700 clamp(.68rem, .64vw, .84rem)/1 var(--mono)!important}
.about-location-tags span:nth-child(2){margin-top:1rem;transform:rotate(2.5deg)}
.about-location-tags span:nth-child(3){margin-top:.25rem;transform:rotate(-1.5deg)}
.about-label{color:var(--paper-light);background:var(--about-accent);letter-spacing:.14em;margin:0 0 .75rem;padding:.38rem .68rem .32rem;display:inline-block;transform:rotate(-1.4deg);box-shadow:.2rem .24rem #15151533;font:700 clamp(.9rem, .88vw, 1.1rem)/1 var(--mono)!important}
.about-heading h2{letter-spacing:-.055em;transition:color .35s ease, transform .5s var(--ease-premium);margin:0;font-size:clamp(4rem,4.5vw,5.8rem);font-weight:700;line-height:.92}
.about-heading h2 em{color:var(--about-accent);font-style:normal;display:inline}
.about-intro{grid-area:intro;align-self:start;min-width:0;max-width:55rem;padding-top:.3rem}
.about-body{color:#4e4c47;max-width:50rem;transition:color .35s ease, transform .5s var(--ease-premium);margin:0;font-size:clamp(1.14rem,1.14vw,1.42rem);font-weight:500;line-height:1.52}
.about-body-extra{margin-top:.65rem}
.hand-note{max-width:39rem;text-decoration:underline;-webkit-text-decoration-color:var(--about-accent);-webkit-text-decoration-color:var(--about-accent);-webkit-text-decoration-color:var(--about-accent);text-decoration-color:var(--about-accent);text-underline-offset:.35rem;transition:color .35s ease, transform .5s var(--ease-premium);margin-top:1rem;font-size:clamp(1.18rem,1.25vw,1.52rem);line-height:1.1;display:inline-block;transform:rotate(-1deg)}
.hand-note-desktop{z-index:7;color:#171717;background:#ebe7dee6;width:min(16.75rem,33vw);margin:0;padding:.42rem .55rem .5rem;font-size:clamp(1.08rem,1vw,1.25rem);line-height:1.12;position:absolute;bottom:clamp(6.75rem,12vh,8.5rem);right:clamp(7rem,8.5vw,10rem);transform:rotate(-7deg);box-shadow:.2rem .25rem #3457d533}
.hand-note-flow{display:none}
.about-facts{grid-area:facts;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-content:start;gap:clamp(.85rem,1.35vw,1.8rem);min-width:0;display:grid}
.fact-block{min-width:0;transition:transform .5s var(--ease-premium)}
.fact-block h3{letter-spacing:-.035em;margin:0 0 1rem;font-size:clamp(2.25rem,2.45vw,3.15rem);font-weight:700;line-height:.95}
.experience-list{gap:.62rem;display:grid}
.experience-list article{transition:transform .45s var(--ease-premium), color .35s ease;grid-template-columns:4.35rem minmax(0,1fr);align-items:start;gap:.55rem;display:grid}
.experience-list article>b{color:var(--about-accent);font-size:clamp(.86rem,.8vw,1.02rem);line-height:1.35}
.experience-list span,.experience-list strong,.experience-list small{display:block}
.experience-list strong{font-size:clamp(1.08rem,1.05vw,1.3rem);line-height:1.25}
.experience-list small{color:#65615a;margin-top:.18rem;font-size:clamp(.9rem,.84vw,1.08rem);line-height:1.3}
.skill-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:.38rem;margin:0;padding:0;list-style:none;display:grid}
.skill-list li{transform-origin:0;min-width:0;transition:transform .4s var(--ease-premium), color .3s ease;grid-template-columns:1.5rem minmax(0,1fr);align-items:center;gap:.4rem;font-size:clamp(.9rem,.82vw,1.04rem);line-height:1.15;display:grid}
.skill-mark{width:1.5rem;height:1.5rem;color:var(--skill-color);transition:transform .45s var(--ease-premium), box-shadow .35s ease, color .35s ease;background:#ffffff9e;border:.0625rem solid #15151524;place-items:center;display:grid;transform:rotate(-2deg);box-shadow:.14rem .16rem #15151521}
.skill-mark svg{fill:currentColor;width:.88rem;height:.88rem}
.skill-list li:hover,.skill-list li:focus-within{transform:translate(.3rem)}
.skill-list li:hover .skill-mark,.skill-list li:focus-within .skill-mark{transform:translateY(-.15rem)rotate(3deg)scale(1.08);box-shadow:.24rem .28rem #15151529}
.experience-list article:hover{transform:translate(.3rem)rotate(-.25deg)}
.photo-story{grid-area:photos;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;gap:clamp(.75rem,1.15vw,1.35rem);min-width:0;height:100%;min-height:0;display:grid}
.story-frame{--frame-rotation:0deg;--photo-enter-x:0rem;--photo-enter-r:0deg;--photo-mid-x:0rem;background:var(--paper-light);width:100%;height:100%;min-height:0;transform:rotate(var(--frame-rotation));transform-origin:50% 110%;transition:transform .55s var(--ease-premium), box-shadow .55s ease;margin:0;padding:.6rem .6rem 2.15rem;position:relative;box-shadow:0 .8rem 1.6rem #32291f33}
.story-frame:before{content:"";z-index:3;mix-blend-mode:multiply;background:#b59b698f;width:3rem;height:1.05rem;position:absolute;top:-.65rem;left:50%;transform:translate(-50%)rotate(-5deg)}
.story-frame img{object-fit:cover;filter:saturate(.9)contrast(1.04);width:100%;height:100%;transition:filter .55s ease, transform .7s var(--ease-premium);display:block}
.story-frame:hover,.story-frame:focus-within{z-index:4;transform:rotate(0)translateY(-.75rem)scale(1.025);box-shadow:0 1.2rem 2.4rem #32291f40}
.story-frame:hover img{filter:saturate(1.02)contrast(1.06);transform:scale(1.025)}
.story-frame figcaption{text-align:center;font-size:clamp(.84rem,.88vw,1.1rem);line-height:1;position:absolute;bottom:.5rem;left:0;right:0}
.about-ticker{z-index:22;width:100%;height:var(--about-ticker-height);color:#f4f0e7;font:700 clamp(.78rem, .9vw, 1rem)/1 var(--mono);letter-spacing:.15em;white-space:nowrap;background:#151515;border-top:.0625rem solid #f4f0e729;border-bottom:.0625rem solid #f4f0e71f;align-items:center;display:flex;position:relative;overflow:clip}
.about-ticker-track{will-change:transform;align-items:center;width:max-content;min-width:max-content;height:100%;animation:16s linear infinite about-ticker;display:flex}
.about-ticker-run{flex:none;align-items:center;gap:clamp(1.1rem,1.5vw,1.75rem);min-width:max-content;padding-right:clamp(1.1rem,1.5vw,1.75rem);display:inline-flex}
.about-ticker-cluster{align-items:center;gap:clamp(.72rem,.9vw,1rem);min-width:max-content;display:inline-flex}
.about-ticker-cluster b{font:inherit;letter-spacing:inherit}
.about-ticker-cluster svg{fill:currentColor;flex:none;width:clamp(1.15rem,1.45vw,1.55rem);height:auto}
.skills-orbit-page{z-index:34;isolation:isolate;width:100%;height:100svh;min-height:max(42rem,100svh);color:var(--paper-light);background-color:#080a09;background-image:linear-gradient(#ebe7de09 .0625rem,#0000 .0625rem),linear-gradient(90deg,#ebe7de09 .0625rem,#0000 .0625rem),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:3rem 3rem;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;grid-template:"orbit-signal orbit-signal orbit-signal""orbit-heading orbit-stage orbit-notes"minmax(0,1fr)/minmax(15rem,.68fr) minmax(27rem,1.45fr) minmax(13rem,.62fr);align-items:center;gap:clamp(1.25rem,2vw,2.5rem) clamp(1rem,2.2vw,3rem);padding:clamp(1.5rem,4vw,4.75rem);display:grid;position:relative;overflow:hidden}
.skills-orbit-page:before{z-index:0;content:"";pointer-events:none;border:.0625rem solid #eee7d829;position:absolute;inset:1.1rem}
.orbit-signal-bar,.orbit-page-heading,.orbit-stage,.orbit-notes{z-index:3;position:relative}
.orbit-signal-bar{border-bottom:.0625rem solid #eee7d833;grid-area:orbit-signal;grid-template-columns:minmax(15rem,.8fr) minmax(24rem,1.5fr) minmax(16rem,.8fr);align-items:end;gap:clamp(1rem,2.5vw,3rem);padding:0 .35rem clamp(1.15rem,1.8vw,1.75rem);display:grid}
.orbit-signal-bar p{gap:.3rem;margin:0;display:grid}
.orbit-signal-bar p span,.orbit-signal-bar small{color:#f7f2e894;font:700 clamp(.55rem, .56vw, .68rem)/1.2 var(--mono);letter-spacing:.12em}
.orbit-signal-bar p strong{color:var(--paper-light);font-family:var(--hand);letter-spacing:-.035em;font-size:clamp(1.7rem,2.25vw,2.8rem);line-height:.92}
.orbit-signal-route{min-width:0;color:var(--paper);font:700 clamp(.55rem, .6vw, .72rem)/1 var(--mono);letter-spacing:.09em;white-space:nowrap;justify-content:center;align-items:center;gap:clamp(.55rem,1.2vw,1.25rem);display:flex}
.orbit-signal-route i{color:var(--blue);font-style:normal}
.orbit-signal-bar small{text-align:right;justify-self:end}
.orbit-page-heading{grid-area:orbit-heading;align-self:center;max-width:25rem}
.orbit-page-heading>span,.orbit-note-title{color:var(--ink);background:var(--paper);font:700 .68rem/1 var(--mono);letter-spacing:.12em;box-shadow:.22rem .25rem 0 var(--blue);margin-bottom:1rem;padding:.45rem .65rem .36rem;display:inline-block;transform:rotate(-1.5deg)}
.orbit-page-heading h2{max-width:22rem;font-family:var(--hand);letter-spacing:-.065em;margin:0;font-size:clamp(3.6rem,5.4vw,6.75rem);font-weight:700;line-height:.82}
.orbit-page-heading h2 em{color:var(--paper-light);font-style:normal;display:block}
.orbit-page-heading p{color:#f7f2e8ad;font-family:var(--hand);margin:1.6rem 0 0;font-size:clamp(.9rem,1vw,1.1rem);line-height:1.52}
.orbit-stage{grid-area:orbit-stage;align-self:end;place-items:center;min-width:0;height:100%;min-height:clamp(32rem,70svh,46rem);display:grid;overflow:hidden}
.skill-orbit-semicircle{contain:layout paint;width:100%;height:100%;position:relative;overflow:hidden}
.semi-orbit-globe{z-index:5;aspect-ratio:1;pointer-events:none;width:clamp(20rem,33vw,38rem);position:absolute;bottom:0;left:50%;transform:translate(-50%,48%)}
.particle-sphere-canvas{width:100%;height:100%;display:block}
.semi-orbit-ring{aspect-ratio:1;border:.0625rem solid #ece6d926;border-radius:50%;position:absolute;bottom:0;left:50%;transform:translate(-50%,50%)}
.semi-orbit-ring:before{content:"";opacity:.72;border-top:.0625rem solid #ece6d95c;border-radius:50%;position:absolute;inset:0}
.semi-orbit-ring-1{width:clamp(20rem,27vw,30rem)}
.semi-orbit-ring-2{width:clamp(30rem,38vw,42rem)}
.semi-orbit-ring-3{width:clamp(40rem,49vw,55rem)}
.semi-orbit-ring-4{width:clamp(51rem,61vw,68rem)}
.semi-orbit-spoke{transform-origin:bottom;will-change:transform;width:0;height:50%;position:absolute;top:0;left:50%}
.semi-orbit-spoke[data-direction=clockwise]{animation:semiOrbitClockwise var(--orbit-duration) linear infinite}
.semi-orbit-spoke[data-direction=counterclockwise]{animation:semiOrbitCounterclockwise var(--orbit-duration) linear infinite}
.semi-orbit-icon{aspect-ratio:1;border:.0625rem solid var(--skill-color);place-items:center;width:clamp(3.15rem,3.6vw,4.1rem);display:grid;position:absolute;top:0;left:50%}
.semi-orbit-icon{color:var(--skill-color);transform:translate(-50%, -50%) rotate(var(--counter-offset));transition:border-color .3s ease, background .3s ease, transform .3s var(--ease-premium);will-change:transform;background:#0d100f;border-radius:50%;box-shadow:0 .45rem 1.1rem #00000047}
.semi-orbit-icon[data-direction=clockwise]{animation:semiCounterClockwise var(--orbit-duration) linear infinite}
.semi-orbit-icon[data-direction=counterclockwise]{animation:semiCounterClockwiseReverse var(--orbit-duration) linear infinite}
.semi-orbit-icon svg{fill:currentColor;width:56%;height:56%}
.semi-orbit-wordmark{color:currentColor;font:800 clamp(.63rem, .75vw, .82rem)/1 var(--mono);letter-spacing:-.06em}
.semi-orbit-icon>span{width:max-content;max-width:8rem;color:var(--paper);font:700 .54rem/1 var(--mono);letter-spacing:.05em;opacity:0;background:#080a09;border:.0625rem solid #ece6d92e;padding:.28rem .4rem .22rem;transition:opacity .25s,transform .25s;position:absolute;top:calc(100% + .45rem);left:50%;transform:translate(-50%,-.2rem)}
.semi-orbit-icon:hover{border-color:var(--paper);background:#111412}
.semi-orbit-icon:hover>span{opacity:1;transform:translate(-50%)}
.orbit-notes{grid-area:orbit-notes;align-content:center;justify-items:start;gap:.75rem;display:grid}
.orbit-note-title{box-shadow:.22rem .25rem 0 var(--red);margin-bottom:.4rem}
.orbit-paper-tag{color:var(--paper-light);font:700 clamp(.58rem, .65vw, .76rem)/1.18 var(--mono);letter-spacing:.06em;transform:rotate(var(--tag-turn));background:#f7f2e80f;border:.0625rem solid #f7f2e842;padding:.58rem .7rem .48rem;display:inline-block}
.skills-transfer-clone{z-index:120;pointer-events:none;color:#151515;font-family:var(--hand);font-size:var(--transfer-size,2rem);letter-spacing:-.035em;transform:translate3d(var(--transfer-x,0), var(--transfer-y,0), 0) rotate(var(--transfer-turn,0deg));transform-origin:0 0;will-change:transform, color;font-weight:700;line-height:.95;display:none;position:fixed;top:0;left:0}
html[data-skills-transfer=active] .skills-transfer-clone{display:block}
html[data-skills-transfer=active] .skills-handoff-source,html[data-skills-transfer=active] .skills-handoff-target{visibility:hidden}
.skills-transfer-clone[data-phase=dark]{color:var(--paper-light)}
.motion-ready .skills-orbit-page [data-orbit-reveal]{opacity:0}
.motion-ready .skills-orbit-page [data-orbit-reveal].is-visible{opacity:1}
.motion-ready .skills-orbit-page [data-orbit-reveal=gate].is-visible{animation:orbitGateSet .62s var(--ease-premium) both}
.motion-ready .skills-orbit-page [data-orbit-reveal=heading].is-visible{animation:orbitHeadingSet .85s var(--ease-premium) both}
.motion-ready .skills-orbit-page [data-orbit-reveal=signal].is-visible{animation:orbitSignalSet .7s var(--ease-premium) both}
.motion-ready .skills-orbit-page [data-orbit-reveal=orbit].is-visible{animation:orbitMechanismSet 1.05s var(--ease-premium) 60ms both}
.motion-ready .skills-orbit-page [data-orbit-reveal=notes].is-visible{animation:orbitNotesSet .78s var(--ease-premium) .1s both}
.motion-ready .about-page [data-reveal]{opacity:0}
.motion-ready .about-page [data-reveal].is-visible{opacity:1}
.motion-ready .about-page [data-reveal=tag].is-visible{animation:paperTagSet .48s var(--ease-premium) both}
.motion-ready .about-page [data-reveal=heading].is-visible{animation:headlineInkSet .62s var(--ease-premium) 20ms both}
.motion-ready .about-page [data-reveal=copy].is-visible{animation:paragraphRegister .58s var(--ease-premium) 40ms both}
.motion-ready .about-page [data-reveal=note].is-visible{animation:noteUnderlineSet .62s var(--ease-premium) 80ms both}
.motion-ready .about-page [data-reveal=cutout].is-visible{animation:astronautPaperSet .95s var(--ease-premium) both}
.motion-ready .about-page [data-reveal=cutout].is-visible:before{animation:shadowRegistration .95s var(--ease-premium) 40ms both}
.motion-ready .about-page [data-reveal=card].is-visible{animation:catalogCardSet .68s var(--ease-premium) 60ms both}
.motion-ready .about-page .fact-block h3,.motion-ready .about-page .experience-list article{opacity:0}
.motion-ready .about-page .fact-block.is-visible h3{opacity:1;animation:headlineInkSet .5s var(--ease-premium) 80ms both}
.motion-ready .about-page .fact-block.is-visible .experience-list article{opacity:1;animation:factLineSet .52s var(--ease-premium) both}
.motion-ready .about-page .fact-block.is-visible .experience-list article:first-child{animation-delay:.1s}
.motion-ready .about-page .fact-block.is-visible .experience-list article:nth-child(2){animation-delay:.14s}
.motion-ready .about-page .fact-block.is-visible .experience-list article:nth-child(3){animation-delay:.18s}
.motion-ready .about-page [data-reveal=skill].is-visible{animation:skillTileSet .48s var(--ease-premium) calc(80ms + var(--skill-order,0) * 18ms) both}
.motion-ready .about-page .story-frame[data-reveal=photo].is-visible{animation:photoDevelopSet .85s var(--ease-premium) calc(60ms + var(--photo-order,0) * 70ms) both}
.motion-ready .about-page .story-frame figcaption{opacity:0}
.motion-ready .about-page .story-frame.is-visible figcaption{opacity:1;animation:captionWrite .48s var(--ease-premium) calc(.3s + var(--photo-order,0) * 60ms) both}
@supports (color:color-mix(in lab, red, red)) {
.semi-orbit-icon{border:.0625rem solid color-mix(in srgb, var(--skill-color) 58%, var(--paper))}
}
@media (min-width:74.01rem) and (max-height:58rem) {
.about-heading h2{font-size:clamp(3.85rem,4.15vw,5.4rem)}
.about-body{font-size:clamp(1.08rem,1.04vw,1.28rem);line-height:1.47}
.hand-note{margin-top:.75rem;font-size:clamp(1.1rem,1.14vw,1.38rem)}
.fact-block h3{margin-bottom:.75rem;font-size:clamp(2.08rem,2.2vw,2.9rem)}
.experience-list{gap:.48rem}
.experience-list strong{font-size:clamp(1.03rem,.98vw,1.2rem)}
.experience-list small{font-size:clamp(.86rem,.78vw,1rem)}
.skill-list li{font-size:clamp(.86rem,.76vw,.98rem)}
}
@media (max-width:74rem) {
.about-page{height:auto;overflow:clip}
.about-spread{grid-template-rows:auto auto auto auto;grid-template-columns:42% 58%;height:auto;min-height:100svh;overflow:visible}
.about-copy{display:contents}
.about-heading{max-width:none;padding:clamp(2.5rem, 6vw, 5rem) var(--page-gutter) 1.5rem;grid-area:1/1/auto/-1}
.about-heading h2{max-width:50rem;font-size:clamp(4.35rem,8.8vw,6.8rem)}
.about-location-tags{top:2.8rem;right:var(--page-gutter)}
.about-intro{max-width:none;padding:2.5rem var(--page-gutter) 1.5rem 1.5rem;grid-area:2/2}
.about-body{font-size:clamp(1.1rem,1.75vw,1.38rem)}
.hand-note{font-size:clamp(1.22rem,1.9vw,1.55rem)}
.hand-note-desktop{display:none}
.hand-note-flow{display:inline-block}
.about-visual{grid-area:2/1/4;height:auto;min-height:clamp(34rem,60vw,46rem)}
.about-facts{padding:2.5rem var(--page-gutter) 2.5rem 1.5rem;border-block:.0625rem solid #15151529;grid-area:3/2;align-content:center}
.fact-block h3{font-size:clamp(2.45rem,3.75vw,3.45rem)}
.experience-list strong,.skill-list li{font-size:clamp(1.05rem,1.6vw,1.28rem)}
.experience-list small,.experience-list article>b{font-size:clamp(.88rem,1.25vw,1.04rem)}
.photo-story{padding:3.5rem var(--page-gutter) 5rem;grid-area:4/1/auto/-1;gap:clamp(1.25rem,3vw,2.5rem);height:auto}
.story-frame{aspect-ratio:1.42;height:auto}
.skills-orbit-page{height:auto;min-height:100svh;padding:clamp(3rem, 6vw, 5rem) var(--page-gutter) clamp(5rem, 8vw, 7rem);grid-template-columns:minmax(0,.75fr) minmax(19rem,1.25fr);grid-template-areas:"orbit-signal orbit-signal""orbit-heading orbit-notes""orbit-stage orbit-stage";overflow:clip}
.orbit-signal-bar{grid-template-columns:minmax(15rem,.8fr) minmax(16rem,.65fr)}
.orbit-signal-route{grid-area:2/1/auto/-1;justify-content:flex-start}
.orbit-page-heading{max-width:31rem}
.orbit-page-heading h2{max-width:none}
.orbit-notes{grid-template-columns:repeat(2,minmax(0,1fr))}
.orbit-note-title{grid-column:1/-1}
.orbit-stage{width:100%;height:clamp(31rem,56vw,39rem);min-height:0}
.skill-orbit-semicircle{width:min(58rem,94vw)}
}
@media (max-width:60rem) {
.about-spread{grid-template-rows:auto auto auto auto auto;grid-template-columns:1fr}
.about-heading{grid-area:1/1}
.about-location-tags{flex-wrap:wrap;margin-top:1.25rem;position:relative;top:auto;right:auto}
.about-location-tags span:nth-child(2),.about-location-tags span:nth-child(3){margin-top:0}
.about-intro{padding:0 var(--page-gutter) 2.5rem;grid-area:2/1}
.about-visual{--art-scale:1.1;--art-shift:-5%;grid-area:3/1;min-height:clamp(34rem,85vw,48rem)}
.about-facts{padding:3rem var(--page-gutter);border-block:.0625rem solid #15151529;grid-area:4/1;grid-template-columns:repeat(2,minmax(0,1fr))}
.photo-story{grid-area:5/1}
.skills-orbit-page{grid-template-columns:1fr;grid-template-areas:"orbit-signal""orbit-heading""orbit-stage""orbit-notes";gap:clamp(2.5rem,6vw,3.5rem);padding-top:clamp(2.5rem,7vw,4rem)}
.orbit-signal-bar{grid-template-columns:1fr auto}
.orbit-page-heading{max-width:42rem;padding-right:clamp(0rem,6vw,4rem)}
.orbit-notes{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,42rem)}
.orbit-paper-tag{width:100%}
}
@media (max-width:42rem) {
:root{--page-gutter:1.1rem}
.about-heading{padding:2.75rem var(--page-gutter) 2rem}
.about-heading h2{font-size:clamp(3.45rem,15vw,5.2rem)}
.about-location-tags{flex-wrap:wrap;margin-top:1.5rem;position:relative;top:auto;right:auto}
.about-location-tags span:nth-child(2),.about-location-tags span:nth-child(3){margin-top:0}
.about-body{font-size:clamp(1.12rem,4.6vw,1.28rem);line-height:1.58}
.hand-note{font-size:clamp(1.2rem,5vw,1.42rem);line-height:1.18}
.about-visual{--art-scale:1.04;--art-shift:0%;--astronaut-top:1rem;--astronaut-right:var(--page-gutter);--astronaut-bottom:1.5rem;--astronaut-left:var(--page-gutter);min-height:clamp(30rem,112vw,42rem)}
.astronaut-cutout{object-position:center bottom}
.about-visual:before{-webkit-mask-position:bottom;mask-position:bottom}
.about-facts{padding:3rem var(--page-gutter);grid-template-columns:1fr;gap:2.75rem}
.fact-block h3{font-size:clamp(2.85rem,12vw,3.5rem)}
.experience-list{gap:1.2rem}
.experience-list article{grid-template-columns:4.25rem minmax(0,1fr)}
.experience-list strong,.skill-list li{font-size:1.12rem}
.experience-list small,.experience-list article>b{font-size:.96rem}
.photo-story{padding:3.5rem var(--page-gutter) 4.5rem;grid-template-columns:1fr;gap:2.75rem}
.story-frame{aspect-ratio:1.45;justify-self:center;width:min(100%,35rem)}
.story-frame figcaption{font-size:.95rem}
.about-ticker{height:3.5rem;font-size:.7rem}
.skills-orbit-page{padding:2.75rem var(--page-gutter) 4rem;gap:2rem}
.orbit-signal-bar{padding-inline:0;grid-template-columns:1fr;gap:.85rem;padding-bottom:1rem}
.orbit-signal-route{white-space:normal;flex-wrap:wrap;grid-area:auto;justify-content:flex-start}
.orbit-signal-bar small{text-align:left;justify-self:start}
.orbit-page-heading{padding-right:0}
.orbit-page-heading h2{max-width:7ch;font-size:clamp(3.55rem,17vw,5rem)}
.orbit-page-heading p{font-size:.95rem}
.orbit-stage{height:clamp(23rem,96vw,31rem);min-height:0}
.skill-orbit-semicircle{width:100%}
.semi-orbit-globe{width:clamp(17rem,76vw,26rem)}
.semi-orbit-ring-1{width:clamp(18rem,72vw,24rem)}
.semi-orbit-ring-2{width:clamp(24rem,94vw,31rem)}
.semi-orbit-ring-3{width:clamp(28rem,108vw,36rem)}
.semi-orbit-ring-4{width:clamp(33rem,128vw,43rem)}
.semi-orbit-icon{width:2.65rem}
.orbit-notes{background:#f7f2e806;border:.0625rem solid #f7f2e833;grid-template-columns:repeat(2,minmax(0,1fr));justify-items:stretch;gap:.55rem;width:100%;padding:.7rem}
.orbit-note-title{grid-column:1/-1;justify-self:start;margin:0 0 .25rem}
.orbit-paper-tag{background:#f7f2e80e;align-items:flex-end;min-height:5.8rem;padding:2.15rem .72rem .72rem;font-size:clamp(.58rem,2.65vw,.7rem);line-height:1.3;display:flex;position:relative;overflow:hidden;transform:none}
.orbit-paper-tag:before{color:#f7f2e866;content:attr(data-proof);font:700 .5rem/1 var(--mono);letter-spacing:.12em;position:absolute;top:.68rem;left:.72rem}
.orbit-paper-tag:after{content:"";border-top:.0625rem solid #f7f2e85c;border-right:.0625rem solid #f7f2e85c;width:.38rem;height:.38rem;position:absolute;top:.55rem;right:.6rem}
}
@media (max-width:25rem) {
.about-heading h2{font-size:3.15rem}
.about-body{font-size:1.1rem}
.experience-list article{grid-template-columns:3.5rem minmax(0,1fr)}
.skill-list{grid-template-columns:1fr}
.semi-orbit-icon>span{display:none}
}
@keyframes semiOrbitClockwise{0%{transform:rotate(var(--start-angle))}to{transform:rotate(calc(var(--start-angle) + 360deg))}}
@keyframes semiOrbitCounterclockwise{0%{transform:rotate(var(--start-angle))}to{transform:rotate(calc(var(--start-angle) - 360deg))}}
@keyframes semiCounterClockwise{0%{transform:translate(-50%, -50%) rotate(var(--counter-offset))}to{transform:translate(-50%, -50%) rotate(calc(var(--counter-offset) - 360deg))}}
@keyframes semiCounterClockwiseReverse{0%{transform:translate(-50%, -50%) rotate(var(--counter-offset))}to{transform:translate(-50%, -50%) rotate(calc(var(--counter-offset) + 360deg))}}
@keyframes orbitGateSet{0%{opacity:0;transform:translate(-50%)scaleX(.35)}to{opacity:1;transform:translate(-50%)scaleX(1)}}
@keyframes orbitHeadingSet{0%{opacity:0;transform:translate(-3rem)rotate(-2deg)}55%{transform:translate(.45rem)rotate(.6deg)}to{opacity:1;transform:none}}
@keyframes orbitSignalSet{0%{opacity:0;transform:translateY(-1.75rem)}62%{opacity:1;transform:translateY(.18rem)}to{opacity:1;transform:none}}
@keyframes orbitMechanismSet{0%{opacity:0;transform:scale(.86)rotate(-4deg)}68%{opacity:1;transform:scale(1.018)rotate(.5deg)}to{opacity:1;transform:none}}
@keyframes orbitNotesSet{0%{opacity:0;transform:translate(2rem,1rem)rotate(2deg)}65%{transform:translate(-.25rem,-.15rem)rotate(-.5deg)}to{opacity:1;transform:none}}
@keyframes paperTagSet{0%{opacity:0;transform:translate(-2.2rem,-1rem)rotate(-11deg)scale(.82)}36%{opacity:1;transform:translate(.18rem,.08rem)rotate(2deg)scale(1.035)}to{opacity:1;transform:rotate(-1.4deg)}}
@keyframes headlineInkSet{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:translate(-1.5rem,.7rem)skew(-7deg)}38%{opacity:1;clip-path:inset(0);transform:translate(.12rem)skew(1deg)}to{opacity:1;transform:none}}
@keyframes paragraphRegister{0%{opacity:0;clip-path:inset(0 0 100%);transform:translateY(1.1rem)}40%{opacity:1;clip-path:inset(0);transform:translateY(-.08rem)}to{opacity:1;clip-path:inset(0);transform:none}}
@keyframes noteUnderlineSet{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:translate(-1rem)rotate(-3deg)}68%{opacity:1;clip-path:inset(0);transform:translate(.08rem)rotate(-.6deg)}to{opacity:1;clip-path:inset(0);transform:rotate(-1deg)}}
@keyframes factLineSet{0%{opacity:0;transform:translate(1.25rem,.35rem)rotate(1.5deg)}65%{opacity:1;transform:translate(-.12rem)rotate(-.2deg)}to{opacity:1;transform:none}}
@keyframes captionWrite{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:translateY(.4rem)}to{opacity:1;clip-path:inset(0);transform:none}}
@keyframes astronautPaperSet{0%{opacity:0;clip-path:inset(0 72% 0 0);transform:translate(-3.8rem,1rem)rotateY(18deg)rotate(-3deg)scale(.94)}56%{opacity:1;clip-path:inset(0);transform:translate(.42rem,-.12rem)rotateY(-2deg)rotate(.5deg)scale(1.008)}to{opacity:1;transform:none}}
@keyframes shadowRegistration{0%{opacity:0;transform:translate(2rem, -.45rem) rotate(2deg) scale(var(--art-scale)) translateX(var(--art-shift))}62%{opacity:1;transform:translate(.5rem, .62rem) rotate(-.2deg) scale(var(--art-scale)) translateX(var(--art-shift))}to{opacity:1;transform:translate(.7rem, .5rem) scale(var(--art-scale)) translateX(var(--art-shift))}}
@keyframes catalogCardSet{0%{opacity:0;clip-path:inset(0 0 100%);transform-origin:50% 0;transform:translateY(-1.4rem)rotateX(-18deg)}64%{opacity:1;clip-path:inset(0);transform:translateY(.14rem)rotateX(2deg)}to{opacity:1;transform:none}}
@keyframes skillTileSet{0%{opacity:0;transform:translate(.85rem,.6rem)rotate(5deg)scale(.82)}62%{opacity:1;transform:translate(-.08rem,-.05rem)rotate(-.8deg)scale(1.025)}to{opacity:1;transform:none}}
@keyframes photoDevelopSet{0%{opacity:0;filter:grayscale()contrast(.62);transform:perspective(52rem) translate3d(var(--photo-enter-x), 2.8rem, -3rem) rotateX(13deg) rotate(var(--photo-enter-r)) scale(.9)}58%{opacity:1;filter:grayscale(.18)contrast(1.06);transform:perspective(52rem) translate3d(var(--photo-mid-x), -.3rem, 0) rotateX(-1deg) rotate(calc(var(--frame-rotation) + .5deg)) scale(1.012)}to{opacity:1;transform:rotate(var(--frame-rotation))}}
@keyframes about-ticker{to{transform:translate(-50%)}}
/* Local adjustments: no photo row, and the sticker art already has its own outline */
.about-copy { grid-template: "heading heading" auto "intro facts" minmax(0,1fr) / minmax(0,.68fr) minmax(0,1.32fr); width: auto; justify-self: stretch; padding-top: 6.4rem; }
/* Two polaroids (resume + computer) under Experience/Skills, sized to each picture */
.about-copy { grid-template: "heading heading" auto "intro facts" auto "intro photos" minmax(var(--duo-h),1fr) / minmax(0,.68fr) minmax(0,1.32fr); --duo-h: clamp(14rem, 30svh, 19rem); }
.photo-story-duo { grid-area: photos; display: flex; align-items: flex-end; justify-content: center; gap: clamp(1.4rem, 3vw, 3rem); height: auto; padding: 1.2rem 0 1.6rem; }
.photo-story-duo .story-frame { flex: none; height: var(--duo-h); width: calc((var(--duo-h) - 2.75rem) * (var(--ar)) + 1.2rem); }
.photo-story-duo .story-frame a { display: block; width: 100%; height: 100%; cursor: pointer; }
.frame-resume { --frame-rotation: -3deg; --photo-enter-x: -4rem; --photo-enter-r: -9deg; --photo-mid-x: .24rem; }
.frame-computer { --frame-rotation: 3deg; --photo-enter-x: 4rem; --photo-enter-r: 9deg; --photo-mid-x: -.24rem; }
.photo-story-duo .story-frame img { object-position: center top; }
.frame-computer img { object-fit: contain; background: #fff; }
@media (max-width: 74rem) {
  .photo-story-duo { grid-area: auto; grid-column: 1 / -1; padding: 2.5rem var(--page-gutter) 4rem; --duo-h: clamp(15rem, 34vw, 19rem); }
  .photo-story-duo .story-frame { aspect-ratio: auto; justify-self: auto; height: var(--duo-h); width: calc((var(--duo-h) - 2.75rem) * (var(--ar)) + 1.2rem); }
}
@media (max-width: 40rem) { .photo-story-duo { flex-wrap: wrap; --duo-h: 17rem; gap: 2.5rem; } }
/* Room for the fixed top bar: the page grows instead of clipping */
.about-page { height: auto; }
.about-spread { height: auto; min-height: calc(100svh - var(--about-ticker-height)); }
.about-visual { padding-top: 5rem; box-sizing: border-box; }
.about-visual { --art-scale:1; --art-shift:0%; --astronaut-top:1.2rem; --astronaut-bottom:.8rem; --astronaut-left:1.5rem; }
.astronaut-cutout { filter: drop-shadow(.75rem .9rem 0 #23201b2e); }
.about-body strong { color: #151515; }
.skill-mark i { font-size: .82rem; }
.about-page .hand-note-desktop { bottom: clamp(3rem,7vh,5rem); right: clamp(1rem,3vw,3rem); }


/* Projects + Open Source (ported ASCII layout) */
.projects-page, .project-dialog-backdrop { --ink:#0d0f0e; --paper:#ece6d9; --paper-light:#f7f2e8; --red:#b94835; --blue:#3159c7; --display:"Montserrat","Helvetica Neue",Arial,sans-serif; --mono:"Courier New",Courier,monospace; --page-gutter:clamp(1rem,3vw,3.75rem); --ease-premium:cubic-bezier(.16,1,.3,1); }
.projects-page{--project-accent:#e05a3f;z-index:38;width:100%;min-height:100svh;padding:clamp(1rem, 2.2vw, 2.2rem) var(--page-gutter) clamp(3rem, 7vw, 7rem);color:#101211;isolation:isolate;transition:--project-accent .7s var(--ease-premium);background-color:#e9e2d4;background-image:linear-gradient(#1012110e .0625rem,#0000 .0625rem),linear-gradient(90deg,#1012110e .0625rem,#0000 .0625rem),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:2.75rem 2.75rem;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;position:relative;overflow:clip}
.projects-page:before{z-index:-1;content:"";pointer-events:none;background:linear-gradient(120deg,#ffffffb8,#0000 28%),linear-gradient(#0000 82%,#0d0f0e0d);position:absolute;inset:0}
.projects-page:after{z-index:0;content:"";background:var(--project-accent);transform-origin:100%;width:min(24rem,34vw);height:.46rem;transition:background-color .65s var(--ease-premium);position:absolute;top:0;right:0}
.motion-ready .projects-page [data-project-reveal]{opacity:0}
.motion-ready .projects-page [data-project-reveal].is-visible{opacity:1}
.motion-ready .projects-page [data-project-reveal=masthead].is-visible{animation:projectMastheadSet .55s var(--ease-premium) both}
.motion-ready .projects-page [data-project-reveal=intro].is-visible{animation:projectIntroSet .68s var(--ease-premium) 30ms both}
.motion-ready .projects-page [data-project-reveal=index].is-visible{animation:projectIndexSet .65s var(--ease-premium) 50ms both}
.motion-ready .projects-page [data-project-reveal=feature].is-visible{animation:projectFeatureSet .72s var(--ease-premium) 60ms both}
.motion-ready .projects-page [data-project-reveal=card].is-visible{animation:projectCardSet .58s var(--ease-premium) calc(20ms + var(--reveal-order,0) * 10ms) both}
.motion-ready .projects-page [data-project-reveal=contact-sheet].is-visible{animation:projectContactSet .72s var(--ease-premium) 80ms both}
.projects-page.project-runway{--runway-paper:#f0eadf;z-index:38;min-height:100svh;color:var(--runway-paper);isolation:isolate;background-color:#070908;background-image:linear-gradient(#f0eadf09 .0625rem,#0000 .0625rem),linear-gradient(90deg,#f0eadf09 .0625rem,#0000 .0625rem),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:3rem 3rem;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;padding:0;position:relative;overflow:clip}
.projects-page.project-runway:before{z-index:-1;content:"";pointer-events:none;background:linear-gradient(90deg,#0000 49.96%,#f0eadf0d 50%,#0000 50.04%),radial-gradient(circle at 15% 4%,#ef5a3c24,#0000 25rem);position:absolute;inset:0}
.projects-page.project-runway:after{display:none}
.projects-page.ascii-projects{z-index:38;min-height:100svh;padding:clamp(1rem, 1.7vw, 1.8rem) var(--page-gutter) 0;color:#efede7;isolation:isolate;background-color:#080a09;background-image:linear-gradient(#ece6d90b .0625rem,#0000 .0625rem),linear-gradient(90deg,#ece6d90b .0625rem,#0000 .0625rem),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:2.8rem 2.8rem;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;position:relative;overflow:clip}
.projects-page.ascii-projects:before{z-index:-1;content:"";pointer-events:none;background:linear-gradient(90deg,#0000 49.96%,#ece6d909 50%,#0000 50.04%),linear-gradient(#0000 49.96%,#ece6d909 50%,#0000 50.04%);position:absolute;inset:0}
.projects-page.ascii-projects:after{display:none}
.ascii-masthead{z-index:4;grid-template-columns:1fr auto 1fr;align-items:start;gap:1rem;margin-top:clamp(1.7rem,2.4vw,2.7rem);display:grid;position:relative}
.ascii-masthead>a{width:fit-content;font:700 clamp(1.25rem, 1.65vw, 2rem)/.66 var(--display);letter-spacing:-.08em}
.ascii-masthead p{color:#efede7;min-width:clamp(15rem,18vw,19rem);font:700 clamp(.88rem, 1vw, 1.15rem)/1 var(--mono);letter-spacing:.28em;text-indent:.28em;background:#efede709;border:.0625rem solid #efede761;justify-content:center;justify-self:center;align-items:center;margin:0;padding:.92rem 1.35rem .8rem;display:flex;position:relative;box-shadow:inset 0 0 0 .22rem #080a09}
.ascii-masthead p:before,.ascii-masthead p:after{content:"";background:#efede7;width:.34rem;height:.34rem;position:absolute;top:50%;transform:translateY(-50%)rotate(45deg)}
.ascii-masthead p:before{left:-.2rem}
.ascii-masthead p:after{right:-.2rem}
.ascii-intro{z-index:3;grid-template-columns:minmax(0,1.15fr) minmax(17rem,.48fr);align-items:end;gap:clamp(2rem,7vw,8rem);padding:clamp(8rem,13vw,13rem) 0 clamp(5rem,8vw,8rem);display:grid;position:relative}
.ascii-intro>span{color:#efede785;font:700 clamp(.55rem, .65vw, .74rem)/1 var(--mono);letter-spacing:.15em;position:absolute;top:clamp(4.5rem,7vw,7rem);left:0}
.ascii-intro h2{font:700 clamp(4.7rem, 8.6vw, 9.6rem)/.78 var(--display);letter-spacing:-.09em;margin:0}
.ascii-intro h2 em{color:#0000;-webkit-text-stroke:clamp(.065rem, .08vw, .1rem) #efede7;font-style:normal}
.ascii-intro>p{color:#efede7ab;max-width:33rem;margin:0 0 .35rem;font:500 clamp(.96rem,1.08vw,1.18rem)/1.52 Arial,Helvetica,sans-serif}
.ascii-project-grid{z-index:3;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:clamp(4.5rem,8vw,9rem) clamp(1.5rem,3vw,3.5rem);padding:0 0 clamp(7rem,13vw,13rem);display:grid;position:relative}
.ascii-project-entry{content-visibility:auto;contain-intrinsic-size:auto 34rem;min-width:0;display:flex}
.ascii-project-card{color:#efede7;cursor:pointer;text-align:left;background:0 0;border:0;grid-template-rows:auto auto 4.2rem 1rem;align-content:start;width:100%;height:100%;padding:0;display:grid;position:relative;overflow:visible}
.ascii-preview{width:100%;aspect-ratio:var(--ascii-ratio,8 / 5);isolation:isolate;background:#080a09;border:.0625rem solid #efede71f;position:relative;overflow:hidden}
.ascii-preview:before,.ascii-preview:after{z-index:5;content:"";pointer-events:none;opacity:.28;width:2.4rem;height:2.4rem;transition:opacity .45s,border-color .45s;position:absolute}
.ascii-preview:before{border-top:.0625rem solid #efede7;border-left:.0625rem solid #efede7;top:.45rem;left:.45rem}
.ascii-preview:after{border-bottom:.0625rem solid #efede7;border-right:.0625rem solid #efede7;bottom:.45rem;right:.45rem}
.ascii-preview canvas,.ascii-source-image{width:100%;height:100%;display:block;position:absolute;inset:0}
.ascii-preview canvas{z-index:1;opacity:1;transition:opacity .75s var(--ease-premium), filter .75s var(--ease-premium), transform .9s var(--ease-premium)}
.ascii-source-image{z-index:2;object-fit:contain;object-position:top center;opacity:0;filter:grayscale()contrast(.72)brightness(.72)blur(.28rem);transition:opacity .72s var(--ease-premium), filter .82s var(--ease-premium), transform 1.05s var(--ease-premium);transform:scale(1.025)}
.ascii-project-card:focus-visible{outline:none}
.ascii-project-card:focus-visible .ascii-preview{outline:.1rem solid var(--ascii-accent);outline-offset:.5rem}
.ascii-project-card:focus-visible .ascii-preview canvas{opacity:0;filter:blur(.18rem);transform:scale(.985)}
.ascii-project-card:focus-visible .ascii-window{opacity:1;filter:none;transform:none}
.ascii-project-meta{color:#efede780;font:700 clamp(.54rem, .6vw, .68rem)/1 var(--mono);letter-spacing:.1em;justify-content:space-between;gap:1rem;margin-top:.8rem;display:flex}
.ascii-project-meta b{color:var(--ascii-accent)}
.ascii-project-meta i{font-style:normal}
.ascii-project-title{min-height:0;font:700 clamp(1.35rem, 2vw, 2.25rem)/1 var(--display);letter-spacing:-.055em;text-transform:uppercase;margin-top:.42rem;display:block}
.ascii-hover-instruction{color:#efede757;min-height:.75rem;font:700 clamp(.48rem, .53vw, .6rem)/1 var(--mono);letter-spacing:.09em;opacity:.66;transition:opacity .4s ease, transform .4s var(--ease-premium);justify-self:end;margin-top:.55rem;display:block;position:static;transform:none}
.ascii-instruction-touch{display:none}
.ascii-project-card:hover .ascii-hover-instruction,.ascii-project-card:focus-visible .ascii-hover-instruction{opacity:1;transform:none}
.project-dialog-backdrop{z-index:200;overscroll-behavior:contain;touch-action:none;background:#080a09;animation:.24s both projectBackdropIn;position:fixed;inset:0;overflow:hidden}
.project-dialog{--dialog-accent:#c9c5bc;color:#111311;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:none;width:100%;height:100%;animation:projectDialogIn .42s var(--ease-premium) both;background:#efede7;position:relative;overflow:hidden auto}
.project-dialog::-webkit-scrollbar{display:none}
.project-dialog-header{z-index:12;color:#efede7;-webkit-backdrop-filter:blur(.8rem);min-height:4.25rem;font:700 .58rem/1 var(--mono);letter-spacing:.1em;background:#080a09f5;border-bottom:.0625rem solid #efede72e;grid-template-columns:1fr auto auto;align-items:center;gap:1rem;padding:.65rem clamp(1rem,3.2vw,3.5rem);display:grid;position:sticky;top:0}
.project-dialog-header>p{color:#efede794;margin:0}
.project-dialog-close{color:#111311;border:.0625rem solid var(--dialog-accent);background:var(--dialog-accent);cursor:pointer;min-width:6.5rem;min-height:3rem;font:700 .6rem/1 var(--mono);letter-spacing:.1em;justify-content:center;align-items:center;gap:.75rem;padding:.6rem 1rem;display:flex}
.project-dialog-close span{font-size:1.2rem}
.project-dialog-close:focus-visible{outline:.12rem solid var(--dialog-accent);outline-offset:.2rem}
.project-dialog-body{background:#080a09;grid-template-columns:minmax(0,1.32fr) minmax(23rem,.68fr);min-height:calc(100svh - 4.25rem);display:grid}
.project-dialog-media-panel{background:#080a09;border-right:.0625rem solid #efede729;flex-direction:column;align-self:start;min-width:0;height:calc(100svh - 4.25rem);display:flex;position:sticky;top:4.25rem;overflow:hidden}
.project-dialog-visual{background-color:#080a09;background-image:linear-gradient(#efede709 .0625rem,#0000 .0625rem),linear-gradient(90deg,#efede709 .0625rem,#0000 .0625rem),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:3rem 3rem;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;flex:auto;place-items:center;width:100%;min-height:0;padding:clamp(.8rem,1.5vw,1.5rem);display:grid;position:relative;overflow:hidden}
.project-dialog-visual img{width:100%;height:100%;max-height:100%;aspect-ratio:var(--dialog-ratio,8 / 5);object-fit:contain;object-position:center;display:block;box-shadow:0 2rem 5rem #0000006b}
.project-dialog-visual>span{color:#111311;background:var(--dialog-accent);font:700 .58rem/1 var(--mono);letter-spacing:.09em;padding:.62rem .8rem .52rem;position:absolute;bottom:clamp(1.2rem,2vw,2.2rem);right:clamp(1.2rem,2vw,2.2rem)}
.project-gallery-strip{z-index:10;color:#efede7;overscroll-behavior-inline:contain;scrollbar-width:none;background:#111311;border-top:.0625rem solid #efede724;border-bottom:.0625rem solid #efede724;flex:none;grid-auto-columns:minmax(9rem,1fr);grid-auto-flow:column;display:grid;overflow-x:auto}
.project-gallery-strip::-webkit-scrollbar{display:none}
.project-gallery-strip button{color:#efede794;cursor:pointer;min-height:3.5rem;font:700 .55rem/1 var(--mono);letter-spacing:.08em;white-space:nowrap;background:0 0;border:0;border-right:.0625rem solid #efede724;justify-content:center;align-items:center;gap:.7rem;padding:.75rem 1rem;display:flex}
.project-gallery-strip button span{color:var(--dialog-accent)}
.project-gallery-strip button:hover,.project-gallery-strip button:focus-visible,.project-gallery-strip button.is-active{color:#111311;background:var(--dialog-accent);outline:none}
.project-gallery-strip button.is-active span,.project-gallery-strip button:hover span,.project-gallery-strip button:focus-visible span{color:#111311}
.project-dialog-copy{background:#efede7;flex-direction:column;gap:0;min-width:0;padding:clamp(2.5rem,4vw,4.75rem) clamp(1.4rem,3.2vw,3.6rem) 3.5rem;display:flex;position:relative}
.project-dialog-title-block{padding-bottom:clamp(1.7rem,3vw,2.8rem);position:relative}
.project-dialog-title-block>p{color:var(--dialog-accent);margin:0}
.project-dialog-title-block>p{font:700 .65rem/1 var(--mono);letter-spacing:.12em;text-transform:uppercase}
.project-dialog-title-block h3{font:700 clamp(3.4rem, 5.2vw, 6.7rem)/.77 var(--display);letter-spacing:-.09em;overflow-wrap:anywhere;margin:.85rem 0 0}
.project-dialog-title-block>span{color:#11131185;font:700 .56rem/1 var(--mono);letter-spacing:.12em;margin-top:1.35rem;display:block}
.project-dialog-copy dl{margin:0}
.project-dialog-copy dl div{border-top:.0625rem solid #11131152;grid-template-columns:6.2rem minmax(0,1fr);gap:clamp(.8rem,2vw,1.8rem);padding:1.25rem 0;display:grid}
.project-dialog-copy dt{font:700 .58rem/1.2 var(--mono);letter-spacing:.1em}
.project-dialog-copy dd{margin:0;font:500 clamp(.92rem,1vw,1.08rem)/1.48 Arial,Helvetica,sans-serif}
.project-dialog-copy ul{flex-wrap:wrap;gap:.42rem;margin:1.1rem 0 0;padding:0;list-style:none;display:flex}
.project-dialog-copy li{font:700 .57rem/1 var(--mono);letter-spacing:.06em;text-transform:uppercase;border:.0625rem solid #1113118c;border-radius:100vmax;padding:.55rem .7rem .48rem}
.project-dialog-links{gap:.7rem;padding-top:1.5rem;display:grid}
.project-dialog-links a{border-bottom:.22rem solid var(--dialog-accent);min-height:3rem;font:700 clamp(.68rem, .78vw, .88rem)/1 var(--mono);letter-spacing:.08em;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 0 .25rem;display:flex}
.project-dialog-links a span{transition:transform .35s var(--ease-premium)}
.project-dialog-links a:hover span,.project-dialog-links a:focus-visible span{transform:translate(.22rem,-.22rem)}
.project-dialog-pagination{color:#efede7;background:#080a09;grid-template-columns:repeat(2,minmax(0,1fr));display:grid}
.project-dialog-pagination button{min-height:10rem;color:inherit;cursor:pointer;text-align:left;background:0 0;border:0;border-right:.0625rem solid #efede72e;align-content:center;gap:.8rem;padding:clamp(1.4rem,3vw,3.5rem);display:grid}
.project-dialog-pagination button:last-child{text-align:right;border-right:0}
.project-dialog-pagination button:hover,.project-dialog-pagination button:focus-visible{color:#111311;background:var(--dialog-accent);outline:none}
.project-dialog-pagination span{font:700 .56rem/1 var(--mono);letter-spacing:.1em}
.project-dialog-pagination b{font:700 clamp(1.8rem, 3.5vw, 4rem)/.82 var(--display);letter-spacing:-.06em}
@media (max-width:42rem) {
.projects-page{background-size:2rem 2rem;padding-left:1rem;padding-right:1rem}
.projects-page:after{width:38vw}
.projects-page.project-runway{background-size:2rem 2rem}
.projects-page.ascii-projects{background-size:2.8rem 2.8rem;padding-left:1rem;padding-right:1rem}
.ascii-intro{padding-top:8.5rem;padding-bottom:4.5rem}
.ascii-intro>span{font-size:.52rem;top:4.6rem}
.ascii-intro h2{font-size:clamp(3.8rem,18vw,5.7rem)}
.ascii-intro>p{margin-top:1.6rem;font-size:.94rem}
.ascii-project-grid{grid-template-columns:1fr;gap:4.8rem}
.ascii-project-title{font-size:clamp(1.35rem,7vw,1.9rem)}
.ascii-hover-instruction{display:none}
.project-dialog-header{grid-template-columns:1fr auto;min-height:3.75rem;padding:.45rem .75rem}
.project-dialog-header>p{display:none}
.project-dialog-close{min-width:5.6rem;min-height:2.8rem;padding:.55rem .75rem}
.project-dialog-visual{background-size:2rem 2rem;min-height:0;padding:.55rem}
.project-dialog-visual img{max-height:none}
.project-dialog-visual>span{bottom:.75rem;right:.75rem}
.project-gallery-strip{grid-auto-columns:minmax(8.5rem,1fr)}
.project-gallery-strip button{min-height:3.25rem}
.project-dialog-copy{padding:2.7rem 1rem 3.5rem}
.project-dialog-title-block h3{font-size:clamp(3.4rem,16vw,5.8rem)}
.project-dialog-copy dl div{grid-template-columns:1fr;gap:.5rem}
.project-dialog-pagination{grid-template-columns:1fr}
.project-dialog-pagination button,.project-dialog-pagination button:last-child{text-align:left;border-bottom:.0625rem solid #efede72e;border-right:0;min-height:7rem}
.project-dialog-pagination button:last-child{border-bottom:0}
}
@media (hover:hover) and (pointer:fine) {
.ascii-project-card:hover .ascii-preview canvas{opacity:0;filter:blur(.18rem);transform:scale(.985)}
.ascii-project-card:hover .ascii-window{opacity:1;filter:none;transform:none}
.ascii-project-card:hover .ascii-preview:before,.ascii-project-card:hover .ascii-preview:after{border-color:var(--ascii-accent);opacity:1}
}
@supports (color:color-mix(in lab, red, red)) {
.project-dialog-title-block>p{color:color-mix(in srgb, var(--dialog-accent) 68%, #111311)}
}
@media (max-width:60rem) {
.ascii-masthead{grid-template-columns:1fr auto}
.ascii-masthead p{min-width:11rem;padding:.78rem 1rem .68rem;font-size:.78rem}
.ascii-intro{grid-template-columns:1fr}
.ascii-intro h2{font-size:clamp(4.8rem,12vw,7.5rem)}
.ascii-intro>p{max-width:38rem;margin-top:2rem}
.project-dialog-body{grid-template-columns:1fr}
.project-dialog-media-panel{border-right:0;height:auto;position:relative;top:auto}
.project-dialog-visual{aspect-ratio:var(--dialog-ratio,8 / 5);flex:none}
.project-dialog-visual img{max-height:none}
.project-dialog-copy{min-height:auto}
}
@media (max-width:25rem) {
.ascii-intro h2{font-size:clamp(3.4rem,17vw,4.8rem)}
.project-dialog-copy{padding-left:.8rem;padding-right:.8rem}
}
@media (hover:none),(pointer:coarse),(max-width:64rem) {
.ascii-project-card{grid-template-rows:auto auto minmax(4.2rem,auto) minmax(2.5rem,auto)}
.ascii-project-card.is-touch-revealed .ascii-preview canvas{opacity:0;filter:blur(.18rem);transform:scale(.985)}
.ascii-project-card.is-touch-revealed .ascii-window{opacity:1;filter:none;transform:none}
.ascii-project-card.is-touch-revealed .ascii-preview:before,.ascii-project-card.is-touch-revealed .ascii-preview:after{border-color:var(--ascii-accent);opacity:1}
.ascii-project-card:focus-visible:not(.is-touch-revealed) .ascii-preview canvas{opacity:1;filter:none;transform:none}
.ascii-project-card:focus-visible:not(.is-touch-revealed) .ascii-window{opacity:0}
.ascii-hover-instruction{letter-spacing:.08em;opacity:.82;justify-content:flex-end;align-items:center;min-height:2.5rem;margin-top:.35rem;padding:.65rem 0 .35rem;font-size:clamp(.82rem,2.4vw,1rem);line-height:1.25;display:flex;transform:none}
.ascii-project-card.is-touch-revealed .ascii-hover-instruction{color:var(--ascii-accent);opacity:1}
.ascii-instruction-desktop{display:none}
.ascii-instruction-touch{display:inline-block}
}
@media (prefers-reduced-motion:reduce) {
.motion-ready .projects-page [data-project-reveal],.project-gate,.project-record{opacity:1;clip-path:none;filter:none;transform:none}
}
@keyframes projectBackdropIn{0%{opacity:0}to{opacity:1}}
@keyframes projectContactSet{0%{opacity:0;transform:translateY(2rem)}to{opacity:1;transform:none}}
@keyframes projectIndexSet{0%{opacity:0;transform:translateY(2.3rem)}to{opacity:1;transform:none}}
@keyframes projectDialogIn{0%{opacity:0;transform:translateY(1.5rem)}to{opacity:1;transform:none}}
@keyframes projectIntroSet{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:translate(-2rem)}to{opacity:1;clip-path:inset(0);transform:none}}
@keyframes projectCardSet{0%{opacity:0;transform:translateY(1.5rem)scale(.99)}to{opacity:1;transform:none}}
@keyframes projectFeatureSet{0%{opacity:0;transform:translateY(3.5rem)}to{opacity:1;transform:none}}
@keyframes projectMastheadSet{0%{opacity:0;transform:translateY(-1.5rem)}to{opacity:1;transform:none}}
/* Local adjustments: the resets the ported layouts assume */
:is(.about-page, .skills-orbit-page, .projects-page, .project-dialog-backdrop), :is(.about-page, .skills-orbit-page, .projects-page, .project-dialog-backdrop) *, :is(.about-page, .skills-orbit-page, .projects-page, .project-dialog-backdrop) *::before, :is(.about-page, .skills-orbit-page, .projects-page, .project-dialog-backdrop) *::after { box-sizing: border-box; }
:is(.projects-page, .project-dialog-backdrop) a { color: inherit; text-decoration: none; }
:is(.projects-page, .project-dialog-backdrop) button { font: inherit; letter-spacing: inherit; color: inherit; background-color: transparent; border: 0; border-radius: 0; margin: 0; padding: 0; }
html.project-dialog-open .top-bar, html.project-dialog-open .js-menu { display: none; }
.projects-page { padding-top: 6rem; }
/* Dark sections let the moving X background show through, and start on a crisp edge */
.projects-page.ascii-projects, .skills-orbit-page { background-color: rgba(8, 10, 9, 0.72); border-top: 1px solid rgba(239, 237, 231, 0.14); }
.gh-activity { background: rgba(10, 10, 10, 0.55); }
.project-dialog dd a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }


/* Scroll progress rail (bottom right): a tick per section and a sliding marker */
.scroll-progress { --red: #b94835; right: clamp(.75rem,1.6vw,1.5rem); bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 90; pointer-events: none; -webkit-backdrop-filter: blur(.4rem); backdrop-filter: blur(.4rem); contain: layout paint; background: #050606f0; border: .0625rem solid #f2ecde1a; border-radius: .85rem; place-items: center; width: clamp(10rem,17vw,16.5rem); height: clamp(2.35rem,3vw,2.8rem); padding: .55rem .8rem; display: grid; position: fixed; overflow: hidden; box-shadow: 0 .75rem 1.8rem #00000047; box-sizing: border-box; }
.scroll-progress-rail { background: repeating-linear-gradient(90deg,#efe8d861 0 .0625rem,#0000 .0625rem .43rem); width: 100%; height: 1.3rem; display: block; position: relative; }
.scroll-progress-rail::before { content: ""; background: #efe8d81f; height: .0625rem; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); }
.scroll-progress-marker { z-index: 3; background: var(--red); width: .32rem; height: 1.65rem; transform: translate3d(var(--scroll-progress-x, 0px), -50%, 0); will-change: transform; border-radius: .18rem; position: absolute; top: 50%; left: 0; }
.scroll-progress-page { z-index: 1; background: var(--red); opacity: .72; border-radius: .08rem; width: .14rem; height: 1.35rem; position: absolute; top: 50%; transform: translate(-50%,-50%); }
.project-dialog-open .scroll-progress, .header.is-active ~ .scroll-progress { display: none; }
@media (max-width: 42rem) {
    .scroll-progress { right: .7rem; border-radius: .7rem; width: 8.75rem; height: 2.25rem; padding: .48rem .65rem; }
    .scroll-progress-rail { background-size: .36rem 100%; height: 1rem; }
    .scroll-progress-marker { width: .28rem; height: 1.35rem; }
}

/* Contact heading in the display style, with the last word outlined */
.contact-heading h2 { font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif; font-weight: 700; font-size: clamp(3.4rem, 7.2vw, 8.4rem); line-height: .86; letter-spacing: -.075em; }
.contact-heading h2 em { color: transparent; -webkit-text-stroke: clamp(.06rem, .08vw, .1rem) var(--ink); font-style: normal; }

/* Footer: numbered social links row (ported) */
.site-socials { --mono: "Courier New", Courier, monospace; --display: "Montserrat", "Helvetica Neue", Arial, sans-serif; --ease-premium: cubic-bezier(.16,1,.3,1); position: relative; z-index: 10; padding: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 3vw, 3.75rem); background: rgba(8, 10, 9, .72); border-top: 1px solid rgba(239, 237, 231, .14); }
.site-socials, .site-socials * { box-sizing: border-box; }
.ascii-footer-socials { z-index: 3; border-top: .0625rem solid #efede729; border-bottom: .0625rem solid #efede729; grid-template-columns: repeat(4, minmax(0, 1fr)); display: grid; position: relative; }
.ascii-footer-socials a { color: #efede7; text-decoration: none; min-height: 5.25rem; font-family: var(--mono); border-right: .0625rem solid #efede729; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: 1rem clamp(.75rem, 1.2vw, 1.25rem); transition: color .35s, background-color .35s; display: grid; }
.ascii-footer-socials a:last-child { border-right: 0; }
.ascii-footer-socials small { color: #efede76b; font: 700 .54rem/1 var(--mono); }
.ascii-footer-socials span { font: 700 clamp(.64rem, .74vw, .82rem)/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.ascii-footer-socials b { font: 400 1rem/1 var(--display); transition: transform .35s var(--ease-premium); }
.ascii-footer-socials a:hover, .ascii-footer-socials a:focus-visible { color: #080a09; background: #efede7; outline: none; }
.ascii-footer-socials a:hover small, .ascii-footer-socials a:focus-visible small { color: #080a0985; }
.ascii-footer-socials a:hover b, .ascii-footer-socials a:focus-visible b { transform: translate(.18rem, -.18rem); }
@media (max-width: 760px) { .contact-heading h2 { font-size: clamp(3rem, 14vw, 5rem); } }
@media (max-width: 42rem) {
    .ascii-footer-socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ascii-footer-socials a:nth-child(2n) { border-right: 0; }
    .ascii-footer-socials a:nth-child(n+3) { border-top: .0625rem solid #efede729; }
}

/* Hero: big name with the portrait over it */
.hero {
    position: relative; z-index: 10; min-height: 100vh; box-sizing: border-box;
    padding: 130px 5vw 90px; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    display: flex; flex-direction: column; overflow: hidden;
}
.hero-kicker {
    margin: 0; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
    color: rgba(240, 240, 240, 0.85); animation: hero-in 0.8s var(--ease-out-expo) both;
}
.hero-name { position: relative; align-self: center; margin: auto 0; padding-top: 4vh; }
.hero-title {
    margin: 0; display: flex; flex-direction: column; align-items: center;
    font-family: inherit; font-weight: 900; line-height: 0.8; letter-spacing: -0.055em;
    font-size: min(15.5vw, 25vh);
}
.hero-first { color: #f0efea; animation: hero-in 1s var(--ease-out-expo) 0.1s both; }
.hero-last {
    color: transparent; -webkit-text-stroke: 1.5px rgba(240, 239, 234, 0.4);
    margin-left: 0.4em; animation: hero-in 1s var(--ease-out-expo) 0.25s both;
}
.hero-portrait-anchor { position: relative; display: inline-block; width: 0; height: 0.72em; }
.hero-portrait {
    position: absolute; left: 0; top: 50%; width: 1.12em; aspect-ratio: 1;
    border-radius: 50%; object-fit: cover; object-position: 50% 18%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 0.04em rgba(10, 10, 10, 0.6);
    transform: translate(-50%, -50%); animation: hero-portrait-in 1.2s var(--ease-out-expo) 0.4s both;
    transition: transform 0.6s var(--ease-out-expo);
}
.hero-portrait:hover { transform: translate(-50%, -50%) scale(1.06) rotate(-3deg); }
.hero-intro { max-width: 430px; animation: hero-in 1s var(--ease-out-expo) 0.5s both; }
.hero-intro__arrow { width: 26px; height: 26px; color: var(--color-primary); }
.hero-intro p { margin: 14px 0 26px; font-size: 1.3rem; line-height: 1.55; color: rgba(240, 240, 240, 0.75); }
.hero-cta {
    display: inline-flex; align-items: center; gap: 18px; padding: 16px 30px; border-radius: 50px;
    background: #f0efea; color: #111; font-weight: 600; font-size: 1.05rem; text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.hero-cta:hover { background: var(--color-primary); color: #fff; transform: translateY(-2px); }
.hero-status {
    position: absolute; right: 5vw; bottom: 90px; display: flex; align-items: center; gap: 12px;
    font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240, 240, 240, 0.8);
    animation: hero-in 1s var(--ease-out-expo) 0.6s both;
}
.hero-status__dot { width: 9px; height: 9px; border-radius: 50%; background: #9ccc65; box-shadow: 0 0 10px #9ccc65; animation: hero-pulse 2s ease-in-out infinite; }
.hero-scroll {
    position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%);
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
    color: rgba(240, 240, 240, 0.85); text-decoration: none; white-space: nowrap;
}
.hero-scroll span { display: inline-block; margin-left: 8px; animation: hero-bob 1.6s ease-in-out infinite; }
@keyframes hero-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes hero-portrait-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6) rotate(-20deg); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes hero-pulse { 50% { opacity: 0.35; } }
@keyframes hero-bob { 50% { transform: translate(3px, 3px); } }

/* Building in public: live GitHub graph */
.gh-activity {
    position: relative; z-index: 10; padding: 90px 5vw; font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(10, 10, 10, 0.7);
}
.gh-activity__inner {
    display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 50px; align-items: center;
    padding: 60px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.gh-activity__kicker { margin: 0; font-family: 'Courier Prime', monospace; font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-primary); }
.gh-activity__title { margin: 14px 0 10px; font-size: clamp(2.4rem, 4.2vw, 4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: #f0efea; }
.gh-activity__total { margin: 0 0 22px; color: rgba(240, 240, 240, 0.55); font-size: 1rem; min-height: 1.2em; }
.gh-activity__link { display: inline-flex; align-items: center; gap: 10px; color: #f0efea; font-weight: 600; text-decoration: none; transition: color 0.3s ease; }
.gh-activity__link:hover { color: var(--color-primary); }
.gh-graph-card { position: relative; min-width: 0; border-radius: 18px; overflow: hidden; isolation: isolate; background: #121212; border: 1px solid rgba(255, 255, 255, 0.1); }
.gh-graph-art {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
    opacity: 0.34; filter: brightness(0.75) saturate(0.85); pointer-events: none;
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.8s var(--ease-out-expo);
}
.gh-graph-card { cursor: pointer; }
.gh-graph { position: relative; z-index: 1; transition: filter 0.5s ease, opacity 0.5s ease; }
/* Hover (or tap on touch screens) brings the art forward and dims the heatmap */
.gh-graph-card:hover .gh-graph, .gh-graph-card.is-art .gh-graph { filter: brightness(0.3) saturate(0.4); opacity: 0.12; }
.gh-graph-card:hover .gh-graph-art, .gh-graph-card.is-art .gh-graph-art { opacity: 1; filter: none; transform: scale(1.02); }
.gh-graph {
    padding: 48px 28px; border-radius: 18px;
    background: transparent; min-height: 120px; min-width: 0; overflow-x: auto;
}
.gh-graph svg { display: block; width: 100%; min-width: 620px; height: auto; }
.gh-graph__label { font-size: 10px; fill: rgba(240, 240, 240, 0.65); font-family: 'Inter', sans-serif; }
.gh-cell { transition: opacity 0.2s ease; }
.gh-cell:hover { opacity: 0.6; }
.gh-cell--0 { fill: rgba(255, 255, 255, 0.05); }
.gh-cell--1 { fill: #5c1a1a; }
.gh-cell--2 { fill: #93231f; }
.gh-cell--3 { fill: #d02b24; }
.gh-cell--4 { fill: #ff5a4e; }
.gh-activity--offline .gh-graph-card { display: none; }
.gh-activity--offline .gh-activity__inner { grid-template-columns: 1fr; }
.btn {
    padding: 12px 35px; font-size: 1rem; font-weight: 600; border-radius: 50px;
    text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(118, 75, 162, 0.6); }
.btn-outline { background: transparent; color: #667eea; border: 2px solid #667eea; }
.btn-outline:hover { background: rgba(102, 126, 234, 0.1); transform: translateY(-3px); }

/* ========================================= */
/* 5. CONTENT SECTIONS                       */
/* ========================================= */

.section {
    padding: 100px 10%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 20; 
    /* Default background set to transparent for dynamic flow */
    background-color: transparent; 
    transition: background-color 0.3s ease;
}

.section.alt-bg {
    background-color: var(--alt-bg);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-subtitle { color: var(--text-muted); font-size: 1.05rem; margin-top: 18px; }
.pr-list { list-style: none; padding: 0; margin: 0 0 10px; font-size: 0.92rem; line-height: 1.5; color: var(--text-muted); }
.pr-list li { margin-bottom: 8px; }
.pr-list a { color: var(--color-accent); font-weight: 700; text-decoration: none; margin-right: 4px; }
.pr-list a:hover { text-decoration: underline; }

.section-title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 2.5rem; font-weight: 700; color: var(--text-color);
    text-transform: capitalize; letter-spacing: 0.5px;
    position: relative; display: inline-block; padding-bottom: 12px;
    cursor: default; transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}
.section-title::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 6px; 
    border-radius: 4px; background: linear-gradient(90deg, #7b2ff7 0%, #2ab5f6 100%);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.section-title:hover { color: #7b2ff7; }
.section-title:hover::after { width: 100%; }


.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: flex-start; }
.about-image { display: flex; justify-content: center; position: relative; }

.img-frame {
    width: 350px; height: 450px;
    background: var(--bg-color);
    border: 5px solid var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.img-frame:hover { 
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.3);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0%); transition: transform 0.5s ease; }

.about-subheading {
    font-size: 2rem; font-weight: 700; color: var(--color-accent);
    margin-bottom: 15px; display: inline-block; letter-spacing: 1px; text-transform: uppercase;
}
.about-title-large {
    font-size: 2.2rem; font-weight: 800; color: var(--text-color);
    margin-bottom: 25px; line-height: 1.2;
}
.about-description {
    font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px;
}

.education-block {
    margin-top: 30px; padding-left: 20px;
    border-left: 4px solid var(--color-accent);
}
.edu-degree { font-size: 1.3rem; font-weight: 700; color: var(--text-color); margin-bottom: 5px; }
.edu-school { font-size: 1.1rem; color: var(--text-muted); }

.about-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; }
.btn-download, .btn-view {
    padding: 12px 30px; border-radius: 50px; font-weight: 600;
    text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-download {
    background: var(--btn-gradient); color: white; border: none;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}
.btn-download:hover { transform: translateY(-3px); }
.btn-view { background: transparent; color: #7b2ff7; border: 2px solid #7b2ff7; }
.btn-view:hover { background: rgba(123, 47, 247, 0.05); transform: translateY(-3px); }

.social-links { display: flex; gap: 15px; }
.social-btn {
    width: 45px; height: 45px; border-radius: 50%;
    background: #333; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease;
}
.social-btn svg { width: 24px; height: 24px; fill: white; }
.social-btn.geeks { background: #2f8d46; }
.social-btn.linkedin { background: #0077b5; }
.social-btn.github { background: #333; }
.social-btn:hover { transform: translateY(-3px) scale(1.1); }

/* CERTIFICATES & PROJECTS - TRANSPARENT BG */
#certificates {
    background: transparent;
}

.carousel-container {
    position: relative; width: 100%; max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; padding: 20px 0;
}
.carousel-window {
    width: 100%; max-width: 600px; overflow: hidden;
    border-radius: 15px; padding: 20px;
}
.carousel-track {
    display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-slide {
    min-width: 100%; display: flex; justify-content: center; padding: 10px; box-sizing: border-box;
}
.cert-card {
    background: var(--card-bg); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%; overflow: hidden; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.cert-card:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.4); z-index: 10;
}
.cert-img-wrapper { width: 100%; height: 350px; overflow: hidden; }
.cert-img-wrapper img {
    width: 100%; height: 100%; object-fit: contain; background-color: #f0f0f0;
}
.cert-body { padding: 20px; text-align: center; border-top: 1px solid rgba(0,0,0,0.05); }
.cert-body h3 { font-size: 1.5rem; color: var(--text-color); margin-bottom: 5px; }
.cert-body p { color: var(--text-muted); font-size: 1rem; }

.arrow-btn {
    background: transparent; border: 2px solid var(--text-color);
    color: var(--text-color); width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.4s ease; z-index: 50; margin: 0 20px;
}
.arrow-btn:hover {
    background: var(--text-color); color: var(--bg-color);
    transform: rotate(360deg) scale(1.1);
}

.skills-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; padding: 20px 0;
}
.skill-card {
    background: #ffffff; padding: 35px; border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border-top: 5px solid var(--color-accent); height: 100%; box-sizing: border-box;
}
[data-theme="dark"] .skill-card { background: var(--card-bg); border-top: 5px solid var(--color-accent); }
.skill-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.3); z-index: 10;
}
.skill-card h3 {
    font-size: 1.8rem; font-weight: 800; color: var(--text-color);
    margin-bottom: 25px; text-align: center; text-transform: uppercase; letter-spacing: 1px;
}
.skill-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.skill-tag {
    padding: 10px 20px; background: var(--alt-bg); color: var(--text-color);
    border: 1px solid var(--track-color); border-radius: 50px;
    font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease;
    cursor: default; display: flex; align-items: center; gap: 8px;
}
.skill-tag:hover {
    background: var(--btn-gradient); color: white;
    border-color: transparent; transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.skill-tag i { font-size: 1.1rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px; }
.card {
    background: var(--card-bg); border-radius: 15px; overflow: hidden;
    box-shadow: var(--shadow-light); transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.card-img { height: 200px; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.1); }
.card-info { padding: 25px; }
.card-info h3 { font-size: 1.4rem; color: var(--text-color); margin: 0 0 10px 0; font-weight: 700; }
.card-info p { font-size: 1rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.card-link { display: inline-block; font-weight: 600; color: var(--color-accent); text-decoration: none; position: relative; }
.card-link::after { content: '→'; margin-left: 5px; transition: margin 0.3s; }
.card-link:hover::after { margin-left: 10px; }

/* PROJECT CARD EXTRAS */
.gh-link {
    position: absolute; top: 15px; right: 15px; width: 45px; height: 45px;
    background: rgba(255, 255, 255, 0.9); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: #333; font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5; opacity: 0; transform: translateY(-10px);
}
.card:hover .gh-link { opacity: 1; transform: translateY(0); }
.gh-link:hover { background: var(--text-color); color: #fff; transform: scale(1.1) rotate(360deg); }
[data-theme="dark"] .gh-link { background: rgba(0, 0, 0, 0.8); color: #fff; }
[data-theme="dark"] .gh-link:hover { background: #fff; color: #000; }

.project-meta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
    font-size: 0.85rem; font-weight: 600; color: var(--color-accent);
    background: rgba(41, 121, 255, 0.1); padding: 5px 12px; border-radius: 20px;
}

/* CONTACT SECTION */
.contact-container { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-text { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 40px; }
.contact-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 30px; margin-top: 20px;
}
.contact-item {
    display: flex; align-items: center; gap: 15px; font-size: 1.3rem; font-weight: 500;
    background: var(--bg-color); padding: 15px 30px; border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; text-decoration: none; color: var(--text-color);
}
.contact-item:hover {
    transform: translateY(-5px); box-shadow: 0 10px 25px rgba(123, 47, 247, 0.2);
    border-color: var(--color-accent);
}
.contact-item i { color: var(--color-accent); font-size: 1.4rem; }
.contact-socials { display: flex; gap: 20px; margin-top: 10px; }
.contact-socials .social-btn { width: 55px; height: 55px; font-size: 1.2rem; }

/* FOOTER */
.site-footer {
    text-align: center; padding: 40px 20px;
    background-color: var(--alt-bg); color: var(--text-muted);
    font-size: 1rem; font-weight: 600; letter-spacing: 0.5px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255,255,255,0.05); }
.footer-name {
    background: linear-gradient(90deg, #7b2ff7 0%, #2ab5f6 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; font-weight: 800; text-transform: uppercase;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-footer { justify-content: center; }
    .img-frame { width: 100%; max-width: 350px; margin: 0 auto; }
    .education-block { border-left: none; border-top: 4px solid var(--color-accent); padding-left: 0; padding-top: 20px; }
}
@media (max-width: 768px) {
    .top-bar { padding: 0 20px; }
    .nav-right-group .top-links { display: none; }
    .hero-last { margin-left: 0; }
    .top-bar { grid-template-columns: 1fr auto; left: auto; right: 16px; transform: none; width: calc(100% - 110px); }
    .js-menu { left: 14px; }
    .hero-intro { margin-top: 30px; }
    .hero-status { position: static; margin-top: 30px; }
    .hero-scroll { display: none; }
    .gh-activity__inner { grid-template-columns: 1fr; }
    #certificates { background: var(--alt-bg); } /* Reset transparent bg on mobile for readability */
    .arrow-btn { position: absolute; top: 50%; transform: translateY(-50%); }
    .prev-btn { left: 0; } .next-btn { right: 0; }
    .arrow-btn:hover { transform: translateY(-50%) rotate(360deg); }
}

/* ========================================= */
/* 7. SCROLL ANIMATIONS (SLIDE ONLY)         */
/* ========================================= */
.reveal {
    opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out;
}
.reveal-left {
    opacity: 0; transform: translateX(-100px); transition: all 0.8s ease-out;
}
.reveal-right {
    opacity: 0; transform: translateX(100px); transition: all 0.8s ease-out;
}
.reveal.active, .reveal-left.active, .reveal-right.active {
    opacity: 1; transform: translate(0, 0);
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ========================================= */
/* 15. FIX: HIDE NAVBAR ITEMS ON MENU OPEN   */
/* ========================================= */

/* When menu is active, force hide the Logo and Right Links */
.header.is-active .site-logo,
.header.is-active .top-links,
.header.is-active .top-socials {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important; /* Ensures they are gone */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Ensure the Menu Button (Hamburger/Close) stays visible and on top */
.header.is-active .js-menu {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2005; /* Higher than everything */
}

/* Optional: Ensure the background page content doesn't scroll/interfere */
body.menu-open {
    overflow: hidden;
}
.ascii-window{z-index:2;display:flex;flex-direction:column;position:absolute;inset:8% 7%;border-radius:.7rem;overflow:hidden;background:#1d1e20;border:.0625rem solid #ffffff2e;box-shadow:0 1.6rem 3.2rem #000c,0 .3rem .8rem #0008;opacity:0;transform:translateY(1.4rem) scale(.93);transition:opacity .5s var(--ease-premium),transform .75s var(--ease-premium)}
.ascii-window-bar{flex:none;height:1.6rem;display:flex;align-items:center;gap:.42rem;padding:0 .75rem;background:linear-gradient(#36373a,#2a2b2e);border-bottom:.0625rem solid #0009;position:relative}
.ascii-window-bar i{width:.66rem;height:.66rem;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .04rem #0003}
.ascii-window-bar i:nth-child(2){background:#febc2e}.ascii-window-bar i:nth-child(3){background:#28c840}
.ascii-window-bar b{position:absolute;left:50%;transform:translate(-50%);max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 .64rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#ffffffa6;letter-spacing:.01em}
.ascii-window .ascii-source-image{position:relative;inset:auto;flex:1;min-height:0;width:100%;height:auto;object-fit:cover;object-position:center;opacity:1;filter:none;transform:scale(1.06);transition:transform 1.1s var(--ease-premium)}
.ascii-project-card:focus-visible .ascii-window .ascii-source-image{transform:none}
@media (hover:hover) and (pointer:fine){
.ascii-project-card:hover .ascii-preview canvas{opacity:.18}
.ascii-project-card:hover .ascii-window .ascii-source-image{transform:none}
}
@media (hover:none),(pointer:coarse),(max-width:64rem){
.ascii-project-card.is-touch-revealed .ascii-preview canvas{opacity:.18}
.ascii-project-card.is-touch-revealed .ascii-window .ascii-source-image{transform:none}
.ascii-window-bar{height:1.3rem}.ascii-window-bar i{width:.55rem;height:.55rem}
}
/* inline Font Awesome 6 icons (same metrics as the icon font) */
.fa-i{display:inline-block;font-style:normal;line-height:1}
.fa-i svg{display:inline-block;height:1em;vertical-align:-.125em;fill:currentColor;overflow:visible}
/* Hover cursor (from waleedahmed.site): normal pointer everywhere, a glowing 44px circle over anything clickable */
.cursor-ring{position:fixed;left:0;top:0;z-index:99999;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;pointer-events:none;background:#f7f4ee;mix-blend-mode:difference;
  box-shadow:0 0 18px 4px rgba(247,244,238,.45);opacity:0;will-change:transform;transform:translate3d(-100px,-100px,0);
  transition:width .15s cubic-bezier(.16,1,.3,1),height .15s cubic-bezier(.16,1,.3,1),margin .15s cubic-bezier(.16,1,.3,1),opacity .15s cubic-bezier(.16,1,.3,1),scale .15s cubic-bezier(.16,1,.3,1)}
.cursor-ring.is-hover{width:44px;height:44px;margin:-22px 0 0 -22px;opacity:1}
.cursor-ring.is-down{scale:.75}
html.cursor-hovering,html.cursor-hovering *{cursor:none!important}
@media (hover:none),(pointer:coarse),(max-width:767px){.cursor-ring{display:none}}
/* Cursor trail (from gmmohit.com); it steps aside while the hover circle is showing */
.cursor-trail{position:fixed;inset:0;width:100%;height:100%;z-index:99998;pointer-events:none;mix-blend-mode:difference;transition:opacity .2s ease}
html.cursor-hovering .cursor-trail{opacity:0}
@media (hover:none),(pointer:coarse){.cursor-trail{display:none}}
/* Contact: ASCII tesseract layer behind the section (from gmmohit.com) */
.contact-section{position:relative;overflow:hidden}
.contact-section .contact-inner{position:relative;z-index:1}
.contact-tesseract{position:absolute;inset:0;z-index:0;margin:0;padding:0;overflow:hidden;pointer-events:none;white-space:pre;font:400 9px/1.1 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;letter-spacing:-.025em;color:var(--ink,#111311);opacity:.78;user-select:none}
.contact-section.tess-hot{cursor:crosshair}
@media (max-width:767px){.contact-tesseract{font-size:7px}}
@media (max-width:480px){.contact-tesseract{font-size:5px}}
/* Hero name: letters thin out around the pointer (from nipunraj.dev) */
.var-letter{display:inline-block;transform-origin:bottom;will-change:font-weight;transition:font-weight .4s cubic-bezier(.16,1,.3,1)}

/* ==== Certificates: a floating 3D key catalog (keyboard idea from nipunraj.dev, blue anime-poster mood) ==== */
.cert-catalog,#certificates.cert-catalog{--cc-ink:#0e2a5c;--cc-blue:#1f4fbf;--cc-soft:#6b7fa3;position:relative;overflow:hidden;isolation:isolate;min-height:100svh;padding:clamp(5.5rem,9vw,8rem) clamp(1.25rem,5vw,5rem) clamp(4rem,7vw,6rem);color:var(--cc-ink);font-family:Inter,system-ui,sans-serif;
  background:linear-gradient(180deg,#cfe3fb 0%,#e4effc 30%,#f2f6fb 62%,#f6f7f9 100%)}
.cert-catalog *,.cert-catalog *:before,.cert-catalog *:after{box-sizing:border-box}
.cert-catalog:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(rgba(14,42,92,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(14,42,92,.06) 1px,transparent 1px);background-size:clamp(64px,8vw,120px) clamp(64px,8vw,120px);mask-image:linear-gradient(180deg,transparent,#000 18%,#000 80%,transparent)}
.cc-sky{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.cc-cloud{position:absolute;display:block;border-radius:50%;background:radial-gradient(closest-side,#fff 0%,rgba(255,255,255,.85) 45%,rgba(255,255,255,0) 100%);filter:blur(4px);animation:ccDrift 48s ease-in-out infinite alternate}
.cc-cloud--a{width:46vw;height:15vw;top:4%;right:-6vw}
.cc-cloud--b{width:30vw;height:10vw;top:18%;right:24vw;opacity:.8;animation-duration:62s;animation-direction:alternate-reverse}
.cc-cloud--c{width:38vw;height:12vw;top:46%;left:-10vw;opacity:.65;animation-duration:70s}
@keyframes ccDrift{to{transform:translateX(6vw)}}
.cc-ghost{position:absolute;left:-.04em;bottom:-.12em;font:700 clamp(8rem,24vw,26rem)/.8 Antonio,Oswald,sans-serif;letter-spacing:-.01em;color:transparent;-webkit-text-stroke:1px rgba(14,42,92,.08);white-space:nowrap;user-select:none}
.cc-head{position:relative;z-index:2;display:grid;gap:14px;padding-right:3rem}
.cc-kicker{margin:0;font:700 .78rem/1 "Courier Prime",ui-monospace,monospace;letter-spacing:.24em;text-transform:uppercase;color:var(--cc-blue)}
.cc-kicker span{color:var(--cc-ink)}
.cc-title{margin:.1em 0 0;font:700 clamp(4rem,12.5vw,13.5rem)/.8 Antonio,Oswald,sans-serif;letter-spacing:-.005em;text-transform:uppercase;color:var(--cc-ink);transform:scaleY(1.16);transform-origin:0 100%}
.cc-meta{display:flex;flex-wrap:wrap;gap:.6rem 2.2rem;margin:clamp(22px,2.4vw,34px) 0 0;font:.72rem/1.2 "Courier Prime",ui-monospace,monospace;text-transform:uppercase;letter-spacing:.12em}
.cc-meta div{display:flex;gap:.4rem}.cc-meta dt{color:var(--cc-soft)}.cc-meta dd{margin:0;font-weight:700;color:var(--cc-ink)}
.cc-vertical{position:absolute;top:0;right:0;margin:0;writing-mode:vertical-rl;white-space:nowrap;font:500 .95rem/1 "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;letter-spacing:.32em;color:var(--cc-blue);opacity:.85}
.cc-stage{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);align-items:center;gap:clamp(1.5rem,4vw,4rem);min-height:clamp(520px,64vh,720px);margin-top:clamp(1rem,3vw,2.5rem)}
.cc-float{grid-column:1;grid-row:1;justify-self:center;transform-style:preserve-3d;pointer-events:none;animation:ccFloat 6s ease-in-out infinite}
@keyframes ccFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-14px)}}
.cc-shadow{grid-column:1;grid-row:1;align-self:end;justify-self:center;width:min(56%,420px);height:70px;margin-bottom:-10px;border-radius:50%;background:radial-gradient(closest-side,rgba(14,42,92,.28),rgba(14,42,92,0));filter:blur(6px);animation:ccShadow 6s ease-in-out infinite;pointer-events:none}
@keyframes ccShadow{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.9);opacity:.75}}
.cc-board{--k:clamp(84px,8.6vw,128px);--g:clamp(10px,1.05vw,16px);--pad:clamp(20px,2vw,30px);--wall:clamp(58px,5.2vw,78px);--well:18px;--rx:56deg;--rz:-33deg;position:relative;width:calc(3 * var(--k) + 2 * var(--g) + 2 * var(--pad));aspect-ratio:1;transform-style:preserve-3d;
  transform:perspective(1300px) rotateX(var(--rx)) rotateZ(var(--rz));transition:transform .8s cubic-bezier(.16,1,.3,1);border-radius:34px;background:radial-gradient(120% 90% at 20% 10%,#fff 0%,#f4f2ed 45%,#e4e1da 100%);box-shadow:inset 0 3px 0 #fff,inset 0 -6px 14px rgba(14,42,92,.08),inset 0 0 0 1px rgba(14,42,92,.05)}
.cc-wall{position:absolute;display:block;pointer-events:none}
.cc-wall--front{left:16px;right:16px;top:calc(100% - 1px);height:var(--wall);transform-origin:top;transform:rotateX(-90deg);background:linear-gradient(180deg,#ebe8e2 0%,#d6d3cb 55%,#bdb9b0 100%);border-radius:0 0 26px 26px;box-shadow:inset 0 2px 0 rgba(255,255,255,.7)}
.cc-wall--right{top:16px;bottom:16px;left:calc(100% - 1px);width:var(--wall);transform-origin:left;transform:rotateY(90deg);background:linear-gradient(90deg,#d4d1c9 0%,#bfbbb2 60%,#a9a59c 100%);border-radius:0 26px 26px 0}
.cc-plate{position:absolute;inset:var(--pad);display:grid;grid-template-columns:repeat(3,var(--k));grid-template-rows:repeat(3,var(--k));gap:var(--g);transform-style:preserve-3d;border-radius:20px;transform:translateZ(calc(var(--well) * -1))}
.cc-well{position:absolute;display:block;pointer-events:none;background:linear-gradient(180deg,#c9ced8,#dde1e8)}
.cc-well--back{left:calc(var(--pad) - 8px);right:calc(var(--pad) - 8px);top:calc(var(--pad) - 8px);height:var(--well);transform-origin:top;transform:translateZ(calc(var(--well) * -1)) rotateX(90deg)}
.cc-well--left{top:calc(var(--pad) - 8px);bottom:calc(var(--pad) - 8px);left:calc(var(--pad) - 8px);width:var(--well);transform-origin:left;transform:translateZ(calc(var(--well) * -1)) rotateY(-90deg);background:linear-gradient(90deg,#bfc5d0,#d6dae2)}
.cc-plate:before{content:"";position:absolute;inset:-8px;border-radius:14px;background:linear-gradient(145deg,#d3d8e1,#e4e7ed);box-shadow:inset 0 10px 22px rgba(14,42,92,.22),inset 0 -2px 0 #fff}
.ck{pointer-events:auto;--h:36px;--press:0px;--cap:linear-gradient(160deg,#fbfbf9,#e9e8e3);--side:#d2d0c9;--label:#1f4fbf;position:relative;width:var(--k);height:var(--k);margin:0;padding:0;border:0;background:none;cursor:pointer;transform-style:preserve-3d;outline:none}
.ck-top{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:16px;background:var(--cap);color:var(--label);
  transform:translateZ(calc(var(--h) - var(--press)));transition:transform .28s cubic-bezier(.16,1,.3,1),box-shadow .35s ease,opacity .5s ease;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45),inset 0 -12px 18px rgba(0,0,0,.16),inset 0 10px 16px rgba(255,255,255,.4),inset 0 0 0 5px rgba(0,0,0,.03)}
.ck-top b{font:700 calc(var(--k) * .34)/1 Antonio,Oswald,sans-serif;letter-spacing:.01em;text-transform:uppercase}
.ck-top b.ck-kanji{font:600 calc(var(--k) * .36)/1 "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif}
.ck-top small{font:700 calc(var(--k) * .082)/1 "Courier Prime",ui-monospace,monospace;letter-spacing:.16em;opacity:.8}
.ck-side{position:absolute;display:block;pointer-events:none;background:var(--side)}
.ck-side--front{left:8px;right:8px;top:calc(100% - 8px);height:calc(var(--h) - var(--press) + 8px);transform-origin:top;transform:rotateX(90deg);border-radius:0 0 14px 14px;background:linear-gradient(0deg,var(--side) 0%,color-mix(in srgb,var(--side) 78%,#fff) 100%);transition:height .28s cubic-bezier(.16,1,.3,1)}
.ck-side--right{top:8px;bottom:8px;left:calc(100% - 8px);width:calc(var(--h) - var(--press) + 8px);transform-origin:left;transform:rotateY(-90deg);border-radius:0 14px 14px 0;background:linear-gradient(270deg,color-mix(in srgb,var(--side) 70%,#000) 0%,color-mix(in srgb,var(--side) 88%,#000) 100%);transition:width .28s cubic-bezier(.16,1,.3,1)}
@media (hover:hover){.ck:hover{--press:-5px}}
.ck.is-pressed{--press:15px}
.ck:before{content:"";position:absolute;inset:6px;border-radius:16px;background:rgba(14,42,92,.42);filter:blur(7px);transform:translate3d(9px,12px,1px);opacity:.85;pointer-events:none;transition:transform .28s cubic-bezier(.16,1,.3,1),opacity .28s}
.ck.is-pressed:before{transform:translate3d(4px,5px,1px);opacity:.6}
.ck-top:after{content:"";position:absolute;inset:12%;border-radius:12px;background:radial-gradient(120% 90% at 30% 20%,rgba(255,255,255,.35),rgba(255,255,255,0) 60%),radial-gradient(90% 90% at 50% 60%,rgba(0,0,0,.08),rgba(0,0,0,0) 70%);pointer-events:none}
.ck:focus-visible .ck-top{box-shadow:0 0 0 3px #fff,0 0 0 5px var(--cc-blue)}
.ck.is-active .ck-top{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5),inset 0 -9px 16px rgba(0,0,0,.12),0 0 0 3px #fff,0 0 26px 8px rgba(31,79,191,.45)}
.ck--deep{--cap:linear-gradient(160deg,#4a7ff0,#1f4fbf);--side:#173e97;--label:#fff}
.ck--sky{--cap:linear-gradient(160deg,#a9d3ff,#62a8f5);--side:#3f7fc9;--label:#0e2a5c}
.ck--azure{--cap:linear-gradient(160deg,#6fc0ff,#2c86e4);--side:#2167b3;--label:#fff}
.ck--white{--cap:linear-gradient(160deg,#fff,#eaf0f8);--side:#c9d3e1;--label:#1f4fbf}
.ck--paper{--cap:linear-gradient(160deg,#fbfbf9,#e9e8e3);--side:#d2d0c9;--label:#1f4fbf}
.ck--ink{--cap:linear-gradient(160deg,#1c3b78,#0b1d42);--side:#071431;--label:#fff}
.cert-catalog:not(.is-in) .ck-top{opacity:0;transform:translateZ(120px)}
.cert-catalog:not(.is-in) .ck:before{opacity:0}
.cert-catalog.is-in .ck-top{transition-delay:calc(var(--i) * 70ms),calc(var(--i) * 70ms),calc(var(--i) * 70ms)}
.cert-catalog.is-in.is-settled .ck-top{transition-delay:0s}
/* info card */
.cc-card{grid-column:2;grid-row:1;align-self:center;position:relative;max-width:440px;padding:22px 24px 20px;border-radius:18px;background:rgba(255,255,255,.74);border:1px solid rgba(14,42,92,.1);box-shadow:0 34px 70px -28px rgba(14,42,92,.35),0 2px 0 #fff inset;
  -webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);font-family:"Courier Prime",ui-monospace,monospace;color:var(--cc-ink);transition:opacity .45s cubic-bezier(.16,1,.3,1),transform .45s cubic-bezier(.16,1,.3,1),filter .45s ease}
.cc-card.is-swap{opacity:0;transform:translateY(12px);filter:blur(4px)}
.ccd-issuer{display:flex;align-items:center;gap:8px;margin:0;font-weight:700;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--cc-blue)}
.ccd-issuer:before{content:"";width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 10px currentColor}
.ccd-title{margin:12px 0 0;font:700 clamp(1.6rem,2.3vw,2.1rem)/1 Antonio,Oswald,sans-serif;text-transform:uppercase;letter-spacing:.01em}
.ccd-desc{margin:10px 0 0;font-size:.9rem;line-height:1.5;color:#3a4f74}
.ccd-tags{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.ccd-tags li{padding:4px 8px 3px;border:1px solid rgba(14,42,92,.22);border-radius:4px;font-weight:700;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase}
.ccd-img{position:relative;margin:16px 0 0;aspect-ratio:1.414;border-radius:10px;overflow:hidden;background:#fff;border:1px solid rgba(14,42,92,.12);box-shadow:0 10px 24px -14px rgba(14,42,92,.45)}
.ccd-img img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.ccd-img--empty{display:grid;place-items:center;text-align:center;background:linear-gradient(160deg,#dcecff,#f5f9ff);color:var(--cc-blue);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.72rem;padding:18px}
.ccd-img--empty b{display:block;font:700 2.6rem/1 Antonio,Oswald,sans-serif;letter-spacing:.02em;margin-bottom:6px;color:var(--cc-ink)}
.ccd-rows{display:grid;gap:6px;margin:16px 0 0;padding-top:12px;border-top:1px dashed rgba(14,42,92,.22);font-size:.72rem;letter-spacing:.1em;text-transform:uppercase}
.ccd-rows div{display:flex;justify-content:space-between;gap:12px}.ccd-rows dt{color:var(--cc-soft)}.ccd-rows dd{margin:0;font-weight:700;text-align:right;word-break:break-all}
.ccd-link{display:inline-flex;align-items:center;gap:10px;margin:16px 0 0;padding:12px 18px 11px;border-radius:999px;background:var(--cc-blue);color:#fff;font-weight:700;font-size:.74rem;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;transition:background .3s ease,transform .3s cubic-bezier(.16,1,.3,1)}
.ccd-link:hover{background:var(--cc-ink);transform:translateY(-2px)}
.ccd-kanji{margin:0;font:600 3.2rem/1 "Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;color:var(--cc-blue)}
.ccd-legend{display:grid;gap:8px;margin:16px 0 0;padding:14px 0 0;border-top:1px dashed rgba(14,42,92,.22);list-style:none}
.ccd-legend li{display:grid;grid-template-columns:3.4rem 1fr;align-items:center;gap:10px;font-size:.78rem}
.ccd-legend b{display:grid;place-items:center;height:1.9rem;border-radius:6px;background:#fff;border:1px solid rgba(14,42,92,.16);font:700 .95rem/1 Antonio,Oswald,sans-serif;color:var(--cc-blue);box-shadow:0 2px 0 rgba(14,42,92,.12)}
@media (max-width:980px){
  .cc-stage{grid-template-columns:1fr;min-height:0;gap:2rem}
  .cc-float,.cc-shadow{grid-column:1;grid-row:1}
  .cc-float{margin:40px 0 70px}
  .cc-card{grid-column:1;grid-row:2;justify-self:center;width:100%}
  .cc-board{--k:clamp(62px,19vw,92px)}
  .cc-vertical{display:none}
}
/* Certificate image framed by circuit art (the user's collage, cut into four pieces) */
.ccd-img.ccd-img--circuit{aspect-ratio:1.18;background:#fff;border-radius:10px}
.ccd-img--circuit img,.ccd-img--circuit .ccd-empty{position:absolute;left:19%;top:9%;width:68%;height:auto;aspect-ratio:1.414;z-index:1;object-fit:contain;background:#fff;border:1px solid rgba(14,42,92,.14);border-radius:4px;box-shadow:0 10px 22px -10px rgba(14,42,92,.5)}
.ccd-img--circuit .ccd-empty{display:grid;place-content:center;text-align:center;padding:10px;background:linear-gradient(160deg,#dcecff,#f5f9ff);color:var(--cc-blue);font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.62rem}
.ccd-img--circuit .ccd-empty b{display:block;font:700 2rem/1 Antonio,Oswald,sans-serif;margin-bottom:6px;color:var(--cc-ink)}
.ccf{position:absolute;z-index:0;display:block;pointer-events:none;background:no-repeat center/contain}
.ccf--tl{left:0;top:0;height:64%;aspect-ratio:262/548;background-image:url('../images/frame/circuit-tl.webp')}
.ccf--rm{right:0;top:30%;height:34%;aspect-ratio:114/352;background-image:url('../images/frame/circuit-rm.webp')}
.ccf--br{right:0;bottom:0;height:44%;aspect-ratio:196/410;background-image:url('../images/frame/circuit-br.webp')}
.ccf--bl{left:1%;bottom:0;width:58%;aspect-ratio:530/158;background-image:url('../images/frame/circuit-bl.webp')}
/* Certificates keycap pad (three.js), connector and marquee */
.cc-keys{grid-column:1;grid-row:1;position:relative;z-index:1;width:100%;height:clamp(460px,64vh,720px)}
.cc-keys canvas{display:block;width:100%!important;height:100%!important;touch-action:manipulation}
.cc-keys-hint{position:absolute;left:50%;bottom:6%;margin:0;transform:translateX(-50%);font:700 .72rem/1 "Courier Prime",ui-monospace,monospace;letter-spacing:.3em;text-transform:uppercase;color:var(--cc-soft);opacity:0;transition:opacity .5s ease;pointer-events:none}
.cert-catalog.keys-ready:not(.has-active) .cc-keys-hint{opacity:.8}
.cc-connector{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;pointer-events:none}
.cc-connector path{fill:none;stroke:rgba(14,42,92,.45);stroke-width:1.4;stroke-dasharray:4 5;opacity:0;transition:opacity .4s ease}
.cc-connector.is-on path{opacity:1}
.cc-card{z-index:3}
.cc-marquee{position:absolute;left:-5vw;right:-5vw;top:50%;z-index:0;overflow:hidden;pointer-events:none;opacity:0;transform:translateY(-50%);transition:opacity .6s ease}
.cert-catalog.has-active .cc-marquee{opacity:1}
.cc-marquee-track{display:flex;width:max-content;animation:ccMarquee 34s linear infinite}
.cc-marquee-track span{font:700 clamp(6rem,15vw,15rem)/1 Antonio,Oswald,sans-serif;letter-spacing:.01em;white-space:nowrap;color:transparent;-webkit-text-stroke:1px rgba(14,42,92,.11);padding-right:.2em}
@keyframes ccMarquee{to{transform:translateX(-50%)}}
.ccd-legend li{display:block}
.ccd-legend button{display:grid;grid-template-columns:3.4rem 1fr;align-items:center;gap:10px;width:100%;padding:0;border:0;background:none;font:inherit;color:inherit;text-align:left;cursor:pointer}
.ccd-legend button b{background:var(--c);color:#fff;border-color:transparent;box-shadow:0 3px 0 rgba(0,0,0,.18)}
.ccd-legend button:hover span{text-decoration:underline;text-underline-offset:3px}
.ccd-back{display:block;margin:14px 0 0;padding:0;border:0;background:none;font:700 .7rem/1 "Courier Prime",ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--cc-soft);cursor:pointer}
.ccd-back:hover{color:var(--cc-ink)}
.cert-catalog.keys-failed .cc-keys{display:none}
@media (max-width:980px){.cc-keys{height:clamp(320px,80vw,460px)}.cc-marquee{top:22%}}
/* ==== PLC listing sections (projects / open source / field notes), ported from plcossette.com ==== */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-smooth [data-lenis-prevent]{overscroll-behavior:contain}
.plc,.pl-detail,.pl-modal{--pl-primary:#090909;--pl-secondary:#ececec;--pl-ease:cubic-bezier(.38,.005,.215,1);--pl-ease-io:cubic-bezier(.86,0,.07,1);--pl-contact-height:80px;--pl-tagline-h:400px;--pl-m:12px;
  --pl-sans:"Antonio","Oswald",ui-sans-serif,system-ui,sans-serif;--pl-serif:"Newsreader","Times New Roman",Times,serif}
:where(.plc,.pl-detail,.pl-modal) *,:where(.plc,.pl-detail,.pl-modal) *:before,:where(.plc,.pl-detail,.pl-modal) *:after{box-sizing:border-box}
:where(.plc,.pl-detail,.pl-modal) :where(p,h1,h2,h3,ul,li){margin:0;padding:0}
:where(.plc,.pl-detail,.pl-modal) :where(ul){list-style:none}
:where(.plc,.pl-detail,.pl-modal) :where(a){color:inherit;text-decoration:none}
:where(.plc,.pl-detail,.pl-modal) :where(button){font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-align:inherit}
.plc{position:relative;z-index:3;background:var(--pl-primary);color:var(--pl-secondary);font-family:var(--pl-sans);overflow:clip;border-top:1px solid #ececec33}
.pl-slide{position:relative;will-change:transform}
.pl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pl-icon{display:inline-flex;width:16px;height:16px}.pl-icon svg{width:100%;height:100%}

/* type */
.pl-text-label,.pl-label{text-transform:uppercase;line-height:1;letter-spacing:.05em;font-size:clamp(1rem,.96rem + .18vw,1.125rem);font-weight:700;z-index:2;position:relative}
.pl-label{padding-left:12px;padding-bottom:3px;padding-top:12px}
.pl-label:before{content:"";position:absolute;top:0;left:0;width:10px;height:22px;border-left:1px solid currentColor;border-bottom:1px solid currentColor}
.pl-label p{margin-bottom:15px}
.pl-label strong{font-family:var(--pl-serif);font-weight:500;text-transform:none}
.pl-label a{background-image:linear-gradient(var(--pl-secondary),var(--pl-secondary));background-size:100% 0%;background-position:bottom;background-repeat:no-repeat;transition:background-size .3s ease,color .3s ease}
.pl-label a:hover{transition:none;color:var(--pl-primary);background-size:120% 100%}
.pl-serif{line-height:1.1em;font-size:clamp(1rem,.93rem + .36vw,1.25rem);letter-spacing:-.02em;font-family:var(--pl-serif);font-weight:500}
.pl-h2{font-family:var(--pl-serif);font-weight:500;font-size:clamp(1.875rem,1.52rem + 1.79vw,3.125rem);line-height:1;letter-spacing:-.05em}
.pl-h3{font-family:var(--pl-sans);font-weight:700;font-size:36px;line-height:1;text-transform:uppercase;letter-spacing:.025em}
.pl-h1{font-family:var(--pl-sans);font-weight:700;font-size:clamp(3.75rem,3.32rem + 2.14vw,5.25rem);line-height:.85;text-transform:uppercase;letter-spacing:.025em}
.pl-anim{opacity:0;transition:opacity .8s var(--pl-ease)}
.plc.is-ready .pl-anim,.pl-detail .pl-anim{opacity:1}
.pl-tag{display:inline-flex}
.pl-tag_item{position:relative;display:inline-block;line-height:1;text-transform:uppercase;letter-spacing:.05em;font-size:clamp(1rem,.96rem + .18vw,1.125rem);font-weight:700}
.pl-tag_item:not(:last-child){padding-right:6px;margin-right:6px}
.pl-tag_item:not(:last-child):before{content:"";position:absolute;top:0;right:0;height:100%;width:1px;background:currentColor;transform:skew(-15deg,-15deg)}
.pl-wireframe{position:relative}
.pl-wireframe:before,.pl-wireframe:after{content:"";position:absolute;inset:0;z-index:0}
.pl-wireframe:before{border:1px solid currentColor}
.pl-wireframe:after{background:linear-gradient(to bottom right,transparent calc(50% - 1px),currentColor calc(50% - 1px),currentColor 50%,transparent 50%)}
.pl-image{position:relative;z-index:2;overflow:hidden}
.pl-image_inner{overflow:hidden}
.pl-image_img{display:block;width:100%;height:auto;aspect-ratio:1600/1000;object-fit:cover}

/* header */
.pl-home{display:flex;flex-direction:column;position:relative;background:var(--pl-primary)}
.pl-header{height:calc(100vh - 186px);min-height:300px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;clip-path:inset(0%)}
.pl-header_info{position:absolute;top:0;left:0;width:100%;height:calc(100vh + 200px)}
.pl-header_info_sticky{position:sticky;top:0;display:grid;grid-template-columns:7fr 5fr}
.pl-header_tagline{width:100%;height:var(--pl-tagline-h);position:relative;z-index:10;margin-bottom:-300px;padding:0 var(--pl-m)}
.pl-header_tagline_sticky{height:var(--pl-tagline-h)}
.pl-header_tagline_sticky_inner{position:sticky;top:90px}
.pl-header_tagline_title{padding-bottom:var(--pl-m);text-wrap:balance;display:inline-block;max-width:calc(58.333% - 24px)}
@media (min-width:1200px){.pl-header_tagline{margin-bottom:-290px}}
@media (min-width:1600px){.pl-header_tagline_sticky_inner{top:80px}}
@media (max-width:1199px){.pl-header_tagline_sticky_inner{top:140px}}

/* body grid */
.pl-body{position:relative;z-index:100;border-top:1px solid currentColor;background:var(--pl-primary)}
.pl-grid{display:grid;grid-template-columns:7fr 5fr}
.pl-listing_wrap{position:relative;order:1;min-width:0}
.pl-side{order:2;position:relative;min-width:0}
.pl-text{position:relative;height:100%;padding-bottom:150px}
.pl-text:before,.pl-text:after{content:"";position:absolute;background:currentColor}
.pl-text:before{bottom:0;left:-10px;right:0;height:1px}
.pl-text:after{top:30px;bottom:0;left:12px;width:1px}
.pl-text_sticky{position:sticky;top:0;margin-bottom:5px;z-index:2}
.pl-text_title{position:relative;z-index:2;display:inline-block}
.pl-text_title:after{content:"";position:absolute;inset:1px 0 2px;background:var(--pl-primary);z-index:-1}
.pl-text_inner{padding:12px 12px 0 24px;position:sticky;top:32px}
.pl-text_content{position:relative;transform:translate3d(0,44px,0);opacity:0;transition:transform .4s var(--pl-ease),opacity .4s var(--pl-ease)}
.plc.is-ready .pl-text_content{transform:none;opacity:1}
.pl-text_content:not(:last-child){margin-bottom:12px}
.pl-text_content_label{position:absolute;top:-13px;left:0}
.pl-text_content_inner p:first-child{text-indent:80px}
.pl-text_content a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}

/* contact bar */
.pl-contact{position:sticky;bottom:0;margin-left:11px;right:0;z-index:100;pointer-events:none}
.pl-contact_inner{position:absolute;bottom:0;left:0;right:0;overflow:hidden;height:var(--pl-contact-height)}
.pl-contact_box{display:flex;justify-content:space-between;overflow:hidden;border-top:1px solid currentColor;border-left:1px solid currentColor;background:var(--pl-primary);transition:transform .6s var(--pl-ease-io);height:var(--pl-contact-height);padding:12px;pointer-events:auto;transform:translate3d(0,100%,0)}
.plc.is-ready .pl-contact_box{transform:translateY(calc(var(--pl-contact-height) / 2))}
.pl-contact_box a{padding:0 4px;margin-left:-3px;background-image:linear-gradient(var(--pl-secondary),var(--pl-secondary));background-size:100% 0%;background-position:bottom;background-repeat:no-repeat;transition:background-size .3s ease,color .3s ease}
.pl-contact_box a:hover{transition:none;color:var(--pl-primary);background-size:100% 100%}
.pl-contact_label{font-family:var(--pl-serif);font-weight:500;text-transform:none;transition:transform .6s var(--pl-ease-io);transform:translateY(-8px);margin-bottom:4px;letter-spacing:-.02em}
.pl-contact_social{text-align:right}
.pl-contact_social,.pl-contact_email{transform:translateY(-22px);transition:transform .6s var(--pl-ease-io)}
.pl-contact_social_list ul{margin-right:-3px;display:flex;gap:6px}
@media (hover:hover) and (min-width:1000px){
  .plc.is-ready .pl-contact_box:hover{transform:translateY(0)}
  .pl-contact_box:hover .pl-contact_label{transform:translateY(0)}
  .pl-contact_box:hover .pl-contact_social,.pl-contact_box:hover .pl-contact_email{transform:translateY(10px)}
}

/* listing */
.pl-listing_bar{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between}
.pl-listing_label{margin-bottom:8px}
.pl-modal-toggler{display:inline-flex;align-items:center;padding:0 22px 0 12px;gap:8px;position:relative;height:34px;margin-top:0}
.pl-modal-toggler_label{display:inline-block;position:relative;background-image:linear-gradient(var(--pl-secondary),var(--pl-secondary));background-size:120% 0%;background-position:bottom;background-repeat:no-repeat;transition:background-size .3s ease,color .3s ease}
@media (hover:hover){.pl-modal-toggler:hover .pl-modal-toggler_label{transition:none;color:var(--pl-primary);background-size:120% 100%}}
.pl-listing_border{position:absolute;top:30px;bottom:0;width:1px}
.pl-listing_border.-left{left:12px}
.pl-listing_border.-right{right:0}
.pl-listing_border_sticky{position:sticky;top:30px;height:calc(100vh - 30px);width:100%;background:currentColor}
.pl-listing_item{position:sticky;top:calc(var(--item) * 32px + 5px);padding-left:12px;margin-left:24px;margin-right:1px;margin-bottom:-2px;line-height:0;z-index:2}
.pl-listing_item.-first{top:calc(var(--item) * 32px + 7px)}
.pl-listing_item:before{content:"";position:absolute;left:0;top:-8px;height:25px;width:10px;border-left:1px solid currentColor;border-bottom:1px solid currentColor}
.pl-listing_item:hover{z-index:3}
.pl-listing_item:hover:not(.-last):before{visibility:hidden}
.pl-listing_content{position:relative;display:flex;justify-content:space-between;align-items:center;height:31px;padding-right:12px}
.pl-listing_content:before{content:"";position:absolute;top:0;left:-12px;right:0;height:100%;background:var(--pl-secondary);opacity:0}
@media (hover:hover){
  .pl-listing_content:hover,.pl-listing_content:has(.pl-listing_link:focus-visible){color:var(--pl-primary)}
  .pl-listing_content:hover:before,.pl-listing_content:has(.pl-listing_link:focus-visible):before{opacity:1}
  .pl-listing_item:hover .pl-listing_preview{visibility:visible}
  .pl-listing_item:hover .pl-listing_info_icon_hover{visibility:visible}
}
.pl-listing_title{position:relative;margin:-3px 16px -4px 0;height:38px;display:block;padding-top:0;line-height:40px;z-index:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto}
.pl-listing_info{flex:none}
.pl-listing_info{position:relative;display:inline-flex;align-items:center;gap:10px;z-index:2}
.pl-listing_info_icon{position:relative;display:inline-flex}
.pl-listing_item:hover .pl-listing_info_icon_more{visibility:hidden}
.pl-listing_info_icon_hover{position:absolute;top:0;left:0;visibility:hidden}
.pl-listing_link{position:absolute;inset:0;width:100%;height:100%;z-index:3}
.pl-listing_link:focus-visible{outline:2px solid var(--pl-secondary);outline-offset:2px}
.pl-listing_preview{position:fixed;left:calc(58.3333vw + 42px);bottom:52px;width:20vw;aspect-ratio:1600/1000;visibility:hidden;background:var(--pl-primary);z-index:5}
.pl-listing_preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:3}
.pl-listing_visual{width:100%;text-align:center;padding:15% 20%}
.pl-listing_visual_inner{position:relative;transform-origin:top center;will-change:transform;backface-visibility:hidden;
  transform:scale3d(calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),1)}
.pl-listing_visual_element{position:relative;z-index:-2;will-change:transform;transform:scale3d(calc(.5 + 1*min(var(--progress,0),.5)),calc(.5 + 1*min(var(--progress,0),.5)),1)}
.pl-listing_visual_element .pl-image{opacity:clamp(0,(var(--progress,0) - .1) / .2,1)}
.pl-listing_visual_element .pl-image_inner{opacity:clamp(0,1 - max(0,(var(--progress,0) - .7) / .2),1)}
.pl-listing,.pl-listing_visual,.pl-listing_item{transition:opacity .6s var(--pl-ease)}
@media (max-width:999px){.pl-listing_info_tag{display:none}}

/* leaving for a detail view */
.plc.is-leaving .pl-slide{transition:transform .4s var(--pl-ease);transform:translate3d(calc(var(--pl-shift) * -1),0,0)}
.plc.is-leaving .pl-slide:before{content:"";position:absolute;top:0;bottom:0;right:1px;width:1px;background:currentColor;z-index:101}
.plc.is-leaving .pl-listing_item,.plc.is-leaving .pl-listing_visual{opacity:0}
.plc.is-leaving .pl-contact_box{transition:border 0s .6s;border-color:var(--pl-primary)}
.plc.is-returning .pl-slide{transition:transform .6s .35s var(--pl-ease);transform:none}
.plc.is-returning .pl-listing_item,.plc.is-returning .pl-listing_visual{transition:opacity .6s .6s var(--pl-ease)}
.plc.is-modal .pl-slide{filter:blur(10px);transition:filter .6s var(--pl-ease)}
.pl-slide{transition:filter .6s var(--pl-ease)}

/* top bar, menu and rail get out of the way inside these sections */
body.in-plc .top-bar,body.in-plc .js-menu,body.in-plc .scroll-progress{opacity:0!important;visibility:hidden!important;pointer-events:none!important}

/* ==== detail view ==== */
.pl-detail{position:fixed;inset:0;z-index:2000;color:var(--pl-secondary);font-family:var(--pl-sans);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;visibility:hidden;pointer-events:none}
.pl-detail.is-open{visibility:visible;pointer-events:auto}
.pl-detail.is-solid{background:var(--pl-primary)}
.pl-project{--project-header-height:44px;position:relative;min-height:100%}
.pl-project_title{position:fixed;top:0;left:0;width:100%;padding-top:5px;z-index:20;pointer-events:none;display:grid;grid-template-columns:repeat(12,1fr);transform-origin:bottom left;
  transform:scale3d(1,1.8,1) translate3d(0,-100%,0);transition:transform .6s var(--pl-ease)}
.pl-detail.is-rendering .pl-project_title{transform:none}
.pl-detail.is-switching .pl-project_title,.pl-detail.is-closing .pl-project_title{transform:scale3d(1,1.8,1) translate3d(0,-100%,0)}
.pl-project_title_inner{display:inline-block;position:relative;transform-origin:bottom center;line-height:.8;letter-spacing:-.01em;padding:5px 12px;margin-left:-.05em;grid-column:6 / 13;
  transform:scaleY(calc(1 + .8*max(0,min(1,(var(--progress,0) - .9) / .1)))) translateY(calc(0% - (100%*max(0,min(1,(var(--progress,0) - .95) / .05)))))}
.pl-project_grid{display:grid;grid-template-columns:5fr 7fr}
.pl-project_side{position:relative}
.pl-project_sticky{display:flex;min-height:100vh;position:sticky;top:0;height:100vh}
.pl-project_inner{position:relative;display:flex;width:100%;padding-top:0;transition:padding .4s var(--pl-ease)}
.pl-detail.is-ready .pl-project_inner{padding-top:var(--project-header-height)}
.pl-detail.is-closing .pl-project_inner{padding-top:0}
.pl-project_header{display:flex;justify-content:space-between;height:var(--project-header-height);position:absolute;left:0;right:0;top:0;border:1px solid currentColor;border-top:0;background:var(--pl-primary);z-index:10;margin-right:-2px;margin-left:-1px;
  transform:translate3d(0,calc(var(--project-header-height) * -1),0);transition:transform .4s var(--pl-ease)}
.pl-detail.is-ready .pl-project_header{transform:none}
.pl-project_header_button,.pl-project_header .pl-modal-toggler{display:inline-flex;gap:10px;align-items:center;padding:0 12px;height:100%;position:relative;
  background-image:linear-gradient(var(--pl-secondary),var(--pl-secondary));background-size:100% 0%;background-position:bottom;background-repeat:no-repeat;transition:background-size .3s ease,color .3s ease}
@media (hover:hover){.pl-project_header_button:hover,.pl-project_header .pl-modal-toggler:hover{transition:none;color:var(--pl-primary);background-size:100% 100%}}
.pl-project_header .pl-modal-toggler_label{background:none}
.pl-project_content{margin-top:-1px;border-top:1px solid currentColor;flex-grow:1;position:relative}
.pl-project_content:before{content:"";position:absolute;inset:0 0 0 12px;border-left:1px solid currentColor;border-right:1px solid currentColor;background:var(--pl-primary);opacity:0;transition:opacity .3s .5s var(--pl-ease)}
.pl-detail.is-open .pl-project_content:before{opacity:1}
.pl-detail.is-closing .pl-project_content:before{transition:opacity .2s .9s var(--pl-ease);opacity:0}
.pl-project_content:after{content:"";position:absolute;bottom:0;left:13px;right:1px;height:80px;z-index:1;pointer-events:none;background:linear-gradient(to bottom,rgba(9,9,9,0),rgba(9,9,9,1))}
.pl-project_content_scroll{position:absolute;inset:0;overflow:auto;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:80px;z-index:1}
.pl-project_content .pl-text{height:auto;padding-bottom:0}
.pl-project_content .pl-text:before{display:none}
.pl-project_content .pl-text_sticky{position:relative}
.pl-project_content .pl-text_title:after{top:0}
.pl-project_content .pl-text_inner{position:relative;top:auto}
.pl-project_content .pl-text_content{transform:none;opacity:1}
.pl-project_tag{position:absolute;top:12px;right:12px;z-index:4}
.pl-project_info{padding-top:clamp(1.5rem,1.36rem + .71vw,2rem);padding-left:12px}
.pl-project_info,.pl-project_content .pl-text_inner,.pl-project_tag{opacity:0;transition:opacity .6s var(--pl-ease)}
.pl-detail.is-ready .pl-project_info,.pl-detail.is-ready .pl-project_content .pl-text_inner,.pl-detail.is-ready .pl-project_tag{opacity:1}
.pl-detail.is-switching .pl-project_info,.pl-detail.is-switching .pl-project_content .pl-text_inner,.pl-detail.is-switching .pl-project_tag,
.pl-detail.is-closing .pl-project_info,.pl-detail.is-closing .pl-project_content .pl-text_inner,.pl-detail.is-closing .pl-project_tag{opacity:0;transition-duration:.4s}
.pl-project_context{position:relative}
.pl-project_context:before{content:"";position:absolute;bottom:0;left:0;width:12px;height:1px;background:currentColor}
.pl-project_context_title{padding-left:12px;position:relative}
.pl-project_context_title:before{content:"";position:absolute;top:50%;left:0;width:10px;height:1px;background:currentColor}
.pl-project_context_row{display:flex;justify-content:space-between;align-items:baseline;padding:12px}
.pl-project_credits{padding:12px}
.pl-detail code{font-family:"JetBrains Mono",ui-monospace,monospace;font-size:.8em;letter-spacing:0}
.pl-project_credits a,.pl-project_links a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.pl-project_links{padding:4px 12px 12px;display:flex;flex-direction:column;gap:10px}
.pl-project_links a{text-decoration:none!important;align-self:flex-start;background-image:linear-gradient(var(--pl-secondary),var(--pl-secondary));background-size:100% 1px;background-position:bottom;background-repeat:no-repeat;padding-bottom:3px;transition:background-size .3s ease,color .3s ease}
.pl-project_links a:hover{background-size:100% 100%;color:var(--pl-primary);transition:none}
.pl-project_button{position:absolute;bottom:0;left:0;right:0;margin-left:12px;z-index:2;transform:translate3d(0,100%,0);transition:transform .6s var(--pl-ease)}
.pl-detail.is-ready .pl-project_button{transform:none}
.pl-detail.is-closing .pl-project_button,.pl-detail.is-switching .pl-project_button{transform:translate3d(0,100%,0);transition-duration:.4s}
.pl-button{display:inline-flex;align-items:center;height:68px;padding:0 20px;background:var(--pl-secondary);color:var(--pl-primary)!important;font-family:var(--pl-sans);font-weight:700;font-size:36px;text-transform:uppercase;letter-spacing:.025em;line-height:1;transition:background .3s ease,color .3s ease}
.pl-button:hover{background:var(--pl-primary);color:var(--pl-secondary)!important;outline:1px solid var(--pl-secondary);outline-offset:-1px}
.pl-gallery_wrap{padding:0 12px;min-width:0}
.pl-gallery{display:flex;flex-direction:column;gap:12px;padding-top:calc(50vh - 60px);padding-bottom:12px}
.pl-gallery_item{transform:scale3d(0,1,1);transform-origin:right top;transition:transform .4s var(--pl-ease)}
.pl-detail.is-rendering .pl-gallery_item{transform:none}
.pl-detail.is-switching .pl-gallery_item,.pl-detail.is-closing .pl-gallery_item{transform:scale3d(0,1,1);transform-origin:left top}
.pl-gallery_item.-dual{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pl-gallery_item_inner{position:relative;z-index:0;will-change:transform;backface-visibility:hidden;transform-origin:bottom left;
  transform:scale3d(calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),1)}
.pl-gallery_item.-dual>div:nth-child(2n) .pl-gallery_item_inner{transform:translate(calc(-14.5vw*max(0,min(1,(var(--progress,0) - .5) / .5)))) scale3d(calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),calc(.5 + .5*(1 - max(0,min(1,2 * var(--progress,0) - 1)))),1)}
.pl-gallery_element{position:relative;z-index:2;opacity:clamp(0,1 - max(0,(var(--progress,0) - .7) / .2),1)}
.pl-gallery .pl-image_inner{opacity:0;transform:scale3d(1.05,1.05,1);transition:opacity .6s var(--pl-ease),transform .6s var(--pl-ease)}
.pl-detail.is-ready .pl-gallery .pl-image_inner{opacity:1;transform:none}
.pl-detail.is-switching .pl-gallery .pl-image_inner,.pl-detail.is-closing .pl-gallery .pl-image_inner{opacity:0}
.pl-gallery .pl-image_img.-tall{aspect-ratio:1000/1600}
.pl-detail.is-closing{transition:transform .4s var(--pl-ease);transform:translate3d(var(--pl-shift-back),0,0)}

/* ==== index modal ==== */
.pl-modal{position:fixed;inset:0;z-index:2100;overflow:hidden;visibility:hidden;color:var(--pl-secondary);font-family:var(--pl-sans);--close:80px;transition:visibility 0s .4s}
.pl-modal:before{content:"";position:absolute;inset:0;background:var(--pl-primary);opacity:0;transition:opacity .4s var(--pl-ease)}
.pl-modal.is-open{visibility:visible;transition-delay:0s}
.pl-modal.is-open:before{opacity:.95}
.pl-modal_inner{position:absolute;inset:0;overflow:auto;z-index:2;display:flex;align-items:center;justify-content:center;padding:80px 0}
.pl-modal_inner:before{content:"";position:absolute;top:50%;left:0;right:7px;height:1px;background:currentColor;transform:scale3d(0,1,1);transform-origin:left;transition:transform .4s var(--pl-ease)}
.pl-modal.is-open .pl-modal_inner:before{transform:none}
.pl-modal_list{display:flex;flex-wrap:wrap;justify-content:center;position:relative;z-index:1}
.pl-modal_item{width:12.5vw;margin:0 -1px -1px 0}
.pl-modal_thumbnail{display:block;width:100%;position:relative;text-align:left}
.pl-modal_thumbnail_inner{position:relative;z-index:2;opacity:0;--delay:.4s;transition:transform .4s var(--pl-ease),opacity .8s var(--pl-ease)}
.pl-modal_item:nth-child(-n+8) .pl-modal_thumbnail_inner{transform:translate3d(0,-100%,0)}
.pl-modal_item:nth-child(n+9) .pl-modal_thumbnail_inner{transform:translate3d(0,100%,0)}
.pl-modal_thumbnail_visual_wrap{position:relative;overflow:hidden}
.pl-modal_thumbnail_visual{--delay:0s;clip-path:inset(0%);transition:transform .4s var(--pl-ease)}
.pl-modal_item:nth-child(-n+8) .pl-modal_thumbnail_visual{transform:translate3d(0,100%,0)}
.pl-modal_item:nth-child(n+9) .pl-modal_thumbnail_visual{transform:translate3d(0,-100%,0)}
.pl-modal.is-open .pl-modal_thumbnail_inner{transform:none;opacity:1}
.pl-modal.is-open .pl-modal_thumbnail_visual{transform:none}
.pl-modal.is-open .pl-modal_item .pl-modal_thumbnail_inner{transition-delay:calc(var(--i) * .05s + .4s)}
.pl-modal.is-open .pl-modal_item .pl-modal_thumbnail_visual{transition-delay:calc(var(--i) * .05s)}
.pl-modal_thumbnail_info{position:absolute;top:0;left:0;width:100%;display:none;padding:0}
.pl-modal_thumbnail_info .pl-label{transform:translate3d(0,-100%,0);transition:transform .4s var(--pl-ease);background:var(--pl-primary);display:inline-block;padding-right:6px}
.pl-modal.is-open .pl-modal_thumbnail_info .pl-label{transform:none}
.pl-modal.is-open .pl-modal_thumbnail:hover .pl-modal_thumbnail_info{display:block}
.pl-modal_thumbnail img{display:block;width:100%;aspect-ratio:1600/1000;object-fit:cover}
.pl-modal_hover{position:absolute;inset:0;display:none;z-index:4;background:var(--pl-secondary);mix-blend-mode:difference;opacity:.12}
@media (hover:hover){.pl-modal_item:hover .pl-modal_hover{display:block}}
.pl-modal_close{position:fixed;top:0;right:0;display:flex;width:var(--close);height:var(--close);z-index:3;transform:translateY(-100%);transition:transform .4s var(--pl-ease)}
.pl-modal.is-open .pl-modal_close{transform:none}
.pl-modal_close_inner{display:flex;position:relative;width:100%;height:100%}
.pl-modal_close_inner:before,.pl-modal_close_inner:after{content:"";position:absolute;top:0;left:50%;width:1px;height:100%;background:currentColor}
.pl-modal_close_inner:before{transform:rotate(45deg)}.pl-modal_close_inner:after{transform:rotate(-45deg)}
.pl-detail.is-modal .pl-project{filter:blur(10px);transition:filter .6s var(--pl-ease)}
.pl-project{transition:filter .6s var(--pl-ease)}
@media (max-width:1399px){
  .pl-modal_inner{display:block;padding:80px var(--close) 80px 12px}
  .pl-modal_inner:before{display:none}
  .pl-modal_list{display:grid;grid-template-columns:repeat(6,1fr);row-gap:2rem}
  .pl-modal_item{width:auto}
  .pl-modal_thumbnail_inner{transform:none!important;transition-delay:0s}
  .pl-modal_thumbnail_info{position:relative;display:block;overflow:hidden}
  .pl-modal_thumbnail_visual{transform:translate3d(0,101%,0)!important}
  .pl-modal.is-open .pl-modal_thumbnail_visual{transform:none!important;transition-delay:.3s}
}
@media (max-width:999px){.pl-modal_list{grid-template-columns:repeat(4,1fr)}}

/* ==== mobile ==== */
@media (max-width:699px){
  .plc,.pl-detail,.pl-modal{--pl-m:10px}
  .pl-modal{--close:40px}
  .pl-modal_list{grid-template-columns:repeat(2,1fr)}
  .pl-h3{font-size:22px}
  .pl-header{height:auto;min-height:0;padding-top:120px}
  .pl-header_info{position:relative;height:auto;order:-1}
  .pl-header_info_sticky{position:relative;grid-template-columns:1fr 1fr}
  .pl-header_tagline{margin:0;height:auto;padding-top:48px}
  .pl-header_tagline_sticky,.pl-header_tagline_sticky_inner{height:auto;position:relative;top:auto}
  .pl-header_tagline_title{max-width:none}
  .pl-grid{grid-template-columns:1fr}
  .pl-listing_wrap{order:1;border-top:1px solid currentColor;z-index:10;margin-top:-1px}
  .pl-side{order:2}
  .pl-text{padding-bottom:clamp(3.75rem,3.39rem + 1.79vw,5rem);height:auto}
  .pl-text_inner{position:relative;top:auto}
  .pl-contact{position:relative;margin:0 12px 0 12px;padding:0;z-index:10}
  .pl-contact_inner{position:relative;height:auto}
  .pl-contact_box{transform:none!important;height:auto;border-left:0;border-bottom:1px solid currentColor}
  .pl-contact_label,.pl-contact_social,.pl-contact_email{transform:none}
  .pl-listing_border.-right{display:none}
  .pl-listing_border_sticky{top:28px}
  .pl-listing_item{top:calc(var(--item) * 28px + 7px)}
  .pl-listing_item:before{top:-10px;height:22px}
  .pl-listing_content{height:23px}
  .pl-listing_title{font-size:22px;height:26px;line-height:28px}
  .pl-listing_label{margin-bottom:13px}
  .pl-label{padding-top:8px}.pl-label:before{height:18px}
  .pl-listing_preview{display:none}
  .pl-listing_visual{padding:13% 0 15% 44%}
  .pl-listing_visual_inner,.pl-listing_visual_element{transform-origin:top right}
  .pl-detail .pl-project{padding-bottom:var(--project-header-height)}
  .pl-project_title{position:relative;padding:10px 12px 0;display:block}
  .pl-project_title_inner{padding:0;margin:0;transform:none;font-size:clamp(2.6rem,11vw,3.75rem);line-height:.85}
  .pl-project_grid{display:block}
  .pl-project_sticky,.pl-project_inner{display:block;position:relative;height:auto;min-height:0}
  .pl-project_header{position:fixed;bottom:0;top:auto;left:0;right:0;margin:0;border:0;border-top:1px solid currentColor;transform:translate3d(0,100%,0)}
  .pl-detail.is-ready .pl-project_inner{padding-top:12px}
  .pl-project_content{margin:0;border-bottom:1px solid currentColor}
  .pl-project_content_scroll{position:relative;padding-bottom:24px;overflow:visible}
  .pl-project_content:after{display:none}
  .pl-project_button{position:relative;margin:12px}
  .pl-gallery{padding-top:12px}
  .pl-gallery_item_inner,.pl-gallery_item.-dual>div:nth-child(2n) .pl-gallery_item_inner{transform:none}
  .pl-gallery_element{opacity:1}
  .pl-button{font-size:26px;height:54px}
}

/* ==== timeline in the INFO column: a glowing star glides down as the list scrolls (from waleedahmed.site) ==== */
.pl-text_inner{display:flex;flex-direction:column;height:calc(100vh - 32px - var(--pl-contact-height) / 2 - 12px)}
.pl-text_content{flex:none}
.plc .pl-text{padding-bottom:48px}
.plc .pl-text_sticky{z-index:3}
.plc .pl-text_inner{z-index:1}
.pl-timeline{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin-top:26px;padding-bottom:10px}
.pl-timeline_label{margin-left:-12px;flex:none}
.pl-timeline_rail{position:absolute;left:10px;top:52px;bottom:14px;width:1px;background:linear-gradient(to bottom,rgba(242,239,233,.15),rgba(242,239,233,.1) 60%,rgba(242,239,233,0))}
.pl-timeline_star{position:absolute;left:50%;top:var(--star,0%);width:24px;height:24px;margin:-12px 0 0 -12px;color:#7b92a6;animation:plStarPulse 7s ease-in-out infinite;will-change:top}
.pl-timeline_star i{position:absolute;inset:-8px;border-radius:50%;background:rgba(123,146,166,.2);filter:blur(10px)}
.pl-timeline_star svg{position:relative;display:block;width:100%;height:100%}
@keyframes plStarPulse{0%,100%{scale:.95;opacity:.8}50%{scale:1.05;opacity:1}}
.pl-timeline_list{list-style:none;margin:8px 0 0;padding:0 0 0 38px;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:space-around}
.pl-timeline_item{display:grid;grid-template-columns:minmax(6.2rem,.3fr) minmax(0,1fr);gap:16px;padding:14px 0;border-top:1px solid rgba(242,239,233,.1);opacity:.42;transition:opacity .6s cubic-bezier(.16,1,.3,1)}
.pl-timeline_item:first-child{border-top:0}
.pl-timeline_item.is-active,.pl-timeline_item:hover{opacity:1}
.pl-timeline_chapter{font-family:"Instrument Serif",var(--pl-serif);font-style:italic;font-weight:400;font-size:1.3rem;line-height:1.05;color:#7b92a6;letter-spacing:0}
.pl-timeline_date{margin-top:7px;font:600 .68rem/1.2 var(--pl-sans);letter-spacing:.28em;text-transform:uppercase;color:#9a968e}
.pl-timeline_title{font-family:var(--pl-sans);font-weight:700;font-size:1.4rem;line-height:1;text-transform:uppercase;letter-spacing:.025em;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.pl-timeline_item:hover .pl-timeline_title,.pl-timeline_item.is-active .pl-timeline_title{transform:translateX(6px)}
.pl-timeline_text{margin-top:6px;font-family:var(--pl-serif);font-weight:500;font-size:1rem;line-height:1.22;letter-spacing:-.01em;color:#9a968e}
.pl-timeline_tags{margin-top:9px;display:flex;flex-wrap:wrap;gap:6px}
.pl-timeline_tags span{border:1px solid rgba(242,239,233,.15);border-radius:999px;padding:3px 9px 2px;font:600 .72rem/1.2 var(--pl-sans);letter-spacing:.05em;text-transform:uppercase;color:#9a968e;transition:border-color .5s cubic-bezier(.16,1,.3,1)}
.pl-timeline_item:hover .pl-timeline_tags span,.pl-timeline_item.is-active .pl-timeline_tags span{border-color:rgba(123,146,166,.45)}
@media (max-height:800px){.pl-timeline_tags{display:none}}
@media (max-height:660px){.pl-timeline{margin-top:14px}.pl-timeline_text{display:none}.pl-timeline_item{padding:5px 0;gap:12px}.pl-timeline_chapter{font-size:1.1rem}.pl-timeline_date{margin-top:3px}.pl-timeline_title{font-size:1.15rem}.pl-timeline_rail{top:44px}}
@media (max-width:999px){.pl-timeline_item{grid-template-columns:1fr;gap:6px}}
@media (max-width:699px){
  .pl-text_inner{height:auto;display:block}
  .pl-timeline{margin-top:32px}
  .pl-timeline_rail{display:none}
  .pl-timeline_list{padding-left:12px}
  .pl-timeline_item{opacity:1}
  .pl-timeline_tags,.pl-timeline_text{display:flex}
  .pl-timeline_text{display:block}
}
