/* Erika v3 — watercolor Japan journey. 2026 editorial pass:
   frameless typography over the map, per-character blur/opacity reveals.
   NO backdrop-filter anywhere (blur over a live canvas re-rasterises every
   frame — measured 23 FPS cost in v2). */

/* Registered as real color properties so the day↔night theme GLIDES —
   every element using the vars animates, matching the WebGL crossfade. */
@property --paper { syntax: '<color>'; inherits: true; initial-value: #f2f6f7; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #33302c; }
@property --ink-soft { syntax: '<color>'; inherits: true; initial-value: #86837e; }
@property --ink-faint { syntax: '<color>'; inherits: true; initial-value: #bdbab4; }

:root {
  --paper: #f2f6f7; /* white-blue — matches the watery sheet edges */
  --ink: #33302c;
  --ink-soft: #7b7873;
  --ink-faint: #b9b6b0;
  --sakura: #dd93a4;
  --hanko: #c2493f;
  --serif: 'EB Garamond', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}
body {
  transition: --paper 2s ease, --ink 2s ease, --ink-soft 2s ease, --ink-faint 2s ease;
}
body.night {
  --paper: #10151d;
  --ink: #e9e5dc;
  --ink-soft: #a9a6a0;
  --ink-faint: #5a5f6a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  animation: page-in 0.9s ease 0.1s forwards;
}
@keyframes page-in { to { opacity: 1; } }

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- header ---------- */
header {
  position: fixed;
  top: 22px;
  left: 28px;
  right: 28px;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
header > * { pointer-events: auto; }
.brand { font-family: var(--serif); font-size: 22px; }
.brand__dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--hanko);
  vertical-align: super;
}
.header__actions { display: flex; gap: 22px; align-items: center; }
#lang-toggle,
#blog-open,
#contact-open {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  color: var(--ink-soft);
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
#lang-toggle:hover,
#blog-open:hover,
#contact-open:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- time wheel (day/night dial set into the right edge) -------- */
#time-wheel {
  position: fixed;
  right: 0;
  top: 50%;
  width: 168px;
  height: 168px;
  /* idle: sunk into the edge to a faint sliver — swings out when touched */
  transform: translate(76%, -50%);
  opacity: 0.55;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 59;
  touch-action: none; /* the drag spins time, never scrolls the page */
}
#time-wheel:hover,
#time-wheel.dragging,
#time-wheel.show-label {
  transform: translate(50%, -50%);
  opacity: 1;
}
#time-wheel svg {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
#time-wheel.dragging svg { cursor: grabbing; }
#time-wheel .tw-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  color: var(--ink-soft);
  border: none;
  padding: 3px 4px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  /* hidden while idle — the dial itself shows the time; an always-on
     label collided with section kickers (REFERENCE) at top-centre */
  opacity: 0;
  transition: color 0.2s, opacity 0.4s;
}
#time-wheel:hover .tw-label,
#time-wheel.dragging .tw-label,
#time-wheel.show-label .tw-label { opacity: 1; }
#time-wheel .tw-label:hover { color: var(--ink); }
@media (max-width: 720px) {
  #time-wheel { width: 128px; height: 128px; }
  #time-wheel .tw-label { font-size: 9px; }
}
/* one-time welcome note beside the wheel (timewheel.js) */
.tw-hint {
  position: fixed;
  /* below the wheel's midline — at 46% the arrow crossed the mode label */
  top: 57%;
  right: 106px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(12px);
  /* slow drift-in, like everything else on the sheet */
  transition: opacity 1.6s ease, transform 1.6s ease;
  pointer-events: none;
  z-index: 58;
}
.tw-hint.on { opacity: 1; transform: translateX(0); }
.tw-hint svg { flex: none; margin-top: -10px; }
@media (max-width: 720px) {
  .tw-hint { right: 78px; font-size: 14px; max-width: 150px; text-align: right; }
}
#contact-open { color: var(--hanko); border-color: rgba(194, 73, 63, 0.4); }
#contact-open:hover { color: var(--hanko); border-color: var(--hanko); }

/* ---------- journey stops ---------- */
.stop {
  min-height: 108dvh;
  display: flex;
  align-items: center;
  padding: 0 7vw;
}
.stop--hero { min-height: 100dvh; }
.stop[data-stop="services"] { min-height: 78dvh; }

.content { max-width: 460px; }
.content--left  { margin-right: auto; margin-left: 2vw; }
.content--right { margin-left: auto; margin-right: 2vw; }
.content--center { margin: 0 auto; text-align: center; max-width: 620px; }
.content--hero { max-width: 760px; margin-left: 2vw; }

/* ---------- typography ---------- */
.kicker {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--hanko);
  margin-bottom: 22px;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.01em;
}
.hero-sub {
  margin-top: 30px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 42ch;
}
.tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.6vw, 24px);
  color: var(--ink-soft);
  margin-top: 16px;
}
.body {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 44ch;
}
.content--right .body, .content--right .tag { margin-left: 0; }
.note { margin-top: 26px; font-size: 14px; color: var(--ink-soft); }

.scroll-hint {
  margin-top: 64px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 46px;
  margin-top: 14px;
  background: linear-gradient(to bottom, var(--ink-faint), transparent);
  animation: hint-drop 2.4s ease-in-out infinite;
}
@keyframes hint-drop {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  50% { transform: translateY(9px); opacity: 0.35; }
}

/* ---------- services — Erika's skills, brush-stroked ---------- */
.services {
  list-style: none;
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 56px;
  text-align: left;
}
.services li {
  position: relative;
  padding-left: 20px;
}
/* a short vertical brush stroke instead of numbers/frames */
.services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 5px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--hanko), rgba(194, 73, 63, 0.15));
}
.services strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.services span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.45;
  color: var(--ink-soft);
}
.note { text-align: center; }

/* ---------- reference (horizontal testimonial strip) ----------
   The section pins (sticky) and vertical scroll slides the quotes
   sideways (hscroll.js) — five full testimonials, a fraction of the
   page height. reveal.js scrubs their words from horizontal position. */
.stop--reviews {
  display: block;
  min-height: 0;
  padding: 0;
}
.hs-sticky {
  position: relative;
  height: 86dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7dvh;
  overflow: hidden;
}
/* carousel arrows — one tall low-angle stroke hugging the quote block */
.hs-nav button {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  width: 44px; height: 72px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s, opacity 0.3s, transform 0.2s;
}
.hs-prev { left: calc(50% - min(310px, 43vw) - 64px); }
.hs-next { right: calc(50% - min(310px, 43vw) - 64px); }
.hs-nav button:hover:not(:disabled) { color: var(--hanko); }
/* the nudge assumes the desktop translateY base — on touch the sticky
   :hover state made a tapped arrow jump out of line */
@media (hover: hover) {
  .hs-prev:hover:not(:disabled) { transform: translateY(-50%) translateX(-3px); }
  .hs-next:hover:not(:disabled) { transform: translateY(-50%) translateX(3px); }
}
.hs-nav button:disabled { opacity: 0.18; cursor: default; }

.stop--reviews .content--center { margin: 0 auto; flex: none; }
/* "share your experience" — floats at the carousel's foot */
.review-open {
  position: absolute;
  bottom: 3.5dvh;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  color: var(--ink-soft);
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  padding: 4px 2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.review-open:hover { color: var(--hanko); border-color: var(--hanko); }
.quotes--h {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8vw;
  will-change: transform;
  touch-action: pan-y; /* horizontal drags belong to the carousel */
  user-select: none;
  cursor: grab;
}
.quotes--h.is-dragging { cursor: grabbing; }
.quotes--h .quote {
  flex: 0 0 auto;
  width: min(620px, 86vw);
  padding: 0;
  text-align: center;
  will-change: transform, filter, opacity;
}
/* smaller, centred voice — one quote at a time, it needn't shout */
.quotes--h .quote p:not(.quote__stats) {
  font-size: clamp(14.5px, 1.2vw, 17.5px);
  line-height: 1.66;
}
.quotes--h .quote::before {
  position: static;
  display: block;
  height: 52px;
  font-size: 46px;
  line-height: 1;
  margin: 0 auto 6px;
}
.quotes--h .quote cite { margin-top: 16px; }
/* headline above the quote — the traveller's own title for the journey */
.quotes--h .quote .quote__head {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.25;
  margin: 0 0 14px;
}
.quote { position: relative; padding-left: 56px; }
.quote::before {
  content: '„';
  position: absolute;
  left: 0;
  top: -14px;
  font-family: var(--serif);
  font-size: 84px;
  line-height: 1;
  color: var(--sakura);
}

.quote p:not(.quote__stats) {
  font-family: var(--serif);
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.55;
}
.quote cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.quote__stats {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--hanko);
}

/* ---------- contact ---------- */
.cta {
  display: inline-block;
  margin-top: 38px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  padding: 17px 40px;
  border-radius: 999px;
  transition: background-color 0.25s, transform 0.25s;
}
.cta:hover { background: var(--hanko); transform: translateY(-2px); }
.footer-note {
  margin-top: 72px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

/* ---------- reveal animation ----------
   reveal.js wraps chars/words in .rv spans with a stagger index --i.
   Two triggers:
   - SCRUB (default): reveal.js flips `.on` per span as you scroll — the
     stagger comes from the scroll itself (--step is zeroed inline).
   - HERO: visible at load, so it uses a time-staggered entrance keyed by
     the journey's `.is-active` on the hero section. */
.rv-word { display: inline-block; white-space: nowrap; }
.rv {
  display: inline-block;
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.34em);
  transition:
    opacity 0.9s ease,
    filter 0.9s ease,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i) * var(--step, 0.02s));
}
h1 .rv, h2 .rv { --step: 0.045s; }
.hero-sub .rv { --step: 0.018s; }
.rv.on,
.stop--hero.is-active .rv {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}
/* hero fading back out (scrolled past): quick, unstaggered */
.stop--hero:not(.is-active) .rv { transition-delay: 0s; transition-duration: 0.35s; }

.rv-block {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 1s ease;
  transition-delay: calc(var(--i, 0) * 0.12s + 0.3s);
}
.rv-block.on,
.stop--hero.is-active .rv-block { opacity: 1; transform: none; filter: blur(0); }
.rv-block.on { transition-delay: 0s; } /* scrubbed blocks respond immediately */
.stop--hero:not(.is-active) .rv-block { transition-delay: 0s; transition-duration: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv-block {
    transition: opacity 0.3s ease !important;
    transition-delay: 0s !important;
    filter: none !important;
    transform: none !important;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .stop { padding: 0 22px; align-items: flex-end; padding-bottom: 17dvh; }
  .stop--hero { align-items: center; padding-bottom: 0; }
  .content, .content--left, .content--right { margin: 0; max-width: none; width: 100%; }
  .services { grid-template-columns: 1fr; }
  .quote { padding-left: 34px; }
  .quote::before { font-size: 60px; }
  .quote:nth-child(even) { align-self: auto; }
}

/* mobile carousel — MUST follow every base rule it overrides (same
   specificity, later wins) */
@media (max-width: 720px) {
  /* controls leave the overlay: in FLOW below the quote, they can never
     sit on top of a tall testimonial — and they grow for thumbs */
  /* natural flow: title → quote → controls, sized by CONTENT — long
     testimonials just grow the section and the page scrolls. Top padding
     clears the fixed header; no reserved height, no phantom gap below. */
  .stop--reviews { padding: 0 22px 4dvh; }
  .hs-sticky {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    gap: 2.5dvh;
    padding-top: 86px;
    padding-bottom: 0;
  }
  .hs-nav {
    order: 3;
    display: flex;
    justify-content: center;
    gap: 72px;
    margin-top: 6px;
  }
  .hs-nav button { position: static; transform: none; width: 52px; height: 52px; }
  .hs-nav button svg { width: 18px; height: 46px; }
  .review-open {
    order: 4;
    position: static;
    left: auto;
    transform: none;
    margin: 2px auto 0;
    font-size: 13px;
  }
  .content { order: 0; }
  .quotes--h { order: 1; align-items: flex-start; }
  .quotes--h .quote p:not(.quote__stats) { font-size: 16.5px; line-height: 1.62; }
  .quotes--h .quote cite { font-size: 12.5px; }
}

/* ---------- map markers (markers.js) ----------
   The visible pin lives in the 3D scene (a tiny hanko-head pin standing in
   the map); this DOM layer is only the invisible hit area + the hover
   label, hand-set like on an old chart. */
#markers {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.marker {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity;
}
.marker:focus-visible {
  outline: 1px solid rgba(194, 73, 63, 0.7);
  outline-offset: -6px;
}
.marker__label {
  position: absolute;
  left: calc(100% - 6px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  /* readable over any terrain without a box: paper halo */
  text-shadow:
    0 0 6px var(--paper),
    0 0 12px var(--paper),
    0 0 20px var(--paper);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.marker:hover .marker__label,
.marker:focus-visible .marker__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ---------- cloud veil (transitions.js) ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
/* The masking itself is done by the WebGL clouds gathering (map.js
   uVeil) — this blank is only a light calm layer under the contact text. */
.veil__blank {
  position: absolute;
  inset: 0;
  background: var(--paper);
  opacity: 0;
  transition: opacity 2.6s ease;
}
.veil--full .veil__blank { opacity: 0.55; }

/* ---------- overlay cards (detail + quick contact) ---------- */
.detail,
.contact-quick {
  position: fixed;
  z-index: 50;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.detail.is-open,
.contact-quick.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  /* settle in only once the flight has landed */
  transition: opacity 0.9s ease 1.4s, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s;
}
.overlay-close {
  position: absolute;
  top: -6px; right: -4px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: none;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.overlay-close:hover { color: var(--ink); border-color: var(--ink); }

.detail {
  /* the panel is the whole sky (same pattern as the blog panel): the place
     shows top-middle through the padding, the text is a centred column
     below, and long copy scrolls with the NATIVE page scrollbar — never
     boxed into an inner container */
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  transform: translateY(14px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 38dvh 24px 12dvh;
  scrollbar-width: thin;
  /* no frame, no glow — the gathered clouds behind the text are the
     backdrop (map.js boosts cover outside the clear window) */
}
.detail.is-open { transform: none; }
.detail__col {
  max-width: 660px;
  margin: 0 auto;
}
/* fullscreen panel: the close sits below the header row and stays put
   while the copy scrolls (same as the blog panel) */
.detail .overlay-close {
  position: fixed;
  top: 68px;
  right: 26px;
}
.detail__photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: rgba(221, 147, 164, 0.14);
  border: 2px solid rgba(194, 73, 63, 0.55);
  overflow: hidden;
  margin-bottom: 22px;
}
.detail__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.detail__photo i {
  font-family: var(--serif);
  font-style: normal;
  font-size: 38px;
  color: var(--hanko);
}
.detail__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.05;
  margin: 10px 0 14px;
}
.detail__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  /* full card width — the centred column itself is the measure */
  max-width: none;
  white-space: pre-line; /* the place copy carries real paragraph breaks */
}

.contact-quick {
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 14px));
  width: min(460px, 86vw);
  text-align: center;
}
.contact-quick.is-open { transform: translate(-50%, -50%); }
.contact-quick h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  margin: 12px 0 26px;
}
.contact-quick__mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  color: var(--hanko);
  text-decoration: none;
  border-bottom: 1px solid rgba(194, 73, 63, 0.45);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.contact-quick__mail:hover { border-color: var(--hanko); }
.contact-quick__note {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* testimonial form — the contact card carrying a small ink form */
.review-quick { width: min(520px, 88vw); }
.review-quick h3 { margin-bottom: 20px; }
.rq-form { text-align: left; }
.rq-form label { display: block; margin-bottom: 18px; }
.rq-form label span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.rq-form input[type="text"],
.rq-form textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink-faint);
  border-radius: 0;
  padding: 6px 2px;
  resize: vertical;
  transition: border-color 0.2s;
}
.rq-form input[type="text"]:focus,
.rq-form textarea:focus {
  outline: none;
  border-color: var(--hanko);
}
.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* visual validation — a missing required field blushes and shakes */
.rq-form .rq-bad {
  border-bottom-color: var(--hanko) !important;
  animation: rq-shake 0.4s ease;
}
@keyframes rq-shake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
/* minimum-length indicator — a thin loader line that fills toward the
   20-character minimum and quietly leaves once it's met */
.rq-min {
  display: block;
  height: 2px;
  margin-top: 5px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink-faint) 45%, transparent);
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.rq-min i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--hanko);
  transition: width 0.3s ease;
}
.rq-min.done { opacity: 0; }
.rq-short, .rq-error { color: var(--hanko); font-size: 14px; margin-bottom: 14px; }
.rq-send {
  display: block;
  margin: 8px auto 0;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--hanko);
  border: none;
  border-radius: 24px;
  padding: 12px 38px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.rq-send:hover { opacity: 0.88; }
.rq-send:disabled { opacity: 0.5; cursor: default; }
.rq-thanks { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- blog (cloud-deck overlay) ---------- */
/* the panel is the whole sky — full width and height, no horizontal
   scroll ever; the READING COLUMN inside stays at article width */
.blog-panel {
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100dvh;
  max-height: none;
  transform: translateY(14px);
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  padding: 11dvh 24px 12dvh;
  scrollbar-width: thin;
}
.blog-panel.is-open { transform: none; }
/* the fullscreen panel's close sits BELOW the header row (they collided)
   and stays put while the article scrolls */
.blog-panel .overlay-close {
  position: fixed;
  top: 68px;
  right: 26px;
}
.blog-list-view,
.blog-article-view {
  max-width: 680px;
  margin: 0 auto;
}
.blog-panel h3 {
  margin-bottom: 8px;
}
/* hero image — the article's cover, full column width */
.blog-a-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--ink-faint);
  margin: 2px 0 22px;
}
.blog-list { display: flex; flex-direction: column; margin-top: 14px; }
.blog-item {
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--ink-faint);
  padding: 18px 2px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.blog-item h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.2;
  transition: color 0.2s;
}
.blog-item:hover h4 { color: var(--hanko); }
.blog-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.blog-item__body { flex: 1; min-width: 0; }
.blog-item__thumb {
  flex: none;
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--ink-faint);
}
.blog-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.tagchip {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ink-faint);
  border-radius: 20px;
  padding: 2.5px 9px;
  color: var(--ink-soft);
}
.blog-empty { color: var(--ink-soft); font-style: italic; margin-top: 14px; }
.blog-back {
  background: none;
  border: none;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 2px 0;
  margin-bottom: 16px;
  cursor: pointer;
}
.blog-back:hover { color: var(--hanko); }
.blog-a-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  margin: 8px 0 12px;
}
.blog-a-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.blog-a-body p {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.7;
  margin-bottom: 16px;
}
/* photo gallery — masonry columns keep every photo's own aspect ratio */
.blog-gallery {
  columns: 2;
  gap: 12px;
  margin: 6px 0 22px;
}
.blog-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 12px;
  break-inside: avoid;
  border: 1px solid var(--ink-faint);
}
@media (max-width: 540px) {
  .blog-gallery { columns: 1; }
}
.blog-gallery img, .blog-a-hero { cursor: zoom-in; }

/* ---------- lightbox — article photos full-size ---------- */
.lightbox[hidden] { display: none; } /* display:grid would override [hidden] */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(12, 15, 21, 0.9);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: zoom-out;
}
.lightbox.on { opacity: 1; }
.lightbox img {
  max-width: 94vw;
  max-height: 92dvh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  cursor: default;
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  font-family: var(--serif);
  transition: color 0.2s;
}
.lightbox button:hover { color: #fff; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  padding: 20px 22px;
}
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-close {
  top: 18px;
  right: 22px;
  font-size: 30px;
  padding: 10px 14px;
}
@media (max-width: 720px) {
  .blog-panel { padding: 9dvh 18px 10dvh; }
}

/* articles woven into a place detail */
.detail__articles { margin-top: 26px; }
.detail__articles-h {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hanko);
  margin-bottom: 6px;
}
.detail__articles ul { list-style: none; }
.detail__articles button {
  display: block;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}
.detail__articles button:hover { color: var(--hanko); }

/* while exploring (hold-drag pan) the hand grabs the map */
body.is-exploring { cursor: grabbing; }
body.is-exploring main { user-select: none; }

/* while an overlay is open, the page text underneath fades away */
main { transition: opacity 0.9s ease; }
body.is-overlay main { pointer-events: none; opacity: 0; }

@media (max-width: 720px) {
  .detail { padding: 34dvh 22px 10dvh; }
  .detail__photo { width: 72px; height: 72px; }
}
