/* =========================================================================
   ryanchuah.my — styles.css
   IT consulting + project management, AI-focused. Modern, logical, and
   professional — a navy/blue system with a structural grid and crisp,
   low-radius edges. Deliberately NOT a default SaaS/Tailwind template:
   IBM Plex (an engineered, technical type system) carries the personal
   brand instead of the generic Inter look.

   Aesthetic system
   ----------------
   · IBM Plex Sans (headings 700 + body)  → engineered, professional, distinct
   · IBM Plex Mono (kickers/numbers)       → methodology & precision (consulting/PM)
   · Navy structure + bright-blue accent, cool light-grey page
   · Two-axis blueprint grid + subtle per-segment gradients
   · Sharp edges (small radius), strong contrast

   All colours and fonts are tokens in :root — change one value to retheme.
   ========================================================================= */

/* -------------------------------------------------------------------------
   DESIGN TOKENS
   ------------------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy-soft:  #3798e4;   /* Primary blue — accents, highlights, fills      */
  --navy:       #253b50;   /* Mid-dark backgrounds, primary buttons          */
  --navy-deep:  #132230;   /* Darkest backgrounds (hero, CTA, footer)        */
  --bg:         #f3f3f3;   /* Page background                                */
  --surface:    #ffffff;   /* Cards                                          */
  --text:       #333333;   /* Body text                                      */
  --muted:      #666666;   /* Secondary text                                 */
  --gold:       #3798e4;   /* Alias for primary (legacy name kept)           */

  /* Convenience aliases + AA-safe variants */
  --accent:      var(--navy-soft);             /* decorative blue (lines/fills) */
  --accent-ink:  #14629e;  /* darker blue for blue TEXT/links (AA on light)   */
  --border:      #dfe3e8;  /* cool hairlines                                  */
  --on-dark:     #eef3f8;  /* text on navy surfaces                          */
  --on-dark-mut: rgba(238, 243, 248, 0.86);

  /* Segment gradients (subtle — distinguish content zones) */
  --panel: linear-gradient(180deg, #fbfcfd 0%, #eef0f3 100%);
  --tint:  linear-gradient(180deg, #eaf0f6 0%, #f0f3f6 100%);

  /* Type */
  --font-head: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout — small radius = sharp/logical */
  --maxw: 1080px;
  --radius: 4px;
  --space: clamp(3.5rem, 8vw, 6.5rem);

  /* Supporting */
  --accent-tint: color-mix(in srgb, var(--navy-soft) 9%, var(--bg));
  --shadow: 0 22px 50px -34px rgba(19, 34, 48, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 62ch;
  --grid-line: var(--border);   /* recoloured inside dark sections */
  --grid-size: clamp(72px, 9vw, 116px);
}

/* -------------------------------------------------------------------------
   RESET / BASE
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem); /* ~17–19px */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }

/* -------------------------------------------------------------------------
   ACCESSIBILITY — focus & skip link
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--navy-soft);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------------------
   LAYOUT HELPERS + SEGMENT BACKGROUNDS
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--space); position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section--panel { background: var(--panel); }
.section--tint  { background: var(--tint); }
.section--alt   { background: var(--surface); }

.section__head { max-width: var(--measure); margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Monospace kicker with a section number — consulting / methodology cue */
.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.kicker__num { color: var(--accent-ink); }
.kicker::after {
  content: "";
  flex: 0 0 2.5rem;
  height: 2px;
  background: var(--navy-soft);
}

.h-section { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
/* Lede = the distinct intro/subtitle under a heading (larger + muted) */
.lede {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  font-weight: 400;
  color: var(--muted);
  max-width: var(--measure);
  line-height: 1.45;
}

/* -------------------------------------------------------------------------
   BUTTONS  (sharp, grounded)
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* On light sections: solid navy button (high contrast), blue stays an accent */
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--outline:hover { border-color: var(--navy-soft); color: var(--accent-ink); }

/* On dark surfaces (hero / CTA): light button pops, outline turns light */
.on-dark .btn--primary { background: #fff; color: var(--navy-deep); }
.on-dark .btn--primary:hover { background: var(--navy-soft); color: #fff; }
.on-dark .btn--outline { color: #fff; border-color: rgba(255,255,255,0.55); }
.on-dark .btn--outline:hover { border-color: #fff; color: #fff; }

/* -------------------------------------------------------------------------
   HEADER / NAV
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.5rem;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy-deep);
}

.nav__menu { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }
.nav__link {
  position: relative;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.25rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--navy-soft);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__link:hover { color: var(--navy-deep); }
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); }

.nav__cta { margin-left: 0.25rem; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  display: block;
  width: 1.1rem; height: 2px;
  background: var(--navy-deep);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before { position: absolute; top: -6px; }
.nav__toggle-bars::after  { position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 48rem) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: 4.5rem 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem) 2.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 20px 40px -28px rgba(0,0,0,0.4);
  }
  .nav__menu[data-open="true"] { transform: translateY(0); }
  .nav__link { font-size: 1.15rem; }
  .nav__cta { margin-left: 0; margin-top: 0.5rem; }
}

/* -------------------------------------------------------------------------
   DARK SURFACE HELPERS
   ------------------------------------------------------------------------- */
.on-dark { color: var(--on-dark); --grid-line: rgba(120, 180, 235, 0.12); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .kicker { color: var(--on-dark-mut); }
.on-dark .kicker__num { color: var(--navy-soft); }
.on-dark .lede { color: var(--on-dark-mut); }

/* -------------------------------------------------------------------------
   TWO-AXIS BLUEPRINT GRID  (structural cue — subtle, decorative)
   ------------------------------------------------------------------------- */
.has-grid { overflow: hidden; }
.has-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 55%, transparent 100%);
}
.has-grid > .container { position: relative; }

/* -------------------------------------------------------------------------
   HERO  (dark navy)
   ------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(46rem 30rem at 88% -12%, rgba(55, 152, 228, 0.22), transparent 60%),
    linear-gradient(180deg, #0f1d2a 0%, var(--navy-deep) 100%);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1.1fr 0.9fr; } }

.hero__name {
  font-size: clamp(2.6rem, 2rem + 3.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.hero__promise {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--on-dark-mut);
  margin-bottom: 1.85rem;
  max-width: 40ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Portrait — blue ruled frame */
.hero__portrait { position: relative; justify-self: center; }
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: -0.85rem; /* even gap on all sides — image sits centred in the frame */
  border: 1.5px solid var(--navy-soft);
  border-radius: var(--radius);
  z-index: 0;
}
.media {
  position: relative;
  z-index: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media--portrait { aspect-ratio: 1 / 1; max-width: 22rem; width: 100%; }

/* -------------------------------------------------------------------------
   IMAGE PLACEHOLDER  (neutral box until a real file is dropped in)
   ------------------------------------------------------------------------- */
.img-placeholder {
  display: flex;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--on-dark-mut);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  background:
    repeating-linear-gradient(45deg,
      rgba(255,255,255,0.04) 0 12px,
      rgba(255,255,255,0.08) 12px 24px);
}

/* -------------------------------------------------------------------------
   CREDIBILITY STRIP
   ------------------------------------------------------------------------- */
.cred { background: var(--navy); }
.cred p {
  margin: 0;
  padding-block: 1.1rem;
  text-align: center;
  color: var(--on-dark-mut);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-wrap: balance;
}

/* -------------------------------------------------------------------------
   PROSE (problem / about paragraphs)
   ------------------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose p { line-height: 1.6; }
.prose .lede { line-height: 1.45; }
.prose p + p { margin-top: 1.25rem; }
.prose em { color: var(--accent-ink); font-style: italic; font-weight: 500; }

/* -------------------------------------------------------------------------
   HOW I HELP — numbered process rows + closing note
   ------------------------------------------------------------------------- */
.rows { border-top: 1px solid var(--border); margin-bottom: 2rem; }
.row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--border);
}
.row__num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent-ink);
  padding-top: 0.2rem;
}
.row__text { margin: 0; font-size: 1.15rem; max-width: 52ch; }

.note {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--accent-tint);
  border-left: 3px solid var(--navy-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
}
.note p { margin: 0; }

/* -------------------------------------------------------------------------
   4S FRAMEWORK CARDS
   ------------------------------------------------------------------------- */
.cards { display: grid; gap: 1.1rem; margin-block: 2rem; }
@media (min-width: 36rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 58rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.card__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--navy-deep); }
.card__text { color: var(--muted); margin: 0; font-size: 0.975rem; line-height: 1.5; }

.closing {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  color: var(--navy-deep);
  max-width: var(--measure);
  padding-left: 1.25rem;
  border-left: 3px solid var(--navy-soft);
}

/* -------------------------------------------------------------------------
   TESTIMONIALS
   ------------------------------------------------------------------------- */
.quotes { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; }
@media (min-width: 48rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin: 0;
}
.quote__text {
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.quote__text::before { content: "\201C"; color: var(--navy-soft); }
.quote__text::after  { content: "\201D"; color: var(--navy-soft); }
.quote__cite { font-style: normal; font-size: 0.875rem; color: var(--muted); }
.quote__cite strong { color: var(--navy-deep); display: block; font-weight: 600; }
.quotes-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0;
}

/* -------------------------------------------------------------------------
   WRITING & THINKING — link list
   ------------------------------------------------------------------------- */
.linklist { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.linklist a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.linklist a::before { content: "\2192"; color: var(--navy-soft); font-family: var(--font-mono); }
.linklist a:hover { border-color: var(--navy-soft); color: var(--accent-ink); transform: translateY(-2px); }

/* -------------------------------------------------------------------------
   CONTACT / CTA  (dark)
   ------------------------------------------------------------------------- */
.cta {
  background:
    radial-gradient(40rem 22rem at 100% 0, rgba(55,152,228,0.24), transparent 60%),
    linear-gradient(180deg, #0f1d2a 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(2.25rem, 6vw, 4rem);
  text-align: center;
}
.cta__title { color: #fff; font-weight: 700; font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem); margin-bottom: 0.85rem; max-width: 20ch; margin-inline: auto; }
.cta__text { color: var(--on-dark-mut); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 1.85rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; }

/* -------------------------------------------------------------------------
   FOOTER  (dark)
   ------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--navy-deep);
}
.site-footer p { margin: 0; color: var(--on-dark-mut); font-size: 0.95rem; }
.site-footer__tag {
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
  color: var(--navy-soft) !important;
}

/* -------------------------------------------------------------------------
   HERO CREDIBILITY PILLARS (mono line under the name)
   ------------------------------------------------------------------------- */
.hero__pillars {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  margin-bottom: 1.25rem;
}
.hero__pillars b { color: var(--navy-soft); font-weight: 600; }

/* -------------------------------------------------------------------------
   CHIP / TAG LIST  (non-link — e.g. AI capabilities)
   ------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy-deep);
}

/* Grouped chip stacks (AI tools, industries) */
.chips-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 0.75rem;
}
.ai-stack { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.ai-group .chips,
.industries .chips { margin-top: 0; }

/* Role cards: small mono label on top (reuses .cards/.card) */
.card__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.6rem;
}

/* Secondary lede after a card grid (e.g. tenure line in Proof) */
.lede--after { margin-top: 1.75rem; }

/* -------------------------------------------------------------------------
   STANCE — "the noise" vs "where I stand" (two-panel contrast)
   ------------------------------------------------------------------------- */
.stance { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 52rem) { .stance { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.stance__col p { line-height: 1.6; margin: 0; }
.stance__col p + p { margin-top: 1rem; }
.stance__col .chips-label { margin-bottom: 1rem; }
.stance__col--problem p { color: var(--muted); }
.stance__col--stand {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--navy-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
}

/* -------------------------------------------------------------------------
   BIO — labelled narrative rail (Who I am)
   ------------------------------------------------------------------------- */
.bio { display: grid; gap: 2.25rem; }
.bio__row { display: grid; gap: 0.5rem; }
@media (min-width: 52rem) {
  .bio__row { grid-template-columns: 11rem 1fr; gap: 2rem; align-items: start; }
}
.bio__row > p { margin: 0; max-width: var(--measure); line-height: 1.6; }
.bio__row .chips-label { margin: 0; padding-top: 0.35rem; }

/* -------------------------------------------------------------------------
   ENTRANCE ANIMATION  (subtle, staggered — off if user prefers less motion)
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal 0.6s var(--ease) forwards;
    animation-delay: var(--reveal-delay, 0s);
  }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* -------------------------------------------------------------------------
   SCROLL-TRIGGERED REVEALS  (progressive enhancement — only active with JS)
   Elements fade/rise in as they enter the viewport; staggered per group via
   inline transition-delay set in JS. Falls back to fully visible without JS.
   ------------------------------------------------------------------------- */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
