:root {
  --bg: #f4efe6;
  --bg-deep: #e5ddd0;
  --surface: rgba(255, 255, 255, 0.36);
  --ink: #111111;
  --muted: #4f4a45;
  --line: rgba(17, 17, 17, 0.12);
  --accent: #6c775c;
  --hero-ink: #f7f2ea;
  --hero-muted: rgba(247, 242, 234, 0.78);
  --font-display: "Archivo", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --content-width: min(1120px, calc(100vw - 3rem));
  --hero-shift: 0px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: var(--font-display);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 34%, #ece3d7 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(17, 17, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px;
  opacity: 0.35;
  content: "";
  pointer-events: none;
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 1.25rem 1.25rem 2rem;
}

.hero__media,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: grayscale(1) contrast(1.12) brightness(0.86);
  transform: translateY(var(--hero-shift)) scale(1.06);
  transform-origin: center top;
  will-change: transform;
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.86) 0%, rgba(17, 17, 17, 0.78) 36%, rgba(17, 17, 17, 0.52) 64%, rgba(17, 17, 17, 0.36) 100%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.14) 0%, rgba(17, 17, 17, 0.1) 48%, rgba(17, 17, 17, 0.48) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: var(--content-width);
  min-height: calc(100svh - 3.25rem);
  margin: 0 auto;
  color: var(--hero-ink);
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(247, 242, 234, 0.2);
}

.hero__kicker,
.fit__label,
.story-step__index {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section__eyebrow {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: 0;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--hero-muted);
}

.hero__nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.hero__nav a::after,
.button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  content: "";
}

.hero__nav a:hover::after,
.button:hover::after {
  transform: scaleX(1);
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 26rem);
  gap: 2rem;
  align-items: end;
  padding: 3.5rem 0 1.25rem;
}

.hero__brand {
  display: grid;
  gap: 0.15em;
  margin: 0;
  font-size: clamp(4.4rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--hero-ink);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.hero__copy {
  max-width: 26rem;
  margin-left: auto;
}

.hero__headline,
.section__header h2,
.fit__intro h2,
.contact__intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero__headline {
  color: var(--hero-ink);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.hero__support,
.section__lede,
.story-step p:last-child,
.method-list__row span,
.fit__list li,
.site-footer span {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero__support {
  margin-top: 1rem;
  color: rgba(247, 242, 234, 0.92);
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 0;
  min-width: 13rem;
  border: 1px solid rgba(17, 17, 17, 0.15);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #f7f3ed;
  background: var(--ink);
}

.button--ghost {
  color: var(--hero-ink);
  border-color: rgba(247, 242, 234, 0.3);
  background: transparent;
  min-width: 16.5rem;
}

.section {
  width: var(--content-width);
  margin: 0 auto;
  padding: 5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__header,
.fit__intro,
.contact__intro {
  max-width: 50rem;
}

.section__header h2,
.fit__intro h2,
.contact__intro h2 {
  margin-top: 0.7rem;
}

.section__lede {
  max-width: 39rem;
  margin-top: 1rem;
}

.narrative__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.narrative__media {
  position: relative;
}

.narrative__frame {
  position: sticky;
  top: 2rem;
  overflow: clip;
  min-height: 34rem;
}

.narrative__frame img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.narrative__steps {
  display: grid;
  gap: 2rem;
}

.story-step {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.story-step h3,
.fit__list li {
  margin: 0.5rem 0 0;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.story-step p:last-child {
  margin-top: 0.85rem;
  max-width: 31rem;
}

.lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

.lab__image img {
  min-height: 34rem;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
}

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

.method-list__row,
.tracker__row,
.site-footer {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.method-list__row p {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tracker {
  margin-top: 2rem;
}

.tracker__row span,
.tracker__row strong {
  font-size: 0.95rem;
}

.tracker__row strong {
  font-weight: 600;
}

.tracker__row--header span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fit__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.fit__column {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.fit__list {
  display: grid;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.fit__list li {
  margin: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.contact {
  padding-bottom: 3rem;
}

.contact__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact__form label {
  display: grid;
  gap: 0.7rem;
}

.contact__form label span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact__message,
.contact__form button {
  grid-column: 1 / -1;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0 0 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.28);
  border-radius: 0;
  outline: none;
  transition: border-color 180ms ease;
}

.contact__form textarea {
  resize: vertical;
}

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

.site-footer {
  margin-top: 3rem;
}

.site-footer p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-duration: 900ms;
}

.hero .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 160ms;
}

@media (max-width: 960px) {
  .hero__main,
  .narrative__grid,
  .lab__grid,
  .fit__grid,
  .contact__form {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    margin-left: 0;
  }

  .narrative__frame {
    position: relative;
    top: 0;
    min-height: 24rem;
  }

  .lab__image img {
    min-height: 24rem;
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 1.5rem, 42rem);
  }

  .hero {
    padding: 0.75rem 0.75rem 1.5rem;
  }

  .hero__veil {
    background:
      linear-gradient(180deg, rgba(17, 17, 17, 0.58) 0%, rgba(17, 17, 17, 0.42) 42%, rgba(17, 17, 17, 0.62) 100%),
      linear-gradient(90deg, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.46) 58%, rgba(17, 17, 17, 0.26) 100%);
  }

  .hero__topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__nav {
    gap: 0.85rem;
  }

  .hero__main {
    gap: 1.5rem;
    padding-top: 2.5rem;
  }

  .hero__brand {
    font-size: clamp(3.3rem, 22vw, 6rem);
  }

  .hero__headline,
  .section__header h2,
  .fit__intro h2,
  .contact__intro h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .button {
    width: 100%;
  }

  .method-list__row,
  .tracker__row,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

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

  .hero__media img,
  .reveal,
  .button,
  .hero__nav a::after,
  .button::after {
    transition: none;
    transform: none;
  }

  .reveal {
    opacity: 1;
  }
}
