:root {
  --paper: #f6f4ee;
  --paper-2: #efece2;
  --ink: #1b1f25;
  --ink-soft: #62666d;
  --accent: #234a3a;
  --gold: #a8843f;
  --line: rgba(27, 31, 37, 0.13);
  --line-soft: rgba(27, 31, 37, 0.07);
  --wrap: 1040px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

/* paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

body > * { position: relative; z-index: 1; }

.meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

/* topbar */
.topbar { padding-top: 30px; }

.topbar-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* hero */
main { flex: 1; }

.hero {
  padding: clamp(64px, 13vh, 140px) 0 clamp(56px, 9vh, 100px);
  max-width: 30ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 30px;
}

.headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.headline em {
  font-style: italic;
  color: var(--accent);
}

.rule {
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 36px 0;
}

.brand-line {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: #3a3f47;
  max-width: 56ch;
  line-height: 1.65;
}

/* capabilities */
.capabilities {
  padding: clamp(40px, 6vh, 72px) 0;
  border-top: 1px solid var(--line);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.cap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 64px;
}

.cap {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}

.cap-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 1.6em;
}

.cap-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.cap-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* closing */
.closing {
  padding: clamp(56px, 10vh, 120px) 0;
  border-top: 1px solid var(--line);
}

.closing-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
  color: var(--ink);
}

/* footer */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 34px;
  flex-wrap: wrap;
  gap: 10px;
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* responsive */
@media (max-width: 760px) {
  .wrap { padding: 0 24px; }
  .cap-list { grid-template-columns: 1fr; gap: 0; }
  .hero { max-width: none; }
}
