/* ============================================================
   Preetam Roy — portfolio
   Soft Ledger: warm paper, sage accent, Newsreader headings.

   Two rules govern this file:

   1. TYPE. Every font-size in here is one of the eight --fs-*
      tokens in section 1. No exceptions, no one-off values. The
      previous stylesheet used 36 different sizes across 53
      declarations, which is why headings that sat in the same
      visual position rendered at six different sizes.

   2. COLOUR. Every colour comes from a token. Light is defined
      on :root; dark redefines only the tokens. Nothing declares
      a literal colour outside section 1, so a theme can never
      half-apply.

   Contents
     1. Tokens
     2. Reset and base
     3. Motion primitives
     4. Header and navigation
     5. Buttons and chips
     6. Hero
     7. Dashboard
     8. How I work
     9. Work
    10. Experience
    11. Skills
    12. About
    13. Education
    14. Contact and footer
    15. Print
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Soft Ledger, light. The neutral is warm rather than grey: it
     shares a hue with the sage accent, which is what stops the
     page reading as a default template. */
  --bg:         #FBF8F4;
  --surface:    #FFFFFF;
  --surface-2:  #F5F1EA;
  --line:       #E9E2D8;
  --line-soft:  #F1ECE4;
  --track:      #EFE9E0;
  --ink:        #23201C;
  --text:       #3B362F;
  --muted:      #6E665C;
  --faint:      #9A9086;
  --accent:     #7C9A84;
  --accent-deep:#5E7C67;
  --accent-soft:#EEF3EF;
  --on-accent:  #FFFFFF;
  --shadow:     0 1px 2px rgba(35, 32, 28, .04);
  --shadow-lg:  0 18px 40px -24px rgba(35, 32, 28, .28);

  /* Type: eight steps, and only these eight. */
  --fs-display: clamp(2.6rem, 1.6rem + 4.4vw, 4.25rem);
  --fs-h1:      clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
  --fs-h2:      clamp(1.55rem, 1.35rem + .85vw, 1.95rem);
  --fs-h3:      clamp(1.28rem, 1.18rem + .45vw, 1.5rem);
  --fs-lead:    clamp(1.06rem, 1rem + .4vw, 1.22rem);
  --fs-body:    1rem;
  --fs-meta:    .875rem;
  --fs-label:   .75rem;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1180px;
  --r:    14px;
  --r-pill: 999px;
  --pad:  clamp(1.25rem, 5vw, 4.5rem);
}

[data-theme="dark"] {
  /* The dark counterpart keeps the warm bias instead of flipping to
     a blue-black, so both themes read as the same site. The sage
     lifts to hold contrast against the dark ground. */
  --bg:         #16140F;
  --surface:    #1F1C16;
  --surface-2:  #262219;
  --line:       #302B22;
  --line-soft:  #262219;
  --track:      #2A251D;
  --ink:        #F5F0E6;
  --text:       #E4DDD1;
  --muted:      #A79E90;
  --faint:      #7D7568;
  --accent:     #9DBCA4;
  --accent-deep:#B4CEBA;
  --accent-soft:#21261F;
  --on-accent:  #16140F;
  --shadow:     0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg:  0 18px 40px -24px rgba(0, 0, 0, .6);
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: .85rem 1.4rem; border-radius: 0 0 var(--r) 0;
  font-size: var(--fs-meta); font-weight: 600;
}
.skip:focus { left: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.meta { font-family: var(--mono); font-size: var(--fs-label); color: var(--faint); }

.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--alt { background: var(--surface-2); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: .75rem 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.section__title { font-size: var(--fs-h1); }
.section__note { font-size: var(--fs-meta); color: var(--muted); max-width: 60ch; }

/* ---------- 3. Motion primitives ----------
   Content is visible by default. Only once the inline boot script has
   added .js to <html> is it hidden for the entrance animation, so a
   failed or disabled script can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--d, 0) * 60ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- 4. Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, padding .25s, background .25s;
  padding-block: 1.1rem;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  padding-block: .65rem;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand {
  font-family: var(--display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.015em;
  white-space: nowrap;
  /* A header link is a tap target like any other. */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand:hover { color: var(--accent-deep); }

.nav { display: none; gap: 1.9rem; }
.nav a {
  font-size: var(--fs-meta);
  color: var(--muted);
  text-decoration: none;
  position: relative;
  padding-block: .35rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after, .nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--ink);
  cursor: pointer; padding: 0;
  transition: border-color .2s, background .2s, color .2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 1.1rem var(--pad) 2rem;
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.2, .7, .3, 1);
  visibility: hidden;
}
.mobile-menu.is-open { transform: none; visibility: visible; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top .brand, .mobile-menu__close { color: var(--bg); }
.mobile-menu__close { border-color: color-mix(in srgb, var(--bg) 24%, transparent); }
.mobile-menu__close:hover { border-color: var(--bg); color: var(--bg); }
.mobile-menu nav { display: flex; flex-direction: column; margin-top: 1.75rem; }
.mobile-menu nav a {
  font-family: var(--display);
  font-size: var(--fs-h1);
  color: var(--bg);
  text-decoration: none;
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid color-mix(in srgb, var(--bg) 16%, transparent);
}
.mobile-menu nav a span { font-family: var(--mono); font-size: var(--fs-label); color: color-mix(in srgb, var(--bg) 62%, transparent); }
.mobile-menu__foot { margin-top: auto; display: flex; flex-direction: column; gap: .1rem; }
.mobile-menu__foot a {
  color: color-mix(in srgb, var(--bg) 82%, transparent);
  font-size: var(--fs-meta); text-decoration: none;
  min-height: 44px; display: flex; align-items: center;
}
.mobile-menu__foot .meta { color: color-mix(in srgb, var(--bg) 55%, transparent); margin-top: .6rem; }
body.menu-open { overflow: hidden; }

/* ---------- 5. Buttons and chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.75rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-body); font-weight: 500;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li {
  font-family: var(--mono); font-size: var(--fs-label);
  color: var(--muted); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: .35rem .8rem;
}

/* ---------- 6. Hero ---------- */
.hero { padding-block: clamp(2.75rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); }
.hero__title { font-size: var(--fs-display); line-height: 1.05; margin: 1rem 0 1.25rem; }
.hero__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.availability {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 2rem;
  font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent);
  border-radius: var(--r-pill);
  padding: .45rem .9rem;
}
.availability__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-deep); flex: none;
}
@media (prefers-reduced-motion: no-preference) {
  .availability__dot { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.82); }
}

.hero__links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; }
.hero__links a {
  font-size: var(--fs-meta); color: var(--muted); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: .4rem;
}
.hero__links a:hover { color: var(--accent-deep); }

/* ---------- 7. Dashboard ---------- */
.dash { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 780px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }

/* Each tile is a link through to the role the figure came from, so a
   claim is never made without a route to its source. */
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.15rem 1.25rem;
  display: flex; flex-direction: column; gap: .4rem;
  box-shadow: var(--shadow);
  height: 100%;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.stat:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.stat__src {
  margin-top: auto; padding-top: .5rem;
  font-family: var(--mono); font-size: var(--fs-label);
  color: var(--accent-deep);
  display: flex; align-items: center; gap: .35rem;
}
.stat__value {
  font-family: var(--display); font-size: var(--fs-h2); font-weight: 500;
  color: var(--accent-deep); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.stat__label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.stat__note { font-size: var(--fs-meta); color: var(--muted); line-height: 1.45; }

.perf {
  margin-top: .75rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.35rem 1.35rem 1.45rem; box-shadow: var(--shadow);
}
.perf__head { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.perf__list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.1rem; }
.perf__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .9rem; }
@media (min-width: 700px) {
  .perf__row { grid-template-columns: 200px minmax(0, 1fr) 74px; align-items: center; gap: 1.25rem; }
}
.perf__name {
  font-family: var(--mono); font-size: var(--fs-meta); color: var(--muted);
  text-decoration: none;
  display: inline-flex; align-items: center;
  min-height: 44px;
}
.perf__name:hover { color: var(--accent-deep); }
.perf__name span { margin-left: .4rem; }
.perf__value {
  font-family: var(--mono); font-size: var(--fs-meta); color: var(--ink);
  text-align: right; font-variant-numeric: tabular-nums;
}
.perf__track {
  grid-column: 1 / -1; height: 8px; border-radius: var(--r-pill);
  background: var(--track); overflow: hidden;
}
/* Above 700px the row is three columns. Every child must state its column:
   left to auto-placement the value lands in column 2 and displaces the track
   onto a row of its own. This block sits after the base rules above so it
   wins on source order at equal specificity. */
@media (min-width: 700px) {
  /* The row must also be pinned, not just the column: the value precedes the
     track in the markup (so that on a phone they stack label-then-bar), and
     auto-placement will not step backwards to fill column 2 once column 3 of
     the row is taken — it starts a new row instead. */
  .perf__name  { grid-column: 1; grid-row: 1; }
  .perf__track { grid-column: 2; grid-row: 1; }
  .perf__value { grid-column: 3; grid-row: 1; }
}

.perf__fill {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: var(--accent);
  width: 0;
  transition: width 1s cubic-bezier(.2, .7, .3, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.perf__row.is-in .perf__fill { width: var(--w); }
@media (prefers-reduced-motion: reduce) {
  .perf__fill { transition: none; width: var(--w); }
}

/* ---------- 8. How I work ---------- */
.method { display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .method { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.method__item {
  position: relative; padding-top: 1.4rem;
  border-top: 2px solid var(--line);
  display: flex; flex-direction: column; gap: .5rem;
}
.method__item::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: var(--fs-label); color: var(--accent-deep);
  letter-spacing: .1em;
}
.method__item h3 { font-size: var(--fs-h3); }
.method__item p { font-size: var(--fs-meta); color: var(--muted); }

/* ---------- 9. Work ---------- */
.projects { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.project {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.4rem, 3vw, 1.9rem);
  display: flex; flex-direction: column; gap: .7rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.project__index { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--accent-deep); }
.project__title { font-size: var(--fs-h3); }
.project__text { font-size: var(--fs-meta); color: var(--muted); }
.project__figures { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .2rem; }
.project__figure { display: flex; flex-direction: column; }
.project__figure b {
  font-family: var(--mono); font-size: var(--fs-body); color: var(--ink);
  font-weight: 500; font-variant-numeric: tabular-nums;
}
.project__figure span { font-family: var(--mono); font-size: var(--fs-label); color: var(--faint); }
.project__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: auto; padding-top: .85rem; }
.project__links a {
  font-size: var(--fs-meta); font-weight: 500; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; gap: .35rem;
}

/* ---------- 10. Experience ---------- */
.timeline { display: flex; flex-direction: column; gap: clamp(1.75rem, 4vw, 2.75rem); }
.timeline__item {
  display: grid; gap: .35rem 2rem; grid-template-columns: 1fr;
  padding-left: 1.5rem; position: relative;
}
@media (min-width: 860px) {
  .timeline__item { grid-template-columns: 190px minmax(0, 1fr); padding-left: 2rem; }
}
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
}
.timeline__item::after {
  content: ""; position: absolute; left: 4px; top: 1.5rem; bottom: -2.75rem;
  width: 1px; background: var(--line);
}
.timeline__item:last-child::after { display: none; }
.timeline__when { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .06em; color: var(--faint); padding-top: .2rem; }
.timeline__role { font-size: var(--fs-h3); }
.timeline__org { font-size: var(--fs-meta); color: var(--accent-deep); font-weight: 500; margin-top: .15rem; }
.timeline__points { margin-top: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.timeline__points li { font-size: var(--fs-meta); color: var(--muted); padding-left: 1rem; position: relative; max-width: 70ch; }
.timeline__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 1px; background: var(--accent); }

/* Named systems under a role. The bullets above say what moved; these say what
   was actually built, so the outcome and the artefact stop competing for the
   same line. Name and body share --fs-meta and separate on family and colour,
   which keeps the type scale at eight steps. */
.builds { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .builds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.builds__label { margin: 1.7rem 0 .8rem; color: var(--faint); }
.build {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r);
  padding: .9rem 1.1rem 1rem;
  box-shadow: var(--shadow);
}
.build__name { font-family: var(--mono); font-size: var(--fs-meta); font-weight: 500; color: var(--ink); }
.build__what { font-size: var(--fs-meta); color: var(--muted); margin-top: .4rem; }

/* ---------- 11. Skills ---------- */
.skills { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .75rem; box-shadow: var(--shadow);
}
.skill h3 { font-size: var(--fs-h3); display: flex; align-items: baseline; gap: .6rem; }
.skill h3 span { font-family: var(--mono); font-size: var(--fs-label); color: var(--accent-deep); }

/* ---------- 12. About ---------- */
.about { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .about { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.about__body { display: flex; flex-direction: column; gap: 1rem; }
.about__body p { font-size: var(--fs-lead); color: var(--text); max-width: 62ch; }
.about__aside {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .9rem; box-shadow: var(--shadow);
}
.about__aside h3 { font-size: var(--fs-h3); }
.about__row { display: flex; flex-direction: column; gap: .1rem; }
.about__row dt { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.about__row dd { margin: 0; font-size: var(--fs-meta); color: var(--text); }

/* ---------- 13. Education ---------- */
.edu { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .edu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.edu__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.4rem 1.5rem;
  display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow);
}
.edu__item h3 { font-size: var(--fs-h3); }
.edu__org { font-size: var(--fs-meta); color: var(--accent-deep); font-weight: 500; }
.edu__detail { font-size: var(--fs-meta); color: var(--muted); }
.certs { display: flex; flex-direction: column; gap: .85rem; }
.certs li { display: flex; flex-direction: column; gap: .1rem; }
.certs b { font-size: var(--fs-meta); font-weight: 600; color: var(--ink); }
.certs span { font-family: var(--mono); font-size: var(--fs-label); color: var(--faint); }

/* ---------- 14. Contact and footer ---------- */
.contact { text-align: left; }
.contact__title { font-size: var(--fs-h1); margin-bottom: .9rem; }
.contact__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 54ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  align-items: center; justify-content: space-between;
}
.site-footer p { font-size: var(--fs-meta); color: var(--muted); }
.site-footer .meta { color: var(--faint); }

/* Docked action bar — thumb-reachable on a phone, hidden on desktop
   and until the hero has scrolled away. */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: .6rem;
  padding: .7rem var(--pad) calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.dock.is-up { transform: none; }
.dock .btn { flex: 1; padding-inline: 1rem; }
.dock .btn--ghost { flex: 0 0 96px; }
@media (min-width: 700px) { .dock { display: none; } }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ---------- 15. Print ---------- */
@media print {
  .site-header, .dock, .mobile-menu, .hero__actions, .contact__actions { display: none !important; }
  body { background: #fff; color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: var(--fs-label); }
}
