:root {
  --ground: #0b0b0b;
  --ink: #f4f1ea;
  --ink-muted: rgba(244, 241, 234, 0.72);
  --ink-faint: rgba(244, 241, 234, 0.36);
  --accent: #c47a4a;
  --accent-deep: #a86236;
  --danger: #ffc9c9;
  --ok: #d8f2d4;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-ui: "Archivo", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.5;
  font-kerning: normal;
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background: var(--accent);
  color: #1a120e;
}

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

a {
  color: inherit;
  text-underline-offset: 0.3rem;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 30;
  background: var(--ink);
  color: var(--ground);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
  font-size: 0.8rem;
}

.skip:focus {
  top: 0.75rem;
}

/* —— Fixed video —— */
.landing-page {
  position: relative;
  isolation: isolate;
  height: 100%;
  background: var(--ground);
  color: var(--ink);
  --slide-progress: 0;
}

.landing-media {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #1a1a1a url("/say-it-artwork.jpg") center / cover no-repeat;
  transform:
    scale(calc(1.38 + (var(--slide-progress) * 0.1)))
    translateY(calc(var(--slide-progress) * -2vh));
  will-change: transform;
}

.landing-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.landing-media video.is-ready {
  opacity: 1;
}

/* —— Two full-screen slides —— */
.landing-slides {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.landing-slide {
  position: relative;
  min-height: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.landing-slide-hero {
  pointer-events: none;
}

/* —— Contact slide (Get in touch) —— */
.landing-slide-contact {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  background: rgba(8, 8, 8, calc(var(--slide-progress) * 0.94));
  backdrop-filter: blur(calc(var(--slide-progress) * 22px));
  -webkit-backdrop-filter: blur(calc(var(--slide-progress) * 22px));
  color: var(--ink);
  clip-path: inset(calc((1 - var(--slide-progress)) * 100%) 0 0 0);
}

.touch-panel {
  width: min(100% - 2.5rem, 28rem);
  margin: 0;
  padding: clamp(2rem, 6vh, 4rem) 0;
  text-align: center;
  justify-self: center;
  align-self: center;
  opacity: calc((var(--slide-progress) - 0.2) / 0.55);
  transform:
    translateY(calc((1 - var(--slide-progress)) * 18vh))
    scale(calc(0.92 + (var(--slide-progress) * 0.08)));
  filter: blur(calc((1 - var(--slide-progress)) * 10px));
  will-change: transform, opacity, filter;
}

.touch-title,
.touch-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-transform: none;
  text-align: center;
}

.touch-title {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  margin-bottom: clamp(2.25rem, 5vh, 3.5rem);
  opacity: calc((var(--slide-progress) - 0.25) / 0.45);
  transform: translateY(calc((1 - var(--slide-progress)) * 2rem));
}

.touch-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  width: 100%;
  margin-inline: auto;
  justify-items: center;
}

.touch-col {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
  transform: translateY(calc((1 - var(--slide-progress)) * 3rem));
}

.touch-col:nth-child(1) {
  opacity: calc((var(--slide-progress) - 0.35) / 0.4);
}

.touch-col:nth-child(2) {
  opacity: calc((var(--slide-progress) - 0.45) / 0.35);
}

.touch-name {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.touch-person a {
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.28rem;
  text-decoration-thickness: 1px;
}

.touch-person a:hover {
  color: var(--accent);
}

.touch-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
}

.touch-person {
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  margin-top: 0.2rem;
}

.landing-social-footer {
  width: 100%;
  justify-self: stretch;
  padding: 1.75rem clamp(1.75rem, 8vw, 5rem) 2.25rem;
  opacity: calc((var(--slide-progress) - 0.62) / 0.28);
  transform: translateY(calc((1 - var(--slide-progress)) * 1.25rem));
}

.landing-social-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  gap: 1rem 2rem;
}

.landing-social-footer a {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
}

.landing-social-footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .touch-columns {
    gap: 2rem;
  }
}

@media (max-width: 540px) {
  .touch-panel {
    width: min(100% - 1.75rem, 52rem);
  }

  .landing-social-footer nav {
    justify-content: space-between;
    gap: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .landing-slides {
    scroll-behavior: auto;
  }

  .landing-page {
    --slide-progress: 0 !important;
  }

  .landing-media,
  .touch-panel,
  .touch-col,
  .landing-social-footer,
  .landing-slide-contact {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .landing-slide-contact {
    background: rgba(8, 8, 8, 0.94);
    clip-path: none !important;
  }

  .landing-media video {
    transition: none;
  }
}
