/* /ledger (C3): the receipt on the water beside the phone in the car, the six acts as diptychs alternating
   shores and tones, the plan teaser. Text hover: the wavy underline flattens and the phrase's figure gains its tide mark. */

/* ---------- shared: the flatten phrase, the level ---------- */
.lg-flat { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lg-flat[data-hover="flatten"] { background-size: 18px 6px; padding-bottom: .08em; }
.band--deep .lg-flat[data-hover="flatten"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4' viewBox='0 0 12 4'%3E%3Cpath d='M0 2 C 2 0, 4 0, 6 2 S 10 4, 12 2' fill='none' stroke='%23EDF0F3' stroke-opacity='.7' stroke-width='1.2'/%3E%3C/svg%3E");
}
.band--deep .lg-flat[data-hover="flatten"]:hover, .band--deep .lg-flat[data-hover="flatten"]:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='4' viewBox='0 0 12 4'%3E%3Cpath d='M0 3 H12' fill='none' stroke='%23EDF0F3' stroke-width='1.2'/%3E%3C/svg%3E");
}
.lg-hero__h1 .lg-flat[data-hover="flatten"] { background-size: 30px 10px; padding-bottom: .1em; }

.c3-level { position: relative; height: 40px; color: currentColor; }
.c3-level .rc-level { width: 100%; height: 40px; overflow: visible; }
.c3-level__float { position: absolute; left: 50%; top: 10px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--iris); transform: scale(0); box-shadow: 0 0 0 0 rgba(181, 107, 255, .3); }
.is-in .c3-level__float { animation: c3-float .56s var(--ease-slack) 1.4s forwards, c3-pulse 6s var(--ease-swell) 2.2s infinite; }
@keyframes c3-float { to { transform: scale(1); } }
@keyframes c3-pulse { 0%, 84% { box-shadow: 0 0 0 0 rgba(181, 107, 255, .3); } 92% { box-shadow: 0 0 0 7px rgba(181, 107, 255, .3); } 100% { box-shadow: 0 0 0 12px rgba(181, 107, 255, 0); } }

/* ---------- the opening: deep water, the receipt scene, the phone in the car ---------- */
.lg-hero { padding-top: clamp(20px, 2.2vw, 44px); padding-bottom: 0; display: flex; flex-direction: column; }
.lg-hero__h1 { position: relative; z-index: 3; color: var(--mist); padding-left: var(--gutter); margin-bottom: clamp(14px, 1.8vw, 34px); }
.lg-hero__shores { flex: 1 1 auto; }
@media (min-width: 900px) {
  .lg-hero { min-height: calc(100vh - var(--header-h)); }
}

.lg-scene { position: relative; overflow: hidden; min-height: clamp(420px, 60vh, 1000px); border-radius: 0 4px 0 0;
  background: radial-gradient(120% 90% at 50% 62%, #1B2B44 0%, #16243A 30%, #0E1826 72%); }
.lg-scene__poster { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1100px; transition: opacity .9s var(--ease-swell); }
.lg-scene__rings { position: absolute; left: -10%; width: 120%; top: 34%; height: 66%; fill: none; stroke: var(--mist); stroke-width: 1; overflow: visible; }
.lg-scene__rings ellipse { stroke-opacity: .12; transform-origin: 300px 170px; transform-box: view-box; animation: lg-ring 7.2s var(--ease-swell) infinite; }
.lg-scene__rings ellipse:nth-child(2) { animation-delay: -1.8s; }
.lg-scene__rings ellipse:nth-child(3) { animation-delay: -3.6s; }
.lg-scene__rings ellipse:nth-child(4) { animation-delay: -5.4s; }
@keyframes lg-ring { 0% { transform: scale(.72); stroke-opacity: 0; } 20% { stroke-opacity: .16; } 100% { transform: scale(1.18); stroke-opacity: 0; } }
.lg-scene__paper { position: relative; width: clamp(150px, 30%, 300px); margin-top: 6%; transform: rotateX(54deg) rotateZ(-16deg); transform-style: preserve-3d;
  filter: drop-shadow(0 36px 26px rgba(0, 0, 0, .5)); animation: lg-bob 7s ease-in-out infinite; }
@keyframes lg-bob { 0%, 100% { transform: rotateX(54deg) rotateZ(-16deg) translateZ(0); } 50% { transform: rotateX(52deg) rotateZ(-15deg) translateZ(6px); } }
.rs-receipt { width: 100%; height: auto; overflow: visible; }
.rs-t { font-family: var(--font-text); fill: #23272D; font-variant-numeric: tabular-nums lining-nums; }
.rs-h { font-family: var(--font-head); fill: var(--raven); font-variation-settings: "wdth" 88; }
.rs-total { fill: var(--raven); }
.rs-dash { stroke: #23272D; stroke-width: 1.2; stroke-dasharray: 4 5; fill: none; opacity: .6; }
.rs-crease { stroke: rgba(18, 21, 25, .16); stroke-width: 1; }
.rs-bars rect { fill: #23272D; opacity: .8; }
.rs-fibre { mix-blend-mode: multiply; opacity: .5; }
.lg-scene__host { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease-swell); }
.lg-scene__host canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.lg-scene.is-live .lg-scene__host { opacity: 1; }
.lg-scene.is-live .lg-scene__poster { opacity: 0; }
.lg-scene__fig { position: absolute; left: clamp(20px, 2.6vw, 56px); bottom: clamp(18px, 2.4vw, 48px); z-index: 3; color: var(--mist); pointer-events: none;
  transition: opacity .6s var(--ease-slack), filter .6s var(--ease-slack), transform .6s var(--ease-slack); }
.lg-scene__fig .fig { text-shadow: 0 2px 24px rgba(14, 24, 38, .6); }
.lg-scene.is-live .lg-scene__fig { opacity: var(--fig-o, .38); filter: blur(var(--fig-b, 5px)); transform: translateY(var(--fig-y, 6px)); }

/* the right shore: the phone held in the car beside the intro */
.lg-hero__side { display: flex; }
.lg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 56px); align-items: stretch; width: 100%; padding-bottom: clamp(24px, 3vw, 60px); }
.lg-hero__intro { align-self: center; }
.lg-hero__intro p { margin: 0; color: var(--mist); font-size: clamp(1.0625rem, 1.12vw, 1.5rem); line-height: 1.52; }

.carphone { margin: 0; position: relative; min-height: clamp(420px, 58vh, 980px); display: grid; place-items: center; perspective: 1300px; isolation: isolate; overflow: hidden; border-radius: 4px; }
.carphone__car { position: absolute; inset: 0; z-index: -1; }
.carphone__car picture { position: absolute; inset: 0; }
.carphone__seat { width: 100%; height: 100%; object-fit: cover; filter: blur(2.5px) saturate(.6) brightness(.58) contrast(1.06); transform: scale(1.1); }
.carphone__car::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(55% 42% at 52% 44%, rgba(181, 107, 255, .2), rgba(181, 107, 255, 0) 70%),
              linear-gradient(180deg, rgba(14, 24, 38, .25) 0%, rgba(14, 24, 38, .38) 58%, rgba(14, 24, 38, .94) 100%); }
.carphone__hold { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 9deg)) rotateY(var(--ry, -18deg)) rotateZ(var(--rz, 4deg)); transition: transform 1.1s var(--ease-slack); }
.carphone__device { --ph: clamp(340px, 50vh, 760px); height: var(--ph); width: calc(var(--ph) * .4657 + 20px); padding: 10px; border-radius: 46px; position: relative;
  background: linear-gradient(152deg, #59606B 0%, #23272E 16%, #0C0E11 52%, #1D2128 82%, #4A515C 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 0 0 3px #0A0B0D,
    1px 1px 0 #1E2227, 2px 2px 0 #1B1F24, 3px 3px 0 #191C21, 4px 4px 0 #16191D, 5px 5px 0 #14161A, 6px 6px 0 #121417, 7px 7px 0 #101215,
    24px 40px 50px rgba(0, 0, 0, .55), 0 0 90px rgba(181, 107, 255, .14);
  -webkit-box-reflect: below 10px linear-gradient(transparent 66%, rgba(255, 255, 255, .16)); }
.carphone__screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--mist); }
.carphone__video { width: 100%; height: 100%; object-fit: cover; }
.carphone__glare { position: absolute; inset: -30% -60%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .26) 47%, rgba(255, 255, 255, .06) 53%, rgba(255, 255, 255, 0) 60%);
  transform: translateX(var(--glare, -12%)); }
.carphone__thumb { position: absolute; left: -16px; top: 58%; width: 38px; height: 104px; border-radius: 20px 16px 22px 24px; transform: translateZ(14px) rotate(-10deg);
  background: linear-gradient(95deg, #14171B 0%, #2C3036 55%, #3A3F46 70%, #22262B 100%); box-shadow: 0 14px 22px rgba(0, 0, 0, .5), inset -2px 0 0 rgba(255, 255, 255, .06); }

/* ---------- the six acts ---------- */
.act .shores { align-items: stretch; }
.act__stage { position: relative; display: grid; place-items: center; overflow: hidden; perspective: 1800px;
  padding: clamp(28px, 4vw, 96px) clamp(22px, 3.4vw, 88px); min-height: clamp(360px, 36vw, 900px); background: var(--water); }
.act--media-left .act__stage, .act--media-left .act__photo { border-radius: 0 4px 4px 0; }
.act--media-right .act__stage, .act--media-right .act__photo { border-radius: 4px 0 0 4px; }
.band--deep .act__stage { background: var(--deep-2); box-shadow: inset 0 0 0 1px var(--rule-deep); }
.c3-water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.c3-water path { stroke: rgba(60, 69, 80, .1); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.band--deep .c3-water path { stroke: rgba(237, 240, 243, .05); }
.act__stage::after { content: ''; position: absolute; left: 50%; bottom: 12%; width: 70%; height: 18%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(14, 24, 38, .22), rgba(14, 24, 38, 0)); filter: blur(8px); }
.band--deep .act__stage::after { background: radial-gradient(closest-side, rgba(181, 107, 255, .16), rgba(181, 107, 255, 0)); }
.act__screen { margin: 0; position: relative; z-index: 1; width: 100%; border-radius: 6px; overflow: hidden; background: var(--salt);
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(0); transform-origin: var(--tox, 50%) 55%;
  box-shadow: 0 60px 90px -44px rgba(14, 24, 38, .55), 0 22px 40px -26px rgba(14, 24, 38, .42), 0 0 0 1px rgba(18, 21, 25, .12); will-change: transform; }
.band--deep .act__screen { box-shadow: 0 70px 100px -40px rgba(0, 0, 0, .72), 0 0 0 1px rgba(237, 240, 243, .16), 0 0 80px rgba(181, 107, 255, .1); }
.act__screen .prod-shot { display: block; width: 100%; height: auto; }
.act__glare { position: absolute; inset: 0 -40%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, 0) 57%); transform: translateX(var(--glare, 60%)); }

/* confirm: the requests screen cropped on its three actions */
.act__stage--crop .act__screen { width: 92%; }
.act__crop { position: relative; width: 100%; aspect-ratio: 500 / 380; overflow: hidden; background: var(--mist); }
.act__crop .act__crop-img { position: absolute; left: -102%; top: -31.58%; width: 288%; max-width: none; height: auto; }
.act__press { position: absolute; left: 18.8%; top: 59.2%; width: 30.4%; height: 11%; transform: translate(-50%, -50%); border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 111, 177, .6); animation: act-press 3.2s var(--ease-slack) infinite; }
@keyframes act-press { 0% { box-shadow: 0 0 0 0 rgba(255, 111, 177, .6); } 45% { box-shadow: 0 0 0 16px rgba(255, 111, 177, 0); } 100% { box-shadow: 0 0 0 16px rgba(255, 111, 177, 0); } }

/* settle: the settled row lit on the ledger */
.act__settled { position: absolute; left: 10.4%; width: 79.4%; top: 72.1%; height: 6.5%; border-radius: 3px; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px rgba(90, 63, 216, .7), 0 0 0 0 rgba(220, 226, 232, 0); background: rgba(90, 63, 216, .07);
  transition: box-shadow 1.1s var(--ease-swell), background 1.1s var(--ease-swell); }
.act__settled.is-lit { box-shadow: inset 0 0 0 1.5px rgba(90, 63, 216, .8), 0 0 0 999px rgba(220, 226, 232, .42), 0 0 28px 6px rgba(181, 107, 255, .22); background: rgba(228, 224, 247, .38); }
.act__settled::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--slate); transform: scaleX(0); transform-origin: left; transition: transform .56s var(--ease-slack) .5s; }
.act__settled.is-lit::after { transform: scaleX(1); }
.act__settled-mark { position: absolute; right: -5.2%; top: 50%; transform: translate(50%, -50%) scale(.6); opacity: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  background: var(--iris); color: var(--mist); transition: transform .56s var(--ease-slack) .8s, opacity .3s .8s; }
.act__settled-mark .rc-ico { width: 18px; height: 18px; color: var(--mist); }
.act__settled.is-lit .act__settled-mark { opacity: 1; transform: translate(50%, -50%) scale(1); }

/* question: the school office photograph edge to centre */
.act__photo { min-height: clamp(360px, 36vw, 900px); }

/* the caption shore */
.act__copy { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2vw, 40px); padding-block: clamp(8px, 1.4vw, 32px); }
.act--media-left .act__copy { padding-right: 0; }
.act__mark { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: clamp(12px, 1.2vw, 22px); border-bottom: 1px solid var(--rule); }
.act__mark .rc-ico { width: clamp(32px, 2.6vw, 52px); height: clamp(32px, 2.6vw, 52px); color: var(--iris); stroke-width: 1.25; }
.band--deep .act__mark .rc-ico { color: var(--mist); }
.act__fig { margin: 0; line-height: 1; }
.act__fig .fig { display: inline-block; }
.act__lead { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.625rem, 2.35vw, 3.75rem); line-height: 1.1; letter-spacing: -.01em;
  font-variation-settings: "wdth" 86, "opsz" 96; text-wrap: balance; }
.act__prose { font-size: clamp(1.0625rem, 1.02vw, 1.375rem); line-height: 1.56; }
.band--deep .act__prose { color: var(--water); }
@media (min-width: 2200px) { .act__prose { column-width: 40ch; } }

/* ---------- the plan teaser ---------- */
.lg-teaser__shores { align-items: center; }
.lg-teaser__line { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: clamp(1.75rem, 3vw, 4.5rem); line-height: 1.1; letter-spacing: -.01em;
  font-variation-settings: "wdth" 86, "opsz" 96; text-wrap: balance; }
.lg-teaser__line .link { font: inherit; }
.lg-teaser__buy { display: grid; gap: clamp(14px, 1.6vw, 28px); justify-items: start; }
.lg-teaser__water { width: 100%; color: var(--raven); }
.lg-teaser__price { margin: 0; font-size: clamp(1.0625rem, 1.3vw, 1.75rem); line-height: 1.35; font-family: var(--font-head); font-variation-settings: "wdth" 90; }
.lg-teaser__cta { margin: 0; }

/* ---------- phones and tablets ---------- */
@media (max-width: 899.98px) {
  .lg-hero__h1 { padding-left: 0; }
  .lg-scene { min-height: 96vw; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .lg-scene__paper { width: 42%; }
  .lg-hero__grid { grid-template-columns: 1fr; }
  .carphone { min-height: 128vw; margin-inline: calc(-1 * var(--gutter)); border-radius: 0; }
  .carphone__device { --ph: min(112vw, 560px); }
  .act__stage, .act__photo { margin-inline: calc(-1 * var(--gutter)); border-radius: 0 !important; min-height: 0; }
  .act__photo { min-height: 72vw; }
  .act__stage { padding: 28px 18px; }
  .act__copy { padding: 0; }
  .act__copy { order: -1; }   /* the heading shore first */
  .lg-teaser__buy { justify-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .lg-scene__rings ellipse, .lg-scene__paper, .act__press { animation: none; }
  .act__settled { box-shadow: inset 0 0 0 1.5px rgba(90, 63, 216, .8), 0 0 0 999px rgba(220, 226, 232, .42); background: rgba(228, 224, 247, .38); }
  .act__settled::after, .act__settled .act__settled-mark { transform: none; opacity: 1; }
  .act__settled .act__settled-mark { transform: translate(50%, -50%); }
  .carphone__hold { transition: none; }
  .c3-level__float { transform: none; }
}
html.rc-reduced .lg-scene__rings ellipse, html.rc-reduced .lg-scene__paper, html.rc-reduced .act__press { animation: none; }
html.rc-reduced .act__settled { box-shadow: inset 0 0 0 1.5px rgba(90, 63, 216, .8), 0 0 0 999px rgba(220, 226, 232, .42); background: rgba(228, 224, 247, .38); }
html.rc-reduced .act__settled::after { transform: none; }
html.rc-reduced .act__settled .act__settled-mark { opacity: 1; transform: translate(50%, -50%); }
html.rc-reduced .c3-level__float { transform: none; }

/* the hovered phrase's figure: its tide mark drawn again, the hairline in iris (the glow on deep) */
.act__fig .tide.is-hot::after { background: var(--iris); height: 2px; }
.band--deep .act__fig .tide.is-hot::after { background: var(--glow); }
