/* ========== Severance Case Study Site — Shared Styles ========== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-deep: #07090d;
  --bg:        #0c1018;
  --surface:   #141a24;
  --surface-2: #1c2332;
  --surface-3: #232c3d;
  --hairline:  #2a3346;
  --hairline-strong: #3a4456;

  --text:       #f0e9d8;
  --text-2:     #a8a499;
  --text-3:     #6a6a72;
  --text-mute:  #4d5260;

  --coral:    #e87a6a;
  --coral-d:  #c5594a;
  --coral-bg: rgba(232,122,106,0.12);
  --teal:     #7cc0b3;
  --teal-bg:  rgba(124,192,179,0.12);
  --amber:    #e6b56a;
  --amber-bg: rgba(230,181,106,0.12);
  --plum:     #c9a3bf;
  --plum-bg:  rgba(201,163,191,0.12);
  --gold:     #d4a259;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232,122,106,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(124,192,179,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #07090d 0%, #0c1018 60%, #07090d 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ========== Sticky nav ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,9,13,0.78);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(42,51,70,0.6);
}
.nav-bar .inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-brand {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.nav-brand .dot { color: var(--coral); }
.nav-brand small { color: var(--text-3); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: 999px;
  transition: all 0.15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--coral); background: var(--coral-bg); }
.nav-cta {
  padding: 10px 18px; background: var(--coral); color: #fff; border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--coral-d); }

@media (max-width: 880px) {
  .nav-bar .inner { flex-direction: column; gap: 12px; padding: 14px 20px; }
  .nav-links { justify-content: center; }
}

/* ========== Layout ========== */
.wrap { max-width: 1480px; margin: 0 auto; padding: 64px 32px 96px; }
.narrow { max-width: 880px; margin: 0 auto; }

/* ========== Type ========== */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  color: var(--coral); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--coral);
}

.hero-h {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #f5efe2 0%, #d4cab4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1, h2, h3, h4 { font-family: 'Inter Tight', sans-serif; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.1; margin: 80px 0 16px; }
h3 { font-size: 22px; font-weight: 700; line-height: 1.2; margin: 40px 0 12px; }
h4 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }

p { font-size: 17px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
p.lede { font-size: 19px; color: var(--text-2); max-width: 780px; }
p strong { color: var(--text); font-weight: 600; }

ul, ol { padding-left: 24px; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
li { margin-bottom: 6px; font-size: 16px; }
li strong { color: var(--text); }

blockquote {
  border-left: 3px solid var(--coral);
  padding: 14px 22px;
  margin: 24px 0;
  background: var(--coral-bg);
  border-radius: 0 12px 12px 0;
  color: var(--text);
  font-size: 17px;
  font-style: italic;
}
blockquote cite { display: block; margin-top: 8px; font-size: 13px; color: var(--text-3); font-style: normal; }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--coral);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
th, td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text);
}
th {
  background: var(--surface-2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
tr:last-child td { border-bottom: none; }

/* ========== Cards ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--coral); letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.card-title { font-family: 'Inter Tight', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.card-desc { font-size: 14px; color: var(--text-2); line-height: 1.55; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ========== Stat tiles ========== */
.stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: ''; position: absolute; top: -30%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,122,106,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.stat .label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-3); text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.stat .num { font-family: 'Inter Tight', sans-serif; font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 6px; color: var(--text); }
.stat .num small { font-size: 18px; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.stat .desc { font-size: 13px; color: var(--text-3); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.005em;
  border: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 28px -10px rgba(232,122,106,0.5); }
.btn-primary:hover { background: var(--coral-d); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--hairline-strong); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 14px 0; }
.btn-ghost:hover { color: var(--text); }

/* ========== Section ========== */
.section { margin: 96px 0; }
.section-head {
  margin-bottom: 36px;
  max-width: 880px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-top: 0; }
.section-head p { font-size: 17px; }

/* ========== Hero ========== */
.hero {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 64px;
}
.hero p.lede { font-size: 21px; line-height: 1.55; max-width: 780px; }
.hero .meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 36px;
}
.hero .meta .pill {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--text-2);
}
.hero .meta .pill strong { color: var(--text); font-weight: 600; }

/* ========== Image showcase ========== */
.showcase {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
  margin: 24px 0;
  overflow: hidden;
}
.showcase-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.showcase-caption .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em; color: var(--coral); text-transform: uppercase; }
.showcase-caption .title { font-family: 'Inter Tight', sans-serif; font-size: 18px; font-weight: 700; }
.showcase-caption .meta { font-size: 12px; color: var(--text-3); }
.showcase img, .showcase svg, .showcase object { width: 100%; height: auto; border-radius: 8px; }

/* ========== Quote block ========== */
.quote {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3;
  color: var(--text);
  padding: 40px;
  background: linear-gradient(135deg, #1d2535 0%, #14191f 100%);
  border-left: 4px solid var(--coral);
  border-radius: 0 18px 18px 0;
  margin: 48px 0;
  position: relative;
}
.quote::before {
  content: '"';
  position: absolute;
  top: 12px; left: 24px;
  font-size: 80px;
  color: var(--coral);
  line-height: 1;
  opacity: 0.4;
  font-family: serif;
}
.quote-attribution {
  display: block;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  font-style: normal;
}

/* ========== Footer ========== */
footer.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 32px;
  margin-top: 120px;
  background: var(--bg-deep);
}
footer.site-footer .inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
footer.site-footer .brand {
  font-family: 'Inter Tight', sans-serif;
  font-size: 28px; font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 8px;
}
footer.site-footer .brand .dot { color: var(--coral); }
footer.site-footer .meta { font-size: 13px; color: var(--text-3); }
footer.site-footer .links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer.site-footer .links a { font-size: 13px; color: var(--text-2); }
footer.site-footer .links a:hover { color: var(--coral); }

/* ========== Image divider ========== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--hairline), transparent); margin: 64px 0; }

/* ========== Tags ========== */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.tag.coral { background: var(--coral-bg); border-color: rgba(232,122,106,0.3); color: var(--coral); }
.tag.teal { background: var(--teal-bg); border-color: rgba(124,192,179,0.3); color: var(--teal); }
.tag.amber { background: var(--amber-bg); border-color: rgba(230,181,106,0.3); color: var(--amber); }
.tag.plum { background: var(--plum-bg); border-color: rgba(201,163,191,0.3); color: var(--plum); }

/* ========== Persona Card ========== */
.persona {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.persona::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,122,106,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.persona .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0%, var(--gold) 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px; font-weight: 800; color: #fff;
  margin-bottom: 16px;
}
.persona .name { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 700; }
.persona .role { font-size: 14px; color: var(--text-3); margin-bottom: 8px; }
.persona .bio { font-size: 14px; color: var(--text-2); margin: 12px 0; line-height: 1.55; }
.persona .quote-mini { font-size: 13.5px; color: var(--text); font-style: italic; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); }

/* ========== Inline anchors / TOC ========== */
.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0 48px;
}
.toc .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-3); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.toc ul { padding: 0; list-style: none; margin: 0; }
.toc li { font-size: 14px; padding: 6px 0; }
.toc a { color: var(--text-2); transition: color 0.15s; }
.toc a:hover { color: var(--coral); }
