/* =========================================================
   Ever Shine Clean — the service ticket
   One ink (the logo's royal blue) printed on cool white paper.
   ========================================================= */
:root {
  /* inks, sampled from the logo */
  --ink-deep: #0a3a6e;     /* body text, headlines */
  --ink: #0b58a2;          /* "EVER SHINE" wordmark: primary ink, fields */
  --ink-soft: #2f5f94;     /* secondary text */
  --azure: #3a9de0;        /* crescent swoosh: decorative only */
  --sky: #66bff7;          /* "CLEAN": decorative only */
  --night: #072f5c;        /* deepest band */

  /* papers */
  --paper: #fbfdff;        /* ticket stock */
  --paper-sky: #e4f2fd;    /* carbon copy / sky paper */
  --rule: #bcdaf2;         /* printed form lines */
  --rule-strong: #8fbfe6;

  --font-serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow-paper: 0 1px 2px rgba(7, 47, 92, .10), 0 18px 40px -14px rgba(4, 28, 60, .45);
  --shadow-lift: 0 2px 4px rgba(7, 47, 92, .12), 0 10px 22px -8px rgba(7, 47, 92, .35);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--ink) var(--paper-sky);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-deep);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
}
::selection { background: var(--sky); color: var(--night); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; border-radius: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font: 650 1rem/1.1 var(--font-sans); letter-spacing: .01em;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); }
.btn--ink:hover { background: var(--night); transform: translateY(-1px); }
.btn--ink:active { transform: translateY(1px); box-shadow: none; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .3s var(--ease-out);
}
.header.is-scrolled { box-shadow: 0 8px 24px -16px rgba(7, 47, 92, .5); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.logo { flex: none; display: flex; align-items: center; min-height: 44px; border-radius: var(--radius); }
.logo img { height: 68px; width: auto; mix-blend-mode: multiply; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  font-weight: 550; font-size: .975rem; text-decoration: none; color: var(--ink-deep);
  padding: 6px 0; background: linear-gradient(var(--ink), var(--ink)) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease-out), color .2s;
}
.nav__link:hover { color: var(--ink); background-size: 100% 2px; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; font-weight: 650; text-decoration: none; color: var(--ink); }
.header__phone:hover { text-decoration: underline; }

.nav__toggle {
  display: none; flex: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: space-between; border-radius: var(--radius);
}
.nav__toggle span { display: block; height: 2px; background: var(--ink-deep); border-radius: 3px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- the royal field ---------- */
.field {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
}
/* the logo's crescent swoosh, at field scale */
.field::before {
  content: ""; position: absolute; z-index: -1;
  width: min(1100px, 120vw); aspect-ratio: 1; left: -32%; top: -40%;
  border-radius: 50%;
  border: clamp(30px, 5vw, 70px) solid transparent;
  border-left-color: rgba(102, 191, 247, .22);
  border-bottom-color: rgba(102, 191, 247, .22);
  transform: rotate(-10deg);
}

/* ---------- ticket ---------- */
.ticket {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-paper);
  color: var(--ink-deep);
}
/* the carbon copy beneath (on the wrapper, so it never paints over the ticket) */
.ticket-stack { position: relative; }
.ticket-stack::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--paper-sky);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px -12px rgba(4, 28, 60, .5);
  transform: translate(14px, 16px) rotate(.4deg);
}
.ticket--hero { animation: ticketIn 1s var(--ease-out) both; }
.ticket-stack::before { animation: carbonOut 1.1s .25s var(--ease-out) both; }
@keyframes ticketIn { from { opacity: 0; transform: translateY(32px); } }
@keyframes carbonOut { from { transform: translate(0, 0) rotate(0); } }

.ticket__rule--top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 14px clamp(20px, 3.4vw, 44px);
  border-bottom: 3px double var(--ink);
  font-stretch: 78%; font-size: .8125rem; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft);
}
.ticket__meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ticket__meta b { color: var(--ink); font-weight: 700; }
.sep { width: 1px; height: 14px; background: var(--rule-strong); }

.ticket__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
}
.ticket__main { padding: clamp(24px, 4vw, 48px) clamp(20px, 3.4vw, 44px) clamp(28px, 3.4vw, 40px); min-width: 0; }
.ticket__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.02em;
  color: var(--ink-deep); max-width: 15ch; text-wrap: balance;
}
.ticket__lede { margin-top: 18px; max-width: 50ch; font-size: 1.125rem; color: var(--ink-soft); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ticket__alt { margin-top: 14px; font-size: .9375rem; color: var(--ink-soft); }
.ticket__alt a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }

/* services printed on the ticket, ticked in ink on arrival */
.hero__list {
  margin-top: 32px; padding-top: 20px; border-top: 3px double var(--rule-strong);
  display: grid; grid-template-columns: repeat(3, max-content); gap: 12px 32px;
  font-weight: 550;
}
.hero__list li { display: flex; align-items: center; gap: 8px; }
.hero__list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 26; }
.hero__list li:nth-child(1) svg { --d: .7s; }
.hero__list li:nth-child(2) svg { --d: .82s; }
.hero__list li:nth-child(3) svg { --d: .94s; }
.hero__list li:nth-child(4) svg { --d: 1.06s; }
.hero__list li:nth-child(5) svg { --d: 1.18s; }
.hero__list li:nth-child(6) svg { --d: 1.3s; }
.hero__list svg { animation: inkTick .5s var(--d, .7s) var(--ease-out) backwards; }
@keyframes inkTick { from { stroke-dashoffset: 26; } to { stroke-dashoffset: 0; } }

/* the before/after prints clipped to the ticket */
.prints {
  position: relative; margin: 0;
  display: grid; place-items: center;
  min-height: 540px; padding: 36px 24px 84px;
  border-left: 3px double var(--rule-strong);
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(143, 191, 230, .28) 31px 32px);
  overflow: hidden;
}
.print {
  grid-area: 1 / 1; width: min(76%, 270px);
  background: #fff; padding: 10px 10px 0; border-radius: 3px;
  box-shadow: var(--shadow-paper);
  transition: transform .7s var(--ease-out);
}
.print img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.print figcaption { padding: 12px 4px 14px; font: italic 1.0625rem/1 var(--font-serif); color: var(--ink); }
.print--before { z-index: 1; transform: translate(-36px, -20px) rotate(-6deg); }
.print--after { z-index: 2; transform: translate(32px, 22px) rotate(4deg); animation: printIn 1.1s .45s var(--ease-out) backwards; }
@keyframes printIn { from { opacity: 0; transform: translate(180px, 80px) rotate(16deg); } }
.prints.is-flipped .print--before { z-index: 3; transform: translate(-18px, -6px) rotate(-2deg); }
.prints.is-flipped .print--after { transform: translate(44px, 34px) rotate(7deg); }
.prints__flip {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 4;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 650 .9375rem/1 var(--font-sans); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.prints__flip:hover { background: var(--ink); color: #fff; }

/* perforation + stub */
.ticket__perf { position: relative; border-top: 2px dashed var(--rule-strong); }
.ticket__stub {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  padding: 16px clamp(20px, 3.4vw, 44px) 18px;
  font-size: .9375rem; color: var(--ink-soft);
}
.ticket__stub a { display: inline-block; padding: 9px 0; font: 700 1.375rem/1.2 var(--font-serif); color: var(--ink); text-decoration: none; }
.ticket__stub a:hover { text-decoration: underline; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--sky { background: var(--paper-sky); }
.section__head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.section__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance;
}
.section__title--light { color: #fff; }
.section__text { margin-top: 14px; font-size: 1.125rem; color: var(--ink-soft); max-width: 62ch; }
.section__head--row .section__text { margin-top: 0; }

/* ledger: the services as line items */
.ledger { border-top: 3px double var(--ink); }
.ledger__item {
  display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); align-items: center; gap: 8px 24px;
  padding: 22px 12px; border-bottom: 1px solid var(--rule);
  transition: background-color .25s var(--ease-out);
}
.ledger__item:hover { background: #f1f8fe; }
.ledger__name { font: 700 1.5rem/1.2 var(--font-serif); }
.ledger__desc { color: var(--ink-soft); max-width: 60ch; }

/* about */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__card {
  background: #fff; padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow-paper);
  transform: rotate(-2deg);
}
.about__card img { border-radius: 3px; }
.about__content .section__text { margin-top: 18px; }
.ink-list { margin-top: 26px; display: grid; gap: 12px; }
.ink-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 550; }
.ink-list svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.record {
  margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule-strong);
}
.record > div { padding: 14px 16px 16px; }
.record > div + div { border-left: 1px solid var(--rule-strong); }
.record dt { font-stretch: 78%; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.record dd { margin-top: 4px; font: 700 1.875rem/1.1 var(--font-serif); color: var(--ink); }

/* standard */
.standard { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.standard__head { position: sticky; top: calc(var(--header-h) + 32px); }
.inspect { border-top: 3px double var(--ink); }
.inspect__row {
  display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 52px; align-items: center; gap: 8px 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--rule);
}
.inspect__row h3 { font: 700 1.5rem/1.2 var(--font-serif); }
.inspect__row p { color: var(--ink-soft); }
.inspect__tick { width: 48px; height: 32px; fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .inspect__row .inspect__tick { stroke-dashoffset: 60; transition: stroke-dashoffset .7s .35s var(--ease-out); }
.js .inspect__row.is-in .inspect__tick { stroke-dashoffset: 0; }

/* how it works */
.band { background: var(--night); color: #d9ecfc; padding: clamp(72px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.route { margin-top: clamp(36px, 5vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.route::before {
  content: ""; position: absolute; left: 28px; right: 12%; top: 27px; border-top: 2px dashed rgba(102, 191, 247, .55);
}
.route__step { position: relative; }
.route__num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--sky); color: #fff;
  font: 700 1.5rem/1 var(--font-serif); position: relative;
}
.route__step h3 { margin-top: 22px; font: 700 1.375rem/1.2 var(--font-serif); color: #fff; }
.route__step p { margin-top: 8px; color: #bcdaf2; max-width: 30ch; }

/* results: before/after pairs */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.pair { margin: 0; }
.pair--wide { grid-column: 1 / -1; }
.pair__shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.shot { position: relative; background: #fff; padding: 8px; border-radius: 3px; box-shadow: var(--shadow-lift); }
.shot img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
.pair--wide .shot img { aspect-ratio: 16 / 9; }
.shot__tag {
  position: absolute; left: 18px; top: 18px; padding: 5px 10px; border-radius: 3px;
  background: var(--paper); color: var(--ink);
  font-stretch: 78%; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
}
.shot__tag--after { background: var(--ink); color: #fff; }
.pair figcaption { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rule-strong); font: 700 1.375rem/1.2 var(--font-serif); }

/* remarks */
.remarks {
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-paper);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 5vw, 64px) clamp(20px, 3vw, 32px);
  max-width: 980px;
}
.remarks__track { min-height: calc(2.6rem * 4); }
.remark { display: none; }
.remark.is-active { display: block; animation: remarkIn .6s var(--ease-out); }
@keyframes remarkIn { from { opacity: 0; transform: translateY(8px); } }
.remark p {
  font: italic 400 clamp(1.25rem, 2.4vw, 1.625rem)/2.6rem var(--font-serif); color: var(--ink-deep);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(2.6rem - 1px), var(--rule) calc(2.6rem - 1px) 2.6rem);
  max-width: 46ch;
}
.remark footer { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.remark footer b { font-weight: 700; }
.remark footer span { color: var(--ink-soft); font-size: .9375rem; }
.remarks__controls { margin-top: 26px; padding-top: 18px; border-top: 3px double var(--rule-strong); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.remarks__rating { color: var(--ink-soft); }
.remarks__rating b { font: 700 1.5rem/1 var(--font-serif); color: var(--ink); }
.remarks__dots { display: flex; gap: 4px; }
.remarks__dot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.remarks__dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); transition: background-color .25s, transform .25s var(--ease-out); }
.remarks__dot.is-active::before { background: var(--ink); transform: scale(1.15); }

/* ---------- contact: tear-off flyer ---------- */
.field--contact { padding: clamp(64px, 9vw, 112px) 0; }
.field--contact::before { left: auto; right: -36%; top: -55%; transform: rotate(170deg); }
.flyer {
  max-width: 1040px; margin-inline: auto;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-paper);
}
.flyer__body { padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(28px, 4vw, 44px); }
.flyer__title { font: 700 clamp(2.25rem, 5.4vw, 4.25rem)/1.04 var(--font-serif); letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.flyer__text { margin-top: 18px; max-width: 52ch; font-size: 1.125rem; color: var(--ink-soft); }
.flyer__facts { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.flyer__facts > div { padding: 14px 16px 4px 0; }
.flyer__facts > div + div { padding-left: 16px; border-left: 1px solid var(--rule-strong); }
.flyer__facts dt { font-stretch: 78%; font-weight: 700; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.flyer__facts dd { margin-top: 4px; font-weight: 600; font-size: 1.0625rem; overflow-wrap: anywhere; }
.flyer__facts a { color: var(--ink); }

.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 2px dashed var(--rule-strong); }
.tabs li + li { border-left: 2px dashed var(--rule-strong); }
.tab {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 200px; padding: 16px 8px;
  writing-mode: vertical-rl; transform-origin: 50% 0;
  text-decoration: none; color: var(--ink);
  transition: transform .4s var(--ease-out), background-color .25s;
}
.tab b { font: 700 1.25rem/1 var(--font-serif); }
.tab span { font-weight: 600; font-size: .9375rem; color: var(--ink-deep); }
.tab:hover { background: var(--paper-sky); transform: rotate(-3deg) translateY(6px); }
.tabs li:last-child .tab { border-bottom-right-radius: var(--radius); }
.tabs li:first-child .tab { border-bottom-left-radius: var(--radius); }

/* ---------- footer ---------- */
.footer { background: var(--night); color: #bcdaf2; padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; }
.footer__label { display: inline-block; background: #fff; border-radius: var(--radius); padding: 10px 16px; }
.footer__label img { height: 56px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 34ch; }
.footer__col h3 { font-stretch: 78%; font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; overflow-wrap: anywhere; }
.footer__col a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(188, 218, 242, .2); font-size: .875rem; }

/* ---------- floating controls ---------- */
.float-text {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px;
  background: var(--ink); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 650;
  box-shadow: 0 4px 10px rgba(4, 28, 60, .25), 0 16px 30px -10px rgba(4, 28, 60, .5);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .2s;
}
.float-text.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-text:hover { background: var(--night); }
.float-text .tnum { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #fff; color: var(--ink); font-size: .8125rem; }

.back-to-top {
  position: fixed; right: 20px; bottom: 84px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- reveal (content stays visible without JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .header__phone span { display: none; }
  .nav__list { gap: 20px; }
  .ticket__body { grid-template-columns: 1fr; }
  .prints { border-left: 0; border-top: 3px double var(--rule-strong); min-height: 500px; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .logo img { height: 54px; }
  .nav__toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    box-shadow: 0 18px 30px -18px rgba(7, 47, 92, .5);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility 0s .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); background: none; font-size: 1.0625rem; }
  .header__inner { gap: 12px; }

  .about, .standard { grid-template-columns: 1fr; }
  .about__card { max-width: 440px; }
  .standard__head { position: static; }
  .record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record > div:nth-child(3) { border-left: 0; }
  .record > div:nth-child(n+3) { border-top: 1px solid var(--rule-strong); }
  .route { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .route::before { display: none; }
  .ledger__item { grid-template-columns: 1fr; gap: 6px; }
  .inspect__row { grid-template-columns: minmax(0, 1fr) 52px; }
  .inspect__row p { grid-column: 1; }
  .inspect__tick { grid-column: 2; grid-row: 1 / span 2; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tab-extra { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header__actions .btn--sm { padding-inline: 14px; }
  .logo img { height: 46px; }
  .ticket-stack::before { transform: translate(8px, 10px) rotate(.4deg); }
  .ticket__meta:first-child .sep, .ticket__kind { display: none; }
  .ticket__title { font-size: 2.15rem; max-width: none; }
  .hero__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .prints { min-height: 440px; }
  .print { width: min(64%, 230px); }
  .results { grid-template-columns: 1fr; gap: 40px; }
  .pair__shots { gap: 10px; }
  .route { grid-template-columns: 1fr; }
  .flyer__facts { grid-template-columns: 1fr; }
  .flyer__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .tabs { grid-template-columns: 1fr; }
  .tabs li + li { border-left: 0; border-top: 2px dashed var(--rule-strong); }
  .tab { writing-mode: horizontal-tb; height: auto; min-height: 64px; justify-content: space-between; padding: 16px 20px; }
  .tab:hover { transform: translateX(4px); }
  .tabs li:first-child .tab { border-bottom-left-radius: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .float-text { right: 12px; bottom: 12px; }
  .back-to-top { right: 16px; bottom: 76px; }
}

@media (max-width: 400px) {
  .header__phone { display: none; }
  .logo img { height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
