:root {
  --bg: #f4f1ea;
  --bg-2: #ece8dd;
  --ink: #1a1d24;
  --ink-2: #3a3d44;
  --muted: #6b6960;
  --rule: #d8d2c2;
  --rule-strong: #1a1d24;
  --accent: oklch(0.62 0.085 60); /* muted ochre */
  --accent-ink: oklch(0.32 0.05 60);
  --serif: "Instrument Serif", "Source Serif Pro", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
}

/* ---- Top label / monospace eyebrow ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  transform: translateY(-2px);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 0;
  transition: background 280ms ease, border-color 280ms ease, padding 280ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--rule);
  padding: 14px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand .amp { font-style: italic; color: var(--accent-ink); }
.brand-mark {
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  margin-right: 4px;
  transform: translateY(3px);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--ink);
  border-radius: 50%;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 200ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transition: right 300ms cubic-bezier(.2,.7,.2,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 200ms ease, color 200ms ease, transform 200ms ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg); }
.nav-cta .arrow {
  display: inline-block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 56px;
  position: relative;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.hero-meta .col-r {
  max-width: 360px;
  text-align: right;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 14.5vw, 232px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero h1 .ital { font-style: italic; color: var(--accent-ink); }
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1100ms cubic-bezier(.2,.7,.2,1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 120ms; }
.hero h1 .line:nth-child(2) > span { animation-delay: 260ms; }
.hero h1 .line:nth-child(3) > span { animation-delay: 400ms; }
@keyframes rise {
  to { transform: translateY(0); }
}

.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 80px;
  gap: 32px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
.hero-foot .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-foot .stat .num {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero-foot .stat .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue .bar {
  display: inline-block;
  width: 1px; height: 28px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-cue .bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -100%;
  height: 50%;
  background: var(--bg);
  animation: scrollPulse 1800ms ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { top: -50%; }
  100% { top: 100%; }
}

@media (max-width: 720px) {
  .hero-meta, .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-meta .col-r { text-align: left; }
  .hero-foot { gap: 22px; }
}

/* ---- Sections ---- */
section { position: relative; }
.section {
  padding: 140px 0;
  border-top: 1px solid var(--rule);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 0 0;
  max-width: 13ch;
}
.section-head h2 .ital { font-style: italic; color: var(--accent-ink); }
.section-head .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 52ch;
  align-self: end;
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .section { padding: 90px 0; }
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
}

/* ---- Philosophy / Principles ---- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.principle {
  padding: 36px 32px 40px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.principle:last-child { border-right: 0; padding-right: 0; }
.principle:nth-child(n+2) { padding-left: 32px; }
.principle .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.principle h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
}
.principle p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
}
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--rule); padding: 28px 0; }
  .principle:nth-child(n+2) { padding-left: 0; }
  .principle:last-child { border-bottom: 0; }
}

/* ---- Approach (services) ---- */
.approach-list {
  border-top: 1px solid var(--rule-strong);
}
.approach-row {
  display: grid;
  grid-template-columns: 64px 1.1fr 2fr auto;
  gap: 40px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding 320ms cubic-bezier(.2,.7,.2,1), background 320ms ease;
  cursor: pointer;
}
.approach-row:hover {
  padding-left: 12px;
  padding-right: 12px;
  background: color-mix(in oklab, var(--bg-2) 70%, transparent);
}
.approach-row .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.approach-row .ttl {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.approach-row .ttl .ital { font-style: italic; color: var(--accent-ink); }
.approach-row .desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 58ch;
  text-wrap: pretty;
}
.approach-row .chev {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.approach-row:hover .chev {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 820px) {
  .approach-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }
  .approach-row:hover { padding-left: 0; padding-right: 0; }
  .approach-row .chev { display: none; }
}

/* ---- Stats ribbon ---- */
.ribbon {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 0;
  margin-top: 0;
  border-top: 1px solid var(--rule-strong);
}
.ribbon .wrap > p.kicker {
  color: color-mix(in oklab, var(--bg) 65%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 28px 0;
}
.ribbon h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.ribbon h2 .ital { font-style: italic; color: oklch(0.78 0.08 60); }
.ribbon .ribbon-foot {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 18%, transparent);
  padding-top: 28px;
}
.ribbon .ribbon-foot .stat .num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.ribbon .ribbon-foot .stat .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--bg) 60%, transparent);
  margin-top: 8px;
  display: block;
}
@media (max-width: 820px) {
  .ribbon .ribbon-foot { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
}

/* ---- Partners ---- */
.partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.partner {
  padding: 56px 40px 56px 0;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background 320ms ease;
}
.partner:last-child { border-right: 0; padding-left: 40px; padding-right: 0; }
.partner:hover { background: color-mix(in oklab, var(--bg-2) 60%, transparent); }
.partner .portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg,
      var(--bg-2) 0 14px,
      color-mix(in oklab, var(--bg-2) 70%, var(--rule)) 14px 15px);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  margin-bottom: 22px;
  max-width: 360px;
}
.partner .portrait .ph {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner .name {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.partner .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.partner .contacts {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.partner .contacts a {
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
  padding-bottom: 2px;
  width: max-content;
  max-width: 100%;
}
.partner .contacts a:hover { border-bottom-color: var(--ink); }
.partner .contacts .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-block;
  width: 56px;
  margin-right: 10px;
}
@media (max-width: 820px) {
  .partners { grid-template-columns: 1fr; }
  .partner { border-right: 0; border-bottom: 1px solid var(--rule); padding: 40px 0; }
  .partner:last-child { padding-left: 0; border-bottom: 0; }
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-grid .col-info p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 44ch;
  margin: 0 0 22px 0;
  text-wrap: pretty;
}
.contact-grid .info-list {
  margin-top: 28px;
  border-top: 1px solid var(--rule);
}
.contact-grid .info-list .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.contact-grid .info-list .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-grid .info-list .val {
  font-size: 15px;
}

form.contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 10px 0;
  outline: none;
  border-radius: 0;
  appearance: none;
  transition: border-color 200ms ease, padding 200ms ease;
  font-family: var(--sans);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--accent-ink);
}
.field.invalid input, .field.invalid textarea, .field.invalid select {
  border-bottom-color: #a33;
}
.field .err {
  font-family: var(--mono);
  font-size: 11px;
  color: #a33;
  letter-spacing: 0.04em;
  min-height: 0;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.field.invalid .err { opacity: 1; transform: translateY(0); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.submit {
  margin-top: 12px;
  align-self: flex-start;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: background 220ms ease, transform 220ms ease, gap 220ms ease;
}
.submit:hover { background: var(--accent-ink); gap: 18px; }
.submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.submit .arrow { display: inline-block; transition: transform 220ms ease; }
.submit:hover .arrow { transform: translateX(2px); }

.sent[hidden] { display: none; }
.sent {
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--rule-strong);
  background: var(--bg-2);
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14.5px;
}
.sent .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .row-2 { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 28px 0;
  margin-top: 40px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.foot-row .brand-small {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
}
@media (max-width: 720px) {
  .foot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

/* Respect users who prefer reduced motion: skip the rise/reveal/pulse
   animations and show everything in its resting state immediately. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 .line > span { animation: none; transform: none; }
  .scroll-cue .bar::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

::selection { background: var(--accent); color: var(--bg); }
