/* ================================================
   MANU MYTHIL MURALEE
   Mobile-first layer for the rebuilt Home / CV pages.

   Loaded AFTER style.css. style.css is desktop-first
   (max-width queries) and still serves the legacy
   project pages; everything below is mobile-first
   (min-width queries) and owns the new components.
   ================================================ */

:root {
  --accent: #c8a05a;
  --accent-soft: rgba(200, 160, 90, 0.16);
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.20);
  --measure: 62ch;
}

/* ---------- BASE (mobile first) ---------- */

body {
  font-size: 1rem;
  /* never below 16px */
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* Tap targets: 44px minimum everywhere it matters */
.nav3__link,
.footer3__link,
.inline-link,
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.inline-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  transition: color 0.25s var(--ease-out);
}

.inline-link:hover,
.inline-link:focus-visible {
  color: var(--accent);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ================================================
   NAV — three items, nothing else
   ================================================ */

.nav3 {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav3__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.nav3__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nav3__list {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
}

.nav3__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  padding-inline: 0.125rem;
  transition: color 0.25s var(--ease-out);
}

.nav3__link:hover,
.nav3__link:focus-visible,
.nav3__link[aria-current="page"] {
  color: var(--white);
}

.nav3__link[aria-current="page"] {
  box-shadow: inset 0 -1px 0 0 var(--accent);
}

@media (min-width: 768px) {
  .nav3__inner {
    min-height: 76px;
  }

  .nav3__logo {
    font-size: 1.0625rem;
  }
}

/* ---------- Mobile nav: a <details> disclosure, not JS state ----------
   Nine items in the horizontal nav3__list overflow anything under 1024px, so
   below that it hides and a hamburger reveals the same four links as a
   dropdown instead. Built on <details>/<summary> rather than a JS click
   handler, so the menu opens even if the page's script never runs. */
.nav3__mobile {
  display: none;
}

@media (max-width: 1023px) {
  .nav3__list {
    display: none;
  }

  .nav3__mobile {
    display: block;
    position: relative;
  }

  .nav3__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    list-style: none;
  }

  .nav3__toggle::-webkit-details-marker {
    display: none;
  }

  .nav3__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s var(--ease-out), opacity 0.2s;
  }

  .nav3__mobile[open] .nav3__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav3__mobile[open] .nav3__toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav3__mobile[open] .nav3__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav3__mlist {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.98);
    border: 1px solid var(--hairline-strong);
    border-radius: 10px;
    padding: 0.5rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .nav3__mlink {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: 0.75rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--light);
  }

  .nav3__mlink:hover,
  .nav3__mlink:focus-visible,
  .nav3__mlink[aria-current="page"] {
    color: var(--white);
    background: var(--accent-soft);
  }
}

/* ================================================
   HERO — the whole argument, above the fold
   ================================================ */

.hero3 {
  padding-block: 2.5rem 3rem;
  border-bottom: 1px solid var(--hairline);
}

.hero3__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

/* One line under the name. The detail lives in the route stops below. */
.hero3__headline {
  font-family: var(--font-heading);
  font-size: clamp(1.1875rem, 4.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--light);
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

.hero3__meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--mid);
  margin-bottom: 1.75rem;
}

.hero3__available {
  color: var(--white);
  font-weight: 500;
}

.hero3__available::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: 0.12em;
}

/* Contact strip — visible in the first viewport */
.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

/* Below 480px the email address is the longest token on the page; let the
   pill go full width rather than let the address force horizontal scroll. */
@media (max-width: 479px) {
  .contact-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-strip__link {
    justify-content: center;
  }
}

.contact-strip__link:hover,
.contact-strip__link:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-strip__link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.hero3__skip {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--mid);
}

@media (min-width: 768px) {
  .hero3 {
    padding-block: 4.5rem 5rem;
  }

  .hero3__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
  }
}

/* ================================================
   GLOBE — scroll-reactive, never scroll-hijacking
   ================================================ */

.route {
  position: relative;
  padding-block: 3rem;
}

.route__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
}

.route__label {
  margin-bottom: 0;
}

.route__expand {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: none;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.route__expand:hover,
.route__expand:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Progressive disclosure ----------
   Native details/summary. The bullets are real DOM text at page load,
   never injected on click, so crawlers, ATS parsers and find-in-page
   all reach them whether or not anyone opens the control. */

.stop__more {
  margin-top: 1rem;
}

.stop__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.25s var(--ease-out);
}

.stop__more > summary::-webkit-details-marker {
  display: none;
}

.stop__more > summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s var(--ease-out);
}

.stop__more[open] > summary::before {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.stop__more > summary:hover,
.stop__more > summary:focus-visible {
  color: var(--accent);
}

.stop__detail {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
  padding-left: 0.875rem;
  border-left: 1px solid var(--hairline);
}

.stop__detail li {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--mid);
  max-width: 52ch;
}

.stop__detail strong {
  color: var(--light);
  font-weight: 600;
}

/* Mobile default: static SVG route diagram, no WebGL */
.route__stage {
  position: relative;
  width: 100%;
  margin-bottom: 2.5rem;
}

.route__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin-inline: auto;
}

.route__canvas {
  display: none;
}

/* One caption for the whole four-state fan. Four separate labels would
   collide at this zoom on a laptop and be unreadable on a phone. */
.route__fan-caption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Under WebGL the caption belongs to the Kochi stop, so it fades with it. */
.route--webgl .route__fan-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}

.route--webgl .route__fan-caption.is-on {
  opacity: 1;
}

.route__stops {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  counter-reset: stop;
}

.stop {
  position: relative;
  padding-left: 2.25rem;
  border-left: 1px solid var(--hairline);
  padding-bottom: 0.5rem;
}

.stop::before {
  counter-increment: stop;
  content: counter(stop);
  position: absolute;
  left: -0.8125rem;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--black);
  border: 1px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid);
  transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}

.stop.is-active::before {
  border-color: var(--accent);
  color: var(--accent);
}

.stop__beat {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.stop__place {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.375rem;
}

/* A small consistent glyph per stop, so the timeline has rhythm rather
   than reading as five identical text blocks. */
.stop__pin {
  width: 13px;
  height: 13px;
  flex: none;
  color: var(--accent);
}

.stop__org {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.375rem;
}

.stop__role {
  font-size: 0.9375rem;
  color: var(--light);
  margin-bottom: 0.25rem;
}

.stop__dates {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.875rem;
}

.stop__metric {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--light);
  max-width: 46ch;
}

/* The headline number in each stop's default line is pulled up in size,
   so the number itself carries the scroll, not just the surrounding prose. */
.stop__metric strong {
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1em;
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  .route {
    padding-block: 5rem;
  }

  /* Desktop: WebGL globe sticks alongside the stops */
  .route__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }

  .route__stage {
    position: sticky;
    top: 96px;
    margin-bottom: 0;
    aspect-ratio: 1;
    max-height: calc(100vh - 160px);
  }

  .route__stops {
    gap: 0;
  }

  .stop {
    /* Each stop occupies enough scroll to drive one camera move.
       Native scroll only — the globe reacts, it never takes over. */
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.4;
    transition: opacity 0.5s var(--ease-out);
  }

  .stop.is-active {
    opacity: 1;
  }

  /* Keep the marker beside its own text, not at the top of a tall block */
  .stop::before {
    top: 50%;
    transform: translateY(-50%);
  }

  .stop__org {
    font-size: 2rem;
  }
}

/* When WebGL is live, the canvas replaces the static SVG */
.route--webgl .route__svg {
  display: none;
}

.route--webgl .route__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Phone and tablet with WebGL: the globe pins under the nav and the stops
   scroll beneath it. svh, not vh, so the mobile URL bar showing and hiding
   never resizes the canvas mid-scroll. */
@media (max-width: 899px) {
  .route--webgl .route__stage {
    position: sticky;
    top: 61px;
    z-index: 2;
    height: 38vh;
    height: 38svh;
    margin-bottom: 1.5rem;
    background: var(--black);
    box-shadow: 0 1.25rem 1.25rem -0.5rem var(--black);
  }

  .route--webgl .route__stops {
    gap: 0;
  }

  .route--webgl .stop {
    /* Enough scroll per stop to drive one camera move */
    min-height: 42vh;
    min-height: 42svh;
    padding-bottom: 2.5rem;
    opacity: 0.4;
    transition: opacity 0.5s var(--ease-out);
  }

  .route--webgl .stop.is-active {
    opacity: 1;
  }
}

/* ================================================
   CLOSING CARD
   ================================================ */

.close-card {
  padding-block: 3rem 4rem;
  background: radial-gradient(ellipse 120% 100% at 50% 0%, var(--accent-soft), transparent 60%), var(--black);
  border-top: 1px solid var(--hairline);
}

.close-card__lead {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 20ch;
  margin-bottom: 2rem;
}

/* Mobile-first: stacked by default. Three entries, each with its year and
   headline number prominent, so the vertical spread (commodity, quant,
   origination) reads on a phone without a wide screen to lay them out. */
.close-card__trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.close-card__third {
  padding-top: 1rem;
  border-top: 1px solid var(--accent);
}

.close-card__when {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
}

.close-card__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light);
}

.close-card__text strong {
  color: var(--white);
  font-weight: 600;
}

/* The method line spans full width beneath the trio, on every size. */
.close-card__method {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--light);
  max-width: var(--measure);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  margin-bottom: 2rem;
}

.close-card__avail {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .close-card {
    padding-block: 5rem 6rem;
  }

  .close-card__trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

/* ================================================
   FOOTER
   ================================================ */

.footer3 {
  border-top: 1px solid var(--hairline);
  padding-block: 2.5rem;
}

.footer3__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer3__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer3__link {
  font-size: 0.9375rem;
  color: var(--mid);
  transition: color 0.25s var(--ease-out);
}

.footer3__link:hover,
.footer3__link:focus-visible {
  color: var(--white);
}

.footer3__meta {
  font-size: 0.8125rem;
  color: var(--mid);
}

@media (min-width: 768px) {
  .footer3__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ================================================
   CV PAGE — plain, copy-pasteable, no animation
   ================================================ */

.cv {
  padding-block: 2.5rem 4rem;
}

.cv__head {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 2.5rem;
}

.cv__name {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 7vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.cv__title {
  font-size: 1.0625rem;
  color: var(--light);
  max-width: var(--measure);
  margin-bottom: 1.25rem;
}

.cv__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.cv__section {
  margin-bottom: 3rem;
}

.cv__h2 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.75rem;
}

.cv__entry {
  margin-bottom: 2.25rem;
}

.cv__entry:last-child {
  margin-bottom: 0;
}

.cv__entry-head {
  margin-bottom: 0.875rem;
}

.cv__org {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.cv__role {
  font-size: 1rem;
  color: var(--light);
  margin-top: 0.25rem;
}

.cv__when {
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 0.25rem;
}

.cv__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cv__list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--light);
  max-width: 78ch;
}

.cv__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

.cv__list strong {
  color: var(--white);
  font-weight: 600;
}

.cv__inline {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--light);
  max-width: 78ch;
}

.cv__inline dt {
  font-weight: 600;
  color: var(--white);
  margin-top: 1rem;
}

.cv__inline dt:first-child {
  margin-top: 0;
}

@media (min-width: 768px) {
  .cv {
    padding-block: 4rem 6rem;
  }

  .cv__entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 2rem;
  }

  .cv__when {
    margin-top: 0;
    flex: none;
    text-align: right;
  }

  .cv__org {
    font-size: 1.375rem;
  }
}

/* ================================================
   REDIRECT STUB
   ================================================ */

.redirect {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.redirect__inner {
  max-width: 32rem;
}

.redirect__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.redirect__text {
  color: var(--mid);
  margin-bottom: 1.75rem;
}

/* ================================================
   REDUCED MOTION — fully static path
   ================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  /* Static fallback only. With the globe live, the sticky stage and the
     scroll length per stop stay; globe.js snaps between stops instead. */
  .route:not(.route--webgl) .stop {
    opacity: 1 !important;
    min-height: 0 !important;
    padding-bottom: 2rem;
  }

  .route:not(.route--webgl) .route__stage {
    position: static !important;
  }

  .route:not(.route--webgl) .route__stops {
    gap: 2.5rem;
  }
}

/* ================================================
   PRINT — the CV must print clean
   ================================================ */

@media print {

  .nav3,
  .footer3,
  .contact-strip,
  .cv__download {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .cv__org,
  .cv__list strong,
  .cv__inline dt {
    color: #000 !important;
  }

  .cv__role,
  .cv__list li,
  .cv__inline {
    color: #222 !important;
  }

  .cv__h2 {
    color: #000 !important;
    border-color: #999 !important;
  }

  .cv__entry {
    break-inside: avoid;
  }
}

/* Functional scope line under a role title */
.cv__scope {
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--mid);
  max-width: 62ch;
}

/* ================================================
   THINKING PAGE
   ================================================ */

.think {
  padding-block: 2.5rem;
  border-top: 1px solid var(--hairline);
}

.think__num {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.think__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.think__applies {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.think__plain {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--light);
  max-width: 70ch;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 1.5rem;
}

.think__body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--light);
  max-width: 70ch;
  margin-bottom: 2rem;
}

.think__steps-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.think__steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: think-step;
}

.think__steps li {
  position: relative;
  padding-left: 2.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mid);
  max-width: 74ch;
}

.think__steps li::before {
  counter-increment: think-step;
  content: counter(think-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.think__steps strong {
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 768px) {
  .think {
    padding-block: 3.5rem;
  }
}

/* ================================================
   IMAGES
   ================================================ */

.portrait {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--hairline-strong);
}

/* Hero: portrait sits beside the copy, never above it, so the
   $3.5M sentence stays the first thing read. */
.hero3__top {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.hero3__top .hero3__name {
  margin-bottom: 0;
  flex: 1 1 auto;
}

.hero3__portrait {
  width: 88px;
  height: 88px;
  flex: none;
  order: 2;
}

@media (min-width: 768px) {
  .hero3__portrait {
    width: 120px;
    height: 120px;
  }
}

.cv__portrait {
  width: 84px;
  height: 84px;
  flex: none;
}

.cv__head-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cv__head-row > div {
  flex: 1 1 auto;
  min-width: 0;
}

/* Inline accent images inside expansions and entries */
.figure-inline {
  margin-top: 0.875rem;
  max-width: 240px;
}

.figure-inline img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--hairline);
}

.figure-inline figcaption {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--mid);
}

.figure-wide {
  margin-top: 1rem;
  max-width: 420px;
}

/* Shipped products in the Madrid stop: always visible, above the panels,
   set in the stop's own type so it reads as part of the entry. */
.stop__ship {
  margin-top: 1rem;
  max-width: 46ch;
}

.stop__ship-lead {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.stop__ship-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.stop__ship-link {
  display: block;
  padding-left: 0.875rem;
  border-left: 2px solid var(--accent);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--light);
  text-decoration: none;
}

.stop__ship-link strong {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.25s var(--ease-out);
}

.stop__ship-link:hover strong,
.stop__ship-link:focus-visible strong {
  text-decoration-color: var(--accent);
}


/* ================================================
   TWO-TIER DISCLOSURE — detail and thinking
   ================================================ */

.stop__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-top: 1rem;
}

.stop__more {
  margin-top: 0;
  flex: 1 1 100%;
}

.think-step {
  display: flex;
  gap: 0.625rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--mid);
}

.think-step__k {
  flex: none;
  min-width: 3.25rem;
  font-weight: 600;
  color: var(--accent);
}

.stop__think-link {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

/* The two disclosure controls sit side by side while collapsed, and each
   takes the full row once opened, so opening one never closes the other. */
.stop__panels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin-top: 1rem;
}

.stop__panels > details {
  margin-top: 0;
}

.stop__panels > details:not([open]) {
  flex: 0 0 auto;
}

.stop__panels > details[open] {
  flex: 1 1 100%;
}

.route__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ================================================
   INLINE DATA VISUALS
   Built from numbers already stated in prose elsewhere
   on the page. Two SVG variants per visual: the funnel
   and bars reflow to a vertical stack under 640px rather
   than just shrinking, so the labels stay readable on a
   phone. Toggled by CSS, both cost nothing over the wire
   beyond the inline markup itself.
   ================================================ */

.dataviz {
  margin-top: 1.25rem;
  max-width: 420px;
}

.dataviz svg {
  width: 100%;
  height: auto;
}

/* The mobile-first display toggle below is the only thing controlling
   visibility; a stray display rule on the descendant-plus-type selector
   above would outrank these single-class rules and show both variants
   at once, which is exactly what shipped the first time. */
.dataviz__wide {
  display: none;
}

.dataviz__narrow {
  display: block;
}

@media (min-width: 640px) {
  .dataviz {
    max-width: 560px;
  }

  .dataviz__wide {
    display: block;
  }

  .dataviz__narrow {
    display: none;
  }
}

.dataviz--in-card {
  max-width: 100%;
}


/* ================================================
   CLOSING CARD ASIDE + EXPLORE THE SITE
   ================================================ */

.close-card__aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.close-card__aside .close-card__method {
  margin-bottom: 1rem;
}

.close-card__recog {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--mid);
  max-width: var(--measure);
  margin-bottom: 2rem;
}

.close-card__photo {
  margin: 0;
  max-width: 300px;
}

.close-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .close-card__aside {
    grid-template-columns: 1fr 300px;
    gap: 3rem;
  }

  .close-card__photo {
    justify-self: end;
  }
}

.explore {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid var(--hairline);
}

.explore__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.explore__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--light);
  transition: color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

.explore__link:hover,
.explore__link:focus-visible {
  color: var(--white);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.explore__link span {
  color: var(--accent);
}


/* ================================================
   HOME LENGTH TUNING: same content, less dead scroll
   ================================================ */

.hero3 { padding-block: 2rem 2.25rem; }
.route { padding-block: 2.25rem; }
.close-card { padding-block: 2.5rem 3rem; }
.close-card__lead { margin-bottom: 1.25rem; }
.close-card__trio { gap: 1.25rem; margin-bottom: 1.5rem; }
.close-card__photo { max-width: 200px; }
.explore { padding-block: 2rem 2.25rem; }
.explore__grid { gap: 0.5rem; }
.explore__link { min-height: 46px; padding: 0.5rem 0.9rem; }
.footer3 { padding-block: 1.75rem; }

@media (min-width: 768px) {
  .hero3 { padding-block: 3rem 3.25rem; }
  .close-card { padding-block: 3.5rem 4rem; }
  .close-card__photo { max-width: 300px; }
}

@media (min-width: 900px) {
  .route { padding-block: 3rem; }
  .stop { min-height: 44vh; }
}
