/* Dr. Ahmed Samir Tammam, demo site by CairoStack.
   Direction: colour chapters. The fields take the clinic's own black, gold and bone
   (his AT monogram and post designs), in the dealt proportions. */

:root {
  --black: #0f0d0b;
  --black-2: #1c1814;
  --gold: #c79a45;
  --gold-2: #b98a36;
  --bone: #ecebe7;
  --bone-2: #dedbd4;
  --espresso: #2a211a;
  --white: #ffffff;
  --soft-dark: #6b5f50;   /* soft ink on light fields */
  --soft-light: #cbbfae;  /* soft ink on dark fields */
  --accent: #25d366;      /* WhatsApp green: the booking action only */
  --accent-ink: #0a0a0a;

  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;

  --step-small: 0.875rem;
  --step-body: 1.125rem;
  --step-lead: 1.5rem;
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
  --step-display: clamp(3.4rem, 1rem + 9.6vw, 10rem);

  --margin: clamp(1rem, 2.6vw, 2.5rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; background: var(--black); color: var(--white); font-family: var(--font); font-size: var(--step-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul[role="list"] { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:target { scroll-margin-top: 1rem; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--margin); }
p { max-width: 62ch; }

/* Arabic joins its letters, so display tracking stays at zero; leading is opened for
   the tall ascenders and deep descenders of the script. */
h1, h2, h3 { font-weight: 800; letter-spacing: 0; text-wrap: balance; }
.display { font-size: var(--step-display); line-height: 1.15; }
.head { font-size: var(--step-head); line-height: 1.2; }
.lead { font-size: var(--step-lead); line-height: 1.45; }
.small { font-size: var(--step-small); line-height: 1.5; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.6rem; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); font-weight: 600; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.link { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.3em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease; }
.link-plain { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.07em; transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: #3ee07a; }
  .link:hover { text-decoration-color: currentColor; }
  .link-plain:hover { color: var(--gold); }
}

/* ---------- demo notice ---------- */
.demo-bar { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline; justify-content: space-between; padding: 0.6rem var(--margin); background: var(--bone); color: var(--black); font-size: var(--step-small); }
.demo-bar p { max-width: none; }

/* ---------- hero: patient-file folders ---------- */
.hero { position: relative; min-height: 100svh; background: var(--black); overflow: hidden; display: flex; flex-direction: column; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-block: 1.5rem; font-weight: 600; font-size: var(--step-small); }
.wordmark { grid-column: 2; display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.mono-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: var(--black); font-size: var(--step-small); font-weight: 800; letter-spacing: 0.02em; }
.top-call { grid-column: 3; justify-self: end; }
.hero-copy { text-align: center; padding-top: clamp(2rem, 6vh, 5rem); }
.hero-copy h1 { color: var(--white); }
.hero-sub { margin: 1.25rem auto 0; max-width: 46ch; font-size: var(--step-lead); line-height: 1.5; color: var(--soft-light); }

.folders { position: relative; flex: 1; min-height: 44svh; margin-top: clamp(2rem, 6vh, 4rem); }
.folder { position: absolute; inset-inline: 7vw; top: calc(var(--o) * 64px + 40px); bottom: -2px; display: block; text-decoration: none; }
.folder .tab { position: absolute; bottom: 100%; height: 44px; display: grid; place-items: center; padding: 0 2.4rem; font-weight: 600; font-size: var(--step-body); text-decoration: none; clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: inherit; color: inherit; transition: transform var(--t-ui) var(--ease-out); }
.f1 { background: var(--bone); color: var(--black); }   .f1 .tab { inset-inline-start: 4%; }
.f2 { background: var(--black-2); color: var(--white); } .f2 .tab { inset-inline-start: 24%; }
.f3 { background: var(--gold); color: var(--black); }   .f3 .tab { inset-inline-start: 44%; }
.f4 { background: var(--espresso); color: var(--white); } .f4 .tab { inset-inline-start: 64%; }
.f5 { background: var(--bone); color: var(--black); }   .f5 .tab { inset-inline-end: 4%; }
.folder-body { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; padding: 2rem; }
.today-line { font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  a.folder:hover .tab, .f5 .tab:hover { transform: translateY(-6px); }
}

/* ---------- chapters ---------- */
.chapter { position: relative; }

/* about: inset panel, port-shaped portrait (the circle of a laparoscope port) */
.about { background: var(--bone); color: var(--black); padding: 20px; }
.panel { position: relative; min-height: 110svh; background: var(--espresso); color: var(--white); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; padding: 56px; }
.panel-head { grid-column: 1; color: var(--bone); font-size: var(--step-head); line-height: 1.2; }
.panel-text { grid-column: 2; grid-row: 1 / span 2; justify-self: end; width: min(100%, 360px); display: flex; flex-direction: column; gap: 3.5rem; align-items: flex-start; }
.sub { font-size: var(--step-lead); font-weight: 800; margin-bottom: 0.75rem; color: var(--gold); }
.panel-text p { font-size: var(--step-body); line-height: 1.7; }
.port-mask { position: absolute; inset-inline-start: 56px; bottom: -8vw; width: 38vw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--gold); }
.port-mask img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

/* conditions: index with preview */
.conditions { background: var(--black); color: var(--white); padding-block: clamp(6rem, 12vw, 11rem); min-height: 90svh; }
.cond-grid { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: start; }
.cond-list .head { margin-bottom: 3rem; }
.index li { position: relative; }
.index a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1.25rem; padding-block: 0.85rem; text-decoration: none; transition: opacity var(--t-ui) ease, color var(--t-ui) ease; }
.row-name { font-size: var(--step-head); font-weight: 800; line-height: 1.25; }
.row-note { font-size: var(--step-body); color: var(--soft-light); }
/* On wide screens the note travels to the preview caption, so each row stays one line. */
@media (min-width: 761px) { .row-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } }
.preview-note { display: block; font-size: var(--step-lead); font-weight: 600; color: var(--white); margin-bottom: 0.25rem; }
.index.is-pointing a { opacity: 0.32; }
.index.is-pointing li.is-active a { opacity: 1; color: var(--gold); }
.inline-prev { display: none; }
.preview { position: sticky; top: 8vh; }
.preview img, .preview video { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--black-2); transition: opacity var(--t-ui) ease; }
.preview img.is-swapping { opacity: 0; }
.preview [hidden] { display: none; }
.preview figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--soft-light); }

/* journey: tiles that grow */
.journey { background: var(--gold); color: var(--black); padding-block: clamp(6rem, 11vw, 10rem); min-height: 100svh; }
.tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 10px; row-gap: 1.5rem; align-items: end; }
.journey-head { grid-column: 1 / span 7; grid-row: 1; align-self: start; font-size: var(--step-head); }
.tile { grid-row: 2; }
.t1 { grid-column: 1 / span 3; }
.t2 { grid-column: 4 / span 4; }
.t3 { grid-column: 8 / span 5; grid-row: 1 / span 2; }
.tile-img { overflow: hidden; }
.t1 .tile-img { height: 30vh; background: var(--gold-2); }
.t2 .tile-img { height: 44vh; background: var(--bone); }
.t3 .tile-img { height: 60vh; background: var(--black); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-soft); }
.tile figcaption { padding-top: 1rem; display: grid; gap: 0.35rem; }
.stage { font-size: var(--step-lead); font-weight: 800; }
.tile figcaption span:last-child { font-size: var(--step-body); line-height: 1.6; max-width: 34ch; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile-img img { transform: scale(1.04); } }

/* reviews: Google reviews as printed slips */
.reviews { background: var(--espresso); color: var(--white); padding-top: clamp(6rem, 11vw, 10rem); overflow: hidden; min-height: 100svh; }
.reviews .head { font-size: var(--step-head); }
.reviews-lead { margin-top: 1rem; color: var(--soft-light); }
.slips { position: relative; display: flex; justify-content: center; align-items: flex-start; margin-top: 4rem; padding-inline: 4vw; }
.slip { position: relative; width: 320px; flex: none; background: var(--bone); color: var(--black); padding: 2.2rem 1.6rem 2.6rem; clip-path: polygon(0 3%, 4% 0, 8% 3%, 12% 0, 16% 3%, 20% 0, 24% 3%, 28% 0, 32% 3%, 36% 0, 40% 3%, 44% 0, 48% 3%, 52% 0, 56% 3%, 60% 0, 64% 3%, 68% 0, 72% 3%, 76% 0, 80% 3%, 84% 0, 88% 3%, 92% 0, 96% 3%, 100% 0, 100% 97%, 96% 100%, 92% 97%, 88% 100%, 84% 97%, 80% 100%, 76% 97%, 72% 100%, 68% 97%, 64% 100%, 60% 97%, 56% 100%, 52% 97%, 48% 100%, 44% 97%, 40% 100%, 36% 97%, 32% 100%, 28% 97%, 24% 100%, 20% 97%, 16% 100%, 12% 97%, 8% 100%, 4% 97%, 0 100%); }
.s1 { min-height: 440px; transform: rotate(-4deg); margin-top: 2rem; }
.s2 { min-height: 520px; transform: rotate(2deg); margin-inline: -40px; z-index: 1; }
.s3 { min-height: 600px; transform: rotate(5deg); margin-top: 3rem; margin-bottom: -120px; }
.slip-who { font-weight: 800; font-size: var(--step-lead); text-align: center; max-width: none; }
.slip-when { text-align: center; font-size: var(--step-small); color: var(--soft-dark); max-width: none; }
.stars { text-align: center; color: var(--gold-2); font-size: var(--step-small); font-weight: 600; color: var(--black); margin: 0.75rem 0 1.25rem; max-width: none; }
.slip p:last-child { font-size: var(--step-body); line-height: 1.75; }

/* schedule: day tabs, banded agenda */
.schedule { background: var(--bone); color: var(--black); padding-block: clamp(6rem, 11vw, 10rem); }
.sched-head { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }

.soft { color: var(--soft-dark); }
.agenda { display: grid; grid-template-columns: 150px 1fr; gap: 40px; margin-top: 56px; }
.days { display: grid; gap: 6px; align-content: start; }
.day { display: grid; align-content: center; height: 64px; padding-inline: 1rem; background: var(--bone-2); text-align: start; border-radius: var(--radius); transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.day:active { transform: scale(0.97); }
.day b { font-size: var(--step-body); font-weight: 800; }
.day small { font-size: var(--step-small); color: var(--soft-dark); }
.day[aria-selected="true"] { background: var(--black); color: var(--white); }
.day[aria-selected="true"] small { color: var(--soft-light); }
.day.is-off { color: var(--soft-dark); }
@media (hover: hover) and (pointer: fine) { .day:not([aria-selected="true"]):hover { background: #d8cdbb; } }
.bands { display: grid; gap: 4px; }
.band { display: grid; grid-template-columns: 9rem 1fr auto; align-items: center; gap: 1rem 2rem; min-height: 76px; padding: 0.75rem 1.25rem; background: var(--bone-2); }
.band:nth-child(even) { background: #d9cfbf; }
.b-time { font-size: var(--step-lead); font-weight: 800; font-variant-numeric: tabular-nums; }
.b-title { display: grid; font-size: var(--step-body); font-weight: 600; }
.b-title small { font-size: var(--step-small); font-weight: 400; color: var(--soft-dark); }
.b-book { justify-self: end; font-weight: 600; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 0.07em; padding: 0.5rem 0; }
.b-now { display: inline-block; margin-inline-start: 0.5rem; color: #157a3c; font-weight: 600; font-size: var(--step-small); }
.band.empty { grid-template-columns: 1fr; font-size: var(--step-body); }
.sched-note { margin-top: 1.5rem; color: var(--soft-dark); }

/* booking: photo strip and the three-cell bar */
.book { background: var(--black); color: var(--white); min-height: 80svh; padding-bottom: clamp(5rem, 9vw, 8rem); overflow: hidden; }
.strip { padding-top: 48px; overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; }
.strip-track img { height: 150px; width: auto; object-fit: cover; }
.strip-track img:nth-child(3n+1) { aspect-ratio: 3 / 4; }
.strip-track img:nth-child(3n+2) { aspect-ratio: 1; }
.strip-track img:nth-child(3n) { aspect-ratio: 3 / 2; }
.book-top { display: grid; grid-template-columns: 1fr auto; gap: var(--gutter); align-items: end; margin-top: 72px; }
.sign { width: clamp(9rem, 16vw, 14rem); }
.sign img { aspect-ratio: 3 / 4; object-fit: cover; }
.sign figcaption { margin-top: 0.5rem; color: var(--soft-light); }
.bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 40px; }
.cell { display: block; height: 96px; background: var(--black-2); border-radius: var(--radius); transition: background-color var(--t-ui) ease; }
.cell input, .cell select { width: 100%; height: 100%; background: transparent; border: 0; text-align: center; text-align-last: center; font-size: var(--step-body); color: var(--white); appearance: none; padding: 0 1rem; }
.cell input::placeholder { color: var(--soft-light); opacity: 1; }
.cell select option { color: var(--black); }
.cell:focus-within { background: #3a322a; }
.cell input:focus-visible, .cell select:focus-visible { outline: none; }
.submit { background: var(--accent); color: var(--accent-ink); font-size: var(--step-lead); font-weight: 800; border: 0; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: #3ee07a; } }
.bar-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 0.75rem; color: var(--soft-light); }
.bar-notes p:last-child { grid-column: 3; }

/* faq: one band per question */
.faq-title { background: var(--gold); color: var(--black); min-height: 40svh; display: flex; align-items: flex-end; padding-bottom: 2.5rem; }
.faq-title h2 { font-size: var(--step-display); line-height: 1.1; }
.qa { background: var(--bone); color: var(--black); padding-block: 56px; }
.qa:nth-child(odd) { background: var(--bone-2); }
.qa-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.qa h3 { grid-column: 1 / span 5; font-size: var(--step-lead); line-height: 1.35; }
.qa p { grid-column: 7 / span 6; font-size: var(--step-body); line-height: 1.75; }

/* footer: the phone number is the headline */
.footer { background: var(--gold); color: var(--black); min-height: 90svh; display: flex; flex-direction: column; padding-block: 40px 28px; }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.foot-notes { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; font-size: var(--step-small); }
.call-line { margin-top: auto; display: block; font-size: var(--step-display); font-weight: 800; line-height: 1.05; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color var(--t-hover) ease; }
.call-line span { display: inline-block; }
@media (hover: hover) and (pointer: fine) { .call-line:hover { color: var(--white); } }
.foot-meta { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; margin-top: 1.5rem; font-size: var(--step-small); }
.foot-meta p:nth-child(2) { text-align: center; }
.foot-meta p:last-child { text-align: end; }
.footer .link-plain:hover { color: var(--white); }

/* Phone dock: call and book stay under the thumb once the hero has scrolled away. */
.dock { display: none; }
@media (max-width: 760px) {
  .dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--black); transform: translateY(110%); transition: transform var(--t-ui) var(--ease-out); }
  .dock.is-on { transform: none; }
  .dock a { display: grid; place-items: center; min-height: 52px; font-weight: 800; font-size: var(--step-body); text-decoration: none; transition: transform var(--t-press) var(--ease-out); }
  .dock a:active { transform: scale(0.97); }
  .dock-call { background: var(--black-2); color: var(--white); }
  .dock-book { background: var(--accent); color: var(--accent-ink); }
  .footer { padding-bottom: 96px; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .wordmark { grid-column: 1; }
  .top-call { grid-column: 2; }
  .topbar { padding-block: 1rem; }
  .hero-copy { padding-top: 1.5rem; }
  .hero-sub { margin-top: 0.75rem; }
  .display { font-size: 15vw; }
  .hero-sub { font-size: var(--step-body); }
  .folders { min-height: 0; flex: 1 0 300px; margin-top: 1.75rem; }
  .folder { inset-inline: 0; top: calc(var(--o) * 42px + 32px); }
  .folder .tab { height: 34px; font-size: var(--step-small); padding: 0 1.2rem; }
  .f1 .tab { inset-inline-start: 2%; } .f2 .tab { inset-inline-start: 34%; } .f3 .tab { inset-inline-start: 64%; }
  .f4 .tab { inset-inline-start: 6%; } .f5 .tab { inset-inline-end: 4%; }
  .folder-body { padding: 1.25rem; }
  .folder-body .button { width: 100%; }

  .about { padding: 10px; }
  .panel { grid-template-columns: 1fr; padding: 28px 20px 0; min-height: auto; }
  .panel-head { font-size: 8.5vw; }
  .panel-text { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; margin-top: 2.5rem; gap: 2.25rem; }
  .port-mask { position: relative; inset: auto; width: 86vw; margin: 3rem auto -21vw; }

  .cond-grid { grid-template-columns: 1fr; }
  .preview { display: none; }
  .index li { display: grid; grid-template-columns: 1fr 76px; gap: 1rem; align-items: center; padding-block: 0.4rem; }
  .inline-prev { display: block; width: 76px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
  .row-name { font-size: var(--step-lead); }
  .row-note { font-size: var(--step-small); }

  .tiles { grid-template-columns: 1fr; }
  .journey-head, .t1, .t2, .t3 { grid-column: 1; grid-row: auto; }

  .t1 .tile-img { height: 34vw; } .t2 .tile-img { height: 46vw; } .t3 .tile-img { height: 62vw; }
  .tile { margin-top: 28px; }

  .slips { flex-direction: column; align-items: stretch; padding-inline: 0; margin-top: 2.5rem; padding-bottom: 4rem; }
  .slip { width: 90%; min-height: 0; margin: 0; padding: 2rem 1.25rem 2.4rem; }
  .slip-who { font-size: var(--step-body); }
  .s1 { transform: rotate(-1.5deg); align-self: flex-start; }
  .s2 { transform: rotate(1.5deg); align-self: flex-end; margin-top: -20px; margin-inline: 0; }
  .s3 { transform: rotate(-1.5deg); align-self: flex-start; margin-top: -20px; margin-bottom: 0; }

  .agenda { grid-template-columns: 1fr; gap: 16px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .day { height: 60px; padding-inline: 0.5rem; text-align: center; }
  .band { grid-template-columns: 1fr; gap: 0.35rem; padding: 16px; }
  .b-book { justify-self: start; }

  .book-top { grid-template-columns: 1fr; }

  .sign { width: 40vw; }
  .strip { padding-top: 32px; }
  .strip-track img { height: 110px; }
  .bar { grid-template-columns: 1fr; }
  .cell { height: 60px; }
  .bar-notes { grid-template-columns: 1fr; }
  .bar-notes p:last-child { grid-column: 1; }

  .faq-title { min-height: 30svh; }
  .faq-title h2 { font-size: 13vw; }
  .qa { padding-block: 32px; }
  .qa-grid { grid-template-columns: 1fr; row-gap: 0.75rem; }
  .qa h3, .qa p { grid-column: 1; }


  .call-line { font-size: 12vw; }
  .foot-meta { grid-template-columns: 1fr; }
  .foot-meta p:nth-child(2), .foot-meta p:last-child { text-align: start; }
}

/* ---------- motion (content stays visible without script) ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(18px); animation: rise var(--t-reveal) var(--ease-out) forwards; animation-delay: calc(var(--i, var(--o, 0)) * 90ms + 300ms); }
  .js .folder[data-rise] { transform: translateY(40px); animation-delay: calc(var(--o) * 80ms + 450ms); }
  .js .f5 { opacity: 0; transform: translateY(60px); animation: rise 900ms var(--ease-out) 820ms forwards; }
  .js .lines [data-line] { transform: translateY(105%); animation: line-up 1000ms var(--ease-out) 150ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .slip[data-reveal] { transform: translateY(60px) rotate(0deg); }
  .js .slip.s1.is-in { transform: rotate(-4deg); }
  .js .slip.s2.is-in { transform: rotate(2deg); }
  .js .slip.s3.is-in { transform: rotate(5deg); }
  .js .index li { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--n, 0) * 60ms); }
  .js .index.is-in li { opacity: 1; transform: none; }
  .strip-track { animation: marquee 60s linear infinite; }
  @supports (animation-timeline: view()) {
    .drift { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .js .slip.s1.is-in { transform: rotate(-1.5deg); }
  .js .slip.s2.is-in { transform: rotate(1.5deg); }
  .js .slip.s3.is-in { transform: rotate(-1.5deg); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes line-up { to { transform: none; } }
@keyframes marquee { to { transform: translateX(50%); } }
@keyframes drift { from { transform: scale(1.08) translateY(-3%); } to { transform: scale(1.08) translateY(3%); } }
