:root {
  --paper: #FAF9F5;
  --ink: #161513;
  --ink-55: rgba(22, 21, 19, .62);
  --hairline: rgba(22, 21, 19, .16);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, span, div { margin: 0; padding: 0; }

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

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* background motion layer */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* nav */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
}

.wordmark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
}

.nav-mail {
  font-size: 13px;
  font-weight: 500;
  padding-block: 14px;
  margin-block: -14px;
}

.nav-mail:hover { text-decoration: underline; }

/* shared micro label */
.micro-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 500;
  color: var(--ink-55);
}

/* section rhythm */
main > section + section {
  margin-top: clamp(6rem, 14vh, 10rem);
}

/* hero */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 8vh;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 28px;
  animation: fadeRise .7s cubic-bezier(.16, 1, .3, 1) both;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2.4rem, 8.8vw + 0.55rem, 8.2rem);
  line-height: .94;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
  animation: fadeRise .7s cubic-bezier(.16, 1, .3, 1) .09s both;
}

.clarifier-wrap {
  margin-top: 40px;
  animation: fadeRise .7s cubic-bezier(.16, 1, .3, 1) .18s both;
}

.body-copy {
  font-size: 17px;
  line-height: 1.55;
  max-width: 34em;
}

.direction-body { margin-top: 14px; }

@media (min-width: 900px) {
  .clarifier-wrap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
  }
  .clarifier { grid-column: 7 / -1; }
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pill, .hero-title, .clarifier-wrap {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* index section header row */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
}

/* rows */
.row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  column-gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  border-top: 1px solid var(--hairline);
  padding-block: 26px;
}

.rows .row:last-child { border-bottom: 1px solid var(--hairline); }

.idx {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-55);
  font-variant-numeric: tabular-nums;
}

.row-title {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -.015em;
}

.row-desc {
  font-size: 17px;
  line-height: 1.55;
  max-width: 34em;
}

.row-desc-lg {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 30em;
}

.row-price {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row-body > * + * { margin-top: 8px; }

.footnote {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-55);
  max-width: 40em;
  margin-top: 22px;
}

.footnote a {
  color: var(--ink);
  font-weight: 500;
}

.footnote a:hover,
.direction-body a:hover {
  text-decoration: underline;
}

.direction-body a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

@media (min-width: 900px) {
  .services .row { grid-template-columns: 3.5rem minmax(16rem, 22rem) 1fr auto; }
  .method .row { grid-template-columns: 3.5rem minmax(12rem, 16rem) 1fr; }

  .services .row-body,
  .method .row-body {
    display: contents;
  }

  .services .row-body > * + *,
  .method .row-body > * + * {
    margin-top: 0;
  }

  .row-price { text-align: right; }
}

@media (max-width: 600px) {
  .row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }
  .row-price { text-align: left; }
}

/* footer */
footer {
  margin-top: clamp(6rem, 14vh, 10rem);
  border-top: 1px solid var(--hairline);
  padding-block: 64px 40px;
}

.footer-word {
  font-weight: 700;
  font-size: clamp(3rem, 14vw, 11rem);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 40px;
}

.footer-origin {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-55);
  max-width: 40em;
}

.footer-mail {
  display: inline-block;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 28px;
  padding-block: 12px;
  margin-bottom: -12px;
}

.footer-mail:hover { text-decoration: underline; }

.footer-bottom {
  font-size: 13px;
  margin-top: 28px;
}

.footer-copy { color: var(--ink-55); }
