

:root {
    --white: #FFFFFF; --ink: #14141C; --red: #EF3E3E; --navy: #0F0F1B;
    --pink: #F6ABA0; --gray: #F2F2F5; --gray-line: #E4E4E9; --muted: #5B5B66;
    --shadow: 0 12px 28px rgba(15, 15, 27, 0.08);

    --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-hand: 'Caveat', 'Segoe Print', cursive;

    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-press: 140ms; --t-hover: 220ms; --t-menu: 280ms; --t-page: 340ms; --t-reveal: 650ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    line-height: 1.7;
    padding-top: 96px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .nav-links button, .menu button { font-family: var(--font-display); }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.015em; }
p { text-wrap: pretty; }
a { color: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: var(--pink); color: var(--navy); }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
    outline: 2px solid var(--red); outline-offset: 3px;
}

.navbar {
    position: fixed; top: 18px; left: 0; right: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    padding: 0 2rem; pointer-events: none;
}
.navbar > * { pointer-events: auto; }

.nav-pill {
    display: flex; align-items: center; gap: 2.1rem;
    padding: 0.6rem 0.65rem 0.6rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72));
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.75);
    box-shadow: 0 8px 28px rgba(15,15,27,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
    transition: box-shadow 280ms ease, transform 280ms var(--ease);
}
.nav-pill:hover { box-shadow: 0 16px 40px rgba(15,15,27,0.16), inset 0 1px 0 rgba(255,255,255,0.7); transform: translateY(-1px); }
.navbar.scrolled .nav-pill { box-shadow: 0 12px 34px rgba(15,15,27,0.16), inset 0 1px 0 rgba(255,255,255,0.7); }

.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.brand-short { display: none; }

.nav-links { position: relative; display: flex; align-items: center; list-style: none; gap: 0.3rem; }
.nav-links button, .menu button {
    position: relative; z-index: 1;
    font-size: 0.92rem; font-weight: 500;
    background: none; border: none; cursor: pointer;
    color: var(--muted);
    padding: 0.55rem 1.15rem; border-radius: 999px;
    transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.nav-links button:hover { background: rgba(20,20,28,0.06); color: var(--ink); }
.nav-links button.active, .nav-links button.active:hover { background: transparent; color: var(--ink); font-weight: 600; }

.nav-indicator {
    position: absolute; top: 0; left: 0; width: 0; height: 0;
    border-radius: 999px; background: var(--white);
    box-shadow: 0 6px 16px rgba(15,15,27,0.14);
    pointer-events: none; z-index: 0; opacity: 0;
    transition: transform 380ms var(--ease), width 380ms var(--ease), height 380ms var(--ease), opacity 200ms ease;
}
.nav-indicator.ready { opacity: 1; }
.nav-indicator.no-anim { transition: none; }

.nav-cta {
    position: fixed; top: 22px; right: 2rem; z-index: 1100;
    font-family: var(--font-display); font-size: 0.88rem; font-weight: 600;
    background: rgba(15,15,27,0.96); color: var(--white);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 999px;
    padding: 0.75rem 1.5rem; cursor: pointer;
    box-shadow: 0 10px 26px rgba(15,15,27,0.25);
}

.hamburger {
    display: none; position: fixed; top: 26px; right: 2rem; z-index: 1200;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 46px; height: 46px; cursor: pointer;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.6); border-radius: 999px;
    box-shadow: 0 8px 22px rgba(15,15,27,0.14);
    transition: transform var(--t-hover) var(--ease);
}
.hamburger:active { transform: scale(0.94); }
.hamburger div { width: 20px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.hamburger.active div:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active div:nth-child(2) { opacity: 0; }
.hamburger.active div:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.menu {
    position: fixed; top: 80px; right: 2rem; width: 220px; padding: 0.75rem;
    display: none; flex-direction: column; gap: 0.3rem; z-index: 1100;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255,255,255,0.65); border-radius: 20px;
    box-shadow: 0 16px 40px rgba(15,15,27,0.16);
    transform-origin: top right;
}
.menu.active { display: flex; animation: menuIn var(--t-menu) var(--ease); }
.menu button { text-align: left; }
.menu button:hover, .menu button.active { background: var(--red); color: var(--white); }
@keyframes menuIn { from { opacity: 0; transform: scale(0.94) translateY(-6px); } to { opacity: 1; transform: none; } }

.blur-overlay {
    position: fixed; inset: 0; z-index: 1000;
    backdrop-filter: blur(4px); background: rgba(15,15,27,0.25);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
.blur-overlay.active { opacity: 1; visibility: visible; }

.btn-primary, .nav-cta, .coffee-btn {
    transition:
        transform var(--t-hover) var(--ease), background-color var(--t-hover) ease,
        color var(--t-hover) ease, border-color var(--t-hover) ease,
        box-shadow var(--t-hover) ease, filter var(--t-hover) ease;
}
.btn-primary:active, .nav-cta:active, .coffee-btn:active { transform: scale(0.97); transition-duration: var(--t-press); }
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover, .nav-cta:hover, .coffee-btn:hover {
        transform: scale(1.02); filter: brightness(1.06); box-shadow: 0 8px 22px rgba(15,15,27,0.14);
    }
    .btn-primary:active, .nav-cta:active, .coffee-btn:active { transform: scale(0.97); }
}
.nav-cta:hover { background: var(--red); }

.view { display: none; }
.view.active { display: block; animation: viewIn var(--t-page) var(--ease) backwards; }
.view.active .section-header,
.view.active .hero-grid > :first-child { animation: viewIn 420ms var(--ease) 60ms backwards; }
.view.active .hero-art { animation: viewIn 480ms var(--ease) 140ms backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }
.project-list .project-card-wrap:nth-of-type(2) { transition-delay: .08s; }
.project-list .project-card-wrap:nth-of-type(3) { transition-delay: .16s; }
.project-list .project-card-wrap:nth-of-type(4) { transition-delay: .24s; }

.hero { min-height: calc(100vh - 104px); display: flex; align-items: center; padding: 3rem 4vw; max-width: 1400px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; width: 100%; }

.greeting-pill {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-width: 8.5rem; padding: 0.55rem 1.4rem; margin-bottom: 1.4rem;
    background: var(--gray); border-radius: 999px;
    font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem;
    transform: rotate(-2deg); box-shadow: 0 8px 18px rgba(15,15,27,0.08);
}
.greeting-pill .wave { display: inline-block; transform-origin: 70% 75%; }
#greetingText { position: relative; display: inline-flex; overflow: hidden; white-space: nowrap; padding: 0.14em 0.04em; margin: -0.14em -0.04em; }
.g-line { display: inline-flex; }
.g-line.abs { position: absolute; left: 0.04em; top: 0.14em; }
.g-ch { display: inline-block; white-space: pre; will-change: transform, opacity; }

.hero h2 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 700; line-height: 1.15; }
.accent { color: var(--red); }
.hero-content { margin-top: 1.75rem; font-size: 1.05rem; color: var(--muted); max-width: 480px; }
.hero-actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.btn-primary {
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    background: var(--navy); color: var(--white); border: none;
    padding: 1rem 1.9rem; border-radius: 999px; cursor: pointer;
}
.btn-primary:hover { background: var(--red); }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; }

@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatSoftRotate { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(6deg); } }
[class^="float-"] { transform-origin: center; transform-box: fill-box; }
.float-1 { animation: floatSoft 3.6s ease-in-out infinite; }
.float-2 { animation: floatSoft 3s ease-in-out .4s infinite; }
.float-3 { animation: floatSoftRotate 4.2s ease-in-out .8s infinite; }
.float-4 { animation: floatSoftRotate 3.4s ease-in-out 1.2s infinite; }
.float-5 { animation: floatSoft 3.8s ease-in-out .2s infinite; }
.float-6 { animation: floatSoft 4.4s ease-in-out .6s infinite; }
.float-7 { animation: floatSoft 3.2s ease-in-out 1s infinite; }

.content-section { max-width: 1200px; margin: 0 auto; padding: 5rem 4vw 6rem; }
.section-header { max-width: 640px; margin-bottom: 3rem; }
.eyebrow-pill {
    display: inline-block; background: var(--gray); margin-bottom: 1rem; padding: 0.4rem 1rem;
    border-radius: 999px; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.section-header h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; }
.section-header p { margin-top: 0.9rem; color: var(--muted); }

.split .letter { display: inline-block; white-space: pre; transform-origin: 50% 85%; will-change: transform; }

.project-list { display: flex; flex-direction: column; gap: 3.25rem; }
.project-card-wrap { position: relative; }

.project-card {
    position: relative; overflow: hidden; min-height: 400px;
    display: grid; grid-template-columns: 1.05fr 1fr;
    background: var(--gray); border: 1px solid var(--gray-line); border-radius: 24px;
    transition: transform 350ms var(--ease), box-shadow 350ms ease, border-color 350ms ease;
}
.project-card.reverse { grid-template-columns: 1fr 1.05fr; }
.project-card.reverse .project-text { order: 2; }
.project-card.reverse .project-visual { order: 1; }
.project-card.has-link { cursor: pointer; }

.project-card::after {
    content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit;
    pointer-events: none; opacity: 0; transition: opacity 350ms ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.28), transparent 60%);
}

.project-text { padding: 2.75rem 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.project-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; padding: 0.45rem 0.95rem; border-radius: 999px; }
.project-tag.solid { background: var(--ink); color: var(--white); }
.project-tag.outline { border: 1.4px solid var(--gray-line); }

.project-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.25; }
.project-text p { font-size: 0.95rem; color: var(--muted); max-width: 440px; }

.project-features { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.project-features li { list-style: none; display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; }
.project-features li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

.project-link {
    margin-top: 0.5rem; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
    text-decoration: underline; text-underline-offset: 4px;
}
.project-link:hover { color: var(--red); }
.project-link .arrow { display: inline-block; transition: transform 280ms var(--ease); }

.coming-soon-badge { align-self: flex-start; display: inline-flex; font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--muted); cursor: default; }

.project-visual { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bg-red { background: var(--red); } .bg-navy { background: var(--navy); } .bg-pink { background: var(--pink); }
.visual-icon {
    position: relative; z-index: 1; width: 140px; height: 140px;
    transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0);
    transition: transform 420ms var(--ease);
}
.spark {
    position: absolute; opacity: 0.5;
    transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -16px), 0);
    transition: transform 600ms var(--ease);
}

@media (hover: hover) and (pointer: fine) {
    .project-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(15,15,27,0.10); border-color: #d6d6dd; }
    .project-card:hover::after { opacity: 1; }
    .project-card:hover .arrow { transform: translateX(5px); }
    .project-card.has-link:hover .project-link { color: var(--red); }
}
.project-card.has-link:active { transform: translateY(-2px) scale(0.995); transition-duration: var(--t-press); }

.about-panel { position: relative; background: var(--navy); border-radius: 32px; padding: 4rem 2rem 3.5rem; overflow: hidden; text-align: center; }

.about-heading h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; color: var(--white); line-height: 1.15; }
.about-heading p { margin-top: 0.9rem; color: rgba(255,255,255,0.6); }
.about-bio { position: relative; max-width: 640px; margin: 2.25rem auto 0; }
.about-bio p { color: rgba(255,255,255,0.82); font-size: 1.02rem; line-height: 1.75; }
.about-bio strong { color: var(--white); }

.about-gallery-row { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 1.75rem; margin-top: 3.5rem; }
.photo-slot {
    --rot: 0deg;
    position: relative; width: 168px; z-index: 1; transform-origin: center;
    transform: rotate(var(--rot));
    transition: transform 650ms cubic-bezier(.34, 1.35, .5, 1), opacity 400ms ease, filter 400ms ease;
}
.photo-slot.tilt-a { --rot: -5deg; } .photo-slot.tilt-b { --rot: 3deg; } .photo-slot.tilt-c { --rot: -2deg; }

.photo-frame {
    position: relative; z-index: 2; aspect-ratio: 4 / 5; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray); border-radius: 16px; box-shadow: 0 14px 26px rgba(0,0,0,0.35);
    transform: perspective(700px) rotateX(0) rotateY(0);
    transition: transform 700ms var(--ease), box-shadow 500ms ease;
    will-change: transform;
}
.photo-frame.tracking { transition: transform 120ms ease-out, box-shadow 500ms ease; }
.photo-frame svg { width: 46%; height: 46%; transition: transform 700ms var(--ease); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }


@media (hover: hover) and (pointer: fine) {
    
    .photo-slot:hover { transform: rotate(0deg) translateY(-14px) scale(1.07); z-index: 5; }
    .photo-slot:hover .photo-frame { box-shadow: 0 34px 56px rgba(0,0,0,0.5); }
    .photo-slot:hover .photo-frame img { transform: scale(1.06); }
    .photo-slot:hover .photo-frame svg { transform: scale(1.1); }
    
    .about-gallery-row:has(.photo-slot:hover) .photo-slot:not(:hover) {
        transform: rotate(var(--rot)) scale(0.95); opacity: 0.5; filter: blur(1.5px) saturate(0.8);
    }
}

.photo-bubble {
    position: absolute; top: 22px; left: 50%; z-index: 1; pointer-events: none; white-space: nowrap;
    background: rgba(242,242,245,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    font-family: var(--font-hand); font-weight: 700; font-size: 1.15rem;
    padding: 0.5rem 1.15rem; border-radius: 999px; box-shadow: 0 10px 18px rgba(0,0,0,0.35);
    opacity: 0; transform: translate(-50%, 0) scale(0.8);
    transition: opacity .35s ease, transform .6s cubic-bezier(.34, 1.5, .64, 1), z-index 0s linear .12s;
}
.photo-slot:hover .photo-bubble { opacity: 1; transform: translate(-50%, -40px) scale(1); z-index: 30; transition-delay: 0s, .05s, 0s; }

#contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.16; }
.contact-bg svg { width: 100%; height: 100%; }
#contact .content-section { position: relative; z-index: 1; }

.coffee-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.4rem; }
.coffee-card {
    position: relative; display: flex; align-items: center; gap: 0.9rem; max-width: 560px; padding: 1.25rem 1.4rem;
    background: var(--white); border: 1px solid var(--gray-line); border-radius: 20px; box-shadow: var(--shadow);
}
.coffee-avatar {
    position: relative; width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: var(--white); border-radius: 50%;
    font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.presence {
    position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
    background: #30b350; border: 2px solid var(--white);
}
.presence::after {
    content: ''; position: absolute; inset: -2px; border-radius: 50%; background: #30b350; opacity: 0;
    animation: presencePulse 2.4s ease-out infinite;
}
@keyframes presencePulse { 0% { opacity: .5; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }

.coffee-bubble {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 1.2rem; background: var(--gray); border-radius: 22px;
    transition: width 560ms cubic-bezier(.34, 1.25, .64, 1), height 560ms cubic-bezier(.34, 1.25, .64, 1);
}
.coffee-typing { display: flex; gap: 5px; align-items: center; transition: opacity 200ms ease, transform 260ms var(--ease); }
.coffee-typing.out { opacity: 0; transform: scale(0.5); }
.coffee-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typingBounce 1.1s infinite ease-in-out; }
.coffee-typing span:nth-child(2) { animation-delay: .15s; } .coffee-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.coffee-message {
    position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-items: center; align-content: center;
    column-gap: 0.28em; padding: 0.6rem 1.2rem; font-size: 0.95rem; line-height: 1.35; color: var(--ink);
}
.coffee-message .w { display: inline-block; opacity: 0; transform: translateY(8px); filter: blur(4px);
    transition: opacity 420ms ease, transform 520ms var(--ease), filter 420ms ease; transition-delay: calc(var(--i) * 45ms); }
.coffee-message.show .w { opacity: 1; transform: none; filter: none; }

.coffee-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.4rem 0 2.75rem; pointer-events: none; }
.coffee-actions .coffee-btn {
    opacity: 0; transform: translateY(10px) scale(0.92);
    transition: opacity 420ms ease, transform 520ms cubic-bezier(.34, 1.4, .64, 1),
                background-color var(--t-hover) ease, color var(--t-hover) ease, border-color var(--t-hover) ease,
                box-shadow var(--t-hover) ease, filter var(--t-hover) ease;
    transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s, 0s, 0s, 0s, 0s;
}
.coffee-actions.show { pointer-events: auto; }
.coffee-actions.show .coffee-btn { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
    .coffee-actions.show .coffee-btn:hover { transform: scale(1.04); transition-delay: 0s; }
}
.coffee-actions.show .coffee-btn:active { transform: scale(0.96); transition-delay: 0s; transition-duration: var(--t-press); }
.coffee-btn {
    font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
    background: var(--white); color: var(--ink); border: 1.5px solid var(--gray-line);
    border-radius: 999px; padding: 0.75rem 1.4rem; cursor: pointer;
}
.coffee-btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

.contact-grid { max-width: 560px; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s ease, transform .5s ease; }
.contact-grid.show { opacity: 1; transform: none; pointer-events: auto; }

.contact-toggle { display: inline-flex; align-items: center; gap: 2rem; margin-bottom: 2.5rem; }
.toggle-option {
    display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.25rem 0;
    background: none; border: none; cursor: pointer;
    font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--muted);
    transition: color 200ms ease, transform var(--t-press) var(--ease);
}
.toggle-option:active { transform: scale(0.96); }
.radio-dot { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--gray-line); transition: border-color .2s ease; }
.radio-dot::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--red); opacity: 0; transition: opacity .2s ease; }
.toggle-option.active { color: var(--ink); }
.toggle-option.active .radio-dot { border-color: var(--red); }
.toggle-option.active .radio-dot::after { opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 1.6rem; }
.form-field label { display: block; margin-bottom: 0.65rem; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.form-field input, .form-field textarea {
    width: 100%; padding: 0.95rem 1.1rem; background: var(--white);
    border: 1px solid var(--gray-line); border-radius: 12px;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #9C9CA6; }
.form-field input:hover, .form-field textarea:hover { border-color: #cfcfd7; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,62,62,0.12); }
.form-field.invalid input, .form-field.invalid textarea { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,62,62,0.12); }
.form-field textarea { min-height: 150px; resize: vertical; }

.btn-send {
    position: relative; width: 190px; height: 56px; border: none; border-radius: 28px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ink); cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 20px rgba(20,20,28,0.28);
    transition: width .55s cubic-bezier(.65,0,.35,1), border-radius .55s cubic-bezier(.65,0,.35,1),
                background-color .4s ease, box-shadow .4s ease, transform .15s ease;
}
.btn-send:hover { background: var(--red); }
.btn-send:active { transform: scale(0.97); }
.btn-send:focus-visible { outline-offset: 4px; }
.btn-send.sending { width: 56px; border-radius: 50%; cursor: default; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 6px 14px rgba(20,20,28,0.22); }
.btn-send.done { background: #30b350; box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 8px 20px rgba(48,179,80,0.3); }

.btn-text { position: absolute; color: #fff; font-family: var(--font-display); font-size: 1rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: opacity .25s ease, transform .25s ease; }
.btn-send.sending .btn-text, .btn-send.done .btn-text { opacity: 0; transform: scale(0.85); pointer-events: none; }

.plane-wrap { position: absolute; width: 22px; height: 22px; opacity: 0; }
.btn-send.sending .plane-wrap { opacity: 1; animation: planeFly .85s cubic-bezier(.5,0,.5,1) forwards; }
.btn-send.done .plane-wrap { opacity: 0; }
@keyframes planeFly {
    0%   { opacity: 0; transform: translate(-6px, 4px) scale(.7) rotate(-8deg); }
    18%  { opacity: 1; transform: translate(0, 0) scale(1) rotate(-8deg); }
    75%  { opacity: 1; transform: translate(46px, -34px) scale(.94) rotate(-8deg); }
    100% { opacity: 0; transform: translate(64px, -48px) scale(.7) rotate(-8deg); }
}

.check-wrap { position: absolute; width: 24px; height: 24px; opacity: 0; transform: scale(.5); transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn-send.done .check-wrap { opacity: 1; transform: scale(1); transition-delay: .08s; }
.check-path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.btn-send.done .check-path { animation: drawCheck .4s ease .18s forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(48,179,80,.5); opacity: 0; pointer-events: none; }
.ring-2 { border-color: rgba(48,179,80,.3); }
.btn-send.done .ring { animation: ringPulse 1s cubic-bezier(.16,1,.3,1) .05s forwards; }
.btn-send.done .ring-2 { animation: ringPulse 1s cubic-bezier(.16,1,.3,1) .22s forwards; }
@keyframes ringPulse { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }

.form-status { min-height: 1.2em; font-size: 0.85rem; color: var(--muted); transition: opacity .3s ease; }
.form-status.shake { animation: shake 420ms var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.footer { text-align: center; padding: 0.6rem 1rem; background: var(--navy); color: rgba(255,255,255,0.65); font-size: 0.75rem; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .brand-full { display: none; }
    .brand-short { display: inline; }
    .nav-pill { padding: 0.65rem 1.35rem; gap: 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
    .project-card, .project-card.reverse { grid-template-columns: 1fr; }
    .project-card.reverse .project-text, .project-card.reverse .project-visual { order: initial; }
    .project-visual { min-height: 220px; padding: 2rem 0; }
    .project-text { padding: 2.25rem 1.75rem; }
    .contact-bg { opacity: 0.1; }
}
@media (max-width: 700px) {
    .about-panel { padding: 3rem 1.25rem; }
    .photo-bubble { display: none; }
}
@media (max-width: 480px) {
    .navbar { padding: 1rem 1.25rem; }
    .content-section { padding: 3.5rem 5vw 4rem; }
}

.view.leaving { animation: viewOut 160ms ease-in forwards; }
@keyframes viewOut { to { opacity: 0; transform: translateY(-8px); } }

.form-field label { transition: color 200ms ease; }
.form-field:focus-within label { color: var(--red); }

.radio-dot::after { transform: scale(0); transition: opacity .2s ease, transform 360ms cubic-bezier(.34, 1.6, .64, 1); }
.toggle-option.active .radio-dot::after { transform: scale(1); }

.contact-grid.show .contact-toggle,
.contact-grid.show .form-field,
.contact-grid.show .btn-send { animation: fieldIn 520ms var(--ease) backwards; animation-delay: calc(var(--k, 0) * 70ms); }
.contact-grid.show .contact-toggle { --k: 0; }
.contact-grid.show .form-field:nth-child(1) { --k: 1; }
.contact-grid.show .form-field:nth-child(2) { --k: 2; }
.contact-grid.show .form-field:nth-child(3) { --k: 3; }
.contact-grid.show .btn-send { --k: 4; }
@keyframes fieldIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (hover: hover) and (pointer: fine) {

    .project-tag { transition: transform 220ms var(--ease); }
    .project-card:hover .project-tag.solid { transform: translateY(-1px); }
}

.confetti { position: fixed; z-index: 2000; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; }

.about-panel { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06), 0 30px 60px rgba(15,15,27,0.18); isolation: isolate; }
.about-panel > * { position: relative; z-index: 1; }

.about-panel::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 500ms ease;
    background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 0%), rgba(239,62,62,0.18), rgba(246,171,160,0.06) 40%, transparent 70%);
}
.about-panel.lit::before { opacity: 1; }

.about-heading .accent {
    background: linear-gradient(90deg, var(--red), var(--pink), var(--red)); background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.about-bio strong {
    padding-bottom: 2px; background: linear-gradient(var(--red), var(--red)) 0 100% / 0% 2px no-repeat;
    transition: background-size 900ms var(--ease);
}
.about-bio.visible strong { background-size: 100% 2px; }
.about-bio.visible strong:nth-of-type(1) { transition-delay: .5s; }
.about-bio.visible strong:nth-of-type(2) { transition-delay: .9s; }
.about-bio.visible strong:nth-of-type(3) { transition-delay: 1.3s; }
.about-bio.visible @keyframes drawLine { to { stroke-dashoffset: 0; } }

.about-gallery-row.visible .photo-slot { animation: photoIn 800ms var(--ease) backwards; }
.about-gallery-row.visible .photo-slot:nth-child(1) { animation-delay: .1s; }
.about-gallery-row.visible .photo-slot:nth-child(2) { animation-delay: .25s; }
.about-gallery-row.visible .photo-slot:nth-child(3) { animation-delay: .4s; }
@keyframes photoIn { from { opacity: 0; transform: translateY(46px) rotate(0deg) scale(0.9); } }

.about-sign { margin: 0 0 2.25rem; display: flex; justify-content: center; }
.about-sign svg { width: min(520px, 94%); height: auto; overflow: visible; }
.sign-text { font-family: var(--font-hand); font-weight: 700; font-size: 78px; }
.glyph {
    fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 700; stroke-dashoffset: 700;
}
.about-sign.visible:not(.reset) .glyph {
    animation: glyphDraw 1s cubic-bezier(.45, .05, .3, 1) calc(var(--i) * 110ms + 200ms) forwards,
               glyphFill 600ms ease calc(var(--i) * 110ms + 950ms) forwards;
}
@keyframes glyphDraw { to { stroke-dashoffset: 0; } }
@keyframes glyphFill { to { fill-opacity: 1; stroke-opacity: 0; } }

.sign-ribbon { fill: none; stroke: var(--red); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1 1.1; stroke-dashoffset: 1.02; opacity: 0; }
.about-sign.visible:not(.reset) .sign-ribbon { animation: ribbonDraw 1.3s var(--ease) 2.05s both; }
@keyframes ribbonDraw { 0% { opacity: 0; stroke-dashoffset: 1.02; } 2% { opacity: 1; stroke-dashoffset: 1.02; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.about-sign { cursor: default; }
/* once the signature has played, keep it in its final state (no replay when revisiting the tab) */
.about-sign.played .glyph { animation: none !important; stroke-dashoffset: 0; fill-opacity: 1; stroke-opacity: 0; }
.about-sign.played .sign-ribbon { animation: none !important; opacity: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
        scroll-behavior: auto !important; transition-duration: 0.01ms !important;
    }
    .visual-icon, .spark { transform: none !important; }
}
