/* Device hardware for the "Every screen" tours, and the iOS notification banners.
   Loaded after showcase.css. The screens inside keep their exact capture ratios. */

/* ---------- the stage: a soft light behind each device, a shadow under it ---------- */
.showcase-stage { --stage: 460px; height: var(--stage); position: relative; }
.device-grid .showcase-stage::before {
  content: ''; position: absolute; inset: -6% -4% 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 46% 44% at 50% 46%, rgba(96, 140, 230, .20), transparent 72%),
    radial-gradient(ellipse 30% 26% at 50% 60%, rgba(217, 122, 71, .10), transparent 75%);
}
.device-grid .showcase-stage::after {
  content: ''; position: absolute; left: 22%; right: 22%; bottom: -10px; height: 22px; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%);
  filter: blur(6px);
}
.device-grid .showcase-stage > * { position: relative; z-index: 1; }
.device-grid .device { transition: border-color .3s, transform .3s, box-shadow .3s; }
.device-grid .device:hover { box-shadow: 0 30px 70px -40px rgba(217, 122, 71, .55); }

/* ---------- iPhone: titanium band, black bezel, Dynamic Island, buttons ---------- */
.iphone-shell {
  --bezel: 7px;
  position: relative; flex: none;
  height: var(--stage);
  width: calc((var(--stage) - var(--bezel) * 2) * 644 / 1400 + var(--bezel) * 2);
  padding: var(--bezel);
  border-radius: 40px;
  background: #040506;
  box-shadow:
    0 0 0 1.5px #8a8d96,
    0 0 0 3px #3a3c44,
    0 0 0 4px #15161a,
    0 34px 60px -22px rgba(0, 0, 0, .85),
    0 0 80px rgba(86, 130, 225, .16);
}
.iphone-shell::before, .iphone-shell::after {
  content: ''; position: absolute; width: 3px; border-radius: 2px;
}
/* action button + volume keys */
.iphone-shell::before {
  left: -6.5px; top: 17%; height: 30%;
  background: linear-gradient(180deg,
    #7d8089 0 13%, transparent 13% 27%,
    #7d8089 27% 59%, transparent 59% 68%,
    #7d8089 68% 100%);
}
/* side button */
.iphone-shell::after { right: -6.5px; top: 29%; height: 15%; background: linear-gradient(90deg, #5d6068, #8a8d96); }
.device-grid .iphone-shell .iphone-frame {
  width: 100%; height: 100%; aspect-ratio: auto;
  border: 0; border-radius: 33px; box-shadow: none; background: #000;
}
.iphone-island {
  position: absolute; z-index: 6; left: 50%; top: calc(var(--bezel) + 1.75%);
  width: 29%; height: 4.1%; transform: translateX(-50%);
  border-radius: 999px; background: #000; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.iphone-island::after {
  content: ''; position: absolute; right: 14%; top: 50%; width: 15%; aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #26304a, #06070b 62%);
}
/* a faint sheen across the glass */
.glass-sheen {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 16%, transparent 32%);
}

/* ---------- iPad: even black bezel, aluminium edge, camera on the long side ---------- */
.ipad-frame {
  position: relative; padding: 11px; border: 0; border-radius: 26px; background: #050608;
  box-shadow:
    0 0 0 1.5px #8a8d96, 0 0 0 3px #32343b, 0 0 0 4px #15161a,
    0 34px 60px -22px rgba(0, 0, 0, .85), 0 0 80px rgba(86, 130, 225, .14);
}
.ipad-frame::before {
  content: ''; position: absolute; top: 50%; right: 3.5px; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3552, #07080c 65%); z-index: 5;
}
.ipad-frame::after { content: ''; position: absolute; top: -5px; right: 12%; width: 9%; height: 2.5px; border-radius: 2px 2px 0 0; background: #7d8089; }
.ipad-frame .showcase-screen { border-radius: 15px; }

/* ---------- iPhone Duo: open foldable, soft crease, hinge caps ---------- */
.duo-frame {
  position: relative; width: 94%; padding: 8px; border: 0; border-radius: 30px; background: #050608;
  box-shadow:
    0 0 0 1.5px #8a8d96, 0 0 0 3px #32343b, 0 0 0 4px #15161a,
    0 34px 60px -22px rgba(0, 0, 0, .85), 0 0 80px rgba(86, 130, 225, .14);
}
.duo-frame .showcase-screen { border-radius: 23px; }
/* the fold: a barely-there valley down the middle of the inner display */
.duo-crease {
  position: absolute; z-index: 4; top: 8px; bottom: 8px; left: 50%; width: 7%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%, rgba(0, 0, 0, .09) 40%, rgba(255, 255, 255, .025) 50%, rgba(0, 0, 0, .09) 60%, transparent 100%);
}
/* hinge caps, top and bottom of the spine */
.duo-frame::before, .duo-frame::after {
  content: ''; position: absolute; left: 50%; width: 8%; height: 5px; transform: translateX(-50%);
  background: linear-gradient(90deg, #4a4c54, #9a9da6 30%, #c2c5cc 50%, #9a9da6 70%, #4a4c54);
}
.duo-frame::before { top: -4.5px; border-radius: 3px 3px 0 0; }
.duo-frame::after { bottom: -4.5px; border-radius: 0 0 3px 3px; }
.duo-buttons { position: absolute; right: -6.5px; top: 20%; width: 3px; height: 34%; border-radius: 2px; pointer-events: none;
  background: linear-gradient(180deg, #7d8089 0 44%, transparent 44% 58%, #7d8089 58% 100%); }

/* ---------- MacBook: thin black bezel, camera, aluminium deck with a thumb scoop ---------- */
.device-grid .macbook { width: 80%; margin: 0; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .6)); }
.device-grid .macbook-screen {
  padding: 2.1% 1.5% 2.3%; border: 0; border-radius: 16px 16px 3px 3px; background: #06070a;
  box-shadow: 0 0 0 1.5px #9a9da6, 0 0 0 2.5px #3a3c44;
}
.device-grid .macbook-screen::after { content: none; }
.device-grid .macbook-screen::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; margin-top: calc(1.05% - 2.5px); transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3552, #090a0e 65%); z-index: 3;
}
.device-grid .macbook-bezel { border: 0; border-radius: 5px 5px 2px 2px; box-shadow: none; }
.device-grid .macbook-base {
  width: 120%; height: 13px; border-radius: 2px 2px 14px 14px / 2px 2px 11px 11px;
  background: linear-gradient(180deg, #e3e5ea 0%, #c3c6cd 22%, #9c9fa8 62%, #63666e 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 3px rgba(0, 0, 0, .35);
}
.device-grid .macbook-base::before {
  width: 15%; max-width: none; height: 5px; border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #8d9099, #b9bcc4);
  box-shadow: inset 0 2px 2px rgba(0, 0, 0, .28);
}
.device-grid .macbook-base::after { left: 4%; right: 4%; bottom: 1px; background: rgba(255, 255, 255, .22); }

/* ---------- Apple Watch: the case, crown and band are one drawing (.watch-art);
   the live screen sits in its glass ---------- */
.device-grid .apple-watch {
  position: relative; display: block; flex: none; width: 260px; height: 460px; margin: 0;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, .6));
}
.watch-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.device-grid .watch-strap, .device-grid .watch-mic, .device-grid .watch-crown, .device-grid .watch-side-btn { display: none; }
.device-grid .watch-body {
  position: absolute; left: 38px; top: 120px; width: 184px; height: 220px; aspect-ratio: auto;
  padding: 0; border-radius: 50px; background: none; box-shadow: none;
}
.device-grid .watch-screen {
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 50px; background: #000; box-shadow: none;
}
.device-grid .watch-glare {
  border-radius: 50px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 14%, transparent 30%),
    radial-gradient(120% 60% at 100% 100%, rgba(255, 255, 255, .07), transparent 60%);
}
.device-watch .showcase-stage { --stage: 470px; }

/* ---------- Apple TV: a television on a stand ---------- */
.device-grid .tv-real {
  border: 0; border-radius: 9px; overflow: visible; background: #000; width: 96%;
  box-shadow: 0 0 0 5px #0b0c10, 0 0 0 6px #4a4c54, 0 40px 60px -26px rgba(0, 0, 0, .9), 0 0 90px rgba(86, 130, 225, .16);
}
.device-grid .tv-real-video { border-radius: 6px; }
.device-grid .tv-real::after {
  content: ''; position: absolute; left: 50%; top: calc(100% + 6px); width: 26%; height: 18px; transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent 0 70%, #6d7078 70% 100%),
    linear-gradient(90deg, transparent 0 44%, #2c2e35 44% 56%, transparent 56% 100%);
  border-radius: 0 0 4px 4px;
}

/* ---------- hero and alert phones: the same hardware edge, no layout change ---------- */
.hero-phone {
  border: 6px solid #040506;
  box-shadow:
    0 0 0 1.5px #8a8d96, 0 0 0 3px #3a3c44, 0 0 0 4px #15161a,
    0 60px 100px -30px rgba(0, 0, 0, .7), 0 0 80px rgba(80, 130, 220, .28);
}
.alert-stack .phone {
  border: 5px solid #0b0c10;
  box-shadow: 0 0 0 1.5px #a5a8b0, 0 0 0 3px #4c4e56, var(--shadow-paper);
}

/* ---------- iOS notification banners ---------- */
.ios-notes {
  position: absolute; inset: 0; z-index: 7; overflow: hidden; border-radius: inherit; pointer-events: none;
  container-type: inline-size;
}
.ios-note {
  position: absolute; left: 3.2%; right: 3.2%; top: 7.4%;
  display: grid; grid-template-columns: 11.5cqw minmax(0, 1fr); align-items: center; gap: 2.8cqw;
  padding: 3.1cqw 3.6cqw 3.3cqw 3.1cqw;
  border-radius: 7cqw;
  background: rgba(244, 244, 247, .80);
  -webkit-backdrop-filter: blur(22px) saturate(1.8); backdrop-filter: blur(22px) saturate(1.8);
  box-shadow: 0 6cqw 12cqw -5cqw rgba(0, 0, 0, .45), inset 0 0 0 .5px rgba(255, 255, 255, .6);
  color: #0b0b0f;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.24; text-align: left;
  transform: translateY(-170%) scale(.94); opacity: 0;
  transition: transform .62s cubic-bezier(.2, .9, .24, 1.06), opacity .32s ease;
  will-change: transform;
}
.ios-notes[data-tone="dark"] .ios-note {
  background: rgba(44, 44, 50, .72); color: #fff;
  box-shadow: 0 6cqw 12cqw -5cqw rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.ios-note.is-in { transform: none; opacity: 1; }
.ios-note-icon { width: 11.5cqw; height: 11.5cqw; border-radius: 2.7cqw; display: block; box-shadow: 0 .4cqw 1.2cqw rgba(0, 0, 0, .25); }
.ios-note-top { display: flex; align-items: baseline; justify-content: space-between; gap: 2cqw; }
.ios-note-title { font-size: 4.25cqw; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ios-note-time { flex: none; font-size: 3.5cqw; opacity: .5; }
.ios-note-body { margin-top: .5cqw; font-size: 4cqw; opacity: .86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.showcase-paused .ios-note { transition: none; }
@media (prefers-reduced-motion: reduce) { .ios-notes { display: none; } }

@media (max-width: 700px) {
  .showcase-stage { --stage: 400px; }
  .device-watch .showcase-stage { --stage: 440px; }
  .device-grid .apple-watch { transform: scale(.93); }
  .device-grid .macbook { width: 78%; }
  .duo-frame { width: 96%; }
}

/* ---------- compact top bar: centre the links, fade only an edge that hides more ---------- */
@media (max-width: 720px) {
  .nav-links { -webkit-mask-image: none; mask-image: none; }
  .nav-links a:first-child { margin-left: auto; }
  .nav-links a:last-child { margin-right: auto; }
  .nav-links[data-more="right"] { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, #000 0, #000 86%, transparent 100%); }
  .nav-links[data-more="left"] { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 100%); }
  .nav-links[data-more="both"] { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
}

/* ---------- page-level notifications: under the top bar, top right on computers.
   Sized in points like a real iOS banner, not scaled with the screen. ---------- */
.ios-notes.is-page {
  position: fixed; inset: auto; top: 92px; right: 20px; width: 344px; z-index: 999;
  overflow: visible; border-radius: 0; container-type: normal;
}
.ios-notes.is-page .ios-note {
  position: relative; left: auto; right: auto; top: auto; cursor: pointer;
  grid-template-columns: 36px minmax(0, 1fr) 22px; gap: 10px; padding: 10px 10px 11px 12px; border-radius: 22px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, .7), inset 0 0 0 .5px rgba(255, 255, 255, .14);
  transform: translateX(calc(100% + 40px)); pointer-events: none;
}
.ios-notes.is-page .ios-note.is-in { transform: none; pointer-events: auto; }
.ios-notes.is-page .ios-note-icon { width: 36px; height: 36px; border-radius: 8.5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.ios-notes.is-page .ios-note-top { gap: 8px; }
.ios-notes.is-page .ios-note-title { font-size: 14px; }
.ios-notes.is-page .ios-note-time { font-size: 12px; }
.ios-notes.is-page .ios-note-body { margin-top: 1px; font-size: 13px; line-height: 1.25; }
.ios-note-close {
  appearance: none; align-self: start; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: inherit; font: 400 15px/22px -apple-system, 'Helvetica Neue', Arial, sans-serif;
  text-align: center; cursor: pointer; opacity: .75;
}
.ios-note-close:hover { opacity: 1; background: rgba(255, 255, 255, .26); }
@media (max-width: 720px) {
  .ios-notes.is-page { top: 80px; left: auto; right: 10px; width: min(352px, calc(100vw - 20px)); margin: 0; }
  .ios-notes.is-page .ios-note { transform: translateY(-190%) scale(.94); }
  .ios-note-close { width: 26px; height: 26px; line-height: 26px; }
  .ios-notes.is-page .ios-note { grid-template-columns: 36px minmax(0, 1fr) 26px; }
}

/* ---------- hero phone: sized to its stage so it clears the ticker; closer to the text on phones ---------- */
@media (min-width: 1081px) {
  .hero-phone { top: 0; width: min(320px, calc(max(78vh, 660px) * .42)); }
}
@media (max-width: 720px) {
  /* the phone bobs 8px each way: keep that clear of the text above and the chips below */
  .hero-grid { gap: 14px; }
  .hero-stage { padding-top: 530px; }
  .hero-phone { top: 12px; }
  .rotating-earth { top: 242px; }
  .hero-watch { top: 390px; }
}

/* ---------- Home Screen widgets on phones: closer to their real size on a phone ----------
   The two large widgets share a row; the wide ones sit beside their captions. */
@media (max-width: 960px) {
  .widget-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; max-width: 460px; }
  .widget-column { display: contents; }
  .widget-wall .widget-capture { grid-column: 1 / -1; order: 2; display: grid; grid-template-columns: 56% minmax(0, 1fr); align-items: center; gap: 14px; }
  .widget-wall .widget-capture figcaption { padding: 0; gap: 3px; }
  .widget-wall .widget-capture figcaption strong { font-size: 14px; line-height: 1.3; }
  .widget-wall .widget-capture figcaption span { font-size: 11.5px; line-height: 1.45; }
  .widget-wall .widget-capture img { filter: drop-shadow(0 10px 16px #0004); }
  /* the large pair */
  .widget-wall .widget-column:first-child .widget-capture:first-child,
  .widget-wall .widget-column:last-child .widget-capture:first-child { grid-column: auto; order: 1; display: block; }
  .widget-wall .widget-column:first-child .widget-capture:first-child figcaption,
  .widget-wall .widget-column:last-child .widget-capture:first-child figcaption { padding: 12px 2px 0; }
  /* the small square one */
  .widget-wall .widget-compact { grid-template-columns: 30% minmax(0, 1fr); order: 3; }
}

/* ---------- compact top bar: an easier rail to swipe ---------- */
@media (max-width: 720px) {
  .nav-links {
    align-self: stretch; align-items: center; gap: 2px; padding: 0 2px;
    touch-action: pan-x; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 12px;
  }
  .nav-links a { padding: 13px 7px; font-size: 13.5px; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
}

/* ---------- back to top: the top bar's glass, bottom right, with a ring that fills as you read ---------- */
.to-top {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  width: 56px; height: 56px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; color: var(--star);
  background: rgba(10, 13, 24, .58);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-mid), 0 0 26px rgba(80, 140, 220, .16);
  opacity: 0; transform: translateY(16px) scale(.86); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1.1), background .3s, color .3s, bottom .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
/* a touch target well beyond the circle, reaching the screen's corner */
.to-top::after { content: ''; position: absolute; inset: -18px -22px -22px -18px; border-radius: 24px; }
.to-top { touch-action: manipulation; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 1.6; }
.to-top-track { stroke: var(--line-d-2); }
.to-top-progress {
  stroke: var(--ember); stroke-linecap: round;
  stroke-dasharray: 163.4; stroke-dashoffset: calc(163.4px * (1 - var(--read, 0)));
  filter: drop-shadow(0 0 4px rgba(217, 122, 71, .7));
}
.to-top-arrow { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1.2); }
.to-top:hover { color: var(--ember-soft); background: rgba(16, 20, 36, .8); }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; }
/* over the cream sections it turns to paper, like the top bar does */
.to-top.is-paper { color: var(--ink-text); background: rgba(244, 236, 225, .78); box-shadow: var(--shadow-paper); }
.to-top.is-paper .to-top-track { stroke: rgba(20, 24, 40, .16); }
.to-top.is-paper:hover { color: var(--ember-2); background: rgba(250, 244, 235, .95); }
@media (max-width: 720px) {
  .to-top { right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) { .to-top, .to-top-arrow { transition: none; } }

/* ---------- Earth layers rail: room for the selected tile's glow ----------
   A sideways-scrolling rail clips whatever leaves it top and bottom, so the glow around
   the chosen phone was cut in a straight line. The rail gets taller padding and gives
   the same amount back as negative margin: the layout does not move, the glow fades out. */
.overlay-gallery { padding-bottom: 130px; margin-bottom: -92px; }
@media (max-width: 1080px) {
  .overlay-gallery { padding-top: 96px; margin-top: -88px; padding-bottom: 130px; margin-bottom: -110px; }
}
@media (max-width: 720px) {
  .overlay-gallery { padding-top: 96px; margin-top: -88px; padding-bottom: 130px; margin-bottom: -108px; }
}

/* ---------- footer: revealed under the page, with the name set large ----------
   The footer is cream paper with the wordmark across the bottom. Where it fits on
   screen it stays fixed underneath, and the page above ends in a rounded sheet that
   lifts away to uncover it. */
.footer {
  position: relative; overflow: hidden; padding: 84px 0 0; border-top: 0;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(217, 122, 71, .20), transparent 60%),
    var(--paper);
  color: var(--ink-text);
}
.footer .footer-name { color: var(--ink-text); }
.footer .footer-tag { color: #7a715f; }
.footer .footer-nav a { color: #4a4536; }
.footer .footer-nav a:hover { color: var(--ember-2); }
.footer .footer-meta { color: #8a8170; }
.footer-wordmark {
  margin: 70px 0 -.15em; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  font-family: var(--t-display); font-weight: 400; font-size: 18.2vw; line-height: .8; letter-spacing: -.045em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100; color: var(--ink-text);
}
.footer-wordmark em { font-style: italic; font-weight: 300; color: var(--ember-2); }
/* the footer reaches 48px up behind the sheet, so its rounded corners always show cream */
html.has-footer-reveal .footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; padding-top: 132px; }
html.has-footer-reveal body > section { position: relative; z-index: 1; }
html.has-footer-reveal body > section.sources {
  margin-bottom: calc(var(--footer-h, 48px) - 48px); overflow: clip;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 36px 60px -26px rgba(20, 14, 6, .55);
}
@media (max-width: 720px) {
  .footer { padding-top: 56px; }
  html.has-footer-reveal .footer { padding-top: 104px; }
  .footer-wordmark { margin-top: 44px; }
  html.has-footer-reveal body > section.sources { border-radius: 0 0 30px 30px; }
}

/* ---------- top bar: the link of the section on screen is lit ---------- */
.nav-links a { position: relative; transition: opacity .25s, color .25s; }
.nav-links a.is-current { opacity: 1; color: var(--ember-soft); }
.nav.is-paper .nav-links a.is-current { color: var(--ember-2); }
.nav-links a.is-current::after {
  content: ''; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}
@media (max-width: 720px) { .nav-links a.is-current::after { bottom: 5px; } }

/* ---------- Mac card on phones: no empty band above the laptop ---------- */
@media (max-width: 700px) {
  .device-mac .showcase-stage { min-height: 0; padding: 10px 0 30px; }
  .device-grid .macbook { width: 82%; }
}
