/* ============================================================
   Dr. Madhuleena Dasgupta — ink & paper
   Palette and type derived from her own photographs.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Ink & paper */
  --ink:        #17282a;   /* near-black petrol — body text */
  --ink-soft:   #3f5254;   /* secondary text */
  --petrol:     #14494e;   /* primary brand */
  --petrol-deep:#0f383c;   /* deep panels: nav, footer, hero card */
  --petrol-lift:#2b7075;   /* links / hover */
  --paper:      #f6f1e7;   /* page ground */
  --paper-2:    #efe7d7;   /* raised panel */
  --paper-3:    #e7ddc9;   /* hairline-adjacent fills */
  --sand:       #d9c8a6;   /* warm wood accent */
  --ochre:      #bb8f43;   /* rare accent — from the abstract dots */
  --ochre-soft: #cba85f;
  --line:       rgba(23, 40, 42, 0.14);
  --line-light: rgba(246, 241, 231, 0.16);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --wrap: 1140px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --shadow-sm: 0 1px 2px rgba(15, 56, 60, 0.06), 0 4px 14px rgba(15, 56, 60, 0.06);
  --shadow-md: 0 6px 24px rgba(15, 56, 60, 0.10), 0 2px 6px rgba(15, 56, 60, 0.06);
  --shadow-lg: 0 18px 50px rgba(15, 56, 60, 0.16);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--petrol-lift); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--ink); margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2.5px solid var(--ochre); outline-offset: 3px; border-radius: 2px; }

/* ---------- layout helpers ---------- */
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--ochre);
  display: inline-block;
}

.lead { font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); }
.serif-quote { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { background: var(--petrol); color: var(--paper); }
.btn-primary:hover { background: var(--petrol-deep); color: var(--paper); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--petrol); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--petrol); color: var(--petrol); background: rgba(20,73,78,0.04); }
.btn-light { background: var(--paper); color: var(--petrol-deep); }
.btn-light:hover { background: #fff; color: var(--petrol-deep); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: var(--paper); border-color: var(--line-light); }
.btn-outline-light:hover { border-color: var(--paper); color: var(--paper); background: rgba(246,241,231,0.08); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: baseline; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand .mark {
  font-family: var(--serif); font-weight: 600; font-size: 1.24rem;
  letter-spacing: -0.01em; color: var(--petrol);
}
.brand .mark .dr { color: var(--ochre); font-style: italic; }
.brand .role { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); display: none; }
@media (min-width: 640px) { .brand .role { display: inline; } }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; padding: 0.5rem 0.7rem; border-radius: 2px;
  transition: color .18s ease, background .18s ease;
}
.nav-links a:hover { color: var(--petrol); background: rgba(20,73,78,0.05); }
.nav-links a.active { color: var(--petrol); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; background: var(--ochre);
  margin-top: 3px; border-radius: 2px;
}
.nav-cta { margin-left: 0.4rem; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 2px; padding: 0.5rem 0.6rem; cursor: pointer; color: var(--petrol);
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 4vw 1.2rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta { margin: 0.8rem 0.5rem 0; }
  .nav-links .nav-cta .btn { width: 100%; justify-content: center; }
}

.nav-links .nav-cta a,
.nav-links .nav-cta a:hover {
  color: var(--paper);
  background: var(--petrol-lift);
}

/* ============================================================
   HERO (home)
   ============================================================ */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.7rem);
  font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.4em;
}
.hero h1 em { font-style: italic; color: var(--petrol); }
.hero-sub { font-size: clamp(1.08rem, 2vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; max-width: 34ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-portrait { position: relative; }
.hero-portrait img {
  width: 100%; border-radius: 3px; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center 22%;
}
.hero-portrait .badge {
  position: absolute; left: -0.6rem; bottom: -0.9rem;
  background: var(--petrol-deep); color: var(--paper);
  font-family: var(--serif); font-style: italic; font-size: 0.98rem;
  padding: 0.7rem 1.1rem; border-radius: 2px; box-shadow: var(--shadow-md);
  max-width: 15rem; line-height: 1.3;
}
.hero-portrait .badge b { font-style: normal; font-weight: 600; color: var(--ochre-soft); }

/* signature thread motif */
.thread { display: block; width: 100%; height: auto; }
.hero-thread { margin: clamp(1.8rem, 4vw, 2.8rem) 0 0; opacity: 0.9; }

/* ---------- credibility strip ---------- */
.creds {
  background: var(--petrol-deep); color: var(--paper);
}
.creds .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2.4rem; padding: 1.4rem 0; }
.creds .item { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; font-weight: 500; color: rgba(246,241,231,0.92); }
.creds .item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ochre); flex: none; }

/* ============================================================
   ROUTE CARDS — the two doors
   ============================================================ */
.routes-intro { text-align: center; max-width: 40ch; margin: 0 auto clamp(2.2rem, 5vw, 3rem); }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

.route {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.route:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(20,73,78,0.35); }
.route-img { aspect-ratio: 16 / 11; overflow: hidden; }
.route-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.route:hover .route-img img { transform: scale(1.04); }
.route-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.route-body .kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ochre); margin-bottom: 0.5rem; }
.route-body h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.route-body p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.2rem; }
.route-body .go { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--petrol); font-size: 0.95rem; }
.route:hover .go .arrow { transform: translateX(4px); }
.go .arrow { transition: transform .2s ease; }

/* ============================================================
   PAGE HEADER (service / interior pages)
   ============================================================ */
.pagehead { position: relative; overflow: hidden; background: var(--petrol-deep); }
.pagehead-img { position: absolute; inset: 0; }
.pagehead-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.pagehead::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--petrol-deep) 30%, rgba(15,56,60,0.55) 100%);
}
.pagehead .wrap { position: relative; z-index: 2; padding: clamp(3.2rem, 8vw, 5.5rem) 0; }
.pagehead .eyebrow { color: var(--ochre-soft); }
.pagehead .eyebrow::before { background: var(--ochre); }
.pagehead h1 { color: var(--paper); font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18ch; }
.pagehead p { color: rgba(246,241,231,0.86); font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 52ch; margin-top: 0.6rem; }

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 0; }
.prose h3 { font-size: 1.3rem; color: var(--petrol); margin-bottom: 0.3rem; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: 4px; box-shadow: var(--shadow-md); width: 100%; }
.split .media-caption { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.6rem; font-style: italic; }

/* offering list */
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.offer-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--line);
}
.offer-list li:first-child { border-top: 1px solid var(--line); }
.offer-list .marker {
  font-family: var(--serif); font-size: 0.95rem; color: var(--ochre);
  padding-top: 0.15rem; font-variant-numeric: tabular-nums;
}
.offer-list .offer-title { font-weight: 600; color: var(--ink); display: block; margin-bottom: 0.1rem; }
.offer-list .offer-desc { color: var(--ink-soft); font-size: 0.96rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.6rem 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; }
.step .num { font-family: var(--serif); font-size: 2rem; color: var(--ochre); line-height: 1; display: block; margin-bottom: 0.5rem; }
.step h4 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* what I teach grid */
.teach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.teach-card { padding: 1.4rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; border-left: 3px solid var(--petrol); }
.teach-card h4 { font-size: 1.1rem; margin-bottom: 0.25rem; color: var(--petrol); }
.teach-card p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

/* info chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper-3); border: 1px solid var(--line); border-radius: 100px; padding: 0.45rem 0.95rem; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--petrol); }

/* ---------- pull / trust panel ---------- */
.panel {
  background: var(--petrol-deep); color: var(--paper);
  border-radius: 6px; padding: clamp(2rem, 5vw, 3.2rem);
  position: relative; overflow: hidden;
}
.panel .eyebrow { color: var(--ochre-soft); }
.panel .eyebrow::before { background: var(--ochre); }
.panel h2, .panel h3 { color: var(--paper); }
.panel p { color: rgba(246,241,231,0.88); }
.panel .thread-accent { position: absolute; right: -2%; top: 50%; transform: translateY(-50%); width: 45%; opacity: 0.25; pointer-events: none; }

/* ---------- testimonial ---------- */
.testimonial {
  border-left: 3px solid var(--ochre);
  padding: 0.4rem 0 0.4rem 1.6rem;
  margin: 0;
}
.testimonial blockquote { margin: 0 0 0.7rem; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-style: italic; line-height: 1.4; color: var(--ink); }
.testimonial .cite { font-size: 0.9rem; color: var(--ink-soft); font-style: normal; }
.testimonial .cite b { color: var(--petrol); font-weight: 600; }
.placeholder-note {
  font-size: 0.82rem; color: var(--ochre); background: rgba(187,143,67,0.09);
  border: 1px dashed rgba(187,143,67,0.5); border-radius: 3px;
  padding: 0.5rem 0.8rem; margin-top: 0.8rem; display: inline-block;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.strip-band { width: 100%; height: clamp(120px, 22vw, 200px); object-fit: cover; }
.pieces { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.piece { display: flex; flex-direction: column; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease; }
.piece:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.piece .tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre); margin-bottom: 0.7rem; }
.piece h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.piece p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.piece .read { margin-top: auto; font-weight: 600; color: var(--petrol); font-size: 0.92rem; }

/* ============================================================
   CREDENTIALS (about)
   ============================================================ */
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cred-list li:first-child { border-top: 1px solid var(--line); }
.cred-list .yr { font-family: var(--serif); color: var(--ochre); font-size: 0.9rem; white-space: nowrap; }
.cred-list .txt strong { display: block; color: var(--ink); font-weight: 600; }
.cred-list .txt span { color: var(--ink-soft); font-size: 0.94rem; }

/* ============================================================
   CONTACT / FORMS
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 3px;
  padding: 0.75rem 0.9rem; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px rgba(20,73,78,0.12);
}
.field textarea { resize: vertical; min-height: 140px; }
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  margin: 0; cursor: pointer; padding: 0.6rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: 100px; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  transition: all .18s ease; background: var(--paper);
}
.seg input:checked + label { background: var(--petrol); color: var(--paper); border-color: var(--petrol); }
.seg input:focus-visible + label { outline: 2.5px solid var(--ochre); outline-offset: 2px; }

.contact-aside { background: var(--paper-2); border: 1px solid var(--line); border-radius: 5px; padding: clamp(1.5rem, 4vw, 2.2rem); }
.contact-aside h3 { font-size: 1.2rem; margin-bottom: 0.8rem; }
.contact-aside .row { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.contact-aside .row:last-of-type { border-bottom: none; }
.contact-aside .row .ic { color: var(--petrol); flex: none; margin-top: 2px; }
.contact-aside .row a { word-break: break-word; }
.contact-portrait { border-radius: 4px; margin-top: 1.2rem; box-shadow: var(--shadow-sm); }

.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--petrol-deep); color: rgba(246,241,231,0.82); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line-light); }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 1.6rem; } }
.footer-brand .mark { font-family: var(--serif); font-size: 1.35rem; color: var(--paper); font-weight: 600; }
.footer-brand .mark .dr { color: var(--ochre-soft); font-style: italic; }
.footer-brand p { margin-top: 0.7rem; font-size: 0.94rem; max-width: 34ch; color: rgba(246,241,231,0.7); }
.footer-col h4 { color: var(--paper); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(246,241,231,0.78); text-decoration: none; font-size: 0.95rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; padding-top: 1.6rem; font-size: 0.85rem; color: rgba(246,241,231,0.6); }
.footer-bottom a { color: rgba(246,241,231,0.72); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* utility */
.center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }
.mb-0 { margin-bottom: 0; }
.divider-thread { margin: clamp(2.5rem,6vw,4rem) auto; max-width: 620px; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--paper);
  color: var(--petrol-deep);
  border: 2px solid var(--ochre);
  padding: 0.7rem 1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   EXTENDED PORTFOLIO
   ============================================================ */
.eyebrow-center { justify-content: center; }
.portfolio-heading {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.55em;
}
.portfolio-intro {
  max-width: 66ch;
  margin: 1.25rem auto 0;
  color: var(--ink-soft);
}
.portfolio-work {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.section-heading { margin-bottom: clamp(1.6rem, 4vw, 2.5rem); }
.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 0;
}
.featured-pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
}
.featured-piece {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--petrol);
  border-radius: 4px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.piece-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-bottom: 0.9rem;
}
.featured-piece .tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre);
}
.piece-length {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.featured-piece h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin-bottom: 0.55rem;
}
.piece-deck {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.piece-details {
  margin: 0.4rem 0 1.5rem;
  border-top: 1px solid var(--line);
}
.piece-details div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.piece-details dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol);
}
.piece-details dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.piece-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.2rem;
  margin-top: auto;
}
.source-link { font-size: 0.9rem; font-weight: 600; }

.portfolio-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--petrol-deep);
  color: var(--paper);
  border-radius: 5px;
  overflow: hidden;
}
.portfolio-proof div {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-right: 1px solid var(--line-light);
}
.portfolio-proof div:last-child { border-right: 0; }
.portfolio-proof strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 0.35rem;
}
.portfolio-proof span {
  display: block;
  color: rgba(246,241,231,0.76);
  font-size: 0.9rem;
}
.context-note {
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  border-radius: 4px;
}
.context-note h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
}
.context-note p { color: var(--ink-soft); }
.context-note p:last-child { margin-bottom: 0; }

/* ---------- individual writing samples ---------- */
.sample-header {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: clamp(2.8rem, 7vw, 5rem) 0;
}
.back-link {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 2.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.sample-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  max-width: 20ch;
  margin-bottom: 0.55em;
}
.article-deck {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 64ch;
}
.sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.84rem;
}
.sample-meta strong { color: var(--ink); }
.article-body {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.article-body > p {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  line-height: 1.78;
  color: var(--ink);
}
.article-body > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.65rem;
  line-height: 0.8;
  padding: 0.18rem 0.5rem 0 0;
  color: var(--petrol);
}
.source-note,
.project-note {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.4rem, 4vw, 2rem);
  border-radius: 4px;
}
.source-note {
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.project-note {
  background: rgba(20,73,78,0.055);
  border-left: 4px solid var(--petrol);
}
.source-note h2,
.project-note h2 {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
}
.source-note p,
.project-note p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.source-note p:last-of-type,
.project-note p:last-child { margin-bottom: 0.7rem; }
.source-note a { font-weight: 600; font-size: 0.9rem; }
.sample-next {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.next-sample {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
}
.next-sample h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.next-sample p:not(.eyebrow) {
  color: var(--ink-soft);
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .featured-pieces { grid-template-columns: 1fr; }
  .portfolio-proof { grid-template-columns: 1fr; }
  .portfolio-proof div {
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }
  .portfolio-proof div:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .piece-details div { grid-template-columns: 1fr; gap: 0.25rem; }
  .piece-actions .btn { width: 100%; justify-content: center; }
  .next-sample { grid-template-columns: 1fr; }
  .next-sample .btn { width: 100%; justify-content: center; }
}