.landing-page {
  background: #fffaf3;
  color: #191410;
  overflow-x: hidden;
}

.landing-hero,
.landing-motion,
.landing-wardrobe,
.landing-proof,
.landing-closing {
  scroll-margin-top: 24px;
}

.landing-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) clamp(22px, 4vw, 52px)
    calc(34px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  isolation: isolate;
  /* Placeholder behind the hero photo: matches the light flat-lay palette so
     first paint feels bright even before the image finishes downloading. */
  background:
    linear-gradient(
      115deg,
      rgba(255, 250, 243, 0.98) 0%,
      rgba(255, 250, 243, 0) 62%
    ),
    linear-gradient(160deg, #fffaf3 0%, #f6ebde 58%, #e9f2f1 100%);
}

.landing-hero::before,
.landing-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.landing-hero::before {
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 243, 0.08) 0%,
      rgba(255, 250, 243, 0.02) 58%,
      rgba(255, 250, 243, 0.42) 100%
    ),
    linear-gradient(
      90deg,
      rgba(255, 250, 243, 0.9) 0%,
      rgba(255, 250, 243, 0.72) 22%,
      rgba(255, 250, 243, 0.2) 43%,
      rgba(255, 250, 243, 0) 62%
    );
}

.landing-hero::after {
  z-index: 0;
  opacity: 0.16;
  background:
    linear-gradient(0deg, rgba(25, 20, 16, 0.025) 0%, rgba(25, 20, 16, 0) 100%),
    repeating-linear-gradient(
      118deg,
      rgba(25, 20, 16, 0.035) 0 1px,
      transparent 1px 92px
    );
}

.landing-hero-media {
  position: absolute;
  inset: -26px 0;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.landing-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  filter: saturate(1.06) contrast(1.02);
  transform: scale(1.035);
  transition: opacity 520ms var(--ease-out);
}

.landing-hero-image.is-active {
  opacity: 1;
}

.landing-reel-inner {
  text-align: center;
}

/* This section is centered, so its title and summary must center as blocks.
   The base styles left-align them (with a narrow title) for the other,
   left-aligned sections. */
.landing-reel-inner .landing-section-title {
  max-width: none;
  margin-inline: auto;
}

.landing-reel-inner .landing-section-summary {
  margin-inline: auto;
}

.landing-reel-frame {
  position: relative;
  margin: clamp(28px, 4vw, 52px) auto 0;
  max-width: 940px;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(63, 52, 38, 0.12);
  background-color: #fffaf3;
  box-shadow: 0 28px 70px rgba(55, 41, 29, 0.16);
}

.landing-reel-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-reel-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.landing-reel-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease-out);
}

.landing-reel-video.is-playing {
  opacity: 1;
  visibility: visible;
}

.landing-nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) clamp(22px, 4vw, 52px) 0;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #191410;
  text-decoration: none;
}

.landing-nav-brand:hover {
  text-decoration: none;
}

.landing-nav-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 52, 38, 0.16);
  color: #191410;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(14px);
}

.landing-nav-wordmark {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-nav-signin,
.landing-hero-primary,
.landing-closing-primary {
  touch-action: manipulation;
}

/* Quiet glass treatment: the nav action must not outshout the hero CTA,
   which owns the highest contrast on the page. */
.landing-page .landing-nav .landing-nav-signin {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(63, 52, 38, 0.18);
  color: #191410;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(55, 41, 29, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-page .landing-nav .landing-nav-signin:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(63, 52, 38, 0.32);
  color: #191410;
}

.landing-hero-copy {
  position: relative;
  z-index: 1;
  width: min(42rem, 100%);
  padding-top: clamp(72px, 10vh, 118px);
  display: grid;
  gap: 13px;
}

.landing-hero-copy::before {
  content: '';
  position: absolute;
  inset: -58px -92px -54px -48px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 18% 50%,
    rgba(255, 250, 243, 0.9) 0%,
    rgba(255, 250, 243, 0.68) 38%,
    rgba(255, 250, 243, 0.18) 60%,
    rgba(255, 250, 243, 0) 74%
  );
}

.landing-hero-eyebrow {
  margin: 0 0 3px;
  color: #31606a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-hero-title {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(48px, 5.2vw, 80px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  text-wrap: balance;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.6);
}

.landing-hero-title-lead,
.landing-hero-title-emphasis {
  display: block;
}

.landing-hero-title-emphasis {
  width: fit-content;
  margin-top: 0.08em;
  margin-left: clamp(22px, 5vw, 76px);
  color: #2b616c;
  font-style: italic;
  font-weight: 620;
}

.landing-hero-summary {
  margin: 0;
  max-width: 28rem;
  color: #5c4a3c;
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.6;
}

.landing-hero-actions,
.landing-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 10px;
}

.landing-hero-actions .button,
.landing-closing-actions .button {
  min-height: 50px;
}

.landing-hero-trial-note {
  margin: -2px 0 0;
  max-width: 32rem;
  color: #493a2f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.landing-cta-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 1.08em;
  line-height: 1;
  transition: transform 180ms var(--ease-standard);
}

.landing-hero-primary:hover .landing-cta-arrow,
.landing-closing-primary:hover .landing-cta-arrow {
  transform: translateX(4px);
}

.landing-guest-resume {
  width: min(34rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(49, 95, 106, 0.24);
  border-left: 3px solid #31606a;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 16px 38px rgba(55, 41, 29, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-guest-resume-copy {
  min-width: 0;
}

.landing-guest-resume-kicker {
  margin: 0 0 2px;
  color: #31606a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-guest-resume h2 {
  margin: 0;
  color: #191410;
  font-size: 18px;
  line-height: 1.2;
}

.landing-guest-resume-copy > p:last-child {
  margin: 4px 0 0;
  color: #5c4a3c;
  font-size: 13px;
  line-height: 1.45;
}

.landing-guest-resume-thumbnails {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-guest-resume-thumbnails li {
  width: 46px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(63, 52, 38, 0.14);
  border-radius: 10px;
  background: #efe6dc;
}

.landing-guest-resume-thumbnails img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-guest-resume-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.landing-guest-resume-actions .button {
  min-height: 42px;
  justify-content: center;
  padding-inline: 12px;
}

/* The hero CTA sits on the light photo, so it takes the dark treatment and
   wins the attention contest. Selectors carry the .landing-page ancestor to
   outrank .button.primary's background, hover, and active rules. */
.landing-page .landing-hero .landing-hero-primary {
  min-width: 210px;
  background: var(--action-primary);
  border-color: var(--action-primary);
  color: #fffaf6;
  box-shadow: 0 20px 40px rgba(22, 16, 12, 0.22);
}

.landing-page .landing-hero .landing-hero-primary:hover:not(:disabled) {
  background: var(--action-primary-strong);
  border-color: var(--action-primary-strong);
  color: #fffaf6;
}

.landing-page .landing-hero .landing-hero-primary:active:not(:disabled) {
  background: var(--action-primary-strong);
  border-color: var(--action-primary-strong);
  color: #fffaf6;
  box-shadow:
    inset 0 2px 7px rgba(255, 255, 255, 0.1),
    0 6px 14px rgba(8, 5, 3, 0.18);
}

/* The closing CTA sits on the cream section, so the dark treatment is the
   high-contrast one there. */
.landing-closing-primary {
  min-width: 210px;
  border-color: rgb(var(--paper) / 0.12);
  background: var(--action-primary);
  color: #fffaf6;
  box-shadow:
    0 0 0 1px rgba(255, 248, 240, 0.16),
    0 20px 34px rgba(22, 16, 12, 0.32);
}

.landing-closing-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.landing-section {
  position: relative;
  padding: clamp(52px, 7vw, 96px) clamp(22px, 4vw, 52px);
}

.landing-section-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* The visible state is the default so content stays available without an
   observer. JavaScript adds the pending class only while a one-shot viewport
   reveal is actively being tracked. */
[data-landing-reveal] {
  opacity: 1;
  transform: none;
}

[data-landing-reveal].is-reveal-pending {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  will-change: opacity, transform;
}

[data-landing-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 640ms var(--ease-out),
    transform 640ms var(--ease-out);
}

[data-landing-reveal-delay='1'].is-revealed {
  transition-delay: 60ms;
}

.landing-section-title {
  margin: 0;
  max-width: 10ch;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 66px);
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-section-summary {
  margin: 0;
  max-width: 35rem;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.7;
}

.landing-motion {
  color: #191410;
  background:
    linear-gradient(
      180deg,
      rgba(49, 95, 106, 0.08) 0%,
      rgba(49, 95, 106, 0) 42%
    ),
    linear-gradient(180deg, #fffaf3 0%, #f5ecdf 100%);
}

.landing-motion-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.landing-motion-copy {
  display: grid;
  gap: 18px;
  max-width: 42rem;
}

.landing-motion .landing-section-summary {
  color: #5c4a3c;
}

.landing-motion-stage {
  position: relative;
  padding: clamp(12px, 2vw, 22px) clamp(20px, 3.5vw, 40px);
  border-block: 1px solid rgba(63, 52, 38, 0.16);
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.66),
    rgba(238, 247, 246, 0.64)
  );
}

.landing-starter-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-starter-list li + li {
  border-top: 1px solid rgba(63, 52, 38, 0.14);
}

.landing-starter-link {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
  min-height: 112px;
  padding: 18px 4px;
  color: #191410;
  text-decoration: none;
  transition:
    color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.landing-starter-link:hover {
  color: #315f6a;
  background: rgba(255, 255, 255, 0.5);
}

.landing-starter-link:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: 3px;
}

.landing-starter-index,
.landing-starter-label {
  color: #6c5b49;
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.landing-starter-copy {
  display: grid;
  gap: 7px;
}

.landing-starter-prompt {
  font-family: var(--font-display);
  font-size: clamp(23px, 2.7vw, 38px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.landing-starter-arrow {
  font-size: clamp(24px, 3vw, 34px);
  transition: transform 180ms var(--ease-out);
}

.landing-motion-note {
  margin: 16px 0 0;
  max-width: 35rem;
  padding-inline: 4px;
  color: #6c5b49;
  font-size: 14px;
  line-height: 1.6;
}

.landing-wardrobe {
  color: #191410;
  background: linear-gradient(180deg, #eef7f6 0%, #fffaf3 100%);
}

.landing-wardrobe-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.landing-wardrobe-copy {
  display: grid;
  gap: 16px;
  max-width: 40rem;
}

.landing-wardrobe-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2f6f7b;
}

.landing-wardrobe .landing-section-title {
  max-width: 14ch;
}

.landing-wardrobe .landing-section-summary {
  color: #4f5b59;
}

.landing-wardrobe-note {
  margin: 0;
  max-width: 32rem;
  color: #65716f;
  font-size: 15px;
  line-height: 1.66;
}

.landing-wardrobe-board {
  margin: 0;
  position: relative;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  padding: clamp(22px, 3vw, 32px);
  border-radius: 30px;
  border: 1px solid rgba(63, 52, 38, 0.12);
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 250, 243, 0.98) 60%,
    rgba(240, 247, 246, 0.96) 100%
  );
  box-shadow:
    0 28px 72px rgba(55, 41, 29, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.landing-wardrobe-board-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #687472;
}

.landing-proof {
  color: #1d140d;
  background:
    linear-gradient(
      180deg,
      rgba(186, 106, 69, 0.08) 0%,
      rgba(186, 106, 69, 0) 34%
    ),
    linear-gradient(180deg, #f5ede2 0%, #fcf8f3 100%);
}

.landing-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.landing-proof-visual {
  width: 100%;
  max-width: 620px;
  justify-self: center;
  display: grid;
  gap: 14px;
}

.landing-proof-media {
  --landing-reveal-position: 52%;
  position: relative;
  width: 100%;
  /* The try-on pair is portrait (896x1200) and the shoes change with the look,
     so the frame carries the source ratio EXACTLY and the cover crop is a
     no-op. The viewport ceiling is applied to width, not height: a max-height
     against a fixed aspect-ratio silently widens the box on short laptops
     (620x702 at 1440x900) and the centred crop eats the feet. */
  max-width: min(620px, calc(min(82vh, 820px) * 896 / 1200));
  justify-self: center;
  overflow: hidden;
  border-radius: 34px;
  aspect-ratio: 896 / 1200;
  background: #efe4d8 url('/tryon-before.webp') center / cover no-repeat;
  box-shadow: 0 36px 86px rgba(30, 21, 15, 0.14);
  isolation: isolate;
  /* pan-y keeps vertical page scrolling native on touch; horizontal drags
     move the reveal divider. */
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

/* Snap to the pointer instantly while dragging; the eased transitions are for
   scroll-driven movement only. */
.landing-proof-media.is-dragging .landing-proof-image,
.landing-proof-media.is-dragging .landing-proof-reveal-divider {
  transition: none;
}

.landing-proof-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(var(--paper) / 0.6);
  pointer-events: none;
}

.landing-proof-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition:
    opacity 520ms var(--ease-out),
    clip-path 260ms var(--ease-out);
}

.landing-proof-image.is-active {
  opacity: 1;
}

/* Before and after share the exact framing (the try-on keeps the source
   photo's pose and background), so both layers must stay untransformed for
   the reveal to align pixel-perfect. */
.landing-proof-image-reveal {
  z-index: 1;
  clip-path: inset(0 0 0 var(--landing-reveal-position));
}

.landing-proof-reveal-divider {
  position: absolute;
  top: 7%;
  bottom: 7%;
  left: var(--landing-reveal-position);
  z-index: 2;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  box-shadow:
    0 0 0 1px rgba(37, 25, 17, 0.12),
    0 0 32px rgba(255, 244, 232, 0.62);
  transform: translateX(-50%);
  transition: left 260ms var(--ease-out);
}

.landing-proof-reveal-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(29, 20, 13, 0.52) 0 46%,
      transparent 46% 54%,
      rgba(29, 20, 13, 0.52) 54%
    ),
    rgba(255, 250, 244, 0.86);
  box-shadow: 0 14px 32px rgba(31, 21, 14, 0.22);
  transform: translate(-50%, -50%);
}

.landing-proof-caption {
  margin: 0;
  color: #5c4a3c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: center;
}

.landing-proof-copy {
  display: grid;
  gap: 18px;
}

.landing-proof-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(55, 41, 29, 0.14);
}

.landing-proof-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(55, 41, 29, 0.14);
}

.landing-proof-index {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
  color: #b16c47;
}

.landing-proof-text {
  display: grid;
  gap: 10px;
}

.landing-proof-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 0.98;
  letter-spacing: 0;
}

.landing-proof-body {
  margin: 0;
  max-width: 30rem;
  color: #5c4a3c;
  line-height: 1.68;
}

/* Wardrobe section: real flat-lay photo in place of the gradient swatches. */
.landing-wardrobe-board--photo {
  padding: 0;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-wardrobe-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 18px 42px rgba(55, 41, 29, 0.16);
}

/* Try-on occasion switcher: swaps the "after" look in the reveal slider. */
.landing-proof-occasions {
  display: grid;
  gap: 12px;
}

.landing-proof-occasions-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95745d;
}

.landing-proof-occasions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-proof-occasion {
  appearance: none;
  min-height: 44px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(55, 41, 29, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #3a2a1d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out);
}

.landing-proof-occasion:hover {
  border-color: rgba(187, 109, 73, 0.5);
}

.landing-proof-occasion:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: 3px;
}

.landing-proof-occasion.is-active {
  background: linear-gradient(180deg, #2f6f7b 0%, #245761 100%);
  border-color: transparent;
  color: #fff7f1;
  box-shadow: 0 10px 24px rgba(47, 111, 123, 0.24);
}

.landing-closing {
  background: linear-gradient(180deg, #f4ece2 0%, #fffaf4 100%);
  color: #191410;
}

.landing-closing-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.landing-closing-inner .landing-section-title {
  max-width: 12ch;
}

.landing-closing-summary {
  max-width: 26rem;
  color: #5c4a3c;
}

.landing-nav,
.landing-hero-copy {
  animation: landingHeroEnter 720ms var(--ease-out) both;
}

.landing-hero-copy {
  animation-delay: 60ms;
}

@keyframes landingHeroEnter {
  from {
    opacity: 0.72;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes landingHeroFade {
  from {
    opacity: 0.84;
  }
  to {
    opacity: 1;
  }
}

@media (hover: hover) and (pointer: fine) {
  .landing-starter-link:hover .landing-starter-arrow {
    transform: translateX(5px);
  }

  .landing-proof-occasion:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-nav,
  .landing-hero-copy,
  [data-landing-reveal] {
    animation: landingHeroFade 160ms var(--ease-out) both !important;
    transform: none !important;
  }

  .landing-hero-image,
  .landing-proof-image,
  .landing-proof-step,
  .landing-nav-signin,
  .landing-hero-media,
  .landing-proof-reveal-divider {
    transition: none;
  }

  .landing-hero-media {
    transform: none !important;
  }

  [data-landing-reveal].is-reveal-pending {
    opacity: 1;
    transform: none;
  }

  .landing-proof-media {
    --landing-reveal-position: 50%;
  }

  .landing-starter-link,
  .landing-starter-arrow,
  .landing-proof-occasion,
  .landing-cta-arrow {
    transition: none;
  }

  .landing-guest-resume {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .landing-hero {
    min-height: 100svh;
    padding-inline: 20px;
  }

  .landing-nav {
    padding-inline: 20px;
  }

  .landing-hero-copy {
    width: min(35rem, 100%);
    padding-top: clamp(78px, 10vh, 116px);
  }

  .landing-proof-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .landing-proof-visual {
    width: min(100%, 560px);
    max-width: 560px;
  }

  .landing-proof-media {
    width: 100%;
    /* Single column: the frame follows the wrapper and scrolls, so the
       viewport ceiling would only shrink it (badly, in phone landscape). */
    max-width: 100%;
    min-height: 0;
  }

  .landing-proof-copy {
    width: min(100%, 680px);
    justify-self: center;
  }

  .landing-motion-stage {
    padding-inline: 28px;
  }
}

@media (max-width: 760px) {
  .landing-nav {
    padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 0;
    flex-wrap: nowrap;
    align-items: center;
  }

  .landing-nav-actions {
    width: auto;
    justify-content: flex-end;
  }

  .landing-nav-wordmark {
    letter-spacing: 0.12em;
  }

  .landing-hero {
    min-height: 100svh;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 18px
      calc(30px + env(safe-area-inset-bottom, 0px));
  }

  .landing-hero-copy {
    width: min(26rem, 100%);
    padding-top: 92px;
    gap: 12px;
  }

  .landing-hero-copy::before {
    inset: -34px -24px -36px -22px;
    background: radial-gradient(
      ellipse at 14% 50%,
      rgba(255, 250, 243, 0.94) 0%,
      rgba(255, 250, 243, 0.76) 48%,
      rgba(255, 250, 243, 0.2) 72%,
      rgba(255, 250, 243, 0) 88%
    );
  }

  .landing-hero-title {
    max-width: 12ch;
    font-size: clamp(38px, 10.6vw, 54px);
    line-height: 0.98;
  }

  .landing-hero-title-emphasis {
    margin-left: clamp(14px, 5vw, 28px);
  }

  .landing-hero-summary,
  .landing-section-summary,
  .landing-proof-body {
    font-size: 16px;
  }

  .landing-hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .landing-guest-resume {
    gap: 10px;
    padding: 12px;
  }

  .landing-guest-resume-thumbnails li {
    width: 40px;
  }

  .landing-section {
    padding: 56px 18px;
  }

  .landing-motion-stage {
    padding: 6px 12px;
  }

  .landing-motion-note {
    padding-inline: 4px;
    font-size: 13px;
  }

  .landing-starter-link {
    grid-template-columns: 32px minmax(0, 1fr) 24px;
    gap: 10px;
    min-height: 106px;
    padding-block: 16px;
  }

  .landing-starter-prompt {
    font-size: clamp(23px, 7vw, 30px);
  }

  .landing-proof-media {
    min-height: 320px;
    border-radius: 24px;
  }

  .landing-proof-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .landing-proof-title {
    font-size: 30px;
  }
}

.landing-nav-signin:focus-visible,
.landing-hero-primary:focus-visible,
.landing-closing-primary:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: 3px;
}

.landing-page .button.ghost:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

/* The reveal divider is keyboard-operable (role=slider). */
.landing-proof-reveal-divider:focus-visible {
  outline: var(--focus-ring-outline);
  outline-offset: 6px;
}

@media (max-width: 1024px) {
  .landing-wardrobe-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.landing-footer {
  background: #fffaf3;
  color: #5c4a3c;
  padding: clamp(34px, 4.5vw, 52px) clamp(22px, 4vw, 52px);
  border-top: 1px solid rgba(63, 52, 38, 0.12);
}

.landing-footer-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
}

.landing-footer-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.landing-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #191410;
}

.landing-footer-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(63, 52, 38, 0.14);
  color: #191410;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.landing-footer-wordmark {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-footer-tagline {
  margin: 0;
  font-size: 14px;
  color: #6c5b49;
}

.landing-footer-legal {
  margin: 0;
  font-size: 12px;
  color: #7a6a57;
}

.landing-footer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.landing-footer-support {
  color: #4f4034;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.landing-footer-support:hover {
  color: #191410;
}

.landing-footer-support:focus-visible {
  border-radius: 4px;
  outline: var(--focus-ring-outline);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .landing-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .landing-footer-meta {
    justify-items: start;
    text-align: left;
  }
}

/* Keyboard hint only makes sense where a keyboard is the norm; on touch-first
 * devices the caption reads "Drag the handle to compare." Hidden visually
 * rather than removed, since the divider's aria-describedby points at this
 * caption and a paired Bluetooth keyboard still needs the instruction. */
@media (hover: none) and (pointer: coarse) {
  .landing-proof-caption-keys {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
