/* Hardware uses the shared GlassBridge type, color, spacing and control tokens. */
.hardware-page { padding-bottom: 3rem; }
.hardware-page .kicker { color: var(--red-bright); }
.hardware-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 4vw, 4rem); padding-block: 3.5rem 5rem; }
.hardware-hero h1 { font-size: clamp(2.7rem, 4.5vw, 4.8rem); max-width: 15ch; }
.hardware-hero-copy > p:not(.kicker) { color: var(--muted-strong); }
.hardware-tagline { margin-top: 2rem; font-family: var(--font-mono); text-transform: uppercase; font-size: .7rem; letter-spacing: .16em; }
.hardware-hero-media { position: relative; padding: 0 0 5rem 2.5rem; }
.hardware-hero-media figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-soft); }
.hardware-hero-helm img { width: 100%; }
.hardware-hero-ipad { position: absolute; bottom: 0; left: 0; width: 52%; box-shadow: var(--shadow); }
.hardware-hero-ipad img { width: 100%; }
.hardware-hero-helm figcaption { text-align: right; }
.hardware-hero-media figcaption { padding: .7rem 1rem; color: var(--muted-strong); font-size: .8rem; }
.hardware-section { padding-block: 3.5rem; border-top: 1px solid var(--line-soft); scroll-margin-top: 100px; }
.hardware-section:focus:not(:focus-visible) { outline: none; }
.hardware-page h2 { font-size: clamp(1.9rem, 3.1vw, 3rem); }
.hardware-page p { color: var(--muted-strong); }
.hardware-section-heading { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: end; margin-bottom: 1.8rem; }
.hardware-section-heading h2 { margin-bottom: 0; }
.hardware-section-heading > p { margin: 0; max-width: 48ch; justify-self: end; }
.hardware-product-layout { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 3rem; margin-bottom: 1rem; }
.hardware-product-copy h3 { font-size: clamp(1.65rem, 2.4vw, 2.3rem); line-height: 1.12; }
.hardware-product-copy .button { margin-top: 1rem; }
.hardware-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.hardware-photo img { width: 100%; }
.hardware-photo figcaption { padding: .8rem 1rem; font-size: .82rem; color: var(--muted-strong); }
.hardware-gallery { display: grid; gap: 1rem; margin-top: 1.5rem; }
.hardware-rooms-overview { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hardware-rooms-overview img { aspect-ratio: 1.2; object-fit: cover; }
.hardware-rooms-overview figcaption { font-size: .83rem; font-weight: 700; }
.hardware-mfd-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hardware-mfd-overview img { aspect-ratio: 1; object-fit: contain; background: #fff; }
.hardware-features, .hardware-key-specs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 1.5rem 0; padding: 1.2rem 0; border-block: 1px solid var(--line); }
.hardware-features li { display: flex; gap: .65rem; padding: .4rem .8rem; border-right: 1px solid var(--line); }
.hardware-features li:last-child, .hardware-key-specs li:last-child { border: 0; }
.hardware-feature-index { color: var(--red-bright); font-size: .75rem; font-family: var(--font-mono); }
.hardware-features strong, .hardware-features div > span, .hardware-key-specs strong, .hardware-key-specs span { display: block; }
.hardware-features strong { font-size: .84rem; line-height: 1.4; margin-bottom: .25rem; }
.hardware-features div > span { font-size: .75rem; color: var(--muted); }
.hardware-key-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hardware-key-specs li { padding: .5rem 1.5rem; border-right: 1px solid var(--line); }
.hardware-key-specs strong { font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: -.04em; }
.hardware-key-specs span { color: var(--muted-strong); font-size: .8rem; }
.hardware-boundary { margin-top: 2rem; padding: 1.3rem 1.5rem; border-left: 2px solid var(--red); background: var(--surface-soft); }
.hardware-boundary .kicker { font-size: .65rem; margin-bottom: .5rem; }
.hardware-boundary p:last-child { margin: 0; font-size: .87rem; line-height: 1.7; }
.hardware-spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hardware-spec-group { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.hardware-spec-group h3 { color: var(--red-bright); font-size: .75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .13em; margin-bottom: 1rem; }
.hardware-spec-list { margin: 0; }
.hardware-spec-list > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.hardware-spec-list > div:last-child { border: 0; }
.hardware-spec-list dt { color: var(--muted-strong); }
.hardware-spec-list dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.hardware-source-note { font-size: .8rem; }
.hardware-text-link { display: inline-block; margin-top: 1.4rem; color: var(--muted-strong); }
.hardware-coming-soon { padding: 2.4rem; margin-block: 1rem 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(110deg, var(--surface), var(--bg-deep)); }
.hardware-coming-soon h2 { font-size: clamp(1.65rem, 2.6vw, 2.4rem); }
.hardware-coming-soon p:last-child { margin: 0; }
.hardware-editorial { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: center; }
.hardware-editorial h2 { max-width: 20ch; }
.hardware-dock-detail { max-width: 850px; margin-inline: auto; }
.hardware-dock-detail img { object-fit: contain; }
.hardware-rooms-detail, .hardware-mfd-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hardware-rooms-detail img { aspect-ratio: 1.64; object-fit: cover; }
.hardware-mfd-detail img { aspect-ratio: 1.3; object-fit: contain; background: #fff; }
.hardware-mfd-detail img[src$="/hardware-approved-hero.webp"],
.hardware-mfd-detail img[src$="/hardware-approved-front.webp"] { object-fit: cover; background: #0b1016; }
.hardware-section-lead { max-width: 76ch; margin-bottom: 1.7rem; }
.hardware-cover-features { padding-left: 1.25rem; color: var(--muted-strong); }
.hardware-cover-features li { margin-block: .5rem; }
.hardware-integration-list { display: flex; gap: .7rem; flex-wrap: wrap; padding: 0; list-style: none; }
.hardware-integration-list li { border: 1px solid var(--line); padding: .6rem 1rem; border-radius: 7px; color: var(--muted-strong); }
.hardware-related { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2.5rem; border-top: 1px solid var(--line); }
.hardware-related h2 { font-size: 1.9rem; }
.hardware-video-modal { padding: 1.3rem; width: min(1050px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: var(--surface-soft); box-shadow: var(--shadow); }
.hardware-video-modal::backdrop { background: rgba(0, 0, 0, .88); }
.hardware-video-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; }
.hardware-video-heading .kicker { margin-bottom: .5rem; }
.hardware-video-heading h2 { font-size: clamp(1.1rem, 2.3vw, 1.8rem); margin: 0; }
.hardware-video-heading .button { cursor: pointer; flex-shrink: 0; width: auto; }
.hardware-video-heading > div { min-width: 0; }
.hardware-video-modal video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100dvh - 10rem); background: #000; }
body.hardware-video-open { overflow: hidden; }
.hardware-page [hidden] { display: none; }
@media (max-width: 1180px) {
  .hardware-rooms-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hardware-features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .hardware-features li { border: 0; }
}
@media (max-width: 980px) {
  .hardware-hero { gap: 2rem; padding-block: 2.5rem 3rem; }
  .hardware-hero h1 { font-size: clamp(2.5rem, 5vw, 3.4rem); }
  .hardware-product-layout { gap: 1.5rem; grid-template-columns: 1fr 1fr; }
  .hardware-editorial { gap: 1.5rem; }
  .hardware-spec-list > div { grid-template-columns: 1fr; gap: .2rem; }
  .hardware-key-specs li { padding-inline: .8rem; }
}
@media (max-width: 680px) {
  .hardware-hero, .hardware-product-layout, .hardware-section-heading, .hardware-editorial, .hardware-spec-grid { grid-template-columns: 1fr; }
  .hardware-hero h1 { max-width: 17ch; font-size: 2.6rem; }
  .hardware-hero-media { padding-left: 1.5rem; padding-bottom: 4rem; }
  .hardware-hero-ipad { width: 58%; }
  .hardware-hero-media figcaption { font-size: .72rem; }
  .hardware-section { padding-block: 2.5rem; }
  .hardware-section-heading { gap: .8rem; }
  .hardware-section-heading > p { justify-self: start; }
  .hardware-rooms-overview, .hardware-rooms-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hardware-rooms-overview img, .hardware-rooms-detail img { aspect-ratio: 1; }
  .hardware-rooms-overview figcaption, .hardware-rooms-detail figcaption { padding: .7rem; }
  .hardware-mfd-overview, .hardware-mfd-detail { grid-template-columns: 1fr; }
  .hardware-features, .hardware-key-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .hardware-features li { padding-inline: 0; }
  .hardware-features li:last-child { grid-column: 1 / -1; }
  .hardware-key-specs li { border: 0; }
  .hardware-spec-group { padding: 1.2rem; }
  .hardware-coming-soon { padding: 1.5rem; }
  .hardware-related { flex-direction: column; align-items: start; }
  .hardware-video-modal { padding: .8rem; }
  .hardware-video-heading .button { min-height: 44px; padding: .5rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hardware-page *, .hardware-page *::before, .hardware-page *::after { scroll-behavior: auto; }
}

/* Approved composition: device rests on the helm, iPad at lower right. */
.hardware-yacht-hero { position: relative; isolation: isolate; grid-template-columns: minmax(0, .40fr) minmax(0, .60fr); gap: 0; padding-block: 2.5rem 3rem; }
.hardware-yacht-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 calc((100% - 100vw) / 2); background: #030c12; }
.hardware-yacht-hero h1 { font-size: clamp(2rem, 3.4vw, 3.2rem); max-width: 16ch; }
.hardware-yacht-hero .hardware-hero-copy { position: relative; z-index: 1; padding-right: 1rem; }
.hardware-yacht-hero .hardware-hero-media { padding: 0; }
.hardware-yacht-hero .hardware-hero-helm { border: 0; border-radius: 0; background: transparent; }
.hardware-yacht-hero .hardware-hero-helm img { width: 100%; height: auto; }
.hardware-yacht-hero .hardware-tagline { margin-top: 1.3rem; }
.hardware-mfd-overview figure:first-child { grid-column: 1 / -1; }
.hardware-mfd-overview figure:first-child img { aspect-ratio: 3.2; object-fit: cover; }
.hardware-mfd-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) {
 .hardware-yacht-hero { grid-template-columns: 1fr; gap: 1rem; padding-block: 2rem; }
 .hardware-yacht-hero h1 { font-size: 2.35rem; }
 .hardware-yacht-hero .hardware-hero-copy { padding: 0; }
 .hardware-yacht-hero .hardware-hero-media { margin-inline: -.5rem; }
}
@media (min-width: 981px) {
 #marine-mfd-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
 #marine-mfd-pc > .hardware-section-heading, #marine-mfd-pc > .hardware-key-specs, #marine-mfd-pc > .hardware-source-note { grid-column: 1 / -1; }
 #marine-mfd-pc > .hardware-product-layout { display: contents; }
 #marine-mfd-pc .hardware-product-copy { grid-column: 1 / -1; margin-bottom: 1rem; max-width: 75ch; }
 #marine-mfd-pc .hardware-product-layout > .hardware-photo { grid-column: 1; align-self: stretch; }
 #marine-mfd-pc .hardware-mfd-overview { grid-column: 2; margin-top: 0; align-content: start; }
 #marine-mfd-pc .hardware-mfd-overview figure:not(:first-child) img { aspect-ratio: 1.35; }
}
