/* Fira Sans + Fira Code (AirNav Radar UI fonts), self-hosted, Latin subset */
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/FiraSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fira Code"; src: url("/assets/fonts/FiraCode-Variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* Following Flights animation (AirNav Radar)
   Rebuilt from Figma: 54595:51608 (open sheet), 54766:5266 (add flight), 54595:58219 (open card).
   All positions are converted from the 402 × 874 pt Figma frames into percentages,
   inside a CSS-drawn iPhone 17 Pro frame, so everything scales freely. */

.ff-demo { margin-top: var(--section-space); }
.ff-eyebrow { margin-bottom: 12px; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
.ff-demo__copy .ff-lead { margin-top: 24px; }
.ff-sub { margin-top: 16px; font-size: 16px; line-height: 1.4; }
.ff-toggle { margin-top: 40px; }
/* Play / pause buttons: 32px pill with a soft shadow; the icon shows the current state (pause while playing, play while paused) */
.demo-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px 0 10px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--ink); font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1; letter-spacing: .2px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 10px rgba(0, 0, 0, .1); transition: transform .25s ease, box-shadow .25s ease; }
.demo-btn:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .08), 0 8px 18px rgba(0, 0, 0, .14); }
.demo-btn:active { transform: translateY(0); transition-duration: .1s; }
.demo-btn__ic { width: 14px; height: 14px; flex: none; fill: currentColor; }
/* icon swap: the outgoing shape turns and shrinks away while the incoming one turns and grows in */
.demo-btn { overflow: hidden; white-space: nowrap; }
.demo-btn__ic path { transform-box: fill-box; transform-origin: center; transition: opacity .2s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.demo-btn__play { opacity: 0; transform: rotate(-90deg) scale(.4); }
.demo-btn[aria-pressed="true"] .demo-btn__pause { opacity: 0; transform: rotate(90deg) scale(.4); }
.demo-btn[aria-pressed="true"] .demo-btn__play { opacity: 1; transform: none; }
.demo-btn__l { display: inline-block; }
:root[data-theme="dark"] .demo-btn { background: var(--panel); box-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 2px 10px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .demo-btn:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 8px 18px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: reduce) { .demo-btn:hover, .demo-btn:active { transform: none; } .demo-btn__ic path { transition: none; } }
.ff-credit { margin-top: 16px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.ff-credit a { text-decoration: underline; text-underline-offset: 2px; }

/* Topic chips: compact pills (12px text, 6 × 10 padding) with a 14px line icon, after the paragraphs */
:is(.ff-demo__copy, .dz-copy) .ff-chips { gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
:is(.ff-demo__copy, .dz-copy) .ff-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; cursor: default; transition: color .2s, border-color .2s, background-color .2s; }
:is(.ff-demo__copy, .dz-copy) .ff-chips .chip:hover { color: var(--ink); border-color: var(--muted); background: var(--line); }
.chip__icon { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Work carousel: one visible slide at a time, controls only when there are 2+ slides */
.ff-slide[hidden] { display: none; }
.ff-carousel__nav { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.ff-carousel__nav[hidden] { display: none; }
.ff-carousel__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: background .2s; }
.ff-carousel__btn:hover { background: var(--line); }
.ff-carousel__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ff-carousel__count { min-width: 3.5em; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
/* Stage: the visual is centred in its columns (copy 1–5, visual 7–12 for the phone and the portrait);
   the play / pause button stays centred under it. */
.ff-demo__stage { display: grid; justify-content: center; justify-items: center; align-content: start; }
/* the Investir.pt Safari window sizes itself from the stage width (86%), so it keeps the full-width column */
.ff-demo__stage:has(> .sf) { justify-content: stretch; }

/* ---------- Device frame: iPhone 18 Pro ----------
   Rebuilt in CSS from the "iPhone 18 Pro Mockups" Figma community file by Max Rudberg (maxrudberg.com),
   component "iPhone 18 Pro Silver" (13:88). Device 439 × 916 pt, screen 402 × 874 at (19, 21), 57pt screen radius.
   Units: 1u = 1pt of the device. Finish: data-color on .ff-device = silver (default) | black | burgundy | glacier */
.ff-demo__stage { container-type: inline-size; }
.ff-device {
  --w: max(280px, min(439px, 100cqw, calc((100svh - var(--nav-h) - 96px) * 439 / 916)));
  --u: calc(var(--w) / 439);
  /* Silver */
  --band: #979797; --hl: #ffffff; --hl-w: 4; --edge: #5a5a5a;
  --b-end: #a7a7a7; --b-hi: #ffffff; --b-body: #ababab; --b-low: #808080; --b-hi2: #f1f1f1;
  --ant-dark: #6f6f6f; --ant-light: #d2d2d2;
  position: relative;
  width: var(--w);
  aspect-ratio: 439 / 916;
}
.ff-device[data-color="black"]    { --band: #121112; --hl: #9a979a; --hl-w: 3; --edge: #0d0c0c; --b-end: #252325; --b-hi: #f2eef0; --b-body: #2f2d2f; --b-low: #151415; --b-hi2: #7c787b; --ant-dark: #2f2c2e; --ant-light: #69656a; }
.ff-device[data-color="burgundy"] { --band: #331c20; --hl: #dca6af; --hl-w: 3; --edge: #301a1e; --b-end: #4f2d33; --b-hi: #fff4f6; --b-body: #683f47; --b-low: #3a2024; --b-hi2: #b8808a; --ant-dark: #321214; --ant-light: #624143; }
.ff-device[data-color="glacier"]  { --band: #979797; --hl: #fbfeff; --hl-w: 4; --edge: #555e6c; --b-end: #a1aec1; --b-hi: #ffffff; --b-body: #a3aec0; --b-low: #79869b; --b-hi2: #e5f2ff; --ant-dark: #697287; --ant-light: #bac2d5; }

/* every frame part is placed in device points: --x, --y, --fw (width), --fh (height), --r (radius) */
.ff-device > .fd { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--fw) * var(--u)); height: calc(var(--fh) * var(--u)); border-radius: calc(var(--r, 0) * var(--u)); box-sizing: border-box; }

/* hardware buttons: highlight near both ends, as in the mockup */
.fd--btn { background: linear-gradient(to bottom, var(--b-end) 0%, var(--b-end) 2%, var(--b-hi) 3.5%, var(--b-hi) 5.5%, var(--b-body) 8.5%, var(--b-body) 92%, var(--b-low) 93.5%, var(--b-hi2) 95%, var(--b-hi2) 96.7%, var(--b-low) 98%, var(--b-low) 100%); }
.fd--btn-l { box-shadow: inset calc(.6 * var(--u)) 0 calc(.6 * var(--u)) #eaeaea, inset calc(-2.5 * var(--u)) 0 calc(2 * var(--u)) rgba(0, 0, 0, .3); }
.fd--btn-r { box-shadow: inset calc(-.6 * var(--u)) 0 calc(.6 * var(--u)) #eaeaea, inset calc(2 * var(--u)) 0 calc(2 * var(--u)) rgba(0, 0, 0, .3); }
/* aluminum band (6pt, inside stroke) */
.fd--band { border: calc(6 * var(--u)) solid var(--band);
  /* device shadow: a plain box-shadow on the band (a filter on the whole device can leave a 1px seam in Chrome) */
  box-shadow: 0 calc(30 * var(--u)) calc(60 * var(--u)) rgba(0, 0, 0, .16), 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(0, 0, 0, .1); }
/* band highlight: outside stroke on the rim shape, blurred */
.fd--hl { box-shadow: 0 0 0 calc(var(--hl-w) * var(--u)) var(--hl); filter: blur(calc(1.5 * var(--u))); }
/* band edge shade: 1.6pt centred stroke, slightly blurred */
.fd--edge { outline: calc(1.6 * var(--u)) solid var(--edge); outline-offset: calc(-.8 * var(--u)); filter: blur(calc(.5 * var(--u))); }
/* rim + shading and the black bezel */
.fd--rim { background: #262626; box-shadow: inset 0 0 calc(3 * var(--u)) #909090, inset 0 0 calc(.8 * var(--u)) #000; }
.fd--bezel { background: #000; box-shadow: inset 0 0 calc(6 * var(--u)) #303030; }
/* corner shading: four radial darkenings + a slight darkening towards the bottom */
.fd--shade {
  background:
    radial-gradient(calc(54 * var(--u)) calc(110 * var(--u)) at 0 0, rgba(0,0,0,.25), rgba(0,0,0,0)),
    radial-gradient(calc(54 * var(--u)) calc(90 * var(--u)) at 100% 0, rgba(0,0,0,.25), rgba(0,0,0,0)),
    radial-gradient(calc(54 * var(--u)) calc(90 * var(--u)) at 100% 100%, rgba(0,0,0,.25), rgba(0,0,0,0)),
    radial-gradient(calc(54 * var(--u)) calc(90 * var(--u)) at 0 100%, rgba(0,0,0,.25), rgba(0,0,0,0)),
    linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.02) 70%, rgba(0,0,0,.04) 80%, rgba(0,0,0,.13) 92%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}
/* antenna lines in the band */
.fd--ant { background: linear-gradient(to right, var(--ant-dark), var(--ant-light) 65%, var(--ant-dark)); }
/* earpiece slit at the top of the bezel */
.fd--speaker { background: #1f1f1f; box-shadow: 0 calc(1 * var(--u)) calc(1 * var(--u)) rgba(255, 255, 255, .25), inset 0 calc(-.25 * var(--u)) 0 rgba(255, 255, 255, .2); }

/* ---------- Screen ----------
   Each step of the timeline (following-flights.js) sets data-* states plus the
   transition duration (--dur) and easing (--ease) taken from the Figma prototype. */
.ff-phone {
  --dur: 0ms;
  --ease: linear;
  position: absolute;
  left: calc(19 * var(--u)); top: calc(21 * var(--u));
  width: calc(402 * var(--u)); height: calc(874 * var(--u));
  /* 6pt black border: the 402 x 874 screen is scaled to 404 x 876 (1pt more on each side, about 0.5%, invisible),
     with the corner radius concentric with the bezel (68pt, 6pt outside): 62pt */
  transform: scale(1.004975, 1.002288);
  border-radius: calc(62 * var(--u));
  /* clip-path also clips GPU-composited children (backdrop-filter, transforms) that can escape overflow + radius in Chrome */
  clip-path: inset(0 round calc(62 * var(--u)));
  overflow: hidden;
  background: #cfe3c9;
  isolation: isolate;
}
.ff-layer { position: absolute; display: block; max-width: none; }
.ff-fill  { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.ff-phone .ff-sheet, .ff-phone .ff-search, .ff-phone .ff-details, .ff-phone .ff-keyboard,
.ff-phone .ff-dim, .ff-phone .ff-nav--pressed, .ff-phone .ff-fill, .ff-phone .ff-press, .ff-phone .ff-typed,
.ff-phone .ff-list, .ff-phone .ff-results, .ff-phone .ff-card__press {
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* Map + header (Figma "Frame 3": black → transparent, 75%, multiply) */
.ff-map    { inset: 0; width: 100%; height: 100%; object-fit: fill; }
.ff-header { left: 0; top: 0; width: 100%; height: 14.645%; background: linear-gradient(#000, rgba(0, 0, 0, 0)); opacity: .75; mix-blend-mode: multiply; }
.ff-logo   { left: 28.731%; top: 7.323%; width: 42.537%; height: 2.746%; }

/* Dims: #222A24 at 80%. Dim 1 over the map, dim 2 between a sheet and the sheet stacked on top of it */
.ff-dim    { inset: 0; background: rgba(34, 42, 36, .8); opacity: 0; }

/* Bottom bar (image includes its drop shadow: bar starts 16pt in and 21pt down) */
.ff-nav    { left: -3.980%; top: 77.460%; width: 107.960%; height: 23.799%; }
.ff-nav--pressed { opacity: 0; }

/* Following Flights sheet: 402 × 794 at y 80. Pushed back = 394 wide at y 72 (Figma stacked-sheet state) */
.ff-sheet  { left: 0; top: 9.153%; width: 100%; height: 90.847%; transform: translateY(100%); transform-origin: 50% 0; }

/* Search + details sheets: 402 × 799 at y 80, 32pt corners */
.ff-search, .ff-details { left: 0; top: 9.153%; width: 100%; height: 91.419%; transform: translateY(100%); border-radius: 7.96% / 4.005%; overflow: hidden; }
.ff-search__results { opacity: 0; }
/* iOS 27 keyboard (iOS 27 Builder UI kit): 402 × 335 at y 539, frosted glass body, 27pt top / 62pt bottom corners.
   Positions inside are keyboard points (--x, --y, --w); key labels use the Apple system font (SF on Apple devices). */
.ff-keyboard { left: 0; top: 61.670%; width: 100%; height: 38.330%; transform: translateY(100%);
  border-radius: calc(27 * var(--u)) calc(27 * var(--u)) calc(62 * var(--u)) calc(62 * var(--u));
  background: rgba(214, 217, 222, .9);
  -webkit-backdrop-filter: blur(calc(24 * var(--u))) saturate(1.6); backdrop-filter: blur(calc(24 * var(--u))) saturate(1.6);
  box-shadow: inset 0 calc(.5 * var(--u)) 0 rgba(255, 255, 255, .7);
  font-family: -apple-system, "SF Compact Text", "SF Pro Text", system-ui, sans-serif; }
.ff-keyboard .kb-suggest { height: calc(52 * var(--u)); text-align: center; color: #1a1a1a;
  font-size: calc(17 * var(--u)); line-height: calc(52 * var(--u)); letter-spacing: calc(-.43 * var(--u)); }
.ff-keyboard .kb-sep { width: calc(1 * var(--u)); height: calc(25 * var(--u)); border-radius: 99px; background: rgba(0, 0, 0, .12); }
.ff-keyboard .kb-key { height: calc(43 * var(--u)); border-radius: calc(8.5 * var(--u)); background: rgba(255, 255, 255, .82);
  box-shadow: 0 calc(1 * var(--u)) 0 rgba(0, 0, 0, .1);
  display: grid; place-items: center; color: #000;
  font-size: calc(25 * var(--u)); line-height: 1; font-weight: 450; padding-bottom: calc(3 * var(--u)); box-sizing: border-box; }
.ff-keyboard .kb-key svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.ff-keyboard .kb-key--icon { padding-bottom: 0; }
.ff-keyboard .kb-key--mode { font-size: calc(18 * var(--u)); padding-bottom: 0; }
.ff-keyboard .kb-key--sym { font-size: calc(16 * var(--u)); padding-bottom: 0; }
/* letters ↔ numbers layer ("123" / "ABC") */
.ff-phone .ff-keyboard .kb-n, .ff-phone[data-kb="num"] .ff-keyboard .kb-l { display: none; }
.ff-phone[data-kb="num"] .ff-keyboard .kb-n { display: grid; }
/* key being pressed */
.ff-phone .ff-keyboard .kb-key.is-down { background: rgba(170, 175, 184, .95); }
.ff-phone .ff-keyboard .kb-key--return { background: #0088ff; color: #fff; padding-bottom: 0; box-shadow: none; }
.ff-keyboard .kb-key--return svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.ff-phone .ff-keyboard .kb-bottom { color: rgba(34, 43, 89, .63); }   /* .ff-phone prefix: beats the generic .ff-phone .a text colour */
.ff-keyboard .kb-bottom svg { display: block; width: 100%; height: auto; }

/* Live-typed search text: Fira Sans 400 16pt, line height 25.6, tracking 0.3, #04140A on #F3F5F3 (x 56, y 111) */
.ff-typed {
  position: absolute; left: 13.930%; top: 3.880%; width: 72.139%; height: 3.254%;
  display: flex; align-items: center; background: #f3f5f3; opacity: 0;
  font-family: "Fira Sans", system-ui, sans-serif; font-weight: 400;
  font-size: calc(16 * var(--u)); line-height: calc(25.6 * var(--u)); letter-spacing: calc(.3 * var(--u));
  color: #04140a; white-space: pre;
}
.ff-typed__caret { animation: ff-caret 1s steps(1) infinite; }
.ff-phone[data-typing="on"] .ff-typed__caret { animation: none; }
@keyframes ff-caret { 50% { opacity: 0; } }

/* Press feedback (a quick tap highlight, like the Figma "Pressed" states) */
.ff-press { position: absolute; opacity: 0; pointer-events: none; }
/* Positions inside their sheet: Add Flight 370×48 r16 at (16, 706) · close 32×32 circle at (16, 16) · TAP1601 row 370×56 r12 at (16, 120) */
.ff-press--add    { left: 3.980%; top: 88.917%; width: 92.040%; height: 6.045%; border-radius: 4.324% / 33.333%; background: rgba(0, 0, 0, .22); }
.ff-press--close  { left: 3.980%; top: 2.015%; width: 7.960%; height: 4.030%; border-radius: 50%; background: rgba(4, 20, 10, .14); }
.ff-press--result { left: 3.980%; top: 15.019%; width: 92.040%; height: 7.009%; border-radius: 3.243% / 21.429%; background: rgba(4, 20, 10, .08); }

.ff-status { left: 0; top: 0; width: 100%; height: 6.407%; color: #fff; }
.ff-status > * { position: absolute; }
.ff-status__time { left: calc(31.5 * var(--u)); top: calc(18 * var(--u)); width: calc(84 * var(--u)); text-align: center;
  font: 600 calc(17 * var(--u)) / calc(22 * var(--u)) -apple-system, "SF Pro Text", system-ui, sans-serif; letter-spacing: calc(-.4 * var(--u)); }
.ff-status svg { fill: currentColor; }
/* iOS status icons: cellular 17 × 10.67, Wi-Fi 15.27 × 10.97, battery 27.33 × 13, centered on y 29, 7pt apart, right edge 366 */
.ff-status__signal  { left: calc(292.4 * var(--u)); top: calc(23.67 * var(--u)); width: calc(17 * var(--u)); height: calc(10.67 * var(--u)); }
.ff-status__wifi    { left: calc(316.4 * var(--u)); top: calc(23.5 * var(--u)); width: calc(15.27 * var(--u)); height: calc(10.97 * var(--u)); }
.ff-status__battery { left: calc(338.67 * var(--u)); top: calc(22.5 * var(--u)); width: calc(27.33 * var(--u)); height: calc(13 * var(--u)); }

/* Floating map controls: white 40-pt buttons, 12-pt corners, line icons (filter shown as sliders) */
.ff-phone .ff-mapbtn { display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(12 * var(--u));
  background: var(--paper); color: var(--ink); box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, .2); }
.ff-phone .ff-mapbtn--stack { height: calc(122 * var(--u)); justify-content: space-between; padding: calc(9 * var(--u)) 0; box-sizing: border-box; }
.ff-mapbtn svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ff-mapbtn i { display: block; width: calc(24 * var(--u)); height: 1px; background: var(--line); }
/* iPhone 18 Pro Dynamic Island (94 × 36 at screen 154, 14) with the front camera lens */
.ff-island { left: 38.308%; top: 1.602%; width: 23.383%; height: 4.119%; border-radius: 999px; background: #000; }
.ff-lens { position: absolute; left: 72.766%; top: 31.111%; width: 15.957%; height: 41.667%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #050a16 0 26%, rgba(6, 11, 26, .9) 34%, rgba(8, 10, 32, 0) 50%),
    linear-gradient(to bottom, #4242a6, #1f1e69 20%, #080823 47%, #0e2948 70%, #2b025e 87%, #2a2551) 50% 50% / 47% 47% no-repeat,
    #0b0f1a;
  box-shadow: inset 0 0 0 calc(.7 * var(--u)) #121622; }
.ff-home   { left: 0; top: 96.110%; width: 100%; height: 3.890%; }

/* ---------- Live flight UI (HTML, from the Figma text styles) ----------
   Positions use device points: --x / --y (from the left/top of the sheet), --rx (from the right), --w (width). */
.ff-phone {
  --ink: #04140a; --sub: #45564b; --mute: #8b9a8f; --green: #007844; --line: #d6ddda; --chip: #f3f5f3; --paper: #fcfcfc;
  --sans: "Fira Sans", system-ui, sans-serif; --mono: "Fira Code", ui-monospace, monospace;
}
.ff-phone .a { position: absolute; left: calc(var(--x, 0) * var(--u)); top: calc(var(--y, 0) * var(--u)); white-space: nowrap; color: var(--ink); }
.ff-phone .a.r { left: auto; right: calc(var(--rx, 0) * var(--u)); }
.ff-phone .a[style*="--w"] { width: calc(var(--w) * var(--u)); }
.ff-phone img.a { height: auto; max-width: none; }
.ff-phone .ctr { text-align: center; }

/* type scale (Figma styles; letter-spacing 0.3 unless noted) */
.ff-phone .fs-12, .ff-phone .fs-14, .ff-phone .fs-14b, .ff-phone .fs-16b, .ff-phone .fs-18s, .ff-phone .fs-10 { font-family: var(--sans); letter-spacing: calc(.3 * var(--u)); }
.ff-phone .fc-10, .ff-phone .fc-12, .ff-phone .fc-14, .ff-phone .fc-16, .ff-phone .fc-24, .ff-phone .fc-32 { font-family: var(--mono); font-weight: 600; letter-spacing: calc(.3 * var(--u)); }
.ff-phone .fs-10  { font-size: calc(10 * var(--u)); line-height: calc(16 * var(--u)); }
.ff-phone .fs-12  { font-size: calc(12 * var(--u)); line-height: calc(19.2 * var(--u)); }
.ff-phone .fs-14  { font-size: calc(14 * var(--u)); line-height: calc(22.4 * var(--u)); }
.ff-phone .fs-14b { font-size: calc(14 * var(--u)); line-height: calc(22.4 * var(--u)); font-weight: 700; }
.ff-phone .fs-16b { font-size: calc(16 * var(--u)); line-height: calc(25.6 * var(--u)); font-weight: 700; }
.ff-phone .fs-18s { font-size: calc(18 * var(--u)); line-height: calc(20.7 * var(--u)); font-weight: 600; letter-spacing: calc(-.3 * var(--u)); }
.ff-phone .fc-10  { font-size: calc(10 * var(--u)); line-height: calc(15 * var(--u)); }
.ff-phone .fc-12  { font-size: calc(12 * var(--u)); line-height: calc(19.2 * var(--u)); }
.ff-phone .fc-14  { font-size: calc(14 * var(--u)); line-height: calc(22.4 * var(--u)); }
.ff-phone .fc-16  { font-size: calc(16 * var(--u)); line-height: calc(25.6 * var(--u)); }
.ff-phone .fc-24  { font-size: calc(24 * var(--u)); line-height: calc(27.6 * var(--u)); letter-spacing: calc(-.48 * var(--u)); }
.ff-phone .fc-32  { font-size: calc(32 * var(--u)); line-height: calc(36.8 * var(--u)); letter-spacing: calc(-.7 * var(--u)); }
.ff-phone .lh-16  { line-height: calc(16 * var(--u)); }
.ff-phone .c-sub  { color: var(--sub); }
.ff-phone .c-mute { color: var(--mute); }

/* Following list */
/* Empty state: copy + button rebuilt in HTML; the cover hides the image's old text (image background is #fdfdfd) */
.ff-empty { position: absolute; inset: 0; pointer-events: none; }
.ff-empty__cover { position: absolute; left: calc(40 * var(--u)); top: calc(345 * var(--u)); width: calc(322 * var(--u)); height: calc(150 * var(--u)); background: #fdfdfd; }
.ff-empty p { position: absolute; left: calc(51 * var(--u)); width: calc(300 * var(--u)); margin: 0; text-align: center; font-family: var(--sans); }
.ff-empty__title { left: calc(81 * var(--u)) !important; width: calc(240 * var(--u)) !important; top: calc(353 * var(--u)); font-size: calc(24 * var(--u)); line-height: calc(27.6 * var(--u)); font-weight: 600; letter-spacing: calc(-.3 * var(--u)); color: var(--ink); }
.ff-empty__body { top: calc(418 * var(--u)); font-size: calc(16 * var(--u)); line-height: calc(25.6 * var(--u)); letter-spacing: calc(.3 * var(--u)); color: var(--sub); }
.ff-empty__btn { position: absolute; left: calc(16 * var(--u)); top: calc(705.7 * var(--u)); width: calc(370 * var(--u)); height: calc(48 * var(--u)); border-radius: calc(16 * var(--u));
  background: var(--green); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  font: 500 calc(16 * var(--u)) / 1 var(--sans); letter-spacing: calc(.3 * var(--u)); }
.ff-empty__btn img { width: calc(12 * var(--u)); height: auto; }
.ff-list { position: absolute; inset: 0; background: var(--paper); border-radius: calc(32 * var(--u)) calc(32 * var(--u)) 0 0; opacity: 0; overflow: hidden; }
.ff-iconbtn { width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.ff-iconbtn img { width: calc(12 * var(--u)); height: auto; }
.ff-card { width: calc(378 * var(--u)); height: calc(110 * var(--u)); background: var(--paper); border: calc(1 * var(--u)) solid var(--line); border-radius: calc(16 * var(--u)); box-sizing: border-box; overflow: hidden; }
.ff-card > .a { margin: calc(-1 * var(--u)) 0 0 calc(-1 * var(--u)); }  /* positions are measured from the card's outer edge */
.ff-card > .a.r { margin: calc(-1 * var(--u)) calc(-1 * var(--u)) 0 0; }
.ff-card__press { position: absolute; inset: 0; background: rgba(4, 20, 10, .15); opacity: 0; }
.ff-badge { width: calc(73 * var(--u)); height: calc(16 * var(--u)); border-radius: calc(8 * var(--u)); background: var(--green); color: var(--paper) !important;
  font: 700 calc(12 * var(--u)) / calc(16 * var(--u)) var(--sans); letter-spacing: calc(.3 * var(--u)); text-align: center; }
.ff-track { height: calc(4 * var(--u)); border-radius: calc(10 * var(--u)); background: rgba(0, 120, 68, .2); overflow: hidden; }
.ff-track--lg { height: calc(6 * var(--u)); }
.ff-track i { display: block; height: 100%; background: var(--green); border-radius: calc(10 * var(--u)) 0 0 calc(10 * var(--u)); }
.ff-time { display: flex; align-items: baseline; gap: calc(4 * var(--u)); color: var(--sub); font-family: var(--sans); letter-spacing: calc(.3 * var(--u)); }
.ff-time b { font-weight: 700; font-size: calc(16 * var(--u)); line-height: calc(25.6 * var(--u)); color: var(--sub); }
.ff-time small { font-size: calc(10 * var(--u)); line-height: calc(16 * var(--u)); color: var(--sub); }
.ff-fab { height: calc(48 * var(--u)); width: calc(128 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--green); color: var(--paper) !important;
  display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); box-sizing: border-box; /* label only (no + icon), centred */
  font: 500 calc(16 * var(--u)) / calc(16 * var(--u)) var(--sans); letter-spacing: calc(.3 * var(--u));
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .12); }
.ff-fab img { width: calc(12 * var(--u)); height: auto; }

/* Search result (TP82) */
.ff-results { position: absolute; left: 0; top: calc(84 * var(--u)); width: 100%; height: calc(398 * var(--u)); background: var(--paper); opacity: 0; }
.ff-result { width: calc(370 * var(--u)); height: calc(56 * var(--u)); border: calc(1 * var(--u)) solid var(--line); border-radius: calc(12 * var(--u)); box-sizing: border-box; background: var(--paper); }
.ff-result > .a { margin: calc(-1 * var(--u)) 0 0 calc(-1 * var(--u)); }

/* Flight details */
.ff-detail { position: absolute; inset: 0; background: var(--paper); }
.ff-grab { width: calc(40 * var(--u)); height: calc(4 * var(--u)); border-radius: calc(2 * var(--u)); background: var(--line); }
.ff-closepill { width: calc(68 * var(--u)); height: calc(32 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--chip);
  font: 500 calc(14 * var(--u)) / calc(32 * var(--u)) var(--sans); letter-spacing: calc(.3 * var(--u)); text-align: center; }
.ff-infos { display: flex; gap: calc(4 * var(--u)); }
.ff-phone .ff-info { display: inline-block; height: calc(16 * var(--u)); padding: 0 calc(3.25 * var(--u)); box-sizing: border-box;
  border: calc(.75 * var(--u)) solid rgba(4, 20, 10, .2); border-radius: calc(6 * var(--u));
  font: 450 calc(12 * var(--u)) / calc(14.5 * var(--u)) var(--mono); letter-spacing: calc(.3 * var(--u)); color: var(--sub); }
.ff-livestatus { width: calc(370 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(12 * var(--u)); background: rgba(0, 120, 68, .2);
  display: flex; align-items: center; gap: calc(8 * var(--u)); padding-left: calc(12 * var(--u)); box-sizing: border-box;
  font: 700 calc(14 * var(--u)) / calc(22.4 * var(--u)) var(--sans); letter-spacing: calc(.3 * var(--u)); color: var(--green) !important; }
.ff-livestatus i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: var(--green); animation: ff-live 1.6s ease-in-out infinite; }
@keyframes ff-live { 50% { opacity: .35; } }
.ff-routemap { width: calc(370 * var(--u)); height: calc(226 * var(--u)); border-radius: calc(12 * var(--u)); overflow: hidden; background: #0b1d33; }
.ff-routemap img, .ff-routemap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ff-route-rest  { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; stroke-dasharray: 3 3; stroke-linecap: round; }
.ff-route-flown { fill: none; stroke: url(#ff-flown); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ff-apt-dot  { fill: #2ee59d; stroke: #04140a; stroke-width: 1; }
.ff-apt-ring { fill: rgba(4, 20, 10, .6); stroke: #fff; stroke-width: 1.5; }
.ff-plane    { fill: #f5cf3d; stroke: #04140a; stroke-width: .8; stroke-linejoin: round; }
.ff-btn2 { width: calc(181 * var(--u)); height: calc(48 * var(--u)); border-radius: calc(16 * var(--u)); text-align: center;
  font: 500 calc(16 * var(--u)) / calc(48 * var(--u)) var(--sans); letter-spacing: calc(.3 * var(--u)); }
.ff-btn2--ghost { background: var(--chip); }
.ff-btn2--green { background: var(--green); color: var(--paper) !important; }
.ff-apt { display: flex; align-items: center; gap: calc(6 * var(--u)); width: calc(370 * var(--u)); overflow: hidden; }
.ff-apt img { width: calc(17 * var(--u)); height: auto; margin: 0 calc(5 * var(--u)) 0 calc(1.7 * var(--u)); }
.ff-dateline { display: flex; align-items: center; gap: calc(4 * var(--u)); }
.ff-bigtime { display: flex; align-items: baseline; gap: calc(4 * var(--u)); }
.ff-gate { width: calc(50 * var(--u)); height: calc(28 * var(--u)); border-radius: calc(8 * var(--u)); background: #04140a; display: flex; align-items: center; gap: calc(6 * var(--u)); padding-left: calc(6.2 * var(--u)); box-sizing: border-box; }
.ff-gate img { width: calc(14 * var(--u)); height: auto; }
.ff-gate b { font: 600 calc(16 * var(--u)) / calc(25.6 * var(--u)) var(--mono); letter-spacing: calc(.3 * var(--u)); color: #f5cf3d; }
.ff-stats { display: flex; align-items: center; gap: calc(4 * var(--u)); font: 600 calc(12 * var(--u)) / calc(19.2 * var(--u)) var(--mono); letter-spacing: calc(.3 * var(--u)); color: var(--mute) !important; }
.ff-stats img { width: calc(14 * var(--u)); height: auto; margin-left: calc(1.3 * var(--u)); }
.ff-phone s { text-decoration-thickness: calc(1 * var(--u)); }

/* ---------- States ---------- */
.ff-phone[data-sheet="up"]   .ff-sheet { transform: none; }
.ff-phone[data-sheet="back"] .ff-sheet { transform: translateY(-1.0076%) scale(.98010); }   /* y 80 → 72, 402 → 394 */
.ff-phone:not([data-sheet="off"]) .ff-dim--1 { opacity: 1; }
.ff-phone[data-sheet="back"] .ff-dim--2 { opacity: 1; }

.ff-phone[data-content="list"] .ff-list,
.ff-phone[data-content="list"][data-press="card"] .ff-card__press { opacity: 1; }

/* keyboard is fully hidden once it has slid away, so its frosted glass is never painted off-screen */
.ff-phone .ff-keyboard { visibility: hidden; transition: transform var(--dur) var(--ease), visibility 0s linear var(--dur); }
.ff-phone[data-search="up"] .ff-keyboard { visibility: visible; transition: transform var(--dur) var(--ease), visibility 0s; }
.ff-phone[data-search="up"] .ff-search,
.ff-phone[data-search="up"] .ff-keyboard,
.ff-phone[data-details="up"] .ff-details { transform: none; }
.ff-phone[data-search="up"] .ff-typed { opacity: 1; }
.ff-phone[data-results="on"] .ff-search__results,
.ff-phone[data-results="on"] .ff-results { opacity: 1; }

.ff-phone[data-press="nav"] .ff-nav--pressed,
.ff-phone[data-press="add"] .ff-press--add,
.ff-phone[data-press="result"] .ff-press--result,
.ff-phone[data-press="close"] .ff-press--close { opacity: 1; }

.ff-phone[data-press="dclose"] .ff-closepill { opacity: .55; }

/* Touch indicator: a fingertip-sized circle (44pt) that glides to the next target, presses down with a ripple, then lifts away.
   Placed by JS with --tx / --ty (screen points of the tap). */
:is(.ff-phone, .dz-screen) .ff-tap { position: absolute; z-index: 5; pointer-events: none;
  left: calc((var(--tx, 201) - 22) * var(--u)); top: calc((var(--ty, 437) - 22) * var(--u));
  width: calc(44 * var(--u)); height: calc(44 * var(--u)); border-radius: 50%;
  background: rgba(60, 64, 70, .28); border: calc(2 * var(--u)) solid rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(0, 0, 0, .14), 0 calc(3 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .3);
  box-sizing: border-box; opacity: 0; transform: scale(1.35);
  transition: opacity 140ms ease-out, transform 140ms ease-out; }
:is(.ff-phone, .dz-screen) .ff-tap::after { content: ""; position: absolute; inset: calc(-1.5 * var(--u)); border-radius: 50%;
  border: calc(2 * var(--u)) solid rgba(90, 96, 104, .55); opacity: 0; }
:is(.ff-phone[data-tap="hover"], .dz-screen[data-tap="hover"]) .ff-tap { opacity: 1; transform: scale(1); }
:is(.ff-phone[data-tap="down"], .dz-screen[data-tap="down"]) .ff-tap { opacity: 1; transform: scale(.82); background: rgba(60, 64, 70, .42); transition-duration: 60ms; }
:is(.ff-phone[data-tap="down"], .dz-screen[data-tap="down"]) .ff-tap::after { animation: ff-ripple 380ms cubic-bezier(0, 0, .3, 1) both; }
:is(.ff-phone[data-tap="up"], .dz-screen[data-tap="up"]) .ff-tap { opacity: 0; transform: scale(1.1); transition-duration: 180ms; }
/* while typing, the finger glides from key to key */
.ff-phone[data-typing="on"] .ff-tap { transition: opacity 140ms ease-out, transform 60ms ease-out, left 110ms ease-out, top 110ms ease-out; }
@keyframes ff-ripple { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2); } }

/* ---------- Dark mode: the app follows the page theme ----------
   HTML parts switch through the colour tokens. The Figma screens that are images (sheet, search, bottom bar,
   home indicator) and the dark line icons are flipped with a tuned invert that keeps hues (green stays green). */
:root[data-theme="dark"] .ff-phone {
  --ink: #eef2ef; --sub: #a9b6ad; --mute: #77867b; --green: #1f9e62; --line: #2c3430; --chip: #242826; --paper: #141414;
  --flip: invert(.93) hue-rotate(180deg);
  background: #141414;
}
:root[data-theme="dark"] .ff-phone .ff-nav,
:root[data-theme="dark"] .ff-phone .ff-sheet__empty,
:root[data-theme="dark"] .ff-phone .ff-search > .ff-fill,
:root[data-theme="dark"] .ff-phone .ff-home,
:root[data-theme="dark"] .ff-phone img[src$="close.svg"],
:root[data-theme="dark"] .ff-phone img[src$="departure.svg"],
:root[data-theme="dark"] .ff-phone img[src$="arrival.svg"] { filter: var(--flip); }
/* the main map stays as designed in both themes */
/* Discover radar (circle r 15.8 at 200.8, 799.8): a crop of the original bar image, so the radar stays white on green */
.ff-discover { display: none; left: calc(185.03 * var(--u)); top: calc(784.03 * var(--u)); width: calc(31.6 * var(--u)); height: calc(31.6 * var(--u)); border-radius: 50%;
  background: url("/assets/images/projects/airnav-radar/following-flights/nav.webp") calc(-201.03 * var(--u)) calc(-107.03 * var(--u)) / calc(434 * var(--u)) calc(208 * var(--u)) no-repeat; }
:root[data-theme="dark"] .ff-phone .ff-discover { display: block; }
/* the empty-state cover matches the flipped sheet image (#fdfdfd → #141414) */
:root[data-theme="dark"] .ff-phone .ff-empty__cover { background: #141414; }
/* typed text sits over the flipped search field (#f3f5f3 → #191b18) */
:root[data-theme="dark"] .ff-phone .ff-typed { background: #191b18; color: var(--ink); }
/* text on green stays white */
:root[data-theme="dark"] .ff-phone .ff-empty__btn,
:root[data-theme="dark"] .ff-phone .ff-fab,
:root[data-theme="dark"] .ff-phone .ff-badge,
:root[data-theme="dark"] .ff-phone .ff-btn2--green { color: #fff !important; }
:root[data-theme="dark"] .ff-phone .ff-card__press { background: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .ff-phone .ff-info { border-color: rgba(238, 242, 239, .22); }
:root[data-theme="dark"] .ff-phone .ff-track { background: rgba(31, 158, 98, .25); }
:root[data-theme="dark"] .ff-phone .ff-livestatus { background: rgba(31, 158, 98, .18); }
:root[data-theme="dark"] .ff-phone .ff-mapbtn { background: #1c201e; box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .ff-phone .ff-fab { box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .ff-phone .ff-press--add { background: rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .ff-phone .ff-press--close,
:root[data-theme="dark"] .ff-phone .ff-press--result { background: rgba(255, 255, 255, .1); }
/* iOS dark keyboard */
:root[data-theme="dark"] .ff-phone .ff-keyboard { background: rgba(40, 40, 42, .88); box-shadow: inset 0 calc(.5 * var(--u)) 0 rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-key { background: rgba(110, 110, 114, .75); color: #fff; box-shadow: 0 calc(1 * var(--u)) 0 rgba(0, 0, 0, .35); }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-key.is-down { background: rgba(160, 160, 166, .9); }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-key--return { background: #0a84ff; }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-suggest { color: #fff; }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-sep { background: rgba(255, 255, 255, .16); }
:root[data-theme="dark"] .ff-phone .ff-keyboard .kb-bottom { color: rgba(235, 235, 245, .6); }

@media (max-width: 767.98px) {
  .ff-demo { padding-top: 40px; }
  .ff-demo__stage { margin-top: 40px; }
  .ff-device { --w: min(100cqw - 8px, 360px); }
}

/* ---------- Doze: landscape player (centered section) ----------
   The iPhone frame above is reused, rotated -90° (Dynamic Island on the left).
   Units: --lu = 1pt of the device; the screen is 874 × 402 pt at (21, 18) of the 916 × 439 landscape device. */
.dz-demo { padding-top: 72px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dz-copy { max-width: 680px; }
/* on the home page the section follows the hero, which already provides the spacing */
.project.dz-demo { padding-top: 0; }
.dz-copy .ff-lead { margin-top: 24px; }
.dz-copy .ff-chips { justify-content: center; }
.dz-copy .cta { margin-top: 32px; display: flex; justify-content: center; }
/* Pill button: ink fill, page-colored label; hover lifts it slightly with a soft shadow */
.dz-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: .2px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: transform .25s ease, box-shadow .25s ease; }
.dz-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -6px rgba(0, 0, 0, .3); }
.dz-btn:active { transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); transition-duration: .1s; }
:root[data-theme="dark"] .dz-btn:hover { box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .8); }
@media (prefers-reduced-motion: reduce) { .dz-btn, .dz-btn:hover, .dz-btn:active { transform: none; } }
.dz-toggle { margin-top: 40px; }
.dz-stage { width: 100%; margin-top: 48px; container-type: inline-size; display: flex; justify-content: center; }
.dz-device { --lu: calc(min(916px, 100cqw, (100svh - var(--nav-h) - 96px) * 916 / 439) / 916);
  position: relative; width: calc(916 * var(--lu)); height: calc(439 * var(--lu)); flex: none; }
.dz-device .ff-device { --w: calc(439 * var(--lu)); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.dz-screen { --u: var(--lu); --dur: 0ms; --ease: linear; --c: #fff;
  position: absolute; left: calc(21 * var(--u)); top: calc(18 * var(--u)); width: calc(874 * var(--u)); height: calc(402 * var(--u));
  /* --bleed: the picture runs 1pt under the 7pt black border, leaving an even 6pt border all round (same as Following Flights);
     the UI keeps the 874 x 402 Figma frame. Corner radius concentric with the bezel: 68 - 7 + 1 = 62pt. */
  --bleed: calc(1 * var(--u));
  border-radius: calc(57 * var(--u)); clip-path: inset(calc(-1 * var(--bleed)) round calc(62 * var(--u))); background: #000; isolation: isolate; text-align: left; color: #fff;
  font-family: "Netflix Sans", -apple-system, "Helvetica Neue", system-ui, sans-serif; }
.dz-screen > * { position: absolute; }
.dz-bg { inset: calc(-1 * var(--bleed)); width: calc(100% + 2 * var(--bleed)); height: calc(100% + 2 * var(--bleed)); object-fit: cover; object-position: 50% 30%; max-width: none; }
/* every animated part follows the current step's duration and easing (Figma Smart Animate) */
.dz-warm, .dz-dim, .dz-scrim, .dz-ui, .dz-ind, .dz-ind__ptr, .dz-bright, .dz-prog, .dz-tb, .dz-ic, .dz-title, .dz-ind__bar {
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease), height var(--dur) var(--ease), top var(--dur) var(--ease); }
/* full-screen layers: Rectangle 2 (#84581D, overlay) / Rectangle 3 (#919191, multiply) / Rectangle 1 (#1A1818 at 85%) */
.dz-warm, .dz-dim, .dz-scrim { inset: calc(-1 * var(--bleed)); opacity: 0; }
.dz-warm  { background: #b5661a; mix-blend-mode: overlay; }
.dz-dim   { background: #919191; mix-blend-mode: multiply; }
.dz-scrim { background: rgba(26, 24, 24, .85); }
.dz-screen[data-warm="on"] .dz-warm, .dz-screen[data-dim="on"] .dz-dim, .dz-screen[data-scrim="on"] .dz-scrim { opacity: 1; }
/* warm shift at 70%: still clearly warm, less orange */
.dz-screen[data-warm="on"] .dz-warm { opacity: .7; }
/* player controls (series player, Figma 46:727): white, #E6E6E6 once Doze is on (46:918) */
.dz-ui { inset: 0; opacity: 0; }
.dz-screen[data-ui="on"] .dz-ui { opacity: 1; }
.dz-screen[data-doze="on"] { --c: #e6e6e6; }
.dz-b { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); display: grid; place-items: center; }
/* icon buttons: 24 icon in 40, 40 in 56, 48 in 64 */
.dz-ic { width: 60%; height: 60%; fill: currentColor; color: var(--c); }
.dz-b56 .dz-ic { width: 71.43%; height: 71.43%; }
.dz-b64 .dz-ic { width: 75%; height: 75%; }
.dz-ic text { font-family: inherit; fill: currentColor; }
.dz-title { font-weight: 500; font-size: calc(16 * var(--u)); line-height: calc(21 * var(--u)); text-align: center; color: var(--c); white-space: nowrap; }
.dz-time  { font-size: calc(14 * var(--u)); line-height: calc(21 * var(--u)); text-align: center; color: var(--c); }
.dz-bedicon .dz-ic { color: #737272; }
.dz-screen[data-doze="on"] .dz-bedicon .dz-ic { color: #e6e6e6; }
.dz-track { display: block; border-radius: calc(10 * var(--u)); background: #737272; overflow: hidden; }
.dz-bright { position: absolute; left: 0; right: 0; bottom: 0; height: calc(80 * var(--u)); background: #fff; }
.dz-screen[data-doze="on"] .dz-bright { height: 0; }
.dz-prog { position: absolute; left: 0; top: 0; bottom: 0; width: calc(75 * var(--u)); background-color: #fff; }
/* sun icon dims to #737272 when Doze is on */
.dz-screen[data-doze="on"] .dz-b[style*="--y:100"] .dz-ic { color: #737272; }
/* text buttons: 40 tall, icon 24 at +8, 14px label at +40, 12 right padding, 4 radius; pressed = #807979 at 50% */
.dz-tb { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); height: calc(40 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u));
  padding: 0 calc(12 * var(--u)) 0 calc(8 * var(--u)); box-sizing: border-box; border-radius: calc(4 * var(--u)); font-size: calc(14 * var(--u)); line-height: calc(14 * var(--u)); white-space: nowrap; color: var(--c); background-color: rgba(128, 121, 121, 0); }
.dz-tb .dz-ic { width: calc(24 * var(--u)); height: calc(24 * var(--u)); flex: none; }
.dz-tb--sub .dz-ic { height: calc(22 * var(--u)); }
.dz-tb b { font-weight: inherit; }
.dz-on, .dz-screen[data-doze="on"] .dz-off { display: none; }
.dz-screen[data-doze="on"] .dz-on { display: inline; }
.dz-screen[data-press="on"] .dz-tb--doze { background-color: rgba(128, 121, 121, .5); }
/* indicator: white when it appears, #E6E6E6 once the screen dims; color temperature bar = blue -> white -> amber */
.dz-ind { inset: 0; opacity: 0; --ic: #fff; }
.dz-screen[data-ind="bright"] .dz-ind, .dz-screen[data-ind="temp"] .dz-ind { opacity: 1; }
.dz-screen[data-dim="on"] .dz-ind { --ic: #e6e6e6; }
.dz-ind .dz-ic { color: var(--ic); width: 100%; height: 100%; }
.dz-ind__temp, .dz-screen[data-ind="temp"] .dz-ind__bright { display: none; }
.dz-screen[data-ind="temp"] .dz-ind__temp { display: block; color: #fff; }
.dz-ind__bar { display: block; border-radius: calc(12 * var(--u)); background-color: var(--ic); }
.dz-screen[data-ind="temp"] .dz-ind__bar { background-image: linear-gradient(#5492ea, #9dcaee 25%, #fff 50%, #ecc378 75%, #d5792e); }
.dz-ind__ptr { top: calc(var(--ay, 101) * var(--u)); }
.dz-screen[data-ind="temp"] .dz-ind__ptr .dz-ic { color: #e6e6e6; }
/* Dynamic Island in landscape: the portrait island (94 × 36 at 154, 14) rotated → 36 × 94 at (14, 154), centered vertically. No home indicator: the Figma frames have none. */
.dz-island { left: calc(14 * var(--u)); top: calc(154 * var(--u)); width: calc(36 * var(--u)); height: calc(94 * var(--u)); border-radius: 999px; background: #000; z-index: 3; }
.dz-lens { position: absolute; left: calc(10.5 * var(--u)); top: calc(10.5 * var(--u)); width: calc(15 * var(--u)); height: calc(15 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle, #050a16 0 26%, rgba(6, 11, 26, .9) 34%, rgba(8, 10, 32, 0) 50%), #0b0f1a; box-shadow: inset 0 0 0 calc(.7 * var(--u)) #121622; }
/* Work page: Following Flights and Milanuncios use the same centered structure as Doze */
.dz-demo + .dz-demo, .section + .dz-demo { padding-top: var(--section-space); }
.dz-demo .ff-toggle { margin-top: 40px; }
.dz-demo .ff-credit { margin-top: 16px; }
.dz-demo .ff-sub { max-width: 600px; margin-left: auto; margin-right: auto; }
/* full-width stage for the Milanuncios card animation (its stepper and pause pill are added under it by card-evolution.js) */
.dz-wide { width: 100%; margin-top: 24px; }
/* tighter canvas: the card is at most 572 of the 720 canvas, so trim the empty bands above and below it (card stays centered) */
.dz-wide .ce:not(.is-narrow) { aspect-ratio: 1280 / 610; }
.dz-wide .ce:not(.is-narrow) .ce__canvas { height: 610px; }
/* phone: controls sit under the animation, so the canvas needs less room at the bottom (same as Home) */
.dz-wide .ce.is-narrow { aspect-ratio: 560 / 820; }
.dz-wide .ce.is-narrow .ce__canvas { height: 820px; }
.dz-wide .ce-under { margin-top: 16px; gap: 12px; }

/* Phones: the centred project sections (Doze, Milanuncios, Osteo) read left-aligned, like Following Flights and Investir.pt.
   The visuals and their play / pause buttons stay centred. */
@media (max-width: 767.98px) {
  .dz-demo .dz-copy { align-self: stretch; text-align: left; }
  .dz-demo .dz-copy .ff-chips { justify-content: flex-start; }
  .dz-demo .dz-copy .cta { justify-content: flex-start; }
  .dz-demo .dz-copy .ff-sub { margin-left: 0; margin-right: 0; }
}
