/* MacRelay marketing site — graphite + steel (matches the app's MacRelayColor), light/dark, interactive panel demo */

:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --max: 1120px;
  --radius-lg: 22px;

  /* App icon glyphs (white unless noted) */
  /* App-icon squircle (superellipse, n = 3.6: rounder than stock macOS) */
  --squircle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M100.0 50.0L100.0 59.7L99.8 64.3L99.7 67.8L99.4 70.9L99.0 73.6L98.6 76.0L98.1 78.3L97.6 80.3L96.9 82.2L96.2 84.0L95.3 85.7L94.4 87.2L93.5 88.7L92.4 90.0L91.2 91.2L90.0 92.4L88.7 93.5L87.2 94.4L85.7 95.3L84.0 96.2L82.2 96.9L80.3 97.6L78.3 98.1L76.0 98.6L73.6 99.0L70.9 99.4L67.8 99.7L64.3 99.8L59.7 100.0L50.0 100.0L40.3 100.0L35.7 99.8L32.2 99.7L29.1 99.4L26.4 99.0L24.0 98.6L21.7 98.1L19.7 97.6L17.8 96.9L16.0 96.2L14.3 95.3L12.8 94.4L11.3 93.5L10.0 92.4L8.8 91.2L7.6 90.0L6.5 88.7L5.6 87.2L4.7 85.7L3.8 84.0L3.1 82.2L2.4 80.3L1.9 78.3L1.4 76.0L1.0 73.6L0.6 70.9L0.3 67.8L0.2 64.3L0.0 59.7L0.0 50.0L0.0 40.3L0.2 35.7L0.3 32.2L0.6 29.1L1.0 26.4L1.4 24.0L1.9 21.7L2.4 19.7L3.1 17.8L3.8 16.0L4.7 14.3L5.6 12.8L6.5 11.3L7.6 10.0L8.8 8.8L10.0 7.6L11.3 6.5L12.8 5.6L14.3 4.7L16.0 3.8L17.8 3.1L19.7 2.4L21.7 1.9L24.0 1.4L26.4 1.0L29.1 0.6L32.2 0.3L35.7 0.2L40.3 0.0L50.0 0.0L59.7 0.0L64.3 0.2L67.8 0.3L70.9 0.6L73.6 1.0L76.0 1.4L78.3 1.9L80.3 2.4L82.2 3.1L84.0 3.8L85.7 4.7L87.2 5.6L88.7 6.5L90.0 7.6L91.2 8.8L92.4 10.0L93.5 11.3L94.4 12.8L95.3 14.3L96.2 16.0L96.9 17.8L97.6 19.7L98.1 21.7L98.6 24.0L99.0 26.4L99.4 29.1L99.7 32.2L99.8 35.7L100.0 40.3Z'/%3E%3C/svg%3E");
  --ic-messages: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 4.2c-5 0-9 3.2-9 7.1 0 2.3 1.4 4.3 3.5 5.6-.2 1.2-.8 2.3-1.7 3.1 1.9 0 3.5-.7 4.7-1.7.8.2 1.6.3 2.5.3 5 0 9-3.2 9-7.2s-4-7.2-9-7.2z'/%3E%3C/svg%3E");
  --ic-whatsapp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.6a8.4 8.4 0 0 0-7.2 12.7L3.7 20.3l4.1-1.1A8.4 8.4 0 1 0 12 3.6z' fill='none' stroke='white' stroke-width='1.7' stroke-linejoin='round'/%3E%3Cpath fill='white' d='M9.1 8.3c.3-.4.7-.4 1 0l.8 1.4c.2.3.1.6-.1.8l-.5.5c.5 1 1.3 1.8 2.3 2.3l.5-.5c.2-.2.5-.3.8-.1l1.4.8c.4.3.4.7 0 1-.8.8-1.8 1-2.8.5a8 8 0 0 1-3.6-3.6c-.4-.9-.4-2.4.2-3.1z'/%3E%3C/svg%3E");
  --ic-slack: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 4.5 8 19.5M16 4.5l-1.6 15M5 9.2h14.5M4.5 14.8H19' stroke='white' stroke-width='2.1' stroke-linecap='round'/%3E%3C/svg%3E");
  --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='6' width='17' height='12' rx='2' fill='white'/%3E%3Cpath d='m4.5 7.5 7.5 5.5 7.5-5.5' fill='none' stroke='%231a7cf5' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ic-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ctext x='12' y='7.6' font-family='Helvetica,Arial' font-size='4.4' font-weight='700' text-anchor='middle' fill='%23ff3b30'%3ESAT%3C/text%3E%3Ctext x='12' y='18.6' font-family='Helvetica,Arial' font-size='11' font-weight='300' text-anchor='middle' fill='%23111'%3E28%3C/text%3E%3C/svg%3E");
  --ic-facetime: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3.5' y='7' width='11.5' height='10' rx='2.4' fill='white'/%3E%3Cpath d='m15.6 11 4.9-3v8l-4.9-3z' fill='white'/%3E%3C/svg%3E");
  --ic-reminders: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='6.5' cy='7' r='1.9' fill='%230a84ff'/%3E%3Ccircle cx='6.5' cy='12' r='1.9' fill='%23ff3b30'/%3E%3Ccircle cx='6.5' cy='17' r='1.9' fill='%23ff9f0a'/%3E%3Cpath d='M10.5 7h8M10.5 12h8M10.5 17h8' stroke='%23c7c7cc' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-theme="dark"] {
  --bg: #121214;
  --bg-elevated: #1a1a1e;
  --bg-alt: rgba(255, 255, 255, 0.025);
  --ink: #f4f4f7;
  --muted: #a2a2ad;
  --muted-soft: rgba(162, 162, 173, 0.7);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: #1a1a1e;
  /* MacRelayColor.focusLight / steel */
  --focus-bg: #e8e8f2;
  --focus-ink: #000;
  --accent: #e8e8f2;
  --accent-text: #cfcfdb;
  --header-bg: color-mix(in srgb, #121214 78%, transparent);
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  --brand-grad: linear-gradient(135deg, #fff 15%, #d4d4de 55%, #8e8ea3 120%);
  --chrome: linear-gradient(180deg, #5a5a62, #2a2a2f 40%, #1b1b1f);
  /* Space Black MacBook Pro */
  --lid-edge: #3a3a40;
  --base-top: linear-gradient(180deg, #55555c, #34343a);
  --base-front: linear-gradient(180deg, #2c2c31 0%, #1f1f23 55%, #141417 100%);
  --base-scoop: linear-gradient(180deg, #121214, #24242a);
  /* demo desktop */
  --wall: radial-gradient(70% 90% at 85% 8%, rgba(150, 160, 215, 0.28), transparent 60%),
    radial-gradient(60% 80% at 8% 100%, rgba(70, 86, 160, 0.45), transparent 65%),
    linear-gradient(160deg, #26262d, #141418 70%);
  --mb-bg: rgba(20, 20, 24, 0.45);
  --mb-ink: rgba(255, 255, 255, 0.92);
  --mac-select: #0a64d6;
  --win-chrome: #2b2b31;
  --win-body: #1d1d22;
  --code-a: rgba(255, 255, 255, 0.16);
  --code-b: rgba(232, 232, 242, 0.42);
  --code-c: rgba(120, 160, 255, 0.5);
  /* app surfaces (Surfaces.swift, NotificationCard.swift, ButtonStyles.swift) */
  --steel: #e8e8f2;
  --steel-12: rgba(232, 232, 242, 0.12);
  --steel-35: rgba(232, 232, 242, 0.35);
  --g-panel: rgba(18, 18, 22, 0.52);
  --g-chat: rgba(24, 24, 28, 0.62);
  --g-solo: rgba(38, 38, 44, 0.62);
  --g-solo-hover: rgba(48, 48, 54, 0.66);
  --g-menu: rgba(40, 40, 46, 0.94);
  --float-dim: rgba(0, 0, 0, 0.32);
  --g-window: #1e1e20;
  --g-fill-4: rgba(255, 255, 255, 0.04);
  --g-fill-45: rgba(255, 255, 255, 0.045);
  --g-fill-6: rgba(255, 255, 255, 0.06);
  --g-fill-7: rgba(255, 255, 255, 0.07);
  --g-fill-75: rgba(255, 255, 255, 0.075);
  --g-fill-8: rgba(255, 255, 255, 0.08);
  --g-fill-12: rgba(255, 255, 255, 0.12);
  --g-fill-12a: rgba(255, 255, 255, 0.12);
  --g-fill-18a: rgba(255, 255, 255, 0.18);
  --allow-ink: #e8e8f2;
  --danger-a: 0.28;
  --danger-ink: #ff8a80;
  --g-divider: rgba(255, 255, 255, 0.07);
  --g-divider-35: rgba(255, 255, 255, 0.1);
  --g-ink: #f5f5f7;
  --g-meta: rgba(235, 235, 245, 0.6);
  --g-muted: rgba(235, 235, 245, 0.6);
  --g-quiet: rgba(235, 235, 245, 0.38);
  --send-off: rgba(235, 235, 245, 0.27);
  --g-line: rgba(255, 255, 255, 0.1);
  /* feature mockups */
  --g-card: rgba(255, 255, 255, 0.07);
  --g-card-solo: rgba(38, 38, 44, 0.72);
  --bub-in: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f7f8;
  --bg-elevated: #fff;
  --bg-alt: #efeff2;
  --ink: #141416;
  --muted: #4c4c56;
  --muted-soft: rgba(76, 76, 86, 0.72);
  --line: rgba(20, 20, 22, 0.1);
  --line-strong: rgba(20, 20, 22, 0.18);
  --card: #fff;
  /* charcoal #454552 — the light-mode steel in ButtonStyles.swift */
  --focus-bg: #454552;
  --focus-ink: #fff;
  --accent: #454552;
  --accent-text: #454552;
  --header-bg: color-mix(in srgb, #f7f7f8 82%, transparent);
  --shadow: 0 40px 80px rgba(20, 20, 22, 0.16);
  --brand-grad: linear-gradient(135deg, #141416 10%, #454552 55%, #8e8ea3 120%);
  --chrome: linear-gradient(180deg, #d9d9df, #a9a9b2 45%, #8d8d96);
  /* Silver MacBook Pro */
  --lid-edge: #b9bac0;
  --base-top: linear-gradient(180deg, #f2f2f5, #dcdde2);
  --base-front: linear-gradient(180deg, #d3d4d9 0%, #b6b7be 55%, #9c9da5 100%);
  --base-scoop: linear-gradient(180deg, #9a9ba2, #c2c3c9);
  --wall: radial-gradient(70% 90% at 85% 8%, rgba(170, 180, 235, 0.5), transparent 60%),
    radial-gradient(60% 80% at 8% 100%, rgba(130, 150, 230, 0.45), transparent 65%),
    linear-gradient(160deg, #eceef4, #d6d9e3 70%);
  --mb-bg: rgba(255, 255, 255, 0.45);
  --mb-ink: rgba(0, 0, 0, 0.85);
  --mac-select: #0a64d6;
  --win-chrome: #ececf0;
  --win-body: #fff;
  --code-a: rgba(0, 0, 0, 0.12);
  --code-b: rgba(69, 69, 82, 0.4);
  --code-c: rgba(60, 100, 220, 0.45);
  --steel: #e8e8f2;
  --steel-12: rgba(69, 69, 82, 0.08);
  --steel-35: rgba(69, 69, 82, 0.3);
  --g-panel: rgba(236, 236, 240, 0.8);
  --g-chat: rgba(240, 240, 243, 0.86);
  --g-solo: rgba(246, 246, 248, 0.74);
  --g-solo-hover: rgba(250, 250, 252, 0.84);
  --g-menu: rgba(246, 246, 248, 0.96);
  --float-dim: rgba(0, 0, 0, 0.05);
  --g-window: #ececec;
  --g-fill-4: rgba(0, 0, 0, 0.04);
  --g-fill-45: rgba(0, 0, 0, 0.045);
  --g-fill-6: rgba(0, 0, 0, 0.06);
  --g-fill-7: rgba(0, 0, 0, 0.07);
  --g-fill-75: rgba(0, 0, 0, 0.075);
  --g-fill-8: rgba(0, 0, 0, 0.08);
  --g-fill-12: rgba(0, 0, 0, 0.11);
  --g-fill-12a: rgba(0, 0, 0, 0.07);
  --g-fill-18a: rgba(0, 0, 0, 0.11);
  --allow-ink: #454552;
  --danger-a: 0.14;
  --danger-ink: #c62828;
  --g-divider: rgba(0, 0, 0, 0.06);
  --g-divider-35: rgba(0, 0, 0, 0.09);
  --g-ink: #111114;
  --g-meta: rgba(0, 0, 0, 0.62);
  --g-muted: rgba(60, 60, 67, 0.66);
  --g-quiet: rgba(0, 0, 0, 0.48);
  --send-off: rgba(0, 0, 0, 0.2);
  --g-line: rgba(0, 0, 0, 0.12);
  --g-card: rgba(255, 255, 255, 0.72);
  --g-card-solo: rgba(250, 250, 252, 0.82);
  --bub-in: rgba(0, 0, 0, 0.08);
  color-scheme: light;
}

/* Steel on light glass needs an edge to read (the app gets one from vibrancy). */
html[data-theme="light"] .chip-f.is-on,
html[data-theme="light"] .cap--on,
html[data-theme="light"] .btn-c--reply,
html[data-theme="light"] .msg--me .msg__bubble,
html[data-theme="light"] .ng__count { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1); }
html[data-theme="light"] .composer__send.is-ready { color: #454552; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.35s ease, color 0.35s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, .brand-word, .brand-mark span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.wrap--narrow { width: min(760px, calc(100% - 2rem)); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.chev { color: var(--accent); font-weight: 800; margin-right: 0.1em; }

/* ───────── Atmosphere ───────── */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.atmosphere__glow {
  position: absolute; inset: -20% -10% auto; height: 90vh;
  background:
    radial-gradient(40% 50% at 70% 30%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(40% 50% at 25% 20%, rgba(110, 120, 220, 0.12), transparent 70%);
  filter: blur(20px);
}
.atmosphere__lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 120px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 60%);
  opacity: 0.5;
}
.atmosphere__grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.brand-mark { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.1rem; }
.brand-mark img { border-radius: 7px; }
.brand-mark--sm { font-size: 0.95rem; }
.site-nav { display: none; gap: 1.6rem; margin-left: auto; font-size: 0.94rem; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-header__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.theme-toggle {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--muted);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
html[data-theme="dark"] .theme-toggle__moon, html[data-theme="light"] .theme-toggle__sun { display: none; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  transition: transform 0.2s var(--ease-out), background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--focus-bg); color: var(--focus-ink); }
.btn--solid:hover { transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--sm { min-height: 36px; padding: 0 1rem; font-size: 0.9rem; }

/* ───────── Hero ───────── */
.hero { padding: 4.5rem 0 3rem; }
.hero__copy { text-align: center; max-width: 820px; }
.brand-word {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin: 0 0 1.2rem; padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
  font-size: 0.95rem; letter-spacing: -0.01em;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  line-height: 0.98;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { margin: 1.4rem auto 0; max-width: 600px; font-size: 1.14rem; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }
.hero__note { margin: 1rem 0 0; font-size: 0.86rem; color: var(--muted-soft); }
.hero__stage { margin-top: 3.5rem; }

/* MacBook Pro frame: upright lid + keyboard deck seen in perspective */
.macbook {
  position: relative; max-width: 1040px; margin: 0 auto; filter: drop-shadow(var(--shadow));
  container-type: inline-size;
}
.macbook__lid {
  position: relative; z-index: 2; padding: 1.4% 1.4% 1.6%;
  background: #0b0b0d; border-radius: 22px 22px 8px 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 0 1.5px var(--lid-edge);
  container-type: inline-size;
}
.macbook__notch {
  position: absolute; top: 1.4%; left: 50%; transform: translateX(-50%);
  width: 13%; height: 3.3%; min-height: 12px; background: #0b0b0d; border-radius: 0 0 10px 10px; z-index: 20;
  display: grid; place-items: center;
}
.macbook__notch span { width: 7px; height: 7px; border-radius: 50%; background: #1d2333; box-shadow: inset 0 0 2px #4a5a80; }

/* Base: seen at table height, so only its front edge shows — a thin slab a little wider than the lid,
   with the top surface catching light and the finger scoop in the middle. */
.macbook__base {
  position: relative; z-index: 1;
  height: 2.3cqw; min-height: 9px; margin: -0.15cqw -4.2% 0;
  border-radius: 0.25cqw 0.25cqw 1.6cqw 1.6cqw / 0.25cqw 0.25cqw 1.4cqw 1.4cqw;
  background: var(--base-front);
  box-shadow: inset 0 -0.12cqw 0.2cqw rgba(0, 0, 0, 0.35);
}
.macbook__top {
  position: absolute; left: 0; right: 0; top: 0; height: 32%;
  border-radius: 0.25cqw 0.25cqw 0 0;
  background: var(--base-top);
}
.macbook__scoop {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 15%; height: 48%; border-radius: 0 0 1.2cqw 1.2cqw / 0 0 0.9cqw 0.9cqw;
  background: var(--base-scoop);
}

/* ───────── The demo Mac (all em, scales with container) ───────── */
.mac {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  font-size: clamp(8.5px, 1.32cqw, 13px);
  line-height: 1.35;
  color: var(--g-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body), sans-serif;
  letter-spacing: -0.005em;
  user-select: none;
  -webkit-user-select: none;
}
.mac__wallpaper { position: absolute; inset: 0; background: var(--wall); transition: background 0.4s; }
.mac__menubar {
  position: absolute; inset: 0 0 auto; height: 2.1em; z-index: 15;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1em; color: var(--mb-ink); font-size: 0.95em;
  background: var(--mb-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mac__mb-left, .mac__mb-right { display: flex; align-items: center; gap: 1.3em; white-space: nowrap; }
.mac__mb-right { gap: 1em; }
.mac__apple { width: 1.15em; height: 1.15em; }
.mac__mb-right svg { width: 1.15em; height: 1.15em; }
.mac__relay { display: inline-flex; }
.mac__relay svg { width: 1.1em; height: 1.1em; }
.mac__clock {
  font-size: inherit; padding: 0.15em 0.5em; margin-right: -0.5em; border-radius: 0.4em;
  position: relative;
}
.mac__clock:hover, .mac[data-open="true"] .mac__clock { background: rgba(127, 127, 140, 0.28); }
.mac__clock::after {
  content: ""; position: absolute; inset: -0.2em; border-radius: 0.5em;
  border: 1.5px solid var(--accent); opacity: 0; animation: clockPulse 2.4s 2.5s ease-out 3;
}
@keyframes clockPulse { 0% { opacity: 0.9; transform: scale(0.92); } 100% { opacity: 0; transform: scale(1.18); } }

/* App icons */
.appicon {
  display: inline-block; flex: none; width: 2.4em; height: 2.4em; border-radius: 0 !important;
  background-repeat: no-repeat; background-position: center; background-size: 70%, 100% 100%;
  -webkit-mask: var(--squircle) center / 100% 100% no-repeat; mask: var(--squircle) center / 100% 100% no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1) !important;
}
.appicon--messages { background-image: var(--ic-messages), linear-gradient(180deg, #62f57a, #0bbd2b); }
.appicon--whatsapp { background-image: var(--ic-whatsapp), linear-gradient(180deg, #5ce27f, #1fa855); }
.appicon--slack { background-image: var(--ic-slack), linear-gradient(180deg, #6b2a6c, #3f0f40); }
.appicon--mail { background-image: var(--ic-mail), linear-gradient(180deg, #48b0ff, #1a6ff5); }
.appicon--calendar { background-image: var(--ic-calendar), linear-gradient(#fff, #fff); background-size: 100%, 100% 100%; }
.appicon--facetime { background-image: var(--ic-facetime), linear-gradient(180deg, #62f57a, #0bbd2b); }
.appicon--reminders { background-image: var(--ic-reminders), linear-gradient(#fff, #fff); background-size: 82%, 100% 100%; }

/* Banner */
.banner {
  position: absolute; z-index: 12; top: 2.9em; right: 1em;
  width: 25em; max-width: calc(100% - 2em);
  display: flex; align-items: center; gap: 0.8em; text-align: left;
  padding: 0.85em 0.9em; border-radius: 1.3em;
  background: var(--g-card-solo); color: var(--g-ink);
  backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: 0 0.8em 2.4em rgba(0, 0, 0, 0.28), inset 0 0 0 1px var(--g-line);
  transform: translateX(calc(100% + 2em)); opacity: 0;
  transition: transform 0.55s var(--ease-spring), opacity 0.3s;
}
.banner.is-shown { transform: none; opacity: 1; }
.banner:hover .banner__reply { opacity: 1; }
.banner__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.banner__top { display: flex; justify-content: space-between; }
.banner__top em { font-style: normal; color: var(--g-muted); font-size: 0.9em; }
.banner__body { color: var(--g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner__reply {
  padding: 0.4em 0.85em; border-radius: 1em; background: var(--g-fill-12);
  font-weight: 600; font-size: 0.92em; opacity: 0.75; transition: opacity 0.2s;
}

/* Edge handle */
.edge-handle {
  position: absolute; z-index: 11; right: 0; top: 50%; transform: translateY(-50%);
  width: 1.6em; height: 7em; display: grid; place-items: center end; padding-right: 0.3em;
  transition: opacity 0.3s;
}
.edge-handle span {
  display: block; width: 0.42em; height: 4.6em; border-radius: 1em;
  background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0.3em 1em rgba(0, 0, 0, 0.25);
  transition: width 0.25s var(--ease-out), background 0.2s;
}
.edge-handle:hover span { width: 0.75em; background: rgba(255, 255, 255, 0.85); }
.mac[data-open="true"] .edge-handle { opacity: 0; pointer-events: none; }

/* ───────── Panel (mirrors NotificationKit: 1em ≈ 13pt) ───────── */
.rp {
  position: absolute; z-index: 14;
  top: 2.6em; right: 0.6em; bottom: 0.6em;
  width: 32.3em; max-width: calc(100% - 1.2em);
  transform: translateX(calc(100% + 2em));
  transition: transform 0.55s var(--ease-spring);
}
.mac[data-open="true"] .rp { transform: none; }
.rp__backdrop {
  position: absolute; inset: 0; border-radius: 1.85em;
  background: var(--g-panel);
  backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7);
}
.rp__outline, .chat__outline { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rp__outline path, .chat__outline path { fill: none; stroke: var(--g-line); stroke-width: 1; }
.rp__inner { position: relative; height: 100%; display: flex; flex-direction: column; gap: 0.77em; padding: 1.23em 0; }

/* PanelHeader: title + count, More, Clear */
.rp__head { display: flex; align-items: center; gap: 0.62em; padding: 0 1.38em; }
.rp__title { margin: 0; font: 600 1.32em/1.2 -apple-system, BlinkMacSystemFont, var(--font-body), sans-serif; letter-spacing: -0.01em; white-space: nowrap; }
.rp__count { font-size: 1.15em; font-weight: 400; color: var(--g-muted); margin-left: 0.3em; }
.rp__spacer { flex: 1; }
.cap {
  display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap;
  padding: 0.3em 0.77em; border-radius: 99em; font-size: 0.92em; font-weight: 500;
  background: var(--g-fill-7); color: var(--g-ink); transition: background 0.15s, transform 0.12s;
}
.cap:hover { background: var(--g-fill-12); }
.cap:active { transform: scale(0.96); }
.cap--on { background: var(--steel); color: #000; }
.cap svg { width: 0.75em; height: 0.75em; }
.more { position: relative; }
.more__menu {
  position: absolute; z-index: 5; top: calc(100% + 0.4em); right: 0; min-width: 11em; padding: 0.35em;
  border-radius: 0.7em; background: var(--g-menu); box-shadow: 0 0.6em 2em rgba(0, 0, 0, 0.3), inset 0 0 0 1px var(--g-line);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.more__menu[hidden] { display: none; }
.more__menu button { display: flex; width: 100%; justify-content: space-between; gap: 1em; padding: 0.35em 0.6em; border-radius: 0.4em; text-align: left; }
.more__menu button:hover { background: var(--mac-select); color: #fff; }
.more__menu em { font-style: normal; color: var(--g-muted); }
.more__menu button:hover em { color: rgba(255, 255, 255, 0.8); }

/* AppFilterBar: All + icon/count chips, horizontally scrollable */
.rp__filters { display: flex; gap: 0.46em; overflow-x: auto; scrollbar-width: none; padding: 0.15em 1.69em; }
.rp__filters::-webkit-scrollbar { display: none; }
.chip-f {
  flex: none; display: inline-flex; align-items: center; gap: 0.38em;
  padding: 0.38em 0.77em; border-radius: 99em; font-size: 0.92em; font-weight: 500;
  background: var(--g-fill-7); color: var(--g-ink); transition: background 0.15s;
}
.chip-f:hover { background: var(--g-fill-12); }
.chip-f.is-on { background: var(--steel); color: #000; }
.chip-f .appicon { width: 1.33em; height: 1.33em; box-shadow: none; }

.rp__list {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; gap: 0.77em; padding: 0.2em 0.92em 0.4em;
}
.rp__list::-webkit-scrollbar { display: none; }
.rp__empty { margin: auto; text-align: center; color: var(--g-muted); }
.rp__empty b { display: block; color: var(--g-ink); font-size: 1.15em; margin-bottom: 0.2em; }

/* NotificationCard */
.nc {
  position: relative; flex: none; border-radius: 1.23em; color: var(--g-ink); cursor: default;
  background: var(--g-fill-45);
  transition: background 0.15s, box-shadow 0.2s, opacity 0.35s, transform 0.35s var(--ease-out), max-height 0.4s var(--ease-out), margin 0.4s;
  max-height: 20em;
  animation: ncIn 0.45s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 45ms + 100ms);
}
.nc:hover { background: var(--g-fill-75); }
.nc.is-selected { background: var(--steel-12); box-shadow: inset 0 0 0 1.5px var(--steel-35); }
.nc.is-fresh { animation: ncFresh 0.9s var(--ease-out); }
@keyframes ncIn { from { opacity: 0; transform: translateX(2.5em); } }
@keyframes ncFresh { 0% { box-shadow: inset 0 0 0 1.5px var(--steel); } 100% { box-shadow: inset 0 0 0 1.5px transparent; } }
.nc__main { display: flex; gap: 0.85em; align-items: flex-start; padding: 0.92em 0.92em 0.77em; }
.nc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3em; }
.nc__meta { display: flex; align-items: baseline; gap: 0.46em; }
.nc__app { font-size: 0.85em; font-weight: 600; color: var(--g-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc__time { margin-left: auto; font-size: 0.85em; color: var(--g-quiet); white-space: nowrap; }
.nc__dot { width: 0.69em; height: 0.69em; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 1.5px var(--g-window); align-self: center; flex: none; }
.nc__title { font-weight: 600; line-height: 1.25; }
.nc__sub { font-size: 0.95em; font-weight: 500; color: var(--g-meta); }
.nc__body { font-size: 0.95em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc__bar { display: flex; align-items: center; gap: 0.46em; padding: 0.62em 0.77em; border-top: 1px solid var(--g-divider); }
.nc__bar .grow { flex: 1; }
.nc__x {
  position: absolute; z-index: 2; top: -0.46em; left: -0.46em; width: 1.6em; height: 1.6em; border-radius: 50%;
  background: var(--g-menu); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), inset 0 0 0 1px var(--g-line); color: var(--g-meta);
  display: grid; place-items: center; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease-spring);
}
.nc__x svg { width: 0.62em; height: 0.62em; }
.nc:hover > .nc__x { opacity: 1; transform: none; }
.nc.is-leaving { opacity: 0; transform: translateX(110%); max-height: 0 !important; margin-bottom: -0.77em; }
.nc__done { font-size: 0.85em; font-weight: 600; color: #30d158; padding: 0.15em 0.2em; }

/* Avatar: sender photo with app badge, or the app icon */
.av { position: relative; flex: none; width: 3.08em; height: 3.08em; }
.av > .appicon { width: 100%; height: 100%; }
.av__face {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 1.15em; color: #fff; background: var(--face, linear-gradient(180deg, #a5adbd, #6c7385));
}
.av--face .av__face { font-size: 1.15em; }
.av__badge { position: absolute; right: -0.25em; bottom: -0.25em; width: 1.38em !important; height: 1.38em !important; }
.av:has(.av__badge) { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }
.av--faces { display: flex; width: auto; }
.av--faces .av__face { width: 3.08em; height: 3.08em; flex: none; box-shadow: 0 0 0 1.5px var(--g-window); font-size: 1.15em; }
.av--faces .av__face + .av__face { margin-left: -1.38em; }

/* Compact capsule buttons (CompactAllow / CompactDestructive / Reply / Open) */
.btn-c {
  display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap;
  padding: 0.38em 0.77em; border-radius: 99em;
  font-size: 0.85em; font-weight: 600; font-family: ui-rounded, -apple-system, sans-serif;
  background: var(--g-fill-12a); color: var(--allow-ink); transition: transform 0.12s, opacity 0.12s, background 0.15s;
}
.btn-c:active { transform: scale(0.96); opacity: 0.82; }
.btn-c:hover { background: var(--g-fill-18a); }
.btn-c svg { width: 0.9em; height: 0.9em; }
.btn-c--danger { background: rgba(255, 69, 58, var(--danger-a)); color: var(--danger-ink); }
.btn-c--danger:hover { background: rgba(255, 69, 58, calc(var(--danger-a) + 0.08)); }
.btn-c--reply {
  padding: 0.46em 0.85em; font-size: 0.95em; font-family: inherit;
  background: var(--steel); color: #000;
}
.btn-c--reply:hover { background: #fff; }
.btn-c--hide { background: #ff9f0a; color: #000; }
.btn-c--hide:hover { background: #ffb340; }

/* GroupedNotificationCard */
.ng { position: relative; flex: none; border-radius: 1.54em; transition: background 0.2s, padding 0.3s var(--ease-out); animation: ncIn 0.45s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + 100ms); }
.ng.is-open { padding: 0.46em; background: var(--g-fill-4); display: flex; flex-direction: column; gap: 0.62em; }
.ng .nc { animation: none; }
.ng__count { font-size: 0.75em; font-weight: 700; padding: 0.05em 0.46em; border-radius: 99em; background: var(--steel); color: #000; }

/* Layout variants */
.mac[data-layout="classic"] .rp__backdrop { -webkit-mask: none !important; mask: none !important; }
.mac[data-layout="floating"] .rp__backdrop,
.mac[data-layout="plain"] .rp__backdrop,
.mac[data-layout="floating"] .rp__outline,
.mac[data-layout="plain"] .rp__outline { display: none; }
.mac[data-layout="floating"] .rp__inner,
.mac[data-layout="plain"] .rp__inner { padding: 0.6em 0 0; gap: 0.62em; }
.rp__toolbar { display: contents; }
.mac[data-layout="floating"] .rp__toolbar,
.mac[data-layout="plain"] .rp__toolbar {
  display: flex; flex-direction: column; gap: 0.62em; margin: 0 0.77em; padding: 0.92em 0 0.6em; border-radius: 1.23em;
  background: var(--g-solo); backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--g-line);
}
.mac[data-layout="floating"] .rp__head, .mac[data-layout="plain"] .rp__head { padding: 0 1.08em; }
.mac[data-layout="floating"] .rp__filters, .mac[data-layout="plain"] .rp__filters { padding: 0.1em 1.08em; }
.mac[data-layout="floating"] .rp__list, .mac[data-layout="plain"] .rp__list { padding: 0.2em 0.77em 0.6em; }
.mac[data-layout="floating"] .nc, .mac[data-layout="plain"] .nc {
  background: var(--g-solo); backdrop-filter: blur(28px) saturate(1.7); -webkit-backdrop-filter: blur(28px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--g-line);
}
.mac[data-layout="floating"] .nc { box-shadow: inset 0 0 0 1px var(--g-line), 0 0 0 0.3em var(--float-dim), 0 0 1.6em 0.5em var(--float-dim); }
.mac[data-layout="floating"] .rp__toolbar { box-shadow: inset 0 0 0 1px var(--g-line), 0 0 0 0.3em var(--float-dim), 0 0 1.6em 0.5em var(--float-dim); }
.mac[data-layout="floating"] .nc:hover, .mac[data-layout="plain"] .nc:hover { background: var(--g-solo-hover); }
.mac[data-layout="floating"] .nc.is-selected, .mac[data-layout="plain"] .nc.is-selected { box-shadow: inset 0 0 0 1.5px var(--steel-35); }
.mac[data-layout="floating"] .ng.is-open, .mac[data-layout="plain"] .ng.is-open { background: transparent; padding: 0; }

/* FloatingChatView: rounded body with a pointer toward the selected card */
.chat {
  position: absolute; z-index: 15; left: 0; top: 0;
  width: 31.85em; height: 35.4em;
  opacity: 0; transform: translateX(1.2em) scale(0.98); transform-origin: right center; pointer-events: none;
  transition: opacity 0.25s, transform 0.4s var(--ease-spring), top 0.35s var(--ease-out);
}
.chat.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat__bg {
  position: absolute; inset: 0;
  background: var(--g-chat);
  backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
}
.chat__inner { position: absolute; inset: 0; right: 1.08em; display: flex; flex-direction: column; }
.chat--overlay .chat__inner { right: 0; }
.chat__head { display: flex; align-items: center; gap: 0.77em; padding: 0.92em 1.08em 0.77em; border-bottom: 1px solid var(--g-divider-35); }
.chat__who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat__who b { font-weight: 600; }
.chat__who em { font-style: normal; font-size: 0.85em; color: var(--g-muted); }
.circ {
  width: 1.85em; height: 1.85em; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--g-fill-8); color: var(--g-muted); transition: background 0.15s, color 0.15s;
}
.circ:hover { color: var(--g-ink); background: var(--g-fill-12); }
.circ svg { width: 0.85em; height: 0.85em; }
.chat .av { width: 2.46em; height: 2.46em; }
.chat .av__face { font-size: 0.95em; }
.chat .av__badge { width: 1.1em !important; height: 1.1em !important; }

.chat__body {
  flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-direction: column; padding: 0.92em 0.77em;
}
.chat__body::-webkit-scrollbar { display: none; }
.chat__body > :first-child { margin-top: auto; }
.chat__day { text-align: center; font-size: 0.78em; color: var(--g-quiet); margin: 0 0 0.6em; }
.msg { display: flex; align-items: flex-end; gap: 0.46em; margin-top: 0.23em; animation: bubIn 0.35s var(--ease-spring) both; }
.msg--me { flex-direction: row-reverse; }
.msg.is-run { margin-top: 0.62em; }
.msg__av { width: 1.85em; height: 1.85em; flex: none; }
.msg__av .av__face { font-size: 0.75em; }
.msg__av.is-hidden { visibility: hidden; }
.msg__bubble {
  max-width: 20em; padding: 0.54em 0.85em; border-radius: 1.08em; line-height: 1.3;
  background: var(--g-fill-8); color: var(--g-ink); word-wrap: break-word;
}
.msg--me .msg__bubble { background: var(--steel); color: #000; }
.msg__bubble--voice { display: flex; align-items: center; gap: 0.46em; }
.msg__bubble--voice svg { width: 1em; height: 1em; flex: none; }
.msg__bubble--voice i { display: inline-block; width: 0.18em; border-radius: 1em; background: currentColor; opacity: 0.75; }
.msg__bubble--voice small { font-size: 0.85em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.msg__meta { align-self: flex-end; font-size: 0.75em; color: var(--g-quiet); margin: 0.2em 2.4em 0 0; }
@keyframes bubIn { from { opacity: 0; transform: translateY(0.6em) scale(0.94); } }
.typing { display: inline-flex; gap: 0.25em; padding: 0.75em 0.9em; }
.typing i { width: 0.45em; height: 0.45em; border-radius: 50%; background: var(--g-muted); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-0.25em); opacity: 1; } }

.chat__detail { padding: 0.3em 0.3em 0; display: flex; flex-direction: column; gap: 0.4em; margin-top: 0 !important; }
.chat__detail h5 { margin: 0; font-size: 1.08em; font-weight: 600; }
.chat__detail p { margin: 0; color: var(--g-meta); }
.chat__actions { display: flex; gap: 0.46em; padding: 0 1.08em 0.62em; }
.chat__actions[hidden] { display: none; }

/* ReplyComposerView */
.composer { padding: 0.62em 0.92em 0.92em; }
.composer[hidden] { display: none; }
.composer__box { display: flex; flex-direction: column; gap: 0.62em; padding: 0.77em 0.92em; border-radius: 1.23em; background: var(--g-fill-6); }
.composer input {
  border: 0; outline: 0; background: transparent; color: var(--g-ink); font: inherit; padding: 0; min-width: 0;
  user-select: text; -webkit-user-select: text;
}
.composer input::placeholder { color: var(--g-quiet); }
.composer__row { display: flex; align-items: center; gap: 0.62em; }
.composer__icon { width: 1.85em; height: 1.85em; display: grid; place-items: center; border-radius: 50%; color: var(--g-muted); flex: none; }
.composer__icon:hover { color: var(--g-ink); background: var(--g-fill-7); }
.composer__icon svg { width: 1.1em; height: 1.1em; }
.composer__icon.is-on { color: #ff453a; }
.composer__langs { display: flex; align-items: center; gap: 0.38em; font-size: 0.7em; color: var(--g-muted); }
.composer__langs b { color: #ff453a; font-weight: 600; }
.composer__langs i { font-style: normal; color: var(--g-quiet); }
.composer__send { width: 2.15em; height: 2.15em; margin-left: auto; color: var(--send-off); flex: none; transition: color 0.15s, transform 0.12s; }
.composer__send.is-ready { color: var(--steel); }
.composer__send:active { transform: scale(0.9); }
.composer__send svg { width: 100%; height: 100%; }
.composer__rec { display: none; align-items: center; gap: 0.62em; }
.composer.is-recording .composer__rec { display: flex; }
.composer.is-recording .composer__type { display: none; }
.composer__rec .dot { width: 0.62em; height: 0.62em; border-radius: 50%; background: #ff453a; animation: recBlink 1s infinite; }
@keyframes recBlink { 50% { opacity: 0.35; } }
.composer__rec .lbl { font-size: 0.92em; font-weight: 600; }
.composer__rec .wave { display: flex; align-items: center; gap: 0.2em; height: 1.4em; flex: 1; }
.composer__rec .wave i { width: 0.2em; height: 30%; border-radius: 1em; background: var(--g-muted); animation: wave 0.9s ease-in-out infinite; }
.composer__rec .wave i:nth-child(2n) { animation-delay: 0.15s; }
.composer__rec .wave i:nth-child(3n) { animation-delay: 0.3s; }
.composer__rec .dur { font-size: 0.85em; color: var(--g-muted); font-variant-numeric: tabular-nums; }
.composer__type { display: flex; flex-direction: column; gap: 0.62em; }
@keyframes wave { 50% { height: 100%; } }

/* Toast */
.toast {
  position: absolute; z-index: 16; left: 50%; bottom: 1.2em; transform: translate(-50%, 1em);
  padding: 0.5em 1em; border-radius: 1em; font-size: 0.92em; font-weight: 600;
  background: rgba(20, 20, 22, 0.82); color: #fff; opacity: 0; pointer-events: none;
  backdrop-filter: blur(14px); transition: opacity 0.3s, transform 0.4s var(--ease-spring);
  white-space: nowrap;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Layout tabs */
.layouts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.3rem;
  max-width: 400px; margin: 1.8rem auto 0; padding: 0.28rem;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg-alt);
}
.layouts button {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  padding: 0.45rem 0.2rem; border-radius: 15px; color: var(--muted); font-size: 0.8rem; font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.layouts button:hover { color: var(--ink); }
.layouts button.is-active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--line); }
.layouts__glyph {
  position: relative; width: 32px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, transparent), rgba(110, 120, 220, 0.3));
  display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 1.5px; padding: 2.5px;
}
.layouts__glyph i { display: block; width: 11px; height: 4px; border-radius: 99px; background: var(--ink); opacity: 0.55; }
.layouts__glyph--panel::before, .layouts__glyph--classic::before {
  content: ""; position: absolute; top: 2px; right: 2px; bottom: 2px; width: 14px; border-radius: 5px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
}
.layouts__glyph--classic::before { border-radius: 3px; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.layouts__glyph--panel i, .layouts__glyph--classic i { position: relative; margin-right: 2px; }
.layouts__glyph--floating::before {
  content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 18px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.35), transparent);
}
.layouts__glyph--floating i { position: relative; }
.hint { text-align: center; margin: 1.1rem 0 0; color: var(--muted); font-size: 0.93rem; scroll-margin-top: 50vh; }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.05em 0.4em; margin: 0 0.1em;
  font: 500 0.85em var(--font-mono); text-align: center;
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--card);
}

/* ───────── Strip ───────── */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); }
.strip__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.6rem; padding: 1.3rem 0; font-size: 0.92rem; color: var(--muted); }
.strip__label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.strip__apps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.3rem; }
.strip__apps li { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); font-weight: 500; }
.strip__apps .appicon { font-size: 9px; }
.strip__more { color: var(--muted-soft); }

/* ───────── Sections ───────── */
.section { padding: 6.5rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 3.5rem; }
.kicker { margin: 0 0 0.9rem; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.section h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.02; }
.section__sub { margin: 1.1rem 0 0; color: var(--muted); font-size: 1.08rem; max-width: 560px; }

/* Ways */
.ways { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.way {
  padding: 1.2rem 1.2rem 1.5rem; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.way:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.way h3 { margin: 1.2rem 0 0.4rem; font-size: 1.3rem; }
.way p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.way__visual {
  position: relative; height: 150px; border-radius: 14px; overflow: hidden;
  background: var(--wall); display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-bar {
  position: absolute; inset: 0 0 auto; height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 12px; background: var(--mb-bg); color: var(--mb-ink); font-size: 12px; backdrop-filter: blur(10px);
}
.mini-bar__dot { width: 12px; height: 8px; border-radius: 3px; background: currentColor; opacity: 0.4; }
.mini-bar__clock { padding: 2px 7px; border-radius: 5px; animation: clockHit 3.2s infinite; }
@keyframes clockHit { 0%, 45% { background: transparent; } 55%, 85% { background: rgba(127, 127, 140, 0.35); } 100% { background: transparent; } }
.cursor {
  position: absolute; top: 70px; right: 70px; width: 16px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 22'%3E%3Cpath d='M1 1v17l4.5-4 3 7 3-1.3-3-6.8H15z' fill='black' stroke='white' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  animation: cursorMove 3.2s var(--ease-out) infinite;
}
@keyframes cursorMove { 0% { transform: translate(-30px, 40px); } 45%, 100% { transform: translate(38px, -56px); } 50% { scale: 0.85; } 56% { scale: 1; } }
.way__visual--keys { display: flex; align-items: center; justify-content: center; gap: 10px; }
.keycap {
  width: 58px; height: 58px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font: 500 22px/1 var(--font-mono); color: var(--ink);
  background: var(--card); box-shadow: 0 4px 0 var(--line-strong), 0 0 0 1px var(--line-strong);
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
}
.keycap small { font: 500 9px var(--font-body); color: var(--muted); margin-top: 6px; }
.keycap--letter { font-family: var(--font-display); font-weight: 700; }
.keycap.is-down { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-strong), 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--card)); }
.way__visual--keys:not(.is-live) .keycap { animation: keyPress 3s infinite; }
.way__visual--keys:not(.is-live) .keycap:nth-child(2) { animation-delay: 0.12s; }
.way__visual--keys:not(.is-live) .keycap:nth-child(3) { animation-delay: 0.24s; }
@keyframes keyPress { 0%, 60%, 100% { transform: none; } 66%, 80% { transform: translateY(3px); box-shadow: 0 1px 0 var(--line-strong), 0 0 0 1px var(--accent); } }
.pad {
  position: relative; width: 170px; height: 110px; border-radius: 12px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 85%, transparent), color-mix(in srgb, var(--card) 65%, transparent));
  box-shadow: 0 0 0 1px var(--line-strong), 0 8px 24px rgba(0, 0, 0, 0.15);
}
.finger {
  position: absolute; right: 8px; top: 34px; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
  animation: swipe 2.6s var(--ease-out) infinite;
}
.finger + .finger { top: 60px; }
@keyframes swipe { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { transform: translateX(-90px); opacity: 1; } 100% { transform: translateX(-100px); opacity: 0; } }
.screen-edge { position: absolute; inset: 18px 0 18px 30%; border-radius: 10px 0 0 10px; background: color-mix(in srgb, var(--card) 40%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); }
.screen-edge__handle {
  position: absolute; right: 6px; top: 50%; width: 6px; height: 44px; border-radius: 4px; background: var(--ink); opacity: 0.6;
  animation: handle 6s var(--ease-out) infinite;
}
@keyframes handle {
  0%, 28% { top: 14%; } 33%, 61% { top: 50%; transform: translateY(-50%); } 66%, 94% { top: 86%; transform: translateY(-100%); } 100% { top: 14%; }
}

/* Feature rows */
.feature { display: grid; gap: 2rem; align-items: center; padding: 2.5rem 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__tag { margin: 0 0 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.feature h3 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.08; }
.feature__copy p:not(.feature__tag) { color: var(--muted); margin: 1rem 0 0; max-width: 470px; }
.feature__visual {
  position: relative; min-height: 300px; border-radius: 24px; padding: 2rem 1.2rem;
  background: var(--wall); display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font-body), sans-serif;
  font-size: 14px; line-height: 1.35; color: var(--g-ink);
}
/* Feature mockups reuse the demo's app components (cards, buttons, chat) at 13px = 13pt */
.fx {
  position: relative; width: min(380px, 100%); display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 1.35; color: var(--g-ink);
}
.fx .nc {
  animation: none; cursor: default;
  background: var(--g-solo); backdrop-filter: blur(24px) saturate(1.7); -webkit-backdrop-filter: blur(24px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--g-line), 0 8px 24px rgba(0, 0, 0, 0.16);
}
.fx .nc.is-selected { box-shadow: inset 0 0 0 1.5px var(--steel-35), 0 8px 24px rgba(0, 0, 0, 0.16); }
.fx .ng.is-open { background: var(--g-fill-6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); animation: none; }
.fx .ng.is-open .nc { box-shadow: inset 0 0 0 1px var(--g-line); }
.fx .btn-c { cursor: default; }
.composer--static { padding: 0; }
.composer--static .composer__box {
  background: var(--g-solo); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: inset 0 0 0 1px var(--g-line), 0 8px 24px rgba(0, 0, 0, 0.16);
}
.fx-typed { white-space: nowrap; overflow: hidden; }
.caret { display: inline-block; width: 1.5px; height: 1.05em; vertical-align: -0.15em; margin-left: 1px; background: var(--g-ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fx-modes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2px; }
.fx-modes span { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--g-solo); box-shadow: inset 0 0 0 1px var(--g-line); color: var(--g-muted); }
.fx-modes span.is-on { color: #000; background: var(--steel); box-shadow: none; }
.fx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fx-filters .chip-f, .fx-filters .cap { background: var(--g-solo); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px var(--g-line); }
.fx-filters .chip-f.is-on { background: var(--steel); }
.fx-chat {
  border-radius: 18px; overflow: hidden;
  background: var(--g-chat); backdrop-filter: blur(30px) saturate(1.7); -webkit-backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: inset 0 0 0 1px var(--g-line), 0 14px 36px rgba(0, 0, 0, 0.22);
}
.fx-chat .chat__body { padding: 12px 10px 14px; }
.fx-chat .chat__body > :first-child { margin-top: 0; }
.fx-chat .av { width: 2.46em; height: 2.46em; }
.fx-chat .av__badge { width: 1.1em !important; height: 1.1em !important; }
.msg__bubble--photo { padding: 0.23em; }
.msg__bubble--photo span {
  display: block; width: 11em; height: 7.4em; border-radius: 0.85em;
  background: radial-gradient(circle at 70% 30%, #ffd27a 0 12%, transparent 13%), linear-gradient(180deg, #7fb2ff 0 55%, #3f7d54 55%);
}

.fx-glass { position: absolute; inset: 0; display: grid; place-items: center; }
.fx-glass__wall {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 30%, #64d2ff 0 18%, transparent 19%),
    radial-gradient(circle at 75% 75%, #5e5ce6 0 22%, transparent 23%),
    radial-gradient(circle at 80% 20%, #30d158 0 10%, transparent 11%),
    linear-gradient(135deg, #2b2b33, #17171b);
}
.fx-glass__panel {
  position: relative; width: min(300px, 82%); padding: 12px; border-radius: 24px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(22, 22, 26, var(--dark)); color: #f5f5f7;
  backdrop-filter: blur(22px) saturate(1.8); -webkit-backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.fx-glass__card { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); font-size: 13px; color: rgba(235, 235, 245, 0.7); }
.fx-glass__card b { display: block; color: #fff; font-size: 14px; }
.fx-glass__card .appicon { font-size: 12px; }
.glass-slider { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.6rem; max-width: 420px; font-size: 0.92rem; font-weight: 500; }
.glass-slider input { flex: 1; accent-color: var(--accent); }
.glass-slider output { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); min-width: 3ch; }

/* Permissions */
.perms { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.perm {
  display: flex; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
}
.perm__n {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 600 0.82rem var(--font-mono); border: 1px solid var(--line-strong); color: var(--muted);
}
.perm h3 { margin: 0.1rem 0 0.35rem; font-size: 1.1rem; letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.perm p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.tag { font: 500 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-style: normal; padding: 0.2rem 0.5rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.tag--rec { border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent-text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 2.5rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "»"; position: absolute; right: 0.3rem; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-weight: 800; transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details p { margin: 0 0 1.4rem; color: var(--muted); max-width: 640px; }

/* CTA */
.cta { padding: 7rem 0 6rem; text-align: center; }
.cta__inner { max-width: 640px; }
.cta__icon { margin: 0 auto 1.8rem; width: 112px; height: 112px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.cta h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; }
.cta p:not(.hero__note) { color: var(--muted); font-size: 1.08rem; margin: 1rem auto 0; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; font-size: 0.88rem; color: var(--muted); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
.hide-sm, .hide-xs { display: inline; }
@media (max-width: 639px) {
  .hero { padding-top: 3rem; }
  .macbook__lid { border-radius: 14px 14px 4px 4px; padding: 2%; }
  .macbook__notch { display: none; }
  .macbook__base { margin-left: -3%; margin-right: -3%; }
  .mac { aspect-ratio: 4 / 5; font-size: clamp(8.5px, 2.75cqw, 11px); border-radius: 8px; }
  .rp { width: auto; left: 0.75em; max-width: none; }
  .banner { width: auto; left: 1em; }
  .hide-sm, .hide-xs { display: none; }
  .layouts__glyph { width: 28px; height: 19px; }
  .layouts__glyph i { width: 9px; height: 3px; }
  .section { padding: 4.5rem 0; }
  .site-header__inner { gap: 0.75rem; }
}
@media (min-width: 640px) and (max-width: 899px) { .hide-sm { display: none; } }
@media (min-width: 720px) {
  .ways { grid-template-columns: repeat(2, 1fr); }
  .perms { grid-template-columns: repeat(2, 1fr); }
  .perms .perm:last-child { grid-column: span 2; }
}
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-header__actions { margin-left: 0; }
  .feature { grid-template-columns: 1fr 1.1fr; gap: 4rem; padding: 3.5rem 0; }
  .feature--reverse .feature__copy { order: 2; }
  .feature__visual { min-height: 360px; }
}
@media (min-width: 1080px) { .ways { grid-template-columns: repeat(4, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ───────── Media: images + videos from media.js ───────── */
.stage-mode {
  display: flex; width: max-content; margin: 0 auto 1.4rem; padding: 4px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt);
}
.stage-mode[hidden] { display: none; }
.stage-mode button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1.05rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.stage-mode button svg { width: 13px; height: 13px; }
.stage-mode button:hover { color: var(--ink); }
.stage-mode button[aria-selected="true"] { background: var(--focus-bg); color: var(--focus-ink); }

.hero__stage[data-mode="watch"] .mac,
.hero__stage[data-mode="watch"] .try-only { display: none; }
.hero__stage[data-mode="try"] .media--screen { display: none; }

.media { position: relative; }
.media[hidden] { display: none; }
.media__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain; border-radius: inherit;
}
.media__track::-webkit-scrollbar { display: none; }
.media__track:focus-visible { outline-offset: -3px; }
.media__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; min-width: 0; }
.media__frame { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; cursor: pointer; }
.media__frame video, .media__frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.media__zoom { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.media__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease-out), opacity 0.25s, background 0.2s;
}
.media__play svg { width: 1.7rem; height: 1.7rem; margin-left: 0.2rem; }
.media__frame:hover .media__play { background: rgba(0, 0, 0, 0.68); transform: translate(-50%, -50%) scale(1.06); }
.media__slide.is-playing .media__play { opacity: 0; pointer-events: none; }
.media__slide figcaption { padding: 0.8rem 0.2rem 0; text-align: center; font-size: 0.9rem; color: var(--muted); }

.media__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(20, 20, 24, 0.55); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  opacity: 0; transition: opacity 0.25s, background 0.2s;
}
.media__nav svg { width: 18px; height: 18px; }
.media__nav--prev { left: 12px; }
.media__nav--next { right: 12px; }
.media:hover .media__nav, .media__nav:focus-visible { opacity: 1; }
.media__nav:hover { background: rgba(20, 20, 24, 0.8); }
@media (hover: none) { .media__nav { display: none; } }
.media__dots { display: flex; justify-content: center; gap: 6px; padding-top: 0.9rem; }
.media__dots button { width: 7px; height: 7px; border-radius: 99px; background: var(--line-strong); transition: width 0.3s var(--ease-out), background 0.2s; }
.media__dots button.is-on { width: 22px; background: var(--accent); }

/* Hero: media fills the laptop screen */
.media--screen { aspect-ratio: 16 / 10; border-radius: 10px; background: #000; }
.media--screen .media__track { height: 100%; border-radius: 10px; }
.media--screen .media__frame video, .media--screen .media__frame img { object-fit: cover; }
.media--screen .media__slide figcaption {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); padding: 0.35rem 0.9rem;
  border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 0.85rem; white-space: nowrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.media--screen .media__dots { position: absolute; left: 0; right: 0; bottom: -2.2rem; padding: 0; }
.hero__stage[data-mode="watch"] .macbook { margin-bottom: 2.2rem; }
@media (max-width: 639px) { .media--screen { border-radius: 8px; } }

/* Feature section: media sits on the wallpaper card */
.feature__visual.media { display: block; padding: 0; }
.feature__visual.media .media__track { position: absolute; inset: 0 0 2.6rem; border-radius: 24px 24px 0 0; }
.feature__visual.media:not(.media--multi) .media__track { bottom: 0; border-radius: 24px; }
.feature__visual.media .media__frame { padding: 1.5rem; }
.feature__visual.media .media__frame video,
.feature__visual.media .media__frame img { border-radius: 14px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.28)); }
.feature__visual.media .media__slide figcaption { padding: 0 1rem 1rem; }
.feature__visual.media .media__dots { position: absolute; left: 0; right: 0; bottom: 0.9rem; padding: 0; }
.feature__visual.media .media__play { width: 3.4rem; height: 3.4rem; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 4vmin;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox.is-open { display: grid; animation: lbIn 0.25s var(--ease-out); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.lightbox__close {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1rem;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
@keyframes lbIn { from { opacity: 0; } }
