/* From design-kit/skill/patterns/parts/parts.css (kit commit 6209d04): only the blocks this page uses.
   Its tokens are mapped onto this page's own. */
:root { --bg: var(--page); --surface: #f5f5f7; --grey: #6e6e73; --line: rgb(0 0 0 / .08); --link: #0066cc;
  --pill: #e8e8ed; --pill-hover: #dfdfe4; --flip: cubic-bezier(.65, 0, .35, 1); --reveal: cubic-bezier(.28, .11, .32, 1); }
[data-theme="dark"] { --surface: #1d1d1f; --grey: #86868b; --line: rgb(255 255 255 / .1); --link: #2997ff;
  --pill: #333336; --pill-hover: #3d3d40; }
/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translate3d(0, 32px, 0); transition: opacity .9s var(--reveal), transform 1.1s var(--reveal); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- 6. Cards that turn over ----------
   The + turns into ×, the card turns over on its vertical axis and dips to 93% at the half-way
   point, so it feels light. The back holds the longer story and an action. */
.flip-row { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(300px, 25.8vw, 372px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 8px; }
.flip-row::-webkit-scrollbar { display: none; }
.flip { position: relative; height: clamp(440px, 34.4vw, 500px); perspective: 2000px; scroll-snap-align: start; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .62s var(--flip); }
.flip.is-open .flip-inner { transform: rotateY(180deg); animation: flip-dip .62s var(--flip); }
.flip.was-open .flip-inner { animation: flip-dip-back .62s var(--flip); }
@keyframes flip-dip { 50% { scale: .93; } }
@keyframes flip-dip-back { 50% { scale: .93; } }
.face { position: absolute; inset: 0; border-radius: 28px; background: var(--surface); padding: 30px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; overflow: hidden;
  transition: visibility 0s linear .31s; }
.face.back { transform: rotateY(180deg); }
.flip:not(.is-open) .face.back, .flip.is-open .face.front { visibility: hidden; }
.face .eyebrow { font-weight: 600; }
.face h3 { font: 600 28px/32px -apple-system, sans-serif; margin-top: 8px; text-wrap: balance; }
.face p { color: var(--grey); margin-top: 16px; }
.face p strong { color: var(--ink); font-weight: 600; }
.face .pic { margin-top: auto; border-radius: 14px; overflow: hidden; }
.face .cta { margin: auto 52px 0 0; }
.btn-blue { display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; }
.flip-toggle { position: absolute; right: 20px; bottom: 20px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: var(--pill); transition: transform .62s var(--flip), background .2s; }
.flip-toggle:hover { background: var(--pill-hover); }
.flip-toggle:active { scale: .9; }
.flip-toggle::before, .flip-toggle::after { content: ""; position: absolute; left: 10px; top: 17px; width: 16px; height: 2px; border-radius: 1px; background: var(--ink); }
.flip-toggle::after { transform: rotate(90deg); }
.flip.is-open .flip-toggle { transform: rotate(45deg); }
.row-arrows { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.row-arrows button { width: 44px; height: 44px; border-radius: 50%; background: var(--pill); display: grid; place-items: center; transition: opacity .2s, scale .15s; }
.row-arrows button:active { scale: .94; }
.row-arrows button[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.row-arrows button::before { content: ""; width: 9px; height: 9px; border: solid var(--ink); border-width: 2px 2px 0 0; transform: translateX(-2px) rotate(45deg); }
.row-arrows button.prev::before { transform: translateX(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) {
  .flip-inner, .flip.is-open .flip-inner { transform: none; animation: none; transition: none; }
  .face.back { transform: none; } .face { transition: opacity .28s; }
  .flip:not(.is-open) .face.back, .flip.is-open .face.front { visibility: visible; opacity: 0; }
}

/* ---------- Local nav (apple.com style): name and one line on the left, links and a blue pill ---------- */
.localnav { position: sticky; top: 0; z-index: 80; height: 60px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.localnav > div { max-width: 1024px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.localnav strong { display: block; font: 600 21px/24px -apple-system, sans-serif; }
.localnav small { display: block; font-size: 12px; line-height: 16px; color: var(--grey); margin-top: 3px; }
.localnav nav { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.localnav nav a { color: var(--ink); text-decoration: none; opacity: .88; }
.localnav nav a[aria-current="true"] { opacity: 1; font-weight: 600; }
.localnav .pill { padding: 4px 13px; border-radius: 980px; background: var(--blue); color: #fff; opacity: 1; }
@media (max-width: 760px) { .localnav nav a:not(.pill) { display: none; } }

.localnav > div > div:first-child { min-width: 0; overflow: hidden; }
.localnav strong, .localnav small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.localnav nav { flex-shrink: 1; min-width: 0; }
.localnav nav a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 16em; }
.localnav .pill { flex-shrink: 0; }
.face h3 { overflow-wrap: anywhere; }

/* The + sits 20 to 56 pt up from the card's foot: the picture stops 10 pt above it, never under it. */
.face .pic { margin-bottom: 36px; }

/* ---------- 3. Media cards with a caption over a scrim ---------- */
.media-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.media-card { position: relative; border-radius: 28px; clip-path: inset(0 round 28px); transform: translateZ(0); background: var(--well); overflow: hidden; min-height: 400px; }
.media-card img, .media-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 26px 22px; font: 400 17px/21px -apple-system, sans-serif; color: rgb(255 255 255 / .74);
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / .5) 55%, rgb(0 0 0 / .72) 100%); }
.media-card figcaption strong { color: #fff; font-weight: 600; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-12 { grid-column: span 12; min-height: 540px; }
@media (max-width: 760px) { .media-grid > * { grid-column: span 12; } }


/* ---------- Text measure and the bold-lead sentence ----------
   Words never run the full column: ledes 34ch to 36em, captions 640px, rows 1040px.
   "Bold lead. Grey rest." : same size, the lead in ink and weight 600, the rest grey. */
.lead-sentence { font: 600 21px/29px -apple-system, sans-serif; color: var(--grey); text-wrap: pretty; }
.lead-sentence b { color: var(--ink); font-weight: 600; }
.lead-sentence b::after { content: ". "; }
.measure { max-width: 36em; }


/* ---------- 1. Feature row: icon, bold lead, grey rest, a bar under each ----------
   One item plays at a time: its icon moves (symbol-motion.js), its bar fills, the others dim. */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(32px, 4.4vw, 64px); width: min(1040px, 100%); margin: 0 auto; list-style: none; padding: 0; }
.feature-row li { display: grid; align-content: start; gap: 22px; cursor: pointer; transition: opacity .35s ease; }
/* The others step back: the icon and bar fade and the bold lead turns grey, but the words stay readable
   (dimming the whole item to 32%, as some sites do, fails contrast). */
.feature-row li svg.sym, .feature-row li .bar { transition: opacity .35s ease; }
.feature-row li .lead-sentence b { transition: color .35s ease; }
.feature-row.is-synced li:not(.is-on) svg.sym { opacity: .3; }
.feature-row.is-synced li:not(.is-on) .bar { opacity: .5; }
.feature-row.is-synced li:not(.is-on) .lead-sentence b { color: var(--grey); }
.feature-row li:hover svg.sym { opacity: 1 !important; }
.feature-row li:hover .lead-sentence b { color: var(--ink) !important; }
.feature-row svg.sym { height: 52px; width: auto; justify-self: start; }
.feature-row .bar { height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; margin-top: 6px; }
.feature-row .bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.feature-row li:not(.is-on) .bar i { opacity: 0; transition: opacity .5s cubic-bezier(.65, 0, .35, 1); }
.feature-stage { position: relative; aspect-ratio: 16 / 10; width: min(860px, 100%); margin: 0 auto 48px; border-radius: 28px; overflow: hidden; background: var(--well); }
.feature-stage > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; }
.feature-stage > .is-on { opacity: 1; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } }

