/* ============================================================ tokens */
:root {
  --bg: #f4f1e8;
  --text: #171913;
  --text-dim: #4f5449;
  --muted: #63695e;
  --line: rgba(23, 25, 19, .15);
  --line-soft: rgba(23, 25, 19, .07);
  --accent: #7c5c1a;
  --sans: 'Onest', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

/* ============================================================ background layers */
#leaf-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#vignette {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(124, 92, 26, .06), transparent 70%),
    radial-gradient(125% 95% at 50% 42%, transparent 55%, rgba(214, 207, 190, .5) 100%);
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

main {
  position: relative;
  z-index: 2;
}

/* ============================================================ header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}

.site-header.is-scrolled {
  padding-top: 13px;
  padding-bottom: 13px;
  background: rgba(244, 241, 232, .78);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 32px;
  justify-self: center;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--text-dim);
  transition: color .3s var(--ease);
}

.site-nav a:hover { color: var(--text); }

.header-socials {
  display: flex;
  gap: 4px;
  justify-self: end;
}

.header-socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.header-socials a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(23, 25, 19, .04);
}

.header-socials svg { width: 17px; height: 17px; }

/* ============================================================ hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 150px var(--pad) 110px;
}

.hero-logo {
  width: clamp(96px, 10vw, 124px);
  height: auto;
  margin-bottom: clamp(28px, 4vh, 44px);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(23, 25, 19, .12), 0 30px 70px rgba(70, 58, 35, .22);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(124, 92, 26, .35);
}

h1 {
  max-width: 22ch;
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(38px, 10.5vw, 92px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}

h1 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.lede {
  max-width: 46ch;
  margin-top: 28px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 300;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.btn:hover {
  border-color: rgba(23, 25, 19, .4);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.scroll-cue {
  position: absolute;
  left: var(--pad);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 42px;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: cue 2.6s var(--ease) infinite;
}

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

/* ============================================================ sections */
.section {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--pad);
  scroll-margin-top: 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(36px, 5vw, 56px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.03em;
}

.section-note {
  max-width: 280px;
  padding-bottom: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  text-align: right;
}

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

.domain {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 44px;
  min-height: 156px;
  padding: 26px;
  background: rgba(251, 249, 243, .96);
  transition: background .45s var(--ease);
}

.domain::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s var(--ease);
}

.domain:hover { background: #f1ede3; }
.domain:hover::before { transform: scaleX(1); }

.domain-name {
  font-family: var(--mono);
  font-size: clamp(16px, 1.45vw, 20px);
  letter-spacing: -.02em;
  color: var(--text);
}

.domain-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.domain-mark {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================ footer */
.site-footer {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px var(--pad) 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  scroll-margin-top: 80px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.footer-email {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: -.01em;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}

.footer-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-socials {
  display: flex;
  gap: 4px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--text-dim);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.footer-socials a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(23, 25, 19, .04);
}

.footer-socials svg { width: 17px; height: 17px; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.motion-toggle {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color .3s var(--ease);
}

.motion-toggle::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(124, 92, 26, .35);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.motion-toggle[aria-pressed="false"]::before {
  background: var(--muted);
  box-shadow: none;
}

.motion-toggle:hover { color: var(--text); }
.motion-toggle[hidden] { display: none; }

.footer-legal { color: var(--muted); }

.footer-legal span {
  margin-right: 4px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0;
}

/* ============================================================ reveal */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================ responsive */
@media (max-width: 1024px) {
  .domain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-note { text-align: left; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-socials { display: none; }
  .site-nav { justify-self: end; gap: 22px; }
  .hero { padding-top: 130px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-main { align-items: flex-start; }
}

@media (max-width: 640px) {
  .brand span { display: none; }
  .site-nav { gap: 18px; font-size: 10px; }
  .domain-grid { grid-template-columns: 1fr; }
  .hero-logo { width: 92px; }
  .scroll-cue { bottom: 24px; }
  .footer-main { flex-direction: column; }
  .footer-meta { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue span::after { animation: none; }
}
