/* ==========================================================================
   Ramesh Reddy — Portfolio
   Design tokens taken from rameshreddy.co.in
   ========================================================================== */

:root {
  /* Brand: from the Figma brand board (RameshReddyCo.) */
  --blue: #0f17f0;        /* Brand blue: logo, primary buttons, accents */
  --blue-deep: #080ca8;   /* Pressed / hover fill for blue */
  --blue-text: #0f17f0;   /* Blue text on light backgrounds */
  --blue-soft: #dfe0ff;   /* Soft buttons, chips, tags */
  --blue-wash: #eff1fe;   /* Soft panels and section fills */

  /* Bluish neutrals (Figma palette, dark to light) */
  --n-900: #101223; --n-800: #282a3a; --n-700: #404252; --n-600: #5b5d6b;
  --n-500: #777986; --n-400: #9496a1; --n-300: #b3b5bd; --n-200: #d2d4da;
  --n-100: #f3f4f8;

  --ink: var(--n-900);
  --white: #fff;

  --teal: #17a086;
  --red: #ab1111;
  --orange: #d67e19;

  --font: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Tracking: three steps only. Never tighter than --track-display. */
  --track-display: -0.035em; /* 64px and up */
  --track-heading: -0.025em; /* 28–63px */
  --track-title: -0.01em;    /* 18–27px */

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
  --radius-card: 24px; /* legacy alias of --r-lg */

  /* Corner radius scale */
  --r-sm: 12px;   /* chart bars, small tiles */
  --r-md: 16px;   /* inputs, small cards, images inside cards */
  --r-lg: 24px;   /* cards, tiles, panels */
  --r-xl: 32px;   /* large media, big feature panels */
  --r-pill: 100px; /* buttons, chips, tags */

  /* Spacing scale (4px base). Use these for gaps, padding and margins. */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 140px;
  --header-h: 110px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-loading { overflow: hidden; }

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

/* SplitText masks (classes end in "-mask"): give descenders (g, y, p) room
   so tight line-heights never clip them, without changing the layout. */
[aria-hidden="true"][style*="overflow: clip"],
div[class$="-mask"], span[class$="-mask"]:not(.menu__mask) {
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: var(--white);
}
.loader__inner { display: flex; align-items: center; gap: 16px; }
.loader__mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white);
  animation: pulse 1s var(--ease-out) infinite alternate;
}
.loader__count {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 500;
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
}
@keyframes pulse { to { transform: scale(0.5); opacity: 0.5; } }

/* --------------------------------------------------------------------------
   Custom cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background-color .3s;
  mix-blend-mode: normal;
}
.cursor__label {
  font-size: 14px; font-weight: 500; color: var(--white);
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease-out);
}
.cursor.is-view { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-view .cursor__label { opacity: 1; transform: scale(1); }
.cursor.is-link { width: 0; height: 0; margin: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 max(var(--gutter), (100% - var(--max)) / 2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform .5s var(--ease-out);
}
.header::before {
  /* soft white fade so the logo stays readable over content */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(#fff 35%, rgba(255,255,255,0));
  z-index: -1;
  opacity: 0;
  transition: opacity .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }

.header__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.logo__icon { display: block; width: 44px; height: 44px; flex: none; }
.logo__icon svg { display: block; width: 100%; height: 100%; }
.logo__mark { fill: var(--white); transition: fill .4s; }
.logo__word { font-size: 19px; font-weight: 500; line-height: 1.02; letter-spacing: var(--track-title); }

.header__contact {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  will-change: transform;
}
.btn::before {
  /* fill that sweeps up on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }

/* label stays put on hover: only the fill sweeps and the text colour changes */
.btn__text {
  position: relative;
  display: inline-block;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  height: 56px;
  padding: 0 32px;
}
.btn--primary::before { background: #080ca8; }

.btn--ghost {
  border: 1px solid var(--white);
  color: var(--white);
  height: 50px;
  padding: 0 24px;
  font-size: 14px;
}
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--card-bg, #000); }

.btn--soft {
  background: var(--blue-soft);
  color: var(--blue-text);
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
}
.btn--soft::before { background: var(--blue); }
.btn--soft:hover { color: var(--white); }
.btn { transition: color .4s var(--ease-out); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(700px, 100svh);
  padding: calc(var(--header-h) + 24px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__head { position: relative; z-index: 3; text-align: center; }
.hero__hello {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 12px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--blue-text);
  font-size: 16px;
  font-weight: 500;
}
.hero__wave { display: inline-block; transform-origin: 70% 80%; }
.hero__title {
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__title .accent { color: var(--blue); }
.hero__title .word { margin-right: 0.04em; }

/* Stage: giant rotating word, the mascot and floating stickers */
.hero__stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 360px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero__word {
  position: absolute;
  left: 50%;
  bottom: 17%;
  transform: translateX(-50%);
  z-index: -1;
  font-size: clamp(130px, 21vw, 330px);
  font-weight: 700;
  line-height: .78;
  letter-spacing: -0.06em;
  color: var(--blue-soft);
  white-space: nowrap;
  pointer-events: none;
}
.hero__word-in { display: inline-block; padding: 0 .04em .12em; }

.hero__mascot {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero__mascot:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: var(--r-md); }
.hero__mascot .mascot svg {
  display: block;
  width: auto;
  height: clamp(300px, calc(100svh - 390px), 520px);
  margin-bottom: -8px;
}
.hero__bubble {
  position: absolute;
  top: 4%;
  left: 74%;
  width: max-content;
  max-width: 300px;
  padding: 12px 18px;
  border-radius: 20px 20px 20px 6px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  pointer-events: none;
}

.hero__sticker {
  position: absolute;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 10px 24px rgba(16, 18, 35, .12);
}
.hero__sticker.is-dragging { cursor: grabbing; z-index: 4; }
.hero__sticker--a { top: 10%; left: calc(50% - 360px); rotate: -8deg; }
.hero__sticker--b { top: 30%; left: calc(50% + 280px); rotate: 6deg; }
.hero__sticker--c { top: 42%; left: calc(50% - 300px); rotate: 5deg; }
.hero__sticker--d { top: 58%; left: calc(50% + 190px); rotate: -6deg; }
.hero__sticker--e { top: 26%; left: calc(50% - 560px); rotate: -4deg; }
.hero__sticker--f { top: 6%;  left: calc(50% + 430px); rotate: 9deg; }

.hero__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 36px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}
.hero__foot > * { pointer-events: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.hero__status span { display: inline-flex; align-items: center; }
.hero__status i {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #24a148;
  box-shadow: 0 0 0 4px rgba(36, 161, 72, .18);
}
.hero__status small { font-size: 14px; font-weight: 400; color: var(--n-600, #5b5d6b); }

@media (max-width: 1180px) {
  .hero__sticker--e, .hero__sticker--f { display: none; }
}

/* Soft circles (still used on About) */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--blue-soft);
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Projects
   -------------------------------------------------------------------------- */
.projects {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s-8) var(--gutter) var(--s-9);
}

/* Head: kicker pill, title with one blue word, short lead on the right */
.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5) var(--s-7);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}
.projects__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--blue-text); background: var(--blue-soft);
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  margin-bottom: var(--s-5);
}
.projects__kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.projects__title {
  font-size: clamp(44px, 6.5vw, 84px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--track-display);
}
.projects__title .accent { color: var(--blue); }
.projects__lead {
  max-width: 21em;
  margin-bottom: 10px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--n-600);
}

/* Cards: soft blue panels that stack as you scroll */
.cards {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.card {
  position: sticky;
  top: calc(var(--header-h) - 10px);
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: var(--s-4);
  min-height: 540px;
  padding: var(--s-4);
  border-radius: var(--r-xl);
  background: var(--blue-wash);
  color: var(--ink);
  overflow: hidden;
  transform-origin: 50% 0%;
  will-change: transform;
  box-shadow: 0 -1px 0 rgba(16, 18, 35, .04), 0 30px 60px -40px rgba(16, 18, 35, .3);
}

.card__content {
  padding: var(--s-5) var(--s-5) var(--s-5) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-6);
}
.card__top { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.card__num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--blue-text);
  font-size: 15px; font-weight: 500;
}
.card__tags { list-style: none; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.card__tags li {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--white); color: var(--n-700); font-size: 14px; line-height: 1;
}
.card__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 500; color: var(--blue-text);
  margin-bottom: var(--s-3);
}
.card__eyebrow span { color: var(--n-500); font-weight: 400; }
.card__eyebrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--tint); }
.card__title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--track-heading);
  max-width: 13em;
}
.card__role { margin-top: var(--s-4); font-size: 15px; line-height: 1.5; color: var(--n-600); max-width: 30em; }

/* The whole card is a hover target: the CTA fills when you hover anywhere on it */
.card:hover .card__cta::before { transform: translateY(0); }
.card:hover .card__cta { color: var(--white); }

.card__media {
  position: relative;
  overflow: hidden;
  display: block;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--tint) 16%, var(--white));
}
.card__media img {
  position: absolute;
  inset: -12% 0;
  width: 100%;
  height: 124%;
  object-fit: cover;
  will-change: transform;
}
.card__shade {
  /* soft dim while a card is stacked behind the next */
  position: absolute; inset: 0;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}

.projects__more {
  display: flex;
  justify-content: center;
  padding-top: var(--s-7);
}

/* --------------------------------------------------------------------------
   Footer: CTA + physics pill pit, link columns, giant wordmark
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--blue-soft);
  margin-top: 40px;
  padding: 90px max(var(--gutter), (100% - var(--max)) / 2) 0;
  overflow: hidden;
  border-radius: 40px 40px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.footer__kicker { font-size: 16px; color: var(--blue-text); margin-bottom: 14px; }
.footer__title {
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: var(--track-display);
  margin-bottom: 36px;
}
.footer__accent { color: var(--blue); }
.footer__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--line {
  height: 56px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: #fff; }

.footer__pit {
  position: relative;
  min-height: 340px;
  border-radius: var(--r-xl);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 8px;
  padding: 18px;
  touch-action: pan-y;
}
.footer__pit-hint {
  position: absolute;
  top: 18px; left: 22px;
  font-size: 13px;
  color: rgba(0,0,0,.4);
  pointer-events: none;
}
.footer__pit.is-live { display: block; cursor: grab; }
.footer__pit.is-live:active { cursor: grabbing; }
.footer__pit.is-live .pill { position: absolute; top: 0; left: 0; will-change: transform; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: var(--track-title);
  white-space: nowrap;
  background: var(--blue-soft);
  color: var(--blue-text);
  user-select: none;
  -webkit-user-select: none;
}
.pill--blue { background: var(--blue); color: #fff; }
.pill--ink { background: var(--ink); color: #fff; }
.pill--teal { background: var(--teal); color: #fff; }
.pill--orange { background: var(--orange); color: #fff; }
.pill--red { background: var(--red); color: #fff; }
.pill--ball { width: 60px; height: 60px; padding: 0; font-size: 30px; background: #ffd23f; color: #000; }

.footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 40px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(0,0,0,.1);
}
.footer__label { font-size: 14px; color: rgba(0,0,0,.5); margin-bottom: 14px; }
.footer__links { columns: 2; column-gap: 24px; }
.footer__links a {
  display: inline-block;
  font-size: 17px;
  padding: 3px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease-out), color .3s;
}
.footer__links a:hover { background-size: 100% 1px; color: var(--blue-text); }

.footer__social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  transition: color .3s, background-color .3s;
}
.footer__social a:hover { background: var(--blue); color: #fff; }
.footer__social svg { width: 19px; height: 19px; fill: currentColor; }
.footer__social svg[fill="none"] { fill: none; }

.footer__clock { font-size: 30px; font-weight: 500; letter-spacing: var(--track-heading); font-variant-numeric: tabular-nums; }
.footer__clock small { font-size: 14px; letter-spacing: 0; color: rgba(0,0,0,.5); font-weight: 400; }
.footer__status { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 8px; }
.footer__status i { width: 8px; height: 8px; border-radius: 50%; background: #1fbf6a; box-shadow: 0 0 0 0 rgba(31,191,106,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(31,191,106,0); } 100% { box-shadow: 0 0 0 0 rgba(31,191,106,0); } }

.footer__totop {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .3s;
}
.footer__totop:hover { background: var(--blue); }
.footer__totop svg { transition: transform .4s var(--ease-out); }
.footer__totop:hover svg { transform: translateY(-3px); }

.footer__brand {
  margin: 40px 0 0;
  font-size: 14.8vw;
  font-weight: 500;
  line-height: .8;
  letter-spacing: var(--track-display);
  white-space: nowrap;
  color: var(--blue);
  text-align: center;
  margin-left: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2));
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max)) / 2));
  padding-top: .06em;
  user-select: none;
}
@media (min-width: 1440px) { .footer__brand { font-size: 196px; margin-left: 0; margin-right: 0; } }
.footer__brand .char { display: inline-block; transition: color .3s; }
.footer__brand .char:hover { color: var(--ink); }

.footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
  font-size: 13px;
  color: rgba(0,0,0,.55);
  border-top: 1px solid rgba(0,0,0,.08);
  position: relative;
  background: var(--blue-soft);
}

@media (max-width: 860px) {
  .footer { padding-top: 64px; border-radius: 28px 28px 0 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__pit { min-height: 300px; }
  .pill { height: 44px; padding: 0 18px; font-size: 16px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-top: 56px; }
  .footer__links { columns: 1; }
  .footer__top-link { justify-self: start; }
  .footer__brand { font-size: 15.4vw; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --header-h: 84px; }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 12px); padding-bottom: 48px; }
  .hero__hello { font-size: 14px; height: 36px; margin-bottom: 14px; }
  .hero__title { font-size: clamp(34px, 9.4vw, 52px); }
  .hero__title .line { display: inline; }
  .hero__stage { flex: none; min-height: 0; margin-top: 28px; }
  .hero__word { font-size: 31vw; bottom: 0; }
  .hero__mascot .mascot svg { height: min(360px, 96vw); }
  .hero__bubble { top: -2%; left: 64%; max-width: 150px; font-size: 13px; padding: 9px 12px; }
  .hero__sticker { height: 38px; padding: 0 14px; font-size: 14px; }
  .hero__sticker--a { top: 8%; left: 2%; }
  .hero__sticker--b { top: 40%; left: auto; right: 0; }
  .hero__sticker--c { top: 62%; left: 0; }
  .hero__sticker--d { display: none; }
  .hero__foot { position: static; flex-direction: column; align-items: center; gap: 20px; margin-top: 28px; }
  .hero__actions { justify-content: center; }
  .hero__status { align-items: center; }

  .card {
    grid-template-columns: 1fr;
    min-height: 0;
    position: relative;
    top: auto;
    padding: var(--s-3);
    border-radius: var(--r-lg);
  }
  .card__media { height: 260px; order: -1; border-radius: var(--r-md); }
  .card__content { padding: var(--s-4) var(--s-3) var(--s-3); gap: var(--s-5); }
  .card__eyebrow { font-size: 15px; }
  .card__cta { align-self: stretch; }
  .projects { padding-top: var(--s-7); }
  .projects__head { margin-bottom: var(--s-6); }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card { position: relative; top: auto; }
  .loader { display: none; }
}

/* --------------------------------------------------------------------------
   Page transition curtain (shared)
   -------------------------------------------------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--blue);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.curtain.is-covering { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   Site menu (built by common.js)
   -------------------------------------------------------------------------- */
.header__actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 8px 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--blue-soft);
  color: var(--blue-text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .4s, color .4s;
}
.menu-toggle__label {
  position: relative;
  display: grid;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
}
.menu-toggle__label span { grid-area: 1 / 1; transition: transform .5s var(--ease-out); }
.menu-toggle__label span + span { transform: translateY(110%); }
.menu-open .menu-toggle__label span:first-child { transform: translateY(-110%); }
.menu-open .menu-toggle__label span + span { transform: translateY(0); }
.menu-toggle__icon {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
}
.menu-toggle__icon i {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .5s var(--ease-out), top .5s var(--ease-out);
}
.menu-toggle__icon i:first-child { top: 10px; }
.menu-toggle__icon i:last-child { top: 14.5px; }
.menu-toggle:hover .menu-toggle__icon i:first-child { transform: scaleX(.6); transform-origin: 0 50%; }
.menu-open .menu-toggle__icon i:first-child { top: 12px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon i:last-child { top: 12px; transform: rotate(-45deg); }

.menu-open .menu-toggle { background: #fff; }
.menu-open .header::before { opacity: 0; }
.menu-open .header__logo { color: var(--white); }
.menu-open .logo__mark { fill: var(--blue); }
.menu-open .header__contact { background: #fff; color: var(--blue); }
.header__logo { transition: color .4s; }
.header__contact { transition: background-color .4s, color .4s; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--blue);
  color: #fff;
  overflow-y: auto;
  clip-path: circle(150% at 100% 0);
}
.menu[hidden] { display: none; }
.menu__inner {
  min-height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: calc(var(--header-h) + 20px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: end;
  gap: 40px;
}
.menu__links li { border-top: 1px solid rgba(255,255,255,.18); }
.menu__links li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 6px 0;
}
.menu__num { font-size: 14px; opacity: .6; min-width: 2ch; }
.menu__mask { display: block; overflow: hidden; }
.menu__label {
  position: relative;
  display: block;
  font-size: clamp(34px, min(6.4vw, 6.8vh), 84px); /* 8 links must fit a 760px-tall window */
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: var(--track-display);
  transition: transform .6s var(--ease-out), opacity .4s;
}
.menu__links:hover .menu__label { opacity: .4; }
.menu__link:hover .menu__label,
.menu__link:focus-visible .menu__label { opacity: 1; transform: translateX(18px); }
.menu__link.is-current .menu__num::after { content: " ●"; }
.menu__kicker { font-size: 14px; opacity: .6; margin: 26px 0 10px; }
.menu__kicker:first-child { margin-top: 0; }
.menu__cta {
  font-size: 22px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.menu__cta:hover { background-size: 100% 1px; }
.menu__social li a { display: inline-block; font-size: 17px; padding: 3px 0; transition: transform .4s var(--ease-out); }
.menu__social li a:hover { transform: translateX(6px); }

@media (max-width: 860px) {
  .menu__inner { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .menu__link { gap: 14px; }
}
@media (max-width: 420px) {
  .menu-toggle { padding-left: 14px; gap: 8px; }
  .logo__icon { width: 38px; height: 38px; }
  .logo__word { font-size: 16.5px; }
}

/* --------------------------------------------------------------------------
   Mascot (js/mascot.js). All views and poses: mascot.html.
   -------------------------------------------------------------------------- */
.mascot svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Footer: the waving mascot peeks over the top edge of the physics pit */
.footer__play { position: relative; display: flex; flex-direction: column; }
.footer__play .footer__pit { flex: 1; z-index: 1; }
.footer__mascot {
  position: absolute;
  right: 40px;
  bottom: calc(100% - 64px);
  width: 112px;
  z-index: 0;
}
@media (max-width: 860px) {
  .footer__play { margin-top: 70px; }
  .footer__mascot { width: 96px; right: 24px; bottom: calc(100% - 54px); }
}

/* --------------------------------------------------------------------------
   Work with me (home): availability, three plans, trust row, steps, quote
   -------------------------------------------------------------------------- */
.hire {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--s-9) var(--gutter) var(--s-10);
}
.hire__head { text-align: center; max-width: 760px; margin: 0 auto var(--s-5); }
.hire__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: #e6f6f1; color: #0b5b4b; font-size: 15px; font-weight: 500;
  margin-bottom: var(--s-5);
}
.hire__badge i {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(23,160,134,.5); animation: hirePulse 2s infinite;
}
@keyframes hirePulse { 70% { box-shadow: 0 0 0 9px rgba(23,160,134,0); } 100% { box-shadow: 0 0 0 0 rgba(23,160,134,0); } }
.hire__title {
  font-size: clamp(44px, 6.5vw, 84px); font-weight: 500; line-height: 1.08;
  letter-spacing: var(--track-display); margin-bottom: var(--s-4);
}
.hire__title .accent { color: var(--blue); }
.hire__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--n-600); }

/* Plans */
.hire__plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: var(--s-6); padding-top: 132px; margin-top: 64px;
  border-radius: var(--r-lg); background: var(--blue-wash); color: var(--ink);
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.plan:hover { translate: 0 -6px; box-shadow: 0 24px 48px -24px rgba(16,18,35,.25); }
.plan__mascot { position: absolute; top: -64px; left: var(--s-6); width: 150px; }
.plan__mascot svg { filter: drop-shadow(0 10px 14px rgba(16,18,35,.12)); }
.plan__mascot { isolation: isolate; }
.plan__mascot::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 0;
  aspect-ratio: 1; border-radius: 50%; background: var(--blue-soft);
}
.plan--featured .plan__mascot::before { background: #fff; }
.plan__flag {
  position: absolute; top: var(--s-5); right: var(--s-5);
  padding: 6px 12px; border-radius: var(--r-pill); background: #ffd23f; color: var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  rotate: 4deg;
}
.plan__tag { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: var(--s-2); }
.plan__name { font-size: clamp(26px, 2.5vw, 32px); font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.15; margin-bottom: var(--s-2); }
.plan__for { font-size: 16px; line-height: 1.5; color: var(--n-600); min-height: 3em; margin-bottom: var(--s-5); }
.plan__price { font-size: 34px; font-weight: 700; letter-spacing: var(--track-heading); line-height: 1.1; margin-bottom: var(--s-5); }
.plan__price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--n-600); }
.plan__meta { display: grid; gap: var(--s-3); padding: var(--s-4) 0; border-block: 1px solid rgba(16,18,35,.1); margin-bottom: var(--s-5); }
.plan__meta div { display: flex; justify-content: space-between; gap: var(--s-4); font-size: 15px; }
.plan__meta dt { color: var(--n-600); }
.plan__meta dd { font-weight: 500; text-align: right; }
.plan__list { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-6); flex: 1; }
.plan__list li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.plan__cta { align-self: stretch; justify-content: center; }

.plan--featured { background: var(--blue); color: #fff; box-shadow: 0 30px 60px -30px rgba(15,23,240,.6); }
.plan--featured .plan__tag { color: #ffd23f; }
.plan--featured .plan__for,
.plan--featured .plan__price small,
.plan--featured .plan__meta dt { color: rgba(255,255,255,.72); }
.plan--featured .plan__meta { border-color: rgba(255,255,255,.2); }
.plan--featured .plan__list li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%230f17f0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan--featured .plan__cta { background: #fff; color: var(--blue); font-weight: 500; }
.plan--featured .plan__cta::before { background: var(--ink); }
.plan--featured .plan__cta:hover { color: #fff; }

/* Trust row */
.hire__trust {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3);
  margin: var(--s-7) 0 var(--s-9);
}
.hire__trust li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--n-200);
  font-size: 15px; color: var(--n-700);
}
.hire__trust b { font-weight: 400; }
.hire__clock time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Steps + quote */
.hire__how { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-7); align-items: stretch; margin-bottom: var(--s-9); }
.hire__subtitle { font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: var(--track-heading); margin-bottom: var(--s-6); }
.hire__steps { display: flex; flex-direction: column; }
.hire__steps ol { list-style: none; display: grid; gap: 0; flex: 1; grid-auto-rows: 1fr; }
.hire__steps li { display: flex; gap: var(--s-5); padding: var(--s-5) 0; border-top: 1px solid var(--n-200); }
.hire__steps li:last-child { border-bottom: 1px solid var(--n-200); }
.hire__steps span { font-size: 15px; font-weight: 700; color: var(--blue-text); padding-top: 5px; min-width: 28px; }
.hire__steps h4 { font-size: 22px; font-weight: 500; letter-spacing: var(--track-title); margin-bottom: 4px; }
.hire__steps p { font-size: 16px; line-height: 1.5; color: var(--n-600); }

.hire__quote {
  padding: var(--s-6); border-radius: var(--r-lg);
  background: var(--ink); color: #fff;
}
.hire__stars { color: #ffd23f; letter-spacing: 3px; font-size: 18px; margin-bottom: var(--s-4); }
.hire__quote blockquote { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.4; letter-spacing: var(--track-title); margin-bottom: var(--s-5); }
.hire__quote figcaption { display: flex; align-items: center; gap: var(--s-3); font-size: 15px; color: rgba(255,255,255,.7); }
.hire__quote figcaption b { display: block; color: #fff; font-weight: 500; }
.hire__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; }
.hire__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); }
/* Stats on their own (no quote above): drop the divider */
.hire__stats:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
/* Right-hand card beside "How it starts": pitch on top, stats pinned to the bottom */
.hire__card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: var(--s-6) var(--s-7); border-radius: var(--r-xl);
  background: radial-gradient(520px 360px at 100% 0%, rgba(42,51,255,.45), transparent 70%), var(--ink);
}
.hire__card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.hire__card > * { position: relative; }
.hire__card-mascot { position: absolute; top: var(--s-5); right: var(--s-5); width: 116px; z-index: 1; }
.hire__card-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: var(--s-3); padding-right: 120px; }
.hire__card-title { font-size: clamp(28px, 2.8vw, 38px); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-heading); max-width: 11em; padding-right: 100px; }
.hire__card-title .accent { color: #8b90f5; }
.hire__card-text { margin-top: var(--s-4); font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.72); max-width: 30em; }
.hire__card-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-5); }
.hire__card-tags li { padding: 7px 14px; border-radius: 100px; font-size: 14px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.hire__card .hire__stats { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.15); }
.hire__card-tags { margin-bottom: var(--s-5); }
.hire__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.hire__stats dd { font-size: 32px; font-weight: 700; letter-spacing: var(--track-heading); }
.hire__stats dt { font-size: 13px; color: rgba(255,255,255,.65); }

/* Final nudge */
.hire__final {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-6);
  padding: var(--s-6) var(--s-7); border-radius: var(--r-xl); background: var(--blue-soft);
}
.hire__final h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 500; letter-spacing: var(--track-heading); margin-bottom: 6px; }
.hire__final p { font-size: 17px; color: var(--n-700); max-width: 34em; }
.hire__final-actions { display: flex; gap: var(--s-3); flex-shrink: 0; }

@media (max-width: 1080px) {
  .hire__plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: var(--s-4); }
  .plan__for { min-height: 0; }
  .hire__how { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hire { padding: var(--s-8) var(--gutter) var(--s-9); }
  .hire__head { margin-bottom: var(--s-6); }
  .hire__badge { font-size: 14px; }
  .plan { padding: var(--s-5); padding-top: 112px; margin-top: 56px; }
  .plan__mascot { width: 128px; top: -56px; left: var(--s-5); }
  .hire__trust { margin: var(--s-6) 0 var(--s-8); }
  .hire__trust li { font-size: 14px; padding: 8px 14px; }
  .hire__final { flex-direction: column; align-items: flex-start; padding: var(--s-6) var(--s-5); }
  .hire__final-actions { flex-wrap: wrap; width: 100%; }
  .hire__final-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hire__stats dd { font-size: 26px; }
  .hire__card { padding: var(--s-6) var(--s-5); }
  .hire__card-mascot { width: 88px; top: var(--s-4); right: var(--s-4); }
  .hire__card-title { padding-right: 76px; }
  .hire__card-eyebrow { padding-right: 90px; }
  .hire__card .hire__stats { margin-top: var(--s-6); }
}
@media (prefers-reduced-motion: reduce) { .hire__badge i { animation: none; } .plan { transition: none; } }

/* --------------------------------------------------------------------------
   Coffee chat (home): free, low-key meetups, separate from paid work
   -------------------------------------------------------------------------- */
.coffee {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-10);
}
.coffee__panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-8); align-items: center;
  padding: var(--s-8); border-radius: var(--r-xl); background: var(--blue-wash);
}
.coffee__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: #fbeedd; color: #7a3f00; font-size: 15px; font-weight: 500;
  margin-bottom: var(--s-5);
}
.coffee__title {
  font-size: clamp(40px, 5.6vw, 72px); font-weight: 500; line-height: 1.08;
  letter-spacing: var(--track-display); margin-bottom: var(--s-4);
}
.coffee__title .accent { color: var(--blue); }
.coffee__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--n-600); max-width: 34em; margin-bottom: var(--s-6); }
.coffee__label { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: var(--s-3); }
.coffee__topics { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.coffee__topics li {
  padding: 8px 16px; border-radius: var(--r-pill); background: #fff;
  font-size: 15px; color: var(--n-700); box-shadow: 0 0 0 1px var(--n-200) inset;
  transition: translate .4s var(--ease-out), background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.coffee__topics li:hover { translate: 0 -3px; background: var(--blue-soft); color: var(--blue-text); }
.coffee__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* The menu card */
.coffee__menu-wrap { position: relative; padding-top: 150px; }
.coffee__mascot { position: absolute; top: 0; right: var(--s-6); width: 150px; z-index: 2; isolation: isolate; pointer-events: none; }
.coffee__mascot svg { filter: drop-shadow(0 10px 14px rgba(16,18,35,.12)); }
.coffee__mascot::before {
  content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; bottom: 0;
  aspect-ratio: 1; border-radius: 50%; background: var(--blue-soft);
}
.coffee__menu {
  position: relative; z-index: 1;
  padding: var(--s-6); border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 30px 60px -32px rgba(16,18,35,.35);
  transition: translate .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.coffee__menu:hover { translate: 0 -6px; box-shadow: 0 36px 64px -30px rgba(16,18,35,.4); }
.coffee__menu-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--s-4);
  padding: 0 150px var(--s-4) 0; margin-bottom: var(--s-2); border-bottom: 2px dashed var(--n-200);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--n-500);
}
.coffee__menu-head span:first-child { color: var(--ink); font-size: 22px; letter-spacing: var(--track-title); text-transform: none; font-weight: 500; }
.coffee__items li {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: start;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--n-100);
}
.coffee__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-wash); font-size: 20px; }
.coffee__items h3 { font-size: 19px; font-weight: 500; letter-spacing: var(--track-title); margin-bottom: 2px; }
.coffee__items p { font-size: 15px; line-height: 1.45; color: var(--n-600); }
.coffee__time {
  padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--blue-text);
  font-size: 13px; font-weight: 700; white-space: nowrap; margin-top: 2px;
}
.coffee__note { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: var(--s-4); font-size: 15px; color: var(--n-600); }
.coffee__note time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.coffee__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(23,160,134,.5); animation: hirePulse 2s infinite; }

@media (max-width: 1080px) {
  .coffee__panel { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-7); }
  .coffee__menu-wrap { max-width: 560px; }
}
@media (max-width: 860px) {
  .coffee { padding-bottom: var(--s-9); }
  .coffee__panel { padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); }
  .coffee__badge { font-size: 14px; }
  .coffee__menu { padding: var(--s-5); }
  .coffee__menu-wrap { padding-top: 126px; }
  .coffee__menu-head { padding-right: 120px; }
  .coffee__mascot { width: 128px; right: var(--s-5); }
  .coffee__actions .btn { flex: 1 1 auto; justify-content: center; }
  .coffee__items li { grid-template-columns: auto 1fr; }
  .coffee__time { grid-column: 2; justify-self: start; margin-top: 0; }
}

/* ---- FAQ (home): native <details>, answers mirrored into FAQPage JSON-LD ---- */
.faq {
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--s-10);
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--s-8); align-items: start;
}
.faq__head { position: sticky; top: 120px; }
.faq__kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: var(--s-3); }
.faq__title { font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: var(--track-display); margin-bottom: var(--s-4); }
.faq__title .accent { color: var(--blue); }
.faq__lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--n-600); }
.faq__lead a, .faq__a a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 3px; }
.faq__list { border-top: 1px solid var(--n-200); }
.faq__item { border-bottom: 1px solid var(--n-200); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; font-size: clamp(19px, 1.9vw, 24px); font-weight: 500; letter-spacing: -0.01em;
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-wash) center / 16px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%230f17f0' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .4s var(--ease-out), background-color .3s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--blue-text); }
.faq__item summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-sm); }
.faq__a { padding: 0 56px var(--s-5) 0; }
.faq__a p { font-size: 17px; line-height: 1.65; color: var(--n-600); }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: var(--s-6); padding-bottom: var(--s-9); }
  .faq__head { position: static; }
  .faq__a { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .coffee__dot { animation: none; } .coffee__menu, .coffee__topics li { transition: none; } }
