/* The Clean Machine: floor and fabric care, Slater, Iowa.
   Format: the service call at pile level (home), and on every inner page a woven care label
   hanging from the page's seam (their logo's own dashed pile line). Hepta Slab + Livvic.
   Palette and contrast: design/clean-machine.md. */

:root {
  --white: #FFFFFF;
  --navy: #0B2440;
  --ink: #3A5068;
  --suds: #EEF6FC;
  --satin: #F7FAFD;
  --blue: #1090D0;
  --blue-deep: #0A6CA8;
  --blue-deeper: #085889;
  --green: #70C060;
  --line: #D6E2EC;
  --navy-soft: #B9C7D6;
  --navy-link: #7CC4EC;
  --sa-accent: #0A6CA8;
  --sa-accent-ink: #FFFFFF;
  --display: 'Hepta Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --body: 'Livvic', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --wide: 1320px;
  --radius: 22px;
  --top: 108px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--navy);
  font-family: var(--body); font-size: 19px; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deeper); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -0.02em; text-wrap: balance; color: var(--navy); }
h1 { font-weight: 300; font-size: clamp(52px, 7.4vw, 112px); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: clamp(36px, 4.4vw, 64px); letter-spacing: -0.03em; line-height: 1.02; }
h3 { font-size: clamp(24px, 2vw, 29px); line-height: 1.15; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; color: #fff; }
.wrap { width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--blue-deep); color: #fff; font: 600 17px/1 var(--body); letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--blue-deeper); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); }
.btn--navy:hover { background: #163556; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--suds); color: var(--navy); }
.tel { font: 400 22px/1 var(--display); color: var(--navy); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.tel:hover { color: var(--blue-deep); text-decoration: underline; text-decoration-thickness: 1px; }
.textlink { font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.actions .tel { font-size: 24px; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: var(--top); width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { width: 188px; height: auto; }
.top .tel { font-size: 22px; }
.menu-btn { background: var(--navy); }
.menu-btn:hover { background: #163556; }

/* the pile seam: their logo's dashed line of pile, green under the wand, blue beyond */
.seam {
  position: relative; height: 12px; width: 100%;
  background:
    linear-gradient(90deg, var(--green) 0 38%, var(--blue) 38% 100%);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 12px);
  mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 12px);
}

/* home: the header floats over the pile until the journey is done */
.home .top { position: fixed; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transition: background .3s ease, box-shadow .3s ease; }
.home .top.is-solid { background: rgba(255,255,255,.96); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
/* a soft white veil under the floating header, so step copy scrolling up fades out instead of running under the logo */
.home .top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 40px); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.9) 64%, rgba(255,255,255,0) 100%); transition: opacity .3s ease; }
.home .top.is-solid::before { opacity: 0; }

/* ---------------------------------------------------------------- the menu (full-screen index) */
.index { position: fixed; inset: 0; z-index: 60; background: var(--white); overflow-y: auto; }
.index[hidden] { display: none; }
.index__bar { display: flex; align-items: center; min-height: var(--top); width: min(100%, var(--wide)); margin-inline: auto; padding-inline: var(--gutter); }
.index__bar .brand img { width: 150px; }
.index__grid { width: min(100%, var(--wide)); margin: 12px auto 64px; padding-inline: var(--gutter); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.index h2 { font: 500 17px/1.3 var(--body); color: var(--ink); letter-spacing: 0; margin-bottom: 14px; }
.index ul { list-style: none; margin: 0; padding: 0; }
.index__big a { display: block; font: 300 clamp(30px, 3.2vw, 46px)/1.14 var(--display); letter-spacing: -0.025em; color: var(--navy); text-decoration: none; padding: 4px 0; }
.index__big a:hover { color: var(--blue-deep); }
.index__small a { display: block; font-size: 20px; color: var(--navy); text-decoration: none; padding: 6px 0; }
.index__small a:hover { color: var(--blue-deep); text-decoration: underline; }
.index address { font-style: normal; margin: 0 0 22px; }
.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- inner page head: H1, seam, swatch, care label */
.crumbs { font-size: 15px; color: var(--ink); margin: 0 0 22px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--navy-soft); }
.crumbs a { color: var(--ink); }
.head { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); }
.head h1 { max-width: 13ch; }
.head .lede { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.55; max-width: 60ch; margin: 26px 0 30px; }
.swatch { position: relative; margin-top: 0; }
.swatch__frame { border-radius: var(--radius); overflow: hidden; background: var(--suds); aspect-ratio: 16 / 7; margin-top: 28px; }
.swatch__frame img { width: 100%; height: 100%; object-fit: cover; }
.swatch figcaption { font-size: 15px; color: var(--ink); margin-top: 12px; max-width: 70ch; }

/* the care label: a woven satin label sewn into the seam */
.label {
  position: absolute; z-index: 3; top: -12px; right: clamp(20px, 4vw, 64px); width: 262px;
  padding: 34px 24px 26px; color: var(--navy);
  background:
    repeating-linear-gradient(0deg, rgba(11,36,64,.035) 0 1px, transparent 1px 3px),
    linear-gradient(100deg, #FFFFFF 0%, #F1F6FB 45%, #FFFFFF 70%, #F4F8FC 100%);
  border: 1px solid #CFDCE8; border-top: 0;
  box-shadow: 0 26px 44px -26px rgba(11,36,64,.45), 0 2px 6px rgba(11,36,64,.06);
}
.label::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(#DCE7F1, #EEF4F9); border-bottom: 1px solid #CFDCE8; }
.label::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; border-top: 1.5px dashed rgba(16,144,208,.55); }
.label__stitch { position: absolute; left: 12px; right: 12px; top: 19px; border-top: 1.5px dashed rgba(16,144,208,.55); }
.label__title { font: 400 23px/1.15 var(--display); letter-spacing: -0.015em; margin: 6px 0 14px; }
.label dl { margin: 0; display: grid; gap: 10px; }
.label dt { font-size: 14px; color: var(--ink); line-height: 1.3; }
.label dd { margin: 0; font-size: 16.5px; line-height: 1.35; font-weight: 500; }
.label__foot { font-size: 14px; color: var(--ink); margin: 16px 0 0; line-height: 1.4; }

/* ---------------------------------------------------------------- content sections */
.section { padding-block: clamp(64px, 8vw, 120px); }
.section--suds { background: var(--suds); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.side { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.side > h2 { position: sticky; top: calc(var(--top) + 24px); font-size: clamp(34px, 3.4vw, 50px); }
.prose { max-width: 66ch; }
.prose h3 { margin: 1.6em 0 0.5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--blue); }
.lead-in { font-size: clamp(20px, 1.6vw, 23px); line-height: 1.55; }
.muted { color: var(--ink); }

/* van-window photo frames */
.frame { border-radius: var(--radius); overflow: hidden; background: var(--suds); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.r32 { aspect-ratio: 3 / 2; }
.r45 { aspect-ratio: 4 / 5; }
.r11 { aspect-ratio: 1 / 1; }
figure { margin: 0; }
figcaption { font-size: 15px; color: var(--ink); margin-top: 12px; line-height: 1.45; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); margin: 34px 0; }

/* the process, written out (service pages and the no-3D home) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: baseline; }
.steps li::before { counter-increment: step; content: counter(step); font: 300 44px/1 var(--display); color: var(--blue); text-align: right; }
.steps b { font-weight: 600; }

/* reviews */
.quotes { display: grid; gap: 34px; }
.quote { margin: 0; padding: 0 0 30px; border-bottom: 1px solid var(--line); }
.quote:last-child { border-bottom: 0; padding-bottom: 0; }
.quote p { font-size: clamp(19px, 1.45vw, 21px); line-height: 1.55; margin: 12px 0 12px; }
.quote footer { font-size: 16px; color: var(--ink); }
.quote footer b { color: var(--navy); font-weight: 600; }
.stars { color: var(--green); letter-spacing: 3px; font-size: 18px; line-height: 1; }
.stars--navy { color: var(--navy); }
.rating { display: grid; gap: 10px; }
.rating__num { font: 300 clamp(120px, 15vw, 200px)/0.82 var(--display); letter-spacing: -0.05em; color: var(--blue); }
.rating__of { font: 400 clamp(22px, 2vw, 28px)/1.2 var(--display); letter-spacing: -0.015em; }
.award { font-size: 17px; line-height: 1.5; color: var(--navy); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; max-width: 34ch; }
.more { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 8px; }
.reply { margin: 16px 0 0; padding: 14px 18px; background: var(--suds); border-radius: 12px; font-size: 16.5px; line-height: 1.5; }
.reply b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.clamp.is-open { display: block; -webkit-line-clamp: unset; line-clamp: unset; }
.readmore { background: none; border: 0; padding: 6px 0; font: 600 16px var(--body); color: var(--blue-deep); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.review-list { columns: 2 420px; column-gap: 56px; }
.review-list .quote { break-inside: avoid; margin-bottom: 30px; }
.wall { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 22px; }
.wall li { font-size: 16px; line-height: 1.4; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wall .stars { font-size: 14px; letter-spacing: 2px; display: block; margin-bottom: 4px; }
.wall small { display: block; color: var(--ink); font-size: 14px; }

/* what we clean (home and services hub) */
.clean-index { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 96px); margin-top: 48px; }
.clean-index h3 { font: 500 17px/1.3 var(--body); letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.surfaces { list-style: none; margin: 0; padding: 0; }
.surfaces li { border-top: 1px solid var(--line); }
.surfaces li:last-child { border-bottom: 1px solid var(--line); }
.surface { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: center; padding: 16px 8px 16px 0; text-decoration: none; color: var(--navy); border-radius: 14px; transition: background .2s ease; }
.surface:hover { background: var(--suds); color: var(--navy); }
.surface img { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.surface strong { display: block; font: 400 clamp(23px, 1.9vw, 27px)/1.15 var(--display); letter-spacing: -0.015em; }
.surface span { display: block; font-size: 16.5px; color: var(--ink); line-height: 1.45; margin-top: 4px; }

/* people */
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 48px; }
.cast h3 { margin: 20px 0 8px; }
.cast p { font-size: 17.5px; }

/* storefront band */
.place { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hours { list-style: none; margin: 0 0 22px; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; border-bottom: 1px solid var(--line); max-width: 360px; }
.areas { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 18px; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--suds); }

/* closing band */
.closer { background: var(--navy); color: #fff; padding-block: clamp(72px, 9vw, 128px); }
.closer h2 { color: #fff; max-width: 17ch; }
.closer p { color: var(--navy-soft); max-width: 56ch; margin: 22px 0 32px; }
.closer .tel { color: #fff; }
.closer .tel:hover { color: var(--navy-link); }
.closer .btn { background: #fff; color: var(--navy); }
.closer .btn:hover { background: var(--suds); color: var(--navy); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 400 clamp(21px, 1.7vw, 25px)/1.3 var(--display); letter-spacing: -0.01em; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 34px/1 var(--display); color: var(--blue-deep); flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; max-width: 64ch; }
.policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.policy div { background: var(--satin); border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; }
.policy h3 { font-size: 24px; margin-bottom: 10px; }
.policy p { margin: 0; font-size: 17.5px; }

/* gallery */
.gallery-group { margin-top: 56px; }
.gallery-group h2 { font-size: clamp(30px, 3vw, 44px); margin-bottom: 22px; }
.grid-photos { columns: 3 300px; column-gap: 22px; }
.grid-photos figure { break-inside: avoid; margin: 0 0 22px; }
.grid-photos button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; }
.grid-photos img { width: 100%; height: auto; transition: transform .35s ease; }
.grid-photos button:hover img { transform: scale(1.025); }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(6,20,36,.94); display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gutter) 24px; }
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; justify-content: flex-end; gap: 12px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; border-radius: 14px; }
.lightbox__cap { color: #fff; text-align: center; font-size: 17px; margin: 14px auto 0; max-width: 70ch; }
.lightbox__nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 17px; }
.form input, .form textarea { font: 400 18px/1.4 var(--body); color: var(--navy); background: #fff; border: 1.5px solid #B7C8D8; border-radius: 10px; padding: 14px 16px; min-height: 52px; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form textarea { min-height: 150px; resize: vertical; }
.form__status { min-height: 1.6em; font-weight: 500; margin: 0; }
.form__status.is-err { color: #A4231B; }
.form__status.is-ok { color: #1F6B2A; }
.card-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.card-list h3 { font-size: 22px; margin-bottom: 4px; }
.card-list address { font-style: normal; }

/* blog */
.post { max-width: 70ch; }
.post .meta { color: var(--ink); font-size: 16px; margin: 18px 0 30px; }
.post-teaser { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; text-decoration: none; color: var(--navy); }
.post-teaser:hover h2 { color: var(--blue-deep); }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; z-index: 3; background: var(--navy); color: #fff; padding: 72px 0 40px; font-size: 17px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--navy-link); text-decoration: underline; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot__brand img { width: 210px; height: auto; margin-bottom: 18px; }
.foot__brand p { color: var(--navy-soft); max-width: 32ch; }
.foot h2 { font: 500 16px/1.3 var(--body); color: var(--navy-soft); letter-spacing: 0; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { padding: 4px 0; }
.foot address { font-style: normal; line-height: 1.6; }
.foot .muted { color: var(--navy-soft); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(185,199,214,.25); color: var(--navy-soft); font-size: 15px; }
.foot__base .social { display: flex; gap: 20px; }

/* ================================================================ HOME: the service call at pile level */
.home main { position: relative; }
#pile { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: none; }
.has-3d #pile { display: block; }
.mist { display: none; }
.has-3d .mist { display: block; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.93) 0, rgba(255,255,255,.84) 26%, rgba(255,255,255,.35) 44%, rgba(255,255,255,0) 58%);
  opacity: var(--mist, 1); }
.journey { position: relative; z-index: 2; }
.after { position: relative; z-index: 3; background: var(--white); }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--top) + 24px) var(--gutter) clamp(56px, 9vh, 104px); overflow: hidden; }
.hero__still { position: absolute; inset: 0; z-index: -1; }
.hero__still img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero__still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.93) 0, rgba(255,255,255,.8) 30%, rgba(255,255,255,.2) 55%, rgba(255,255,255,0) 70%); }
.has-3d .hero__still { display: none; }
.hero__copy { width: min(100%, 640px); }
.hero h1 { font-size: clamp(56px, 7.6vw, 120px); max-width: 9.5ch; }
.hero .lede { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.55; margin: 28px 0 32px; max-width: 46ch; }
.hero__cue { margin: 40px 0 0; font-size: 15px; color: var(--ink); display: none; }
.has-3d .hero__cue { display: block; }

/* the six steps */
.step { position: relative; padding: clamp(64px, 9vw, 110px) var(--gutter); }
.step__copy { max-width: 560px; }
.step__num { display: block; font: 300 clamp(64px, 6vw, 92px)/0.9 var(--display); color: var(--blue); letter-spacing: -0.04em; margin-bottom: 14px; }
.step h2 { font-size: clamp(36px, 3.6vw, 54px); margin-bottom: 20px; }
.step p { max-width: 50ch; }
.step__fig { margin: 26px 0 18px; max-width: 420px; }
.step__fig .frame { aspect-ratio: 4 / 3; }
.step__ask { font-weight: 600; }
.has-3d .step { min-height: 130vh; padding-top: 0; padding-bottom: 0; }
.has-3d .step[data-stop="3"] { min-height: 240vh; }
.has-3d .step__copy { position: sticky; top: calc(var(--top) + 6vh); padding-left: 190px; padding-bottom: 40px; }
.has-3d .step__fig { max-width: 330px; }

/* the step rail: left edge, only during the journey */
.rail { display: none; }
.has-3d .rail { display: block; position: fixed; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 4; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.has-3d .rail.is-on { opacity: 1; visibility: visible; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rail a { display: grid; grid-template-columns: 26px auto; gap: 8px; align-items: baseline; padding: 6px 0; text-decoration: none; color: var(--ink); font-size: 15px; line-height: 1.25; }
.rail a span { font: 400 19px/1 var(--display); color: var(--navy-soft); }
.rail a[aria-current="true"] { color: var(--navy); font-weight: 600; }
.rail a[aria-current="true"] span { color: var(--blue); }
.rail a:hover { color: var(--navy); }

/* still-mode (QA renders the 3D alone) */
.still-mode .top, .still-mode main, .still-mode .foot, .still-mode .rail, .still-mode .mist { visibility: hidden !important; }

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .index__grid { grid-template-columns: 1fr 1fr; }
  .has-3d .step__copy { padding-left: 0; }
  .has-3d .rail { display: none; }
}
@media (max-width: 960px) {
  .side, .place, .contact-grid, .clean-index, .post-teaser { grid-template-columns: 1fr; }
  .side > h2 { position: static; }
  .cast { grid-template-columns: 1fr 1fr; }
  .policy { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --top: 76px; --radius: 18px; }
  body { font-size: 18px; }
  .top__in { gap: 10px; }
  .brand img { width: 128px; }
  .top .tel { display: none; }
  .top .btn { min-height: 44px; padding: 0 16px; font-size: 16px; }
  .index__grid { grid-template-columns: 1fr; gap: 32px; }
  .swatch__frame { aspect-ratio: 4 / 3; }
  .label { position: relative; top: auto; right: auto; width: auto; margin: -2px 0 0; }
  .cast { grid-template-columns: 1fr; }
  .pair { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .grid-photos { columns: 2 150px; column-gap: 12px; }
  .grid-photos figure { margin-bottom: 12px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  .steps li::before { font-size: 34px; }
  .hero { align-items: end; }
  .hero__still img { object-position: 62% 30%; }
  .hero__still::after { background: linear-gradient(0deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.9) 42%, rgba(255,255,255,.1) 70%, rgba(255,255,255,0) 100%); }
  /* 3D on a phone: the pile rides in the top half, the words rise over a white mist below */
  .has-3d .mist { background: linear-gradient(0deg, rgba(255,255,255,.97) 0, rgba(255,255,255,.95) 50%, rgba(255,255,255,.4) 63%, rgba(255,255,255,0) 71%); }
  .has-3d .hero { align-items: end; background: linear-gradient(0deg, rgba(255,255,255,.95) 0, rgba(255,255,255,.93) 66%, rgba(255,255,255,0) 80%); }
  .has-3d .hero__cue { display: none; }
  .has-3d .step { min-height: 150vh; }
  .has-3d .step[data-stop="3"] { min-height: 230vh; }
  .has-3d .step__copy { top: auto; position: relative; margin-top: 46vh; padding: 22px 20px 26px; border-radius: 22px;
    background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(11,36,64,.08); }
  .has-3d .step__fig { max-width: 260px; }
  .rating__num { font-size: 120px; }
  .review-list { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
