:root {
  --ink: #17140F;
  --ink-2: #221E18;
  --line-dark: #3A342C;
  --marble: #F4F0E7;
  --paper: #FBF9F4;
  --line: #E3DCCD;
  --stone: #5E574C;
  --text-2: #3A352E;
  --muted-dark: #CFC6B6;
  --terra: #B4492B;
  --terra-light: #D8693F;
  --terra-deep: #8E3A22;

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(80px, 12vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--marble); color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--terra-light); outline-offset: 3px; border-radius: 4px; }

/* Type */
.kicker {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 20px;
}
.kicker--dark { color: #B9AE9A; }

h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h1 em { font-style: italic; color: var(--terra-light); }

h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 16ch;
  text-wrap: balance;
}

h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--muted-dark); max-width: 36em; }
.section__intro { font-size: 19px; color: var(--text-2); max-width: 34em; margin-top: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font-weight: 500; font-size: 16px; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--terra { background: var(--terra); color: #fff; }
.btn--terra:hover { background: var(--terra-deep); }
.btn--ink { background: var(--ink); color: var(--marble); }
.btn--ink:hover { background: #2E2A24; }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--marble); }
.btn--ghost:hover { border-color: var(--muted-dark); }
.btn--light { background: var(--marble); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 20, 15, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(58, 52, 44, 0.6);
}
.nav__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav__logo img { width: 136px; height: auto; }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--muted-dark); text-decoration: none; font-size: 15px; }
.nav__links a:hover { color: var(--marble); }
@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
}

/* Hero */
.hero { background: var(--ink); color: var(--marble); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center; gap: 48px;
  min-height: min(88vh, 860px);
  padding-top: 64px; padding-bottom: 96px;
}
.hero__copy .lede { margin-top: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__art {
  position: relative; display: flex; justify-content: center; perspective: 900px;
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both;
}
.hero__mark {
  position: relative; z-index: 1;
  width: min(100%, 340px);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero__glow {
  position: absolute; left: 50%; bottom: -8%; width: 90%; height: 22%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(216, 105, 63, 0.35), rgba(216, 105, 63, 0));
  filter: blur(8px);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; padding-bottom: 72px; }
  .hero__art { order: -1; }
  .hero__mark { width: 180px; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section--marble { background: var(--marble); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--marble); }

/* Three columns (stoa) */
.stoa { margin-top: 64px; }
.stoa__beam {
  background: var(--ink); color: var(--marble);
  border-radius: 14px;
  height: 64px; display: flex; align-items: center; justify-content: center;
  font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; font-size: 15px;
}
.stoa__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.column {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 44px;
  min-height: 340px;
  display: flex; flex-direction: column; gap: 14px;
}
.column p { color: var(--text-2); }
.column__num { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--stone) !important; margin-bottom: 12px; }
.column--lit { background: var(--terra); border-color: var(--terra); color: #fff; }
.column--lit p, .column--lit .column__num { color: #FBE9E1 !important; }
@media (max-width: 860px) {
  .stoa__columns { grid-template-columns: 1fr; }
  .column { min-height: 0; }
}

/* Ethos */
.ethos { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ethos__head { position: sticky; top: 120px; }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; border-top: 1px solid var(--line-dark); }
.principles li {
  counter-increment: p;
  display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 8px;
  padding: 32px 0; border-bottom: 1px solid var(--line-dark);
}
.principles li::before {
  content: counter(p, upper-roman);
  grid-row: span 2;
  font-family: var(--serif); font-size: 32px; line-height: 1; color: var(--terra-light);
}
.principles h3 { font-size: 24px; }
.principles p { color: var(--muted-dark); }
@media (max-width: 860px) {
  .ethos { grid-template-columns: 1fr; gap: 40px; }
  .ethos__head { position: static; }
  .principles li { grid-template-columns: 48px minmax(0, 1fr); }
}

/* Stratumus */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.product .btn { margin-top: 36px; }
.product h2 { max-width: 14ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.facts li {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 28px; display: grid; gap: 6px;
}
.facts__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--terra); }
.facts__text { color: var(--text-2); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 40px; } }

/* Porch */
.porch { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.porch__art { width: 100%; max-width: 420px; }
.porch__copy p { color: var(--text-2); font-size: 18px; max-width: 34em; margin-top: 20px; }
.porch__copy h2 { max-width: 15ch; }
@media (max-width: 860px) {
  .porch { grid-template-columns: 1fr; gap: 40px; }
  .porch__art { max-width: 260px; }
}

/* Contact */
.contact__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.contact__mark { width: 64px; margin-bottom: 12px; }
.contact h2 { max-width: 18ch; }
.contact .btn { margin-top: 16px; }

/* Footer */
.footer { background: var(--ink); color: #9C9383; border-top: 1px solid var(--line-dark); font-size: 14px; }
.footer__inner { display: flex; align-items: center; gap: 14px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.footer__tag { margin-left: auto; font-family: var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero__art { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
