:root {
  --pink-50: #fff7f6;
  --pink-100: #fde8e6;
  --pink-200: #f5c8c6;
  --pink-300: #e8a4a8;
  --pink-500: #c96b74;
  --ink: #1c1416;
  --ink-soft: #5c4a4e;
  --line: rgba(28, 20, 22, 0.12);
  --white: #fffcfb;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background:
    radial-gradient(120% 80% at 10% -10%, #ffe3e0 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #f7d4d8 0%, transparent 45%),
    linear-gradient(180deg, var(--pink-50) 0%, var(--white) 40%, #fff4f2 100%);
  min-height: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 252, 251, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 252, 251, 0.88);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--pink-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* Hero — one composition, full-bleed product */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 22, 0.08) 0%, rgba(28, 20, 22, 0.55) 72%, rgba(28, 20, 22, 0.78) 100%),
    linear-gradient(90deg, rgba(28, 20, 22, 0.45) 0%, transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(6.5rem, 14vh, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vh, 4rem);
  color: var(--white);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero h1 {
  font-size: clamp(1.65rem, 4.2vw, 2.75rem);
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 0.85rem;
  animation: riseIn 0.9s var(--ease) 0.12s both;
}

.lede {
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(255, 252, 251, 0.88);
  margin-bottom: 1.6rem;
  animation: riseIn 0.9s var(--ease) 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: riseIn 0.9s var(--ease) 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--pink-100);
}

.btn-ghost {
  border-color: rgba(255, 252, 251, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 252, 251, 0.12);
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-500);
  margin-bottom: 0.75rem;
}

.section h2 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section-lede {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.feature-rail {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-rail li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--pink-300);
  padding-top: 0.2rem;
}

.feature-rail h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.feature-rail p {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 42ch;
}

@media (min-width: 900px) {
  .feature-rail {
    grid-template-columns: 1fr 1fr;
    border-top: none;
    gap: 0 3rem;
  }

  .feature-rail li {
    border-top: 1px solid var(--line);
  }

  .feature-rail li:nth-child(1),
  .feature-rail li:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

/* How */
.how {
  background:
    linear-gradient(180deg, transparent, rgba(253, 232, 230, 0.65) 20%, rgba(253, 232, 230, 0.65) 80%, transparent);
}

.how-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .how-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
    gap: 4rem;
  }
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0 1.5rem 4rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink-500);
}

.steps strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.steps span {
  color: var(--ink-soft);
}

/* Modes */
.modes-split {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.mode {
  background: rgba(255, 252, 251, 0.65);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(0.25rem, 1vw, 0.5rem);
}

.mode h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
}

.mode p {
  max-width: 36ch;
  color: var(--ink-soft);
}

@media (min-width: 800px) {
  .modes-split {
    grid-template-columns: 1fr 1fr;
  }

  .mode:first-child {
    padding-right: 2.5rem;
  }

  .mode:last-child {
    padding-left: 2.5rem;
  }
}

/* CES */
.ces-panel {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(232, 164, 168, 0.45), transparent 55%),
    linear-gradient(145deg, #2a1c1f 0%, #4a2e34 55%, #6b3d45 100%);
  color: var(--white);
}

.ces .eyebrow {
  color: var(--pink-200);
}

.ces .section-lede {
  color: rgba(255, 252, 251, 0.78);
}

.ces-meta {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 2rem;
  padding: 0;
}

@media (min-width: 640px) {
  .ces-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ces-meta div {
  margin: 0;
}

.ces-meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 252, 251, 0.55);
  margin-bottom: 0.35rem;
}

.ces-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.ces .btn-primary {
  background: var(--white);
  color: var(--ink);
}

/* Contact */
.contact-inner {
  text-align: left;
}

.contact-lines {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-lines a {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--pink-300);
  width: fit-content;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-lines a:hover {
  color: var(--pink-500);
  border-color: var(--pink-500);
}

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Motion */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .brand,
  .hero h1,
  .lede,
  .hero-actions,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}
