/* Cleaners Connection — "The line map". Transit-diagram clarity: coloured service lines, stations, crisp white. */
:root {
  --surface: #FAFAF7;
  --ink: #14171A;
  --brand: #1D3557;
  --l-blue: #0072CE;
  --l-red: #E03C31;
  --l-green: #00A651;
  --l-amber: #F6A800;
  --cta: #6A1B9A;
  --muted: #4B525A;
  --rule: #E3E3DD;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: 'Red Hat Display', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; }
h2 { font-size: clamp(36px, 9.4vw, 76px); font-weight: 800; line-height: .98; }
:focus-visible { outline: 3px solid var(--l-blue); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.c-blue { --c: var(--l-blue); } .c-red { --c: var(--l-red); } .c-green { --c: var(--l-green); } .c-amber { --c: var(--l-amber); }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 700 13px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eb-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); flex: none; }
.tag { display: inline-block; font: 700 12.5px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 4px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: rgb(250 250 247 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-txt { font: 500 18px/1 var(--display); letter-spacing: -.01em; }
.brand-txt b { font-weight: 800; }
.nav { display: none; }
.top-call { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); text-decoration: none; font: 700 15px/1 var(--display); }
.top-call span { display: none; }
@media (min-width: 900px) {
  .top { padding: 8px 32px; }
  .nav { display: flex; gap: 4px; margin-left: 30px; }
  .nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; text-decoration: none; font: 600 15px/1 var(--display); border-radius: 999px; }
  .nav a:hover { background: #EEEEE8; }
  .top-call span { display: inline; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; font: 700 17px/1 var(--display); text-decoration: none; cursor: pointer; transition: transform .3s var(--ease), background .3s var(--ease); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: #57137F; transform: translateY(-2px); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: #EEEEE8; }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #E8EDF4; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- hero: copy + map ---------- */
.hero { display: grid; gap: 40px; padding: 28px 16px 60px; max-width: 1280px; margin: 0 auto; }
.hero h1 { font-size: clamp(46px, 12.6vw, 104px); font-weight: 900; line-height: .92; letter-spacing: -.04em; }
.lede { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 44ch; }
.platform { position: relative; margin: 0; border-radius: 18px; overflow: hidden; background: #EDEDE7; }
.platform img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 701px) { .platform img { aspect-ratio: 16 / 10; } }
.sign { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--ink); font: 700 15px/1.1 var(--display); padding: 10px 14px; border-radius: 8px; box-shadow: 0 10px 24px -14px rgb(20 23 26 / .6); }
.sign i, .pick i, .line-pick i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.sign-lines { display: inline-flex; }
.sign-lines i { margin-left: -4px; box-shadow: 0 0 0 2px #fff; }
.sign-lines i:first-child { margin-left: 0; }
.map-wrap { position: relative; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pick button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; border: 2px solid var(--rule); background: #fff; color: var(--ink); font: 700 15px/1 var(--display); cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.pick button:hover { border-color: var(--ink); }
.pick button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick button[aria-pressed="true"] i { box-shadow: 0 0 0 3px #fff; }
.map { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; overflow: visible; font-family: var(--display); }
.mgrid path { stroke: rgb(20 23 26 / .06); stroke-width: 1; fill: none; }
.ln { transition: opacity .5s var(--ease); }
.l-shirts { --c: var(--l-blue); } .l-suits { --c: var(--l-red); } .l-alter { --c: var(--l-green); } .l-house { --c: var(--l-amber); }
.trk { fill: none; stroke: var(--c); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-width .4s var(--ease); }
.st { fill: #fff; stroke: var(--c); stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.lbl { font-size: 14px; font-weight: 700; fill: var(--ink); transition: opacity .4s var(--ease); }
.hub rect { fill: #fff; stroke: var(--ink); stroke-width: 3.5; }
.hub text { font-size: 16px; font-weight: 800; fill: var(--ink); }
html.js .trk { animation: draw 1.6s var(--ease) both; }
html.js .l-suits .trk { animation-delay: .15s; } html.js .l-alter .trk { animation-delay: .3s; } html.js .l-house .trk { animation-delay: .45s; }
@keyframes draw { from { stroke-dashoffset: 1; } }
html.js .st { animation: pop .6s var(--ease) both; animation-delay: 1.1s; }
html.js .l-suits .st { animation-delay: 1.25s; } html.js .l-alter .st { animation-delay: 1.4s; } html.js .l-house .st { animation-delay: 1.55s; }
@keyframes pop { from { transform: scale(0); } }
.map[data-sel] .ln { opacity: .13; }
.map[data-sel="shirts"] .l-shirts, .map[data-sel="suits"] .l-suits, .map[data-sel="alter"] .l-alter, .map[data-sel="house"] .l-house { opacity: 1; }
.map[data-sel="shirts"] .l-shirts .trk, .map[data-sel="suits"] .l-suits .trk, .map[data-sel="alter"] .l-alter .trk, .map[data-sel="house"] .l-house .trk { stroke-width: 12; }
.train { fill: #fff; stroke: var(--ink); stroke-width: 3.5; opacity: 0; pointer-events: none; }
.map.has-train .train { opacity: 1; animation: ride 5.5s linear infinite; }
@keyframes ride { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.map-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: start; gap: 64px; padding: 54px 32px 90px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .platform { grid-column: 1; grid-row: 2; }
  .map-wrap { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 90px; }
  .map { max-width: 520px; }
  .pick { justify-content: center; }
}

/* ---------- lines (route panel) ---------- */
.lines { padding: 70px 16px 80px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--rule); }
.lines-head { margin-bottom: 30px; }
.pick-b { margin: 22px 0 0; }
html.js .route:not(.on) { display: none; }
.route { --c: var(--l-blue); display: grid; gap: 26px; margin-bottom: 40px; }
html.js .route.on { animation: slide .7s var(--ease); }
@keyframes slide { from { opacity: 0; transform: translateY(16px); } }
.r-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: #fff; box-shadow: inset 6px 0 0 var(--c), 0 1px 0 var(--rule); }
.r-bullet { flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 900 24px/1 var(--display); text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.r-head h3 { font-size: clamp(24px, 6vw, 34px); font-weight: 800; }
.r-meta { color: var(--muted); font-size: 16px; margin-top: 4px; }
.r-meta b { color: var(--ink); }
.strip { position: relative; list-style: none; margin: 0; padding: 6px 0; }
.strip::before, .strip::after { content: ''; position: absolute; left: 15px; top: 26px; bottom: 26px; width: 8px; border-radius: 4px; }
.strip::before { background: #E8E8E2; }
.strip::after { background: var(--c); transform-origin: top; transform: scaleY(clamp(0, (var(--p, 1) - .12) * 2.4, 1)); }
.strip li { position: relative; z-index: 1; display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: start; padding: 12px 0; }
.sd { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 7px solid var(--c); margin-top: -4px; }
.strip li:first-child .sd, .strip li:last-child .sd { border-color: var(--ink); border-width: 8px; }
.strip b { display: block; font: 800 20px/1.2 var(--display); }
.strip div span { display: block; color: var(--muted); font-size: 16px; }
.strip em { font: 700 14px/1.2 var(--display); font-style: normal; background: #EEEEE8; padding: 6px 9px; border-radius: 6px; white-space: nowrap; }
html.js .strip li[data-reveal] .sd { transform: scale(.2); transition: transform .7s var(--ease); }
html.js .strip li[data-reveal].is-in .sd { transform: none; }
html.js .strip li[data-reveal] > div, html.js .strip li[data-reveal] em { opacity: 0; transform: translateX(-10px); transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s; }
html.js .strip li[data-reveal].is-in > div, html.js .strip li[data-reveal].is-in em { opacity: 1; transform: none; }
.fares { background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 0 var(--rule); }
.fares ul { list-style: none; margin: 12px 0 0; padding: 0; }
.fares li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #D6D6CF; font-size: 16.5px; }
.fares li:last-child { border-bottom: 0; }
.fares b { font: 800 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) {
  .lines { padding: 100px 32px; }
  .lines-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; }
  .lines-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .pick-b { margin: 0; }
  .route { grid-template-columns: .9fr 1.1fr; column-gap: 60px; }
  .r-head { grid-column: 1; }
  .fares { grid-column: 1; align-self: start; }
  .strip { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- platforms (gallery) ---------- */
.platforms { padding: 70px 16px; max-width: 1280px; margin: 0 auto; }
.pl-head { margin-bottom: 26px; }
.pl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pl { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #EDEDE7; }
.pl img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .9s var(--ease); cursor: zoom-in; }
.pl:hover img { transform: scale(1.04); }
.pl .sign { font-size: 13.5px; padding: 8px 10px; left: 8px; bottom: 8px; }
.pl-1, .pl-6 { grid-column: 1 / -1; }
html.js .pl[data-reveal] { clip-path: inset(0 0 0 100%); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
html.js .pl[data-reveal].is-in { clip-path: inset(0); }
@media (min-width: 1000px) {
  .platforms { padding: 100px 32px; }
  .pl-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 230px 230px 230px; gap: 16px; }
  .pl img { aspect-ratio: auto; }
  .pl-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
  .pl-2 { grid-column: 3; grid-row: 1; } .pl-3 { grid-column: 3; grid-row: 2; }
  .pl-6 { grid-column: 4; grid-row: 1 / 3; }
  .pl-4 { grid-column: 1 / 3; grid-row: 3; } .pl-5 { grid-column: 3 / 5; grid-row: 3; }
}

/* ---------- connect form ---------- */
.connect { display: grid; gap: 34px; padding: 70px 16px 80px; max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--rule); }
.cn-intro p:last-child { margin-top: 14px; color: var(--muted); max-width: 44ch; }
.cn-form { display: grid; gap: 16px; background: #fff; border-radius: 22px; padding: 22px 18px; box-shadow: 0 30px 60px -44px rgb(20 23 26 / .45), 0 0 0 1px var(--rule); }
@media (min-width: 640px) { .cn-form { grid-template-columns: 1fr 1fr; padding: 30px; } .fld-w, .line-pick { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .connect { grid-template-columns: .8fr 1.2fr; padding: 100px 32px; gap: 60px; } }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 700 15px/1 var(--display); padding: 0; margin-bottom: 10px; }
.line-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.line-pick legend { width: 100%; }
.line-pick label { position: relative; }
.line-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.line-pick span { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; border: 2px solid var(--rule); font: 700 15px/1 var(--display); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.line-pick input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.line-pick input:checked + span i { box-shadow: 0 0 0 3px #fff; }
.line-pick input:focus-visible + span { outline: 3px solid var(--l-blue); outline-offset: 2px; }
.fld { display: grid; gap: 6px; font: 700 15px/1.2 var(--display); }
.fld input { font: 400 16px/1.4 var(--body); color: var(--ink); width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #D2D2CB; background: var(--surface); }
.fld input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(29 53 87 / .15); }
.toggle { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 4px 0; }
.toggle input { position: absolute; left: 0; top: 50%; width: 54px; height: 32px; margin: -16px 0 0; opacity: 0; cursor: pointer; }
.tg { position: relative; width: 54px; height: 32px; border-radius: 999px; background: #CFCFC8; flex: none; transition: background .3s var(--ease); }
.tg::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); box-shadow: 0 2px 5px rgb(0 0 0 / .25); }
.toggle input:checked + .tg { background: var(--l-green); }
.toggle input:checked + .tg::after { transform: translateX(22px); }
.toggle input:focus-visible + .tg { outline: 3px solid var(--l-blue); outline-offset: 3px; }
.toggle b { display: block; font: 700 16px/1.2 var(--display); }
.toggle small { display: block; color: var(--muted); font-size: 14.5px; }
.confirm { background: #F1EAF6; border-left: 6px solid var(--cta); border-radius: 8px; padding: 14px 16px; font-size: 15.5px; }

/* ---------- terminal (visit) ---------- */
.terminal { background: var(--brand); color: #fff; display: grid; gap: 22px; padding: 70px 16px 80px; }
.terminal > * { max-width: 1248px; }
.eb-light { color: #C9D6E8; }
.terminal h2 { font-size: clamp(34px, 8.6vw, 72px); }
.tm-addr { margin-top: 12px; font-size: 18px; color: #E4EAF3; }
.board { background: #0E1C30; border-radius: 16px; padding: 20px; font-family: var(--display); }
.board-tag { display: inline-block; font: 700 12.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #0E1C30; background: var(--l-amber); padding: 6px 9px; border-radius: 4px; margin-bottom: 10px; }
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { text-align: left; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font-size: 17px; }
.board th { font-weight: 600; color: #E4EAF3; }
.board td { color: var(--l-amber); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.rev { border-top: 1px solid rgb(255 255 255 / .2); padding-top: 18px; color: #E4EAF3; }
@media (min-width: 1000px) {
  .terminal { grid-template-columns: 1.3fr 1fr; padding: 100px max(32px, calc((100vw - 1280px) / 2 + 32px)); column-gap: 60px; }
  .tm-main { grid-row: span 2; }
}

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #D2D6DB; padding: 40px 16px 46px; }
.foot-in { max-width: 1280px; margin: 0 auto; }
.foot-brand { font: 500 18px/1.2 var(--display); color: #fff; margin-bottom: 14px; }
.foot-brand b { font-weight: 800; }
.foot .pv-note { color: #D2D6DB; font-size: 13.5px; max-width: 84ch; }
.foot a { color: #fff; }
.photo-credits { margin-top: 16px; font-size: 14px; }
.photo-credits summary { cursor: pointer; font-weight: 700; color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.photo-credits ul { padding-left: 18px; margin: 6px 0 10px; }
.photo-credits li { margin: 4px 0; }

/* ---------- sticky action bar ---------- */
.actbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .actbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgb(250 250 247 / .96); backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
  .actbar a { min-height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; text-decoration: none; font: 700 17px/1 var(--display); }
  .act-call { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
  .act-main { background: var(--cta); color: #fff; }
}

/* ---------- reveal ---------- */
html.js [data-reveal]:not(.pl):not(li) { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js [data-reveal]:not(.pl):not(li).is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .strip::after { transform: none; }
  html.js .pl[data-reveal] { clip-path: none; }
  html.js .strip li[data-reveal] .sd, html.js .strip li[data-reveal] > div, html.js .strip li[data-reveal] em { opacity: 1; transform: none; }
  .map.has-train .train { opacity: 0; }
}
