:root {
  --bg: #0f1419;
  --bg-soft: #161c23;
  --bg-lift: #1c232b;
  --ink: #f5f1ea;
  --ink-mute: rgba(245, 241, 234, 0.62);
  --ink-faint: rgba(245, 241, 234, 0.28);
  --amber: #ea8b2e;
  --amber-deep: #c9751f;
  --amber-soft: rgba(234, 139, 46, 0.12);
  --rule: rgba(245, 241, 234, 0.1);
  --rule-strong: rgba(245, 241, 234, 0.2);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(15, 20, 25, 0.9), rgba(15, 20, 25, 0.3));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav .brand {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.2s ease;
}

nav .brand:hover { opacity: 0.85; }

nav .brand .dot { color: var(--amber); }

.monogram {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

nav .brand:hover .monogram { transform: rotate(-4deg); }

nav .brand .wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

nav .brand .sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 400;
}

nav .links {
  display: flex;
  gap: 36px;
  align-items: center;
}

nav .links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav .links a:hover, nav .links a.active {
  color: var(--amber);
}

/* Hero */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 0 100px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -30%);
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero-content { position: relative; z-index: 1; }

.hero .eyebrow {
  color: var(--amber);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out;
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 40px;
  animation: fadeUp 1s ease-out 0.1s backwards;
}

.hero h1 .italic {
  font-style: italic;
  color: var(--amber);
  font-weight: 200;
}

.hero .lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--ink-mute);
  max-width: 700px;
  animation: fadeUp 1s ease-out 0.25s backwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page header (for subpages, smaller than hero) */
.page-header {
  padding: 160px 0 80px;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 40%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.page-header .eyebrow {
  color: var(--amber);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-header .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--amber);
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
  max-width: 950px;
  position: relative;
  z-index: 1;
}

.page-header h1 .italic {
  font-style: italic;
  color: var(--amber);
  font-weight: 200;
}

.page-header .lede {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.45;
  color: var(--ink-mute);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* Sections */
section {
  padding: 120px 0;
  position: relative;
}

.section-label {
  color: var(--amber);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--amber);
}

h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 44px;
  max-width: 900px;
}

h2 .italic {
  font-style: italic;
  color: var(--amber);
}

h3 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

/* Prose */
.prose p {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 20px);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 26px;
  max-width: 720px;
}

.prose p.lede-p {
  font-size: clamp(22px, 1.8vw, 26px);
  font-style: italic;
  color: var(--amber);
  line-height: 1.45;
  margin-bottom: 40px;
  max-width: 760px;
}

.prose .pull-quote {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.35;
  color: var(--amber);
  padding: 40px 0 40px 32px;
  border-left: 2px solid var(--amber);
  margin: 48px 0;
  max-width: 800px;
}

.prose h3 {
  margin-top: 56px;
  margin-bottom: 20px;
}

.prose ul {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  max-width: 720px;
}

.prose ul li {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.6;
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

.prose strong {
  color: var(--amber);
  font-weight: 400;
}

.prose em {
  font-style: italic;
  color: var(--ink);
}

/* Editorial drop cap */
.drop-cap::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: 5.2em;
  line-height: 0.85;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--amber);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px 64px;
  margin-top: 64px;
}

.grid-item .number {
  color: var(--amber);
  margin-bottom: 14px;
}

.grid-item p {
  color: var(--ink-mute);
  font-size: 17px;
  line-height: 1.65;
}

/* Two col */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}

.two-col .col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  font-weight: 500;
}

.two-col .col p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
}

.two-col .col.muted p {
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}

@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* CTAs */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  font-weight: 500;
}

.cta.primary {
  background: var(--amber);
  color: var(--bg);
}

.cta.primary:hover {
  background: var(--ink);
  transform: translateY(-2px);
}

.cta.secondary {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.cta.secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.cta .arrow { transition: transform 0.25s ease; }
.cta:hover .arrow { transform: translateX(4px); }

/* Next-up card (inter-page navigation) */
.next-up {
  margin-top: 80px;
  padding: 56px 0 80px;
  border-top: 1px solid var(--rule);
}

.next-up a {
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: all 0.3s ease;
}

.next-up .label {
  color: var(--amber);
  margin-bottom: 18px;
}

.next-up h3 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
  transition: color 0.25s ease;
}

.next-up h3 .arrow {
  color: var(--amber);
  transition: transform 0.25s ease;
  display: inline-block;
}

.next-up a:hover h3 { color: var(--amber); }
.next-up a:hover h3 .arrow { transform: translateX(8px); }

/* Footer */
footer {
  padding: 64px 48px 40px;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .dot { color: var(--amber); }

.footer-brand .monogram-lg {
  flex-shrink: 0;
}

/* Banner strip — echoes the LinkedIn cover V3 treatment */
.banner-strip {
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 48px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0;
}

.banner-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--amber-soft) 0%, transparent 60%);
  pointer-events: none;
}

.banner-strip .strip-text {
  position: relative;
  font-family: 'Fraunces', serif;
  font-weight: 200;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -1.5px;
}

.banner-strip .strip-text .italic {
  font-style: italic;
  color: var(--amber);
  font-weight: 200;
}

.banner-strip .strip-mono {
  position: relative;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--ink-faint);
  text-transform: uppercase;
  font-weight: 400;
}

/* Meta strip corners that match V3 cover */
.banner-strip .strip-corner {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.banner-strip .strip-corner.tl { top: 18px; left: 32px; }
.banner-strip .strip-corner.tr { top: 18px; right: 32px; }
.banner-strip .strip-corner.bl { bottom: 18px; left: 32px; }
.banner-strip .strip-corner.br { bottom: 18px; right: 32px; }

@media (max-width: 700px) {
  .banner-strip { padding: 36px 24px; }
  .banner-strip .strip-corner { display: none; }
}

.footer-tag { margin-top: 8px; color: var(--ink-faint); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 48px;
}

.footer-links a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links a:hover { color: var(--amber); }

.footer-meta {
  text-align: right;
  align-self: flex-end;
}

.footer-meta a {
  color: var(--ink-mute);
  text-decoration: none;
}

.footer-meta a:hover { color: var(--amber); }

/* Mobile */
@media (max-width: 800px) {
  nav { padding: 16px 24px; }
  nav .links { gap: 18px; }
  nav .links a.hide-mobile { display: none; }
  nav .brand .sub { display: none; }
  .container, .container-narrow { padding: 0 24px; }
  section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; min-height: 88vh; }
  .page-header { padding: 120px 0 60px; }
  footer { padding: 48px 24px 32px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; align-self: flex-start; }
  .drop-cap::first-letter { font-size: 4em; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
