/* ============================================================
   LAROOVA · Early Access
   Palette locked to brief. Luxury from light + whitespace.
   ============================================================ */

:root {
  --ivory:        #F5F0E8;   /* ground */
  --porcelain:    #FBF8F2;   /* lighter tint for rhythm, not a 2nd beige */
  --ink:          #211D19;   /* warm near-black */
  --taupe:        #8B735F;   /* single accent */

  --ink-90: rgba(33, 29, 25, 0.90);
  --ink-70: rgba(33, 29, 25, 0.68);
  --ink-52: rgba(33, 29, 25, 0.52);
  --hairline: rgba(33, 29, 25, 0.13);
  --hairline-soft: rgba(33, 29, 25, 0.08);
  --taupe-30: rgba(139, 115, 95, 0.30);
  --taupe-12: rgba(139, 115, 95, 0.12);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1200px;
  --pad-x: clamp(1.5rem, 5vw, 4.5rem);
  --section-y: clamp(5rem, 11vh, 9rem);
  --radius: 26px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.16rem);
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection { background: var(--taupe); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -3rem;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--ivory);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 200;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0.75rem; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--taupe);
}

.section__title {
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  color: var(--ink);
  margin-top: 1.1rem;
  /* editorial gradient: ink settling into taupe */
  background: linear-gradient(180deg, var(--ink) 0%, var(--taupe) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section__lede {
  max-width: 46ch;
  color: var(--ink-70);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.58;
  margin-top: 1.4rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }

/* ---------- buttons ---------- */
.btn {
  --btn-pad-y: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--btn-pad-y) 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: #000; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; padding-block: 1.05rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(245, 240, 232, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--hairline-soft);
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.15rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ink);
}
.nav__cta {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-70);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--taupe-30);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__cta:hover { color: var(--ink); border-bottom-color: var(--taupe); }

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(6rem, 12vh, 8rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
}
.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}
.hero__copy { max-width: 34rem; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-optical-sizing: auto;
  font-size: clamp(2.7rem, 1.6rem + 4.4vw, 5.1rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin-top: 1.5rem;
  color: var(--ink);
}

/* masked line reveal — each line rises out of its own clip */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em; /* keep descenders inside the clip */
}
.hero-line__inner {
  display: block;
  text-wrap: balance;
  transform: translateY(112%);
  animation: heroRise 1.15s var(--ease) 0.15s forwards;
  background: linear-gradient(180deg, var(--ink) 0%, var(--taupe) 135%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-line:nth-child(2) .hero-line__inner {
  animation-delay: 0.3s;
}
@keyframes heroRise {
  to { transform: translateY(0); }
}
.hero__sub {
  margin-top: 1.6rem;
  max-width: 33ch;
  color: var(--ink-70);
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* floating product video */
.hero__media { display: flex; justify-content: center; }
.floating {
  position: relative;
  width: min(100%, 360px);
}
.floating__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--porcelain);
  box-shadow:
    0 2px 4px rgba(33, 29, 25, 0.04),
    0 30px 60px -30px rgba(33, 29, 25, 0.28),
    0 60px 120px -60px rgba(139, 115, 95, 0.30);
  animation: float 8s var(--ease) infinite;
  will-change: transform;
}
.floating__frame::after {
  /* soft inner ring to seat any hard video edge into the light */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4),
              inset 0 -60px 80px -40px rgba(33, 29, 25, 0.12);
  pointer-events: none;
}
.floating__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.floating__shadow {
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 66%;
  height: 30px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(33, 29, 25, 0.20), transparent 70%);
  filter: blur(9px);
  animation: floatShadow 8s var(--ease) infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes floatShadow {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scaleX(1); }
  50%      { opacity: 0.5;  transform: translateX(-50%) scaleX(0.9); }
}

.hero__scroll {
  position: absolute;
  left: var(--pad-x);
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-52);
}
.hero__scroll-line {
  width: 46px;
  height: 1px;
  background: var(--ink-52);
  transform-origin: left;
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50%      { transform: scaleX(1); opacity: 1; }
}

/* ============================================================
   2 · PROBLEM
   ============================================================ */
.problem { background: var(--porcelain); }
.problem__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.problem__figure img {
  display: block;
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow:
    0 2px 4px rgba(33, 29, 25, 0.04),
    0 30px 60px -30px rgba(33, 29, 25, 0.22);
}
/* characters start dim; JS lights them with scroll */
#problem-lede .ch { opacity: 0.2; }
#problem-lede .w { display: inline-block; white-space: nowrap; }
.spec-row {
  list-style: none;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.spec {
  padding: 1.8rem 1.6rem 1.9rem 0;
  border-right: 1px solid var(--hairline);
}
.spec:last-child { border-right: none; padding-right: 0; }
.spec__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.spec__text {
  display: block;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--ink-52);
  max-width: 22ch;
}

/* ============================================================
   3 · SYSTEM · SUSPENSION  (signature)
   ============================================================ */
.system { background: var(--ivory); }
.system__head { max-width: 52rem; }
.system__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--taupe);
}
.system__body {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* the three anchor points, marked on the garment */
.anatomy {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}
.anatomy img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 2px 4px rgba(33, 29, 25, 0.04),
    0 30px 60px -30px rgba(33, 29, 25, 0.22);
}
.anatomy__node {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--taupe);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* ivory halo so the marker reads on both fabric and band */
  box-shadow: 0 0 0 3px rgba(251, 248, 242, 0.85);
  background: rgba(251, 248, 242, 0.35);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}
.anatomy__node::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--taupe);
  border-radius: 50%;
}
.anatomy.is-visible .anatomy__node { opacity: 1; }
.anatomy.is-visible .anatomy__node:nth-of-type(1) { transition-delay: 0.5s; }
.anatomy.is-visible .anatomy__node:nth-of-type(2) { transition-delay: 0.7s; }
.anatomy.is-visible .anatomy__node:nth-of-type(3) { transition-delay: 0.9s; }

.pillars {
  list-style: none;
  counter-reset: pillar;
  display: grid;
  gap: 0;
}
.pillar {
  counter-increment: pillar;
  position: relative;
  padding: 1.9rem 0;
  border-top: 1px solid var(--hairline);
}
.pillar:last-child { border-bottom: 1px solid var(--hairline); }
.pillar__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.pillar__text {
  color: var(--ink-70);
  max-width: 48ch;
  font-size: 1.04rem;
  line-height: 1.55;
}

/* ============================================================
   4 · ACCESS FORM
   ============================================================ */
.access { background: var(--porcelain); }
.access__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.access__intro { max-width: 30rem; }
.access__intro .section__lede { margin-bottom: 0; }

.form {
  display: grid;
  gap: 1.4rem;
  max-width: 30rem;
  width: 100%;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-70);
}
.field input,
.field textarea,
.select-wrap select {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0;
  width: 100%;
  transition: border-color 0.35s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-52); }
.field input:focus,
.field textarea:focus,
.select-wrap select:focus {
  outline: none;
  border-bottom-color: var(--taupe);
}
.field input:focus-visible,
.field textarea:focus-visible,
.select-wrap select:focus-visible { outline: none; }
.field textarea {
  resize: none;
  min-height: 5.4rem;
  line-height: 1.55;
}
.field__optional {
  margin-left: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--taupe);
}
.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 2px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--taupe);
  border-bottom: 1.5px solid var(--taupe);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field input[aria-invalid="true"],
.select-wrap select[aria-invalid="true"] { border-bottom-color: #a8443a; }

.form button { margin-top: 0.6rem; }
.form__note {
  font-size: 0.82rem;
  color: var(--ink-52);
  text-align: center;
}
.form__error {
  font-size: 0.85rem;
  color: #a8443a;
  text-align: center;
}
.hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form__success {
  border-top: 1px solid var(--hairline);
  padding-top: 1.6rem;
  margin-top: 0.4rem;
}
.form__success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.form__success p { color: var(--ink-70); font-size: 1rem; }
.form.is-sent .field,
.form.is-sent > button,
.form.is-sent .form__note { display: none; }

/* ============================================================
   6 · FOOTER
   ============================================================ */
.footer {
  background: var(--ivory);
  border-top: 1px solid var(--hairline-soft);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.footer__mark { font-size: 0.95rem; }
.footer__line {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-70);
  font-size: 1.15rem;
}
.footer__meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink-70);
}
.footer__meta a { border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
.footer__meta a:hover { border-bottom-color: var(--taupe); }
.footer__fine {
  font-size: 0.78rem;
  color: var(--ink-52);
  margin-top: 0.4rem;
}

/* ============================================================
   REVEAL MOTION  (settle in, as if lowered on a thread)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding-top: clamp(7rem, 16vh, 9rem); }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: left;
  }
  .hero__media { order: -1; }
  .floating { width: min(74vw, 300px); }
  .hero__scroll { display: none; }

  .system__body { grid-template-columns: 1fr; gap: 2.5rem; }
  .anatomy { max-width: 250px; }

  .problem__grid { grid-template-columns: 1fr; }
  .problem__figure img { max-width: 320px; }

  .access__inner { grid-template-columns: 1fr; gap: 2.8rem; }
}

@media (max-width: 640px) {
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec { padding: 1.5rem 1.2rem 1.6rem 0; }
  .spec:nth-child(2) { border-right: none; padding-right: 0; }
  .spec:nth-child(1), .spec:nth-child(2) { border-bottom: 1px solid var(--hairline); }

}

@media (max-width: 400px) {
  .spec-row { grid-template-columns: 1fr; }
  .spec { border-right: none; padding-right: 0; border-bottom: 1px solid var(--hairline); }
  .spec:last-child { border-bottom: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .anatomy__node { opacity: 1; }
  .hero-line__inner { transform: none; animation: none; }
  #problem-lede .ch { opacity: 1 !important; }
  .floating__frame, .floating__shadow { animation: none; }
}
