/* Kaitu 開途 — the About page: the services panels' tints, and "From the first conversation to the first day" — the
   live papercraft of a family's move above a cut-paper road that unrolls across the page through each stage
   (down it, on phones). Nothing sits beside the road. Script: /assets/js/plan-road.js. */
:root {
  --car: #EFE2C8; --car-ink: #8A5A10;
  --bus: #EFD9CF; --bus-ink: #8E3F2A;
  --adm: #D9E6DC; --adm-ink: var(--jade);
  --res: #D8DFEA; --res-ink: var(--indigo);
  --cit: var(--seal-tint); --cit-ink: var(--seal-deep);
  --mov: var(--paper-3); --mov-ink: var(--ink-2);
}
/* services panels: each wears its practice's paper */
.values--services .value { background: var(--tint); border-color: transparent; box-shadow: var(--shadow-1); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.values--services .value:nth-child(1) { --tint: var(--adm); --tint-ink: var(--adm-ink); }
.values--services .value:nth-child(2) { --tint: var(--res); --tint-ink: var(--res-ink); }
.values--services .value:nth-child(3) { --tint: var(--car); --tint-ink: var(--car-ink); }
.values--services .value:nth-child(4) { --tint: var(--bus); --tint-ink: var(--bus-ink); }
.values--services .value:nth-child(5) { --tint: var(--cit); --tint-ink: var(--cit-ink); }
.values--services .value:nth-child(6) { --tint: var(--mov); --tint-ink: var(--ink); }
.values--services .value:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.values--services .value .value__k { color: var(--tint-ink); opacity: .22; }
.values--services .value:hover .value__k { opacity: .4; }

/* who we guide: the list, numbered by the cut-paper road, beside the papercraft of a family's move */
.who { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.who__text .eyebrow { margin-bottom: 22px; }
.who__text .lede { margin-top: clamp(14px, 1.6vw, 22px); max-width: 48ch; }
.who__art { position: relative; aspect-ratio: 5 / 4; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-paper); background: #DCE5D6; }
.who__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
@media (max-width: 900px) { .who { grid-template-columns: minmax(0, 1fr); } }
/* the list, numbered by the road: one marker beside each item, the road winding down through them */
.road.who__road { --k: .74; margin-top: clamp(22px, 3vw, 34px); }
.who__road .road__stops { height: auto; display: grid; padding: 0; justify-content: stretch; }
.who__road .stop { height: auto; padding-left: calc(var(--lane) + 14px); }
.who__road .stop__node { top: 50%; margin-top: calc(-20px * var(--k)); }
.who__item { display: grid; grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.who__road .stop:last-child .who__item { border-bottom: 1px solid var(--line); }
.who__item b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); line-height: 1.25; }
@media (max-width: 520px) { .who__item { grid-template-columns: minmax(0, 1fr); gap: 2px; } .road.who__road { --k: .62; } }

/* the road: the original vertical cut-paper road — its markup and script — with every measure scaled by one factor
   (--k: its lane of 96px becomes 74px), three markers so its bends stay long and gentle, and its shadow drawn whole
   (both edges, every bend: see plan-road.js) */
.road { --k: .77; --lane: calc(96px * var(--k)); position: relative; }
.road__svg { position: absolute; left: 0; top: 0; width: var(--lane); height: 100%; overflow: visible; pointer-events: none; }
.road__edge { fill: none; stroke: #BBA985; stroke-width: calc(36px * var(--k)); stroke-linecap: round; stroke-linejoin: round; }
.road__bed { fill: none; stroke: #DCCFB6; stroke-width: calc(30px * var(--k)); stroke-linecap: round; stroke-linejoin: round; }
.road__dash { fill: none; stroke: var(--card); stroke-width: calc(3px * var(--k)); stroke-dasharray: calc(10px * var(--k)) calc(12px * var(--k)); stroke-linecap: round; }
.road__stops { list-style: none; margin: 0; padding: calc(14px * var(--k)) 0; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.stop { position: relative; height: calc(40px * var(--k)); }
.stop__node { position: absolute; top: 0; width: calc(40px * var(--k)); height: calc(40px * var(--k)); margin-left: calc(-20px * var(--k)); border-radius: 50%; background: var(--seal); color: #fff; display: grid; place-items: center; font: 500 calc(12px * var(--k))/1 var(--f-mono); box-shadow: 0 0 0 calc(5px * var(--k)) var(--card), 0 calc(4px * var(--k)) calc(10px * var(--k)) calc(-2px * var(--k)) rgba(26,23,18,.35); z-index: 1; }
.stop--end .stop__node { background: var(--ink); font-family: var(--f-cjk); font-weight: 900; font-size: calc(15px * var(--k)); }
