@font-face {
  font-family: "Caesura";
  src: local("Caesura Bold"), local("Caesura-Bold"), local("Caesura");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --cream: #f6f5ef;
  --hero-lime: #92ff5f;
  --ink: #163300;
  --ink-muted: #1e4208;
  --lime: #9fe870;
  --pine: #163300;
  --hairline: rgba(22, 51, 0, 0.16);

  --font-caesura: "Caesura", "Caesura Bold", "Fraunces", Georgia, serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-poster: "Caesura", "Caesura Bold", "Fraunces", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Arabic", "Inter", sans-serif;
  --font-mono: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Arabic", "Inter", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
}

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

button {
  font-family: inherit;
}

/* ================================
   Minimal Fixed Header
   ================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: color 0.35s ease, background-color 0.35s ease, border-color 0.35s ease;
  color: var(--ink);
}

.topbar.is-scrolled {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(22, 51, 0, 0.08);
}

.topbar-inner {
  width: min(1600px, calc(100% - 64px));
  margin-inline: auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
}

.brand-logo svg {
  height: 25px;
  width: auto;
  display: block;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
}

.topbar-nav a {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.topbar-nav a:hover {
  opacity: 1;
}

.topbar-nav .nav-cta {
  opacity: 1;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--hero-lime);
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar-nav .nav-cta:hover {
  transform: translateY(-1px);
}

/* ================================
   Editorial Opening (#92ff5f + Caesura)
   ================================ */
.intro {
  min-height: 100svh;
  display: flex;
  padding: 120px 0 44px;
  background: var(--hero-lime);
  color: var(--ink);
}

.intro-inner {
  width: min(1600px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
}

.intro-main {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 1180px;
}

.intro-eyebrow {
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.72;
}

.intro-headline {
  margin: 0 0 28px;
  font-family: var(--font-caesura);
  font-size: clamp(3.4rem, 7.8vw, 7.6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.intro-copy {
  margin: 0;
  max-width: 540px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.82;
}

.intro-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 51, 0, 0.18);
  font-size: 0.92rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-weight: 600;
}

.scroll-cue-line {
  width: 28px;
  height: 1.5px;
  background: rgba(22, 51, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-100%);
  animation: cueSlide 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

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

.intro-channels {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 700;
  color: var(--ink);
}

.intro-channels a {
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.intro-channels a:hover {
  opacity: 1;
}

/* ================================
   Stacking Card Sections
   (Wise.design/brand Section 05 style)
   ================================ */
.work-section {
  background: var(--bg);
  color: var(--ink);
  padding: 56px 32px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.work-section-motion {
  background: var(--cream);
  border-top: 1px solid var(--hairline);
  padding: 64px 32px 96px;
}

.work-header {
  width: 100%;
  max-width: 1600px;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.work-header p {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.work-header-index {
  width: 131px;
  flex-shrink: 0;
}

.work-header-col {
  flex: 1 0 0;
}

.stack-track {
  position: relative;
  width: 100%;
  max-width: 1600px;
  overflow: clip;
}

.stack-sticky {
  position: sticky;
  top: 100px;
  width: 100%;
  height: clamp(440px, 62svh, 570px);
}

.stack-deck {
  position: relative;
  width: 100%;
  height: 100%;
}

.stack-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 3.6vw, 52px);
  background: var(--card-bg, var(--lime));
  color: var(--card-ink, var(--pine));
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.stack-card-info {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding-right: clamp(0px, 1.5vw, 24px);
}

.stack-card-top {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 14px);
}

.stack-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.76;
}

.stack-card-headline {
  margin: 0;
  font-family: var(--font-caesura);
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.stack-card-subtitle {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.35rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  max-width: 34ch;
}

.stack-card-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent);
}

.stack-card-desc {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(0.88rem, 0.98vw, 1rem);
  line-height: 1.48;
  letter-spacing: -0.01em;
  opacity: 0.88;
  max-width: 52ch;
}

.guideline-link-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.guideline-link-btn:hover {
  background: currentColor;
  border-color: currentColor;
  transform: translateY(-1px);
}

.guideline-link-btn:hover span {
  color: var(--card-bg, #ffffff);
}

.stack-card-visual {
  flex: 0 0 auto;
  position: relative;
  width: min(44%, 386px, 43svh);
  aspect-ratio: 4 / 5;
  min-width: 0;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.14);
}

.stack-card-visual--landscape {
  width: min(54%, 640px, 82svh);
  aspect-ratio: 16 / 9;
}

.stack-card-visual img,
.stack-card-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video wrap & sound toggle */
.video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0d0c;
}

.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sound-btn {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transform: scale(1);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.sound-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.stack-card-visual:hover .sound-btn {
  opacity: 1;
  transform: scale(1);
}

.sound-btn.is-on {
  opacity: 1;
  transform: scale(1);
  background: rgba(146, 255, 95, 0.9);
  border-color: transparent;
  color: #163300;
}

.sound-btn:hover {
  background: rgba(146, 255, 95, 0.9);
  border-color: transparent;
  color: #163300;
}

/* Built-in Kinetic Logo Motion Stage */
.kinetic-stage {
  width: 100%;
  height: 100%;
  background: var(--pine);
  color: var(--hero-lime);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.kinetic-stage::before {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(146, 255, 95, 0.22);
  animation: kineticPulse 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.kinetic-mark {
  width: 42%;
  max-width: 160px;
  position: relative;
  z-index: 1;
  animation: kineticFloat 4s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.kinetic-mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.kinetic-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

@keyframes kineticFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.08) rotate(-4deg); }
  75% { transform: scale(0.97) rotate(2deg); }
}

@keyframes kineticPulse {
  0%, 100% { transform: scale(0.86); opacity: 0.25; }
  50% { transform: scale(1.16); opacity: 0.65; }
}

/* ================================
   Full-Bleed Lime Footer
   (Wise.design/brand footer style)
   ================================ */
.site-footer {
  width: 100%;
  background: var(--lime);
  color: var(--pine);
  padding: 120px 32px 60px;
}

.footer-inner {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.footer-wordmark {
  display: block;
  width: 100%;
  color: var(--pine);
}

.footer-wordmark svg {
  width: 100%;
  height: auto;
  display: block;
}

.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.footer-copyright {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.36;
  letter-spacing: -0.54px;
  color: var(--pine);
}

.footer-links-wrap {
  display: flex;
  justify-content: space-between;
  gap: clamp(48px, 8vw, 160px);
  min-width: min(440px, 100%);
}

.footer-link-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.footer-link-col a {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.36;
  letter-spacing: -0.54px;
  color: var(--pine);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.footer-link-col a:hover {
  opacity: 0.65;
}

/* ================================
   Brand Guideline Modal
   ================================ */
.guideline-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 22, 10, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guideline-modal[hidden] {
  display: none;
}

.guideline-sheet {
  width: min(1120px, 100%);
  max-height: min(88svh, 820px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--cream);
  color: var(--pine);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}

.guideline-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 28px;
  background: rgba(246, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.guideline-topbar-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

.guideline-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guideline-nav-btn,
.guideline-close-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: var(--pine);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.guideline-nav-btn:hover,
.guideline-close-btn:hover {
  background: var(--lime);
}

.guideline-body {
  padding: 32px 28px 36px;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: start;
}

.guideline-preview {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(0, 0, 0, 0.06);
}

.guideline-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.guideline-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guideline-title {
  margin: 0;
  font-family: var(--font-caesura);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.guideline-summary {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.guideline-block {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guideline-block-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.68;
}

.guideline-block-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.guideline-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.guideline-swatch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.guideline-swatch:hover {
  transform: translateY(-2px);
  border-color: var(--pine);
}

.swatch-chip {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.swatch-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.swatch-hex {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.7;
}

.guideline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guideline-tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  font-size: 0.82rem;
  font-weight: 600;
}

.guideline-pdf-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--hero-lime);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 100;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--hero-lime);
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================
   Responsive (Tablet & Mobile)
   ================================ */
@media (max-width: 900px) {
  .topbar-inner,
  .intro-inner {
    width: calc(100% - 36px);
  }

  .topbar-nav {
    gap: 16px;
    font-size: 0.85rem;
  }

  .intro-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .work-section,
  .work-section-motion {
    padding: 48px 18px 72px;
    gap: 32px;
  }

  .work-header {
    flex-direction: column;
    gap: 8px;
  }

  .work-header-index {
    width: auto;
  }

  .stack-track {
    height: auto !important;
    overflow: visible;
  }

  .stack-sticky {
    position: static;
    height: auto;
  }

  .stack-deck {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }

  .stack-card {
    position: static;
    height: auto;
    transform: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 28px 24px;
  }

  .stack-card-info {
    flex: none;
    height: auto;
    padding-right: 0;
    gap: 24px;
  }

  .stack-card-visual {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .stack-card-visual--landscape {
    aspect-ratio: 16 / 9;
  }

  .site-footer {
    padding: 72px 18px 44px;
  }

  .footer-inner {
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-links-wrap {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 56px;
  }

  .guideline-modal {
    padding: 12px;
  }

  .guideline-topbar {
    padding: 16px 18px;
  }

  .guideline-body {
    grid-template-columns: 1fr;
    padding: 20px 18px 28px;
    gap: 24px;
  }
}
