:root {
  --ink: #1f1b18;
  --soft-ink: #40322a;
  --muted: #7a675c;
  --paper: #fff9f3;
  --cream: #fff0d9;
  --cocoa: #3a1508;
  --ganache: #1d0d08;
  --orange: #f05a08;
  --amber: #ff9f05;
  --gold: #ffd35a;
  --line: rgba(58, 21, 8, .14);
  --shadow: 0 24px 60px rgba(58, 21, 8, .16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 211, 90, .16), transparent 420px),
    var(--paper);
  line-height: 1.5;
}

body.nav-locked {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 58px);
  background: rgba(255, 249, 243, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--ganache);
}

.brand img {
  width: 58px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(240, 90, 8, .18));
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transition: transform .24s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--orange);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.header-cta,
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 34px rgba(240, 90, 8, .28);
}

.button.ghost {
  color: var(--cocoa);
  border-color: rgba(240, 90, 8, .32);
  background: rgba(255, 255, 255, .7);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--cocoa);
  transition: transform .22s ease, opacity .22s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 211, 90, .24), transparent 35%),
    linear-gradient(310deg, rgba(240, 90, 8, .18), transparent 44%);
}

.hero-copy,
.hero-stage {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(44px, 7vw, 92px);
  line-height: .96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 10px 0 8px;
  font-size: 23px;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stage {
  min-height: clamp(360px, 48vw, 640px);
  display: grid;
  place-items: center;
  isolation: isolate;
}

.glow-ring {
  position: absolute;
  width: min(74vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 159, 5, .34);
  border-radius: 50%;
  background:
    conic-gradient(from 90deg, rgba(240, 90, 8, .08), rgba(255, 211, 90, .34), rgba(58, 21, 8, .1), rgba(240, 90, 8, .08));
  animation: slow-spin 18s linear infinite;
  filter: blur(.2px);
}

.hero-brand {
  position: relative;
  z-index: 2;
  width: min(94%, 620px);
  filter: drop-shadow(0 34px 45px rgba(58, 21, 8, .34));
  animation: float-logo 5s ease-in-out infinite;
}

.hero-photo {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(58, 21, 8, .24);
}

.chip {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--orange) 58%, var(--cocoa));
  box-shadow: 0 16px 24px rgba(58, 21, 8, .22);
  animation: drift 4.8s ease-in-out infinite;
}

.chip-a {
  top: 18%;
  left: 10%;
}

.chip-b {
  right: 8%;
  top: 30%;
  animation-delay: .8s;
}

.chip-c {
  left: 20%;
  bottom: 16%;
  animation-delay: 1.4s;
}

.section {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.intro-flow {
  background: #fff;
}

.flow-cards,
.product-grid,
.document-grid,
.partner-steps,
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.flow-cards.five-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-cards.two-cards,
.split-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.flow-cards article,
.product-card,
.document-item,
.step,
.metric,
.side-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 34px rgba(58, 21, 8, .08);
}

.flow-cards article,
.document-item,
.step,
.metric,
.side-panel,
.contact-form {
  padding: 26px;
}

.flow-cards span,
.step span,
.document-item span {
  color: var(--orange);
  font-weight: 900;
}

.flow-cards p,
.product-card p,
.document-item p,
.step p,
.side-panel p,
.story-list p {
  color: var(--muted);
}

.signature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: linear-gradient(135deg, var(--ganache), #4a1b0c);
  color: #fff;
}

.signature-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .32);
}

.signature-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, .74);
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--orange);
  font-weight: 900;
}

.signature-copy .text-link {
  color: var(--gold);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.mini-list p {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 211, 90, .26);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  font-weight: 900;
}

.metrics {
  background: var(--cream);
}

.metric {
  display: grid;
  gap: 10px;
  background: #fffaf6;
}

.metric strong {
  color: var(--orange);
  font-size: clamp(48px, 7vw, 84px);
  line-height: .9;
}

.metric span {
  color: var(--soft-ink);
  font-weight: 800;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: clamp(18px, 4vw, 58px);
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 211, 90, .88), rgba(240, 90, 8, .92)),
    var(--amber);
  box-shadow: var(--shadow);
}

.page {
  min-height: 70vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(58px, 9vw, 110px) clamp(18px, 5vw, 72px) clamp(42px, 6vw, 80px);
  background:
    linear-gradient(135deg, rgba(255, 249, 243, .96), rgba(255, 211, 90, .34)),
    var(--paper);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 8%;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  background: url("../assets/logo/chocominds-logo-transparent-cropped.png") center / contain no-repeat;
  opacity: .09;
  transform: rotate(-8deg);
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.page-kicker img {
  width: clamp(88px, 14vw, 170px);
  margin-bottom: 18px;
  filter: drop-shadow(0 16px 24px rgba(240, 90, 8, .18));
}

.about-hero .page-kicker img {
  width: clamp(180px, 30vw, 360px);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  overflow: hidden;
  padding: 0 0 24px;
}

.product-card > :not(.product-visual) {
  margin-left: 22px;
  margin-right: 22px;
}

.product-card h2,
.document-item h2,
.side-panel h2,
.step h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.product-visual {
  height: 170px;
  margin-bottom: 22px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.product-visual::before,
.product-visual::after {
  content: "";
  position: absolute;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold), var(--orange) 58%, var(--cocoa));
  box-shadow: inset 0 -8px 0 rgba(58, 21, 8, .22);
}

.product-visual::before {
  width: 120px;
  height: 82px;
  left: 28px;
  bottom: 28px;
}

.product-visual::after {
  width: 88px;
  height: 88px;
  right: 28px;
  top: 28px;
  transform: rotate(12deg);
}

.product-visual.tablet {
  background: linear-gradient(135deg, #2a1008, #6e280b);
}

.product-visual.bites {
  background: linear-gradient(135deg, #fff0d9, #ff9f05);
}

.product-visual.gift {
  background: linear-gradient(135deg, #fff9f3, #ffd35a);
}

.product-visual.reseller {
  background: linear-gradient(135deg, #3a1508, #f05a08);
}

.product-visual.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presence-section {
  background: #fff;
}

.presence-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
}

.map-visual {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(58, 21, 8, .1);
  background: #fff;
}

.location-list,
.contact-details {
  display: grid;
  gap: 12px;
}

.location-list p,
.contact-details p {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.location-list p:last-child,
.contact-details p:last-child {
  border-bottom: 0;
}

.location-list strong,
.contact-details strong {
  color: var(--cocoa);
}

.location-list span,
.contact-details span {
  color: var(--muted);
  text-align: right;
}

.document-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-item em {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cocoa);
  font-style: normal;
  font-weight: 900;
}

.story-grid,
.form-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
  gap: clamp(26px, 6vw, 76px);
  align-items: start;
}

.story-list {
  display: grid;
  gap: 16px;
}

.story-list article {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.story-list article:last-child {
  border-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft-ink);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--ink);
  background: #fffaf6;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(240, 90, 8, .12);
}

textarea {
  resize: vertical;
}

.side-panel {
  background:
    linear-gradient(135deg, rgba(255, 211, 90, .42), rgba(255, 255, 255, .78)),
    #fff;
}

.partner-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-strip {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 34px rgba(58, 21, 8, .08);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, .76);
  background: var(--ganache);
}

.footer-brand {
  color: #fff;
}

.footer-brand img {
  width: 52px;
  height: 40px;
  object-fit: contain;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .72s ease, transform .72s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: .12s;
}

.delay-2 {
  transition-delay: .24s;
}

@keyframes float-logo {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.015);
  }
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-18px) rotate(-8deg);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1060px) {
  .hero,
  .signature-band,
  .story-grid,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 420px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-cards.five-cards,
  .presence-layout,
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-header.nav-open .site-nav {
    position: fixed;
    inset: 71px 14px auto;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 249, 243, .98);
    box-shadow: var(--shadow);
  }

  .site-header.nav-open .site-nav a {
    padding: 13px 10px;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .flow-cards,
  .document-grid,
  .partner-steps,
  .metrics,
  .flow-cards.two-cards,
  .split-story {
    grid-template-columns: 1fr;
  }

  .cta-panel,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 580px) {
  .brand span {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-stage {
    min-height: 330px;
  }

  .chip {
    width: 32px;
    height: 32px;
  }

  .actions,
  .button,
  .header-cta {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    height: 150px;
  }

  .gallery-grid img {
    height: 240px;
  }

  .location-list p,
  .contact-details p {
    display: grid;
    gap: 4px;
  }

  .location-list span,
  .contact-details span {
    text-align: left;
  }
}
