:root {
  color-scheme: light;
  --bg: #e8d4bf;
  --paper: #292925;
  --muted: #70695f;
  --dim: #8c8072;
  --line: rgba(41, 41, 37, 0.17);
  --accent: #69734d;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --display: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --page-padding: clamp(1.25rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { color: #fff9ef; background: var(--accent); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 1680px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 var(--page-padding);
}

.site-header,
.site-footer,
.hero__meta,
.eyebrow,
.header-link,
.hero__link,
.site-footer > span,
.site-footer > a:last-child,
.contact-link small {
  font-family: var(--mono);
}

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark { font-size: 0.84rem; font-weight: 600; letter-spacing: -0.06em; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); }
.header-link { color: var(--muted); font-size: 0.68rem; transition: color 180ms ease; }
.header-link span { color: var(--accent); }
.header-link:hover, .header-link:focus-visible { color: var(--paper); }

.hero {
  position: relative;
  display: flex;
  min-height: max(40rem, calc(100svh - 4.25rem));
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__grid {
  position: absolute;
  z-index: -1;
  inset: 4% -8%;
  opacity: 0.22;
  background-image: linear-gradient(to right, rgba(41, 41, 37, 0.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(41, 41, 37, 0.09) 1px, transparent 1px);
  background-size: clamp(3rem, 7vw, 7rem) clamp(3rem, 7vw, 7rem);
  mask-image: radial-gradient(ellipse at 70% 48%, #000 4%, transparent 68%);
}

.hero__art {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -12%;
  display: block;
  width: min(70vw, 900px);
  height: auto;
  pointer-events: none;
  transform: translateY(calc(-50% + var(--hero-scroll, 0px)));
}

.hero__art img { display: block; width: 100%; height: auto; }

.hero::after {
  position: absolute;
  z-index: 0;
  inset: 10% 2% 14% 42%;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.8px), radial-gradient(circle, rgba(105, 115, 77, 0.5) 0 1px, transparent 1.8px);
  background-position: 0 0, 42px 58px;
  background-size: 116px 138px, 164px 188px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
  animation: glint 6s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.hero.is-active::after { animation-play-state: running; }

.hero__copy { position: relative; z-index: 1; width: min(58%, 46rem); padding: 4rem 0 7rem; }
.eyebrow { margin: 0; color: var(--muted); font-size: 0.63rem; letter-spacing: 0.13em; line-height: 1.6; }
.hero h1 {
  margin: 1.75rem 0 1.25rem;
  font-size: clamp(4.25rem, 10vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.105em;
  line-height: 0.87;
  text-wrap: balance;
}

.hero h1 span, .about h2 span, .connect h2 span { color: var(--accent); }
.hero__description { max-width: 25rem; margin: 0; color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.1rem); line-height: 1.75; }
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 0.8rem 0;
  color: var(--paper);
  font-size: 0.68rem;
  transition: color 180ms ease;
}

.hero__link span { color: var(--accent); transition: transform 180ms ease; }
.hero__link:hover, .hero__link:focus-visible { color: var(--accent); }
.hero__link:hover span, .hero__link:focus-visible span { transform: translateY(3px); }
.hero__meta { position: absolute; right: 0; bottom: 1.5rem; left: 0; display: flex; justify-content: space-between; color: var(--dim); font-size: 0.59rem; letter-spacing: 0.08em; }

.section {
  position: relative;
  min-height: min(46rem, 82svh);
  padding: clamp(5rem, 12vw, 10rem) 0;
  border-top: 1px solid var(--line);
}

.about { display: grid; grid-template-columns: 1fr 1.25fr; align-content: center; align-items: start; column-gap: 3rem; }
.about > .eyebrow { padding-top: 0.7rem; }
.about__content { max-width: 42rem; }
.about h2, .connect h2 { margin: 0; font-size: clamp(3.5rem, 8.5vw, 7.5rem); font-weight: 500; letter-spacing: -0.09em; line-height: 0.92; }
.about__content > p { max-width: 25rem; margin: 2rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.section-index { position: absolute; right: 0; bottom: 1.5rem; color: var(--dim); font: 0.63rem var(--mono); }

.connect { display: grid; grid-template-columns: 1fr 1fr; align-content: center; align-items: center; gap: 3rem; }
.connect__copy h2 { margin-top: 1.5rem; }
.connect__links { width: 100%; max-width: 34rem; justify-self: end; }
.contact-link { display: flex; min-height: 6.25rem; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); transition: padding 180ms ease, color 180ms ease; }
.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link > span:first-child { display: grid; gap: 0.6rem; }
.contact-link small { color: var(--muted); font-size: 0.58rem; letter-spacing: 0.13em; }
.contact-link strong { font-size: clamp(0.94rem, 1.6vw, 1.15rem); font-weight: 500; }
.contact-link__arrow { color: var(--accent); font-size: 1.1rem; transition: transform 180ms ease; }
.contact-link:hover, .contact-link:focus-visible { padding-inline: 0.5rem; color: var(--accent); }
.contact-link:hover .contact-link__arrow, .contact-link:focus-visible .contact-link__arrow { transform: translate(3px, -3px); }

.site-footer { display: flex; min-height: 4.75rem; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.61rem; }
.site-footer .wordmark { color: var(--paper); font-family: var(--display); font-size: 0.78rem; }
.site-footer > a:last-child { color: var(--muted); font-size: 0.58rem; transition: color 180ms ease; }
.site-footer > a:last-child:hover { color: var(--accent); }

.js [data-reveal] { opacity: 0; transform: translateY(1rem); transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 90ms; }
[data-delay="2"] { transition-delay: 180ms; }
[data-delay="3"] { transition-delay: 270ms; }

@keyframes glint { from { opacity: 0.12; } to { opacity: 0.27; } }

@media (max-width: 720px) {
  .hero { min-height: max(39rem, calc(100svh - 4.25rem)); }
  .hero__art { top: 78%; right: -28%; width: 118vw; opacity: 0.62; }
  .hero::after { inset: 8% -4% 12% 34%; }
  .hero__copy { width: 100%; padding-top: 3rem; }
  .hero h1 { font-size: clamp(4rem, 17vw, 7rem); }
  .hero__meta { font-size: 0.53rem; }
  .section { min-height: 36rem; }
  .about, .connect { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__content { padding-left: clamp(0rem, 10vw, 3rem); }
  .connect__copy h2 { font-size: clamp(4rem, 16vw, 7rem); }
  .connect__links { justify-self: stretch; }
}

@media (max-width: 420px) {
  .site-header { min-height: 3.75rem; }
  .site-header nav { gap: 0.9rem; }
  .header-link { font-size: 0.62rem; }
  .hero { min-height: max(36rem, calc(100svh - 3.75rem)); }
  .hero__meta span:first-child { display: none; }
  .site-footer { font-size: 0.56rem; }
  .site-footer > a:last-child { font-size: 0.53rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
