/*
 * About section: intro + character sheet, polaroid photo deck, the scroll-driven
 * world tour, and side-quest cards. Selectors are scoped under #about so they win
 * over the inline "#about p" color rule in index.html.
 */

#about .about-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/*  Intro                                                             */
/* ------------------------------------------------------------------ */
#about .about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-top: 2.5rem;
}

#about .about-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

#about .about-title {
  margin: 0.7rem 0 1.4rem;
  line-height: 1.05;
}

/* each flag gets its own box: Windows' Twemoji flags (the flag-fallback font) fill
   their whole glyph and touch; Apple's flags already carry a little side bearing */
#about .about-flags {
  display: inline-flex;
  gap: 0.08em;
  margin-left: 0.12em;
}

html.flag-fallback #about .about-flags {
  gap: 0.22em;
  margin-left: 0.2em;
}

#about .about-lede {
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.85;
}

#about .about-lede + .about-lede {
  margin-top: 1rem;
}

#about .about-lede--soft {
  color: var(--ink-muted);
}

/* character sheet: a retro game menu, dark in both themes */
#about .about-sheet {
  position: relative;
  max-width: 38rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem 0.75rem;
  border: 3px solid #e8ecf5;
  border-radius: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #1b1f33 0%, #12141f 100%);
  color: #e8ecf5;
  box-shadow: 0 0 0 3px #12141f, 0 22px 44px rgba(15, 23, 42, 0.24);
}

#about .about-sheet__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid rgba(232, 236, 245, 0.16);
}

#about .about-sheet__avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #e8ecf5;
  image-rendering: pixelated;
  background: #8fe3f2;
}

#about .about-sheet__eyebrow {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #73eff7;
}

#about .about-sheet__name {
  margin-top: 0.2rem;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
}

#about .about-sheet__p1 {
  margin-left: auto;
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  background: #ffcd75;
  color: #1a1c2c;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  animation: about-blink 1.6s steps(2, jump-none) infinite;
}

@keyframes about-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.35; }
}

#about .about-sheet__stats {
  margin: 0.4rem 0 0;
}

#about .about-sheet__stats > div {
  position: relative;
  display: grid;
  grid-template-columns: 8.2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  border-bottom: 1px dashed rgba(148, 176, 194, 0.2);
  border-radius: 4px;
  transition: background 160ms ease;
}

#about .about-sheet__stats > div:last-child {
  border-bottom: none;
}

#about .about-sheet__stats > div::before {
  content: '▶';
  position: absolute;
  left: 0.3rem;
  top: 0.55rem;
  font-size: 0.6rem;
  color: #ffcd75;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

#about .about-sheet__stats > div:hover {
  background: rgba(255, 255, 255, 0.05);
}

#about .about-sheet__stats > div:hover::before,
#about .about-sheet__stats > div:focus-within::before {
  opacity: 1;
  transform: none;
  animation: about-caret 0.9s steps(2, jump-none) infinite;
}

@keyframes about-caret {
  50% { transform: translateX(2px); }
}

#about .about-sheet dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffcd75;
  padding-top: 0.12rem;
}

#about .about-sheet dd {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #e8ecf5;
}

#about .about-sheet__link {
  color: #73eff7;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

#about .about-sheet__link:hover,
#about .about-sheet__link:focus-visible {
  color: #a7f070;
}

#about .about-sheet__link:focus-visible {
  outline: 2px solid #73eff7;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Photo deck                                                        */
/* ------------------------------------------------------------------ */
#about .about-intro__deck {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 7.5rem;
  padding-top: 3.25rem;
}

#about .about-deck {
  width: min(100%, 340px);
  outline: none;
  border-radius: 1rem;
}

#about .about-deck:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 10px;
}

#about .about-deck__stack {
  position: relative;
  width: calc(100% - 28px);
  aspect-ratio: 0.86;
  margin: 0 auto 0 0;
  touch-action: pan-y;
}

#about .about-polaroid {
  --depth: 0;
  --tilt: 0deg;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 12px 12px 0;
  border-radius: 4px;
  background: #fbf8f1;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2), 0 2px 4px rgba(15, 23, 42, 0.08);
  transform: translate(calc(var(--depth) * 10px), calc(var(--depth) * 8px)) rotate(var(--tilt)) scale(calc(1 - var(--depth) * 0.035));
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 260ms ease;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

#about .about-polaroid.is-top {
  touch-action: pan-y;
}

#about .about-polaroid.is-top::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(250, 193, 35, 0.55);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.12);
  z-index: 1;
}

#about .about-polaroid.is-buried {
  opacity: 0;
}

#about .about-polaroid.is-dragging {
  transition: none;
  cursor: grabbing;
}

#about .about-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
}

#about .about-polaroid figcaption {
  padding: 0.8rem 0.25rem 0.95rem;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #3a3f52;
}

#about .about-deck__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

#about .about-deck__btn {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

#about .about-deck__btn:hover,
#about .about-deck__btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent-strong);
}

#about .about-deck__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#about .about-deck__caption {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

#about .about-deck__hint {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* whichever of the deck / portrait is parked stays hidden ([hidden] loses to display: flex otherwise) */
#about .about-intro__deck[hidden],
#about .about-intro__portrait[hidden] {
  display: none;
}

/* ------------------------------------------------------------------ */
/*  Pixel portrait (drawn by about-portrait.js)                       */
/* ------------------------------------------------------------------ */
#about .about-intro__portrait {
  display: flex;
  justify-content: center;
  position: sticky;
  top: 6.5rem;
  padding-top: 2.4rem;
}

#about .about-portrait {
  width: min(100%, 500px);
}

#about .about-portrait__figure {
  margin: 0;
}

/* the JS sets the frame's width so every art pixel lands on whole device pixels */
#about .about-portrait__frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background: #1b1838;
  line-height: 0;
}

#about .about-portrait[data-mode="night"] .about-portrait__frame {
  background: #060818;
}

#about .about-portrait__canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 240 / 300;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

#about .about-portrait__caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
}

#about .about-portrait__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  margin-top: 0.85rem;
}

#about .about-portrait__modes {
  display: inline-flex;
  gap: 0.6rem;
}

#about .about-portrait__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

#about .about-portrait__btn [lang="ja"] {
  font-size: 0.86rem;
}

#about .about-portrait__btn:hover,
#about .about-portrait__btn:focus-visible {
  transform: translateY(-2px);
}

#about .about-portrait__btn:focus-visible {
  outline: 2px dashed var(--px-frame-hover, var(--accent));
  outline-offset: 5px;
}

#about .about-portrait__btn[aria-pressed="true"] {
  background: #1b1838;
  color: #ffd27a;
}

#about .about-portrait[data-mode="night"] .about-portrait__btn[aria-pressed="true"] {
  background: #0e1533;
  color: #c8d4ee;
}

#about .about-portrait__hint {
  margin-top: 0.7rem;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

/* speech bubble over the canvas when you tap me or the robot */
#about .about-portrait__bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: max-content;
  max-width: min(86%, 270px);
  padding: 0.45rem 0.65rem;
  background: #fffdf5;
  color: #1a1c2c;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 4px));
  box-shadow:
    0 -2px 0 0 #1a1c2c,
    0 2px 0 0 #1a1c2c,
    -2px 0 0 0 #1a1c2c,
    2px 0 0 0 #1a1c2c,
    4px 6px 0 0 rgba(26, 28, 44, 0.35);
  transition: opacity 140ms ease, transform 200ms steps(3, end);
}

#about .about-portrait__bubble::after {
  content: '';
  position: absolute;
  left: var(--tail, 50%);
  bottom: -6px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background: #fffdf5;
  box-shadow: 2px 0 0 0 #1a1c2c, -2px 0 0 0 #1a1c2c, 0 2px 0 0 #1a1c2c;
}

#about .about-portrait__bubble.is-on {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 10px));
}

/* ------------------------------------------------------------------ */
/*  World tour                                                        */
/* ------------------------------------------------------------------ */
#about .about-tour {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
}

#about .about-tour__pin {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

#about .about-tour.is-pinned .about-tour__pin {
  position: sticky;
  top: var(--about-pin-top, 96px);
}

#about .about-tour__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2.5rem;
}

#about .about-tour__title {
  margin-top: 0.45rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  font-weight: 900;
  color: var(--ink);
}

#about .about-tour__lede {
  max-width: 36rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

#about .about-tour__fallback {
  font-size: 1.5rem;
  font-weight: 600;
}

#about.about-enhanced .about-tour__fallback {
  display: none;
}

/* flight path */
#about .about-route {
  position: relative;
  height: 74px;
}

#about .about-route__svg {
  position: absolute;
  inset: 0;
  overflow: visible;
}

#about .about-route__todo,
#about .about-route__done {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

#about .about-route__todo {
  stroke: var(--border-strong);
  stroke-dasharray: 1 9;
}

#about .about-route__done {
  stroke: var(--accent);
}

#about .about-route__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 2px solid var(--border-strong);
  background: var(--surface);
  transform: translate(-50%, -50%);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

#about .about-route__pin.is-reached {
  border-color: var(--accent);
  background: var(--accent);
  transform: translate(-50%, -50%) scale(1.1);
}

#about .about-route__flag {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  filter: grayscale(0.7);
  opacity: 0.65;
  transition: filter 200ms ease, opacity 200ms ease;
}

#about .about-route__pin.is-high .about-route__flag {
  top: auto;
  bottom: 14px;
}

#about .about-route__pin.is-reached .about-route__flag {
  filter: none;
  opacity: 1;
}

#about .about-route__plane {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 30px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 5px 4px rgba(15, 23, 42, 0.22));
  will-change: transform;
  z-index: 2;
}

/* cards */
#about .about-tour__viewport {
  margin: -0.75rem -1.25rem -1.25rem;
  padding: 0.75rem 1.25rem 1.5rem;
  overflow-x: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 1.25rem, #000 calc(100% - 1.25rem), transparent 100%);
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

#about .about-tour__viewport::-webkit-scrollbar {
  display: none;
}

#about .about-tour.is-pinned .about-tour__viewport {
  overflow: hidden;
  scroll-snap-type: none;
}

/* iOS Safari won't touch-scroll an overflow container that has a mask, so
   phones and tablets swipe the cards without the edge fade */
@media (hover: none) and (pointer: coarse) {
  #about .about-tour:not(.is-pinned) .about-tour__viewport {
    -webkit-mask-image: none;
    mask-image: none;
    -webkit-overflow-scrolling: touch;
  }
}

#about .about-tour__track {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  width: max-content;
  margin: 0;
  padding: 0.6rem 0.25rem 1rem;
  list-style: none;
  will-change: transform;
}

#about .about-stop {
  --sky-top: #a9dcff;
  --sky-bottom: #f4f9ff;
  --ground: #5fae93;
  position: relative;
  flex: 0 0 clamp(250px, 22vw, 290px);
  scroll-snap-align: center;
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  opacity: 0.72;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
  outline: none;
}

#about .about-stop--wide {
  flex-basis: clamp(300px, 26vw, 340px);
}

#about .about-stop.is-active {
  opacity: 1;
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}

#about .about-stop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

#about .about-stop__scene {
  position: relative;
  height: clamp(168px, 22vh, 196px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 1.1rem 1.1rem 0 0;
  background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
}

html.darkmode #about .about-stop__scene {
  filter: brightness(0.88) saturate(1.05);
}

#about .about-stop__num {
  position: absolute;
  top: 0.55rem;
  left: 0.8rem;
  z-index: 2;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(26, 28, 44, 0.5);
}

#about .about-stop__region {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #1a1c2c;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#about .about-stop--night .about-stop__num {
  color: rgba(255, 255, 255, 0.72);
}

#about .about-stop--night .about-stop__region {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f4f4;
}

#about .about-stop__sprite {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 120px;
  margin-bottom: 10px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

#about .about-stop.is-active .about-stop__sprite {
  transform: translateY(-3px) scale(1.05);
}

#about .about-stop--night .about-stop__sprite {
  filter: drop-shadow(0 0 10px rgba(224, 67, 63, 0.45));
}

#about .about-stop__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about .about-stop__badge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.9rem;
  z-index: 2;
  width: 40px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

#about .about-stop__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 4px, transparent 4px 8px) top / 100% 4px no-repeat,
    var(--ground);
}

/* pixel clouds and stars, built from box-shadow "pixels" */
#about .about-stop__cloud {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    6px 0 0 rgba(255, 255, 255, 0.9), 12px 0 0 rgba(255, 255, 255, 0.9), 18px 0 0 rgba(255, 255, 255, 0.9),
    6px -6px 0 rgba(255, 255, 255, 0.9), 12px -6px 0 rgba(255, 255, 255, 0.9),
    -6px 6px 0 rgba(255, 255, 255, 0.9), 0 6px 0 rgba(255, 255, 255, 0.9), 6px 6px 0 rgba(255, 255, 255, 0.9),
    12px 6px 0 rgba(255, 255, 255, 0.9), 18px 6px 0 rgba(255, 255, 255, 0.9), 24px 6px 0 rgba(255, 255, 255, 0.9);
  opacity: 0.85;
}

#about .about-stop__cloud--1 {
  top: 2.9rem;
  left: 1.3rem;
}

#about .about-stop__cloud--2 {
  top: 4.4rem;
  right: 2.4rem;
  transform: scale(0.7);
}

#about .about-stop.is-active .about-stop__cloud--1 {
  animation: about-drift 9s linear infinite;
}

#about .about-stop.is-active .about-stop__cloud--2 {
  animation: about-drift-small 12s linear infinite;
}

@keyframes about-drift {
  from { transform: translateX(0); }
  50% { transform: translateX(14px); }
  to { transform: translateX(0); }
}

@keyframes about-drift-small {
  from { transform: translateX(0) scale(0.7); }
  50% { transform: translateX(-12px) scale(0.7); }
  to { transform: translateX(0) scale(0.7); }
}

#about .about-stop__star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #fff4c8;
  box-shadow:
    40px 18px 0 #fff4c8, 90px -6px 0 #ffffff, 130px 26px 0 #fff4c8, 170px 4px 0 #ffffff,
    210px 30px 0 #fff4c8, 25px 48px 0 #ffffff, 150px 56px 0 #fff4c8, 230px 70px 0 #ffffff;
}

#about .about-stop__star--1 {
  top: 2.8rem;
  left: 0.8rem;
}

#about .about-stop__star--2 {
  top: 3.6rem;
  left: 3.2rem;
  opacity: 0.6;
}

#about .about-stop.is-active .about-stop__star--2 {
  animation: about-twinkle 2.4s steps(2, jump-none) infinite;
}

@keyframes about-twinkle {
  50% { opacity: 0.15; }
}

#about .about-stop__body {
  position: relative;
  padding: 0.9rem 1.05rem 1.1rem;
}

#about .about-stop__country {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--ink);
}

#about .about-stop__title {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

#about .about-stop__note {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

#about .about-stop__stamp {
  position: absolute;
  right: 0.7rem;
  top: -2.4rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border: 2px solid #e0433f;
  border-radius: 6px;
  outline: 1px dashed rgba(224, 67, 63, 0.6);
  outline-offset: -5px;
  background: rgba(255, 255, 255, 0.92);
  color: #b13e53;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-9deg);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
}

#about .about-stop.is-active .about-stop__stamp {
  animation: about-stamp 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes about-stamp {
  from { transform: rotate(-9deg) scale(1.6); opacity: 0; }
  to { transform: rotate(-9deg) scale(1); opacity: 1; }
}

/* footer: status, dots, hint */
#about .about-tour__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

#about .about-tour__status {
  min-width: 14rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
}

#about .about-tour__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

#about .about-tour__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 3px;
  border: 2px solid var(--border-strong);
  background: transparent;
  transition: width 220ms ease, background 220ms ease, border-color 220ms ease;
}

#about .about-tour__dot:hover {
  border-color: var(--accent);
}

#about .about-tour__dot.is-active {
  width: 28px;
  border-color: var(--accent);
  background: var(--accent);
}

#about .about-tour__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#about .about-tour__hint {
  min-width: 14rem;
  text-align: right;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

/* ------------------------------------------------------------------ */
/*  Side quests                                                       */
/* ------------------------------------------------------------------ */
#about .about-quests {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

#about .about-quests__title {
  max-width: 34ch;
  margin-top: 0.45rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}

#about .about-quests__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

#about .about-quest {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

#about .about-quest:hover,
#about .about-quest.is-hot {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-medium);
}

#about .about-quest__art {
  flex: 0 0 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--tint-a), var(--tint-b));
  box-shadow: inset 0 -4px 0 rgba(26, 28, 44, 0.08);
}

html.darkmode #about .about-quest__art {
  filter: brightness(0.88) saturate(0.95);
}

#about .about-quest__sprite {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#about .about-quest.is-hot .about-quest__sprite--soccer {
  animation: about-kick 760ms cubic-bezier(0.3, 0, 0.6, 1) infinite;
}

@keyframes about-kick {
  0%, 100% { transform: translateY(6px) rotate(0deg) scaleY(0.94); }
  45% { transform: translateY(-10px) rotate(180deg) scaleY(1); }
}

#about .about-quest__body {
  min-width: 0;
}

#about .about-quest h4 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

#about .about-quest p {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.55;
}

#about .about-quest__action {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-strong);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

#about .about-quest__action:hover {
  color: var(--accent);
}

#about .about-quest__action:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ */
/*  Outro                                                             */
/* ------------------------------------------------------------------ */
#about .about-outro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding: 1.3rem 1.5rem;
  border-radius: 1.2rem;
  border: 1px dashed var(--border-strong);
  background: var(--surface-soft);
}

#about .about-outro p {
  flex: 1 1 32rem;
  max-width: 54rem;
  font-size: 0.92rem;
  line-height: 1.75;
}

#about .about-outro__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 0.9rem;
  background: var(--accent-strong);
  color: var(--surface);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

#about .about-outro__cta::after {
  content: '→';
}

#about .about-outro__cta:hover,
#about .about-outro__cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

#about .about-outro__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/*  Responsive                                                        */
/* ------------------------------------------------------------------ */
@media (max-width: 1023px) {
  #about .about-intro {
    grid-template-columns: 1fr;
  }

  #about .about-intro__deck,
  #about .about-intro__portrait {
    position: static;
    padding-top: 0.5rem;
  }

  #about .about-sheet {
    max-width: none;
  }

  #about .about-quests__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about .about-tour__status,
  #about .about-tour__hint {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  #about .about-title {
    font-size: clamp(2.1rem, 9.5vw, 2.6rem);
  }

  #about .about-sheet__stats > div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  #about .about-stop {
    flex-basis: min(78vw, 290px);
  }

  #about .about-route {
    height: 64px;
  }

  #about .about-route__flag {
    font-size: 0.8rem;
  }

  #about .about-route__plane {
    width: 40px;
    height: 25px;
  }

  #about .about-quests__grid {
    grid-template-columns: 1fr;
  }

  #about .about-tour__footer {
    justify-content: center;
  }

  #about .about-tour__status,
  #about .about-tour__hint {
    width: 100%;
    text-align: center;
  }

  #about .about-outro {
    padding: 1.1rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #about .about-sheet__p1,
  #about .about-sheet__stats > div::before,
  #about .about-stop__cloud,
  #about .about-stop__star,
  #about .about-stop__stamp,
  #about .about-quest__sprite {
    animation: none !important;
  }

  #about .about-polaroid,
  #about .about-stop,
  #about .about-stop__sprite {
    transition: none;
  }
}

/* ------------------------------------------------------------------ */
/*  Pinned tour: the panel fills the space under the header and the    */
/*  cards are sized from BOTH window height and width (about three     */
/*  across), so they never balloon on tall windows; the content sits  */
/*  centered in the panel. Phones/swipe mode keep the original sizes.  */
/* ------------------------------------------------------------------ */
#about .about-tour.is-pinned {
  --stop-w: clamp(250px, min((100vh - 420px) * 0.74, 27vw), 440px);
}

#about .about-tour.is-pinned .about-tour__pin {
  height: calc(100vh - var(--about-pin-top, 96px) - 20px);
  justify-content: center;
}

#about .about-tour.is-pinned .about-stop {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--stop-w);
}

#about .about-tour.is-pinned .about-stop--wide {
  flex-basis: calc(var(--stop-w) * 1.18);
}

#about .about-tour.is-pinned .about-stop__scene {
  height: calc(var(--stop-w) * 0.86);
}

#about .about-tour.is-pinned .about-stop__sprite {
  width: auto;
  height: calc(var(--stop-w) * 0.5);
}

#about .about-tour.is-pinned .about-stop__badge {
  width: auto;
  height: calc(var(--stop-w) * 0.18);
}

#about .about-tour.is-pinned .about-stop__country {
  font-size: clamp(1.02rem, calc(var(--stop-w) * 0.04), 1.2rem);
}

#about .about-tour.is-pinned .about-stop__title {
  font-size: clamp(0.82rem, calc(var(--stop-w) * 0.03), 0.92rem);
}

/* photo deck: bigger on tablets and desktops; phones keep the full-width deck */
@media (min-width: 641px) {
  #about .about-deck {
    width: min(100%, clamp(380px, 30vw, 440px));
  }
}

/* breathing room between the flight route and the stop cards */
#about .about-route {
  margin-bottom: 1.6rem;
}
