@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400..700&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #eef1ea;        /* light value: text/edges on dark fills, admin keeps its own copy of this */
  --ink: #0c0f0c;           /* dark value: page background, panel fills, dark text on accent */
  --surface: #161a14;       /* one step up from --ink: raised rack-panel surfaces */
  --surface-2: #1f241c;     /* hover/active surface */
  --red: #ff5a1f;           /* heat accent - amber/orange LED */
  --red-deep: #c23c10;      /* darker accent: hover/pressed, small text on light */
  --accent-2: #35e892;      /* secondary neon: VU-meter green, Fill 75 channel */
  --accent-3: #ff2f66;      /* tertiary neon: hot red, Roller 75 channel */
  --muted: #838d80;
  --line: #262b22;
  --line-strong: #3b4136;
  --font-display: 'Space Grotesk', ui-sans-serif, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 35px; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font-body); font-size: 16px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.5px; line-height: .98; }
em { font-family: var(--font-display); font-style: normal; font-weight: 700; color: var(--red); letter-spacing: -.5px; text-shadow: 0 0 22px rgba(255, 90, 31, .35); }

/* Header */
header { height: 106px; display: flex; align-items: center; justify-content: space-between; max-width: 1440px; margin: auto; padding: 0 6%; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: 160px; height: auto; display: block; }
nav { display: flex; align-items: center; gap: 36px; font-size: 14px; font-weight: 600; }
.nav-cta { border: 1px solid var(--line-strong); padding: 13px 18px; }
.nav-cta:hover { border-color: var(--red); color: var(--red); }
nav a:hover { color: var(--red); }

/* Hero */
.hero { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 635px; padding: 66px 6% 70px; gap: 60px; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2.2px; line-height: 1.6; color: var(--muted); text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 8px; box-shadow: 0 0 8px 1px rgba(255, 90, 31, .7); }
h1 { font-size: clamp(60px, 6.6vw, 92px); margin: 22px 0; }
.intro { font-size: 18px; max-width: 420px; line-height: 1.65; color: var(--muted); margin: 26px 0 30px; }
.button { background: var(--red); border: 1px solid var(--red); color: var(--ink); display: inline-block; padding: 17px 27px; font-size: 14px; font-weight: 700; transition: background .2s, border-color .2s, box-shadow .2s; }
.button:hover { background: var(--red-deep); border-color: var(--red-deep); box-shadow: 0 0 0 1px var(--red-deep), 0 0 26px -6px var(--red); }
.micro { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.6px; color: var(--muted); margin: 22px 0 0; }

.hero-art { background: var(--surface); color: var(--paper); padding: 30px 35px; position: relative; border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 #ffffff08, 0 30px 60px -20px #00000080; display: flex; flex-direction: column; justify-content: space-between; }
.hero-art::before, .hero-art::after {
  content: ""; position: absolute; top: 14px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--line-strong); box-shadow: inset 0 1px 1px #00000080;
}
.hero-art::before { left: 14px; }
.hero-art::after { right: 14px; }
.edition { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--paper); }
.edition span { color: var(--muted); font-size: 10px; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 170px; margin: 18px 0 6px; }
.eq-bar { flex: 1; min-width: 3px; background: linear-gradient(0deg, var(--accent-2) 0%, var(--accent-2) 55%, var(--red) 85%, var(--accent-3) 100%); height: var(--h); border-radius: 1px 1px 0 0; transform-origin: bottom; animation: eq-pulse 1.15s ease-in-out infinite; animation-delay: var(--delay); box-shadow: 0 0 6px -1px rgba(53, 232, 146, .4); }
@keyframes eq-pulse { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.eq-caption { display: flex; align-items: center; gap: 10px; font: 10px var(--font-mono); letter-spacing: 3px; color: var(--muted); text-transform: uppercase; margin: 0 0 17px; }
.eq-badge { font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .5px; color: var(--red); border: 1px solid var(--line-strong); padding: 2px 8px; line-height: 1.35; }
.hero-rule { height: 1px; background: var(--line-strong); width: 100%; }
.hero-art > p { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; margin: 20px 0; letter-spacing: -.5px; }
.serial { font-family: var(--font-mono); font-size: 10px; line-height: 1.7; letter-spacing: 1px; color: var(--muted); }

.ticker { display: flex; justify-content: space-around; gap: 15px; background: #070907; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 19px 5%; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.2px; font-weight: 600; text-transform: uppercase; }
.ticker span { color: var(--paper); }
.ticker b { font-size: 10px; color: var(--red); text-shadow: 0 0 10px rgba(255, 90, 31, .6); }

/* Trust strip */
.trust-strip { max-width: 1440px; margin: auto; padding: 22px 6%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .8px; color: var(--muted); text-transform: uppercase; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px 1px rgba(53, 232, 146, .7); display: inline-block; flex-shrink: 0; }
@media (max-width: 760px) { .trust-strip { gap: 10px 22px; font-size: 10px; padding: 18px 6%; } }

/* Collection */
.collection, .philosophy { max-width: 1440px; margin: auto; padding: 83px 6% 90px; }
.section-top { display: flex; justify-content: space-between; align-items: end; margin-bottom: 40px; gap: 30px; }
h2 { font-size: 52px; margin: 15px 0 0; }
.section-top > p { max-width: 400px; color: var(--muted); line-height: 1.7; margin-bottom: 5px; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border: 1px solid var(--line); background: var(--surface); }
.card-visual { display: block; height: 260px; padding: 23px; position: relative; overflow: hidden; background: #070907; }
.card-index { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 16px; color: var(--muted); }
.card-visual strong { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: -1px; display: block; position: relative; z-index: 1; }
.card-visual i { font-style: normal; color: var(--red); }
.card-body { padding: 26px; }
.card-body .eyebrow { font-size: 10px; letter-spacing: 1.3px; color: var(--red); }
h3 { font-family: var(--font-display); font-size: 32px; margin-bottom: 14px; }
.card-body > p:not(.eyebrow) { font-size: 14px; line-height: 1.8; color: var(--muted); min-height: 102px; }
.card-body .card-price { font-size: 18px; font-weight: 700; color: var(--paper); line-height: 1.4; min-height: 0; margin: 0 0 8px; }
.card-body .card-price s { font-weight: 400; color: var(--muted); margin-right: 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 24px; }
.tags span { border: 1px solid var(--line-strong); padding: 5px 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.card-body .card-quick-buy { display: block; width: 100%; margin-top: 16px; padding: 11px 16px; font-size: 13px; text-align: center; }
.card-body .card-explore { width: 100%; display: flex; justify-content: space-between; padding: 15px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--paper); text-align: left; font-size: 14px; font-weight: 700; }
.card-body .card-explore:hover { color: var(--red); }
.card-body .card-explore span { font-size: 20px; }

/* Three channel identities on the product photo well - Fill (green), Filter (orange), Roller (hot red) */
.product-photo { height: 310px; display: flex; align-items: center; justify-content: center; padding: 43px 20px 20px; background: #070907; border-top: 3px solid var(--line-strong); position: relative; }
.product-photo .card-index { position: absolute; top: 17px; left: 20px; }
.product-photo.fill { border-top-color: var(--accent-2); }
.product-photo.fill .card-index { color: var(--accent-2); }
.product-photo.filter { border-top-color: var(--red); }
.product-photo.filter .card-index { color: var(--red); }
.product-photo.roller { border-top-color: var(--accent-3); }
.product-photo.roller .card-index { color: var(--accent-3); }
.product-screenshot { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-photo.filter .product-screenshot { width: auto; max-width: 100%; }
.screenshot-mini { margin-top: 17px; width: 85%; margin-left: 23px; filter: drop-shadow(0 8px 18px #00000080); }
.screenshot-mini img { width: 100%; display: block; }
@media (max-width: 760px) { .product-photo { height: 340px; } }

.bundle-card { margin-top: 22px; background: var(--surface); color: var(--paper); border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 38px 42px; }
.bundle-card .eyebrow { color: var(--muted); }
.bundle-card h3 { font-size: 30px; margin: 10px 0 12px; color: var(--paper); }
.bundle-card p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 440px; margin: 0; }
@media (max-width: 760px) { .bundle-card { padding: 28px 24px; flex-direction: column; align-items: flex-start; } .bundle-card h3 { font-size: 26px; } .bundle-card .button { width: 100%; text-align: center; } }

/* Feature spotlights - each plugin gets its own channel accent, like a rack unit's indicator strip */
.studio, .filter-feature, .roller-feature {
  background: var(--surface); color: var(--paper); display: grid; grid-template-columns: .75fr 1.25fr; gap: 55px; align-items: center;
  padding: 80px 6%; border-top: 3px solid var(--line-strong); border-bottom: 1px solid var(--line);
}
.studio { border-top-color: var(--accent-2); }
.filter-feature, .roller-feature { grid-template-columns: 1fr 1fr; }
.filter-feature { border-top-color: var(--red); }
.roller-feature { border-top-color: var(--accent-3); }
.studio-copy { max-width: 400px; margin-left: auto; }
.studio .eyebrow, .filter-feature .eyebrow, .roller-feature .eyebrow { color: var(--muted); }
.studio h2, .filter-feature h2, .roller-feature h2 { font-size: clamp(42px, 4.6vw, 60px); margin: 22px 0 18px; }
.studio em { color: var(--accent-2); text-shadow: 0 0 22px rgba(53, 232, 146, .35); }
.filter-feature em { color: var(--red); }
.roller-feature em { color: var(--accent-3); text-shadow: 0 0 22px rgba(255, 47, 102, .35); }
.studio p:not(.eyebrow), .filter-feature-copy > p:not(.eyebrow), .roller-feature-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.8; font-size: 15px; margin-top: 10px; max-width: 450px; }
.light { background: transparent; border-color: var(--line-strong); color: var(--paper); }
.light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.caption { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; color: var(--muted); margin-top: 20px; text-transform: uppercase; }
.studio-image, .filter-feature-image, .roller-feature-image { display: block; background: transparent; border: 0; padding: 0; width: 100%; max-width: 600px; filter: drop-shadow(0 20px 40px #00000080); }
.studio-image img, .filter-feature-image img, .roller-feature-image img { width: 100%; display: block; }
.filter-feature-copy, .roller-feature-copy { max-width: 560px; margin-left: auto; }
.filter-feature-tags, .roller-feature-tags { display: flex; flex-wrap: wrap; gap: 10px 18px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 1px; margin: 27px 0 32px; color: var(--muted); }
.filter-feature .button { background: var(--red); border-color: var(--red); }
.roller-feature .button { background: var(--accent-3); border-color: var(--accent-3); }
.roller-feature .button:hover { background: #cc1c4d; border-color: #cc1c4d; }
.filter-feature-demo, .studio-demo, .roller-feature-demo { margin: 28px 0 0; }
.filter-feature-note, .studio-demo figcaption, .roller-feature-demo figcaption { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.4px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; }
.filter-feature-demo audio, .studio-demo audio, .roller-feature-demo audio { width: 100%; max-width: 420px; }
@media (min-width: 1500px) { .studio, .filter-feature, .roller-feature { padding-left: calc((100vw - 1268px) / 2); padding-right: calc((100vw - 1268px) / 2); } }
@media (max-width: 760px) {
  .studio, .filter-feature, .roller-feature { grid-template-columns: 1fr; gap: 35px; padding: 55px 6%; }
  .studio-copy, .filter-feature-copy, .roller-feature-copy { margin: 0; max-width: none; }
  .studio h2, .filter-feature h2, .roller-feature h2 { font-size: 44px; }
  .studio-image, .filter-feature-image, .roller-feature-image { max-width: 500px; margin: 0 auto; }
}

/* Philosophy */
.philosophy-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.philosophy-heading > p { max-width: 470px; font-size: 17px; color: var(--muted); line-height: 1.8; margin: 0; }
.scope-note { max-width: 470px; margin: 18px 0 0 auto; font-size: 13px; line-height: 1.7; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 50px; }
.values > div { border-top: 1px solid var(--line-strong); padding-top: 22px; }
.values span { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.values h3 { font-size: 26px; margin-top: 13px; }
.values p { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* Real, admin-curated feedback (see Feedback#featured) - hidden entirely when there is
   none yet, so the homepage never shows an empty "testimonials" shell. */
.feedback-wall { max-width: 1440px; margin: auto; padding: 0 6% 90px; }
.feedback-wall .eyebrow { color: var(--red); }
.feedback-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.feedback-card { border: 1px solid var(--line); background: var(--surface); padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.feedback-stars span:not(.visually-hidden) { color: var(--red); font-size: 16px; letter-spacing: 2px; text-shadow: 0 0 10px rgba(255, 90, 31, .45); }
.feedback-card blockquote { margin: 0; font-size: 15px; line-height: 1.8; color: var(--paper); }
.feedback-card figcaption { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.feedback-card figcaption span { font-weight: 700; color: var(--paper); }
@media (max-width: 760px) { .feedback-grid { grid-template-columns: 1fr; gap: 20px; } }

.closing { background: var(--surface); text-align: center; padding: 90px 20px 96px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.closing h2 { font-size: clamp(48px, 7vw, 78px); margin-bottom: 35px; }

footer { display: flex; justify-content: space-between; align-items: center; padding: 38px 6%; gap: 25px; }
footer p, footer > span { font-family: var(--font-mono); font-size: 10px; line-height: 1.9; letter-spacing: 1px; color: var(--muted); margin: 0; }
footer > span { text-align: right; }
footer a:hover { color: var(--red); }
.footer-contact { display: flex; flex-direction: column; gap: 3px; font-family: var(--font-mono); font-size: 10px; line-height: 1.9; letter-spacing: 1px; color: var(--muted); }
.footer-contact strong { font-size: 10px; font-weight: 400; margin-bottom: 4px; }
.footer-contact a { display: flex; flex-wrap: wrap; gap: 0 10px; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-contact a span { min-width: 7ch; color: var(--red); text-transform: uppercase; }
.footer-contact a:focus-visible { outline: 1px solid var(--red); outline-offset: 4px; }

.support-chat-launcher { position: fixed; right: 22px; bottom: 22px; z-index: 40; padding: 13px 18px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; cursor: pointer; box-shadow: 0 4px 20px #0003; }
.support-chat-launcher:hover { background: var(--red); color: var(--paper); }
.support-chat-launcher:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
dialog.support-chat-dialog { padding: 20px; width: calc(100% - 24px); max-width: 440px; max-height: calc(100dvh - 24px); overflow-y: auto; }
.support-chat-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-chat-heading h2 { margin: 0; font-size: 25px; }
.support-chat-close { border: 0; background: transparent; color: var(--paper); font-size: 28px; min-width: 44px; min-height: 44px; cursor: pointer; }
dialog.support-chat-dialog > p { font-size: 12px; margin: 8px 0 14px; }
.support-chat-dialog iframe { display: block; width: 100%; height: min(520px, 58dvh); border: 0; background: #fff; }
dialog.support-chat-dialog > .support-chat-fallback { margin: 14px 0 0; }
.support-chat-fallback a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .support-chat-launcher { right: 12px; bottom: 12px; font-size: 10px; }
  body:has(.sticky-buy) .support-chat-launcher { bottom: 90px; }
}

dialog { background: var(--surface); color: var(--paper); border: 1px solid var(--line-strong); padding: 40px; max-width: 780px; width: calc(100% - 32px); max-height: 90vh; overflow: auto; }
dialog::backdrop { background: #000000cc; backdrop-filter: blur(4px); }
.close { position: absolute; right: 15px; top: 10px; font-size: 30px; border: 0; background: transparent; color: var(--paper); }
dialog h2 { margin-bottom: 22px; }
dialog > p:not(.eyebrow) { line-height: 1.7; color: var(--muted); }
dialog img { width: 100%; margin: 12px 0; }
dialog ul { padding-left: 21px; line-height: 1.9; font-size: 15px; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

@media (max-width: 1000px) {
  .hero { gap: 35px; }
  .eq { height: 140px; }
  .edition span { display: none; }
  .hero-art { padding: 25px; }
  .card-body { padding: 20px; }
  .card-visual { padding: 20px; }
  .card-visual strong { font-size: 44px; }
}
@media (max-width: 760px) {
  header { height: 85px; }
  .brand img { width: 128px; }
  nav { gap: 18px; }
  .nav-cta { display: none; }
  nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .hero h1 { font-size: 70px; }
  .hero-art { min-height: 400px; max-width: 470px; width: 100%; margin: auto; }
  .eq { height: 130px; }
  .hero-art > p { font-size: 32px; }
  .hero-art .edition span { display: block; }
  .ticker { font-size: 9px; letter-spacing: 1px; flex-wrap: wrap; }
  .ticker b:last-of-type, .ticker span:last-child { display: none; }
  .collection, .philosophy { padding-top: 55px; padding-bottom: 55px; }
  .section-top { display: block; }
  .section-top > p { margin-top: 25px; }
  h2 { font-size: 42px; }
  .cards { grid-template-columns: 1fr; gap: 25px; }
  .card-visual { height: 260px; }
  .card-visual strong { font-size: 56px; }
  .screenshot-mini { width: 230px; position: absolute; right: 16px; bottom: 40px; }
  .card-body > p:not(.eyebrow) { min-height: 0; }
  .philosophy-heading { grid-template-columns: 1fr; gap: 25px; }
  .values { grid-template-columns: 1fr; gap: 20px; margin-top: 35px; }
  .closing h2 { font-size: 54px; }
  footer { flex-wrap: wrap; }
  footer p { display: none; }
  dialog { padding: 30px 24px; }
  .intro { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Logo: the dark-ground variant (spicy-audio-logo-dark.png) with light ink + accent chili. */
.brand img { object-fit: contain; height: auto; }

.roller-feature-image { transform: none; }

/* Hero secondary CTA (reuses the site-wide .button-ghost from app.css). */
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-ctas .button-ghost { padding: 17px 27px; }

/* Header nav: a hamburger-collapsed dropdown on mobile instead of one unbreakable row, which
   used to overflow the whole page horizontally once "My plugins"/Log in/the cart badge made
   the row wider than a phone screen. The cart stays visible outside the collapsible part, so
   it's never hidden behind a menu tap. The signed-in account links are grouped in
   .nav-account (separated by a rule on desktop, stacked clearly on mobile) so it reads as one
   "this is your account" cluster, with Log out right there instead of buried in Settings. */
body { overflow-x: hidden; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-account { display: flex; align-items: center; gap: 18px; padding-left: 18px; border-left: 1px solid var(--line); }
.nav-logout-form { display: contents; }
.nav-logout { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color .2s; }
.nav-logout:hover { color: var(--red); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 40px; height: 40px; background: transparent; border: 1px solid var(--line-strong); flex-shrink: 0; transition: transform .15s ease; }
.nav-toggle:active { transform: scale(.93); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--paper); transition: transform .25s ease, opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  header { position: relative; }
  nav { gap: 14px; }
  .nav-links { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 28px #00000080; z-index: 30; max-height: calc(100vh - 85px); overflow-y: auto; }
  .nav-links.is-open { display: flex; animation: nav-drop .22s ease both; }
  .nav-links > a { display: block; padding: 16px 6%; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-account { flex-direction: column; align-items: flex-start; gap: 0; border-left: 0; padding-left: 0; }
  .nav-account > a, .nav-account .nav-logout { display: block; width: 100%; padding: 16px 6%; border-bottom: 1px solid var(--line); box-sizing: border-box; }
  .nav-toggle { display: flex; }
}

/* Must stay last in this file: overrides earlier same-specificity rules (the mobile nav
   dropdown's entrance animation, the hamburger icon's morph) for prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) { .nav-links.is-open { animation: none; } .nav-toggle span { transition: none; } .eq-bar { animation: none; } }
