:root {
  --black: #050505;
  --black-soft: #0b0b0b;
  --white: #f2f0eb;
  --muted: rgba(242, 240, 235, 0.54);
  --line: rgba(242, 240, 235, 0.14);
  --accent: #d7ff43;
  --sans: "Manrope", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: var(--black);
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
}

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.wordmark {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.wordmark span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.6vw, 38px);
}

.site-nav a,
.section-state {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--white);
}

.section-state {
  white-space: nowrap;
}

.kicker {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.chapter {
  position: relative;
  z-index: var(--chapter);
  height: 180svh;
  background: var(--black);
}

.chapter-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.chapter-content {
  opacity: var(--chapter-opacity, 1);
  will-change: opacity, transform;
}

.chapter--hero {
  height: 190svh;
}

.chapter-background,
.chapter-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chapter-background {
  object-fit: cover;
  transform: scale(1.04);
}

.chapter-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0.3) 58%, rgba(5, 5, 5, 0.08)),
    linear-gradient(0deg, rgba(5, 5, 5, 0.68), transparent 52%);
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 6vw, 96px);
  bottom: clamp(44px, 8vh, 90px);
  z-index: 2;
  max-width: 1050px;
}

.hero-copy .kicker {
  margin-bottom: 25px;
}

.hero-copy h1,
.about-copy h2,
.offers-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.hero-copy h1 {
  font-size: clamp(3.5rem, 7vw, 7rem);
}

.hero-copy em,
.about-copy em,
.contact-copy em {
  color: var(--accent);
  font-weight: 400;
}

.hero-copy > p:last-child {
  max-width: 340px;
  margin: 28px 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(242, 240, 235, 0.68);
}

.scroll-cue {
  position: absolute;
  right: clamp(22px, 5vw, 80px);
  bottom: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue i {
  position: relative;
  display: block;
  width: 68px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.about-stage {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: center;
  padding: 92px clamp(22px, 7vw, 112px) 42px;
}

.about-photo {
  position: relative;
  width: min(100%, 520px);
  height: min(72svh, 760px);
  margin: 0;
  overflow: hidden;
  background: var(--black-soft);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  inset: auto 24px 22px;
  z-index: 1;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.about-copy .kicker {
  margin-bottom: 26px;
}

.about-copy h2,
.offers-heading h2 {
  font-size: clamp(4rem, 7.5vw, 8rem);
}

.about-copy > p:last-of-type {
  max-width: 610px;
  margin: 42px 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.about-copy > a {
  display: flex;
  justify-content: space-between;
  width: min(100%, 340px);
  margin-top: 38px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portfolio-deck {
  position: relative;
  z-index: var(--chapter);
  height: calc(var(--portfolio-steps, 6) * 105svh + 20svh);
  background: var(--black);
}

.portfolio-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: var(--black);
}

.portfolio-slides,
.portfolio-set {
  position: absolute;
  inset: 0;
}

.portfolio-set {
  padding: clamp(76px, 9vh, 104px) clamp(34px, 7vw, 118px) clamp(98px, 12vh, 132px);
  opacity: 0;
  transform: translateY(4vh) scale(0.985);
  will-change: opacity, transform;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.25fr) minmax(0, 0.76fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "left-top lead right-top"
    "left-bottom lead right-bottom";
  gap: clamp(14px, 2.1vw, 34px) clamp(18px, 3vw, 54px);
  width: 100%;
  height: 100%;
}

.portfolio-grid figure {
  position: relative;
  display: block;
  justify-self: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
}

.portfolio-grid figure[data-slot="lead"] { grid-area: lead; }
.portfolio-grid figure[data-slot="left-top"] { grid-area: left-top; align-self: end; }
.portfolio-grid figure[data-slot="right-top"] { grid-area: right-top; align-self: end; }
.portfolio-grid figure[data-slot="left-bottom"] { grid-area: left-bottom; align-self: start; }
.portfolio-grid figure[data-slot="right-bottom"] { grid-area: right-bottom; align-self: start; }

.portfolio-grid img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateY(12px);
  opacity: 0.76;
  transition:
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--item-delay),
    opacity 700ms ease var(--item-delay);
}

.portfolio-set.is-current .portfolio-grid img {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-grid figure[data-slot="lead"] img {
  max-height: none;
}

.portfolio-grid figure[data-slot="lead"] {
  width: min(100%, calc(72svh * var(--photo-ratio)));
}

.portfolio-grid figure:not([data-slot="lead"]) {
  width: min(100%, calc(30svh * var(--photo-ratio)));
}

.portfolio-grid figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 7px;
  font-size: 0.52rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(242, 240, 235, 0.42);
}

.portfolio-grid figcaption span:first-child {
  color: var(--accent);
}

.portfolio-ui {
  position: absolute;
  inset: auto clamp(20px, 5vw, 76px) 26px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: end;
  pointer-events: none;
}

.portfolio-ui .kicker {
  color: var(--muted);
}

.portfolio-caption {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.9;
}

.portfolio-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.portfolio-counter i {
  width: 36px;
  height: 1px;
  background: var(--line);
}

#portfolio-current {
  color: var(--accent);
}

.portfolio-rail {
  position: absolute;
  inset: 50% 18px auto auto;
  z-index: 5;
  width: 2px;
  height: 24vh;
  overflow: hidden;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
}

.portfolio-rail span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--accent);
}

.offers-stage {
  display: grid;
  align-content: center;
  gap: clamp(42px, 7vh, 74px);
  padding: 92px clamp(22px, 7vw, 112px) 42px;
}

.offers-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.offers-heading h2 {
  font-style: italic;
  color: var(--white);
}

.offer-list {
  border-top: 1px solid var(--line);
}

.offer {
  display: grid;
  grid-template-columns: 60px 1fr 1.1fr 0.6fr 44px;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.offer > span,
.offer p,
.offer strong {
  font-size: 0.7rem;
  line-height: 1.65;
}

.offer > span {
  color: var(--accent);
}

.offer h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 0.9;
}

.offer p {
  margin: 0;
  color: var(--muted);
}

.offer strong {
  font-weight: 500;
}

.offer > a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.offer > a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(-45deg);
}

.chapter--contact {
  height: 170svh;
}

.contact-stage {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
  padding: 90px clamp(22px, 7vw, 112px) 74px;
}

.contact-copy .kicker {
  margin-bottom: 26px;
}

.contact-copy h2 {
  font-size: clamp(4.2rem, 8vw, 8.6rem);
}

.contact-copy > p:last-child {
  max-width: 390px;
  margin: 38px 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 23px;
  padding: clamp(24px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
  resize: none;
  background: transparent;
  color: var(--white);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(242, 240, 235, 0.25);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--accent);
  color: var(--black);
  font-weight: 600;
}

.contact-form button:disabled {
  cursor: default;
  opacity: 0.62;
}

.form-status {
  min-height: 16px;
  margin: -11px 0 0;
  font-size: 0.66rem;
  color: var(--accent);
}

.site-footer {
  position: absolute;
  inset: auto clamp(22px, 7vw, 112px) 20px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .about-stage,
  .contact-stage {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .offer {
    grid-template-columns: 38px 1fr 0.6fr 42px;
  }

  .offer p {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    inset: 9px 11px auto;
    min-height: 46px;
    padding-inline: 13px;
  }

  .wordmark,
  .section-state {
    font-size: 0.56rem;
  }

  .hero-copy {
    left: 18px;
    right: 18px;
    bottom: 42px;
  }

  .hero-copy h1 {
    font-size: clamp(2.8rem, 14vw, 4.7rem);
  }

  .hero-copy > p:last-child {
    font-size: 0.82rem;
  }

  .scroll-cue {
    display: none;
  }

  .about-stage {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    padding: 78px 14px 28px;
  }

  .about-photo {
    height: 56svh;
  }

  .about-photo::after,
  .about-photo figcaption {
    display: none;
  }

  .about-copy h2 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .about-copy > p:last-of-type {
    margin-top: 22px;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .about-copy > a {
    margin-top: 22px;
    font-size: 0.54rem;
  }

  .portfolio-deck {
    height: calc(var(--portfolio-steps, 30) * 55svh + 45svh);
  }

  .portfolio-set {
    padding: 72px 18px 118px;
  }

  .portfolio-grid {
    display: grid;
    grid-template: 1fr / 1fr;
    place-items: center;
  }

  .portfolio-grid figure[data-slot="lead"] {
    grid-area: 1 / 1;
    width: min(100%, calc(68svh * var(--photo-ratio)));
    height: auto;
    align-self: center;
  }

  .portfolio-grid figure[data-slot="lead"] img {
    max-height: none;
  }

  .portfolio-grid figcaption {
    display: none;
  }

  .portfolio-ui {
    inset: auto 16px 24px;
  }

  .portfolio-caption {
    font-size: clamp(2rem, 12vw, 3.3rem);
  }

  .portfolio-rail {
    right: 7px;
  }

  .offers-stage {
    gap: 24px;
    padding: 74px 16px 26px;
  }

  .offers-heading {
    align-items: center;
  }

  .offers-heading h2 {
    font-size: 3.8rem;
  }

  .offer {
    grid-template-columns: 26px 1fr auto 38px;
    gap: 10px;
    padding: 20px 0;
  }

  .offer h3 {
    font-size: 2rem;
  }

  .offer > span,
  .offer strong {
    font-size: 0.58rem;
  }

  .offer > a {
    width: 36px;
    height: 36px;
  }

  .contact-stage {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding: 70px 16px 54px;
  }

  .contact-copy h2 {
    font-size: clamp(3.5rem, 17vw, 5.2rem);
  }

  .contact-copy > p:last-child {
    display: none;
  }

  .contact-form {
    gap: 16px;
    padding: 19px 16px;
  }

  .contact-form input,
  .contact-form textarea {
    padding-block: 7px 10px;
    font-size: 0.82rem;
  }

  .contact-form textarea {
    max-height: 72px;
  }

  .contact-form button {
    min-height: 48px;
  }

  .site-footer {
    inset: auto 16px 14px;
    grid-template-columns: 1fr auto;
  }

  .site-footer a:first-of-type {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
