/* Self-hosted fonts � Source Serif 4 + JetBrains Mono (latin + latin-ext) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-serif-4-italic-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-normal-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/source-serif-4-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-serif-4-normal-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/source-serif-4-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Plenty Group — Signal */

:root {
  --ivory: #e8e3d6;
  --ink: #0e0d0b;
  --muted: rgba(232, 227, 214, 0.6);
  --muted-soft: rgba(232, 227, 214, 0.5);
  --muted-softer: rgba(232, 227, 214, 0.35);
  --rule: rgba(232, 227, 214, 0.1);
  --rule-strong: rgba(232, 227, 214, 0.15);
  --accent: #a9c6b4;
  --stratum-1: #8ca79a;
  --stratum-2: #5a7a68;
  --stratum-3: #2f4a3c;
  --serif: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  background: var(--ink);
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ivory);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Hidden SVG defs container (for inline symbol reuse) */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Focus-visible for keyboard users on dark bg */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* =========== HEADER =========== */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(14, 13, 11, 0.85), rgba(14, 13, 11, 0));
}
header.site .brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ivory); text-decoration: none;
  font-family: var(--serif); font-size: 15px;
  letter-spacing: 0; text-transform: none; font-weight: 500;
}
header.site .brand svg { width: 22px; height: 22px; color: var(--ivory); }
header.site nav { display: flex; gap: 28px; }
header.site nav a { color: inherit; text-decoration: none; transition: color 240ms var(--ease); }
header.site nav a:hover { color: var(--ivory); }

/* =========== HERO =========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  opacity: 0.8;
}
.hero > *:not(canvas) { position: relative; z-index: 1; }

.hero .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 14px; align-items: center; margin-bottom: 36px;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; flex: 0 0 28px; height: 1px; background: currentColor;
}
.hero .eyebrow::after { flex: 1 1 auto; opacity: 0.3; }

.hero .lead {
  align-self: end;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(44px, 7vw, 112px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0; max-width: 16ch;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .subtagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  color: rgba(232, 227, 214, 0.72);
  margin: 28px 0 0;
  max-width: 46ch;
  letter-spacing: 0.005em;
}

.hero-foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px;
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.hero-foot div span {
  display: block; color: var(--ivory); margin-bottom: 4px; font-size: 11px;
}

/* =========== GENERIC SECTION =========== */
section.sec {
  padding: 140px 48px;
  max-width: 1600px;
  margin: 0 auto;
}
.sec-label {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 60px;
  display: flex; gap: 14px; align-items: center;
}
.sec-label::before {
  content: attr(data-n);
  color: var(--accent);
  margin-right: 16px;
}

/* =========== APPROACH =========== */
.approach {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
}
.approach h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60; font-weight: 400;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
  margin: 0; max-width: 14ch; color: var(--ivory);
}
.approach h2 em { color: var(--accent); font-style: italic; }
.approach .body p {
  font-size: 18px; line-height: 1.7; margin: 0 0 20px;
  color: rgba(232, 227, 214, 0.78); max-width: 46ch;
}

/* =========== FOCUS =========== */
.focus { margin-top: 60px; display: grid; gap: 2px; }
.focus .fr {
  display: grid; grid-template-columns: 80px 1fr 2fr 1fr;
  gap: 40px; padding: 40px 0; align-items: baseline;
  border-top: 1px solid var(--rule);
  transition: background 500ms var(--ease);
}
.focus .fr:last-child { border-bottom: 1px solid var(--rule); }
.focus .fr:hover { background: rgba(232, 227, 214, 0.02); }
.focus .fr .n {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted-soft);
}
.focus .fr h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px;
  color: var(--accent); margin: 0;
}
.focus .fr p {
  font-size: 16px; line-height: 1.7;
  color: rgba(232, 227, 214, 0.78); margin: 0;
}
.focus .fr .spark {
  display: flex; gap: 2px; height: 18px; align-items: flex-end;
}
.focus .fr .spark i {
  display: block; width: 3px; background: var(--accent); opacity: 0.7;
}

/* =========== ENGAGEMENTS =========== */
.eng-list { margin-top: 40px; }
.eng-item {
  padding: 52px 0;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 100px 1.2fr 1fr 120px; gap: 48px; align-items: baseline;
}
.eng-item:last-child { border-bottom: 1px solid var(--rule); }
.eng-item .idx {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--muted-soft);
}
.eng-item h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px;
  color: var(--ivory); margin: 0;
}
.eng-item p {
  font-size: 16px; line-height: 1.7;
  color: rgba(232, 227, 214, 0.75); margin: 0; max-width: 42ch;
}
.eng-item .status {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); text-align: right;
}

/* =========== ABOUT (blockquote) =========== */
.about {
  padding: 160px 48px;
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.about p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4;
  color: var(--ivory); max-width: 30ch;
  margin: 0 0 24px;
}
.about p em { color: var(--accent); font-style: italic; }

/* =========== PERSPECTIVE LIST =========== */
.persp { margin-top: 40px; }
.persp-item {
  display: grid; grid-template-columns: 100px 1fr 160px; gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  color: inherit;
  text-decoration: none;
  transition: background 320ms var(--ease);
}
.persp-item:last-child { border-bottom: 1px solid var(--rule); }
.persp-item:hover { background: rgba(232, 227, 214, 0.02); }
.persp-item:hover h3 { color: var(--accent); }
.persp-item .date {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-soft);
}
.persp-item h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px;
  color: var(--ivory); margin: 0;
  transition: color 320ms var(--ease);
}
.persp-item .len {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-soft); text-align: right;
}

/* =========== CONTACT =========== */
.contact {
  padding: 160px 48px 100px;
  max-width: 1600px; margin: 0 auto;
}
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -0.02em;
  margin: 40px 0; color: var(--ivory); max-width: 14ch;
}
.contact h2 em { color: var(--accent); font-style: italic; }
.contact p {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(232, 227, 214, 0.78);
  max-width: 52ch;
  margin: 0 0 40px;
}
.contact a.mail {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(24px, 3vw, 42px); color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 6px;
  transition: opacity 240ms var(--ease);
}
.contact a.mail:hover { opacity: 0.8; }

/* =========== FOOTER =========== */
footer.site {
  padding: 60px 48px 40px;
  max-width: 1600px; margin: 0 auto;
  border-top: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--muted-soft);
}
footer.site h4 {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(232, 227, 214, 0.7); margin: 0 0 14px; font-weight: 500;
}
footer.site p { margin: 0 0 4px; line-height: 1.7; }
footer.site a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid currentColor;
}
footer.site .copy {
  grid-column: 1 / -1;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  font-size: 10px; color: var(--muted-softer);
}

/* =========== PERSPECTIVE PAGE =========== */
.essays-head {
  padding: 200px 48px 80px;
  max-width: 1600px; margin: 0 auto;
}
.essays-head h1 {
  font-family: var(--serif); font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(44px, 6vw, 88px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 20px 0 0; color: var(--ivory); max-width: 18ch;
}
.essays-head h1 em { color: var(--accent); font-style: italic; }
.essays-head .lede {
  margin-top: 60px;
  max-width: clamp(42rem, 70vw, 62rem);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(232, 227, 214, 0.78);
}
.essays-head .lede p { margin: 0 0 16px; }

.essays {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px 120px;
}
article.essay {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 72px 0;
  border-top: 1px solid var(--rule);
}
article.essay:last-of-type { border-bottom: 1px solid var(--rule); }
article.essay .meta {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-soft);
}
article.essay .meta .num { color: var(--accent); }
article.essay .body h2 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-variation-settings: "opsz" 40;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--ivory);
  max-width: 22ch;
}
article.essay .body p {
  font-size: 18px; line-height: 1.75;
  color: rgba(232, 227, 214, 0.82);
  max-width: clamp(52ch, 72vw, 90ch);
  margin: 0 0 20px;
}
article.essay .body p:last-child { margin-bottom: 0; }

/* =========== REVEAL =========== */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1.2s var(--ease-slow), transform 1.2s var(--ease-slow);
}
[data-reveal].in { opacity: 1; transform: none; }

/* =========== VIEW TRANSITIONS =========== */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 480ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes vt-fade-out { to { opacity: 0; } }
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; }

/* =========== MEDIA =========== */
@media (max-width: 1024px) {
  .approach { grid-template-columns: 1fr; gap: 40px; }
  .focus .fr, .eng-item, .persp-item {
    grid-template-columns: 1fr !important; gap: 14px;
  }
  footer.site { grid-template-columns: 1fr 1fr; }
  article.essay { grid-template-columns: 1fr; gap: 24px; }
  header.site nav { gap: 18px; }
}

@media (max-width: 767px) {
  header.site {
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
  header.site nav {
    display: none;
  }
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 24px; }
  section.sec, .contact { padding: 80px 24px; }
  .about { padding: 100px 24px; }
  .essays-head { padding: 140px 24px 40px; }
  .essays { padding: 0 24px 80px; }
  footer.site { padding: 40px 24px 32px; grid-template-columns: 1fr; gap: 32px; }
}
