/* ============================================
   NEEHARIKA PATNAM — Portfolio
   Dark + Quirky + Artsy + Premium
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0b;
    --bg-elevated: #101012;
    --bg-card: #141416;
    --surface: #1a1a1e;

    --text-primary: #f0ece6;
    --text-secondary: #9e978d;
    --text-tertiary: #5e5850;
    --text-muted: #3a3632;

    /* Discipline Colors */
    --cyan: #98C62E;
    --cyan-dim: rgba(152, 198, 46, 0.08);
    --cyan-glow: rgba(152, 198, 46, 0.15);

    --rose: #f472b6;
    --rose-dim: rgba(244, 114, 182, 0.08);
    --rose-glow: rgba(244, 114, 182, 0.15);

    --amber: #fbbf24;
    --amber-dim: rgba(251, 191, 36, 0.08);
    --amber-glow: rgba(251, 191, 36, 0.15);

    --violet: #a78bfa;
    --violet-dim: rgba(167, 139, 250, 0.08);
    --violet-glow: rgba(167, 139, 250, 0.15);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    --font-display: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-hand: 'Caveat', cursive;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --container: 1280px;
    --gutter: clamp(20px, 4vw, 80px);
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
    --bg: #f7f3ec;
    --bg-elevated: #efe9df;
    --bg-card: #e8e0d3;
    --surface: #dfd6c8;

    --text-primary: #1e1912;
    --text-secondary: #5c5044;
    --text-tertiary: #7a6e62;
    --text-muted: #a89d92;

    /* Sage green — matcha */
    --cyan: #5c8a5c;
    --cyan-dim: rgba(92, 138, 92, 0.1);
    --cyan-glow: rgba(92, 138, 92, 0.18);

    /* Dusty rose — cherry blossom */
    --rose: #b5667e;
    --rose-dim: rgba(181, 102, 126, 0.08);
    --rose-glow: rgba(181, 102, 126, 0.15);

    /* Warm ochre — honey/bamboo */
    --amber: #a8793a;
    --amber-dim: rgba(168, 121, 58, 0.08);
    --amber-glow: rgba(168, 121, 58, 0.15);

    /* Wisteria — soft lavender */
    --violet: #7e6db8;
    --violet-dim: rgba(126, 109, 184, 0.09);
    --violet-glow: rgba(126, 109, 184, 0.16);

    --border: rgba(0, 0, 0, 0.07);
    --border-hover: rgba(0, 0, 0, 0.14);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

::selection {
    background: var(--violet);
    color: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.handwritten {
    font-family: var(--font-hand);
    font-weight: 500;
}

/* ---------- Custom Cursor ---------- */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--text-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cursor.hovering {
    width: 48px;
    height: 48px;
    border-color: var(--violet);
    background: rgba(167, 139, 250, 0.1);
}

.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .cursor, .cursor-trail { display: none; }
}

.cursor-label {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--cyan-glow);
    white-space: nowrap;
    opacity: 0;
    transform: translate(16px, -50%) scale(0.9);
    transition: opacity 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(6px);
}

.cursor-label.visible {
    opacity: 1;
    transform: translate(16px, -50%) scale(1);
}

.cursor-label.tip-grevoro {
    color: #00ccff;
    border-color: rgba(0,200,255,0.45);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
}
.cursor-label.tip-illustrations {
    color: #f59e0b;
    border-color: rgba(245,158,11,0.45);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
}
.cursor-label.tip-prototype {
    color: var(--rose);
    border-color: var(--rose-glow);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    transform: translate(16px, -50%) scale(1.05);
}

@media (max-width: 768px) {
    .cursor-label { display: none; }
}

/* ---------- Background Doodles ---------- */
.doodles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.doodle {
    position: absolute;
    animation: doodleFloat 20s ease-in-out infinite;
}

.doodle-1 { top: 10%; left: 5%; animation-delay: 0s; }
.doodle-2 { top: 60%; right: 8%; animation-delay: -5s; }
.doodle-3 { bottom: 20%; left: 15%; animation-delay: -10s; }
.doodle-4 { top: 30%; right: 20%; animation-delay: -15s; }

@keyframes doodleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(4deg); }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 16px var(--gutter);
    border-bottom: 1px solid var(--border);
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    position: relative;
    width: 46px;
    height: 25px;
    border-radius: 13px;
    border: 1px solid var(--border-hover);
    background: var(--surface);
    transition: background 0.35s var(--ease-out), border-color 0.35s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--violet);
    background: var(--violet-dim);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.35s var(--ease-spring), background 0.35s ease;
}

.toggle-knob svg { display: block; flex-shrink: 0; color: var(--bg); }
.toggle-knob .icon-sun { display: none; }
.toggle-knob .icon-moon { display: block; }
[data-theme="light"] .toggle-knob .icon-sun { display: block; }
[data-theme="light"] .toggle-knob .icon-moon { display: none; }

[data-theme="light"] .toggle-knob {
    transform: translateX(21px);
    background: var(--amber);
}

/* Toggle tip bubble */
.toggle-tip {
    position: absolute;
    top: calc(100% + 11px);
    right: -4px;
    white-space: nowrap;
    font-family: var(--font-hand);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--bg-card) 94%, transparent);
    border: 1px solid var(--border-hover);
    padding: 5px 12px;
    border-radius: var(--radius-xl);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-5px) scale(0.93);
    transition: opacity 0.2s ease, transform 0.25s var(--ease-spring);
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.toggle-tip::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 14px;
    width: 8px;
    height: 8px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
    transform: rotate(45deg);
}

.theme-toggle:hover .toggle-tip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---------- Nav Dropdown ---------- */
.nav-dropdown-wrap {
    position: relative;
    padding-bottom: 2px;
}

/* invisible bridge fills the gap so hover doesn't drop */
.nav-dropdown-wrap::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    height: 22px;
}

.nav-dropdown-wrap > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-wrap > a .chevron {
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


.nav-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: color-mix(in srgb, var(--bg-elevated) 95%, transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px 0;
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s var(--ease-out);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 999;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.nav-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 0.8rem;
    color: var(--text-secondary) !important;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown a::after { display: none !important; }

.nav-dropdown a:hover {
    color: var(--text-primary) !important;
    background: var(--surface);
}

.nav-dropdown .dd-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    height: 52px;
    transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover { transform: scale(1.05) rotate(-2deg); }

.nav-logo-img {
    height: 100%;
    width: auto;
    display: block;
    filter: invert(1) brightness(1.05);
}

[data-theme="light"] .nav-logo-img {
    filter: none;
}

@media (max-width: 768px) {
    .nav-logo { height: 44px; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width 0.3s var(--ease-out);
}

.nav-links a:not(.nav-cta):hover { color: var(--text-primary); }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    padding: 10px 24px;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--violet);
    color: var(--bg) !important;
    border-color: var(--violet) !important;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: baseline;
    gap: 16px;
    transition: all 0.3s ease;
}

.mobile-menu a:hover { color: var(--text-primary); transform: translateX(8px); }

.mm-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding: 120px var(--gutter) 80px;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 660px; }

.hero-tag {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    border: 1px solid;
    transition: all 0.3s var(--ease-spring);
}

.tag:hover { transform: translateY(-2px) rotate(-1deg); }

.tag-cyan  { color: var(--cyan);   border-color: rgba(152, 198, 46, 0.25);  background: var(--cyan-dim); }
.tag-rose  { color: var(--rose);   border-color: rgba(244, 114, 182, 0.25); background: var(--rose-dim); }
.tag-amber { color: var(--amber);  border-color: rgba(251, 191, 36, 0.25);  background: var(--amber-dim); }
.tag-violet{ color: var(--violet); border-color: rgba(167, 139, 250, 0.25); background: var(--violet-dim); }
.tag-green { color: #4db89e;       border-color: rgba(77, 184, 158, 0.25);  background: rgba(77, 184, 158, 0.08); }

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .line {
    display: block;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    opacity: 0;
    transform: translateY(40px);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--cyan), var(--violet), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hand-drawn {
    font-family: var(--font-hand);
    color: var(--amber);
    -webkit-text-fill-color: var(--amber);
    font-size: 1.2em;
}

/* Rotating Words */
.rotate-words {
    display: inline-block;
    position: relative;
    min-width: 200px;
}

.rw {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-40deg);
    transition: all 0.5s var(--ease-out);
    position: absolute;
    left: 0;
    font-style: italic;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rw:first-child { position: relative; }
.rw.active {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-subtitle .handwritten {
    font-size: 1.4em;
    color: var(--amber);
    display: block;
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.9);
}

.venn {
    position: relative;
    width: 380px;
    height: 380px;
}

.venn-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    animation: vennPulse 6s ease-in-out infinite;
}

/*
  Pentagon layout — container 380×380, circles 200×200, radius 85px
  centre = (190,190); top/left = (190 + R·cos θ − 100, 190 + R·sin θ − 100)
  θ: code=−90°, edu=−18°, design=54°, dance=126°, art=198°
*/
.venn-code   { top:   5px; left:  90px; border:1.5px solid rgba(152,198,46,0.3);  background:rgba(152,198,46,0.04);  color:var(--cyan);    font-size:1.1rem; animation-delay:0s; }
.venn-edu    { top:  64px; left: 171px; border:1.5px solid rgba(77,184,158,0.3);  background:rgba(77,184,158,0.04);  color:#4db89e;        font-size:1.1rem; animation-delay:-1s; }
.venn-design { top: 159px; left: 140px; border:1.5px solid rgba(167,139,250,0.3); background:rgba(167,139,250,0.04); color:var(--violet);  font-size:1.1rem; animation-delay:-3s; }
.venn-dance  { top: 159px; left:  40px; border:1.5px solid rgba(244,114,182,0.3); background:rgba(244,114,182,0.04); color:var(--rose);    font-size:1.1rem; animation-delay:-2s; }
.venn-art    { top:  64px; left:   9px; border:1.5px solid rgba(251,191,36,0.3);  background:rgba(251,191,36,0.04);  color:var(--amber);   font-size:1.1rem; animation-delay:-4s; }

.venn-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--violet), var(--rose));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--bg);
    box-shadow: 0 0 40px rgba(167, 139, 250, 0.3);
    z-index: 2;
}

@keyframes vennPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}
@keyframes vennPulse2 {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}
.venn-circle { animation-name: vennPulse; }

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 1rem;
}

.scroll-arrow {
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-xl);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet), var(--rose));
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(167, 139, 250, 0.3);
}

.btn-ghost {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
}

.btn-ghost:hover {
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-3px);
}

.btn-full { width: 100%; justify-content: center; }

/* ---------- Marquee ---------- */
.marquee-section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.6rem);
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.mc-code   { color: var(--cyan); }
.mc-dance  { color: var(--rose); font-family: var(--font-hand); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 500; }
.mc-art    { color: var(--amber); font-family: var(--font-hand); font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 500; }
.mc-design { color: var(--violet); }

.marquee-content .sep {
    margin: 0 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Section Common ---------- */
.section-header { margin-bottom: 56px; }

.section-label {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.section-title .muted { color: var(--text-tertiary); }

.accent-dot { color: var(--violet); }

/* ---------- Worlds ---------- */
.worlds {
    padding: 100px 0 0;
    position: relative;
    z-index: 1;
}

/* Accordion container — full bleed, one viewport height */
.worlds-accordion {
    display: flex;
    height: 68vh;
    min-height: 460px;
    max-height: 660px;
    gap: 3px;
    margin-top: 52px;
    overflow: hidden;
}

/* Individual panel */
.world-panel {
    flex: 1;
    position: relative;
    overflow: clip;
    cursor: pointer;
    transition: flex 0.75s cubic-bezier(0.77, 0, 0.18, 1);
    outline: none;
}

.world-panel:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.world-panel:last-child  { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }

/* Per-world color tokens */
.world-code   { --panel-color: var(--cyan);   --panel-rgb: 152, 198, 46; }
.world-dance  { --panel-color: var(--rose);   --panel-rgb: 244, 114, 182; }
.world-art    { --panel-color: var(--amber);  --panel-rgb: 251, 191, 36; }
.world-edu    { --panel-color: #4db89e;       --panel-rgb: 77, 184, 158; }
.world-design { --panel-color: var(--violet); --panel-rgb: 167, 139, 250; }

/* Light-mode: deeper hues so rgba() text remains legible on cream bg-card */
[data-theme="light"] .world-code   { --panel-color: #4a6e4a; --panel-rgb: 74, 110, 74; }
[data-theme="light"] .world-dance  { --panel-color: #9a4f64; --panel-rgb: 154, 79, 100; }
[data-theme="light"] .world-art    { --panel-color: #8a5e2a; --panel-rgb: 138, 94, 42; }
[data-theme="light"] .world-edu    { --panel-color: #2f6650; --panel-rgb: 47, 102, 80; }
[data-theme="light"] .world-design { --panel-color: #5e4d96; --panel-rgb: 94, 77, 150; }

/* Light-mode: bump the lowest alphas so faint labels still clear ~3.5:1 */
[data-theme="light"] .panel-num               { color: rgba(var(--panel-rgb), 0.85); }
[data-theme="light"] .panel-world-num         { color: rgba(var(--panel-rgb), 0.85); }
[data-theme="light"] .panel-cred-footnote     { color: rgba(var(--panel-rgb), 0.8);  }
[data-theme="light"] .panel-cred-year         { color: rgba(var(--panel-rgb), 0.9);  border-color: rgba(var(--panel-rgb), 0.4); }
[data-theme="light"] .panel-tags span         { border-color: rgba(var(--panel-rgb), 0.4); background: rgba(var(--panel-rgb), 0.1); }
[data-theme="light"] .panel-credentials       { border-top-color: rgba(var(--panel-rgb), 0.35); }

/* Panel background — subtle glow at bottom, intensifies on hover */
.panel-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(var(--panel-rgb), 0.14) 0%, transparent 55%),
        var(--bg-card);
    transition: background 0.65s ease;
    z-index: 0;
}

.world-panel:hover .panel-bg,
.world-panel.is-active .panel-bg {
    background:
        radial-gradient(ellipse at 30% 88%, rgba(var(--panel-rgb), 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 78% 12%, rgba(var(--panel-rgb), 0.10) 0%, transparent 40%),
        var(--bg-card);
}

/* Top accent stripe that draws in on hover */
.panel-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--panel-color), rgba(var(--panel-rgb), 0.3));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.65s var(--ease-out);
    z-index: 3;
}

.world-panel:hover .panel-stripe,
.world-panel.is-active .panel-stripe {
    transform: scaleX(1);
}

/* Large decorative watermark number */
.world-panel::after {
    content: attr(data-num);
    position: absolute;
    bottom: -14px;
    right: -6px;
    font-family: var(--font-display);
    font-size: 8.5rem;
    font-weight: 800;
    color: rgba(var(--panel-rgb), 0.04);
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: color 0.6s ease, transform 0.65s ease;
    user-select: none;
}

.world-panel:hover::after,
.world-panel.is-active::after {
    color: rgba(var(--panel-rgb), 0.09);
    transform: scale(1.06);
}

/* ---- Collapsed state: vertical label ---- */
.panel-collapsed-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.panel-num {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(var(--panel-rgb), 0.5);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-vert-label {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.4s ease;
}

.panel-vert-label.handwritten {
    font-family: var(--font-hand);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: none;
}

.world-panel:hover .panel-vert-label {
    color: rgba(var(--panel-rgb), 0.85);
}

/* Fade out collapsed label when this panel is open */
.world-panel:hover .panel-collapsed-content,
.world-panel.is-active .panel-collapsed-content {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

/* Dim other panels' labels when one is hovered */
.worlds-accordion:has(.world-panel:hover) .world-panel:not(:hover) .panel-collapsed-content,
.worlds-accordion.has-active .world-panel:not(.is-active) .panel-collapsed-content {
    opacity: 0.45;
}

/* ---- Open content: fades in from below ---- */
.panel-open-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: min(560px, 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 44px 28px 32px;
    z-index: 2;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease 0.22s, transform 0.42s ease 0.18s;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--panel-rgb), 0.6) rgba(var(--panel-rgb), 0.08);
}

/* WebKit / Chromium / Safari */
.panel-open-content::-webkit-scrollbar {
    width: 6px;
}
.panel-open-content::-webkit-scrollbar-track {
    background: rgba(var(--panel-rgb), 0.05);
    border-radius: 100px;
    margin: 8px 0;
}
.panel-open-content::-webkit-scrollbar-thumb {
    background: rgba(var(--panel-rgb), 0.65);
    border-radius: 100px;
    transition: background 0.25s ease;
}
.panel-open-content::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--panel-rgb), 0.7);
}
.panel-open-content::-webkit-scrollbar-thumb:active {
    background: var(--panel-color);
}

.world-panel:hover .panel-open-content,
.world-panel.is-active .panel-open-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Hide open content on compressed panels */
.worlds-accordion:has(.world-panel:hover) .world-panel:not(:hover) .panel-open-content,
.worlds-accordion.has-active .world-panel:not(.is-active) .panel-open-content {
    opacity: 0;
    transition-delay: 0s;
}

.panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.panel-world-num {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(var(--panel-rgb), 0.55);
    letter-spacing: 0.1em;
}

.panel-world-tag {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--panel-color);
}

.panel-open-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.7rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.panel-open-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 300px;
}

.panel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.panel-tags span {
    font-size: 0.67rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(var(--panel-rgb), 0.22);
    color: rgba(var(--panel-rgb), 0.85);
    background: rgba(var(--panel-rgb), 0.07);
    white-space: nowrap;
}

/* ---- Credentials block (institution + program + year) ---- */
.panel-credentials {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(var(--panel-rgb), 0.2);
    max-width: 460px;
}

.panel-cred-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(var(--panel-rgb), 0.75);
    margin-bottom: 4px;
}

.panel-cred-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-cred-list li {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.7rem;
    line-height: 1.3;
}

.panel-cred-inst {
    font-weight: 700;
    color: var(--panel-color);
    letter-spacing: 0.01em;
}

.panel-cred-prog {
    color: var(--text-secondary);
}

.panel-cred-year {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: rgba(var(--panel-rgb), 0.65);
    text-transform: uppercase;
    padding: 1px 6px;
    border: 1px solid rgba(var(--panel-rgb), 0.25);
    border-radius: 100px;
    margin-left: auto;
    white-space: nowrap;
}

.panel-cred-footnote {
    margin: 5px 0 0;
    font-size: 0.6rem;
    font-style: italic;
    color: rgba(var(--panel-rgb), 0.55);
    letter-spacing: 0.02em;
}

.panel-credentials .panel-cred-desc {
    flex: 1 1 100%;
    margin: 3px 0 6px;
    font-size: 0.6rem;
    line-height: 1.5;
    color: var(--text-tertiary);
    max-width: 460px;
}

.panel-credentials .panel-cred-desc strong {
    font-weight: 600;
    color: rgba(var(--panel-rgb), 0.85);
}

/* ---- Accordion expansion logic ---- */
/* CSS :has() — hover driven */
.worlds-accordion:has(.world-panel:hover) .world-panel { flex: 0.28; }
.worlds-accordion .world-panel:hover { flex: 4.5; }

/* JS-driven click-lock */
.worlds-accordion.has-active .world-panel { flex: 0.28; }
.worlds-accordion.has-active .world-panel.is-active { flex: 4.5; }

/* ---- Mobile: vertical accordion ---- */
@media (max-width: 860px) {
    .worlds { padding: 80px 0 0; }

    .worlds-accordion {
        flex-direction: column;
        height: auto;
        max-height: none;
        gap: 2px;
        margin-top: 40px;
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .world-panel {
        flex: none !important;
        height: 66px;
        border-radius: 0 !important;
        transition: height 0.6s cubic-bezier(0.77, 0, 0.18, 1);
    }

    .world-panel:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }
    .world-panel:last-child  { border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important; }
    .world-panel.is-active   { height: 290px; }

    .panel-collapsed-content {
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 24px;
        gap: 14px;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    /* Reset :has() dimming on mobile */
    .worlds-accordion:has(.world-panel:hover) .world-panel:not(:hover) .panel-collapsed-content {
        opacity: 1 !important;
    }

    .panel-vert-label,
    .panel-vert-label.handwritten {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 0.85rem;
        letter-spacing: 0.08em;
    }

    .world-panel.is-active .panel-collapsed-content { opacity: 0 !important; }

    .panel-open-content {
        padding: 22px 24px;
        min-width: unset;
        justify-content: center;
    }

    .panel-open-content h3 { font-size: 1.3rem; margin-bottom: 8px; }
    .panel-open-content p  { font-size: 0.8rem; margin-bottom: 12px; }

    .world-panel::after { display: none; }
    .panel-stripe { height: 3px; }
}

/* ---------- Work Section ---------- */
.work {
    padding: 140px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.work-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(15px);
}

.filter-btn {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.filter-btn:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-btn.active { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }

.filter-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-cyan   { background: var(--cyan); }
.dot-rose   { background: var(--rose); }
.dot-amber  { background: var(--amber); }
.dot-violet { background: var(--violet); }

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.work-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.5s var(--ease-out);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.work-card.hidden {
    display: none;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.work-card-wide {
    grid-column: span 2;
}

.work-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.work-card-wide .work-card-image {
    aspect-ratio: 2/1;
}

/* Placeholder styles */
.work-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-code {
    background: linear-gradient(135deg, var(--cyan-dim), var(--bg-elevated));
    padding: 24px;
}

.terminal-mock {
    width: 100%;
    max-width: 360px;
    background: var(--bg);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.terminal-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-body {
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.8;
    color: var(--text-tertiary);
}

.t-prompt { color: var(--cyan); }
.t-cmd { color: var(--text-secondary); }
.t-out { color: var(--text-muted); }
.t-success { color: #28c840; }

.placeholder-design {
    background: var(--bg-card);
}

.placeholder-design svg { width: 100%; height: 100%; }

.placeholder-art {
    background: var(--bg-card);
}

.art-canvas {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.watercolor-wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.15;
}

.wash-1 { width: 150px; height: 150px; background: var(--amber); top: 20%; left: 20%; }
.wash-2 { width: 120px; height: 120px; background: var(--rose); top: 40%; right: 25%; }
.wash-3 { width: 100px; height: 100px; background: var(--cyan); bottom: 20%; left: 40%; }
.wash-4 { width: 180px; height: 140px; background: var(--violet); top: 20%; left: 30%; }
.wash-5 { width: 130px; height: 130px; background: var(--amber); bottom: 25%; right: 30%; }

.canvas-label {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.placeholder-dance {
    background: var(--bg-card);
}

.dance-visual {
    width: 100%;
    height: 100%;
}

.dance-visual svg { width: 100%; height: 100%; }

.work-card-info {
    padding: 24px 28px 28px;
}

.work-card-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.work-card-tags span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.wt-cyan   { color: var(--cyan);   background: var(--cyan-dim); }
.wt-rose   { color: var(--rose);   background: var(--rose-dim); }
.wt-amber  { color: var(--amber);  background: var(--amber-dim); }
.wt-violet { color: var(--violet); background: var(--violet-dim); }

.work-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.work-card-info p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- About ---------- */
.about {
    padding: 140px 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-photo {
    opacity: 0;
    transform: translateX(-30px);
}

.about-photo-frame {
    position: relative;
}

.about-photo-placeholder {
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.08), rgba(244, 114, 182, 0.05), rgba(152, 198, 46, 0.05));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.3rem;
}

.about-photo-img {
    display: block;
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center 25%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.photo-doodle {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed;
    pointer-events: none;
}

.photo-doodle-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(251, 191, 36, 0.2);
    top: -20px;
    right: -20px;
    animation: doodleSpin 20s linear infinite;
}

.photo-doodle-2 {
    width: 50px;
    height: 50px;
    border-color: rgba(152, 198, 46, 0.2);
    bottom: -10px;
    left: -15px;
    animation: doodleSpin 15s linear infinite reverse;
}

@keyframes doodleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
}

.about-text { margin-bottom: 36px; }

.about-lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
}

.text-cyan   { color: var(--cyan); }
.text-rose   { color: var(--rose); }
.text-amber  { color: var(--amber); }
.text-violet { color: var(--violet); }

.about-text p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
}

.about-currently {
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.about-currently h4 {
    font-size: 1.3rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.currently-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.currently-items span {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    min-height: 1.3em;
}

.currently-items span::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--violet);
    font-family: var(--font-hand);
    font-size: 1.1rem;
}

/* ---------- Contact ---------- */
.contact {
    padding: 140px 0;
    position: relative;
    z-index: 1;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px);
    justify-content: center;
    gap: 80px;
    align-items: start;
}

.contact-left {
    opacity: 0;
    transform: translateX(-30px);
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--violet), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
}

.contact-desc {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    width: fit-content;
}

.contact-pill:hover {
    border-color: var(--violet);
    color: var(--text-primary);
    transform: translateX(4px);
}

.contact-pill svg { flex-shrink: 0; opacity: 0.5; }
.contact-pill:hover svg { opacity: 1; }

.contact-pill-primary {
    border-color: var(--violet);
    color: var(--text-primary);
}
.contact-pill-primary svg { opacity: 1; }

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateX(30px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-tertiary); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px var(--violet-glow);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* Chips */
.form-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    font-family: var(--font-body);
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.chip:hover { border-color: var(--border-hover); color: var(--text-primary); }

.chip.selected {
    background: var(--violet);
    color: var(--bg);
    border-color: var(--violet);
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-left { text-align: center; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-left p {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-nav a:hover { color: var(--violet); }

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Animations ---------- */
.animate-in {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-content { max-width: 100%; }
    .hero-tag { justify-content: center; }
    .hero-actions { justify-content: center; }

    .hero-visual { margin-top: -20px; }
    .venn { width: 300px; height: 300px; }
    .venn-circle { width: 160px; height: 160px; }

    .work-card-wide { grid-column: span 2; }


    .about-layout { gap: 48px; }
    .contact-layout { gap: 48px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu { display: flex; }

    .hero {
        padding: 100px var(--gutter) 80px;
        min-height: auto;
    }

    .hero-title .line { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-visual { display: none; }

    .work-grid { grid-template-columns: 1fr; }
    .work-card-wide { grid-column: span 1; }


    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-photo { max-width: 320px; }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row { grid-template-columns: 1fr; }
    .footer-nav { flex-wrap: wrap; gap: 16px; justify-content: center; }
}

@media (max-width: 480px) {
    :root { --gutter: 20px; }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn { width: 100%; justify-content: center; }

    .form-chips { gap: 6px; }
    .chip { font-size: 0.72rem; padding: 6px 12px; }
}

/* ============================================================
   COMING SOON CARDS — Signage & Performance
   ============================================================ */

/* Shared badge */
.cs-coming-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
    width: fit-content;
}

.cs-coming-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: csBadgePulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes csBadgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.3; transform: scale(0.7); }
}

/* ---- NEON SCENE (Signage) ---- */
.cs-neon-scene {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    background: #07070f;
    border-left-color: rgba(255, 60, 120, 0.12) !important;
}

.neon-bg {
    width: 100%;
    height: 100%;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Ambient glow behind the sign */
.neon-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,60,120,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 25% at 50% 80%, rgba(60,180,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.neon-board-frame {
    position: relative;
    padding: 28px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Outer glowing rectangle — the neon tube */
.neon-board-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    border: 2px solid rgba(255,60,120,0.55);
    box-shadow:
        0 0 8px  rgba(255,60,120,0.5),
        0 0 24px rgba(255,60,120,0.25),
        inset 0 0 18px rgba(255,60,120,0.06);
    animation: neonBorder 5s ease-in-out infinite;
}

/* Four corner bolts */
.neon-board-frame::after {
    content: '';
    position: absolute;
    inset: -7px;
    background:
        radial-gradient(circle 3px at  7px  7px,  #888 50%, transparent 51%),
        radial-gradient(circle 3px at calc(100% - 7px) 7px, #888 50%, transparent 51%),
        radial-gradient(circle 3px at  7px calc(100% - 7px), #888 50%, transparent 51%),
        radial-gradient(circle 3px at calc(100% - 7px) calc(100% - 7px), #888 50%, transparent 51%);
    opacity: 0.35;
    pointer-events: none;
}

.neon-line {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    line-height: 1.15;
    text-align: center;
}

.neon-line.n1 {
    color: #ff3c78;
    text-shadow:
        0 0 4px #fff,
        0 0 12px #ff3c78,
        0 0 28px #ff3c78,
        0 0 60px rgba(255,60,120,0.55);
    animation: neonFlickerA 6.5s infinite;
}

.neon-line.n2 {
    color: #fff;
    text-shadow:
        0 0 4px #fff,
        0 0 12px rgba(255,255,255,0.9),
        0 0 28px rgba(255,255,255,0.5);
    animation: neonFlickerB 9s infinite;
    animation-delay: 0.8s;
}

.neon-line.n3 {
    color: #3cdcff;
    text-shadow:
        0 0 4px #fff,
        0 0 12px #3cdcff,
        0 0 28px #3cdcff,
        0 0 60px rgba(60,220,255,0.5);
    animation: neonFlickerA 7.5s infinite;
    animation-delay: 0.4s;
}

/* Floor blush glow */
.neon-floor-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 35%;
    background:
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255,60,120,0.1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(60,220,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

@keyframes neonFlickerA {
    0%, 17%, 22%, 24%, 52%, 56%, 100% { opacity: 1; }
    19%, 23%                           { opacity: 0.12; }
    54%                                { opacity: 0.25; }
}

@keyframes neonFlickerB {
    0%, 44%, 48%, 100% { opacity: 1; }
    46%                { opacity: 0.2; }
}

@keyframes neonBorder {
    0%, 17%, 22%, 24%, 52%, 56%, 100% {
        opacity: 1;
        box-shadow:
            0 0 8px  rgba(255,60,120,0.5),
            0 0 24px rgba(255,60,120,0.25),
            inset 0 0 18px rgba(255,60,120,0.06);
    }
    19%, 23%, 54% {
        opacity: 0.3;
        box-shadow: none;
    }
}

/* ---- AMPHITHEATRE SCENE (Performance) ---- */
.cs-amphi-scene {
    padding: 0 !important;
    overflow: hidden;
    position: relative;
    background: #14080d;
    border-left-color: rgba(212,165,116,0.28) !important;
}

.amphi-bg {
    width: 100%;
    min-height: 460px;
    height: 100%;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 65% 45% at 50% 88%, rgba(255,180,100,0.18) 0%, transparent 70%),
        linear-gradient(to bottom,
            #0c0814 0%,
            #1a0f1a 35%,
            #2c1819 60%,
            #3a221c 100%);
}

/* Three concentric stone semi-arcs — the amphitheatre seating, viewed slightly from above */
.amphi-arc {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 1px;
    box-shadow:
        inset 0 30px 60px -30px rgba(255,200,140,0.06),
        inset 0 -8px 20px rgba(0,0,0,0.45);
    pointer-events: none;
}

.amphi-arc-1 {
    width: 80%;
    aspect-ratio: 1;
    bottom: -38%;
    border-color: rgba(212,165,116,0.30);
}

.amphi-arc-2 {
    width: 115%;
    aspect-ratio: 1;
    bottom: -55%;
    border-color: rgba(212,165,116,0.20);
}

.amphi-arc-3 {
    width: 150%;
    aspect-ratio: 1;
    bottom: -75%;
    border-color: rgba(212,165,116,0.12);
}

/* Diya — brass bowl + warm flame */
.amphi-diya {
    position: absolute;
    left: 50%;
    bottom: 36%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    z-index: 4;
}

.amphi-bowl {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 22px;
    background: linear-gradient(to bottom, #c8884a 0%, #7a4c22 70%, #4a2c14 100%);
    border-radius: 0 0 28px 28px / 0 0 22px 22px;
    box-shadow:
        0 6px 16px rgba(0,0,0,0.55),
        inset 0 2px 4px rgba(255,210,140,0.28),
        inset 0 -3px 6px rgba(0,0,0,0.4);
}

.amphi-bowl::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%;
    transform: translateX(-50%);
    width: 56px; height: 3px;
    background: linear-gradient(to bottom, #e6b075 0%, #8a5a2a 100%);
    border-radius: 50%;
}

.amphi-flame {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translateX(-50%);
    width: 14px;
    height: 26px;
    background: radial-gradient(ellipse at 50% 90%,
        #fff5d4 0%,
        #ffd685 28%,
        #ff9a3c 65%,
        #ff5b1f 92%,
        transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    filter: blur(0.4px);
    animation: amphiFlameFlicker 2.6s ease-in-out infinite;
}

.amphi-flame::before {
    content: '';
    position: absolute;
    inset: -34px -28px;
    background: radial-gradient(ellipse at center,
        rgba(255,180,90,0.42) 0%,
        rgba(255,150,60,0.14) 38%,
        transparent 72%);
    border-radius: 50%;
    z-index: -1;
    animation: amphiHaloPulse 4.5s ease-in-out infinite;
}

@keyframes amphiFlameFlicker {
    0%, 100% { transform: translateX(-50%) scale(1, 1); }
    25%      { transform: translateX(-50%) scale(0.95, 1.08); }
    50%      { transform: translateX(-50%) scale(1.04, 0.96); }
    75%      { transform: translateX(-50%) scale(0.98, 1.04); }
}

@keyframes amphiHaloPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}

/* Caption */
.amphi-label {
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    white-space: nowrap;
}

.amphi-label span {
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,210,150,0.45);
    animation: amphiLabelPulse 5s ease-in-out infinite;
}

@keyframes amphiLabelPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* Responsive — stack on narrow viewports */
@media (max-width: 700px) {
    .cs-neon-scene,
    .cs-amphi-scene { min-height: 220px; }
    .neon-bg        { min-height: 220px; }
    .amphi-bg       { min-height: 220px; }
    .neon-line      { font-size: 1.3rem; }
}
