:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #6c6f76;
  --line: #dcdfe5;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --navy: #19324a;
  --blue: #4177a9;
  --green: #5f8d72;
  --rose: #b56872;
  --gold: #c6a96a;
  --shadow: 0 24px 60px rgba(23, 28, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(65, 119, 169, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 32px;
  min-height: 72svh;
  padding: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 244, 0.72)),
    radial-gradient(circle at 78% 28%, rgba(198, 169, 106, 0.35), transparent 26%),
    linear-gradient(135deg, #f7f7f4, #dde7ed 55%, #fff);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 680px;
  color: #30343a;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-stage {
  position: relative;
  min-height: 440px;
}

.hero-phone {
  position: absolute;
  overflow: hidden;
  border: 6px solid #111;
  background: #111;
  box-shadow: var(--shadow);
}

.hero-screen {
  position: absolute;
  border-radius: 10px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(145deg, var(--screen-main), var(--screen-alt));
}

.hero-phone::before,
.hero-phone::after {
  content: none;
}

.device {
  position: absolute;
  border: 8px solid #111;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 24%),
    linear-gradient(145deg, var(--device-main), var(--device-alt));
  box-shadow: var(--shadow);
}

.device::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 36%;
  height: 18px;
  border-radius: 0 0 16px 16px;
  background: #111;
  transform: translateX(-50%);
}

.device::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 38px;
  width: 34px;
  height: 34px;
  border: 5px solid rgba(255, 255, 255, 0.74);
  border-radius: 50%;
  background: #151515;
}

.hero-phone-one {
  --screen-main: #25425f;
  --screen-alt: #79a7c9;
  right: 120px;
  top: 12px;
  width: 178px;
  height: 360px;
  border-radius: 34px;
  transform: rotate(-9deg);
}

.hero-phone-two {
  --screen-main: #e8dcc1;
  --screen-alt: #b66569;
  right: 28px;
  top: 84px;
  width: 196px;
  height: 390px;
  border-radius: 38px;
  transform: rotate(8deg);
}

.hero-phone-three {
  --screen-main: #222;
  --screen-alt: #68727b;
  right: 252px;
  top: 112px;
  width: 150px;
  height: 300px;
  border-color: #d9d6ce;
  border-radius: 28px;
  background: #f2eee8;
  transform: rotate(4deg);
}

.hero-phone-four {
  --screen-main: #1e3348;
  --screen-alt: #070707;
  right: 342px;
  top: 28px;
  width: 126px;
  height: 250px;
  border-color: #9a9b93;
  border-radius: 22px;
  background: #171717;
  transform: rotate(-14deg);
}

.hero-phone-five {
  --screen-main: #202b38;
  --screen-alt: #6f879d;
  right: 394px;
  top: 188px;
  width: 112px;
  height: 220px;
  border-color: #222;
  border-radius: 18px;
  background: #111;
  transform: rotate(10deg);
}

.hero-iphone-original .hero-screen {
  left: 13px;
  right: 13px;
  top: 47px;
  height: 130px;
  border-radius: 4px;
}

.hero-iphone-original::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: #424242;
  transform: translateX(-50%);
}

.hero-iphone-original::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(210, 210, 210, 0.72);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateX(-50%);
}

.hero-iphone-4 .hero-screen {
  left: 10px;
  right: 10px;
  top: 38px;
  height: 132px;
  border-radius: 3px;
}

.hero-iphone-4::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 17px;
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: #3f3f3f;
  transform: translateX(-50%);
}

.hero-iphone-4::after,
.hero-iphone-8::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(225, 225, 225, 0.72);
  border-radius: 50%;
  background: transparent;
  transform: translateX(-50%);
}

.hero-iphone-8 .hero-screen {
  left: 10px;
  right: 10px;
  top: 44px;
  height: 200px;
  border-radius: 3px;
}

.hero-iphone-8::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22px;
  width: 36px;
  height: 5px;
  border-radius: 999px;
  background: #c3beb6;
  transform: translateX(-50%);
}

.hero-iphone-8::after {
  border-color: #d1ccc2;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(190, 185, 176, 0.42);
}

.hero-iphone-x .hero-screen,
.hero-iphone-modern .hero-screen {
  inset: 6px;
  border-radius: 25px;
}

.hero-iphone-x::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 6px;
  width: 74px;
  height: 25px;
  border-radius: 0 0 16px 16px;
  background: #111;
  transform: translateX(-50%);
}

.hero-iphone-modern::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 16px;
  width: 52px;
  height: 16px;
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.controls {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(240px, 420px) 1fr;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(18px);
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  outline: none;
}

.mobile-model-picker {
  display: none;
}

.mobile-model-picker span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mobile-model-picker select {
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(65, 119, 169, 0.16);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-content: end;
  gap: 8px;
}

.filter-pill {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #30343a;
}

.filter-pill.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(290px, 420px) minmax(0, 1fr);
  min-height: 80svh;
}

.timeline-panel {
  max-height: calc(100svh - 84px);
  overflow: auto;
  padding: 28px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line);
  background: #fbfbf9;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-note {
  max-width: 620px;
  margin: -8px 0 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.phone-list {
  display: grid;
  gap: 10px;
}

.phone-button {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-align: left;
}

.phone-button.active {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(25, 50, 74, 0.12);
}

.phone-button:hover {
  border-color: #aeb6bf;
  background: #fff;
}

.mini-device {
  width: 44px;
  height: 54px;
  border: 4px solid #161616;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--device-main), var(--device-alt));
}

.mini-device.has-photo {
  border: 0;
  border-radius: 6px;
  background-color: #f0f1ef;
  background-image: var(--image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.phone-button strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.phone-button span {
  color: var(--muted);
  font-size: 0.86rem;
}

.year-badge {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff2f4;
  color: #30343a;
  font-size: 0.78rem;
  font-weight: 800;
}

.detail-panel {
  padding: clamp(20px, 4vw, 48px);
  scroll-margin-top: 112px;
}

#selectedModelHeading {
  scroll-margin-top: 112px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  margin-bottom: 34px;
}

.device-stage {
  display: grid;
  position: relative;
  min-height: 420px;
  place-items: center;
}

.device {
  --device-main: #d9d9d3;
  --device-alt: #222;
  left: 50%;
  top: 50%;
  width: min(230px, 70vw);
  height: 410px;
  transform: translate(-50%, -50%);
}

.device-photo {
  width: min(100%, 360px);
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(23, 28, 35, 0.18));
}

.device.home-button::before {
  left: 50%;
  top: auto;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.7);
}

.device.home-button::after {
  right: 22px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-width: 3px;
}

.device.dynamic-island::before {
  width: 76px;
  height: 24px;
  border-radius: 999px;
}

.device.classic-shape {
  border-radius: 22px;
}

.device.classic-shape::before {
  top: 18px;
  width: 54px;
  height: 9px;
  border-radius: 999px;
}

.detail-copy h2 {
  margin-bottom: 6px;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.summary {
  max-width: 740px;
  color: #373b41;
  font-size: 1.04rem;
  line-height: 1.65;
}

.variant-section {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.variant-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.variant-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.variant-facts {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 4px solid var(--blue);
  background: #eef3f6;
}

.variant-facts span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.variant-facts strong {
  line-height: 1.45;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.meta-tile,
.info-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.meta-tile {
  padding: 12px;
}

.meta-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-tile strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.support-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  margin-top: 8px;
  padding: 4px 9px;
  border: 1px solid #9ab6a3;
  border-radius: 999px;
  background: #edf5ef;
  color: #315f40;
  font-size: 0.78rem;
  font-weight: 900;
}

.support-status.ineligible {
  border-color: #cbd0d6;
  background: #f1f2f3;
  color: #62676f;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.info-card.added {
  border-top: 4px solid var(--green);
}

.info-card.removed {
  border-top: 4px solid var(--rose);
}

.info-card.tradeoffs {
  border-top: 4px solid var(--gold);
}

.info-card {
  padding: 18px;
}

.info-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.info-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: #34383e;
  line-height: 1.45;
}

.event-card {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.event-card .section-heading h3 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.event-photo,
.event-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f4f1;
}

.event-photo {
  object-fit: cover;
}

.event-placeholder {
  display: grid;
  place-items: center;
  padding: 22px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.event-copy {
  display: grid;
  gap: 12px;
}

.event-copy p {
  margin: 0;
  color: #34383e;
  line-height: 1.55;
}

.event-credit {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.event-meta {
  margin: 0;
}

.color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #30343a;
  font-size: 0.88rem;
}

.swatch-dot {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: var(--swatch);
}

.color-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.timeline-year {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-year:first-child {
  margin-top: 0;
}

.action-button:disabled {
  border-color: #b8bdc4;
  background: #dfe1e4;
  color: #666b72;
  cursor: not-allowed;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.action-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.action-button.secondary {
  background: #fff;
  color: var(--ink);
}

.compare-panel {
  padding: clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: #f2f4f1;
}

.compare-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compare-card-list {
  display: none;
}

.compare-card {
  flex: 0 0 min(86vw, 340px);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}

.compare-card h3 {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.compare-card .compare-variant {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.compare-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.compare-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-card dd {
  margin: 3px 0 0;
  line-height: 1.45;
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}

.compare-table th:first-child,
.compare-table td:first-child {
  width: 150px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-table ul {
  margin: 0;
  padding-left: 18px;
}

.compare-table li + li {
  margin-top: 5px;
}

.source-links a,
.source-list a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-label {
  width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.image-credit,
.event-credit {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.image-credit {
  margin: 12px 0 0;
}

.image-credit a {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.sources {
  padding: clamp(24px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.sources p {
  max-width: 920px;
  color: #34383e;
  line-height: 1.65;
}

.source-policy {
  color: var(--muted);
  font-size: 0.92rem;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.source-list a {
  display: block;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf9;
}

.legal-disclaimer {
  padding: 22px clamp(24px, 5vw, 56px) 34px;
  border-top: 1px solid var(--line);
  background: #f1f2ef;
}

.legal-disclaimer p {
  max-width: 1040px;
  margin: 0;
  color: #555b63;
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .hero,
  .content-grid,
  .detail-hero,
  .controls {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 420px;
  }

  .hero-phone-one {
    right: 34%;
  }

  .hero-phone-two {
    right: 10%;
  }

  .hero-phone-three {
    right: 56%;
  }

  .hero-phone-four {
    right: 70%;
    top: 34px;
  }

  .hero-phone-five {
    right: 68%;
    top: 178px;
  }

  .timeline-panel {
    display: none;
  }

  .mobile-model-picker {
    display: grid;
    gap: 6px;
  }

  .controls {
    position: static;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .compare-table-wrap {
    display: none;
  }

  .compare-card-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 26px 18px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 4.7rem);
  }

  .hero-stage {
    min-height: 360px;
  }

  .hero-phone-one,
  .hero-phone-two,
  .hero-phone-three,
  .hero-phone-four,
  .hero-phone-five {
    transform: scale(0.7) rotate(var(--rotate, 0deg));
    transform-origin: center;
  }

  .hero-phone-one {
    --rotate: -9deg;
    right: 28%;
    top: -44px;
  }

  .hero-phone-two {
    --rotate: 8deg;
    right: 0;
    top: 20px;
  }

  .hero-phone-three {
    --rotate: 4deg;
    right: 52%;
    top: 38px;
  }

  .hero-phone-four {
    --rotate: -14deg;
    right: 66%;
    top: 4px;
  }

  .hero-phone-five {
    --rotate: 10deg;
    right: 62%;
    top: 128px;
  }

  .meta-grid,
  .info-grid,
  .event-layout,
  .source-list {
    grid-template-columns: 1fr;
  }

  .device-stage {
    min-height: 340px;
  }

  .detail-copy {
    order: -1;
  }

  .filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .filter-pill {
    flex: 0 0 auto;
  }

  .device {
    width: 190px;
    height: 330px;
  }

  .device-photo {
    max-height: 300px;
  }

  .variant-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
