:root {
  color-scheme: dark;
  --studio-black: #10110f;
  --studio-panel: #181a18;
  --studio-line: rgba(255, 255, 255, .16);
  --studio-muted: #a8aaa5;
  --paper: #f4f0e7;
  --ink: #161713;
  --blue: #1768c5;
  --display: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --reading: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--studio-black); scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--studio-black); color: #fff; font-family: var(--reading); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  background: #fff;
  color: #111;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #8ac5ff; outline-offset: 4px; }

.studio-bar {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto 0;
  min-height: 60px;
  padding: 8px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  background: rgba(12, 13, 11, .97);
  border-bottom: 1px solid var(--studio-line);
}
.studio-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.studio-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .54);
  font-size: 11px;
  letter-spacing: .08em;
}
.studio-brand strong, .studio-brand small { display: block; }
.studio-brand strong { font-size: 11px; letter-spacing: .14em; }
.studio-brand small { margin-top: 3px; color: var(--studio-muted); font-size: 10px; }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--studio-line); }
.mode-switch__button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--studio-muted);
  cursor: pointer;
}
.mode-switch__button.is-active { background: #f0eee9; color: #111; }
.studio-reset {
  justify-self: end;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .52);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.studio-panel {
  position: fixed;
  z-index: 90;
  top: 60px;
  bottom: 0;
  left: 0;
  width: 312px;
  padding: 24px 18px 52px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--studio-panel);
  border-right: 1px solid var(--studio-line);
}
.studio-panel__intro { padding: 0 4px 24px; border-bottom: 1px solid var(--studio-line); }
.studio-label { margin: 0 0 10px; color: #8ebbef; font-size: 10px; letter-spacing: .18em; }
.studio-panel__intro h1 { margin: 0; font: 500 25px/1.35 var(--display); }
.studio-panel__intro > p:last-child { margin: 13px 0 0; color: var(--studio-muted); font-size: 12px; line-height: 1.8; }
.studio-block { padding: 24px 4px; border-bottom: 1px solid var(--studio-line); }
.studio-block__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.studio-block__heading h2 { margin: 0; font-size: 13px; font-weight: 600; }
.studio-block__heading span { color: var(--studio-muted); font-size: 10px; }
.part-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.part-item__select {
  width: 100%;
  min-height: 58px;
  padding: 9px 8px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.part-item.is-selected .part-item__select { border-color: rgba(142, 187, 239, .64); background: rgba(142, 187, 239, .08); }
.part-item__number { color: #8ebbef; font-size: 9px; letter-spacing: .08em; }
.part-item__copy { min-width: 0; display: grid; gap: 3px; }
.part-item__copy strong { font-size: 11px; font-weight: 600; }
.part-item__copy small { overflow: hidden; color: var(--studio-muted); font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.part-item__status { color: #c8cac5; font-size: 9px; }
.part-empty { margin: 0; color: var(--studio-muted); font-size: 11px; line-height: 1.8; }
.field-list { display: grid; gap: 15px; }
.field-list label { display: grid; gap: 7px; }
.field-list label > span { color: #d0d1ce; font-size: 11px; }
.field-list input, .field-list textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 0;
  background: #0e100e;
  color: #fff;
}
.field-list input { min-height: 44px; padding: 10px 11px; }
.field-list textarea { min-height: 82px; padding: 10px 11px; resize: vertical; line-height: 1.7; }
.studio-note ul { margin: 0; padding-left: 1.25em; color: #d5d6d3; font-size: 11px; line-height: 1.9; }
.studio-note p { margin: 14px 0 0; color: var(--studio-muted); font-size: 10px; line-height: 1.75; }
.studio-note a {
  min-height: 44px;
  margin-top: 5px;
  display: flex;
  align-items: center;
  color: #9fc8f6;
  font-size: 11px;
  text-underline-offset: 4px;
}

.studio-preview { min-height: 100vh; padding: 86px 28px 56px 340px; background: #111210; }
.preview-meta {
  max-width: 960px;
  margin: 0 auto 10px;
  display: flex;
  justify-content: space-between;
  color: #777a75;
  font-size: 9px;
  letter-spacing: .12em;
}
body[data-studio-mode="preview"] .studio-panel { display: none; }
body[data-studio-mode="preview"] .studio-preview { padding: 60px 0 0; }
body[data-studio-mode="preview"] .preview-meta { display: none; }
body[data-studio-mode="preview"] .walk-page { max-width: none; }
html[data-presentation="page"] .studio-bar,
html[data-presentation="page"] .studio-panel,
html[data-presentation="page"] .preview-meta { display: none; }
html[data-presentation="page"] .studio-preview { padding: 0; }
html[data-presentation="page"] .walk-page { max-width: none; box-shadow: none; }

.walk-page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  overflow: clip;
  background: var(--paper);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .22);
}
.walk-canvas {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 862 / 1825;
  overflow: hidden;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(38, 36, 31, .035) 0 .7px, transparent .8px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, .42) 0 .8px, transparent .9px);
  background-size: 7px 7px, 11px 11px;
}

.crossing-extension {
  position: absolute;
  z-index: 0;
  top: 18.5%;
  left: -12%;
  width: 126%;
  height: 22%;
  transform: rotate(-14deg);
  transform-origin: center;
  opacity: .62;
  pointer-events: none;
}
.crossing-extension i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4.1%;
  background: rgba(166, 163, 157, .3);
}
.crossing-extension i:nth-child(1) { top: 5%; }
.crossing-extension i:nth-child(2) { top: 29%; }
.crossing-extension i:nth-child(3) { top: 53%; }
.crossing-extension i:nth-child(4) { top: 77%; }

.route {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.route path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route--mobile { display: none; }

.photo { position: absolute; z-index: 2; margin: 0; background: #d9d6ce; }
.photo img { width: 100%; height: auto; }
.photo-fallback {
  display: none;
  place-items: center;
  position: absolute;
  inset: 0;
  padding: 18px;
  background: #d6d2c8;
  color: #292a26;
  font: 500 1.4cqi/1.8 var(--reading);
  text-align: center;
}
.photo.is-image-failed img { visibility: hidden; }
.photo.is-image-failed .photo-fallback { display: grid; }
.photo--crossing { top: 3.65%; left: 27%; width: 41%; }
.photo--light { top: 37.5%; left: 57.5%; width: 26%; }
.photo--photographer { top: 59.2%; left: 7.3%; width: 28.3%; }
.photo--coast { top: 74.3%; left: 10%; width: 76%; }

.creator-label,
.top-note,
.vertical-statement,
.walk-title,
.profile-copy,
.consultation,
.platform-credit { position: absolute; z-index: 5; margin: 0; }

.creator-label,
.top-note,
.vertical-statement {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--display);
  letter-spacing: .12em;
}
.creator-label { top: 2.1%; left: 1.8%; font-size: 1.8cqi; line-height: 1; }
.top-note { top: 1.2%; right: 1.8%; padding-bottom: 5.2cqi; border-right: 1px solid var(--ink); font-size: 1.55cqi; line-height: 1; }

.walk-title {
  top: 14.2%;
  left: 6.5%;
  width: 23%;
  display: grid;
  gap: 2.2cqi;
  font: 500 5.25cqi/1.08 var(--display);
  letter-spacing: .04em;
}
.walk-title span { display: block; width: max-content; }
.walk-title span:nth-child(1) { transform: rotate(-8deg) translateX(1.2cqi); }
.walk-title span:nth-child(2) { transform: rotate(-11deg) translateX(-1cqi); }
.walk-title span:nth-child(3) { transform: rotate(-13deg) translateX(-2.2cqi); }

.vertical-statement {
  top: 43.1%;
  left: 29.6%;
  max-height: 18%;
  font-size: 2.35cqi;
  line-height: 1.55;
  letter-spacing: .08em;
}
.profile-copy {
  top: 66.2%;
  left: 47.8%;
  width: 37%;
  font: 500 2.1cqi/1.95 var(--display);
  letter-spacing: .04em;
  line-break: strict;
}

.consultation { inset: 0; pointer-events: none; }
.consultation a {
  position: absolute;
  right: 7.8%;
  top: 94.5%;
  padding: .65cqi 0;
  color: var(--blue);
  font: 500 2cqi/1.3 var(--display);
  text-decoration: none;
  pointer-events: auto;
}
.consultation a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right;
}
.consultation a::before {
  content: "";
  position: absolute;
  inset: -6px -8px;
}
.consultation p { display: none; }
.platform-credit { left: 3.6%; bottom: 1.5%; font: 500 .95cqi/1 var(--reading); letter-spacing: .02em; }

.noscript-note {
  position: fixed;
  z-index: 1000;
  right: 12px;
  bottom: 12px;
  margin: 0;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  font-size: 12px;
}

@media (max-width: 760px) {
  .studio-bar {
    min-height: 58px;
    padding: 7px 10px;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .studio-brand__mark { width: 31px; height: 31px; }
  .studio-brand strong { font-size: 9px; }
  .studio-brand small { font-size: 8px; }
  .mode-switch__button { min-height: 44px; padding: 0 10px; font-size: 11px; }
  .studio-reset { display: none; }
  .studio-panel {
    position: relative;
    top: auto;
    bottom: auto;
    width: auto;
    max-height: none;
    margin-top: 58px;
    padding: 20px 16px 28px;
    border-right: 0;
    border-bottom: 1px solid var(--studio-line);
  }
  .studio-preview { padding: 22px 0 40px; }
  .preview-meta { padding: 0 12px; }
  body[data-studio-mode="preview"] .studio-preview { padding-top: 58px; }
  html[data-presentation="page"] .studio-preview { padding-top: 54px; }
  body[data-studio-mode="preview"] .walk-page,
  html[data-presentation="page"] .walk-page { max-width: none; }

  .walk-canvas { height: 1846px; aspect-ratio: auto; container-type: normal; }
  .crossing-extension { display: none; }
  .route--desktop { display: none; }
  .route--mobile { display: block; }
  .route path { stroke-width: 1.05; }

  .creator-label { top: 37px; left: 26px; font-size: 14px; }
  .top-note { display: none; }
  .walk-title {
    top: 202px;
    left: 91px;
    width: 116px;
    gap: 20px;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: .05em;
  }
  .walk-title span:nth-child(n) { transform: none; }

  .photo--crossing { top: 50px; left: 52.7%; width: 40.5%; }
  .vertical-statement {
    top: 545px;
    left: 28px;
    max-height: 270px;
    font-size: 16px;
    line-height: 1.55;
  }
  .photo--light { top: 670px; left: 24%; width: 28%; }
  .photo--photographer { top: 1094px; left: 62.2%; width: 31%; }
  .profile-copy {
    top: 1058px;
    left: 23.5%;
    width: 43%;
    font-size: 15px;
    line-height: 1.9;
    letter-spacing: .03em;
  }
  .photo--coast { top: 1400px; left: 6.2%; width: 72%; }
  .photo-fallback { font-size: 11px; }

  .consultation a {
    top: 1452px;
    right: 15px;
    min-height: 44px;
    padding: 7px 0 0;
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    white-space: nowrap;
  }
  .consultation a::before { inset: 0; }
  .consultation a::after { bottom: 8px; }
  .consultation p {
    display: block;
    position: absolute;
    top: 1628px;
    left: 26px;
    width: 330px;
    margin: 0;
    font: 500 14px/1.8 var(--display);
    letter-spacing: .03em;
  }
  .platform-credit { left: 26px; bottom: 40px; font-size: 8px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .studio-preview { padding-left: 324px; padding-right: 16px; }
  .studio-panel { width: 296px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
