:root {
  --bg: #f7f9fa;
  --surface: #ecf0f2;
  --ink: #1f3038;
  --ink-deep: #16242a;
  --muted: #5d6b72;
  --accent: #0d7480;
  --accent-ink: #ffffff;
  --bad: #b3261e;
  --bad-field: #fbe9e7;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);

  --m: clamp(16px, 2.8vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Epilogue", system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.h-small { font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.h-mid { font-size: var(--step-head); font-weight: 900; line-height: 0.95; letter-spacing: -0.04em; text-wrap: balance; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.price__promise a { text-underline-offset: 3px; }

/* Buttons: square, flat */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font: 500 var(--step-body)/1 "Epilogue", sans-serif;
  text-decoration: none; border: 2px solid transparent; border-radius: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-deep); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #0a5f69; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }

/* HERO */
.hero {
  min-height: 100svh;
  background: var(--accent);
  color: var(--bg);
  padding: 24px var(--m) 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
}
.hero__top { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.mono { font-weight: 900; font-size: 20px; text-decoration: none; letter-spacing: -0.04em; }
.hero__links { display: flex; gap: 24px; }
.hero__links a { text-decoration: none; }
.hero__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero__name {
  align-self: start;
  margin-top: 11vh;
  font-weight: 900;
  font-size: clamp(110px, 17vw, 270px);
  line-height: 0.84;
  letter-spacing: -0.045em;
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.line__in { display: block; }
.line--dark { color: #0a1418; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.hero__kw { font-size: var(--step-body); font-weight: 900; color: var(--bg); margin-bottom: 10px; letter-spacing: 0; }
.hero__lead { max-width: 30ch; font-size: var(--step-lead); line-height: 1.3; font-weight: 500; }

/* SHOWCASE */
.show { padding: var(--gap) var(--m) 0; height: clamp(640px, 82vh, 900px); overflow: hidden; }
.show__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.show__head h2 { grid-column: 1 / 6; }
.show__text { grid-column: 7 / 13; max-width: 60ch; }
.show__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10vh; }
.spec__word {
  display: block; font-weight: 900; line-height: 0.8; letter-spacing: -0.06em;
  font-size: clamp(120px, 18vw, 320px);
}
.spec:first-child .spec__word { font-weight: 400; letter-spacing: -0.02em; color: var(--muted); }

/* MAP */
.map { background: var(--surface); padding: var(--gap) var(--m); }
.map__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.map__head h2 { grid-column: 1 / 8; }
.map__intro { grid-column: 8 / 13; max-width: 40ch; }
.map__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 56px 0 24px; }
.map__tabs button {
  font: 500 16px/1 "Epilogue", sans-serif; color: var(--ink);
  background: var(--bg); border: 0; border-radius: 0; padding: 14px 20px; min-height: 48px; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.map__tabs button:hover { transform: translateY(-2px); }
.map__tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.map__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.map__canvas { background: var(--bg); padding: 16px; min-height: 420px; }
.map__canvas svg { width: 100%; height: auto; display: block; }
.map__canvas .node { cursor: default; }
.map__canvas .node--bad { cursor: pointer; }
.map__canvas .node rect { transition: fill .3s, stroke .3s; }
.map__canvas .node--bad:hover rect, .map__canvas .node--bad:focus-visible rect { stroke-width: 3.5; }
.map__canvas .node--sel rect { stroke-width: 4; }
.map__canvas .lane-label { font: 900 20px "Epilogue", sans-serif; fill: var(--ink); letter-spacing: -0.02em; }
.map__canvas .node text { font: 500 16px "Epilogue", sans-serif; fill: var(--ink); pointer-events: none; }
.map__canvas .edge { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.map__canvas .lane-band { fill: var(--surface); }
.map__canvas .lane-band--alt { fill: var(--bg); }
.map__list { display: none; }

.map__panel { background: var(--ink); color: var(--bg); padding: 28px; position: sticky; top: 24px; }
.panel__trade { font-size: 15px; color: #a9bcc2; }
.panel__step { font-size: 26px; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; margin: 8px 0 20px; min-height: 2.1em; }
.panel__rows > div { margin-bottom: 16px; }
.panel__rows dt { font-size: 15px; color: #a9bcc2; }
.panel__rows dd { font-size: 16px; line-height: 1.45; }
.panel__sum { background: var(--ink-deep); margin: 24px -28px 0; padding: 24px 28px; }
.sum__big { font-size: 26px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.sum__money { font-size: 16px; margin: 10px 0 12px; }
.sum__rate { cursor: pointer; }
.panel__sum input[type=range] { width: 100%; accent-color: #5fc4cf; margin-bottom: 18px; }
.panel__sum .btn--line { color: var(--bg); border-color: var(--bg); width: 100%; }
.panel__sum .btn--line:hover { background: var(--bg); color: var(--ink); }
.panel__note { font-size: 14px; color: #a9bcc2; margin-top: 16px; }
.bump { animation: bump .45s var(--ease); display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* SLIP */
.slip-sec {
  background: var(--ink); color: var(--bg);
  padding: var(--gap) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start;
}
.slip-sec__text { grid-column: 1 / 6; }
.slip-sec__p { max-width: 30ch; margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; }
.slip-sec__p--soft { color: #a9bcc2; font-size: var(--step-body); }
.ways { margin-top: 40px; background: var(--ink-deep); padding: 28px; max-width: 46ch; }
.ways__h { font-size: var(--step-lead); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 14px; }
.ways p { font-size: 17px; line-height: 1.5; }
.ways p + p { margin-top: 12px; }
.ways a { color: var(--bg); text-underline-offset: 3px; }
.ways__wa { color: #a9bcc2; }
.slip {
  grid-column: 7 / 12; max-width: 480px; width: 100%;
  background: var(--bg); color: var(--ink);
  padding: 32px 28px 56px;
  font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
}
.slip__title { font-size: 15px; color: var(--muted); }
.slip__day { font-size: 16px; font-weight: 900; margin-top: 28px; margin-bottom: 6px; }
.slip__row { display: flex; align-items: baseline; gap: 8px; font-size: 16px; padding: 3px 0; }
.slip__row i { flex: 1; height: 4px; align-self: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%235d6b72'/%3E%3C/svg%3E"); background-size: 8px 4px; background-repeat: repeat-x; opacity: .6; }
.slip__row span:last-child { white-space: nowrap; }
.slip__total { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; margin: 28px -28px 0; padding: 0 28px; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 16px; }

/* AGENTS */
.agents { padding: var(--gap) var(--m); }
.agents__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: first baseline; margin-bottom: 0.35em; }
.agents__name { grid-column: 1 / 9; font-size: clamp(40px, 5.6vw, 92px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; transition: color .25s; }
.agents__name--soft { color: var(--muted); }
.agents__row p { grid-column: 9 / 13; font-size: 17px; max-width: 36ch; }
.agents__list:hover .agents__row:not(.agents__row--head) .agents__name { color: var(--muted); }
.agents__list .agents__row:not(.agents__row--head):hover .agents__name { color: var(--accent); }
.agents__own { margin-top: 64px; font-size: var(--step-lead); max-width: 34ch; margin-left: auto; font-weight: 500; }

/* ARCHIVE */
.archive { background: var(--surface); padding: var(--gap) var(--m); }
.archive__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 64px; }
.archive__head h2 { grid-column: 1 / 7; }
.archive__p { grid-column: 8 / 13; max-width: 42ch; }
.arch figcaption { font-size: 16px; margin-top: 12px; max-width: 46ch; }
.arch__frame { overflow: hidden; background: var(--ink); }
.arch__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 1.2s var(--ease); }
.arch:hover .arch__frame img { transform: scale(1.03); }
.arch--wide { max-width: 1100px; }
.arch--wide .arch__frame { aspect-ratio: 2 / 1; }
.arch__frame--stereo img { width: 208%; max-width: none; object-position: left center; }
.archive__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; margin-top: 72px; }
.archive__grid .arch { grid-column: span 4; }
.archive__grid .arch--tall { grid-column: 1 / 6; grid-row: span 2; }
.archive__grid .arch--tall .arch__frame { aspect-ratio: 4 / 5; }
.archive__grid .arch:not(.arch--tall) { grid-column: span 7; }
.archive__grid .arch:not(.arch--tall) .arch__frame { aspect-ratio: 16 / 9; }
.archive__grid .arch:nth-child(4) { grid-column: 6 / 13; }
.arch__frame--drift img { transform: scale(1.12); transition: none; will-change: transform; }

/* PRICING */
.price { padding: var(--gap) var(--m); min-height: 80svh; }
.price__line { font-size: clamp(48px, 7.4vw, 124px); font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; max-width: 13ch; }
.price__tag { background: var(--accent); color: var(--accent-ink); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.price__foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-top: 64px; }
.price__sub { grid-column: 1 / 7; font-size: 20px; max-width: 46ch; }
.price__foot .btn { grid-column: 10 / 13; justify-self: end; }
.price__table { width: 100%; border-collapse: collapse; margin-top: 120px; font-size: 17px; }
.price__table caption { text-align: left; margin-bottom: 20px; }
.price__table tr { background: var(--surface); }
.price__table tr:nth-child(even) { background: var(--bg); }
.price__table th, .price__table td { padding: 20px 16px; text-align: left; vertical-align: baseline; }
.price__table th { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.price__table .num { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__table a { font-weight: 500; text-underline-offset: 4px; }
.price__table a:hover { color: var(--accent); }
.price__promise { margin-top: 40px; max-width: 60ch; }

/* FAQ */
.faq { background: var(--surface); padding: var(--gap) var(--m); }
.faq__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: first baseline; margin-bottom: 80px; }
.faq__row:last-child { margin-bottom: 0; }
.faq__q { grid-column: 1 / 7; font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; }
.faq__q--soft { color: var(--muted); }
.faq__row p { grid-column: 8 / 13; max-width: 40ch; line-height: 1.55; }

/* CLOSE */
.close {
  background: var(--ink); color: var(--bg);
  min-height: 90svh; padding: var(--gap) var(--m) 40px;
  display: grid; grid-template-rows: 1fr auto;
}
.close__h { font-size: clamp(72px, 10vw, 170px); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; max-width: 9ch; }
.close__foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; padding-top: 80px; }
.close__foot p { grid-column: 1 / 6; font-size: 20px; max-width: 40ch; }
.close__foot .btn { grid-column: 10 / 13; justify-self: end; min-height: 56px; }

/* FOOTER */
.foot {
  background: var(--ink-deep); color: var(--bg);
  min-height: 100svh; padding: 40px var(--m) 24px;
  display: grid; grid-template-rows: auto 1fr auto auto;
}
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 16px; }
.foot__cols > div { display: flex; flex-direction: column; gap: 6px; }
.foot__cols a, .foot__cols span { color: #a9bcc2; text-decoration: none; }
.foot__cols a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 4px; }
.foot__h { color: var(--bg); font-weight: 500; }
.foot__mark { grid-row: 3; align-self: end; }
.foot__mark svg { width: 100%; height: auto; display: block; }
.foot__mark text { font: 900 150px "Epilogue", sans-serif; fill: var(--bg); letter-spacing: -0.04em; }
.foot__legal { grid-row: 4; font-size: 13px; color: #a9bcc2; margin-top: 20px; max-width: 75ch; }

.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 20;
  background: var(--ink); color: var(--bg); text-decoration: none;
  font-weight: 500; font-size: 15px; padding: 14px 18px; min-height: 48px;
  transition: transform .35s var(--ease), background-color .25s, opacity .35s;
}
.js .wa:not(.on) { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wa:hover { transform: translateY(-3px); background: var(--accent); }

/* MOTION */
.js .line__in { transform: translateY(105%); }
.js.ready .line__in { transform: none; transition: transform .9s var(--ease); }
.js.ready .line:nth-child(2) .line__in { transition-delay: .11s; }
.js .reveal-late { opacity: 0; transform: translateY(16px); }
.js.ready .reveal-late { opacity: 1; transform: none; transition: opacity .7s .5s, transform .7s .5s var(--ease); }
.js [data-rise] { opacity: 0; transform: translateY(24px); }
.js [data-rise].in { opacity: 1; transform: none; transition: opacity .7s var(--d, 0s), transform .8s var(--d, 0s) var(--ease); }
.js .spec__word { transform: translateY(18%); opacity: 0; }
.js .spec.in .spec__word { transform: none; opacity: 1; transition: transform 1.1s var(--ease), opacity .8s; }
.js .spec--b.in .spec__word { transition-delay: .15s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .line__in, .js .reveal-late, .js [data-rise], .js .spec__word { transform: none !important; opacity: 1 !important; transition: none !important; }
  .arch__frame--drift img { transform: none !important; }
  .bump { animation: none; }
}

/* TABLET */
@media (max-width: 1080px) {
  .map__body { grid-template-columns: 1fr; }
  .map__panel { position: static; }
}

/* PHONE */
@media (max-width: 820px) {
  .map__canvas svg { display: none; }
  .map__list { display: block; }
  .map__list h3 { font-size: 20px; font-weight: 900; margin: 20px 0 8px; letter-spacing: -0.02em; }
  .map__list h3:first-child { margin-top: 0; }
  .map__list ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .map__list button, .map__list span.ok { display: block; width: 100%; text-align: left; font: 500 16px/1.3 "Epilogue", sans-serif; padding: 12px 14px; min-height: 48px; border: 0; border-radius: 0; color: var(--ink); background: var(--surface); }
  .map__list button { background: var(--bad-field); border-left: 4px solid var(--bad); cursor: pointer; }
  .map__list button.is-fixed { background: #e2f1f2; border-left-color: var(--accent); }
  .map__list button.is-sel { outline: 2px solid var(--ink); outline-offset: -2px; }
  .map__canvas { min-height: 0; }
}
@media (max-width: 720px) {
  :root { --gap: 96px; }
  .hero { padding: 20px 16px 24px; }
  .hero__links a:not(:last-child) { display: none; }
  .hero__name { font-size: 25vw; margin-top: 16vh; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__lead { font-size: 17px; }
  .show { height: auto; overflow: visible; padding-bottom: 0; }
  .show__head, .map__head, .archive__head, .price__foot, .close__foot, .slip-sec { grid-template-columns: 1fr; }
  .show__head > *, .map__head > *, .archive__head > *, .price__foot > *, .close__foot > *, .slip-sec > * { grid-column: 1 / -1 !important; }
  .show__text { margin-top: 16px; }
  .show__pair { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .spec { height: 38svh; overflow: hidden; padding: 16px; background: var(--surface); }
  .spec--b { background: var(--ink); color: var(--bg); }
  .spec__word { font-size: 30vw; }
  .slip { max-width: none; padding: 28px 20px 52px; }
  .slip__total { margin: 28px -20px 0; padding: 0 20px; }
  .agents__row { grid-template-columns: 1fr; margin-bottom: 28px; }
  .agents__name { grid-column: 1; font-size: 11vw; }
  .agents__row p { grid-column: 1; padding-left: 16px; font-size: 16px; margin-top: 4px; }
  .agents__own { margin-left: 0; }
  .archive__grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .archive__grid .arch, .archive__grid .arch--tall, .archive__grid .arch:nth-child(4), .archive__grid .arch:not(.arch--tall) { grid-column: 1 !important; grid-row: auto; }
  .arch--wide .arch__frame { aspect-ratio: 4 / 3; }
  .price__line { font-size: 13vw; }
  .price__foot .btn, .close__foot .btn { width: 100%; justify-self: stretch; }
  .price__sub { font-size: 17px; }
  .price__table { margin-top: 80px; }
  .price__table tr { display: grid; grid-template-columns: 1fr auto; padding: 16px; gap: 4px 12px; }
  .price__table th, .price__table td { padding: 0; }
  .price__table td:nth-of-type(1) { grid-column: 1 / -1; grid-row: 2; font-size: 16px; }
  .price__table .num { grid-column: 2; grid-row: 1; }
  .price__table td:last-child { grid-row: 3; }
  .faq__row { grid-template-columns: 1fr; margin-bottom: 56px; }
  .faq__q { grid-column: 1; font-size: 24px; }
  .faq__row p { grid-column: 1; margin-top: 12px; }
  .close { min-height: 80svh; padding-bottom: 24px; }
  .close__h { font-size: 16vw; }
  .close__foot p { font-size: 17px; }
  .foot__cols { grid-template-columns: 1fr 1fr; row-gap: 32px; font-size: 15px; }
  .wa { padding: 12px 14px; font-size: 14px; }
}
