/* Deppo site. Colours, type and the mark come from packages/ui (tokens.css, base.css, components.css).
   Photographs carry the page, so the night palette is the base and the concrete day palette is one section. */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --font-display: "Archivo Variable", "Archivo", Arial, sans-serif;
  --font-text: "Atkinson Hyperlegible Next Variable", "Atkinson Hyperlegible Next", Arial, sans-serif;

  --signal: #ff5a1f;
  --signal-press: #e84a12;
  --on-signal: #15140f;

  --night: #12110e;
  --night-surface: #1f1d19;
  --night-surface-2: #2d2a25;
  --night-ink: #f3f1eb;
  --night-ink-2: #b8b4aa;
  --night-line: rgb(243 241 235 / 0.16);

  --day: #e4e2dc;
  --day-surface: #f5f4f0;
  --day-ink: #15140f;
  --day-ink-2: #4d4a42;
  --cabinet: #25231f;

  --mark-body: var(--night-ink);
  --mark-leaf: var(--night);

  /* frosted glass over photographs: neutral, never tinted */
  --frost-bg: rgb(18 17 14 / 0.46);
  --frost-line: rgb(243 241 235 / 0.2);
  --frost-blur: blur(22px) saturate(1.25);
  --swap: cubic-bezier(0.5, 0, 0, 1);

  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --nav-h: 4.25rem;
  --r-s: 0.5rem;
  --r-m: 0.875rem;
  --r-l: 1.25rem;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--night-ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--r-s);
  background: var(--night-ink);
  color: var(--night);
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 680;
  letter-spacing: -0.022em;
  line-height: 1.04;
  text-wrap: balance;
}

.frost {
  background: var(--frost-bg);
  border: 1px solid var(--frost-line);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
}

/* ---- wordmark, as on the cabinet ---- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-size: 1.5rem;
}
.wordmark .mark {
  width: 1.18em;
  height: 1.18em;
  flex: none;
}
.wordmark__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.375rem;
  padding: 0 1.75rem;
  border-radius: var(--r-m);
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 640;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease), border-color 160ms var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn--small {
  min-height: 2.625rem;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
  border-radius: 0.6875rem;
}
.btn--signal {
  background: var(--signal);
  color: var(--on-signal);
}
.btn--signal:hover {
  background: #ff6c38;
}
.btn--signal:active {
  background: var(--signal-press);
}
.btn--frost {
  background: rgb(243 241 235 / 0.1);
  border: 1px solid rgb(243 241 235 / 0.26);
  color: var(--night-ink);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
}
.btn--frost:hover {
  background: rgb(243 241 235 / 0.18);
  border-color: rgb(243 241 235 / 0.42);
}
.btn--ink {
  background: var(--day-ink);
  color: var(--night-ink);
}
.btn--ink:hover {
  background: #2d2a25;
}

/* ---- nav ----
   At the top of the page it is the ordinary header, clear over the photograph. Once the page has moved it draws
   in to a short bar of frosted glass that floats under the top edge and holds only the mark and the demo button,
   the way Starlink's does. */
.nav {
  --bar-w: 44rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  isolation: isolate;
  height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  border-radius: 0;
  /* the header draws in to the bar slowly, in one unhurried move */
  --nav-t: 0.9s;
  transition:
    top var(--nav-t) var(--swap),
    left var(--nav-t) var(--swap),
    right var(--nav-t) var(--swap),
    height var(--nav-t) var(--swap),
    padding var(--nav-t) var(--swap),
    border-radius var(--nav-t) var(--swap),
    background-color var(--nav-t) ease-in-out,
    -webkit-backdrop-filter var(--nav-t) ease-in-out,
    backdrop-filter var(--nav-t) ease-in-out,
    box-shadow var(--nav-t) var(--swap);
}
/* the hairline round the glass and the light across it */
.nav::before,
.nav::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--nav-t) ease-in-out;
}
.nav::before {
  z-index: 1;
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.14);
}
.nav::after {
  z-index: -1;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.08) 0%,
    rgb(255 255 255 / 0.03) 35%,
    rgb(255 255 255 / 0.01) 65%,
    rgb(255 255 255 / 0.04) 100%
  );
}
.nav.is-stuck {
  top: 0.75rem;
  left: max(var(--gutter), calc(50% - var(--bar-w) / 2));
  right: max(var(--gutter), calc(50% - var(--bar-w) / 2));
  height: 3.75rem;
  padding-inline: 1.125rem 0.5625rem;
  border-radius: var(--r-m);
  background-color: rgb(24 22 18 / 0.44);
  -webkit-backdrop-filter: blur(22px) saturate(1.3) brightness(0.82);
  backdrop-filter: blur(22px) saturate(1.3) brightness(0.82);
  box-shadow: 0 6px 22px rgb(0 0 0 / 0.16);
}
.nav.is-stuck::before,
.nav.is-stuck::after {
  opacity: 1;
}
/* The links are gone before the header starts to move, and come back only once it is whole again, so they are
   never seen riding along towards the middle. They fold to no width so they take no room in the bar. */
.nav__links {
  max-width: 60rem;
  white-space: nowrap;
  transition: opacity 0.3s ease-in-out calc(var(--nav-t) - 0.2s), visibility 0s calc(var(--nav-t) - 0.2s), max-width var(--nav-t) var(--swap);
}
.nav.is-stuck {
  transition-delay: 0.15s;
}
.nav.is-stuck .nav__links {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease-in-out, visibility 0s 0.15s, max-width var(--nav-t) var(--swap) 0.15s;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 520;
}
.nav__links a {
  padding: 0.5rem 0;
  color: rgb(243 241 235 / 0.84);
  transition: color 160ms var(--ease);
}
.nav__links a:hover {
  color: var(--night-ink);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* the way to the shop sits beside the mark, top left, and stays in the floating bar */
.nav__shop {
  margin-left: -0.75rem;
  padding: 0.4375rem 0.8125rem;
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 560;
  color: rgb(243 241 235 / 0.9);
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.nav__shop:hover,
.nav__shop[aria-current] {
  background: rgb(243 241 235 / 0.16);
  color: var(--night-ink);
}
/* on a phone the row holds the mark, Shop and the demo button; Logga in is in the footer */
@media (max-width: 30rem) {
  .nav__login {
    display: none;
  }
}

/* ---- hero: the cabinet on the right third, and on the left the choice between indoors and outdoors.
   The choice is built and timed the way Starlink builds its own: two glass cards in a row, the chosen one two
   thirds wide, lighter and brighter, and the photograph behind them fades to the one for that choice. ---- */
.hero {
  /* Starlink's pair of cards is 58 percent of the window wide and 42 percent of it tall. Ours stops a little
     short of that width, and in a squarer window, where the cabinet takes more of the width (its left edge is
     62vh in from the right), short of the cabinet. */
  --choice-w: clamp(26rem, min(54vw, 100vw - 62vh - var(--gutter) - 1.5rem), 64rem);
  --card-pad: 1.5rem;
  --card-gap: 0.9375rem;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__img,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media {
  z-index: -2;
  background: #17150f;
}
.hero__img {
  object-fit: cover;
  /* The landscape pictures are 2:1 with the cabinet near their right edge. Up to that shape the picture fills the
     height, so the whole cabinet shows, and what does not fit is cut from the out of focus left. */
  object-position: 100% 50%;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}
.hero__img.is-on {
  opacity: 1;
}
/* A neutral shade so the words read on any frame. It is the ink colour, not a colour wash. */
.hero__scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(18 17 14 / 0.58) 0%, rgb(18 17 14 / 0.3) 36%, rgb(18 17 14 / 0) 58%),
    linear-gradient(0deg, rgb(18 17 14 / 0.6) 0%, rgb(18 17 14 / 0) 30%),
    linear-gradient(180deg, rgb(18 17 14 / 0.5) 0%, rgb(18 17 14 / 0) 18%);
}
/* the headline and the two cards sit together at the foot of the photograph */
.hero__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, calc(var(--choice-w) + var(--gutter)));
  padding: calc(var(--nav-h) + 1.25rem) 0 clamp(2rem, 7vh, 4.5rem) var(--gutter);
}
/* Two rows, set so the long second word spans almost the width of the two cards under it: the headline and the
   cards read as one block. The word is 9.72em wide. */
.hero__title {
  font-size: calc(var(--choice-w) / 10.4);
  line-height: 0.98;
  white-space: nowrap;
  animation: rise 900ms 120ms var(--ease) both;
}

.choice {
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
}
.choice__card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - var(--card-gap)) / 3);
  min-width: 0;
  /* tall like Starlink's: the name and one sentence at the top, the button at the foot, glass between */
  min-height: clamp(19rem, 42vh, 27rem);
  padding: var(--card-pad);
  border-radius: var(--r-m);
  background-color: rgb(31 29 25 / 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition:
    flex-basis 0.45s var(--swap),
    background-color 0.25s ease-in-out,
    -webkit-backdrop-filter 0.45s var(--swap),
    backdrop-filter 0.45s var(--swap),
    box-shadow 0.45s var(--swap);
}
/* the hairline round a card, bright round the chosen one */
.choice__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(243 241 235 / 0.25);
  pointer-events: none;
  transition: box-shadow 0.45s var(--swap);
}
/* the light across the glass of the chosen card */
.choice__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.3) 0%,
    rgb(255 255 255 / 0.23) 15%,
    rgb(255 255 255 / 0.16) 30%,
    rgb(255 255 255 / 0.1) 45%,
    rgb(255 255 255 / 0.06) 57.5%,
    rgb(255 255 255 / 0.043) 64%,
    rgb(255 255 255 / 0.04) 70%,
    rgb(255 255 255 / 0.047) 75%,
    rgb(255 255 255 / 0.063) 80%,
    rgb(255 255 255 / 0.11) 90%,
    rgb(255 255 255 / 0.16) 100%
  );
  transition: opacity 0.45s var(--swap);
}
.choice__card:not(.is-on):has(.choice__pick:hover)::after {
  opacity: 0.5;
}
.choice__card:has(.choice__pick:focus-visible) {
  outline: 3px solid var(--night-ink);
  outline-offset: 3px;
}
.choice__card.is-on {
  flex-basis: calc((100% - var(--card-gap)) * 2 / 3);
  background-color: rgb(243 241 235 / 0.08);
  -webkit-backdrop-filter: blur(28px) saturate(1.9) brightness(1.15);
  backdrop-filter: blur(28px) saturate(1.9) brightness(1.15);
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.35);
}
.choice__card.is-on::before {
  box-shadow: inset 0 0 0 1.5px rgb(243 241 235 / 0.75);
}
.choice__card.is-on::after {
  opacity: 1;
}
.choice__name {
  min-height: 3rem;
  font-size: 1.5rem;
  line-height: 3rem;
  white-space: nowrap;
  transition: font-size 0.45s var(--swap);
}
.choice__card.is-on .choice__name {
  font-size: 2.5rem;
}
.choice__pick {
  font: inherit;
  letter-spacing: inherit;
  text-align: start;
  outline: none;
}
/* the whole of the other card is the button */
.choice__card:not(.is-on) .choice__pick::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.choice__card.is-on .choice__pick {
  cursor: default;
}
.choice__lead {
  margin-top: 0.25rem;
  line-height: 1.4;
  color: rgb(243 241 235 / 0.86);
}
.choice__more {
  flex: 1 1 auto;
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(0.625rem);
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.choice__card.is-on .choice__more {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease-in-out 0.2s, transform 0.45s var(--swap) 0.2s;
}
/* laid out at the width of the chosen card whichever card it is in, so nothing reflows while the cards trade */
.choice__more > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: calc((var(--choice-w) - var(--card-gap)) * 2 / 3 - 2 * var(--card-pad));
  height: 100%;
}
.choice__cta {
  align-self: start;
  margin-top: auto;
}
/* what follows the choice: only the parts for the chosen placement are shown */
[data-variant="ute"] [data-for="inne"],
[data-variant="inne"] [data-for="ute"] {
  display: none;
}
[data-for] {
  animation: swap 450ms var(--ease) both;
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- platform ---- */
.platform {
  padding-block: clamp(4.5rem, 11vh, 8.5rem);
}
.platform__title {
  max-width: 16ch;
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem);
}
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
  border: 1px solid var(--night-line);
  border-radius: var(--r-l);
  background: var(--night-line);
  overflow: hidden;
}
.feature {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--night);
  transition: background-color 200ms var(--ease);
}
.feature:hover {
  background: var(--night-surface);
}
.feature svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 660;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.feature p {
  margin-top: 0.5rem;
  color: var(--night-ink-2);
}

/* ---- specifications ---- */
.specs {
  padding-block: clamp(4.5rem, 11vh, 8.5rem);
  background: var(--night-surface);
  border-top: 1px solid var(--night-line);
}
.specs__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.specs__title {
  font-size: clamp(2rem, 1.1rem + 3.2vw, 4rem);
}
.spec-list {
  margin-top: clamp(1.75rem, 4vh, 3rem);
  border-top: 1px solid var(--night-line);
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.42fr) 1fr;
  gap: 1rem;
  padding-block: 0.9375rem;
  border-bottom: 1px solid var(--night-line);
}
.spec-list dt {
  color: var(--night-ink-2);
}
.spec-list dd {
  font-weight: 520;
}
.specs__title span {
  color: var(--signal);
}
.specs__drawing img {
  width: 100%;
  max-height: 40rem;
  margin-inline: auto;
}

/* ---- contact: the one orange door ---- */
.contact {
  background: var(--signal);
  color: var(--on-signal);
  padding-block: clamp(4rem, 10vh, 7.5rem);
}
.contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.contact__title {
  max-width: 14ch;
  font-size: clamp(2.25rem, 1.1rem + 4vw, 4.75rem);
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.contact__mail {
  font-weight: 560;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

/* ---- footer ---- */
.footer {
  padding-block: 2.5rem;
  font-size: 0.9375rem;
  color: var(--night-ink-2);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}
.footer .wordmark {
  color: var(--night-ink);
  font-size: 1.25rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}
.footer__links a:hover {
  color: var(--night-ink);
}
.footer__legal {
  margin-left: auto;
}

/* ---- reveal on scroll (only once the script has marked the page as ready) ---- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---- smaller screens ---- */
@media (max-width: 60rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .specs__grid {
    grid-template-columns: 1fr;
  }
  .specs__drawing img {
    max-height: 30rem;
  }
}

/* A phone, or any upright screen: the photograph is its own block with the whole cabinet in it, and the words
   and the two cards sit under it on the night colour, one above the other, the chosen one open. */
@media (max-width: 44rem), (max-aspect-ratio: 1/1) {
  .hero {
    min-height: 0;
  }
  .hero__media {
    position: relative;
    inset: auto;
    height: 52vh;
    height: 52svh;
    min-height: 20rem;
  }
  .hero__img {
    object-position: 86% 50%;
  }
  .hero__img[data-place-img="ute"] {
    object-position: 90% 50%;
  }
  .hero__scrim {
    inset: 0 0 auto 0;
    height: calc(52vh + 2px);
    height: calc(52svh + 2px);
    min-height: calc(20rem + 2px);
    background:
      linear-gradient(0deg, rgb(18 17 14 / 1) 0%, rgb(18 17 14 / 0) 26%),
      linear-gradient(180deg, rgb(18 17 14 / 0.5) 0%, rgb(18 17 14 / 0) 20%);
  }
  .hero__body {
    position: relative;
    width: 100%;
    margin-top: -2.25rem;
    padding: 0 var(--gutter) 2.5rem;
  }
  .hero__title {
    font-size: clamp(1.5rem, 8.6vw, 4rem);
    line-height: 1;
  }
  .choice {
    flex-direction: column;
    margin-top: 1.5rem;
  }
  .choice__card,
  .choice__card.is-on {
    flex: 0 0 auto;
    min-height: 0;
  }
  .choice__name {
    min-height: 2.25rem;
    line-height: 2.25rem;
  }
  .choice__card.is-on .choice__name {
    font-size: 1.875rem;
  }
  .choice__more {
    display: grid;
    grid-template-rows: 0fr;
    grid-template-columns: minmax(0, 1fr);
    flex: none;
    margin-top: 0;
    transform: none;
    transition: grid-template-rows 0.45s var(--swap), margin-top 0.45s var(--swap), opacity 0.2s ease-in-out;
  }
  .choice__card.is-on .choice__more {
    grid-template-rows: 1fr;
    margin-top: 0.75rem;
    transition: grid-template-rows 0.45s var(--swap), margin-top 0.45s var(--swap), opacity 0.3s ease-in-out 0.2s;
  }
  .choice__more > div {
    width: auto;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
}

/* a phone: the mark, Logga in and the demo button have to share one narrow row */
@media (max-width: 44rem) {
  .nav {
    gap: 0.75rem;
  }
}
@media (max-width: 24rem) {
  .nav {
    gap: 0.5rem;
  }
  .nav .btn--small {
    padding: 0 0.75rem;
  }
}
@media (max-width: 21.5rem) {
  .nav .wordmark__name {
    display: none;
  }
}
@media (max-width: 44rem) {
  :root {
    --nav-h: 3.75rem;
  }
  .wordmark {
    font-size: 1.3125rem;
  }
  .choice__cta {
    align-self: stretch;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .spec-list > div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
  .footer__legal {
    margin-left: 0;
  }
}

/* a wide, very short window (a phone on its side): lower cards */
@media (min-width: 44rem) and (min-aspect-ratio: 1/1) and (max-height: 30rem) {
  .hero {
    --card-pad: 1rem;
  }
  .choice__card {
    min-height: 11rem;
  }
  .hero__body {
    padding-bottom: 1.25rem;
  }
  .choice {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root {
    --frost-bg: rgb(18 17 14 / 0.94);
  }
  .frost,
  .choice__card,
  .choice__card.is-on,
  .btn--frost,
  .nav.is-stuck {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
