/* =========================================================
   Dr. Firdosh Mahuvawalla — drfirdosh.com
   Editorial Authority · 2026
   ========================================================= */

/* ---------- design tokens ---------- */
:root {
  /* color */
  --purple:   #5E3190;
  --magenta:  #E72993;
  --bridge:   #A0237A;
  --ink:      #1F1B2E;
  --ink-soft: #2A2540;
  --paper:    #FAF8F4;
  --paper-2:  #F3EFE6;
  --surface:  #FFFFFF;
  --muted:    #6B6675;
  --hairline: rgba(31, 27, 46, 0.14);
  --hairline-strong: rgba(31, 27, 46, 0.32);
  --grad: linear-gradient(95deg, var(--purple) 0%, var(--bridge) 55%, var(--magenta) 100%);

  /* type */
  --display: 'Instrument Serif', 'Iowan Old Style', 'Apple Garamond', 'Baskerville', 'Times New Roman', serif;
  --body:    'Familjen Grotesk', 'Helvetica Neue', 'Arial', system-ui, -apple-system, sans-serif;

  /* layout */
  --max:        1340px;
  --pad-x:      clamp(20px, 5vw, 64px);
  --section-y:  clamp(72px, 12vw, 160px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
abbr[title] { text-decoration: none; border-bottom: 1px dotted var(--hairline-strong); cursor: help; }
em { font-style: italic; }
::selection { background: var(--purple); color: var(--paper); }

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  z-index: 9999; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- grain texture ---------- */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9000;
  opacity: 0.5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.18  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px var(--pad-x);
  transition: padding 0.4s var(--ease), backdrop-filter 0.4s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding-top: 12px; padding-bottom: 12px;
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}
.brand {
  display: inline-flex; align-items: center;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 0.7; }
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .brand-logo { height: 42px; }
@media (max-width: 960px) {
  .brand-logo { height: 48px; }
  .site-header.is-scrolled .brand-logo { height: 38px; }
}
@media (max-width: 540px) {
  .brand-logo { height: 40px; }
  .site-header.is-scrolled .brand-logo { height: 34px; }
}

.site-nav { justify-self: center; }
.site-nav ul {
  display: none;
  gap: clamp(14px, 2.4vw, 32px);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right 0.4s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

@media (min-width: 960px) {
  .site-nav ul { display: flex; }
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-pill {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  padding: 11px 18px;
  font-size: 13px;
}
.btn-pill:hover { background: var(--ink); color: var(--paper); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 26px;
  font-size: 15px;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad);
  opacity: 0; transition: opacity 0.4s var(--ease);
  z-index: 0;
}
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { border-color: transparent; transform: translateY(-1px); box-shadow: 0 18px 40px -18px rgba(94, 49, 144, 0.45); }

.btn-ghost {
  color: var(--ink);
  border: 1px solid transparent;
  padding: 16px 22px;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  border-radius: 0;
}
.btn-ghost:hover {
  text-decoration-color: var(--magenta);
  color: var(--purple);
}

/* mobile nav toggle */
.nav-toggle {
  width: 32px; height: 32px;
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
@media (max-width: 959px) {
  .nav-toggle { display: flex; }
  .btn-pill { display: none; }
  body.nav-open .site-nav {
    position: fixed; inset: 0; background: var(--paper);
    display: flex; align-items: center; justify-content: center;
    z-index: 90;
  }
  body.nav-open .site-nav ul {
    display: flex; flex-direction: column; gap: 28px;
    font-size: 22px; text-align: center;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(110px, 14vh, 160px) var(--pad-x) clamp(60px, 8vh, 100px);
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  width: 100%;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 96px);
  }
}

.hero-text {
  display: flex; flex-direction: column;
  gap: clamp(20px, 2.5vw, 30px);
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.hero-meta .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 4px rgba(231, 41, 147, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(231, 41, 147, 0.12); }
  50%      { box-shadow: 0 0 0 8px rgba(231, 41, 147, 0.04); }
}
.hero-meta .sep { color: var(--hairline-strong); }

.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8.4vw, 7.6rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.hero-headline .accent {
  position: relative;
  display: inline-block;
}
.hero-headline .accent em {
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.lede {
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 16px;
  margin-top: 4px;
}

.hero-credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px clamp(18px, 3vw, 36px);
  margin: clamp(20px, 3vw, 32px) 0 0;
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
}
.hero-credentials > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hero-credentials dt {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
}
.hero-credentials dd {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .hero-credentials { grid-template-columns: 1fr; gap: 14px; }
  .hero-credentials > div {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 14px;
  }
}

/* ----- portrait ----- */
.hero-portrait {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: end;
  width: 100%;
  max-width: 480px;
}
@media (max-width: 899px) {
  .hero-portrait {
    order: -1;
    justify-self: center;
    max-width: 280px;
  }
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-portrait-glow {
  position: absolute;
  inset: 6%;
  background:
    radial-gradient(closest-side at 50% 55%, rgba(231, 41, 147, 0.22), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(94, 49, 144, 0.28), transparent 70%);
  border-radius: 50%;
  filter: blur(24px);
  z-index: 0;
  animation: glowdrift 12s ease-in-out infinite alternate;
}
@keyframes glowdrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}
.hero-portrait-frame img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(31, 27, 46, 0.16));
}

.scroll-cue {
  position: absolute;
  right: 18px; bottom: 24px;
  display: flex; align-items: center; gap: 12px;
  transform: rotate(-90deg) translateX(50%);
  transform-origin: right bottom;
  font-family: var(--body);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 2;
}
.scroll-cue-line {
  display: inline-block;
  width: 50px; height: 1px;
  background: var(--muted);
  position: relative; overflow: hidden;
}
.scroll-cue-line::after {
  content: ''; position: absolute;
  left: -100%; top: 0; height: 100%; width: 100%;
  background: var(--ink);
  animation: scrollline 2.4s ease-in-out infinite;
}
@keyframes scrollline {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}
@media (max-width: 1100px) {
  .scroll-cue { display: none; }
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 7vw, 96px);
  padding: 0 var(--pad-x);
}
.section-head-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.section-tag {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  margin: 0;
  display: inline-flex; gap: 10px;
}
.section-tag span {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--purple);
}
.section-rule {
  height: 1px;
  background: var(--hairline-strong);
  margin: 0;
}
.section-count {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.section-lede {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 24;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 56ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
}

/* =========================================================
   STORY · SIX DIMENSIONS
   ========================================================= */
.story { padding: var(--section-y) 0; position: relative; }
.story::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 100% 0%, rgba(94, 49, 144, 0.04), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(231, 41, 147, 0.04), transparent 60%);
  pointer-events: none;
}

.dimensions {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.dimension {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--hairline);
}
.dimension:last-child { border-bottom: 1px solid var(--hairline); }

@media (min-width: 860px) {
  .dimension {
    grid-template-columns: 120px 200px 1fr;
    grid-template-areas:
      "num label claim"
      "num . body";
    column-gap: 48px;
    row-gap: 6px;
    align-items: baseline;
  }
  .dim-num   { grid-area: num; align-self: start; }
  .dim-label { grid-area: label; align-self: start; padding-top: 0.55em; }
  .dim-claim { grid-area: claim; }
  .dim-body  { grid-area: body; }
}

.dim-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 60;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  color: var(--purple);
  letter-spacing: -0.04em;
}
.dim-num span {
  display: inline-block;
  position: relative;
}
.dim-num span::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px; width: 32px;
  background: var(--grad);
}

.dim-label {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dim-claim {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 72, 'SOFT' 50;
  font-style: italic;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink);
  max-width: 20ch;
}

.dim-body {
  font-family: var(--body);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}

/* =========================================================
   TRACK RECORD
   ========================================================= */
.record {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px)  { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(3, 1fr); } }

.stat {
  padding: clamp(28px, 4vw, 44px) 24px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) {
  .stat { border-right: 1px solid var(--hairline); }
  .stat:nth-child(2n) { border-right: 0; }
}
@media (min-width: 1000px) {
  .stat { border-right: 1px solid var(--hairline); }
  .stat:nth-child(2n) { border-right: 1px solid var(--hairline); }
  .stat:nth-child(3n) { border-right: 0; }
}
.stat:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px) {
  .stat:nth-last-child(-n+2):nth-child(2n+1),
  .stat:nth-last-child(1) { border-bottom: 1px solid var(--hairline); }
}

.stat-num {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 30;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.stat-num .plus {
  font-size: 0.5em;
  margin-left: 0.05em;
  color: var(--muted);
}
.stat-num .currency {
  font-size: 0.35em;
  margin-right: 0.1em;
  color: var(--muted);
  font-variant-numeric: lining-nums;
}
.stat-num--year { letter-spacing: -0.03em; }
.stat-num--word {
  font-style: italic;
  color: var(--purple);
}
.stat-num--word em { font-style: italic; }

.stat--gradient .stat-num,
.stat--gradient .plus,
.stat--gradient .currency {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

.stat-label {
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  max-width: 26ch;
}
.stat-label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================================
   APPROACH
   ========================================================= */
.approach { padding: var(--section-y) 0; }

.areas {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 780px) { .areas { grid-template-columns: repeat(2, 1fr); } }

.area {
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--hairline);
  position: relative;
  transition: background 0.4s var(--ease);
}
@media (min-width: 780px) {
  .area:nth-child(2n+1) { border-right: 1px solid var(--hairline); }
  .area:nth-child(1), .area:nth-child(2) { border-top: 1px solid var(--hairline); }
}
.area:hover { background: var(--surface); }
.area:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 780px) {
  .area:nth-last-child(2) { border-bottom: 1px solid var(--hairline); }
}

.area-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--purple);
  letter-spacing: 0;
  margin-bottom: 14px;
  display: inline-block;
}
.area h3 {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 36;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
  max-width: 22ch;
}
.area p {
  font-family: var(--body);
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
  max-width: 42ch;
}

.approach-cta {
  max-width: var(--max);
  margin: clamp(40px, 7vw, 80px) auto 0;
  padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 18px 28px;
}
.approach-cta p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin: 0;
  color: var(--ink);
}

/* =========================================================
   WRITING
   ========================================================= */
.writing {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.publications {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 40px);
}
@media (min-width: 920px) {
  .publications { grid-template-columns: 1.4fr 1fr; align-items: stretch; }
}

.pub {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pub:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(31, 27, 46, 0.18);
}
.pub--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad);
}

.pub-head { display: flex; flex-direction: column; gap: 14px; }
.pub-tag {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.pub-title {
  font-family: var(--display);
  font-weight: 400;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.pub-blurb {
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0;
  max-width: 50ch;
}
.pub-themes {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--hairline);
}
.pub-themes li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--display);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.3;
  color: var(--ink-soft);
}
.pub-themes-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--purple);
}
.pub-themes-title { font-weight: 400; }

.pub-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 12px 0;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pub-cta svg { width: 16px; height: 16px; }
.pub-cta:hover { gap: 14px; color: var(--purple); border-color: var(--purple); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 80%; height: 80%;
  background: radial-gradient(closest-side, rgba(231, 41, 147, 0.18), transparent 70%);
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -15%;
  width: 80%; height: 80%;
  background: radial-gradient(closest-side, rgba(94, 49, 144, 0.22), transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.contact-head { margin-bottom: clamp(40px, 6vw, 72px); }
.contact-head .section-tag { color: rgba(250, 248, 244, 0.7); }
.contact-head .section-tag span { color: var(--magenta); }
.contact-title {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 20px 0 28px;
  color: var(--paper);
}
.contact-title em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-lede {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: 'opsz' 24;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: rgba(250, 248, 244, 0.78);
  max-width: 52ch;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  position: relative;
}
.contact-card svg {
  width: 20px; height: 20px;
  align-self: end; justify-self: end;
  color: rgba(250, 248, 244, 0.6);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(231, 41, 147, 0.4);
  transform: translateY(-2px);
}
.contact-card:hover svg { color: var(--magenta); transform: translateX(3px); }
.contact-card-label {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.6);
}
.contact-card-value {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.2;
  color: var(--paper);
}
.contact-card-value small {
  font-size: 0.5em;
  color: rgba(250, 248, 244, 0.6);
  vertical-align: middle;
}

.contact-card--primary {
  background: rgba(231, 41, 147, 0.08);
  border-color: rgba(231, 41, 147, 0.3);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(40px, 6vw, 80px) var(--pad-x) clamp(28px, 4vw, 48px);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid var(--hairline);
  padding-top: clamp(28px, 4vw, 48px);
}
@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: start;
  }
}
.footer-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.footer-tag {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  margin: 0;
}
.footer-meta {
  font-family: var(--body);
  font-size: 14px;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.footer-meta p { margin: 0; }
.footer-meta a { border-bottom: 1px solid var(--hairline-strong); }
.footer-meta a:hover { border-color: var(--magenta); color: var(--purple); }
.footer-key {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  color: var(--purple);
  margin-right: 8px;
  width: 60px;
}
.footer-end {
  font-family: var(--body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-end p { margin: 0 0 4px; }
.footer-colophon {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero stagger via inline delays in JS */

/* When JS is disabled, show everything */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-headline .underline path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   FOCUS STATES (a11y)
   ========================================================= */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 4px;
  border-radius: 4px;
}
