:root {
  --bg: #f6f5ef;
  --ink: #111;
  --muted: #555;
  --soft: rgba(246, 245, 239, .82);
  --line: rgba(17, 17, 17, .28);
  --dark: #111;
  --paper: #fffef8;
  --font: "SF Mono", "IBM Plex Mono", "Roboto Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 14px/1.5 var(--font);
}

a {
  color: inherit;
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: var(--bg);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 64px;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(246, 245, 239, .96), rgba(246, 245, 239, .72), rgba(246, 245, 239, 0));
}

.brand,
.site-header nav a,
.text-link,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.brand {
  font-size: 15px;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero-section {
  min-height: 108vh;
  align-items: flex-end;
}

.interactive-preview {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  outline: none;
  overflow: hidden;
}

.interactive-preview:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 8px;
}

.preview-label {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(17, 17, 17, .74);
  font-size: 11px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: rgba(246, 245, 239, .78);
  padding: 6px 8px;
  backdrop-filter: blur(12px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-visual::after {
  content: none;
}

.preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.graph-image,
.dog-image {
  background: var(--bg);
}

.meditation-image {
  background: #050505;
}

.hero-visual .preview-label {
  right: 18px;
  bottom: 18px;
}

.hero-inner {
  padding-bottom: 14vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 920px;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(64px, 17vw, 218px);
  line-height: .8;
}

.hero-inner h1 {
  max-width: none;
  margin-left: -.055em;
}

h2 {
  font-size: clamp(34px, 7vw, 96px);
  line-height: .92;
}

.section:not(.hero-section) h2 {
  font-size: clamp(28px, 4.8vw, 64px);
  line-height: 1;
}

.lead {
  max-width: 760px;
  margin: 30px 0 0;
  font-size: clamp(18px, 2.1vw, 28px);
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  text-transform: uppercase;
}

.hero-actions .button-link {
  margin-top: 0;
  min-height: 0;
  padding: .875rem .875rem;
  font-size: 1rem;
  line-height: 1;
}

.hero-actions .hero-primary-button {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.hero-actions .hero-primary-button:hover,
.hero-actions .hero-primary-button:focus-visible {
  background: rgba(246, 245, 239, .72);
  color: var(--ink);
}

.hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  font-size: 1rem;
  line-height: 1;
}

.text-link {
  color: var(--muted);
}

.primary-link {
  color: var(--ink);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 28px;
  padding: 0 14px;
  border: 1px solid currentColor;
  background: rgba(246, 245, 239, .72);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.button-link:hover,
.button-link:focus-visible {
  background: var(--ink);
  color: var(--bg);
}

.split-inner,
.product-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 108px);
  align-items: center;
}

.section-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 26px 0 0;
  color: #2f2f2b;
  font-size: clamp(15px, 1.5vw, 19px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.metric-grid div {
  min-height: 200px;
  padding: 18px;
  background: rgba(246, 245, 239, .9);
}

.metric {
  display: block;
  margin-bottom: 42px;
  font-size: 18px;
  text-transform: uppercase;
}

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

.product-section {
  border-top: 0;
}

.product-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(246, 245, 239, .86), rgba(246, 245, 239, .48) 36%, rgba(246, 245, 239, .08) 62%, rgba(246, 245, 239, 0)),
    linear-gradient(to bottom, rgba(246, 245, 239, .10), rgba(246, 245, 239, 0) 52%, rgba(246, 245, 239, .12));
}

.product-section.dark-band::after {
  background:
    linear-gradient(to right, rgba(17, 17, 17, .78), rgba(17, 17, 17, .42) 38%, rgba(17, 17, 17, .08) 64%, rgba(17, 17, 17, 0)),
    linear-gradient(to bottom, rgba(17, 17, 17, .06), rgba(17, 17, 17, 0) 48%, rgba(17, 17, 17, .16));
}

.product-section .section-inner {
  pointer-events: none;
}

.product-section .section-copy,
.product-section .text-link {
  pointer-events: auto;
}

.product-section .product-inner {
  display: block;
}

.app-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 100%;
  margin: 0;
  transform: none;
  background: transparent;
}

.dark-band {
  color: var(--bg);
  background: rgba(17, 17, 17, .96);
}

.dark-band .eyebrow,
.dark-band .section-copy p,
.dark-band .text-link {
  color: rgba(246, 245, 239, .72);
}

.dark-band .primary-link {
  color: var(--bg);
}

.dark-band .button-link {
  background: rgba(17, 17, 17, .52);
  color: var(--bg);
}

.dark-band .button-link:hover,
.dark-band .button-link:focus-visible {
  background: var(--bg);
  color: var(--ink);
}

.reverse {
  grid-template-columns: minmax(320px, 1.1fr) minmax(0, .9fr);
}

.reverse .section-copy {
  margin-left: auto;
}

.dark-band .preview-label {
  color: rgba(246, 245, 239, .82);
  background: rgba(17, 17, 17, .72);
}

#dog-whistle .section-copy {
  max-width: 640px;
}

.contact-section {
  min-height: 86vh;
  border-top: 0;
}

.contact-inner {
  max-width: 940px;
}

.contact-inner p:not(.eyebrow) {
  max-width: 700px;
  color: #2f2f2b;
  font-size: clamp(16px, 1.6vw, 21px);
}

.site-footer {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 28px 16px 34px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .site-header {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 10px;
  }

  .section-inner {
    width: min(100% - 24px, 1180px);
    padding: 84px 0;
  }

  .hero-inner {
    padding-bottom: 12vh;
  }

  .split-inner,
  .product-inner,
  .reverse {
    grid-template-columns: 1fr;
  }

  .reverse .section-copy {
    margin-left: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: 150px;
  }

  .product-section::after {
    background:
      linear-gradient(to bottom, rgba(246, 245, 239, .78), rgba(246, 245, 239, .40) 42%, rgba(246, 245, 239, .06));
  }

  .product-section.dark-band::after {
    background:
      linear-gradient(to bottom, rgba(17, 17, 17, .70), rgba(17, 17, 17, .34) 42%, rgba(17, 17, 17, .06));
  }

  .preview-image {
    width: 160%;
    left: -30%;
  }
}

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