/* ---- tokens: the brand colors and type */

:root {
  --paper: #ffffff;
  --cream: #faf9f5;
  --ink: #141413;
  --ink-2: #4a4946;
  --ink-3: #807f79;
  --line: #e6e5e1;
  --line-strong: #d2d1cc;
  --orange: #e8511f;
  --orange-deep: #c8381a;
  --orange-soft: #fdeee7;
  --head: "Kanit", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1120px;
  --radius: 14px;
  --skew: -14deg;
  /* the width of the phone in "Vad vi bygger" */
  --phone: min(300px, calc((100svh - 150px) / 2.05));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

/* The hidden attribute wins over every display rule, so a hidden row or box is gone. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

/* A faint paper grain over the whole page. It lies above the content and lets clicks through. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

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

.icons {
  display: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--head);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(42px, 6.6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 900;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

/* ---- the kicker above headings: small, orange, with a short slanted bar */

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 4px;
  background: var(--orange);
  transform: skewX(var(--skew));
  flex-shrink: 0;
}

/* ---- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgb(20 20 19 / 0.06);
  transition:
    transform 160ms var(--ease-out),
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 160ms ease,
    color 120ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* The orange button has a light edge on top and a warm shadow under it. */
.btn-primary {
  background: var(--orange);
  border-color: var(--orange-deep);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    0 1px 2px rgb(200 56 26 / 0.3),
    0 10px 20px -10px rgb(232 81 31 / 0.7);
}

.btn-ghost {
  background: rgb(255 255 255 / 0.7);
}

/* A button that waits: a ring turns beside the text, and the button is locked. */
.btn-spin {
  display: none;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}

.btn.is-loading {
  pointer-events: none;
  cursor: progress;
}

.btn.is-loading .btn-spin {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn-ghost-dark {
  margin-top: 24px;
  background: transparent;
  border-color: rgb(250 249 245 / 0.3);
  color: #fff;
  box-shadow: none;
}

.btn-lg {
  height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    border-color: var(--ink);
  }
  .btn-ghost-dark:hover {
    border-color: var(--orange);
  }
  .btn-primary:hover {
    background: var(--orange-deep);
    border-color: var(--orange-deep);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.18),
      0 1px 2px rgb(200 56 26 / 0.3),
      0 14px 24px -10px rgb(232 81 31 / 0.75);
  }
}

/* ---- top bar */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand img {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a.btn {
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:not(.btn):hover {
    color: var(--ink);
  }
}

.nav-toggle {
  display: none;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  font: 600 15px var(--body);
  color: var(--ink);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 17px;
  }
  .nav-links a.btn {
    margin-top: 8px;
  }
}

/* ---- hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 80px;
}

/* A warm light behind the bubbles. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(closest-side, rgb(232 81 31 / 0.14), transparent);
  pointer-events: none;
}

.hero h1 .word {
  white-space: nowrap;
}

/* The brand K inside "effektivare": italic, orange, with the spacing of the wordmark. */
.hero h1 .k {
  display: inline-block;
  font-style: italic;
  color: var(--orange);
  margin: 0 0.04em 0 0.05em;
}

.lead {
  margin: 22px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---- a window with a real screen of one of our tools, and two bubbles on its corners */

.window {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgb(20 20 19 / 0.1);
  box-shadow:
    0 1px 2px rgb(20 20 19 / 0.06),
    0 30px 60px -30px rgb(20 20 19 / 0.45),
    0 60px 100px -50px rgb(20 20 19 / 0.35);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
}

.window-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-bar span {
  margin-left: 8px;
}

.window img,
.window video {
  display: block;
  width: 100%;
  height: auto;
}

.hero-app {
  position: relative;
}

.hero-app .window {
  width: 124%;
}

.bubble {
  --tail: rgb(20 20 19 / 0.08);
  position: absolute;
  max-width: 300px;
  padding: 12px 16px 13px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgb(20 20 19 / 0.08);
  box-shadow:
    0 1px 2px rgb(20 20 19 / 0.05),
    0 16px 32px -18px rgb(20 20 19 / 0.35),
    0 36px 60px -32px rgb(20 20 19 / 0.25);
  font-size: 14.5px;
  line-height: 1.45;
}

/* The small tail at the bottom corner, like a speech bubble. */
.bubble::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: inherit;
  border-right: 1px solid var(--tail);
  border-bottom: 1px solid var(--tail);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}

.bubble.is-right::after {
  left: auto;
  right: 18px;
}

.bubble-from {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.bubble p {
  color: var(--ink);
}

.bubble.is-ink {
  --tail: var(--ink);
  background: var(--ink);
  border-color: var(--ink);
}

.bubble.is-ink p {
  color: #fff;
}

.bubble.is-ink .bubble-from {
  color: rgb(250 249 245 / 0.6);
}

.b-app1 {
  right: -14%;
  top: -36px;
  width: 280px;
}

.b-app2 {
  left: -48px;
  bottom: -30px;
  width: 290px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
    padding-bottom: 56px;
  }
  .hero::before {
    top: 30%;
    right: -20%;
    width: 90%;
    height: 70%;
  }
  .hero-app {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .hero-app .window {
    width: 100%;
  }
  .bubble {
    position: relative;
    inset: auto;
    width: auto;
    max-width: 88%;
  }
  .bubble.is-right {
    align-self: flex-end;
  }
}

/* ---- statistics band */

.stats-band {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 70%, #ffffff 100%);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.stat-value {
  font-family: var(--head);
  font-weight: 900;
  font-size: 60px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stat-value .unit {
  font-size: 0.5em;
  margin-left: 0.08em;
  color: var(--orange);
}

.stat-text {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.src {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.stats-note {
  margin-top: 36px;
  max-width: 62ch;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 960px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* ---- sections */

.section {
  padding-top: 96px;
  padding-bottom: 96px;
}

/* Cream sections fade to white at the bottom, so the page has no hard slabs. */
.section-cream {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream) 65%, #ffffff 100%);
  border-top: 1px solid var(--line);
}

.section-line {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 44px;
}

.section-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* ---- the four steps: the photo stays at the right while the text scrolls past it.
   The step in the middle of the window is the one that shows, and its photo fades in. */

.steps-scroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.steps {
  grid-column: 1;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58vh;
  padding: 24px 0;
}

.step-no {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--head);
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  line-height: 1;
  color: var(--line-strong);
  transition: color 300ms ease;
}

.step h3 {
  font-size: 30px;
  color: var(--ink-3);
  transition: color 300ms ease;
}

.step p {
  margin-top: 12px;
  max-width: 44ch;
  font-size: 17px;
  color: var(--ink-3);
  transition: color 300ms ease;
}

.step[aria-current="step"] .step-no {
  color: var(--orange);
}

.step[aria-current="step"] h3 {
  color: var(--ink);
}

.step[aria-current="step"] p {
  color: var(--ink-2);
}

/* On a wide screen the scene is only the figure, placed in the right column. */
.steps-scene {
  display: contents;
}

.steps-text,
.steps-spacers {
  display: none;
}

.steps-figure {
  position: sticky;
  top: 108px;
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  isolation: isolate;
}

/* An orange slab behind the photo, turned a little, and the step's number over the corner. */
.steps-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 26px;
  background: var(--orange);
  transform: translate(18px, 18px) rotate(-2deg);
}

.steps-big {
  position: absolute;
  z-index: 3;
  top: -44px;
  left: -22px;
  font-family: var(--head);
  font-style: italic;
  font-weight: 900;
  font-size: 112px;
  line-height: 1;
  color: var(--ink);
}

.steps-frame {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 24px;
  background: var(--cream);
  box-shadow:
    0 1px 2px rgb(20 20 19 / 0.08),
    0 30px 60px -30px rgb(20 20 19 / 0.45);
}

.steps-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 600ms var(--ease-out),
    transform 1400ms var(--ease-out);
}

.steps-frame img.is-active {
  opacity: 1;
  transform: none;
}

.steps-caption {
  position: absolute;
  z-index: 2;
  left: 20px;
  bottom: 20px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

/* On a phone the scene stays on the screen while the page scrolls: the photo, the big
   number and the text of the step. Four empty spacers under it give the scroll its length. */
@media (max-width: 860px) {
  .steps-scroll {
    display: block;
  }
  .steps-scene {
    position: sticky;
    top: 68px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: calc(100svh - 68px);
    padding: 14px 0 12px;
    background: var(--paper);
  }
  .steps-figure {
    position: relative;
    top: auto;
    flex-shrink: 0;
    margin: 0 0 26px;
  }
  .steps-figure::before {
    transform: translate(10px, 10px) rotate(-2deg);
  }
  .steps-big {
    top: -10px;
    left: -6px;
    font-size: 58px;
    color: #fff;
    text-shadow: 0 2px 14px rgb(20 20 19 / 0.45);
  }
  .steps-frame {
    aspect-ratio: auto;
    height: min(38svh, 320px);
  }
  .steps-caption {
    display: none;
  }
  .steps-text {
    display: block;
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 260ms var(--ease-out),
      transform 260ms var(--ease-out);
  }
  .steps-text.in {
    opacity: 1;
    transform: none;
  }
  .steps-text-title {
    font-family: var(--head);
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
  }
  .steps-text-body {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink-2);
  }
  .steps {
    display: none;
  }
  .steps-spacers {
    display: block;
    padding-bottom: 12svh;
  }
  .steps-spacer {
    height: 52svh;
  }
}

/* ---- "Vad vi bygger": a list on the left, a phone on the right.
   On a wide screen, the phone stays in view while the list scrolls, and the row
   you click shows its screen. On a narrow screen, the phone comes first and
   changes screen by itself. */

.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--phone);
  column-gap: 80px;
  align-items: start;
}

.show > .section-head {
  grid-column: 1;
  grid-row: 1;
}

.show-list {
  list-style: none;
  margin: 0;
  padding: 0 0 160px;
  border-top: 1px solid var(--line-strong);
}

.show-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 0 22px 20px;
  border-bottom: 1px solid var(--line);
}

/* The slanted orange bar from the kicker marks the lit row, beside its title. */
.show-item h3 {
  position: relative;
}

.show-item h3::before {
  content: "";
  position: absolute;
  left: -64px;
  top: 50%;
  width: 4px;
  height: 22px;
  margin-top: -11px;
  background: var(--orange);
  transform: skewX(var(--skew)) scaleY(0);
  transition: transform 220ms var(--ease-out);
}

.show-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.show-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.show-item h3 {
  font-size: 21px;
  align-self: center;
  transition: color 160ms ease;
}

.show-item p {
  grid-column: 2;
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* The row in the middle of the window is lit, the others step back. */
.show-item {
  min-height: 24vh;
  align-content: center;
  cursor: pointer;
}

.show-item h3,
.show-item .show-icon {
  color: var(--ink-2);
}

.show-item[aria-current="true"] h3,
.show-item[aria-current="true"] .show-icon {
  color: var(--ink);
}

.show-item[aria-current="true"] h3::before {
  transform: skewX(var(--skew)) scaleY(1);
}

.show-item:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 6px;
}

@media (hover: hover) and (pointer: fine) {
  .show-item:hover h3,
  .show-item:hover .show-icon {
    color: var(--ink);
  }
}

/* On a wide screen the scene is only the phone, placed in the right column. */
.show-track,
.show-scene,
.show-scene-row {
  display: contents;
}

.show-text,
.show-rail,
.show-spacers {
  display: none;
}

.show-list {
  grid-column: 1;
  grid-row: 2;
}

/* The phone stands beside the heading, the list and the closing line, and
   stays at the middle of the window while the list scrolls past it. */
.show-stage {
  position: sticky;
  top: max(84px, calc(50svh - var(--phone) * 1.025 - 24px));
  grid-column: 2;
  grid-row: 1 / 4;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

/* The warm light behind the phone. */
.show-stage::before {
  content: "";
  position: absolute;
  inset: 0 -30%;
  background: radial-gradient(closest-side, rgb(232 81 31 / 0.18), transparent);
  pointer-events: none;
}

.device {
  position: relative;
  width: var(--phone);
  height: calc(var(--phone) * 2.05);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2c2c2a 0%, #141413 55%, #0d0d0c 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.1),
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 2px 4px rgb(20 20 19 / 0.2),
    0 30px 50px -20px rgb(20 20 19 / 0.5),
    0 60px 100px -40px rgb(20 20 19 / 0.4);
}

/* The dark pill at the top of the screen, like a phone has. */
.device::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 12px;
  background: #0b0b0a;
}

.device-screen {
  position: relative;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: var(--cream);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}

.s-top {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}

.s-status {
  display: flex;
  gap: 3px;
  align-items: flex-end;
}

.s-status i {
  width: 4px;
  height: 8px;
  border-radius: 1px;
  background: var(--ink);
}

.s-status i:nth-child(2) {
  height: 10px;
}

.s-status i:nth-child(3) {
  height: 12px;
}

/* One screen per tool. They lie on top of each other, and one is visible. */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 62px 16px 18px;
  opacity: 0;
  transform: scale(0.98);
  filter: blur(2px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out),
    filter 260ms var(--ease-out);
}

.screen.is-active {
  opacity: 1;
  transform: none;
  filter: none;
}

.s-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.s-muted {
  font-family: var(--body);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink-3);
}

.s-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgb(20 20 19 / 0.04);
}

.s-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.s-row > * {
  min-width: 0;
}

.s-row > :last-child {
  flex-shrink: 0;
}

.s-row b {
  font-weight: 600;
}

.s-chip {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 3px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.s-bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  border: 1px solid var(--line);
  align-self: flex-start;
}

.s-bubble.me {
  align-self: flex-end;
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  border-radius: 14px 14px 4px 14px;
}

.s-input {
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-3);
}

.s-src {
  font-size: 11.5px;
  color: var(--ink-3);
  padding-left: 10px;
  border-left: 2px solid var(--orange);
}

.s-mail {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.s-mail b {
  font-weight: 600;
}

.s-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-color: var(--orange);
}

.s-alert b {
  display: block;
  font-weight: 600;
}

.s-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.s-shift {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s-daylabel {
  width: 36px;
  font-weight: 600;
  font-size: 12px;
  color: var(--ink-2);
}

.s-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.s-pill.warn {
  background: var(--orange-soft);
  border-color: transparent;
  color: var(--orange-deep);
}

.s-map {
  position: relative;
  height: 236px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}

.s-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.s-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.s-pin i {
  width: 12px;
  height: 12px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--orange);
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgb(20 20 19 / 0.35);
}

.s-step {
  display: grid;
  gap: 6px;
}

.s-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.s-bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--orange);
}

.s-flow {
  display: grid;
  justify-items: center;
}

.s-node {
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-strong);
  font-weight: 600;
}

.s-link {
  width: 2px;
  height: 22px;
  background: var(--orange);
}

.s-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s-app {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
}

.s-app svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.show-more {
  grid-column: 1;
  grid-row: 3;
  margin-top: 40px;
  max-width: 70ch;
  font-size: 17px;
  color: var(--ink-2);
}

/* On a phone the scene stays on the screen while the page scrolls: the text above the
   phone and the orange dot in the rail change with the scroll. Nine empty spacers under
   the scene give the scroll its length. */
@media (max-width: 960px) {
  :root {
    --phone: min(232px, calc((100svh - 262px) / 2.05));
  }
  .show,
  .show-track {
    display: block;
  }
  .show-scene {
    position: sticky;
    top: 68px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding: 14px 0 10px;
  }
  .show-text {
    display: block;
    min-height: 118px;
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 260ms var(--ease-out),
      transform 260ms var(--ease-out);
  }
  .show-text.in {
    opacity: 1;
    transform: none;
  }
  .show-text-title {
    font-family: var(--head);
    font-weight: 700;
    font-size: 21px;
    line-height: 1.2;
  }
  .show-text-body {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink-2);
  }
  .show-scene-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
  }
  .show-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(var(--phone) * 2.05);
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .show-rail::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: var(--line-strong);
  }
  .show-dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink-2);
    cursor: pointer;
    transition:
      background-color 220ms ease,
      border-color 220ms ease,
      color 220ms ease;
  }
  .show-dot svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
  }
  .show-dot[aria-current="true"] {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }
  .show-stage {
    position: static;
    grid-column: auto;
    grid-row: auto;
    justify-self: center;
    padding: 0;
  }
  .show-stage::before {
    inset: 10% -20%;
  }
  .device::before {
    top: 16px;
    width: 62px;
    height: 18px;
    margin-left: -31px;
  }
  .device-screen {
    font-size: clamp(9.5px, calc(var(--phone) / 19.5), 12px);
  }
  .s-card {
    padding: 8px 10px;
  }
  .s-top {
    top: 18px;
    left: 18px;
    right: 18px;
    font-size: 11px;
  }
  .screen {
    gap: 8px;
    padding: 48px 12px 14px;
  }
  .s-head {
    font-size: clamp(13px, calc(var(--phone) / 15.5), 15px);
  }
  .s-pill {
    font-size: 10px;
    padding: 2px 6px;
  }
  .s-map {
    height: 150px;
  }
  .show-list {
    display: none;
  }
  .show-spacers {
    display: block;
    padding-bottom: 8svh;
  }
  .show-spacer {
    height: 44svh;
  }
  .show-more {
    margin-top: 24px;
  }
}

/* ---- the model: two videos of the data scrubbing, each with its text */

.demo {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}

.demo-no {
  font-family: var(--head);
  font-style: italic;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  color: var(--orange);
}

.demo-text h3 {
  margin-top: 10px;
  font-size: 24px;
}

.demo-text p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.demo-video {
  margin: 0;
}

.demo-note {
  margin-top: 40px;
  max-width: 70ch;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .demo {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 44px;
  }
}

/* ---- booking: the text on the left, the form on a raised sheet on the right */

.book {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}

.book-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--ink-2);
}

.book-facts li {
  position: relative;
  padding-left: 18px;
}

.book-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 4px;
  background: var(--orange);
  transform: skewX(var(--skew));
}

.book-facts strong {
  color: var(--ink);
}

.book-intro .btn {
  margin-top: 32px;
}

.book-form {
  min-width: 0;
  padding: 28px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, var(--cream));
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 1px 2px rgb(20 20 19 / 0.05),
    0 24px 48px -24px rgb(20 20 19 / 0.3);
}

/* Call or video meeting: two choices in one control. */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 0;
  padding: 4px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.seg-opt {
  position: relative;
  display: block;
}

.seg-opt input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.seg-opt:has(input:checked) span {
  background: var(--ink);
  color: #fff;
}

.seg-opt:has(input:focus-visible) span {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.book-label {
  margin: 20px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.book-tz {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.book-days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition:
    transform 160ms var(--ease-out),
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.chip:active {
  transform: scale(0.96);
}

.chip:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip:disabled {
  cursor: default;
  color: var(--ink-3);
  background: transparent;
  border-style: dashed;
}

@media (hover: hover) and (pointer: fine) {
  .chip:not(:disabled):hover {
    border-color: var(--ink);
  }
}

.chip-day {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 64px;
  padding: 8px 0;
  line-height: 1.1;
}

.chip-day span,
.chip-day small {
  font-size: 11px;
  opacity: 0.7;
}

.chip-day span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-day strong {
  font-family: var(--head);
  font-weight: 700;
  font-size: 20px;
}

.book-times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.chip-time {
  padding: 9px 0;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

/* A taken time stays in the grid, in the brand's pale orange, and cannot be picked. */
.chip-time.is-taken {
  cursor: not-allowed;
  border-style: solid;
  border-color: rgb(232 81 31 / 0.3);
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.book-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.book-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgb(232 81 31 / 0.3);
  background: var(--orange-soft);
}

.book-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.book-fields label,
.message-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.book-fields .is-wide {
  grid-column: 1 / -1;
}

.book-fields em,
.message-form em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-3);
}

.book-fields input,
.book-fields textarea,
.message-form input,
.message-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}

.book-fields textarea,
.message-form textarea {
  resize: vertical;
}

.book-fields input:focus-visible,
.book-fields textarea:focus-visible,
.message-form input:focus-visible,
.message-form textarea:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}

/* The hidden field that only robots fill in. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* A step of the booking form: hidden until the step before it is done, then it fades and lifts in. */
.book-step {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.book-step.in {
  opacity: 1;
  transform: none;
}

.book-note:empty {
  display: none;
}

.book-note {
  margin-top: 12px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.form-status {
  font-size: 14px;
  color: var(--ink-2);
}

/* After a booking the form stays, dimmed, and the confirmation comes in under it. */
.book-body {
  transition: opacity 260ms var(--ease-out);
}

.book-form.is-booked .book-body {
  opacity: 0.45;
}

.book-done {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin: 100px 0 24px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.book-done.in {
  opacity: 1;
  transform: none;
}

.book-done h3 {
  font-size: 28px;
}

.book-done-text {
  margin-top: 10px;
  color: var(--ink-2);
}

.book-done-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

@media (max-width: 960px) {
  .book {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 560px) {
  .book-form {
    padding: 20px;
  }
  .book-fields {
    grid-template-columns: 1fr;
  }
}

/* ---- ownership: a carousel, one comparison at a time. The rented service at the left
   on paper, the own tool at the right on an ink panel that stands a little taller. */

.carousel {
  position: relative;
  margin-top: 8px;
}

.carousel-track {
  display: flex;
  margin: 0 -24px;
  padding: 16px 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-radius: 12px;
}

.slide {
  flex: 0 0 100%;
  padding: 0 24px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}

.slide-no {
  font-family: var(--head);
  font-style: italic;
  font-weight: 900;
  font-size: 22px;
  color: var(--orange);
}

.slide-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
}

.slide-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.panel {
  padding: 26px 28px 28px;
  border-radius: 20px;
}

.panel-rent {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.panel-own {
  margin: -12px 0;
  background: linear-gradient(180deg, #1f1f1d, var(--ink));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 30px 60px -30px rgb(20 20 19 / 0.55);
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-style: italic;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.panel-label::before {
  content: "";
  width: 14px;
  height: 4px;
  background: currentColor;
  transform: skewX(var(--skew));
}

.panel-own .panel-label {
  color: var(--orange);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo-row {
  display: flex;
}

.logo-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.logo-row span:first-child {
  margin-left: 0;
}

.logo-row svg {
  width: 13px;
  height: 13px;
  fill: var(--ink-2);
}

.vis {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 18px 0 16px;
}

/* The drawing keeps the shape of its own box, 220 by 130, so nothing spills over the text. */
.vis > svg {
  display: block;
  width: 100%;
  max-width: 254px;
  height: auto;
  font-family: var(--body);
}

.panel-rent .vis {
  color: var(--ink-2);
}

.panel-own .vis {
  color: rgb(250 249 245 / 0.9);
}

.vis .o {
  stroke: var(--orange);
}

.vis .of {
  fill: var(--orange);
  stroke: var(--orange);
}

.vis .soft {
  stroke: var(--line-strong);
}

.panel-own .vis .soft {
  stroke: rgb(250 249 245 / 0.35);
}

.vis .fill {
  fill: currentColor;
  stroke: none;
}

.vis-logos {
  grid-template-columns: repeat(3, 56px);
  gap: 12px;
}

.vis-logos span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(20 20 19 / 0.06);
}

.vis-logos svg {
  width: 24px;
  height: 24px;
  fill: var(--ink-2);
}

.panel-text {
  font-size: 17px;
  line-height: 1.5;
}

.panel-own .panel-text {
  color: #fff;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.carousel-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font: 600 22px/1 var(--body);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    border-color 120ms ease;
}

.carousel-btn:active {
  transform: scale(0.94);
}

.carousel-btn:focus-visible,
.carousel-dot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-btn:hover {
    border-color: var(--ink);
  }
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.carousel-dot {
  width: 22px;
  height: 6px;
  padding: 0;
  border: 0;
  background: var(--line-strong);
  transform: skewX(var(--skew));
  cursor: pointer;
  transition:
    background-color 200ms ease,
    width 200ms var(--ease-out);
}

.carousel-dot[aria-current="true"] {
  width: 36px;
  background: var(--orange);
}

.compare-note {
  margin-top: 36px;
  max-width: 70ch;
  color: var(--ink-2);
}

@media (max-width: 760px) {
  .slide-panels {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .panel {
    padding: 20px;
  }
  .panel-own {
    margin: 0;
  }
  .vis {
    min-height: 120px;
    margin: 14px 0 12px;
  }
  .vis > svg {
    max-width: 204px;
  }
  .vis-logos {
    grid-template-columns: repeat(3, 48px);
    gap: 10px;
  }
  .vis-logos span {
    width: 48px;
    height: 48px;
  }
  .slide-title {
    font-size: 22px;
  }
}

/* ---- mission, vision, values, with the brand K as an object */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: center;
}

#varfor h2 {
  font-size: clamp(34px, 5vw, 58px);
}

/* The words of the headline arrive one by one, and the K slides in after them. */
.alive .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
  transition:
    opacity 600ms var(--ease-out),
    transform 800ms var(--ease-out),
    filter 600ms ease;
  transition-delay: calc(var(--i) * 90ms);
}

.alive.in .w {
  opacity: 1;
  transform: none;
  filter: none;
}

.why-mark {
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateX(48px) rotate(-8deg) scale(0.9);
  transition:
    opacity 700ms var(--ease-out) 350ms,
    transform 1000ms var(--ease-out) 350ms;
}

.why-mark.in {
  opacity: 1;
  transform: none;
}

/* A warm light behind the K that breathes slowly. */
.why-mark::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(232 81 31 / 0.32), transparent);
  animation: breathe 5s ease-in-out infinite alternate;
}

@keyframes breathe {
  from {
    opacity: 0.45;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.why-mark img {
  width: 100%;
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgb(232 81 31 / 0.35));
}

/* The K drifts up a little while you scroll past it, where the browser supports it. */
@supports (animation-timeline: view()) {
  .why-mark img {
    animation: drift linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes drift {
  from {
    transform: translateY(70px) rotate(-3deg);
  }
  to {
    transform: translateY(-70px) rotate(3deg);
  }
}

.mvv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.mvv-item h3,
.mvv-h {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 12px;
}

.mvv-item p {
  font-family: var(--head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}

.values p {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ink-2);
}

/* A value as an orange tag with the slant of the K. */
.tag {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding: 5px 12px;
  font-family: var(--head);
  font-weight: 700;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.tag::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 2px;
  background: var(--orange);
  transform: skewX(var(--skew));
}

@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .why-mark img {
    max-width: 200px;
  }
}

@media (max-width: 600px) {
  .mvv,
  .values {
    grid-template-columns: 1fr;
  }
}

/* ---- about, with the portrait */

/* A small square portrait at the left, the text beside it. The photo is 400 by
   400 pixels, so 200 CSS pixels keeps it sharp on a sharp screen. */
.about {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.portrait {
  position: relative;
  width: 200px;
  aspect-ratio: 1;
  margin-top: 6px;
}

/* A pale orange slab behind the photo, offset to the lower right. */
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--orange-soft);
  transform: translate(12px, 12px);
}

.portrait-frame {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow:
    0 1px 2px rgb(20 20 19 / 0.05),
    0 16px 32px -16px rgb(20 20 19 / 0.35);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-hint {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.6;
}

.portrait-hint code {
  color: var(--ink);
}

.portrait-frame.is-missing img {
  display: none;
}

.portrait-frame.is-missing .portrait-hint {
  display: grid;
}

.about-text p {
  margin-top: 16px;
  color: var(--ink-2);
}

.about-text .btn {
  margin-top: 26px;
}

.placeholder {
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .portrait {
    width: 160px;
    margin-top: 0;
  }
}

/* ---- contact: a dark band with a warm light and the brand K in the corner */

.section-contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.section-contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -60px;
  bottom: -150px;
  width: 560px;
  height: 560px;
  background: url("assets/effektimera-mark.svg") center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.section-contact::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -40%;
  right: -10%;
  width: 70%;
  height: 160%;
  background: radial-gradient(closest-side, rgb(232 81 31 / 0.2), transparent);
  pointer-events: none;
}

.section-contact .section-lead {
  color: rgb(250 249 245 / 0.72);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.section-contact .section-lead a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--orange);
}

.contact-ways {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  max-width: 420px;
}

.contact-way {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid rgb(250 249 245 / 0.18);
  background: rgb(250 249 245 / 0.04);
  text-decoration: none;
  transition:
    transform 160ms var(--ease-out),
    border-color 120ms ease;
}

.contact-way:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .contact-way:hover {
    border-color: var(--orange);
  }
}

.contact-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

.contact-value {
  font-family: var(--head);
  font-weight: 700;
  font-size: 20px;
}

.message-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: rgb(250 249 245 / 0.05);
  border: 1px solid rgb(250 249 245 / 0.14);
}

.message-form label {
  color: rgb(250 249 245 / 0.8);
}

.message-form input,
.message-form textarea {
  background: rgb(250 249 245 / 0.06);
  border-color: rgb(250 249 245 / 0.22);
  color: #fff;
}

.message-form .form-status {
  color: rgb(250 249 245 / 0.75);
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section-contact::before {
    width: 380px;
    height: 380px;
    right: -80px;
    bottom: -120px;
  }
}

/* ---- footer */

.foot {
  background: var(--ink);
  color: rgb(250 249 245 / 0.72);
  border-top: 1px solid rgb(250 249 245 / 0.1);
  font-size: 14px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.foot-grid img {
  height: 20px;
  width: auto;
  margin-bottom: 18px;
}

.foot-line {
  margin-top: 6px;
}

.foot nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.foot a {
  color: rgb(250 249 245 / 0.72);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    color: var(--paper);
  }
}

.foot-sources ol {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.foot-sources a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(250 249 245 / 0.3);
}

.foot-end {
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid rgb(250 249 245 / 0.1);
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---- reveal on scroll: a short fade and lift, once */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 450ms var(--ease-out),
    transform 450ms var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transform: none;
    transition: opacity 200ms ease;
  }
  .btn:active,
  .contact-way:active {
    transform: none;
  }
  .screen {
    transform: none;
    filter: none;
    transition: opacity 200ms ease;
  }
  .book-step,
  .book-done {
    transform: none;
    transition: opacity 200ms ease;
  }
  .btn-spin {
    animation: pulse 1s ease-in-out infinite;
    border-right-color: currentColor;
  }
  .show-item h3::before {
    transition: none;
  }
  .why-mark img,
  .why-mark::before {
    animation: none;
  }
  .why-mark,
  .alive .w,
  .steps-frame img,
  .show-text {
    transform: none;
    filter: none;
    transition: opacity 200ms ease;
  }
}
