:root {
  color-scheme: dark;
  --ink: #f7f1e6;
  --muted: #b8ad9e;
  --soft: #d9ccb8;
  --bg: #10130f;
  --bg-2: #171914;
  --panel: rgba(247, 241, 230, 0.075);
  --line: rgba(247, 241, 230, 0.16);
  --gold: #c9a76a;
  --sage: #83906f;
  --moss: #2f3b2d;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --ease: cubic-bezier(.2, .72, .15, 1);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(131, 144, 111, 0.2), transparent 28rem),
    linear-gradient(135deg, #10130f 0%, #171914 48%, #201b14 100%);
  min-height: 100vh;
  opacity: 0;
  transition: opacity 260ms ease;
  letter-spacing: 0;
}

body.is-ready {
  opacity: 1;
}

body.is-leaving {
  opacity: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 112px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(16, 19, 15, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 116px;
}

.brand img {
  width: clamp(96px, 7vw, 118px);
  max-height: 82px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  margin-right: clamp(18px, 3vw, 42px);
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 2px;
  transition: color 360ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 420ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  place-items: center;
}

.menu-toggle span {
  width: 19px;
  height: 1px;
  background: currentColor;
  display: block;
  transition: transform 360ms var(--ease);
}

.menu-toggle span + span {
  margin-top: 6px;
}

main {
  overflow: hidden;
}

.hero,
.page-hero,
.intro-grid,
.split-feature,
.category-band,
.text-page,
.story-section,
.contact-panel {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.home-hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.6fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(54px, 9vw, 112px) 0 clamp(42px, 7vw, 80px);
}

.hero-shell {
  max-width: 830px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.05rem, 4.4vw, 4.35rem);
  line-height: 1;
  max-width: 12ch;
  margin-bottom: 28px;
}

.home-page h1 {
  font-size: clamp(2.2rem, 4.45vw, 4.55rem);
  max-width: 10.8ch;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 3.3rem);
  line-height: 1.04;
}

.hero-copy,
.page-hero p,
.split-feature p,
.text-page p,
.contact-panel p,
.story-copy p {
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.8;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--line);
  font-weight: 600;
  transition: transform 360ms var(--ease), background 360ms var(--ease), border-color 360ms var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn.primary {
  color: #15120b;
  background: linear-gradient(135deg, #e3c985, var(--gold));
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.hero-orbit {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  position: relative;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 0;
  opacity: 0.94;
}

.hero-orbit img:first-child {
  grid-row: 1 / 3;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.06), rgba(16, 19, 15, 0.22));
  pointer-events: none;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: clamp(62px, 8vw, 110px);
}

.intro-grid article {
  background: rgba(16, 19, 15, 0.86);
  padding: clamp(24px, 4vw, 42px);
}

.intro-grid span,
.contact-panel span,
.story-copy span {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.intro-grid h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.intro-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  padding: clamp(38px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: clamp(54px, 8vw, 100px) 0;
}

.category-link {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(201, 167, 106, 0.12), rgba(131, 144, 111, 0.1));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 480ms var(--ease), border-color 480ms var(--ease);
}

.category-link:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 167, 106, 0.44);
}

.category-link small {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.category-link strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 500;
  margin: 14px 0;
}

.category-link span {
  color: var(--soft);
}

.page-hero {
  padding: clamp(44px, 7vw, 78px) 0 clamp(26px, 4vw, 48px);
}

.page-hero.compact h1,
.story-intro h1 {
  max-width: 14ch;
  font-size: clamp(1.95rem, 3.8vw, 3.55rem);
}

.story-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.story-intro p {
  max-width: 620px;
}

.text-page {
  max-width: 900px;
  padding: clamp(82px, 10vw, 126px) 0 clamp(60px, 10vw, 130px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-page h2 {
  margin-bottom: 24px;
}

.statement-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.statement-row strong {
  border: 1px solid var(--line);
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.04);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.52fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  padding: 18px 0 clamp(76px, 10vw, 132px);
}

.story-page main {
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: center;
}

.minimal-story {
  width: min(760px, calc(100% - 36px));
  min-height: calc(100vh - 112px);
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: clamp(16px, 2.5vw, 28px) 0 clamp(24px, 3vw, 34px);
}

.story-heading {
  text-align: center;
}

.story-heading h1 {
  margin: 0 0 4px;
  max-width: none;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

.story-copy {
  position: relative;
  z-index: 2;
}

.story-copy h2 {
  margin: 16px 0;
}

.story-controls {
  display: flex;
  gap: 12px;
  margin-top: 0;
}

.story-controls button {
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.story-controls button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(201, 167, 106, 0.44);
}

.story-controls svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
}

.story-controls [data-play].is-paused .icon-pause,
.story-controls [data-play]:not(.is-paused) .icon-play {
  display: none;
}

.story-phone {
  width: auto;
  height: min(690px, calc(100vh - 184px));
  max-width: 92vw;
  aspect-ratio: 9 / 16;
  justify-self: center;
  position: relative;
  border: 1px solid rgba(247, 241, 230, 0.28);
  background: #070807;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

.story-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  z-index: 5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}

.story-progress button {
  height: 3px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
}

.story-progress button::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: #fff4df;
  transform: scaleX(0);
  transform-origin: left;
}

.story-progress button.is-active::before {
  animation: storyBar 5200ms linear forwards;
}

.story-stage,
.story-slide {
  position: absolute;
  inset: 0;
}

.story-slide {
  opacity: 0;
  transition: opacity 220ms ease;
  will-change: opacity;
}

.story-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.story-slide img,
.story-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-watermark {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  width: min(92px, 23%);
  opacity: 0.42;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.story-tap-zone {
  position: absolute;
  top: 36px;
  bottom: 0;
  z-index: 3;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.story-tap-zone.left {
  left: 0;
  width: 42%;
}

.story-tap-zone.right {
  right: 0;
  width: 58%;
}

.compact-controls {
  width: auto;
  margin-top: 0;
  justify-content: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: clamp(72px, 10vw, 132px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  margin: 12px 0;
}

.whatsapp-float {
  position: fixed;
  right: clamp(16px, 3vw, 30px);
  bottom: clamp(16px, 3vw, 30px);
  z-index: 12;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #2fd66f, #128c4a);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(18, 140, 74, 0.36);
  transition: transform 360ms var(--ease), box-shadow 360ms var(--ease);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 54px rgba(18, 140, 74, 0.48);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

@keyframes storyBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 860px) {
  .site-header {
    min-height: 98px;
    padding: 9px 18px;
  }

  .brand {
    min-width: 150px;
  }

  .brand img {
    width: 158px;
    max-height: 82px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 98px;
    display: grid;
    gap: 2px;
    padding: 14px;
    background: rgba(16, 19, 15, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 360ms var(--ease), transform 360ms var(--ease), visibility 360ms var(--ease);
    margin-right: 0;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    padding: 14px 8px;
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }

  .home-hero,
  .story-intro,
  .story-section,
  .split-feature,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding-top: clamp(42px, 10vw, 78px);
  }

  .hero-orbit {
    min-height: 300px;
  }

  .intro-grid,
  .category-band {
    grid-template-columns: 1fr;
  }

  .story-page main,
  .minimal-story {
    min-height: calc(100svh - 98px);
  }

  .story-phone {
    height: min(670px, calc(100svh - 174px));
    max-width: min(390px, 100%);
  }
}

@media (max-width: 540px) {
  .hero,
  .page-hero,
  .intro-grid,
  .split-feature,
  .category-band,
  .text-page,
  .story-section,
  .contact-panel {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 92px;
    padding: 7px 14px;
  }

  .brand {
    min-width: 146px;
  }

  .brand img {
    width: 166px;
    max-height: 82px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
    max-width: 11.5ch;
  }

  .home-page h1 {
    font-size: clamp(2rem, 9.2vw, 3.05rem);
    max-width: 10.8ch;
  }

  .page-hero.compact h1,
  .story-intro h1 {
    font-size: clamp(2rem, 9.5vw, 3.05rem);
    max-width: 11.4ch;
  }

  .hero-actions,
  .story-controls {
    width: 100%;
  }

  .compact-controls {
    width: auto;
  }

  .btn {
    flex: 1;
  }

  .story-controls button {
    flex: 0 0 52px;
  }

  .story-phone {
    height: min(640px, calc(100svh - 184px));
    max-width: 100%;
  }

  .minimal-story {
    min-height: calc(100svh - 92px);
    padding: 12px 0 22px;
  }

  .story-watermark {
    width: min(78px, 24%);
    left: 14px;
    bottom: 13px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
