/* ==========================================================================
   PUBU 皮优比优 — Warm Palette Derived Directly From The Brand Logo
   ========================================================================== */
:root,
[data-theme="day"] {
  --bg: #fdf9f1;
  --bg-elevated: #f6ede0;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffcf6;
  --border: rgba(59, 56, 52, 0.1);
  --border-strong: rgba(59, 56, 52, 0.16);

  --ink: #242321;
  --ink-soft: #5c564e;
  --ink-muted: #8a8277;

  /* Extracted directly from logo: straw hat gold, orange strap, olive collar, caramel snack */
  --gold: #e8b85f;
  --gold-soft: rgba(232, 184, 95, 0.24);
  --terracotta: #d9683a;
  --terracotta-hover: #c4572b;
  --terracotta-soft: rgba(217, 104, 58, 0.14);
  --olive: #7a8252;
  --olive-soft: rgba(122, 130, 82, 0.15);
  --caramel: #c47b38;

  --shadow-sm: 0 4px 16px rgba(61, 44, 24, 0.06);
  --shadow-md: 0 14px 36px rgba(61, 44, 24, 0.09);
  --shadow-lg: 0 28px 64px rgba(61, 44, 24, 0.14);
  --spotlight: rgba(232, 184, 95, 0.22);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

/* Cozy Bedtime Story Lamp Theme */
[data-theme="night"] {
  --bg: #1e1915;
  --bg-elevated: #28211c;
  --surface: rgba(45, 38, 32, 0.84);
  --surface-strong: #2f2721;
  --border: rgba(247, 223, 172, 0.12);
  --border-strong: rgba(247, 223, 172, 0.22);

  --ink: #fbf4e7;
  --ink-soft: #cfc1ae;
  --ink-muted: #9c8f7f;

  --gold: #f2ca78;
  --gold-soft: rgba(242, 202, 120, 0.2);
  --terracotta: #eb7e4d;
  --terracotta-hover: #f28e60;
  --terracotta-soft: rgba(235, 126, 77, 0.18);
  --olive: #9ea96c;
  --olive-soft: rgba(158, 169, 108, 0.18);
  --caramel: #df944d;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.48);
  --spotlight: rgba(242, 202, 120, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.45s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* Scroll Progress Hairline */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--terracotta), var(--olive));
  z-index: 100;
  pointer-events: none;
  will-change: width;
}

/* Ambient Canvas & Subtle Grain */
#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: radial-gradient(var(--ink) 0.65px, transparent 0.65px);
  background-size: 16px 16px;
}

/* Custom Magnetic Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 120;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.25s ease, height 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--terracotta);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta);
  opacity: 0;
}

body.cursor-active .cursor-dot {
  opacity: 0.9;
}

body.cursor-active .cursor-ring {
  opacity: 0.45;
}

body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-color: var(--gold);
  background: rgba(232, 184, 95, 0.14);
  opacity: 0.85;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Layout Container */
main,
header,
footer {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 20px;
  pointer-events: none;
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px 10px 12px;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: auto;
  transition: box-shadow 0.3s ease, background-color 0.4s ease;
}

.navbar.scrolled .nav-inner {
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 28%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(217, 104, 58, 0.22);
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}

.nav-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.nav-brand-text strong {
  font-size: 17px;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.nav-brand-text small {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
}

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

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--gold-soft);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--gold);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
  will-change: transform;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(232, 184, 95, 0.55), transparent 70%);
  animation: driftGlow 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  width: 440px;
  height: 440px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(217, 104, 58, 0.34), transparent 70%);
  animation: driftGlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes driftGlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(32px, -24px, 0) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 184, 95, 0.45);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 22px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgba(217, 104, 58, 0.6);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(217, 104, 58, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(217, 104, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 104, 58, 0); }
}

.hero-title {
  margin: 0 0 22px;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.highlight-word {
  position: relative;
  display: inline-block;
  color: var(--terracotta);
}

.squiggle {
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -6px;
  width: calc(100% + 8px);
  height: 16px;
  color: var(--gold);
}

.squiggle path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: drawSquiggle 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes drawSquiggle {
  to { stroke-dashoffset: 0; }
}

.hero-desc {
  margin: 0 0 30px;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--caramel));
  color: #fffcf6;
  box-shadow: 0 10px 26px rgba(217, 104, 58, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(217, 104, 58, 0.42);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.metric span {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.metric-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}

/* ==========================================================================
   Hero 3D Interactive Logo Stage
   ========================================================================== */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
  perspective: 1100px;
}

.stage-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 104, 58, 0.24);
  pointer-events: none;
}

.orbit-1 {
  width: 390px;
  height: 390px;
  animation: spinSlow 36s linear infinite;
}

.orbit-2 {
  width: 465px;
  height: 465px;
  border-color: rgba(232, 184, 95, 0.28);
  animation: spinSlow 52s linear infinite reverse;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.logo-3d-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.logo-halo {
  position: absolute;
  inset: -16px;
  border-radius: 30%;
  background: conic-gradient(
    from 0deg,
    var(--gold),
    var(--terracotta),
    var(--olive),
    var(--gold)
  );
  filter: blur(22px);
  opacity: 0.45;
  animation: spinSlow 14s linear infinite;
  transform: translateZ(-20px);
}

.logo-card {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 4px solid var(--surface-strong);
  border-radius: 26%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transform: translateZ(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.logo-card:hover {
  box-shadow: 0 32px 72px rgba(217, 104, 58, 0.26);
}

.logo-card.pop {
  transform: translateZ(20px) scale(0.94);
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.logo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0) 48%,
    rgba(232, 184, 95, 0.16) 100%
  );
  pointer-events: none;
}

.float-chip {
  position: absolute;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: bobFloat 5s ease-in-out infinite;
}

.chip-1 {
  top: -12px;
  left: -34px;
  transform: translateZ(42px);
  animation-delay: 0s;
}

.chip-2 {
  bottom: 24px;
  right: -46px;
  transform: translateZ(56px);
  animation-delay: -1.8s;
}

.chip-3 {
  bottom: -16px;
  left: 16px;
  background: linear-gradient(135deg, var(--gold), #f2ca78);
  color: #242321;
  border-color: transparent;
  transform: translateZ(34px);
  animation-delay: -3.2s;
}

@keyframes bobFloat {
  0%, 100% { margin-top: 0px; }
  50% { margin-top: -8px; }
}

.whisper-bubble {
  position: absolute;
  top: -58px;
  right: -20px;
  padding: 9px 15px;
  border-radius: 16px 16px 16px 4px;
  background: var(--ink);
  color: var(--bg);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px) scale(0.92) translateZ(60px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.whisper-bubble.show {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(60px);
}

/* ==========================================================================
   Marquee Ribbon
   ========================================================================== */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 15px 0;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  animation: marquee 28s linear infinite;
  will-change: transform;
}

.marquee-track .sep {
  color: var(--terracotta);
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Shared Sections
   ========================================================================== */
.section {
  padding: 108px 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: 54px;
}

.section-tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.accent-text {
  color: var(--terracotta);
}

.section-lead {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Section 1: Story Timeline & Cards
   ========================================================================== */
.story-layout {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 28px;
  align-items: stretch;
}

.timeline-rail {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-svg {
  width: 24px;
  height: 100%;
  overflow: visible;
}

.timeline-bg-path {
  stroke: var(--border-strong);
}

.timeline-active-path {
  stroke: var(--terracotta);
  filter: drop-shadow(0 0 6px rgba(217, 104, 58, 0.45));
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tilt-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    var(--spotlight),
    transparent 65%
  );
  transition: opacity 0.3s ease;
}

.tilt-card:hover .card-spotlight {
  opacity: 1;
}

.story-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.story-card:hover {
  border-color: rgba(232, 184, 95, 0.55);
  box-shadow: var(--shadow-md);
}

.story-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.story-meta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.story-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 700;
}

.story-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.philosophy-banner {
  margin-top: 38px;
  padding: 26px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.philosophy-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.phi-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.phi-dot.gold { background: var(--gold); }
.phi-dot.terracotta { background: var(--terracotta); }
.phi-dot.olive { background: var(--olive); }

.philosophy-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.philosophy-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

/* ==========================================================================
   Section 2: Works Showcase
   ========================================================================== */
.works-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.works-header .section-lead {
  max-width: 560px;
}

.filter-bar {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.filter-slider {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.32s cubic-bezier(0.34, 1.4, 0.64, 1), width 0.32s ease;
  z-index: 0;
}

.filter-btn {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.25s ease;
}

.filter-btn.active {
  color: var(--bg);
}

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

.work-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: rgba(217, 104, 58, 0.45);
  box-shadow: var(--shadow-lg);
}

.work-visual {
  position: relative;
  height: 210px;
  background: var(--bg-elevated);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-visual svg {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card:hover .work-visual svg {
  transform: scale(1.05);
}

.work-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-cat {
  background: var(--bg-elevated);
  color: var(--ink-soft);
  border: 1px solid var(--border);
}

.badge-terracotta {
  background: var(--terracotta-soft);
  color: var(--terracotta);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--caramel);
}

.badge-olive {
  background: var(--olive-soft);
  color: var(--olive);
}

.badge-caramel {
  background: rgba(196, 123, 56, 0.16);
  color: var(--caramel);
}

.work-card h3 {
  margin: 2px 0 0;
  font-size: 21px;
  font-weight: 800;
}

.work-subtitle {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.work-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-muted);
}

.work-more {
  color: var(--terracotta);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Inline SVG Scene Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes gentlePulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.svg-float {
  animation: floatSlow 4.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-float-delay {
  animation: floatSlow 5.2s ease-in-out -1.6s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.svg-pulse {
  animation: gentlePulse 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* ==========================================================================
   Contact Card & Footer
   ========================================================================== */
.contact-section {
  padding-top: 40px;
}

.contact-card {
  background: linear-gradient(135deg, var(--surface-strong), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 46px 48px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: center;
}

.contact-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.28;
}

.contact-card p {
  margin: 0 0 26px;
  color: var(--ink-soft);
  max-width: 540px;
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-art {
  display: flex;
  justify-content: center;
}

.mini-logo-float {
  width: 156px;
  height: 156px;
  border-radius: 26%;
  overflow: hidden;
  border: 4px solid var(--surface-strong);
  box-shadow: var(--shadow-lg);
  animation: bobFloat 5.5s ease-in-out infinite;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand span {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-muted);
}

.footer-meta a:hover {
  color: var(--terracotta);
}

/* ==========================================================================
   Modal & Toast
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(24, 18, 13, 0.56);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.22s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: popUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popUp {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-visual {
  height: 200px;
  background: var(--bg-elevated);
}

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

.modal-body {
  padding: 24px 28px 28px;
}

.modal-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-body h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.modal-subtitle {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--terracotta);
}

.modal-desc {
  margin: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.modal-highlights-wrap h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-highlights {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--ink);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-platform {
  font-size: 13px;
  color: var(--ink-muted);
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: var(--ink);
  color: var(--bg);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal-up,
.reveal-scale {
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translate3d(0, 28px, 0);
}

.reveal-scale {
  transform: scale(0.92);
}

.reveal-up.in-view,
.reveal-scale.in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up,
  .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta,
  .hero-metrics {
    justify-content: center;
  }
  .story-layout {
    grid-template-columns: 1fr;
  }
  .timeline-rail {
    display: none;
  }
  .story-cards,
  .works-grid,
  .philosophy-banner,
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-card {
    padding: 32px 24px;
    text-align: center;
  }
  .contact-card p {
    margin-left: auto;
    margin-right: auto;
  }
  .contact-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 108px 0 64px;
  }
  .logo-3d-wrap {
    width: 248px;
    height: 248px;
  }
  .orbit-1 {
    width: 300px;
    height: 300px;
  }
  .orbit-2 {
    width: 356px;
    height: 356px;
  }
  .chip-1 {
    left: -10px;
  }
  .chip-2 {
    right: -12px;
  }
  .whisper-bubble {
    right: 0;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.92);
  }
  .whisper-bubble.show {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .section {
    padding: 76px 0;
  }
}
