/* ==========================================================
   burakgulen.com — shared stylesheet
   Warm editorial minimalism. Tokens first, then components,
   then page-specific bits, then the phone layout at the end.
   ========================================================== */

:root {
  --paper: #FBFAF6;
  --ink: #1D1B17;
  --ink-soft: #5B564C;
  --muted: #8A8578;
  --line: #E4E0D6;
  --wash: #F1EEE4;
  --ghost: #B3AD9C;
  --teal: #2F6B63;
  --teal-dark: #24544D;
  --gold: #B8923E;
  --body-dark: #3A362E;   /* "Right now" and markers text */
  --story-ink: #312E27;   /* long-form story text */
  --dot: #D8D2C4;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', sans-serif;

  --gutter: 32px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: var(--paper); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
em { font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

main { position: relative; overflow-x: clip; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; font-size: 13px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* ---------- Containers ---------- */
.wrap      { max-width: 640px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.wrap-560  { max-width: 560px; }
.wrap-600  { max-width: 600px; }
.wrap-760  { max-width: 760px; }
.wrap-800  { max-width: 800px; }
.center    { text-align: center; }

/* A content section separated by a hairline */
.section { border-top: 1px solid var(--line); margin-top: 88px; padding-top: 64px; }
.section-lg { margin-top: 104px; }
.section-sm { margin-top: 80px; padding-top: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 246, .86);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 22px; letter-spacing: .01em; color: var(--ink); white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 34px; }
.navlink {
  color: var(--ink-soft); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; transition: color .2s ease;
}
.navlink:hover, .navlink.active { color: var(--ink); }

.lang {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--ghost);
  padding-left: 22px; border-left: 1px solid var(--line);
}
.lang a { color: var(--muted); transition: color .2s ease; }
.lang a:hover, .lang .current { color: var(--ink); }
.lang .soon { color: var(--ghost); cursor: default; }

.menu-toggle {
  display: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  font-family: var(--sans); color: var(--ink); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 104px; padding: 32px 0 64px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-copy { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.dogma-mark { color: var(--ink-soft); flex: none; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 13px; color: var(--ink-soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
.kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 18px;
}
.kicker.gold { color: var(--gold); margin-bottom: 16px; }
.label {
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.page-title { font-size: 40px; line-height: 1.2; margin: 0 0 20px; }
.page-title.lg { font-size: 42px; }
.lead { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.lead.narrow { max-width: 52ch; margin-left: auto; margin-right: auto; }
.h2 { font-size: 28px; margin: 0 0 28px; }
.h2.sm { font-size: 26px; margin-bottom: 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.section-head .h2 { margin: 0; }
.body { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0; }
.fine { font-size: 12px; color: var(--muted); letter-spacing: .03em; }

.hero { padding-top: 100px; }

/* ---------- Links ---------- */
.quiet-link {
  color: var(--teal); border-bottom: 1px solid rgba(47, 107, 99, .35); padding-bottom: 2px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
  transition: border-color .2s ease, color .2s ease;
}
.quiet-link:hover { border-color: var(--teal); color: var(--ink); }
.cta-link { display: inline-flex; align-items: center; gap: 8px; transition: gap .2s ease, border-color .2s ease, color .2s ease; }
.cta-link:hover { gap: 14px; }
.link-row { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.link-row .sep { color: var(--dot); }

/* ---------- Icons ---------- */
.icon { display: block; flex: none; }

/* ---------- Cards (skills, consulting) ---------- */
.card-grid { display: grid; gap: 14px; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line); padding: 18px;
  transition: background .2s ease, border-color .2s ease;
}
.card:hover { background: var(--wash); border-color: var(--ghost); }
.card .icon { margin-bottom: 10px; }
.card-title { font-size: 13.5px; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.card.roomy { padding: 20px; }
.card.roomy .icon { margin-bottom: 12px; }
.card.roomy .card-title { font-size: 14.5px; }

/* Expanding card (Consulting): icon lifts away, title moves up, detail appears.
   Height is fixed, so neighbours never jump. */
.xcard {
  display: grid; grid-template-rows: 1fr auto 0fr; text-align: left; cursor: pointer;
  min-height: var(--xcard-h, 196px); background: none; font: inherit; color: inherit; width: 100%;
  transition: grid-template-rows .5s cubic-bezier(.16,.8,.3,1), background .2s ease, border-color .2s ease;
}
.xcard > span { min-height: 0; overflow: hidden; }
.xcard-icon .icon { margin-bottom: 12px; transition: opacity .4s ease, transform .45s cubic-bezier(.16,.8,.3,1), filter .45s ease; }
.xcard-detail > span {
  display: block; padding-top: 8px; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
  opacity: 0; transform: translateY(8px); filter: blur(4px);
  transition: opacity .45s ease .05s, transform .45s cubic-bezier(.16,.8,.3,1) .05s, filter .45s ease .05s;
}
.xcard.is-open, .xcard:focus-visible { grid-template-rows: 0fr auto 1fr; background: var(--wash); border-color: var(--ghost); }
.xcard.is-open .xcard-icon .icon, .xcard:focus-visible .xcard-icon .icon { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.xcard.is-open .xcard-detail > span, .xcard:focus-visible .xcard-detail > span { opacity: 1; transform: none; filter: none; }
@media (hover: hover) {
  .xcard:hover { grid-template-rows: 0fr auto 1fr; }
  .xcard:hover .xcard-icon .icon { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
  .xcard:hover .xcard-detail > span { opacity: 1; transform: none; filter: none; }
}
.xcard:focus-visible { outline-offset: -2px; }

/* ---------- Timeline (career) ---------- */
.tl-row { display: grid; grid-template-columns: 110px 1fr; gap: 6px 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.tl-years { font-size: 13px; color: var(--teal); font-weight: 600; }
.tl-role { font-size: 16px; font-weight: 600; color: var(--ink); }
.tl-place { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.tl-detail { color: var(--ink-soft); font-size: 13.5px; margin-top: 8px; line-height: 1.6; }

/* ---------- Parallax glow ---------- */
.glow {
  position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; z-index: 0; will-change: transform;
}
.glow-teal { top: 40px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(47,107,99,.10) 0%, rgba(47,107,99,0) 70%); }
.glow-gold { top: 20px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(184,146,62,.09) 0%, rgba(184,146,62,0) 70%); }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.in {
  opacity: 1; transform: translateY(0);
  transition: opacity .9s cubic-bezier(.16,.8,.3,1), transform .9s cubic-bezier(.16,.8,.3,1);
}

/* ==========================================================
   HOME
   ========================================================== */
.home-hero { padding-top: 118px; }
.home-hero .eyebrow { margin-bottom: 26px; }
.home-title { font-size: 58px; line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 26px; }
.home-intro { font-size: 18px; line-height: 1.7; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 38px; }
.home-hero .link-row { margin-bottom: 64px; }
.portrait-lg { width: 300px; height: 430px; object-fit: cover; border: 1px solid var(--line); display: inline-block; }

.stats { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 8px; }

/* Stat tile: front (number) and back (details) share one grid cell,
   so the tile is always as tall as its longest side — no layout jump. */
.stat {
  display: grid; position: relative; text-align: center; cursor: pointer;
  padding: 24px 6px 20px; border: 0; border-right: 1px solid var(--line); background: none;
  font: inherit; color: inherit; transition: background .35s ease;
}
.stat:last-child { border-right: 0; }
.stat > span { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.stat-num { font-family: var(--serif); font-weight: 500; font-size: 32px; color: var(--ink); line-height: 1.2; }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.stat-back { hyphens: auto; overflow-wrap: break-word; font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); font-weight: 500; }
.stat-kicker { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.stat-arrow { color: var(--ghost); font-size: 10px; }
.stat-fine { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 10.5px; line-height: 1.5; color: var(--muted); }
.stat-sep { display: block; width: 14px; height: 1px; background: var(--gold); margin: 6px auto; }
/* tiny "+" hint in the corner, turns into × when open */
.stat::after {
  content: "+"; position: absolute; top: 8px; right: 10px; font-size: 13px; line-height: 1;
  color: var(--ghost); transition: transform .35s ease, color .35s ease;
}

/* The shared motion: the front blurs and lifts away, the back rises into focus */
.stat-front, .stat-back {
  transition: opacity .45s cubic-bezier(.16,.8,.3,1), transform .45s cubic-bezier(.16,.8,.3,1), filter .45s cubic-bezier(.16,.8,.3,1);
}
.stat-back { opacity: 0; transform: translateY(12px); filter: blur(6px); pointer-events: none; }
.stat.is-open, .stat:focus-visible { background: var(--wash); }
.stat.is-open::after, .stat:focus-visible::after { transform: rotate(45deg); color: var(--teal); }
.stat.is-open .stat-front, .stat:focus-visible .stat-front { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
.stat.is-open .stat-back, .stat:focus-visible .stat-back { opacity: 1; transform: none; filter: none; transition-delay: .06s; }
@media (hover: hover) {
  .stat:hover { background: var(--wash); }
  .stat:hover::after { transform: rotate(45deg); color: var(--teal); }
  .stat:hover .stat-front { opacity: 0; transform: translateY(-12px); filter: blur(6px); }
  .stat:hover .stat-back { opacity: 1; transform: none; filter: none; transition-delay: .06s; }
}
.stat:focus-visible { outline-offset: -2px; }
.journals-note { font-size: 13px; line-height: 1.65; color: var(--muted); text-align: center; max-width: 50ch; margin: 28px auto 0; }

.right-now { margin: 0; font-family: var(--serif); font-size: 21px; line-height: 1.6; color: var(--body-dark); }
.right-now b { font-weight: 600; color: var(--ink); }
.pulse-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 10px; vertical-align: middle; }

.pull-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 27px; line-height: 1.55; color: var(--ink); margin: 0 0 20px; }

.thumb-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.thumb-row img { width: 100%; height: 130px; object-fit: cover; border: 1px solid var(--line); display: block; }

/* ==========================================================
   STORY
   ========================================================== */
.story-hero { padding-top: 112px; }
.story-hero .eyebrow { font-size: 12px; }
.story-title { font-style: italic; font-size: 48px; line-height: 1.2; margin: 0 0 24px; }
.story-sub { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 44ch; margin: 0 auto; }

.beat { margin-top: 96px; }
.beat-first { margin-top: 88px; }
.beat-num { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.beat-num.gold { color: var(--gold); }
.beat-head { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 24px; color: var(--teal); margin-bottom: 18px; }
.beat-head.gold { color: var(--gold); }
.beat p { font-family: var(--serif); font-size: 21px; line-height: 1.75; color: var(--story-ink); margin: 0; }
.beat p + p { margin-top: 22px; }
.beat .turn { font-style: italic; font-size: 19px; line-height: 1.7; color: var(--ink-soft); margin-top: 34px; }
.beat-img { width: 100%; height: 300px; object-fit: cover; border: 1px solid var(--line); margin-top: 34px; display: block; }
.book { display: flex; gap: 22px; align-items: center; margin-top: 30px; }
.book img { width: 104px; height: auto; flex: none; border: 1px solid var(--line); }
.book-caption { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.closing { margin-top: 132px; padding-top: 72px; }
.closing-quote { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.5; color: var(--gold); margin: 0 0 28px; }
.closing .body { max-width: 48ch; margin: 0 auto; }
.closing .body + .body { margin-top: 18px; }

/* ==========================================================
   BIO
   ========================================================== */
.bio-hero { display: grid; grid-template-columns: 1fr 200px; gap: 44px; align-items: center; }
.bio-hero .page-title { font-size: 42px; }
.portrait-sm { width: 200px; height: 260px; object-fit: cover; border: 1px solid var(--line); display: block; }

.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu-year { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 6px; }
.edu-degree { font-size: 15px; font-weight: 600; }
.edu-school { color: var(--muted); font-size: 13px; margin-top: 2px; }

.markers { display: flex; flex-direction: column; gap: 16px; }
.marker { display: flex; gap: 14px; align-items: baseline; }
.marker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.marker p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--body-dark); }

.bridge { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); margin: 0 0 24px; }

/* ==========================================================
   RESEARCH
   ========================================================== */
.metrics { margin-top: 28px; }
.metrics-line { font-family: var(--serif); font-size: 21px; color: var(--ink); }
.metrics-line .sep { color: var(--ghost); padding: 0 6px; }
.metrics .fine { margin-top: 6px; }

.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
.interest { display: flex; gap: 14px; }
.interest .icon { margin-top: 2px; }
.interest-title { font-size: 15px; font-weight: 600; }
.interest-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.5; }

.pub-head { margin-bottom: 8px; }
.pubrow {
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 10px;
  border-top: 1px solid var(--line); transition: background .2s ease;
}
.pubrow:last-child { border-bottom: 1px solid var(--line); }
.pubrow:hover { background: var(--wash); }
.pub-num { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ghost); }
.pub-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.pub-meta { font-size: 12.5px; color: var(--muted); }
.pub-meta b { color: var(--teal); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; grid-auto-flow: dense; }
.figtile { position: relative; overflow: hidden; display: block; margin: 0; }
.fig-open { display: block; height: 100%; }
.figtile img { width: 100%; height: 158px; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16,.8,.3,1); }

/* Caption layer: dark tint + text, shown on hover (desktop) or first tap (phone) */
.fig-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px;
  padding: 14px; background: rgba(29, 27, 23, .82); color: var(--paper);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;
}
.fig-cap > * { transform: translateY(8px); transition: transform .45s cubic-bezier(.16,.8,.3,1); }
.figtile.is-open .fig-cap, .figtile:focus-within .fig-cap { opacity: 1; }
.figtile.is-open .fig-cap > *, .figtile:focus-within .fig-cap > * { transform: none; }
.figtile.is-open .fig-doi, .figtile:focus-within .fig-doi { pointer-events: auto; }
@media (hover: hover) {
  .figtile:hover .fig-cap { opacity: 1; }
  .figtile:hover .fig-cap > * { transform: none; }
  .figtile:hover .fig-doi { pointer-events: auto; }
  .figtile:hover img { transform: scale(1.03); }
}
.fig-badge {
  align-self: flex-start; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #E2C47F; border: 1px solid rgba(226,196,127,.6); padding: 3px 7px; margin-bottom: 2px;
}
.fig-meta { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(251,250,246,.7); }
.fig-title {
  font-family: var(--serif); font-size: 16px; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fig-desc { font-size: 12px; line-height: 1.5; color: rgba(251,250,246,.8); }
.fig-note { font-size: 11px; color: #E2C47F; font-weight: 600; }
.fig-doi {
  align-self: flex-start; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; color: var(--paper);
  border-bottom: 1px solid rgba(251,250,246,.45); padding-bottom: 1px; margin-top: 3px; pointer-events: none;
}
.fig-doi:hover { border-color: var(--paper); }
.figtile.big .fig-cap { padding: 22px; gap: 7px; }
.figtile.big .fig-title { font-size: 22px; }
.figtile:not(.big) .fig-desc { display: none; }
.figtile.big { grid-column: span 2; grid-row: span 2; }
.figtile.big-right { grid-column: 3 / span 2; }
.figtile.top img { object-position: top; }
.figtile.big img { height: 100%; min-height: 326px; }

/* ==========================================================
   CONSULTING
   ========================================================== */
.cta-box { border: 1px solid var(--teal); padding: 40px 36px; }
.cta-title { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 10px; }
.cta-box p { font-size: 15px; color: var(--ink-soft); margin: 0 0 22px; }

/* ==========================================================
   BLOG
   ========================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.postcard {
  display: block; border: 1px solid var(--line); background: #fff; padding: 24px;
  transition: border-color .2s ease, background .2s ease;
}
.postcard:hover { border-color: var(--ghost); background: var(--wash); }
.post-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.post-meta span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.posttitle { font-weight: 600; font-size: 19px; margin: 0 0 10px; line-height: 1.3; transition: color .2s ease; }
.postcard:hover .posttitle { color: var(--teal); }
.post-summary { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.post-thumb { width: 56px; height: auto; border: 1px solid var(--line); margin-top: 14px; display: block; }
.empty-note { font-size: 15px; color: var(--muted); }

/* Single post */
.post-body { font-size: 17px; line-height: 1.8; color: var(--story-ink); }
.post-body p { margin: 0 0 1.2em; }
.post-body h2 { font-size: 28px; margin: 1.8em 0 .6em; color: var(--ink); }
.post-body h3 { font-size: 22px; margin: 1.6em 0 .5em; color: var(--ink); }
.post-body a { color: var(--teal); border-bottom: 1px solid rgba(47,107,99,.35); }
.post-body a:hover { border-color: var(--teal); color: var(--ink); }
.post-body img { display: block; margin: 1.6em auto; border: 1px solid var(--line); }
.post-body .post-img { width: 220px; height: auto; }

.post-body blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--gold); font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--ink-soft); }
.post-body ul, .post-body ol { padding-left: 1.2em; margin: 0 0 1.2em; }

/* ==========================================================
   CONTACT
   ========================================================== */
.contactrow {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--line); padding: 18px 20px;
  transition: background .2s ease, border-color .2s ease;
}
.contactrow + .contactrow { margin-top: 12px; }
.contactrow:hover { background: var(--wash); border-color: var(--ghost); }
.contact-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.field {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; transition: border-color .2s ease;
}
.field::placeholder { color: var(--ghost); }
.field:focus { outline: none; border-color: var(--teal); }
textarea.field { resize: vertical; min-height: 140px; }
.topic { display: flex; flex-direction: column; gap: 8px; align-self: flex-start; min-width: 220px; }
.topic-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.field-select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232F6B63' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field-select:invalid { color: var(--ghost); }
.field-select option { color: var(--ink); }
.submitbtn {
  align-self: flex-start; background: var(--teal); color: var(--paper); border: none;
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; letter-spacing: .03em;
  padding: 13px 26px; cursor: pointer; display: flex; align-items: center; gap: 9px;
  transition: background .2s ease;
}
.submitbtn:hover { background: var(--teal-dark); }
.submitbtn[disabled] { opacity: .55; cursor: default; }
.form-status { font-size: 14px; color: var(--ink-soft); margin: 0; min-height: 1em; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #9A3B2E; }
.hp { display: none !important; }

/* ==========================================================
   Reduced motion: switch off reveal, parallax and transitions
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .glow { transform: translateX(-50%) !important; }
  .stat-front, .stat-back, .stat::after { transition: none !important; filter: none !important; transform: none !important; }
  .fig-cap, .fig-cap > *, .figtile img { transition: none !important; transform: none !important; }
  .xcard, .xcard .icon, .xcard-detail > span { transition: none !important; filter: none !important; transform: none !important; }
  .cta-link, .cta-link:hover { transition: none; }
}

/* ==========================================================
   Tablet / narrow desktop: collapse nav
   ========================================================== */
@media (max-width: 960px) {
  .header-inner { flex-wrap: wrap; height: auto; min-height: 72px; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 4px 0 18px;
  }
  .site-nav .navlink { display: block; width: 100%; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
  .site-nav .lang { border-left: 0; padding: 14px 0 0; font-size: 12.5px; gap: 8px; }
  .nav-open .site-nav { display: flex; }
  /* Without JavaScript, keep the nav reachable */
  .no-js .menu-toggle { display: none; }
  .no-js .site-nav { display: flex; }
}

/* ==========================================================
   Phones
   ========================================================== */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  .hero, .home-hero, .story-hero { padding-top: 64px; }
  .section { margin-top: 64px; padding-top: 48px; }
  .section-lg { margin-top: 72px; }
  .section-sm { margin-top: 56px; padding-top: 44px; }
  .site-footer { margin-top: 72px; }

  .home-title { font-size: 40px; }
  .home-intro { font-size: 16.5px; }
  .page-title, .page-title.lg, .bio-hero .page-title { font-size: 33px; }
  .story-title { font-size: 40px; }
  .pull-quote { font-size: 23px; }
  .closing { margin-top: 88px; padding-top: 56px; }
  .closing-quote { font-size: 26px; }
  .closing-quote br { display: none; }
  .beat { margin-top: 72px; }
  .beat p { font-size: 19px; }
  .beat-img { height: 220px; }
  .right-now { font-size: 19px; }

  .portrait-lg { width: min(300px, 100%); height: auto; aspect-ratio: 300 / 430; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 22px 10px 18px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:last-child { grid-column: span 2; border-bottom: 0; }
  .stat-back { hyphens: auto; overflow-wrap: break-word; font-size: 11.5px; }
  .stat-num { font-size: 28px; }

  .tl-row { grid-template-columns: 1fr; gap: 4px; }

  .bio-hero { grid-template-columns: 1fr; gap: 28px; }
  .bio-hero .portrait-sm { order: -1; width: 160px; height: 208px; }

  .card-grid.cols-2, .card-grid.cols-3, .edu-grid, .interest-grid, .post-grid, .form-row { grid-template-columns: 1fr; }
  .thumb-row { gap: 8px; }
  .thumb-row img { height: 96px; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .figtile img { height: 140px; }
  .fig-cap { padding: 10px; gap: 4px; }
  .fig-title { font-size: 14.5px; }
  .figtile.big .fig-cap { padding: 16px; }
  .figtile.big .fig-title { font-size: 19px; }
  .figtile.big img { min-height: 0; height: 240px; }
  .figtile.big-right { grid-column: span 2; }

  .section-head { flex-wrap: wrap; }
  .cta-box { padding: 32px 20px; }
  .xcard { min-height: var(--xcard-h, 174px); }
  .metrics-line { font-size: 19px; }
}
