:root {
  --ink: #282522;
  --muted: #72665b;
  --paper: #fffaf2;
  --cream: #f6ecd9;
  --linen: #fbf7ef;
  --cocoa: #6d3f2f;
  --caramel: #c8784a;
  --butter: #e8bd62;
  --sage: #2f5f56;
  --mint: #d7e6df;
  --berry: #9c3f52;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(43, 35, 28, 0.16);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(232, 189, 98, 0.12), transparent 32%),
    linear-gradient(45deg, rgba(47, 95, 86, 0.1), transparent 34%),
    var(--linen);
  line-height: 1.5;
  max-width: 100%;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

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

.scroll-meter {
  position: fixed;
  inset: 0 auto auto 0;
  width: var(--scroll, 0%);
  height: 3px;
  z-index: 30;
  background: linear-gradient(90deg, var(--butter), var(--caramel), var(--berry), var(--sage));
  transform-origin: left;
  box-shadow: 0 0 18px rgba(232, 189, 98, 0.45);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition:
    background 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 10px 30px rgba(43, 35, 28, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  background: var(--butter);
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 0 0 0 rgba(232, 189, 98, 0.5);
  animation: brandPulse 2800ms ease-in-out infinite;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 900;
}

.site-nav a {
  position: relative;
  opacity: 0.88;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  min-height: 74svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  right: -4vw;
  bottom: -2.5vw;
  z-index: -1;
  color: rgba(255, 255, 255, 0.08);
  content: "CEYAM";
  font-size: clamp(5rem, 18vw, 16rem);
  font-weight: 950;
  line-height: 0.8;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: -6% 0 auto;
  z-index: -3;
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
  filter: saturate(1.08) contrast(1.05);
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(30, 23, 18, 0.88), rgba(30, 23, 18, 0.38) 48%, rgba(30, 23, 18, 0.1)),
    linear-gradient(0deg, rgba(20, 16, 13, 0.62), rgba(20, 16, 13, 0.04) 42%);
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 8vw, 110px);
  padding-top: 78px;
}

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

.hero .eyebrow {
  color: var(--butter);
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(5.2rem, 17vw, 13rem);
  font-weight: 950;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

h2 {
  max-width: 880px;
  font-size: clamp(2.1rem, 6vw, 5.1rem);
  font-weight: 920;
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 850;
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.4vw, 1.48rem);
  font-weight: 720;
}

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

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 950;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button::after {
  position: absolute;
  inset: -70% auto -70% -40%;
  width: 40%;
  content: "";
  background: rgba(255, 255, 255, 0.34);
  transform: skewX(-18deg) translateX(-170%);
  transition: transform 520ms ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.02);
}

.button:hover::after {
  transform: skewX(-18deg) translateX(390%);
}

.button.primary {
  color: var(--ink);
  background: var(--butter);
}

.button.primary:hover {
  background: #f0ca78;
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-bites {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-bites span,
.order-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: softFloat 5200ms ease-in-out infinite;
}

.hero-bites span:nth-child(2),
.order-highlights span:nth-child(2) {
  animation-delay: 700ms;
}

.hero-bites span:nth-child(3),
.order-highlights span:nth-child(3) {
  animation-delay: 1400ms;
}

.marquee-band {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  color: var(--ink);
  background: var(--butter);
  border-block: 2px solid rgba(40, 37, 34, 0.16);
  contain: paint;
}

.marquee-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 34px;
  padding: 14px 0;
  font-size: clamp(1.05rem, 2.3vw, 1.75rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marqueeMove 22000ms linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
}

.marquee-track span::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  content: "";
  background: var(--berry);
}

.process-section,
.collection-section,
.quote-band,
.order-section {
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.fresh-band {
  padding: clamp(38px, 6vw, 72px) clamp(18px, 5vw, 72px) clamp(64px, 9vw, 118px);
  background: var(--white);
}

.section-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.section-copy h2 {
  color: var(--sage);
}

.fresh-points {
  display: grid;
  gap: 16px;
}

.point,
.process-step,
.cookie-card {
  border: 1px solid rgba(40, 37, 34, 0.1);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(43, 35, 28, 0.06);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.point:hover,
.process-step:hover,
.cookie-card:hover {
  border-color: rgba(200, 120, 74, 0.4);
  box-shadow: 0 22px 54px rgba(43, 35, 28, 0.13);
  transform: translateY(-6px);
}

.point {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px 22px;
  padding: 24px;
}

.point span {
  grid-row: span 2;
  color: var(--berry);
  font-size: 1rem;
  font-weight: 950;
}

.point p,
.process-step p,
.cookie-card p,
.order-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.process-section {
  background:
    linear-gradient(180deg, var(--linen), #eef6f1 100%),
    linear-gradient(90deg, rgba(156, 63, 82, 0.08), transparent 38%);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto clamp(34px, 6vw, 60px);
}

.section-heading h2 {
  color: var(--ink);
}

.process-track {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-height: 262px;
  padding: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.process-step.is-active {
  border-color: rgba(47, 95, 86, 0.36);
  box-shadow: 0 24px 60px rgba(47, 95, 86, 0.18);
}

.process-step::after {
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: rgba(47, 95, 86, 0.1);
  counter-increment: process;
  content: "0" counter(process);
  font-size: 5.4rem;
  font-weight: 950;
  line-height: 1;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  border-radius: 50%;
  color: var(--sage);
  background: var(--mint);
  transition:
    background 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.process-step.is-active .step-icon,
.process-step:hover .step-icon {
  color: var(--white);
  background: var(--sage);
  transform: rotate(-7deg) scale(1.08);
}

.step-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.collection-section {
  background:
    linear-gradient(135deg, rgba(156, 63, 82, 0.34), transparent 34%),
    linear-gradient(225deg, rgba(232, 189, 98, 0.24), transparent 32%),
    var(--ink);
  color: var(--white);
}

.collection-section .section-heading h2 {
  color: var(--white);
}

.collection-section .eyebrow {
  color: var(--butter);
}

.cookie-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cookie-card {
  min-height: 305px;
  padding: 26px;
  color: var(--ink);
  background: var(--white);
}

.cookie-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.cookie-swatch {
  width: 88px;
  height: 88px;
  margin-bottom: 42px;
  border: 7px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(40, 37, 34, 0.08),
    0 16px 34px rgba(43, 35, 28, 0.14);
}

.cookie-card.in-view .cookie-swatch {
  animation: cookiePop 820ms cubic-bezier(0.2, 1.25, 0.28, 1) both;
}

.cookie-swatch.chocolate {
  background:
    radial-gradient(circle at 28% 26%, #3a2119 0 8%, transparent 9%),
    radial-gradient(circle at 70% 65%, #422117 0 10%, transparent 11%),
    #bd7d49;
}

.cookie-swatch.pistachio {
  background:
    radial-gradient(circle at 30% 34%, #f7efe3 0 8%, transparent 9%),
    radial-gradient(circle at 68% 56%, #7d9d55 0 10%, transparent 11%),
    #d2b76d;
}

.cookie-swatch.citrus {
  background:
    radial-gradient(circle at 70% 28%, #f3d66d 0 9%, transparent 10%),
    radial-gradient(circle at 34% 66%, #b48142 0 7%, transparent 8%),
    #e9c987;
}

.tag {
  margin: 0 0 8px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quote-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232, 189, 98, 0.18), transparent 36%),
    var(--sage);
  color: var(--white);
}

.quote-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

.quote-inner {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
}

.quote-mark {
  display: block;
  color: rgba(255, 255, 255, 0.22);
  font-size: clamp(3rem, 12vw, 9rem);
  font-weight: 950;
  line-height: 0.78;
}

.quote-inner p {
  max-width: 840px;
  margin: 26px 0 0;
  font-size: clamp(1.8rem, 5vw, 4.4rem);
  font-weight: 950;
  line-height: 1.08;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(140deg, rgba(232, 189, 98, 0.22), transparent 32%),
    linear-gradient(40deg, rgba(47, 95, 86, 0.13), transparent 42%),
    var(--white);
}

.order-copy {
  max-width: 690px;
  position: sticky;
  top: 104px;
}

.order-copy h2 {
  color: var(--sage);
}

.order-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.order-highlights span {
  color: var(--ink);
  border-color: rgba(40, 37, 34, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.order-form {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 2px solid rgba(40, 37, 34, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.9);
  box-shadow: 0 28px 80px rgba(43, 35, 28, 0.16);
  backdrop-filter: blur(18px);
}

.order-form::before {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 76px;
  height: 76px;
  border: 10px solid rgba(200, 120, 74, 0.2);
  border-radius: 50%;
  content: "";
  opacity: 0.72;
  pointer-events: none;
  animation: cookieStamp 9000ms linear infinite;
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  border: 2px solid rgba(40, 37, 34, 0.11);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  outline: none;
  padding: 12px 14px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 95, 86, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 95, 86, 0.12);
  transform: translateY(-2px);
}

.form-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #171512;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--white);
  font-weight: 950;
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.98);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  transform: translateX(-46px) scale(0.98);
}

.reveal-right {
  transform: translateX(46px) scale(0.98);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left.in-view,
.reveal-right.in-view {
  transform: translateX(0) scale(1);
}

.fresh-points .reveal:nth-child(2),
.process-track .reveal:nth-child(2),
.cookie-grid .reveal:nth-child(2) {
  transition-delay: 90ms;
}

.fresh-points .reveal:nth-child(3),
.process-track .reveal:nth-child(3),
.cookie-grid .reveal:nth-child(3) {
  transition-delay: 180ms;
}

.process-track .reveal:nth-child(4) {
  transition-delay: 270ms;
}

@keyframes brandPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 189, 98, 0.48);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(232, 189, 98, 0);
    transform: scale(1.04);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes marqueeMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes cookiePop {
  0% {
    transform: rotate(-16deg) scale(0.62);
  }

  70% {
    transform: rotate(8deg) scale(1.08);
  }

  100% {
    transform: rotate(0) scale(1);
  }
}

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

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    padding: 14px 18px;
  }

  .site-nav {
    max-width: 62%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.84rem;
  }

  .hero-content {
    margin-left: 18px;
    padding-top: 104px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(30, 23, 18, 0.82), rgba(30, 23, 18, 0.44)),
      linear-gradient(0deg, rgba(20, 16, 13, 0.7), rgba(20, 16, 13, 0.06) 42%);
  }

  .section-grid,
  .process-track,
  .cookie-grid,
  .order-section {
    grid-template-columns: 1fr;
  }

  .order-copy {
    position: static;
  }

  .process-step,
  .cookie-card {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 74svh;
  }

  h1 {
    font-size: clamp(4.25rem, 21vw, 6.4rem);
  }

  h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .button {
    width: 100%;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(42px) scale(0.98);
  }

  .reveal-left.in-view,
  .reveal-right.in-view {
    transform: translateY(0) scale(1);
  }

  .hero-bites,
  .order-highlights,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bites span,
  .order-highlights span {
    justify-content: center;
  }

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

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

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

  .hero-image {
    transform: none;
  }

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