/* ==========================================================================
   JUAMPIS ESTUDIO — Portfolio
   Dark editorial · Space Grotesk + Archivo · electric-lime accent
   Self-contained (no external libs). Premium motion, reduced-motion safe.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #0B0B0D;
  --bg-elev:   #141417;
  --bg-elev-2: #1B1B1F;
  --text:      #F3F0E9;
  --dim:       #9E9C93;
  --line:      rgba(243,240,233,.12);
  --line-2:    rgba(243,240,233,.06);
  --accent:    #C8F14A;
  --accent-2:  #A6D62E;
  --accent-ink:#0B0B0D;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.6rem, 8.4vw, 8rem);
  --fs-h2:   clamp(2rem, 5vw, 4rem);
  --fs-lead: clamp(1.05rem, 1.5vw, 1.35rem);

  --wrap: 1280px;
  --pad: clamp(1.2rem, 5vw, 3rem);
  --header-h: 78px;

  --ease: cubic-bezier(.16, 1, .3, 1);   /* expo.out — the premium curve */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.accent { color: var(--accent); }
.skip-link { position: absolute; left:-9999px; top:0; z-index:2000; background: var(--accent); color: var(--accent-ink); padding:.6rem 1rem; border-radius:0 0 8px 0; font-weight:700; }
.skip-link:focus { left:0; }

/* ---------- SPOTLIGHT CURSOR (canvas radial glow) ---------- */
.spotlight { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
@media (hover: none) { .spotlight { display: none; } }

/* ---------- PRELOADER ---------- */
.preloader { position: fixed; inset: 0; z-index: 2000; background: var(--bg); display: grid; place-content: center; gap: 1.6rem; text-align: center; transition: transform .9s var(--ease); }
.preloader.done { transform: translateY(-100%); }
.pre-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 3rem); letter-spacing: .1em; line-height: 1; display: flex; flex-direction: column; gap: .2rem; }
.pre-word span { overflow: hidden; }
.pre-count { font-family: var(--font-display); color: var(--dim); font-size: 1rem; }
.pre-count i { color: var(--accent); font-style: normal; }
.pre-bar { width: min(260px, 60vw); height: 2px; background: var(--line); margin: 0 auto; overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- PAGE TRANSITION ---------- */
.transition { position: fixed; inset: 0; z-index: 1800; background: var(--accent); transform: translateY(100%); display: grid; place-content: center; pointer-events: none; }
.transition.in { transform: translateY(0); transition: transform .55s var(--ease); }
.transition.out { transform: translateY(-100%); transition: transform .55s var(--ease); }
.transition-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem,4vw,2.6rem); color: var(--accent-ink); letter-spacing: -.02em; }

/* ---------- AMBIENT LIGHT ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.glow-1 { width: 44vw; height: 44vw; background: #1f3a1a; top: -10vw; left: -6vw; animation: drift1 22s ease-in-out infinite; }
.glow-2 { width: 40vw; height: 40vw; background: #10243b; top: 40vh; right: -12vw; animation: drift2 26s ease-in-out infinite; }
.glow-3 { width: 34vw; height: 34vw; background: #2a2410; bottom: -14vw; left: 30vw; animation: drift1 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(4vw,3vw) } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) } 50%{ transform: translate(-4vw,-3vw) } }

/* keep content above ambient */
.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; will-change: transform; }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.08rem; }
.btn-xl { padding: 1.15rem 2.4rem; font-size: 1.15rem; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--text); }
.btn-ghost { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

/* ---------- HEADER ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 100; display: flex; align-items: center; transition: background .4s, backdrop-filter .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(11,11,13,.6); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line-2); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: 100%; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; }
.wm-star { color: var(--accent); font-size: 1.3rem; display: inline-block; animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wm-text { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; line-height: 1; }
.wm-text span { color: var(--dim); }
.wm-text span::before { content: " "; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { font-family: var(--font-display); font-weight: 500; font-size: .98rem; color: var(--dim); position: relative; transition: color .25s; }
.main-nav a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background: var(--accent); transition: width .3s var(--ease); }
.main-nav a:hover { color: var(--text); } .main-nav a:hover::after { width: 100%; }

/* mobile menu (hamburger + overlay) */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 12px; margin-right: -10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: rgba(11,11,13,.98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu-nav { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; margin-bottom: 1rem; }
.mobile-menu-nav a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 9vw, 2.6rem); color: var(--text); padding: .2rem 1rem; transition: color .25s; }
.mobile-menu-nav a:hover, .mobile-menu-nav a:active { color: var(--accent); }
.wordmark { padding-block: 8px; }

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); position: relative; }
.hero-inner { padding-block: clamp(2rem, 6vh, 5rem); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 500; color: var(--dim); font-size: .95rem; letter-spacing: .01em; margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,241,74,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(200,241,74,.5) } 70%{ box-shadow: 0 0 0 10px rgba(200,241,74,0) } 100%{ box-shadow: 0 0 0 0 rgba(200,241,74,0) } }

.hero-title { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -.03em; }
.hero-title .line { display: block; overflow: hidden; padding-block: .02em; }
.hero-title .line-in { display: block; transform: translateY(115%); }
.js .hero-title.in .line-in { transform: none; transition: transform 1.05s var(--ease); }
.hero-title.in .line:nth-child(2) .line-in { transition-delay: .08s; }
.hero-title.in .line:nth-child(3) .line-in { transition-delay: .16s; }
.hero-title.in .line:nth-child(4) .line-in { transition-delay: .24s; }
.hero-title em { font-style: italic; font-weight: 400; }

.hero-foot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: end; margin-top: clamp(2rem, 4vw, 3.4rem); }
.hero-lead { color: var(--dim); font-size: var(--fs-lead); max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: flex-end; }

/* centered via auto margins (not transform) so the reveal-fade transform can't off-center it */
.scroll-cue { position: absolute; bottom: 1.6rem; left: 0; right: 0; margin-inline: auto; width: max-content; display: flex; flex-direction: column; align-items: center; gap: .5rem; font-family: var(--font-display); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%{ transform: scaleY(0); transform-origin: top; } 50%{ transform: scaleY(1); transform-origin: top; } 51%{ transform-origin: bottom; } 100%{ transform: scaleY(0); transform-origin: bottom; } }

/* ---------- LAMP HERO (recreated natively, brand-recolored) ---------- */
.hero-lamp { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding-top: var(--header-h); }
.lamp-stage { position: absolute; inset: 0; display: flex; width: 100%; align-items: center; justify-content: center; transform: translateY(-3.5rem) scaleY(1.25); isolation: isolate; z-index: 0; }

.lamp-cone { position: absolute; top: auto; height: 14rem; width: 15rem; overflow: visible; opacity: .5; will-change: width, opacity; }
.lamp-a { right: 50%; background-image: conic-gradient(from 70deg at center top, var(--accent), transparent, transparent); }
.lamp-b { left: 50%;  background-image: conic-gradient(from 290deg at center top, transparent, transparent, var(--accent)); }
.lamp-cone .occ { position: absolute; bottom: 0; background: var(--bg); z-index: 20; }
.lamp-a .occ-b { width: 100%; left: 0; height: 10rem; -webkit-mask-image: linear-gradient(to top, white, transparent); mask-image: linear-gradient(to top, white, transparent); }
.lamp-a .occ-s { width: 10rem; height: 100%; left: 0; -webkit-mask-image: linear-gradient(to right, white, transparent); mask-image: linear-gradient(to right, white, transparent); }
.lamp-b .occ-s { width: 10rem; height: 100%; right: 0; -webkit-mask-image: linear-gradient(to left, white, transparent); mask-image: linear-gradient(to left, white, transparent); }
.lamp-b .occ-b { width: 100%; right: 0; height: 10rem; -webkit-mask-image: linear-gradient(to top, white, transparent); mask-image: linear-gradient(to top, white, transparent); }

.lamp-darkblur { position: absolute; top: 50%; width: 100%; height: 12rem; transform: translateY(3rem) scaleX(1.5); background: var(--bg); filter: blur(40px); }
.lamp-backblur { position: absolute; top: 50%; z-index: 50; width: 100%; height: 12rem; opacity: .1; backdrop-filter: blur(12px); }
.lamp-halo { position: absolute; z-index: 50; width: 28rem; height: 9rem; transform: translateY(-50%); border-radius: 9999px; background: var(--accent); opacity: .5; filter: blur(64px); }
.lamp-core { position: absolute; z-index: 30; width: 8rem; height: 9rem; transform: translateY(-6rem); border-radius: 9999px; background: var(--accent); filter: blur(40px); will-change: width; }
.lamp-line { position: absolute; z-index: 50; width: 15rem; height: 2px; transform: translateY(-7rem); background: var(--accent); box-shadow: 0 0 18px 1px var(--accent); will-change: width; }
.lamp-cover { position: absolute; z-index: 40; width: 100%; height: 11rem; transform: translateY(-12.5rem); background: var(--bg); }

/* entrance animation (delay .3s, dur .8s, easeInOut) */
.js .lamp-cone, .js .lamp-core, .js .lamp-line { transition: width .8s var(--ease-io) .3s, opacity .8s var(--ease-io) .3s; }
.js .hero-lamp.in .lamp-cone { width: 30rem; opacity: 1; }
.js .hero-lamp.in .lamp-core { width: 16rem; }
.js .hero-lamp.in .lamp-line { width: 30rem; }

/* lamp content (centered in the hero, sits just under the light) */
.hero-lamp-content { position: relative; z-index: 50; display: flex; flex-direction: column; align-items: center; text-align: center; transform: translateY(2.9rem); padding-inline: var(--pad); width: 100%; }
.hero-lamp-content .hero-eyebrow { margin-bottom: 1.2rem; }
.lamp-title { font-family: var(--font-display); font-weight: 600; letter-spacing: -.03em; font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: 1.03; background: linear-gradient(to bottom right, #F6F4EE, #8f8d84); -webkit-background-clip: text; background-clip: text; color: transparent; max-width: 16ch; opacity: .5; transform: translateY(90px); }
.lamp-title .accent { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.js .lamp-title { transition: opacity .8s var(--ease-io) .3s, transform .8s var(--ease-io) .3s; }
.js .hero-lamp.in .lamp-title { opacity: 1; transform: none; }
.lamp-lead { color: var(--dim); font-size: var(--fs-lead); max-width: 46ch; margin: 1.4rem auto 0; }
.hero-lamp-content .hero-cta { justify-content: center; margin-top: 1.8rem; }
.hero-lamp .marquee { position: relative; z-index: 60; margin-top: 0; }
.hero-lamp .scroll-cue { z-index: 60; }
/* short viewports: no room for the scroll hint under the CTAs */
@media (max-height: 760px) { .hero-lamp .scroll-cue { display: none; } }

@media (max-width: 900px) {
  .lamp-stage { transform: scaleY(1.1); }
  .hero-lamp-content { transform: translateY(3.2rem); }
  .lamp-title { transform: translateY(60px); }
  .hero-lamp-content .hero-eyebrow { margin-bottom: .9rem; }
  .lamp-lead { margin-top: 1rem; }
  .hero-lamp-content .hero-cta { margin-top: 1.2rem; }
  /* contained lamp on mobile (not edge-to-edge) */
  .lamp-cone { width: 8rem; }
  .lamp-line { width: 7rem; }
  .lamp-core { width: 5rem; }
  .lamp-halo { width: 13rem; }
  .js .hero-lamp.in .lamp-cone { width: 15rem; }
  .js .hero-lamp.in .lamp-line { width: 13rem; }
  .js .hero-lamp.in .lamp-core { width: 8rem; }
}

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-2); padding-block: 1rem; margin-top: clamp(2rem,5vh,4rem); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem,1.6vw,1.3rem); color: var(--dim); white-space: nowrap; letter-spacing: .04em; padding-right: 3rem; }
.marquee-track i { color: var(--accent); font-style: normal; margin: 0 1.9rem; font-size: .72em; opacity: .85; vertical-align: middle; }
.marquee:hover .marquee-track { animation-play-state: paused; }
/* standalone band below the hero (own strip, no overlap with the scroll cue) */
.marquee-band { margin-top: 0; padding-block: clamp(1.3rem, 3vw, 2.1rem); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- SECTIONS ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.section-head { margin-bottom: clamp(2.6rem, 5vw, 4.5rem); }
.kicker { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--accent); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem; }
.kicker::before { content:""; width: 26px; height: 1.5px; background: var(--accent); }
.section-head h2 { font-size: var(--fs-h2); }

/* ---------- PROJECTS ---------- */
.projects { display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 8rem); }
.project { display: block; }
.project-link { display: block; perspective: 1400px; }
.browser { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5); transform-style: preserve-3d; transition: box-shadow .5s var(--ease), border-color .5s; will-change: transform; max-width: 1000px; margin-inline: auto; }
.project-link:hover .browser { border-color: rgba(243,240,233,.25); box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 60px -20px var(--proj-glow, transparent); }
.browser-bar { display: flex; align-items: center; gap: .5rem; padding: .8rem 1rem; background: var(--bg-elev-2); border-bottom: 1px solid var(--line-2); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a40; }
.browser-bar i:nth-child(1){ background:#ff5f57; } .browser-bar i:nth-child(2){ background:#febc2e; } .browser-bar i:nth-child(3){ background:#28c840; }
.browser-url { margin-left: .8rem; font-family: var(--font-body); font-size: .82rem; color: var(--dim); background: var(--bg); padding: .28rem .9rem; border-radius: 999px; flex: 1; max-width: 320px; }
.browser-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elev); }
.preview { position: absolute; top: 0; left: 0; width: 1440px; max-width: none; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.preview.loaded { opacity: 1; }
.skeleton { position: absolute; inset: 0; background: linear-gradient(100deg, var(--bg-elev) 30%, var(--bg-elev-2) 50%, var(--bg-elev) 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.preview.loaded + .skeleton, .browser-view.loaded .skeleton { opacity: 0; pointer-events: none; }
@keyframes shimmer { to { background-position: -200% 0; } }

.project-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 2rem; align-items: center; max-width: 1000px; margin: 1.8rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.project-index { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--dim); }
.project-info h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .35rem; }
.project-cat { font-family: var(--font-display); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }
.project-desc { color: var(--dim); max-width: 48ch; }
.project-cta { font-family: var(--font-display); font-weight: 600; white-space: nowrap; padding: .7rem 1.3rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
.project-cta:hover { background: var(--accent); color: var(--accent-ink); }

/* ---------- STUDIO ---------- */
.section-studio { border-top: 1px solid var(--line-2); }
.studio-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); }
.studio-head h2 { font-size: var(--fs-h2); }
.studio-body > p { font-size: var(--fs-lead); color: var(--text); margin-bottom: 2.4rem; }
.principles { display: grid; gap: 1.2rem; }
.principles li { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line-2); }
.principles span { grid-row: span 2; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.principles strong { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.principles em { font-style: normal; color: var(--dim); }

/* ---------- CONTACT ---------- */
.section-contact { text-align: center; border-top: 1px solid var(--line-2); }
.contact-inner { max-width: 60rem; margin-inline: auto; }
.contact-title { font-size: clamp(2.6rem, 8vw, 6.5rem); margin: .4rem 0 1.4rem; }
.contact-sub { color: var(--dim); font-size: var(--fs-lead); max-width: 40ch; margin: 0 auto 2.4rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 2rem; }
.contact-mail { font-family: var(--font-display); color: var(--dim); font-size: .95rem; letter-spacing: .02em; }
.section-contact .kicker { justify-content: center; }

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding-bottom: 2rem; }
.footer-marquee { overflow: hidden; padding-block: clamp(1.5rem, 4vw, 3rem); }
.footer-marquee .marquee-track { animation-duration: 34s; }
.footer-marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 8rem); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px var(--line); white-space: nowrap; padding-right: .4em; }
.footer-marquee i { -webkit-text-stroke: 0; color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line-2); }
.footer-wm { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.footer-tag { color: var(--dim); font-size: .95rem; margin-top: .3rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--dim); font-family: var(--font-display); transition: color .25s; padding-block: 10px; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--dim); font-size: .85rem; font-family: var(--font-display); }

/* ---------- REVEALS ---------- */
.js .reveal-up { opacity: 0; transform: translateY(42px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal-up.in { opacity: 1; transform: none; }
.js .reveal-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
.js .reveal-fade.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header .btn-accent { display: none; }   /* CTA lives in the mobile menu */
  .hero-foot { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-cta { justify-content: flex-start; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 5rem); }
  .studio-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-meta { grid-template-columns: auto 1fr; }
  .project-cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  .project-meta { grid-template-columns: 1fr; gap: .8rem; }
  .project-index { font-size: 1.4rem; }
  .contact-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal-up, .js .reveal-fade, .hero-title .line-in, .lamp-title { opacity: 1 !important; transform: none !important; }
  .lamp-cone, .lamp-core, .lamp-line { width: 30rem !important; opacity: 1 !important; }
  .spotlight { display: none; }
  .marquee-track { animation: none !important; }
}
