/* ---------- tokens ---------- */
:root {
  --bg:        #ffffff;
  --paper-2:   #f3f1ec;
  --ink:       #0e0e0d;
  --ink-2:     #2a2a28;
  --soft:      #6e6e6a;
  --faint:     #a3a3a0;
  --rule:      #ececea;
  --gutter:    clamp(24px, 6vw, 56px);
  --maxw:      720px;
  --sans:      'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-transform: lowercase;
  -webkit-tap-highlight-color: rgba(111, 191, 155, 0.24);
}
::selection { background: #6fbf9b; color: var(--ink); }

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

/* shared subtle underline on hover for content links */
.hero .intro a,
.cv .ln a,
.plain a,
.sig a {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .3s ease;
  padding-bottom: 1px;
}
.hero .intro a:hover,
.cv .ln a:hover,
.plain a:hover,
.sig a:hover { background-size: 100% 1px; }

/* touch devices have no hover state — keep the hairline underline on so
   links don't read as plain text */
@media (hover: none) {
  .hero .intro a,
  .cv .ln a,
  .plain a,
  .sig a,
  .hood .tops a { background-size: 100% 1px; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  padding: 22px var(--gutter);
  z-index: 10;
  font-size: 14px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0));
  backdrop-filter: saturate(120%) blur(6px);
  -webkit-backdrop-filter: saturate(120%) blur(6px);
}
.nav .mark {
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav nav {
  display: flex;
  gap: clamp(14px, 2vw, 22px);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}
.nav nav a {
  color: var(--soft);
  transition: color .2s ease;
}
.nav nav a:hover { color: var(--ink); }

@media (max-width: 540px) {
  .nav { padding: 16px 22px; font-size: 13px; }
  .nav .mark { font-size: 13px; }
}

/* ---------- main ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

section { padding: 56px 0; }
section:first-of-type { padding-top: 14vh; padding-top: 14svh; }

/* ---------- hero ---------- */
.hero .hero-head {
  display: flex;
  align-items: center;
  gap: 22px;
}
.hero .hero-head .hero-text { min-width: 0; }
.hero .avatar {
  display: none;
  width: 96px;
  height: 96px;
  border-radius: 16px;
  margin: 0;
  object-fit: cover;
  flex-shrink: 0;
}
.hero .hero-head h1 { margin: 0; }
.hero .hero-head .greeting { margin: 6px 0 0; }
.hero .hero-head .contact { margin: 6px 0 0; font-size: 13px; }
.hero h1 {
  font-family: var(--sans);
  font-style: normal;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero .contact {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--soft);
}
.hero .greeting {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--soft);
  margin: 8px 0 0;
}
.hero .greeting .clock { color: var(--ink); font-variant-numeric: tabular-nums; }
.hero .greeting .hello { color: var(--ink); }
.mint { color: #6fbf9b; }
.go-blue { color: #00274c; font-weight: 600; }
.hero .meta {
  margin: 6px 0 36px;
  font-size: 14.5px;
  color: var(--soft);
  font-family: var(--sans);
}
.hero .intro {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 16px 0 0;
}
.hero .intro em {
  font-style: normal;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- hero map ---------- */
.hero .map {
  position: relative;
  margin: 20px calc(-1 * var(--gutter)) 0;
}
.hero .map-svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero .map .continent {
  fill: none;
  stroke: #c8c8c8;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  shape-rendering: geometricPrecision;
}
.hero .map .arc {
  fill: none;
  stroke: #6fbf9b;
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.hero .map .arc-chennai    { stroke-dasharray: 340; stroke-dashoffset: 340; }
.hero .map .arc-pittsburgh { stroke-dasharray: 50;  stroke-dashoffset: 50;  }
.hero .map .arc-ann        { stroke-dasharray: 80;  stroke-dashoffset: 80;  }
.hero .map .arc-la         { stroke-dasharray: 390; stroke-dashoffset: 390; }
.hero .map .dot { fill: var(--ink); }

body.booted .hero .map .arc-chennai    { animation: arc-draw 1000ms cubic-bezier(.16,1,.3,1) 1300ms forwards; }
body.booted .hero .map .arc-pittsburgh { animation: arc-draw  350ms cubic-bezier(.16,1,.3,1) 2100ms forwards; }
body.booted .hero .map .arc-ann        { animation: arc-draw  450ms cubic-bezier(.16,1,.3,1) 2450ms forwards; }
body.booted .hero .map .arc-la         { animation: arc-draw  600ms cubic-bezier(.16,1,.3,1) 2800ms forwards; }
@keyframes arc-draw { to { stroke-dashoffset: 0; } }
/* reduced-motion users: show arcs in their final drawn state */
body.all-in .hero .map .arc { stroke-dashoffset: 0; }

.hero .intro-mobile { display: none; }

.hero .map-label {
  position: absolute;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}
.hero .map-label em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--soft);
  margin-top: 3px;
}
.hero .map .label-brooklyn   { left: 47%;  top: 41%; }
.hero .map .label-pittsburgh { left: 40%;  top: 58%; }
.hero .map .label-ann        { right: 64%; top: 33%; text-align: right; }
.hero .map .label-la         { left: 15%;  top: 64%; }
.hero .map .label-chennai    { left: 77%;  top: 63%; }

/* country/region labels sit on top of the land shapes */
.hero .map .region-label {
  position: absolute;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--soft);
  pointer-events: none;
  white-space: nowrap;
}
.hero .map .region-india { left: 77%; top: 6%; }

/* ---------- hero places (hub + spokes + flag icons) ---------- */
.hero .places {
  position: relative;
  margin: 20px calc(-1 * var(--gutter)) 0;
}
.hero .places .spokes {
  display: block;
  width: 100%;
  height: auto;
}
.hero .places .spoke {
  fill: none;
  stroke: #6fbf9b;
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
}
body.booted .hero .places .spoke-chennai    { animation: spoke-draw 1s   cubic-bezier(.16,1,.3,1) 1500ms forwards; }
body.booted .hero .places .spoke-la         { animation: spoke-draw 0.8s cubic-bezier(.16,1,.3,1) 2200ms forwards; }
body.booted .hero .places .spoke-ann        { animation: spoke-draw 0.6s cubic-bezier(.16,1,.3,1) 2600ms forwards; }
body.booted .hero .places .spoke-pittsburgh { animation: spoke-draw 0.5s cubic-bezier(.16,1,.3,1) 2900ms forwards; }
@keyframes spoke-draw { to { stroke-dashoffset: 0; } }
body.all-in .hero .places .spoke { stroke-dashoffset: 0; }

.hero .places .place {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  z-index: 2;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.hero .places .flag-frame {
  display: block;
  width: 60px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(14, 14, 13, 0.12);
  background: var(--bg);
}
.hero .places .flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .places .city {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.hero .places .role {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--soft);
  line-height: 1.15;
}

/* Brooklyn hub gets the "you are here" treatment */
.hero .places .place-brooklyn .flag-frame {
  width: 76px;
  height: 50px;
  outline: 2px solid #6fbf9b;
  outline-offset: 3px;
  box-shadow: 0 5px 18px rgba(14, 14, 13, 0.18);
}
.hero .places .place-brooklyn .city { font-size: 13px; }
.hero .places .place-brooklyn .role { color: #6fbf9b; font-weight: 600; }

/* positions match the SVG spoke endpoints (% of viewBox 1000x500) */
.hero .places .place-brooklyn   { left: 56%; top: 50%; }
.hero .places .place-la         { left: 13%; top: 76%; }
.hero .places .place-pittsburgh { left: 35%; top: 56%; }
.hero .places .place-ann        { left: 23%; top: 26%; }
.hero .places .place-chennai    { left: 88%; top: 54%; }

.hero .places .place:hover .flag-frame {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(14, 14, 13, 0.16);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* city groups: invisible hit area gets the hover */
.hero .map .city .hit { fill: transparent; pointer-events: all; cursor: pointer; }
.hero .map .city .dot, .hero .map .city .pulse { pointer-events: none; }

/* hover tooltip — desktop only */
.hero .map-tooltip {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-2);
  box-shadow: 0 6px 18px rgba(14, 14, 13, 0.07);
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transform: translate(14px, -50%) scale(0.97);
  transform-origin: 0 50%;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 4;
}
.hero .map-tooltip.active { opacity: 1; transform: translate(14px, -50%) scale(1); }
.hero .map-tooltip.flip   { transform: translate(calc(-100% - 14px), -50%) scale(0.97); transform-origin: 100% 50%; }
.hero .map-tooltip.active.flip { transform: translate(calc(-100% - 14px), -50%) scale(1); }

/* touch devices: skip the tooltip entirely */
@media (hover: none) {
  .hero .map .city .hit { cursor: default; }
  .hero .map-tooltip { display: none; }
}

@media (max-width: 540px) {
  .hero .map-label    { font-size: 9px; }
  .hero .map-label em { font-size: 7.5px; }
}

/* ---------- section heads ---------- */
h2 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #6fbf9b;
  margin: 0 0 28px;
  line-height: 1.2;
}

/* ---------- work ---------- */
.cv {
  list-style: none;
  padding: 0;
  margin: 0 0 0 -54px;
  display: grid;
  grid-template-columns: 36px auto auto 1fr;
  column-gap: 18px;
}
.cv li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: baseline;
  padding: 14px 0;
}
.cv .pill { grid-column: 1; }
.cv .yr   { grid-column: 2; }
.cv .co   { grid-column: 3; }
.cv .ln   { grid-column: 4; }

/* inline ticker tooltip (e.g., CoStar -> NASDAQ: CSGP) */
.ticker {
  position: relative;
  border-bottom: 1px dotted var(--faint);
  cursor: help;
}
.ticker:hover::after,
.ticker:focus::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 5px 9px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 5px;
  white-space: nowrap;
  text-transform: none;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(14, 14, 13, 0.18);
}
.cv li + li { border-top: 1px solid var(--rule); }
.cv .yr {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 6px;
}
.cv .ln {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cv .ln b {
  font-weight: 600;
  font-style: normal;
  color: var(--ink);
}
.cv .pill {
  display: inline-block;
  padding: 2px 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--soft);
  background: var(--paper-2, #f3f1ec);
  border-radius: 100px;
  vertical-align: 1px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .cv { display: block; margin-left: 0; }
  .cv li { display: block; padding: 14px 0; }
  .cv .pill { display: inline-block; vertical-align: 1px; margin-right: 8px; }
  .cv .yr { display: inline-block; margin: 0; }
  .cv .co { display: block; margin: 4px 0 0; }
  .cv .ln { display: block; margin: 4px 0 0; }
  .cv .yr { font-size: 12.5px; }
  .cv .ln { font-size: 15px; }
}

/* ---------- plain list (reads) ---------- */
.plain {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plain li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}
.plain li:first-child { border-top: none; }
.plain .dim { color: var(--faint); font-size: 12px; font-family: var(--sans); letter-spacing: 0.06em; text-transform: lowercase; }

/* ---------- kv list (more) ---------- */
.kv {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  row-gap: 18px;
  column-gap: 18px;
}
.kv dt {
  font-size: 13.5px;
  color: var(--faint);
  padding-top: 2px;
}
.kv dd {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.65;
}
.kv .dim {
  color: var(--faint);
  font-size: 13px;
  display: inline-block;
  width: 56px;
}

@media (max-width: 540px) {
  .kv { grid-template-columns: 64px 1fr; }
  .kv dt { font-size: 12.5px; }
  .kv dd { font-size: 15.5px; }
  .kv .dim { width: 50px; font-size: 12px; }
}

/* ---------- eats ---------- */
.eats .display {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: -8px 0 10px;
}
.eats .display em { font-style: normal; }
.eats .lede {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--soft);
  margin: 0 0 36px;
}
.hint { margin: 0 0 22px; font-size: 14px; }
.dim { color: var(--faint); }

.eats-grid {
  display: block;
  margin-top: 12px;
}
/* the few i love most — always shown */
.loved {
  list-style: none;
  padding: 0;
  margin: 0;
}
.loved li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 11px 0;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.loved li + li { border-top: 1px solid var(--rule); }
.loved a {
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 95%;
  transition: background-size .3s ease;
  padding-bottom: 1px;
}
.loved a:hover { background-size: 100% 1px; }
.loved .meta {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
.loved .pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--soft);
  background: var(--paper-2, #f3f1ec);
  border-radius: 100px;
  white-space: nowrap;
}
.loved .loc {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.01em;
}

/* expand: everything else */
.eats-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  /* generous tap target on touch; negative inline margin keeps the visual
     left edge and ~22px top rhythm unchanged */
  margin: 8px -8px 0;
  padding: 14px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--soft);
  transition: color .2s ease;
}
.eats-toggle:hover { color: var(--ink); }
.eats-toggle .plus {
  display: inline-block;
  font-size: 14px;
  width: 12px;
  text-align: center;
  color: #6fbf9b;
  transform: translateY(1px);
}

.eats-rest {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
#eats-grid.open .eats-rest {
  grid-template-rows: 1fr;
  opacity: 1;
}
.eats-rest-inner {
  overflow: hidden;
  min-height: 0;
}
.eats-rest h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--faint);
  margin: 28px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.eats-rest .rest-list {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--soft);
  line-height: 1.85;
  margin: 0;
}
.eats-rest .rest-list a {
  color: var(--soft);
  transition: color .2s ease;
}
.eats-rest .rest-list a:hover { color: var(--ink); }
.eats-rest .rest-list .sep { color: var(--faint); margin: 0 6px; }

/* touch devices: the dense neighborhood lists are comma-packed and the
   anchors are only ~16px tall — space the rows out and grow each link's
   hit box so individual restaurants are reliably tappable. */
@media (hover: none) {
  .eats-rest .rest-list { line-height: 2.05; }
  .eats-rest .rest-list a { display: inline-block; padding: 4px 1px; }
  .eats-rest .rest-list .sep { margin: 0 9px; }
}

/* ---------- footer ---------- */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px var(--gutter) 80px;
  border-top: 1px solid var(--rule);
}
.sig {
  font-size: 17px;
  color: var(--soft);
  margin: 0;
  font-style: italic;
}
.sig a {
  color: var(--soft);
  transition: color .2s ease;
}
.sig a:hover { color: var(--ink); }
.sig .sep { margin: 0 10px; color: var(--faint); }

/* ============== LOAD CHOREOGRAPHY ==============
   Beat 0: page paints (body fades in instantly).
   Beat 1: name letters cascade with blur-fade.
   Beat 2: intro + contact rise into place.
   Beat 3: each section lights and cascades on scroll. */

/* hide content before JS pins reveal classes — no FOUC */
html.js body { opacity: 0; }
html.js body.booted { opacity: 1; transition: opacity .6s ease; }
html:not(.js) body { opacity: 1; }

/* --- the name: flipboard scramble (chars cycle in fixed-width slots) --- */
.hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em) scale(0.96);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.hero h1.typing .ch {
  animation: charIn 1s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(280ms + 55ms * var(--i));
}
@keyframes charIn {
  0%   { opacity: 0; transform: translateY(0.5em) scale(0.96); filter: blur(8px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
/* --- everything else: a refined rise with a hint of blur + scale --- */
.rise {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: blur(4px);
  will-change: opacity, transform, filter;
  transition:
    opacity 1.1s cubic-bezier(.16,1,.3,1),
    transform 1.1s cubic-bezier(.16,1,.3,1),
    filter 1.1s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--rd, 0ms);
}

/* hero rises fire on boot (their --rd is pre-set to 1050ms+) */
body.booted .hero .rise { opacity: 1; transform: none; filter: blur(0); }

/* sections light up when they scroll into view; their children cascade */
.rise-host.lit > .rise,
.rise-host.lit > * > .rise,
.hood.rise.lit { opacity: 1; transform: none; filter: blur(0); }

/* hood items also reveal smoothly when their host lights */
.hood.rise.lit { transition-delay: var(--rd, 0ms); }

/* hero h2-equivalents inside hero already handled by their own --rd */

/* once in, drop will-change so GPU layers aren't kept around */
body.booted .hero .rise,
.rise-host.lit > .rise,
.hood.rise.lit { will-change: auto; }

/* fallback for reduced motion */
body.all-in .rise,
body.all-in .hero h1 .ch {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
  }
  html.js body { opacity: 1 !important; }
  .hero h1 .ch, .rise { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- mobile rhythm & type ---------- */
@media (max-width: 540px) {
  section { padding: 40px 0; }
  section:first-of-type { padding-top: 18vh; padding-top: 18svh; }

  .hero .avatar { width: 76px; height: 76px; margin-bottom: 18px; }
  .hero .map, .hero .places { display: none; }
  .hero .intro { font-size: 15px; margin-top: 16px; }
  .hero .contact { font-size: 13px; }

  h2 { margin-bottom: 22px; }

  .plain li { padding: 14px 0; }

  .loved li { font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
  .eats-rest h4 { margin-top: 22px; margin-bottom: 10px; }
  .eats-rest .rest-list { font-size: 13.5px; line-height: 1.85; }
}

@media (max-width: 380px) {
  section:first-of-type { padding-top: 14vh; padding-top: 14svh; }
  .loved li { font-size: 16px; }
}


/* ---------- hero timeline (left-to-right flag stops) ---------- */
.hero .timeline {
  position: relative;
  margin: 24px calc(-1 * var(--gutter)) 0;
}
.hero .timeline .stops {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}
.hero .timeline .stops::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22px;
  height: 1.5px;
  background: var(--rule);
  z-index: 0;
}
.hero .timeline .stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero .timeline .flag-frame {
  width: 60px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 3px 10px rgba(14, 14, 13, 0.14);
}
.hero .timeline .flag {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero .timeline .city {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-top: 8px;
}
.hero .timeline .role {
  font-family: var(--sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--soft);
  line-height: 1.15;
}
.hero .timeline .stop-now .flag-frame {
  border: 2px solid #6fbf9b;
  position: relative;
}
.hero .timeline .stop-now .flag-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(111, 191, 155, 0.55);
  opacity: 0; /* invisible until the pulse keyframes drive it */
  pointer-events: none;
  transform-origin: center;
  /* compositor-only pulse (transform + opacity) instead of an animated
     box-shadow spread — the old version repainted a growing shadow every
     frame forever, which drained battery on phones. */
  animation: pulse-now 2.6s ease-out 3s infinite;
  will-change: transform, opacity;
}
@keyframes pulse-now {
  0%   { transform: scale(1);    opacity: 0.55; }
  100% { transform: scale(1.85); opacity: 0;    }
}
.hero .timeline .stop-now .role { color: #6fbf9b; font-weight: 600; }
.hero .timeline .stop:hover .flag-frame {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(14, 14, 13, 0.18);
  transition: transform .2s ease, box-shadow .2s ease;
}


/* ---------- mobile: vertical timeline with descriptions ---------- */
@media (max-width: 540px) {
  .hero .timeline {
    margin: 36px 0 0;
  }
  .hero .timeline .stops {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero .timeline .stops::before { display: none; }
  .hero .timeline .stop {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 2px 14px;
    align-items: start;
    text-align: left;
    cursor: default;
  }
  .hero .timeline .flag-frame {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 56px;
    height: 38px;
    margin: 0;
  }
  .hero .timeline .city {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 13.5px;
  }
  .hero .timeline .role {
    grid-column: 2;
    grid-row: 2;
    font-size: 9.5px;
  }
  .hero .timeline .stop::after {
    content: attr(data-text);
    grid-column: 2;
    grid-row: 3;
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--soft);
    margin-top: 4px;
  }
  /* keep brooklyn's mint pulse but disable hover lift on mobile */
  .hero .timeline .stop:hover .flag-frame { transform: none; box-shadow: 0 3px 10px rgba(14,14,13,0.14); }
}


/* ---------- hero weather + subway lines ---------- */
.hero .weather, .hero .subway {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  margin: 6px 0 0;
}
.hero .weather .temp,
.hero .weather .hilo,
.hero .subway .arrivals {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero .subway {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.hero .subway .train-bullet.l-train {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #A7A9AC;
  color: white;
  font-weight: 700;
  font-size: 10.5px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  line-height: 1;
}
.hero .subway[data-tip] { cursor: help; }
.hero .subway[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 5px;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: none;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(14, 14, 13, 0.18);
}
.hero .life-header { margin-top: 56px; }


/* work section sign-off contact */
#work .contact { margin-top: 28px; font-size: 13.5px; color: var(--soft); }
