/* LENTO landing page
   Dark ground, photography led, type kept quiet.
   No colour is defined only inside a media query. */

:root {
  --ground:    #0b0b0c;
  --ground-2:  #101012;
  --ink:       #eae7e1;
  --ink-dim:   #938f88;
  --ink-faint: #5d5a55;
  --line:      rgba(234, 231, 225, 0.13);
  --linen:     #b8a893;

  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", Times, serif;

  --gut: clamp(1.25rem, 5vw, 5.5rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 0.75rem 1.25rem;
}
.skip:focus { left: 0; }

:focus-visible { outline: 1px solid var(--linen); outline-offset: 3px; }

/* ---------- type ---------- */

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.015em;
}
.display--sm { font-size: clamp(2.75rem, 7vw, 6rem); }

.h2 {
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.lede {
  margin: 1.75rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--ink-dim);
}
.lede--wide { max-width: 46ch; }

.body { margin: 0 0 2rem; max-width: 46ch; color: var(--ink-dim); }

.note {
  margin: 1.5rem 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  isolation: isolate;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gut);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(11,11,12,0.78), rgba(11,11,12,0));
  transition: opacity 0.4s var(--ease);
}
.nav.is-stuck::before { opacity: 0; }
.nav.is-stuck {
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-size: 0.95rem; font-weight: 400;
  letter-spacing: 0.42em; text-decoration: none; color: var(--ink);
}
.nav__cta {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__cta { border-bottom-color: rgba(234, 231, 225, 0.4); }
.nav__cta:hover { border-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gut) clamp(3rem, 9vh, 7rem);
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: -6% -3%;
  z-index: 0;
  will-change: transform;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* 18% keeps the ribbed neck, the shoulders and the embroidered mark in
     frame. Picked off a contact sheet against 26% and 34%, not by eye. */
  object-position: 50% var(--hero-y, 18%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(11,11,12,0.94) 0%, rgba(11,11,12,0.45) 42%, rgba(11,11,12,0.18) 70%),
    linear-gradient(to right, rgba(11,11,12,0.62), rgba(11,11,12,0) 62%);
}
.hero__body { position: relative; z-index: 2; max-width: 44rem; }

.hero__cue {
  position: absolute; z-index: 2; left: 50%; bottom: 2rem;
  transform: translateX(-50%);
  width: 1px; height: 3.5rem;
  background: linear-gradient(var(--ink-faint), transparent);
}
.hero__cue span {
  position: absolute; inset: 0;
  background: linear-gradient(var(--ink), transparent);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(100%); opacity: 0; }
}

/* ---------- colour switcher ---------- */

.colour {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(5rem, 14vh, 11rem) var(--gut);
}
@media (min-width: 900px) { .colour { grid-template-columns: 1fr 1fr; } }

.colour__stage {
  position: relative;
  aspect-ratio: 1410 / 1600;
  background: var(--ground-2);
  order: -1;
}
@media (min-width: 900px) { .colour__stage { order: 0; } }

.stage__img {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.85s var(--ease), transform 1.1s var(--ease);
}
.stage__img.is-on { opacity: 1; transform: scale(1); }
.stage__img img { width: 100%; height: 100%; object-fit: cover; }

.swatches { display: flex; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }

.swatch {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1.1rem 0.6rem 0.65rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.swatch__chip {
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--chip);
  box-shadow: inset 0 0 0 1px rgba(234, 231, 225, 0.22);
}
.swatch__name {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.swatch:hover:not([disabled]) { border-color: var(--ink-dim); }
.swatch.is-on { border-color: var(--ink); }
.swatch.is-on .swatch__name { color: var(--ink); }
.swatch[disabled] { cursor: default; opacity: 0.42; }

/* ---------- the cloth ---------- */

.cloth {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: center;
  padding: clamp(4rem, 12vh, 10rem) var(--gut);
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .cloth { grid-template-columns: 1.05fr 1fr; } }
.cloth__media img { width: 100%; }

.spec { margin: 0; border-top: 1px solid var(--line); }
.spec__row {
  display: flex; justify-content: space-between; gap: 2rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.spec dt {
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint); flex: none;
}
.spec dd { margin: 0; text-align: right; color: var(--ink); }

/* ---------- the box ---------- */

.box { position: relative; }
.box__scroll { height: 220vh; }
.box__sticky {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}
.box__frames { position: absolute; inset: 0; }
.frame { position: absolute; inset: 0; }
.frame[data-frame="1"] {
  z-index: 1;
  clip-path: inset(0 0 100% 0);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* The box shots are landscape. Filling a tall phone screen with them crops
   away the lid and most of the composition, which leaves a slice of fabric
   and no box at all. Letterbox them on narrow screens instead. */
@media (max-width: 700px) {
  .frame img { object-fit: contain; }
  .box__sticky { height: 82svh; }
  .box__scroll { height: 180vh; }
}
.box__sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(11,11,12,0.9), rgba(11,11,12,0) 55%);
}

.box__copy {
  position: absolute; z-index: 2; left: var(--gut); right: var(--gut);
  bottom: clamp(3rem, 10vh, 7rem);
  min-height: 4.5em;
}
.box__line {
  position: absolute; inset: auto 0 0 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  opacity: 0;
  will-change: opacity, transform;
}
.box__line[data-line="0"] { opacity: 1; }

/* ---------- place ---------- */

.place {
  padding: clamp(6rem, 18vh, 14rem) var(--gut);
  border-top: 1px solid var(--line);
}

/* ---------- waitlist ---------- */

.list {
  padding: clamp(4rem, 12vh, 9rem) var(--gut) clamp(5rem, 14vh, 11rem);
  border-top: 1px solid var(--line);
}
.list__inner { max-width: 40rem; }

.form { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.form__input {
  flex: 1 1 16rem;
  padding: 1rem 1.1rem;
  background: var(--ground-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
}
.form__input::placeholder { color: var(--ink-faint); }
.form__btn {
  padding: 1rem 1.9rem;
  background: var(--ink); color: var(--ground);
  border: 1px solid var(--ink);
  font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.form__btn:hover { background: transparent; color: var(--ink); }
.form__msg {
  margin: 1rem 0 0; min-height: 1.5em;
  font-size: 0.86rem; color: var(--ink-dim);
}
.form__msg.is-bad { color: var(--linen); }

/* ---------- footer ---------- */

.foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding: 2.5rem var(--gut);
  border-top: 1px solid var(--line);
}
.foot__logo { width: clamp(90px, 12vw, 140px); height: auto; opacity: 0.85; }
.foot__meta {
  margin: 0;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__media { transform: none !important; }
  .hero__cue span { animation: none; }
  .stage__img { transition-duration: 0.01ms; }
}
