/* Touch scenes share the desktop artwork and keep the page scroll native. */
:root { --gutter: clamp(1rem, 5.5vw, 2rem); --mast-height: 3.15rem; scroll-padding-top: 0 }
.hero-steps { display: none }
/* The closed menu floats over the photograph. The open menu retains its solid surface. */
.site-header:not(.menu-open), body:has(.hero-steps > :nth-child(6).current) .site-header:not(.menu-open) {
  background: linear-gradient(#09141b83, transparent); box-shadow: none; padding: 0 var(--gutter);
}
.site-header:not(.menu-open) :is(.mobile-brand img,.mobile-menu) { filter: drop-shadow(0 1px 3px #071419bc) }
.site-header.over-system:not(.menu-open) { background: #f8f6f2 }
.site-header.over-system:not(.menu-open) .mobile-brand img { filter: brightness(.18) }
.site-header.over-system:not(.menu-open) .mobile-menu { filter: none; color: #182421 }
.site-header.in-intro:not(.menu-open) { background: transparent }

.hero, .hero[data-phase="intro"] {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: clamp(12rem,min(103vw,59svh),35rem) 1fr 44px;
  gap: .5rem; min-height: 100svh; padding: 0 var(--gutter) max(.45rem,env(safe-area-inset-bottom));
  background: #0c191f; overflow: clip;
}
.hero::before, .hero .spark-loop {
  grid-area: 1 / 1 / 2 / -1; inset: 0 auto auto calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); height: calc(100% + 1rem);
  mask-image: linear-gradient(#000 0 76%, transparent);
}
.hero::before { background: url("assets/senja.webp") 79% center / cover no-repeat; z-index: -3 }
.hero .spark-loop { object-position: 79% center }
.hero[data-phase="intro"] { background: #020b13 }
.hero[data-phase="intro"]::before { opacity: 0 }
.hero .scene-film {
  inset: 50% auto auto 50%; width: var(--film-width,100%); height: auto;
  transform: translate(-50%,-47.222%);
  mask-image: radial-gradient(ellipse 22% 22% at 50% 47.222%, #000 72%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .site-header.in-intro.logo-landing .mobile-brand img {
    visibility: visible; pointer-events: none;
    animation: mobile-logo-land 1.2s cubic-bezier(.42,0,.58,1) both;
  }
  .hero.logo-landing[data-phase="intro"]::before { animation: mobile-photo-arrive 1.2s ease both }
  .hero.logo-landing.logo-fallback[data-phase="intro"]::after { display: none }
  @keyframes mobile-logo-land {
    from { transform: translate(var(--logo-x),var(--logo-y)) scale(var(--logo-scale)) }
    to { transform: none }
  }
  @keyframes mobile-photo-arrive { from { opacity: 0 } to { opacity: 1 } }
}
.copy { align-self: center; grid-row: 2; grid-column: 1 / -1; position: static; margin: 0; transform: none; width: min(100%, 37rem) }
.eyebrow { font-size: .65rem; letter-spacing: .15em; color: #c5d6dc }
.eyebrow li + li::before { margin: 0 .65em }
h1 { margin: .55rem 0 .5rem; font-size: clamp(1.8rem, 7.65vw, 2.85rem); line-height: 1.04; letter-spacing: -.03em }
.description { max-width: 43ch; font-size: .9rem; line-height: 1.4 }
.benefits {
  width: 100%; max-width: 29rem; align-items: flex-start; gap: .35rem; margin: 1rem 0 .25rem;
  font-size: .75rem; line-height: 1.28;
}
.benefits li { min-width: 0 }
.benefits svg { width: 1.22rem; height: 1.22rem; margin-bottom: .35rem; color: #c6e2e7 }
.hero .skip, .hero .replay {
  grid-row: 3; position: static; min-height: 44px; margin: 0; padding: 0; align-self: center;
}
.hero .replay, .hero .skip { grid-column: 2; justify-self: end; font-size: .81rem }
.replay-full { display: none }
.replay .replay-short[hidden] { display: inline !important }
/* Clip each sticky track at its own section boundary, including during touch momentum. */
.hero-track, .ampio, .phone, .system, .showroom, .contact-track { contain: paint }
.ampio-stage .ampio-room, .phone-stage .phone-room { z-index: 0 }
.ampio-stage :is(.ampio-copy,.ampio-actions), .phone-stage :is(.phone-text,.phone-scenes) {
  position: relative; inset: auto; z-index: 1;
}
.ampio-device, .phone-device { z-index: 1 }
.phone.outside-viewport :is(.phone-screen img,.phone-backdrop),
.ampio.outside-viewport :is(.ampio-device > img,.ampio-room img),
.phone-screen:not(.is-current), .phone-backdrop:not(.is-current,.is-previous),
.ampio-room img:not(.is-active,.is-previous) { display: none }
.ampio, .phone { height: auto }
.ampio-stage, .phone-stage { position: relative; height: auto; top: auto }
.ampio-stage, .phone-stage { display: grid; grid-template-columns: minmax(0,1fr); padding: var(--mast-height) var(--gutter) .8rem }
.ampio-stage {
  padding-block: 3.65rem 1.25rem;
  grid-template-rows: minmax(15rem, 1fr) auto auto; background: #201a16;
}
.ampio-room, .phone-room { inset: 0 0 auto; height: calc(100% - 8rem) }
.ampio-room img { object-position: 80% center }
.ampio-room::after { background: linear-gradient(0deg, #201a16 0%, transparent 54%) }
.ampio-device, .phone-device { position: relative; inset: auto; grid-row: 1; transform: none; height: auto; align-self: center }
.ampio-device { width: clamp(5.25rem, 24vw, 8rem); justify-self: end; margin: 1rem 0 2.4rem }
.ampio-model { display: none }
.ampio-hint { display: none }
.ampio-copy, .phone-text { grid-row: 2; position: static; width: auto; max-width: 40rem; padding: 0 }
.ampio-copy h2, .phone-copy h2, .showroom-copy h2, .contact-copy h2 {
  font-size: clamp(1.75rem, 7.4vw, 3rem); line-height: 1.05; letter-spacing: -.032em;
}
.ampio-copy h2 { margin: 0 0 .55rem }
.ampio-copy .ampio-lead, .ampio-copy .ampio-invite { font-size: .94rem; line-height: 1.4 }
.ampio-copy small { font-size: .76rem; line-height: 1.35 }
.ampio-actions { position: static; grid-row: 3; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .25rem; margin-top: .9rem }
.ampio-actions button {
  flex-direction: column; justify-content: center; min-height: 55px; padding: .4rem .1rem; gap: .32rem;
  border-color: #c1b3a44f; border-radius: .55rem; background: #221d19b8; font-size: .78rem;
}
.phone-stage { grid-template-rows: minmax(min-content,1fr) auto auto; background: #211a15 }
.phone-room { height: calc(100% - 9rem) }
.phone-backdrop { object-position: 69% center }
.phone-room::after { background: linear-gradient(0deg,#211a15,transparent 52%) }
.phone-device { justify-self: center; width: clamp(5.7rem, min(35vw,20svh), 11.5rem); margin: .65rem 0 2rem }
.phone-text { display: grid; transform: none; font-size: .96rem }
.phone-copy { grid-area: 2 / 1 }
.phone-copy[hidden] { display: block !important; visibility: hidden }
.phone-copy h2 { margin: .45rem 0 }
.phone-copy br { display: none }
.phone-copy .phone-example, .phone-copy .phone-example + p { margin-top: .5rem }
.phone-copy > p, .phone-copy .phone-lead, .phone-copy .phone-example + p { max-width: none }
.climate-examples { font-size: .95em; margin: .7rem 0 0 }
.climate-examples li + li { margin-top: .3rem }
.phone-copy > p { margin: .4rem 0 0; font-size: .96rem; line-height: 1.38 }
.phone-copy small { display: block; position: static; margin-top: .5rem; font-size: .75rem; line-height: 1.35 }
.phone-scenes { grid-row: 3; position: static; width: auto; transform: none; gap: .5rem; margin-top: 1rem }
.phone-scenes button { min-height: 44px; padding: .5rem .1rem; font-size: .8rem; line-height: 1.24 }
.showroom { position: static; height: auto }
.contact-scene { margin-top: 0 }
.showroom-stage {
  min-height: 100svh; padding: 0; grid-template-rows: minmax(8rem,1fr) auto; background: #111e26;
}
.showroom-stage::before {
  position: static; grid-row: 1; align-self: stretch;
  background: linear-gradient(0deg,#111e26, transparent 24%), url("assets/showroom.webp") center / cover;
}
.showroom-copy { grid-row: 2; width: min(100%, 36rem); margin-inline: auto; padding: 1rem var(--gutter) 1.5rem }
.showroom-intro { margin: .8rem 0 1.1rem }
.showroom-address { gap: .85rem }
.showroom-address address { padding-left: .85rem }
.showroom-book { margin-top: 1.1rem; min-height: 44px }
.contact-scene {
  padding: calc(var(--mast-height) + 1rem) var(--gutter) max(1rem,env(safe-area-inset-bottom));
  background: #101f27;
}
.contact-scene::before { inset: 0 0 auto; height: min(16rem, 40svh); background: linear-gradient(#142733bd, #101f27), url("assets/showroom.webp") center / cover; filter: none }
.contact-layout, .contact-footer { width: min(100%, 40rem); margin-inline: auto }
.contact-layout { display: grid; align-content: center; grid-template-columns: minmax(0,1fr); gap: 1rem }
.contact-topics, .contact-form h3 { display: none }
.contact-copy { padding: 0 }
.contact-copy .closing-label { margin-bottom: .45rem }
.contact-copy h2 { font-size: clamp(1.6rem, 6.4vw, 2.4rem); text-wrap: balance }
.contact-copy h2 br { display: none }
.contact-copy > p:not(.closing-label) { margin: .5rem 0 0; font-size: .9rem; line-height: 1.4 }
.contact-form { gap: .65rem; padding: 1rem; font-size: .85rem }
.contact-form label { gap: .25rem; min-width: 0 }
.contact-form :is(input,select,textarea) { min-height: 44px; padding: .45rem .6rem; font-size: 1rem }
.contact-form textarea { height: 5rem }
.contact-pair { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem }
.contact-form small { font-size: .75rem }
.contact-form small a, #visit-calendar { text-decoration: underline; text-underline-offset: .2em }
.contact-form button { width: 100%; min-height: 44px; padding: .6rem 1rem }
.contact-footer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .5rem; margin-top: 1.25rem;
  padding: .7rem 0 0; font-size: .75rem;
}
.contact-footer nav { grid-column: 1 / -1; min-width: 0; justify-content: space-between; gap: .5rem; font-size: clamp(.75rem, 3.4vw, .875rem) }
.contact-footer a { display: inline-flex; align-items: center; min-height: 44px }
.contact-footer span:first-of-type { margin: 0 }
.contact-footer span { color: #adbec4 }
@media (prefers-reduced-motion: no-preference) {
  .menu-open nav, .phone-copy:not([hidden]) { animation: enter .32s ease-out both }
  @supports (animation-timeline: view()) {
    .showroom-copy, .contact-copy {
      animation: mobile-arrive linear both; animation-timeline: view(); animation-range: entry 0% entry 85%;
    }
    .showroom-address, .showroom-book, .contact-copy > p:not(.closing-label) {
      animation: mobile-arrive linear both; animation-timeline: view(); animation-range: entry 5% cover 25%;
    }
    @keyframes mobile-arrive { from { opacity: .75; translate: 0 .65rem } to { opacity: 1; translate: none } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu span::before, .mobile-menu span::after { transition: none }
}

@media (max-width: 599px) {
  .phone-room {
    position: relative; grid-area: 1 / 1; inset: auto; width: auto; height: auto; align-self: stretch;
    margin: calc(-1 * var(--mast-height)) calc(-1 * var(--gutter)) 0;
  }
  .phone-device { grid-column: 1 }
  .phone-room::after { background: linear-gradient(0deg,#211a15,transparent 16%) }
  .phone-backdrop:last-of-type { object-position: 83% bottom }
}
@media (min-width: 600px) {
  .ampio-stage, .phone-stage { grid-template: "copy device" minmax(19rem,1fr) "actions actions" auto / 1fr 42%; column-gap: 2rem; padding-top: 2rem }
  .ampio-copy, .phone-text { grid-area: copy; align-self: center }
  .ampio-device, .phone-device { grid-area: device; justify-self: center }
  .ampio-actions, .phone-scenes { grid-area: actions }
  .ampio-room, .phone-room { inset: 0; height: 100% }
  .ampio-room::after, .phone-room::after { background: linear-gradient(90deg,#091318de,transparent 77%),linear-gradient(0deg,#0b1419cb,transparent 33%) }
}
@media (prefers-reduced-motion: no-preference) {
  .touch-story::after { content: ""; display: block; height: var(--travel,145svh) }
  .hero-track, .showroom, .contact-track { --travel: 36svh }
  .phone { --travel: 520svh }
  .ampio-stage, .phone-stage { min-height: 100svh }
  .touch-story > :first-child { position: sticky; top: 0 }
  .phone-stage:has(.phone-backdrop.is-previous) .phone-screen.is-current { animation: screen-arrive .38s ease-out both }
  @keyframes screen-arrive { from { opacity: .15; translate: 0 .22rem } to { opacity: 1; translate: none } }
}

@media (max-height: 800px), (max-width: 374px) {
  .hero, .hero[data-phase="intro"] { grid-template-rows: minmax(11rem,1fr) auto 44px }

}
@media (max-height: 640px) and (orientation: portrait) {
  .phone-device { width: min(29vw,16svh); margin: .3rem 0 1.65rem }
  .phone-scenes { margin-top: .55rem }
  .phone-scenes button { padding: .3rem 0 }
  .phone-copy h2 { font-size: 1.5rem }
  .phone-copy > p { font-size: .88rem }

}
@media (orientation: landscape) and (max-height: 520px) and (min-width: 600px) {
  .hero, .hero[data-phase="intro"] {
    grid-template: minmax(min-content,1fr) 44px / minmax(0,47%) 1fr;
    padding-top: var(--mast-height); gap: .35rem 1rem;
  }
  .hero::before, .hero .spark-loop {
    grid-area: auto; inset: 0; width: 100%; height: 100%; mask-image: linear-gradient(90deg,transparent,#000 68%);
  }
  .hero::before { background-position: center 60% }
  .hero .spark-loop { object-position: center 60% }
  .hero .copy { grid-area: 1 / 1; width: 100%; align-self: end }
  .hero h1 { font-size: 1.85rem }
  .hero .benefits { margin-top: .6rem }
  .hero .skip, .hero .replay { grid-row: 2 }
  .ampio-stage, .phone-stage { grid-template-rows: minmax(min-content,1fr) auto; padding-top: var(--mast-height) }
  .ampio-device { width: min(10vw,21svh); margin-bottom: .5rem }
  .phone-device { width: min(12vw,25svh) }
  .phone-text h2, .ampio-copy h2 { font-size: 1.55rem }
  .phone-scenes, .ampio-actions { margin-top: .4rem }
  .showroom-stage { grid-template: 1fr / 42% 1fr }
  .showroom-stage::before { grid-area: 1 / 1; align-self: stretch; background-image: linear-gradient(270deg,#111e26, transparent 23%), url("assets/showroom.webp") }
  .showroom-copy { grid-area: 1 / 2; padding-top: var(--mast-height) }
  .showroom-copy .closing-label { margin-bottom: .45rem }
  .showroom-intro { margin-block: .55rem }
  .showroom-address img { width: 3.5rem }
  .showroom-book { margin-top: .6rem }
  .contact-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start }
  .contact-footer { width: 100% }
}

@media (prefers-reduced-motion: no-preference) {
  .hero.logo-fallback[data-phase="intro"]::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: min(53vw,15rem); height: min(21.35vw,6.03rem); background: url("assets/nordstyr-white.svg") center / contain no-repeat;
    animation: mobile-logo-draw 2s ease-in-out both;
  }
  @keyframes mobile-logo-draw {
    0% { opacity: 0; clip-path: inset(0 49% 85%); transform: scale(.88) }
    50% { opacity: 1; clip-path: inset(0 0 30%); transform: none }
    80%,100% { opacity: 1; clip-path: inset(0) }
  }
}

/* Give the opening photograph, the message and each benefit their own space. */
@media (orientation: portrait) {
  .hero, .hero[data-phase="intro"] {
    grid-template-rows: minmax(10rem,1fr) auto 44px;
    row-gap: clamp(.65rem,2svh,1.4rem);
  }
  .hero .copy { justify-self: center }
  .hero h1 { margin-block: .65rem }
  .hero .benefits {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .75rem 1rem; margin: 1.15rem 0 .3rem; text-align: left;
  }
  .hero .benefits li { display: flex; align-items: center; gap: .6rem }
  .hero .benefits svg { flex: none; margin: 0 }
  .hero .benefits br { display: none }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .hero:not([data-phase]) .copy { visibility: hidden }
}
@media (prefers-reduced-motion: no-preference) {
  .hero[data-phase="reveal"] :is(.eyebrow li,h1,.description,.benefits li) {
    animation: enter .42s ease-out var(--delay) both;
  }
  .hero .eyebrow li:nth-child(1) { --delay: .35s }
  .hero .eyebrow li:nth-child(2) { --delay: .82s }
  .hero .eyebrow li:nth-child(3) { --delay: 1.29s }
  .hero h1 { --delay: 1.8s }
  .hero .description { --delay: 2.3s }
  .hero .benefits li:nth-child(1) { --delay: 2.85s }
  .hero .benefits li:nth-child(2) { --delay: 3.3s }
  .hero .benefits li:nth-child(3) { --delay: 3.75s }
  .hero .benefits li:nth-child(4) { --delay: 4.2s }
}

/* Size the handset inside the space left by the longest translated scene. */
@media (max-width: 599px) {
  .phone-stage {
    height: 100svh; min-height: min-content;
    grid-template-rows: minmax(8rem,1fr) auto auto;
  }
  .phone-device {
    height: min(78%,38svh,68vw); width: auto; max-width: 100%;
    margin: 0 0 1.1rem;
  }
}
@media (max-width: 359px) and (max-height: 600px) {
  .phone-stage { grid-template-rows: minmax(6.5rem,1fr) auto auto; padding-bottom: .35rem }
  .phone-copy h2 { margin-block: .25rem }
  .phone-scenes { margin-top: .25rem }
}
@media (orientation: landscape) and (max-height: 520px) {
  .phone-stage { padding-bottom: .25rem }
}
@media (orientation: portrait) and (min-width: 600px) {
  .phone-stage { min-height: 100svh; padding-top: var(--mast-height) }
}

/* The two Ampio chapters share the normal page scroll, including deep links. */
.system-stage { display: block; padding: calc(var(--mast-height) + 1.2rem) var(--gutter) 2rem }
.system-board { scroll-margin-top: calc(var(--mast-height) + 1rem) }
.system-board + .system-board { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid #cfc8bc }
.system h2 { font-size: clamp(1.65rem,6.5vw,2.35rem) }
.system-story { margin-top: .55rem; font-size: .96rem }
.system-plate .system-diagram { height: auto; min-height: 0; margin: 1.25rem 0 }
.system-plate .plate-hub {
  position: static; flex-direction: row; align-items: center; justify-content: start;
  gap: .85rem; width: auto; aspect-ratio: auto; margin: 0 0 1rem;
  padding: 0; border: 0; border-radius: 0; background: none; transform: none;
}
.plate-hub img { width: 4.8rem }
.system-plate .plate-hub p { margin: 0; padding-left: .85rem; border-left: 1px solid #c8ad94; text-align: left; font-size: .83rem }
.plate-hub p::before { display: none }
.system-plate .plate-groups, .system-plate.system-integrations .plate-groups {
  position: static; height: auto; grid-template: none / repeat(auto-fit,minmax(min(100%,19rem),1fr));
  gap: .75rem; align-items: stretch;
}
.system-plate .plate-groups > li, .system-plate .plate-groups > li:last-child:nth-child(odd) {
  grid-area: auto; width: auto; height: auto; min-height: 0; justify-self: stretch;
  grid-template-columns: 1fr; gap: .65rem; padding: .9rem 1rem;
}
.system-plate .plate-groups h3 { font-size: 1rem; text-align: left }
.system-plate .plate-devices {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); gap: .65rem .75rem; padding-top: .7rem;
}
.plate-devices li { display: flex; align-items: center; gap: .4rem; font-size: .82rem; text-align: left; hyphens: auto; overflow-wrap: anywhere }
.plate-devices i { flex: none }
.plate-groups i { width: 1.35rem }
.system-plate .plate-detail { justify-content: start; text-align: left; font-size: .91rem }
.system-plate .plate-detail span { max-width: none }
.system-plate .system-process { display: grid; padding: 1rem; gap: .8rem }
.system-plate .system-process ol { display: grid; grid-template-columns: 1fr; gap: .75rem }
.system-plate .system-process ol > li { justify-content: start; gap: .75rem }
.system-plate .system-process p, .system-foot { font-size: .83rem }
.system-plate .plate-ending { gap: 1rem }
.system :focus-visible { outline-color: #82502f }

.system-stage:has(.system-screen-track) { padding: 0 }
.system-board:has(.system-screen-track) { margin: 0; padding: 0; border: 0; scroll-margin-top: 0 }
.system-screen {
  display: grid; align-content: center; gap: clamp(.55rem,1.35svh,.95rem); min-height: 100svh;
  padding: calc(var(--mast-height) + .8rem) var(--gutter) max(1.2rem,env(safe-area-inset-bottom));
  background: #f8f6f2;
}
.system-integrations .system-screen { background: #f0ece5 }
.system-screen-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .8rem; align-items: start }
.system-screen-title { margin: 0; font-size: clamp(1.65rem,6.5vw,2.35rem); line-height: 1.06; letter-spacing: -.047em; font-weight: 600 }
.system-screen-count { padding-top: .26rem; color: #655747; font-size: .88rem; font-variant-numeric: tabular-nums; white-space: nowrap }
.system-screen .plate-hub { margin: 0 }
@media (prefers-reduced-motion: no-preference) {
  /* A tall screen can scroll fully into view before its reading pause. */
  .system-screen { position: sticky; top: min(0px,calc(100svh - var(--screen-height,100svh))) }
  .system-screen-track::after { content: ""; display: block; height: 20svh; background: #f8f6f2 }
  .system-integrations .system-screen-track::after { background: #f0ece5 }
}

/* Keep related devices together and put protocol descriptions alongside their names. */
.system-screen .system-screen-heading:has(.system-screen-count[hidden]) { grid-template-columns: 1fr }
.system-screen .plate-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem }
.system-screen .plate-groups > li, .system-screen .plate-groups > li:last-child:nth-child(odd) {
  padding: .6rem; gap: .4rem; align-content: start;
}
.system-screen .plate-groups h3 { font-size: .94rem; line-height: 1.16; overflow-wrap: anywhere }
.system-screen .plate-devices { grid-template-columns: 1fr; padding-top: .4rem; gap: .23rem }
.system-screen .plate-devices li { gap: .32rem; line-height: 1.16 }
.system-screen .plate-devices i { width: 1.05rem }
.system-overview .system-screen .plate-groups > li:last-child:nth-child(odd) { grid-column: 1 / -1 }
.system-overview .system-screen .plate-groups > li:last-child:nth-child(odd) .plate-devices { grid-template-columns: repeat(2,minmax(0,1fr)) }
.system-integrations .system-screen .plate-groups {
  grid-template-columns: 1fr; gap: 0; padding-inline: .65rem;
  border: 1px solid #dcd8cf; border-radius: .7rem; background: #fcfbf8;
}
.system-integrations .system-screen .plate-groups > li {
  display: grid; grid-template-columns: 1.25rem minmax(0,.85fr) minmax(0,1.15fr); align-items: center;
  gap: .5rem; padding: .31rem 0; border: 0; border-radius: 0; background: none;
}
.system-integrations .system-screen .plate-groups > li + li { border-top: 1px solid #e3ded5 }
.system-integrations .system-screen .plate-groups h3 { grid-area: 1 / 2; font-size: .88rem }
.system-integrations .system-screen .plate-detail { display: contents }
.system-screen .plate-detail i { grid-area: 1 / 1; width: 1.2rem }
.system-screen .plate-detail span { grid-area: 1 / 3; text-wrap: initial; font-size: .83rem; line-height: 1.23; overflow-wrap: anywhere }
.system-screen .system-process { padding: .65rem .75rem; gap: .45rem }
.system-screen .system-process ol { gap: .4rem }
.system-screen .system-process ol > li { gap: .5rem }
.system-screen .system-process .integration-icon { width: 1.2rem }
.system-screen .system-process li p { margin-block: .15rem 0 }
.system-screen .plate-ending { gap: .5rem }
@media (min-width: 410px) and (min-height: 780px), (min-width: 600px) {
  .system-overview .system-screen .plate-groups { grid-template-columns: repeat(3,minmax(0,1fr)) }
  .system-overview .system-screen .plate-groups > li:last-child:nth-child(odd) { grid-column: auto }
  .system-overview .system-screen .plate-groups > li:last-child:nth-child(odd) .plate-devices { grid-template-columns: 1fr }
}
@media (min-width: 410px) and (max-width: 599px) and (min-height: 780px) {
  .system-overview .system-screen { padding-inline: .8rem }
  .system-overview .system-screen .plate-groups > li { padding: .5rem; gap: .35rem }
  .system-overview .system-screen .plate-devices li { gap: .25rem; hyphens: manual; text-wrap: wrap }
}
@media (min-width: 600px) {
  .system-screen .system-process ol { grid-template-columns: repeat(3,minmax(0,1fr)) }
}

.system-process-details {
  border-block: 1px solid #d6cfc5;
}
.system-process-details summary {
  cursor: pointer; min-height: 44px; align-content: center; padding: .5rem .2rem; font-size: .94rem; font-weight: 600;
}
.system-process-details .system-process { border: 0; padding: .35rem .2rem .75rem; background: none }
.system-process-details .system-process h3 { display: none }
.system-process-details + .system-foot { border: 0; padding: 0 }
@media (max-height: 700px) {
  .system-screen { padding: calc(var(--mast-height) + .35rem) clamp(.75rem,4vw,1.25rem) .65rem; gap: .45rem }
  .system-screen :is(h2,.system-screen-title) { font-size: 1.45rem }
  .system-screen .system-story { margin-top: .25rem; font-size: .88rem; line-height: 1.25 }
  .system-screen .plate-groups > li, .system-screen .plate-groups > li:last-child:nth-child(odd) { padding: .45rem; gap: .25rem }
  .system-screen .plate-devices { padding-top: .2rem; gap: .12rem }
  .system-screen .plate-groups { gap: .35rem }
  .system-integrations .system-screen .plate-groups > li { padding-block: .22rem }
}
@media (min-width: 600px) and (max-height: 520px) {
  .system-screen { grid-template-columns: minmax(0,1fr) minmax(0,2.4fr); column-gap: 1rem }
  .system-screen-heading, .system-screen .plate-hub, .system-screen > .system-foot,
  .system-screen .plate-ending { grid-column: 1 }
  .system-screen .plate-groups { grid-area: 1 / 2 / span 3 / 3; align-self: center }
  .system-screen .system-process ol { grid-template-columns: 1fr }
}

/* H04 v08. All three phone diagrams share the same masthead, hub and central bus. */
.handset-story > .system-stage { display: none }
body:has(.handset-story) .site-header.over-system:not(.menu-open) {
  background: #faf7f2;
}
body:has(.handset-story) .site-header.over-system:not(.menu-open)::after {
  content: ""; position: absolute; inset: auto 4.45vw 0; height: 1px; background: #ded8cf;
}
body:has(.handset-story) .site-header.over-system:not(.menu-open) .mobile-brand img {
  content: url("/assets/nordstyr-on-light.svg"); filter: none;
}
.handset-stage, .handset-page {
  background:
    radial-gradient(ellipse 62% 40% at 121% 8%, #f5f0e9 99%, transparent 100%),
    radial-gradient(ellipse 72% 13% at 23% 107%, #f3ede6 99%, transparent 100%), #faf7f2;
}
.handset-page {
  width: 100%; min-height: 100svh; margin: 0;
  padding: calc(var(--mast-height) + clamp(.9rem,2.4svh,1.5rem)) 4.45vw 1rem;
  color: #191c1f;
}
.handset-page h2 {
  margin: 0; text-align: center; font-size: clamp(1.16rem,5.05vw,1.8rem);
  font-weight: 650; letter-spacing: -.035em; line-height: 1.15;
  scroll-margin-top: calc(var(--mast-height) + 1rem);
}
.handset-diagram { position: relative; isolation: isolate; margin: .5em auto 0; max-width: 35rem }
.handset-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #b8a58b; stroke-width: 1.1; pointer-events: none; z-index: -1 }
.handset-page .plate-hub {
  position: relative; inset: auto; transform: none; width: clamp(5.3rem,min(27vw,15.4svh),8rem);
  margin: 0 auto clamp(.5rem,1.5svh,.9rem); border-radius: 50%; padding: .35rem;
  background: #fbf8f3; gap: 0;
}
.handset-page .plate-hub img { width: 77% }
.handset-page .plate-hub p {
  margin: 0; padding: 0; border: 0; font-size: clamp(.61rem,2.65vw,.84rem);
  line-height: 1.18; text-align: center;
}
.handset-page .plate-hub p::before { display: block; width: 1.9em; height: 1px; margin: .52em auto; background: #cc744c }
.handset-cards {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch;
  gap: clamp(.45rem,1.25svh,.8rem) clamp(.75rem,3.65vw,1.1rem); margin: 0; padding: 0; list-style: none;
}
.handset-cards > li {
  padding: .48em .54em .58em; border: 1px solid #ddd7cd; border-radius: .62rem;
  background: #fcf9f4; font-size: clamp(.78rem,3.48vw,1.05rem); line-height: 1.16;
  scroll-margin-top: var(--mast-height);
}
.handset-cards h3 { margin: 0; font-size: 1em; font-weight: 650; letter-spacing: -.025em; text-align: center; text-wrap: balance }
.handset-cards .plate-devices, .handset-cards .plate-detail {
  margin: .52em 0 0; padding: .55em .08em .05em; border-top: 1px solid #ddd6cd;
}
.handset-cards .plate-devices { display: grid; grid-template-columns: minmax(0,1fr); gap: clamp(.24rem,1svh,.65rem) }
.handset-cards .plate-devices li, .handset-cards .plate-detail {
  display: flex; align-items: center; gap: .52em; color: #35332e;
  font-size: .97em; line-height: 1.16; text-align: left; overflow-wrap: anywhere;
}
.handset-cards i {
  display: inline-block; flex: none; width: 1.3em; aspect-ratio: 1;
  background: url("assets/h04/v06-icons.webp") calc(var(--icon) * 100% / 53) center / 5400% 100% no-repeat;
  mix-blend-mode: multiply;
}
.handset-cards [data-function="garden"], .handset-cards [data-function="can"] { grid-column: 1 / -1 }
.handset-cards [data-function="garden"] .plate-devices { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: .28em }
.handset-cards [data-function="can"] { position: relative; padding: .7em .75em .7em 3.55em }
.handset-cards [data-function="can"] h3 { text-align: left }
.handset-cards [data-function="can"] .plate-detail { border: 0; margin-top: .25em; padding: 0 }
.handset-cards [data-function="can"] i { position: absolute; left: .8em; top: 50%; transform: translateY(-50%); width: 1.85em }
.handset-cards .plate-detail { font-size: .91em; align-items: start }
.handset-cards .plate-detail span { max-width: none; text-wrap: initial }
.handset-page .system-foot {
  display: block; max-width: 35rem; margin: clamp(.7rem,2.3svh,1.35rem) auto 0; padding: 0; border: 0;
  color: #645f56; font-size: clamp(.68rem,2.85vw,.86rem); line-height: 1.25;
}
@media (prefers-reduced-motion: no-preference) {
  .handset-story { height: 580svh }
  .handset-stage { position: sticky; top: 0; height: 100svh; overflow: clip }
  .handset-page { position: absolute; inset: 0 0 auto; visibility: hidden }
  .handset-page.active { visibility: visible }
  .handset-page:first-child .plate-hub { translate: 0 var(--hub-offset,0svh) }
  .handset-cards > li { opacity: var(--reveal, 0) }
  .handset-lines > path { stroke-dasharray: 1; stroke-dashoffset: var(--remaining,1) }
  .handset-lines .system-signal.visible { display: block }
  .handset-lines .system-signal path { stroke: #b65c20; stroke-width: 1.6 }
  .handset-lines .system-signal circle { fill: #fff0bf; stroke: #db8030 }
}
@media (min-aspect-ratio: 9/17) {
  .handset-cards { row-gap: .44rem }
  .handset-cards > li { padding-block: .38em .46em }
  .handset-cards .plate-devices { row-gap: .3em }
  .handset-page:first-child .plate-devices { row-gap: .57em }
  .handset-cards .plate-detail { margin-top: .38em; padding-top: .36em }
  .handset-page .system-foot { margin-top: .65rem }
}
