:root {
    --color-primary: #18181b;
    --color-on-primary: #ffffff;
    --color-accent: #f8fafc;
    --color-on-accent: #0f172a;
    --color-background: #000000;
    --color-foreground: #fafafa;
    --color-card: #0c0c0c;
    --color-muted-foreground: #94a3b8;
    --color-border: #3f3f46;
    --color-destructive: #ef4444;
    --color-ring: #ffffff;
    --color-signal: #4ade80;
    --font-heading: "Archivo", sans-serif;
    --font-body: "Space Grotesk", sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --header-h: 76px;
    --radius: 12px;
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, a, summary, label { cursor: pointer; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--color-ring); outline-offset: 2px; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 var(--space-md); }
p { margin: 0 0 var(--space-md); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lanyard { position: relative; z-index: 3; width: min(1120px, 100%); margin: 0 auto 18px; perspective: 1400px; }
.lanyard-stage { position: relative; transform-style: preserve-3d; }
.lanyard-bar {
    position: absolute; left: 8px; right: 8px; top: 8px; height: 12px; border-radius: 999px; z-index: 3; pointer-events: none;
    background: linear-gradient(180deg, #d4d4d8 0%, #71717a 18%, #18181b 52%, #a1a1aa 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 10px 18px rgba(0, 0, 0, 0.55);
}
.lanyard-bar span { position: absolute; inset: 3px 10px auto; height: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.35); }
.lanyard-window { overflow: visible; padding: 8px 12px 4px; pointer-events: none; }
.lanyard-window::-webkit-scrollbar { display: none; }
.lanyard-track {
    display: flex; justify-content: center; align-items: flex-start; gap: 28px; list-style: none; margin: 0; padding: 10px 24px 0;
    width: max(100%, max-content); transform-style: preserve-3d;
}
.hang {
    --pull: 0px; --stretch: 1;
    width: 210px; flex: none; display: flex; flex-direction: column; align-items: center;
    transform-style: preserve-3d; transform-origin: center top; pointer-events: none;
    transform: rotateZ(var(--roll));
}
.hang.is-dragging { z-index: 6; }
.tone-1 { --tone: linear-gradient(90deg, #2563eb, #4ade80); }
.tone-2 { --tone: linear-gradient(180deg, #4ade80, #166534); }
.tone-3 { --tone: linear-gradient(180deg, #fb923c, #c2410c); }
.tone-4 { --tone: linear-gradient(180deg, #c084fc, #6d28d9); }
.tone-5 { --tone: linear-gradient(180deg, #f9a8d4, #be185d); }
.strap {
    width: 16px; height: 48px; margin-top: 2px; border-radius: 3px;
    transform-origin: top center; transform: scaleY(var(--stretch));
    background: var(--tone);
    background-image: var(--tone), repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px 5px);
    box-shadow: inset -3px 0 0 rgba(0, 0, 0, 0.25), inset 3px 0 0 rgba(255, 255, 255, 0.25);
    position: relative;
}
.strap i {
    position: absolute; top: -11px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f4f4f5, #a1a1aa 42%, #27272a 70%);
    box-shadow: 0 2px 0 #09090b, inset 0 0 0 5px #3f3f46;
}
.badge {
    position: relative; width: 100%; height: 250px; margin-top: -6px; perspective: 900px;
    transform: translateY(var(--pull)); pointer-events: auto; touch-action: none; cursor: grab;
}
.badge::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 18px; }
.hang.is-dragging .badge { cursor: grabbing; }
.badge-spin {
    position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
    transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.badge.is-flipped .badge-spin { transform: rotateY(180deg); }
.badge-front, .badge-back {
    position: absolute; inset: 0; display: grid; align-content: start; gap: 6px;
    padding: 0 14px 12px; border-radius: 18px; overflow: hidden; color: #fafafa;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(180deg, #1c1c1f, #09090b);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 16px 26px 24px rgba(0, 0, 0, 0.45);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.badge-back { transform: rotateY(180deg); pointer-events: none; }
.badge.is-flipped .badge-front { pointer-events: none; }
.badge.is-flipped .badge-back { pointer-events: auto; }
.badge-cap { display: block; height: 22px; margin: 0 -14px 12px; background: var(--tone); }
.badge-people { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge-logo, .badge-face { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #fff; flex: none; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35); }
.badge-logo img, .badge-face { width: 58px; height: 58px; object-fit: cover; }
.badge-logo img { object-position: center 42%; }
.badge-logo svg { width: 28px; height: 28px; color: #111; }
.badge-face.fallback { color: #111; font-family: Archivo, sans-serif; font-size: 1.6rem; }
.badge-name { margin: 0; font-family: Archivo, sans-serif; font-size: 1.05rem; letter-spacing: -0.03em; }
.badge-role, .badge-team, .badge-back p { margin: 0; color: #cbd5e1; font-size: 0.86rem; }
.badge-team { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; }
.barcode { height: 28px; margin-top: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #e5e7eb 0 2px, transparent 2px 4px, #e5e7eb 4px 5px, transparent 5px 8px); opacity: 0.85; }
.badge-flip { justify-self: start; min-height: 36px; margin-top: auto; border: 0; background: transparent; color: #fafafa; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.badge-links { display: grid; gap: 6px; position: relative; z-index: 3; }
.badge-links a { color: #fafafa; min-height: 36px; display: flex; align-items: center; pointer-events: auto; }
.badge img { user-select: none; -webkit-user-drag: none; }
@media (max-width: 700px) {
    .lanyard-bar { left: 12px; right: 12px; }
    .hang { width: 188px; }
    .badge { height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
    .hang { transform: none; filter: none; }
    .badge-spin { transition: none; }
}
.skip {
    position: absolute; left: var(--space-md); top: -40px; z-index: 80;
    background: var(--color-accent); color: var(--color-on-accent); padding: var(--space-sm) var(--space-md); border-radius: 8px;
}
.skip:focus { top: var(--space-sm); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: var(--color-signal); }
#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }
.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.muted, .meta, .lede { color: var(--color-muted-foreground); }
.lede { font-size: 1.125rem; max-width: 42rem; }
.section { padding: var(--space-3xl) 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.section-head { max-width: 40rem; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.method-head { margin-top: var(--space-3xl); }
.pill {
    display: inline-flex; gap: var(--space-sm); align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
    padding: 6px 12px; color: var(--color-muted-foreground); background: rgba(255, 255, 255, 0.06);
    margin-bottom: var(--space-md);
}
.pill strong { color: var(--color-foreground); font-weight: 500; }
.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 28%, rgba(8, 8, 8, 0.72));
    background-color: rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), var(--shadow-lg);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
    min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
    text-decoration: none; font-weight: 600; transition: background-color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}
.btn-light { background: var(--color-accent); color: var(--color-on-accent); }
.btn-light:hover { opacity: 0.9; }
.btn-glass, .btn-line { background: rgba(255, 255, 255, 0.04); color: var(--color-foreground); border-color: rgba(255, 255, 255, 0.2); }
.btn-glass:hover, .btn-line:hover { background: rgba(255, 255, 255, 0.1); }
.site-header {
    position: sticky; top: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    min-height: var(--header-h); padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-heading); font-weight: 600; justify-self: start; }
.logo svg { width: 28px; height: 28px; }
.logo img { height: 48px; width: 132px; object-fit: cover; object-position: center 42%; background: #fff; border-radius: 8px; }
.nav-pill { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); }
.nav-pill a { color: var(--color-muted-foreground); text-decoration: none; padding: 8px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-pill a:hover, .nav-pill a[aria-current="true"] { color: var(--color-foreground); background: rgba(255, 255, 255, 0.08); }
.header-cta { justify-self: end; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); }
.hero { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 12px var(--space-md) 0; }
.hero .lanyard + .pill { margin-top: 10px; margin-bottom: 10px; }
.hero h1 { margin-top: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 560; max-width: 16em; text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--color-signal); }
.hero .lede { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-bottom: var(--space-2xl); }
.marquee { width: min(1120px, 100%); border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: auto; }
.marquee-label { display: flex; justify-content: space-between; align-items: center; padding: var(--space-md) 0 var(--space-sm); color: var(--color-muted-foreground); }
.marquee-label button { min-height: 44px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: inherit; border-radius: 8px; padding: 0 12px; }
.marquee-window { overflow: hidden; }
.marquee-track { display: flex; gap: var(--space-xl); width: max-content; padding-bottom: var(--space-lg); animation: ticker 28s linear infinite; }
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--color-foreground); white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }
.grid { display: grid; gap: var(--space-lg); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: var(--space-lg); }
.card h3, .project-copy h3, .project-copy .card-title { font-size: 1.2rem; }
.index { display: block; color: var(--color-signal); font-family: var(--font-heading); margin-bottom: var(--space-sm); }
.icon-wrap { display: inline-flex; width: 36px; height: 36px; color: var(--color-foreground); margin-bottom: var(--space-sm); }
.icon-wrap svg { width: 24px; height: 24px; }
.band { border-block: 1px solid rgba(255, 255, 255, 0.12); }
.stats { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-xl); align-items: center; }
.manifesto { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.03em; }
.stats dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); margin: 0; }
.stats dt { font-family: var(--font-heading); font-size: 2rem; }
.stats dd { margin: 0; color: var(--color-muted-foreground); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: min(100%, calc(100% - 96px)); margin: 0 auto var(--space-xl); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); }
.tabs button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--color-muted-foreground); padding: 0 14px; }
.tabs button[aria-selected="true"] { background: var(--color-accent); color: var(--color-on-accent); }
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.shot { display: block; margin: var(--space-md); border-radius: 16px; overflow: hidden; background: #101010; aspect-ratio: 16/10; text-decoration: none; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-fallback { display: grid; place-items: center; height: 100%; font-family: var(--font-heading); font-size: 3rem; color: var(--color-signal); background: radial-gradient(120px 80px at 20% 20%, rgba(74, 222, 128, 0.25), transparent 60%), #101010; }
.shot-fallback.large { min-height: 320px; border-radius: 0 0 20px 20px; }
.project-copy { padding: 0 var(--space-lg) var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); flex: 1; color: #fff; }
.project-copy h2,
.project-copy h3,
.project-copy .card-title,
.project-copy .meta,
.project-copy p,
.project-copy h2 a,
.project-copy h3 a,
.project-copy .card-title a { color: #fff; text-decoration: none; }
.project-copy p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-copy .btn { margin-top: auto; align-self: flex-start; }
.cert-shot { display: block; margin-bottom: var(--space-md); background: #fff; border-radius: 12px; }
.cert-card img { width: 100%; max-height: 460px; object-fit: contain; background: #fff; border-radius: 12px; }
.cert-mark { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: var(--space-md); font-family: var(--font-heading); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-sm); list-style: none; padding: 0; margin: 0 0 var(--space-md); }
.chips li { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; padding: 6px 12px; }
.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stack-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 112px; padding: 16px 8px; border-radius: 16px;
    background: rgba(15, 23, 42, 0.78); border: 1px solid rgba(255, 255, 255, 0.12);
}
.stack-card span { font-size: 0.86rem; text-align: center; }
.mark { width: 36px; height: 36px; }
.mark-laravel { color: #ff2d20; }
.mark-react { color: #61dafb; }
.mark-javascript { color: #f7df1e; }
.mark-html5 { color: #e34f26; }
.mark-css3 { color: #1572b6; }
.mark-font-awesome { color: #528dd7; }
.mark-python { color: #ffd43b; }
.mark-php { color: #8892bf; }
.mark-mysql { color: #00758f; }
.mark-supabase { color: #3ecf8e; }
.mark-firebase { color: #ffca28; }
.mark-xampp { color: #fb7a24; }
.mark-git { color: #f05032; }
.mark-github { color: #fafafa; }
.mark-vite { color: #bd34fe; }
.mark-vercel { color: #fafafa; }
.output { color: var(--color-foreground); }
.close-line { margin: var(--space-xl) 0 0; max-width: 40rem; }
.service-list { margin: 0; padding-left: 1.1rem; color: var(--color-muted-foreground); }
.service-list li { margin: 4px 0; }
.map-band { width: min(1120px, calc(100% - 32px)); margin: 0 auto var(--space-xl); }
.map-band iframe { width: 100%; height: 320px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; background: #0c0c0c; }
.map-band p { color: var(--color-muted-foreground); margin: 8px 0 0; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-md); }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: var(--space-lg); padding: var(--space-lg); }
.timeline span { color: var(--color-signal); font-family: var(--font-heading); }
.about { padding: var(--space-xl); }
.prose { max-width: 68ch; }
.faq { padding: 0 var(--space-lg); margin-bottom: var(--space-sm); }
.faq summary { min-height: 56px; display: flex; align-items: center; font-weight: 600; }
.faq p { color: var(--color-muted-foreground); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.form { padding: var(--space-lg); display: grid; gap: 6px; }
.form label { font-size: 0.92rem; }
.form input, .form textarea, .admin input, .admin textarea, .admin select {
    width: 100%; min-height: 44px; padding: 12px 14px; border-radius: 8px;
    border: 1px solid var(--color-border); background: rgba(0, 0, 0, 0.35); color: var(--color-foreground);
}
.form textarea, .admin textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--color-ring); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16); outline: none; }
.alert { border: 1px solid var(--color-destructive); border-radius: 8px; padding: var(--space-md); margin-bottom: var(--space-md); }
.hp { position: absolute; left: -10000px; }
.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: var(--space-xl) 0 var(--space-3xl); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); }
.footer-grid a, .footer-grid p { color: var(--color-muted-foreground); display: block; margin: 0 0 8px; text-decoration: none; }
.footer-grid strong { display: block; margin-bottom: 8px; }
.find-us { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: var(--space-xl); }
.find-us .footer-label { margin: 0; }
.social-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-row a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin: 0; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; color: white; background: rgba(255, 255, 255, 0.04); }
.social-row svg { width: 16px; height: 16px; }
.footer-label { color: var(--color-foreground) !important; font-family: var(--font-heading); margin-bottom: 12px !important; }
.wa-dock { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: 45; display: grid; justify-items: end; gap: var(--space-sm); }
.wa-fab { min-height: 52px; border: 0; border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--color-signal); color: #052e16; font-weight: 700; }
.wa-fab svg { width: 22px; height: 22px; }
.wa-panel { width: min(320px, calc(100vw - 32px)); padding: var(--space-lg); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--color-accent); color: var(--color-on-accent); padding: 12px 16px; border-radius: 8px; z-index: 70; }
.detail-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: var(--space-lg); align-items: start; }
.preview { overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; color: var(--color-muted-foreground); min-width: 0; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3f3f46; display: block; flex: none; }
.browser-bar .preview-host { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.browser-bar button { margin-left: auto; min-height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: inherit; padding: 0 10px; flex: none; }
.preview iframe, .preview-still { width: 100%; height: min(70vh, 640px); border: 0; background: #fff; }
.preview-still.is-hidden, .preview iframe.is-hidden { display: none; }
.preview-note { padding: 0 var(--space-md); color: var(--color-muted-foreground); font-size: 0.92rem; }
.detail-side { padding: var(--space-lg); position: sticky; top: calc(var(--header-h) + 16px); }
.detail-side h1 { font-size: clamp(32px, 4vw, 48px); }
.stack-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.detail-body { margin-top: var(--space-lg); padding: var(--space-xl); }
.gallery-wrap { margin-top: var(--space-xl); }
.gallery-bar { margin-bottom: 12px; }
.gallery-bar h2 { margin: 0; font-size: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.gallery .shot {
    width: 100%; margin: 0; padding: 0; aspect-ratio: 16 / 10; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12); background: #f8fafc;
}
.gallery .shot img { object-fit: contain; object-position: center; background: #f8fafc; }
#lightbox { width: min(1100px, 96vw); max-width: 96vw; border: 0; padding: 12px 16px 16px; background: #000; color: #fff; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lightbox-top p { margin: 0; }
.lightbox-frame { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; }
.lightbox-frame button {
    width: 44px; height: 44px; border-radius: 999px; color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
}
.lightbox-frame button:disabled { opacity: 0.35; }
#lightbox img { width: 100%; max-height: 78vh; object-fit: contain; margin: 0; background: #111; }
.back { display: inline-flex; min-height: 44px; align-items: center; color: var(--color-muted-foreground); margin-bottom: var(--space-md); }
.portfolio-more { display: flex; justify-content: center; margin: var(--space-xl) 0 0; }
.section h1 { font-size: clamp(36px, 5vw, 64px); }
.missing { min-height: 62vh; display: grid; align-items: center; }
.missing h1 { margin: 0 0 12px; }
.more-title { margin: var(--space-xl) 0 var(--space-md); }
#lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.motion .grid-item { animation: rise 400ms ease both; }
.motion .grid-item:nth-child(2) { animation-delay: 60ms; }
.motion .grid-item:nth-child(3) { animation-delay: 120ms; }
.motion .grid-item:nth-child(4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .stats, .detail-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
    .stack-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-side { position: static; }
}
@media (max-width: 768px) {
    .site-header { grid-template-columns: 1fr auto auto; }
    .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
    .nav-pill { display: none; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; flex-direction: column; padding: var(--space-sm); border-radius: 16px; background: rgba(8, 8, 8, 0.92); }
    .nav-pill.open { display: flex; }
    .header-cta { display: none; }
    .grid-4, .grid-3, .grid-2, .timeline li { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .lightbox-frame { grid-template-columns: 44px minmax(0, 1fr) 44px; }
    .stack-grid { grid-template-columns: 1fr 1fr; }
    .stats dl { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track, .motion .grid-item { animation: none; }
    #net { display: none; }
}
