:root {
  --paper: #f8f7f4;
  --ink: #2a281f;
  --ink-soft: #6b685c;
  --line: rgba(42, 40, 31, 0.14);
  --dark: #14140f;
  --gutter: clamp(16px, 2vw, 28px);
  --sans: "Onest", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dim { opacity: 0.55; }

.display {
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  color: #fff;
  transition: color 0.4s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(var(--paper) 40%, transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.site-header.on-light { color: var(--ink); }
.site-header.on-light::before { opacity: 1; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-mark {
  width: 26px; height: 26px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: currentColor;
}
.logo-word { font-weight: 500; letter-spacing: 0.14em; font-size: 14px; }
.nav { display: flex; gap: 28px; }
.nav a, .pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a { opacity: 0.85; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.pill {
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s;
}
.pill:hover { background: #fff; color: var(--ink); }
.on-light .pill:hover { background: var(--ink); color: var(--paper); }

/* ---------- Hero ---------- */
.hero { height: 320vh; position: relative; }
.hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: #fff;
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2f62b0 0%, #5d8fd2 34%, #a9c6e8 62%, #e6e3d6 80%, #b9ad8c 100%);
}
.cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  filter: blur(18px);
  animation: drift 60s linear infinite alternate;
}
.c1 { width: 70vw; height: 16vh; top: 12%; left: -20vw; }
.c2 { width: 55vw; height: 12vh; top: 30%; left: 50vw; animation-duration: 80s; animation-direction: alternate-reverse; }
.c3 { width: 90vw; height: 20vh; top: 46%; left: -10vw; opacity: 0.7; animation-duration: 100s; }
.c4 { width: 40vw; height: 9vh; top: 5%; left: 60vw; opacity: 0.6; animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes drift {
  from { transform: translateX(-6vw); }
  to { transform: translateX(10vw); }
}
.horizon {
  position: absolute;
  left: 50%;
  bottom: -62vh;
  width: 190vw;
  height: 90vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, #f1ead6 0%, #c9bd97 28%, #7d7558 62%, #3b3a2c 100%);
  box-shadow: 0 -30px 120px rgba(255, 250, 230, 0.55);
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 12vh, 120px);
  width: min(46vw, 720px);
}
.hero-label { margin-bottom: 18px; }
.hero-lines { display: grid; }
.hero-line {
  grid-area: 1 / 1;
  align-self: end;
  font-weight: 400;
  font-size: clamp(26px, 3.1vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
  text-shadow: 0 1px 24px rgba(20, 40, 80, 0.25);
}
.hero-line.is-active { opacity: 1; transform: none; filter: none; }

.hero-side {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 12vh, 120px);
  display: flex;
  gap: clamp(24px, 5vw, 80px);
}
.hero-progress {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  display: flex;
  gap: 6px;
}
.hero-progress i {
  width: 28px; height: 2px;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.4s;
}
.hero-progress i.on { background: #fff; }
.hero-fade {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  min-height: 130vh;
  padding: 22vh var(--gutter) 12vh;
  overflow: hidden;
}
.statement .display { position: relative; z-index: 1; }
.particles {
  position: absolute;
  left: 50%;
  top: 30vh;
  width: min(900px, 110vw);
  height: min(900px, 110vw);
  transform: translateX(-50%);
}
.triple { position: absolute; left: var(--gutter); bottom: 12vh; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  padding: 10vh var(--gutter) 14vh;
  align-items: start;
}
.about-text { display: grid; gap: 40px; justify-items: start; }
.about .display { font-size: clamp(24px, 2.9vw, 44px); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cta.small { font-size: 11px; }
.plus { display: inline-block; transition: transform 0.4s var(--ease); }
.cta:hover .plus { transform: rotate(90deg); }

.panel {
  background: var(--dark);
  color: #e9e6da;
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 36px);
}
.panel-head { opacity: 0.5; margin-bottom: 28px; }
.services { list-style: none; display: grid; }
.services li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.services li > span { font-family: var(--mono); font-size: 11px; opacity: 0.5; padding-top: 5px; }
.services h3 { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; margin-bottom: 6px; }
.services p { font-size: 14px; opacity: 0.65; max-width: 38ch; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 clamp(24px, 4vw, 64px);
  white-space: nowrap;
}
.marquee span::before { content: "[ + ]"; margin-right: 14px; opacity: 0.4; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections shared ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(32px, 6vh, 72px);
}
.section-head .display { max-width: 18ch; }

/* ---------- Work ---------- */
.work { padding: 16vh var(--gutter) 10vh; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.work-card { display: grid; gap: 10px; }
.work-img {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  margin-bottom: 6px;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-img { transform: scale(0.98); }
.work-img { overflow: hidden; background: #e9e5db; }
.work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card .label { opacity: 0.55; }
.work-card h3 { font-weight: 400; font-size: 22px; letter-spacing: -0.01em; }

/* ---------- Callout ---------- */
.callout { padding: 14vh var(--gutter); border-top: 1px solid var(--line); }
.mega {
  font-weight: 400;
  font-size: clamp(40px, 9.4vw, 150px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 8vh;
}
.callout-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}
.callout-row p { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; }

/* ---------- Journal ---------- */
.journal { padding: 12vh var(--gutter) 16vh; border-top: 1px solid var(--line); }
.journal .section-head .display { font-size: clamp(24px, 2.9vw, 44px); max-width: 22ch; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.entry {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px var(--gutter) 24px 0;
  border-top: 1px solid var(--ink);
}
.entry + .entry { padding-left: var(--gutter); border-left: 1px solid var(--line); }
.entry .label { opacity: 0.55; }
.entry h3 { font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; min-height: 3.45em; }
.entry p:not(.label) { font-size: 14px; color: var(--ink-soft); }
.entry .cta { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #e9e6da;
  padding: 10vh var(--gutter) 28px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; margin-bottom: 14vh; }
.footer-cols div { display: grid; gap: 8px; align-content: start; }
.footer-cols .label { margin-bottom: 10px; }
.footer-cols a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer-tag {
  font-size: clamp(28px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 8vh;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .hero-copy { width: auto; right: var(--gutter); bottom: 72px; }
  .hero-side { display: none; }
  .statement { min-height: 110vh; padding-top: 16vh; }
  .particles { top: 34vh; }
  .about { grid-template-columns: 1fr; }
  .work-grid, .journal-grid { grid-template-columns: 1fr; }
  .work-img { aspect-ratio: 4 / 3; }
  .entry, .entry + .entry { padding-left: 0; padding-right: 0; border-left: 0; }
  .entry h3 { min-height: 0; }
  .section-head, .callout-row { flex-direction: column; align-items: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cloud, .marquee-track { animation: none; }
  .hero-line, .reveal { transition: none; filter: none; transform: none; }
}
