/* ============ Fonts ============ */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ============ Tokens & reset ============ */
:root {
  --bg: #0a0a0b;
  --bg-raised: #101012;
  --text: #f2f2f0;
  --muted: #8a8a85;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-soft: rgba(255, 255, 255, 0.05);
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --container: 1120px;
  --pad: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.logo {
  filter: invert(1);
  height: 30px;
  width: auto;
}

.logo-link { display: block; flex-shrink: 0; }

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hairline-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 40% 45%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 40% 45%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero .container { position: relative; padding-top: 64px; padding-bottom: 64px; }

.hero-kicker {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 14ch;
}

.hero-strap {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
}

.corner-tick {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  opacity: 0.6;
  user-select: none;
}
.tick-bl { left: 16px; }
.tick-br { right: 16px; }

/* ============ Sections ============ */
.section {
  border-bottom: 1px solid var(--hairline);
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(40px, 6vw, 72px);
}

/* ============ Thesis ============ */
.section-body { max-width: 720px; }

.section-body p + p { margin-top: 1.4em; }

.lede {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section-body p:not(.lede) { color: var(--muted); }

.redacted {
  background: var(--text);
  color: transparent;
  border-radius: 1px;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: default;
}

.redacted:hover {
  background: transparent;
  color: var(--text);
}

/* ============ Verticals ============ */
.verticals { display: flex; flex-direction: column; }

.vertical {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px clamp(24px, 4vw, 64px);
  padding: clamp(32px, 4vw, 48px) 0;
}

.vertical + .vertical { border-top: 1px solid var(--hairline-soft); }

.vertical-num {
  font-size: 13px;
  color: var(--muted);
  padding-top: 6px;
}

.vertical h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.vertical p:last-child {
  color: var(--muted);
  max-width: 62ch;
}

.vertical > p:last-child { grid-column: 2; }

/* ============ Approach ============ */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline-soft);
}

.principle {
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
}

.principle h3 {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
}

.principle p {
  color: var(--muted);
  font-size: 15px;
}

/* ============ Contact ============ */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}

.contact-intro h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.contact-intro p { color: var(--muted); max-width: 36ch; }

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  padding: 12px 14px;
  transition: border-color 0.2s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

#submit-btn {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

#submit-btn:hover:not(:disabled),
#submit-btn:focus-visible {
  background: transparent;
  color: var(--text);
}

#submit-btn:disabled { opacity: 0.5; cursor: wait; }

.form-status {
  font-size: 11px;
  color: var(--muted);
  min-height: 1em;
}

.form-status.ok { color: var(--text); }
.form-status.err { color: #c96a5f; }

/* ============ Footer ============ */
.site-footer { padding: 48px 0 56px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.logo-footer { height: 24px; opacity: 0.9; }

.footer-meta {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.footer-meta p + p { margin-top: 6px; }

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */
@media (max-width: 820px) {
  .contact-wrap { grid-template-columns: 1fr; }
  .vertical { grid-template-columns: 1fr; }
  .vertical > p:last-child { grid-column: 1; }
  .vertical-num { padding-top: 0; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { animation: none !important; }
}
