:root {
  /* Always dark, whatever the visitor's system setting. */
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #86868b;
  --tile: #161617;
  --line: rgba(255, 255, 255, 0.12);
  --nav: rgba(0, 0, 0, 0.72);
  --menu: #000;
  --link: #2997ff;
  --band: #101012;
  --band-fg: #f5f5f7;
  --band-muted: #86868b;
  --c1: #2997ff;
  --c2: #b77cff;
  --c3: #ff4f6d;
  --blue: #0071e3;
  --purple: #a259ff;
  --pink: #ff2d55;
  --orange: #ff9f0a;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 48px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.nowrap { white-space: nowrap; }

/* Gradient text */
.grad {
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink), var(--orange), var(--blue));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.brand { font-size: 14px; font-weight: 600; padding: 0.1em 0; }

.nav ul { display: flex; gap: 28px; list-style: none; font-size: 13px; }

.nav ul a { color: var(--muted); transition: color 0.2s; }
.nav ul a:hover { color: var(--fg); }

.burger { display: none; margin-right: -8px; padding: 8px; border: 0; background: none; color: var(--fg); cursor: pointer; }
.burger path { transition: transform 0.3s var(--ease); transform-origin: center; }
.nav.open .b1 { transform: translateY(4px) rotate(45deg); }
.nav.open .b2 { transform: translateY(-4px) rotate(-45deg); }

/* Phones: sections move into a drop-down menu */
@media (max-width: 640px) {
  .burger { display: block; }
  .nav ul {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 4px 16px 16px; background: var(--menu); font-size: 17px;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav.open ul { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul li + li { border-top: 1px solid var(--line); }
  .nav ul a { display: block; padding: 14px 0; color: var(--fg); }
}

/* Hero */
.hero {
  min-height: calc(100svh - 48px);
  display: grid;
  place-items: center;
  padding: 64px 0 96px;
  text-align: center;
}

.eyebrow { font-size: 17px; font-weight: 600; color: var(--muted); }

.hero h1 {
  margin-top: 12px;
  padding: 0.05em 0.1em;
  font-size: clamp(2.5rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  animation:
    rise 1.2s var(--ease) var(--d, 0s) both,
    shimmer 8s linear infinite;
}

.lead {
  max-width: 32em;
  margin: 20px auto 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  transition: background 0.2s;
}
.btn:hover { background: #0077ed; }

.more { color: var(--link); }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; }

.rise { animation: rise 1.2s var(--ease) var(--d, 0s) both; }

/* Sections */
section { padding: clamp(80px, 12vw, 140px) 0; }

.head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 72px);
  text-align: center;
}

.head h2, .card h2, .about h2 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.head p, .card p {
  margin-top: 16px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.4;
  color: var(--muted);
}

/* Highlights */
.highlights { padding: 0 0 clamp(24px, 4vw, 40px); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; text-align: center; }

.stats li { padding: 8px 24px; }
.stats li + li { border-left: 1px solid var(--line); }

.stat {
  display: inline-block;
  padding: 0 0.06em;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  background-size: 100% auto;
  animation: none;
}

.stats p { max-width: 16em; margin: 8px auto 0; color: var(--muted); }

@media (max-width: 700px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { padding: 24px 0; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Expertise tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
}

.tile {
  padding: 40px 32px 44px;
  border-radius: 28px;
  background: var(--tile);
}

.tile svg {
  width: 56px;
  height: 56px;
  margin-bottom: 40px;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.label { font-weight: 600; }
.tile .label { margin-top: 0; }

.tile h3 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.tile p { margin-top: 14px; color: var(--muted); }

/* About */
#about { padding-top: 0; }

.about {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  max-width: 900px;
  margin-inline: auto;
}

.photo {
  width: 200px;
  aspect-ratio: 1;
  padding: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple), var(--pink), var(--orange));
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid var(--bg);
  border-radius: 50%;
}

.about p {
  margin-top: 16px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 760px) {
  .about { grid-template-columns: 1fr; text-align: center; }
  .photo { width: 180px; margin-inline: auto; }
}

/* Experience */
#experience { padding-top: 0; }

.timeline { list-style: none; border-top: 1px solid var(--line); }

.row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.when { padding-top: 4px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }

.row h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.org { margin-top: 2px; font-weight: 500; }

.desc { max-width: 40em; margin-top: 10px; color: var(--muted); }

.subhead {
  margin: clamp(64px, 9vw, 96px) 0 24px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (min-width: 901px) {
  .tiles.two { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .row { grid-template-columns: 1fr; padding: 24px 0; }
  .when { padding-top: 0; }
}

/* Services */
.svc { display: flex; flex-direction: column; }

.svc .label { color: var(--accent); }

.includes {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.includes li { position: relative; margin-top: 10px; padding-left: 28px; }

.includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 12px;
  height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.svc .ask { margin-top: auto; padding-top: 28px; }

.note { max-width: 36em; margin: 40px auto 0; text-align: center; color: var(--muted); }
.note a { white-space: nowrap; }

/* Process */
.band { background: var(--band); color: var(--band-fg); }
.band .head p { color: var(--band-muted); }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  padding-top: 40px;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink), var(--orange));
}

.num {
  display: inline-block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background-size: 100% auto;
  animation: none;
}

.step h3 { margin-top: 16px; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--band-muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; padding: 0 0 0 28px; }
  .steps::before {
    top: 0;
    bottom: 0;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--purple), var(--pink), var(--orange));
  }
}

/* Statement */
.statement { text-align: center; }

.statement p {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.statement .grad { display: inline-block; padding: 0 0.06em; }

/* Contact */
.contact { padding-top: 0; }

.card {
  padding: clamp(56px, 8vw, 96px) 24px;
  border-radius: 28px;
  background: var(--tile);
  text-align: center;
}

.card p { max-width: 30em; margin-inline: auto; }

.card .email { margin-top: 20px; font-size: 15px; }

/* Footer */
footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Booking modal ("Email me") */
html.modal-open { overflow: hidden; }
.book {
  width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0;
  color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.45); overflow: auto; overscroll-behavior: contain;
}
.book[open] { animation: book-in 0.45s var(--ease); }
.book::backdrop { background: rgba(0, 0, 0, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@keyframes book-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.book-form { position: relative; padding: clamp(22px, 4vw, 34px); }
.book-form::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--blue), var(--purple), var(--pink), var(--orange)); }
.book-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.book-eyebrow { font-size: 15px; font-weight: 600; color: var(--muted); }
.book-head h2 { margin-top: 4px; font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.book-head h2:focus { outline: none; }
.book-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tile); color: var(--fg); cursor: pointer; transition: transform 0.2s var(--ease); }
.book-x:hover { transform: rotate(90deg); }

.book-field { min-width: 0; margin-bottom: 22px; border: 0; }
.book-field legend { margin-bottom: 10px; font-size: 15px; font-weight: 600; }
.book-field .tz { margin-left: 6px; font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-days { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; scroll-snap-type: x proximity; }
.chips-days::-webkit-scrollbar { display: none; }
.chips-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.chip { position: relative; flex: none; scroll-snap-align: start; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 64px;
  padding: 9px 14px; border-radius: 14px; background: var(--tile); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chip small { font-size: 12px; font-weight: 500; color: var(--muted); }
.chip:hover span { border-color: var(--line); }
.chip input:checked + span { background: var(--blue); color: #fff; }
.chip input:checked + span small { color: rgba(255, 255, 255, 0.85); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.book-empty { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }

.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.book-input { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-size: 15px; font-weight: 600; }
.book-input em { font-style: normal; font-weight: 400; color: var(--muted); }
.book-input input, .book-input textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile);
  color: var(--fg); font: inherit; font-size: 16px; font-weight: 400; letter-spacing: normal; resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.book-input input:focus, .book-input textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25); }
.book-err { min-height: 1.4em; margin-bottom: 6px; font-size: 14px; color: var(--c3); }
.book-actions { display: flex; justify-content: flex-end; }
.book .btn { border: 0; font: inherit; font-weight: 500; cursor: pointer; }

.book-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-bottom: 20px; padding: 18px 20px; border-radius: 18px; background: var(--tile); }
.book-summary dt { font-size: 14px; color: var(--muted); }
.book-summary dd { font-weight: 600; }
.book-lead { color: var(--muted); }
.book-send { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 14px; }
.btn-ghost {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--line); border-radius: 980px; background: none;
  color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--blue); }
.book-note { font-size: 14px; color: var(--muted); }
.book-note strong { font-weight: 600; color: var(--fg); }
.book-back { margin-top: 18px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 15px; cursor: pointer; }

/* Phones: the modal becomes a bottom sheet */
@media (max-width: 620px) {
  .book { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .book[open] { animation: sheet-in 0.4s var(--ease); }
  .book-form { padding-bottom: calc(clamp(22px, 4vw, 34px) + env(safe-area-inset-bottom, 0px)); }
  .book-row { grid-template-columns: 1fr; }
  .book-send .btn, .book-send .btn-ghost { flex: 1 1 auto; text-align: center; }
  .book-actions .btn { width: 100%; text-align: center; }
}

/* Device tiers
   Base styles above cover laptops and phones. These add: tablets in portrait (621–900),
   large monitors (≥1600), 2K/4K (≥2200), small phones (≤360), short landscape screens,
   touch input and print. Keep them in this order: they rely on cascade order. */

/* Tablets in portrait: two columns instead of one long stack */
@media (min-width: 621px) and (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tile { padding: 32px 26px 36px; }
  .tile svg { width: 48px; height: 48px; margin-bottom: 28px; }
  .tile h3 { font-size: 1.45rem; }
}

/* Large monitors (FHD and up) */
@media (min-width: 1600px) {
  html { scroll-padding-top: 56px; }
  body { font-size: 18px; }
  .wrap { width: min(1280px, 100% - 64px); }
  .nav .wrap { height: 56px; }
  .brand { font-size: 15px; }
  .nav ul { gap: 32px; font-size: 14px; }
  .hero { min-height: calc(100svh - 56px); }
  .eyebrow { font-size: 19px; }
  .hero h1 { font-size: clamp(7rem, 7vw, 8.5rem); }
  .lead { font-size: 1.5rem; }
  .btn { padding: 14px 28px; }
  .head { max-width: 860px; }
  .head h2, .card h2, .about h2 { font-size: clamp(3.75rem, 3.6vw, 4.5rem); }
  .head p, .card p { font-size: 1.45rem; }
  .stat { font-size: 5.25rem; }
  .tiles { gap: 24px; }
  .tile { padding: 48px 40px 52px; border-radius: 32px; }
  .tile h3 { font-size: 2.25rem; }
  .about { max-width: 1080px; }
  .about p { font-size: 1.3rem; }
  .row { grid-template-columns: 240px 1fr; padding: 36px 0; }
  .when { font-size: 16px; }
  .row h3 { font-size: 1.8rem; }
  .subhead { font-size: 2.25rem; }
  .num { font-size: 56px; }
  .step h3 { font-size: 23px; }
  .step p { font-size: 16px; }
  .statement p { font-size: clamp(6rem, 5.6vw, 7rem); }
  footer { font-size: 13px; }
  .book { width: min(660px, calc(100% - 24px)); }
}

/* 2K, 4K and ultrawide */
@media (min-width: 2200px) {
  html { scroll-padding-top: 64px; }
  body { font-size: 20px; }
  .wrap { width: min(1520px, 100% - 96px); }
  .nav .wrap { height: 64px; }
  .brand { font-size: 17px; }
  .nav ul { gap: 40px; font-size: 16px; }
  .hero { min-height: calc(100svh - 64px); }
  .eyebrow { font-size: 22px; }
  .hero h1 { font-size: clamp(8.5rem, 6.4vw, 10rem); }
  .lead { font-size: 1.8rem; }
  .cta { margin-top: 44px; }
  .btn { padding: 16px 34px; }
  .head { max-width: 1040px; }
  .head h2, .card h2, .about h2 { font-size: clamp(4.5rem, 3.4vw, 5.5rem); }
  .head p, .card p { font-size: 1.7rem; }
  .stat { font-size: 6.5rem; }
  .tiles { gap: 28px; }
  .tile { padding: 56px 48px 60px; border-radius: 36px; }
  .tile svg { width: 68px; height: 68px; margin-bottom: 48px; }
  .tile h3 { font-size: 2.6rem; }
  .about { max-width: 1280px; grid-template-columns: 240px 1fr; }
  .photo { width: 240px; }
  .about p { font-size: 1.5rem; }
  .row { grid-template-columns: 280px 1fr; padding: 42px 0; }
  .when { font-size: 18px; }
  .row h3 { font-size: 2.1rem; }
  .desc { max-width: 46em; }
  .subhead { font-size: 2.6rem; }
  .num { font-size: 68px; }
  .step h3 { font-size: 27px; }
  .step p { font-size: 18px; }
  .statement p { font-size: clamp(7rem, 5.4vw, 8.5rem); }
  .card { padding: 120px 48px; border-radius: 36px; }
  .card .email { font-size: 18px; }
  footer { font-size: 15px; }
  .book { width: min(780px, calc(100% - 24px)); }
  .book-head h2 { font-size: 2.5rem; }
  .book-eyebrow, .book-field legend, .book-input { font-size: 18px; }
  .chip span { padding: 12px 18px; font-size: 18px; }
  .chip small { font-size: 14px; }
  .chips-times { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
  .book-input input, .book-input textarea { padding: 15px 18px; font-size: 19px; }
}

/* Small phones (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 48px 0 72px; }
  .hero h1 { font-size: clamp(2.1rem, 11.5vw, 2.5rem); }
  .head h2, .card h2, .about h2 { font-size: clamp(1.9rem, 9.5vw, 2.25rem); }
  .stat { font-size: 2.6rem; }
  .tile { padding: 30px 22px 34px; border-radius: 22px; }
  .tile svg { margin-bottom: 28px; }
  .photo { width: 160px; }
  .statement p { font-size: clamp(2rem, 11vw, 2.5rem); }
  .card { padding: 44px 18px; border-radius: 22px; }
  .chips-times { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  .book-head h2 { font-size: 1.5rem; }
}

/* Short landscape screens (phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 56px 0 72px; }
  .hero h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
  section { padding: 64px 0; }
  .book { max-height: calc(100dvh - 16px); }
  .book-form { padding: 16px 24px; }
  .book-head { margin-bottom: 12px; }
  .book-eyebrow { display: none; }
  .book-head h2 { font-size: 1.4rem; }
  .book-field { margin-bottom: 14px; }
  .chip span { padding: 7px 12px; }
}

/* Touch screens: bigger tap targets, no sticky hover states */
@media (hover: none) {
  html { -webkit-tap-highlight-color: transparent; }
  .nav ul a { display: inline-block; padding: 14px 0; }
  .btn:hover { background: var(--blue); }
  .more:hover { text-decoration: none; }
  .btn:active, .btn-ghost:active, .chip span:active { transform: scale(0.97); }
  .book-x:hover { transform: none; }
  .chip:hover span { border-color: transparent; }
  .btn-ghost:hover { border-color: var(--line); }
}

/* Touch phones: menu rows stay full-width tap targets */
@media (hover: none) and (max-width: 640px) {
  .nav ul a { display: block; }
}

/* Print: a clean, ink-friendly CV-style version */
@media print {
  @page { margin: 16mm; }
  :root { color-scheme: light; --bg: #fff; --fg: #111; --muted: #444; --tile: #fff; --line: #ccc; --band: #fff; --band-fg: #111; --band-muted: #444; }
  body { font-size: 11pt; }
  .nav, .cta, .statement, .book { display: none; }
  .hero { min-height: 0; padding: 0 0 24px; }
  section { padding: 24px 0; }
  .grad, .stat, .num { background: none; color: #4f3fe0; -webkit-text-fill-color: #4f3fe0; animation: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .tile, .card, .row { break-inside: avoid; border: 1px solid #ccc; }
  .tiles, .stats { gap: 12px; }
  a[href^="mailto:"]::after, a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #444; }
}

/* Motion */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition:
    opacity 1s var(--ease) var(--d, 0s),
    transform 1s var(--ease) var(--d, 0s),
    filter 1s var(--ease) var(--d, 0s);
}

.js .reveal.in { opacity: 1; transform: none; filter: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); filter: blur(12px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
