/* ==========================================================================
   Lumhaven
   Change the brand colours here. --accent is "the light turning on".
   ========================================================================== */

:root {
  --bg: #0B0B0C;
  --text: #F2EEE8;
  --muted: #8A8580;
  --accent: #E8A85C;
  --accent-rgb: 232, 168, 92;
  --text-rgb: 242, 238, 232;

  --soft: rgba(var(--text-rgb), 0.74);      /* body copy on dark */
  --line: rgba(var(--text-rgb), 0.14);      /* hairlines, like the blueprint */
  --line-strong: rgba(var(--text-rgb), 0.42);
  --panel: #111112;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1240px;
  --section: clamp(88px, 13vw, 176px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

h1,
h2,
h3,
.serif {
  font-family: var(--serif);
  font-weight: 340;
  font-optical-sizing: auto;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* --------------------------------------------------------------------------
   Buttons and links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 560 1rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.45s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.5),
    0 10px 48px -6px rgba(var(--accent-rgb), 0.6);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--text);
  background: rgba(var(--text-rgb), 0.06);
}

.btn--small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 0.875rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

p {
  text-wrap: pretty;
}

.note {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Menu bar. On the home page it stays hidden until the hero has finished.
   The links are written into every page by scripts/update-nav.py.
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(11, 11, 12, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), background-color 0.4s var(--ease), visibility 0s;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.nav__brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 380;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  margin-right: clamp(12px, 2.4vw, 36px);
}

.nav__links a,
.menu__links a {
  position: relative;
  display: block;
  margin-right: -0.2em;            /* the letter-spacing leaves a gap after the last letter */
  padding: 10px 0;
  color: rgba(var(--text-rgb), 0.7);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.45s var(--ease);
}

.nav__links a::after,
.menu__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.2em;
  bottom: 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current],
.menu__links a:hover,
.menu__links a:focus-visible,
.menu__links a[aria-current] {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current]::after,
.menu__links a:hover::after,
.menu__links a[aria-current]::after {
  transform: scaleX(1);
}

.nav--hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s 0.4s;
}

/* Phone menu: an icon that opens a full-screen overlay */

.nav__toggle {
  position: relative;
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.nav__toggle span {
  position: absolute;
  left: 11px;
  top: 21.5px;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease);
}

.nav__toggle span:nth-child(1) { transform: translateY(-4px); }
.nav__toggle span:nth-child(2) { transform: translateY(4px); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 7vh, 64px);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  background: #0B0B0C;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}

.menu::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 45% at 50% 0%, rgba(var(--accent-rgb), 0.14), rgba(var(--accent-rgb), 0) 70%);
}

.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s var(--ease), visibility 0s;
}

.menu__links {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3.4vh, 30px);
}

.menu__links a {
  margin-right: 0;
  padding: 8px 0 12px 0.2em;
  font-size: clamp(1.5rem, 7.2vw, 2.25rem);
  font-weight: 400;
}

.menu__links a::after {
  left: 0.2em;
  bottom: 6px;
}

.menu__links li,
.menu__cta {
  position: relative;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.menu.is-open .menu__links li,
.menu.is-open .menu__cta {
  opacity: 1;
  transform: none;
}

.menu.is-open .menu__links li:nth-child(1) { transition-delay: 0.08s; }
.menu.is-open .menu__links li:nth-child(2) { transition-delay: 0.15s; }
.menu.is-open .menu__links li:nth-child(3) { transition-delay: 0.22s; }
.menu.is-open .menu__links li:nth-child(4) { transition-delay: 0.29s; }
.menu.is-open .menu__links li:nth-child(5) { transition-delay: 0.36s; }
.menu.is-open .menu__cta { transition-delay: 0.42s; }

html.menu-open {
  overflow: hidden;
}

html.menu-open .nav {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: block;
  }
}

@media (max-width: 379px) {
  .nav__cta {
    display: none;          /* the button is also inside the phone menu */
  }
}

@media (min-width: 861px) {
  .menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero. Default (no JS, or reduced motion) is a single static screen.
   The class "scrub" on <html> turns it into the scroll-driven shot.
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: #000;
}

.hero__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000 url("/assets/img/hero-fallback.webp") center / cover no-repeat;
}

.hero__poster,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

.hero__poster {
  object-fit: cover;
  object-position: center;
}

/* Keeps the text readable whatever is behind it */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 0% 100%, rgba(5, 5, 6, 0.82) 0%, rgba(5, 5, 6, 0.45) 38%, rgba(5, 5, 6, 0) 68%),
    linear-gradient(to top, rgba(5, 5, 6, 0.5), rgba(5, 5, 6, 0) 34%);
}

/* Soft dark gradient on the left, behind the first line and the list of industries.
   hero.js fades it in and out with those lines. */
.hero__shade--left {
  display: none;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.42) 22%, rgba(0, 0, 0, 0) 50%);
}

html.scrub .hero__shade--left {
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
}

.hero__copy {
  margin: 0;
}

.hero__line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(104px, 17vh, 176px);
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.5rem, 7.2vw, 6.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}

.hero__line--change {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.35), 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero__line--industries {
  max-width: 13ch;
  font-size: clamp(2.1rem, min(5.6vw, 8vh), 4.75rem);
  line-height: 1.08;
}

.hero__line--industries span {
  display: block;
}

.hero__yours {
  margin-top: 0.22em;
  font-size: 0.82em;
  text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.35), 0 2px 40px rgba(0, 0, 0, 0.6);
}

.hero__end {
  /* Space kept free in the middle for the phone in the final frame */
  --phone-gap: clamp(14px, 2.6vh, 28px);
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr var(--phone-gap) 1fr;
  justify-items: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.hero__end::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: var(--end-shade, 0);
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.62), rgba(5, 5, 6, 0) 38%, rgba(5, 5, 6, 0) 60%, rgba(5, 5, 6, 0.66));
}

.hero__wordmark {
  align-self: end;
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(3.5rem, min(14vw, 20vh), 11.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.7);
}

.hero__below {
  grid-row: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vh, 28px);
}

.hero__subline {
  max-width: 24ch;
  font-size: clamp(1.0625rem, 1.9vw, 1.4rem);
  color: rgba(var(--text-rgb), 0.88);
  text-wrap: balance;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.8);
}

.hero__arrow {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  width: 44px;
  height: 44px;
  margin-left: -22px;
  display: none;
  place-items: center;
  color: var(--text);
  text-decoration: none;
}

.hero__arrow svg {
  width: 26px;
  height: 14px;
  animation: nudge 2.4s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.9; }
  55%      { transform: translateY(6px); opacity: 0.28; }
}

/* Static mode: lit café, "We change that.", wordmark, button */
html:not(.scrub) .hero__line--invisible,
html:not(.scrub) .hero__line--industries {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html:not(.scrub) .hero__line--change {
  left: 0;
  right: 0;
  bottom: auto;
  top: clamp(72px, 16vh, 150px);
  max-width: none;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

html:not(.scrub) .hero__shade {
  background: rgba(5, 5, 6, 0.46);
}

/* Scroll-driven mode */
html.scrub .hero {
  height: calc((1 + var(--hero-scroll, 4)) * 100vh);
  height: calc((1 + var(--hero-scroll, 4)) * 100lvh);
}

html.scrub .hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  background-image: none;
}

html.scrub .hero__poster,
html.scrub .hero__canvas {
  display: block;
}

html.scrub .hero__canvas:not(.is-ready) {
  visibility: hidden;
}

/* Phones held upright: frame 1 sits where the canvas will draw it.
   Keep 0.75, 0.527 and 40 in step with "upright" in hero.js. */
@media (max-width: 767px) and (max-aspect-ratio: 1/1) {
  html.scrub .hero__poster {
    --w: calc(100vw / 0.75);
    inset: auto;
    left: calc(50vw - var(--w) * 0.527);
    top: calc(40vh - var(--w) * 0.28125);
    top: calc(40lvh - var(--w) * 0.28125);
    width: var(--w);
    max-width: none;
    height: auto;
  }
}

html.scrub .hero__arrow {
  display: grid;
}

html.scrub .hero__line--change,
html.scrub .hero__line--industries p,
html.scrub .hero__wordmark,
html.scrub .hero__subline {
  opacity: 0;
}

html.scrub .hero__cta {
  opacity: 0;
  visibility: hidden;
}

/* Final frame: wordmark above the phone, subline and button below it, with clear
   space between each. hero.js measures where the phone is (--phone-top / --phone-bottom). */
html.scrub .hero__end {
  --clear: clamp(22px, 4.4vh, 52px);
  display: block;
  height: 100vh;
  height: 100lvh;
  padding: 0;
}

html.scrub .hero__end::before {
  opacity: 0;
}

html.scrub .hero__wordmark {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: calc(100% - var(--phone-top, 40%) + var(--clear));
}

html.scrub .hero__below {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: calc(var(--phone-bottom, 58%) + var(--clear));
}

/* Once the canvas is drawing, the still first frame underneath is switched off,
   so nothing shows through when the hero fades out at the end. */
html.scrub .hero__stage {
  background-color: var(--bg);
}

html.scrub .hero__stage.is-live .hero__poster {
  visibility: hidden;
}

/* No empty screen after the hero: the offer section is pulled up by one screen, so
   its headline is in place the moment the hero has finished. hero.js fades it in. */
html.scrub main {
  position: relative;
  z-index: 1;
  pointer-events: none;      /* its empty top edge lies over the end of the hero: clicks go through to the hero button */
}

html.scrub main > * {
  pointer-events: auto;
}

html.scrub [data-after-hero] {
  margin-top: -100vh;
  margin-top: -100lvh;
  opacity: 0;
  visibility: hidden;
  transform: none;
  transition: none;
}

@media (max-width: 767px) {
  .hero__line {
    bottom: clamp(96px, 15vh, 150px);
  }
}

/* Upright screens: the whole picture is fitted across the screen (see "upright"
   in hero.js) and the words sit underneath it instead of on top of it. */
html.scrub.hero-fit .hero__line {
  top: calc(var(--picture-bottom, 56vh) + clamp(18px, 3.4vh, 34px));
  bottom: auto;
  font-size: clamp(2.2rem, 9.6vw, 4.5rem);
}

html.scrub.hero-fit .hero__line--industries {
  font-size: clamp(1.9rem, 8.2vw, 3.75rem);
}

html.scrub.hero-fit .hero__shade {
  background: linear-gradient(to top, rgba(5, 5, 6, 0.55), rgba(5, 5, 6, 0) 42%);
}

/* The words sit under the picture here, so the left gradient is not needed */
html.scrub.hero-fit .hero__shade--left {
  display: none;
}

/* Static mode on upright screens: same idea, picture on top, words below */
@media (max-width: 767px) and (max-aspect-ratio: 1/1) {
  html:not(.scrub) .hero__stage {
    background-color: #050506;
    background-size: 109vw auto;
    background-position: center 13vh;
    background-position: center 13svh;
  }

  html:not(.scrub) .hero__shade {
    background: linear-gradient(to top, rgba(5, 5, 6, 0.6), rgba(5, 5, 6, 0) 50%);
  }

  html:not(.scrub) .hero__line--change {
    top: calc(13vh + 61vw + 22px);
    top: calc(13svh + 61vw + 22px);
  }

  html:not(.scrub) .hero__end {
    grid-template-rows: auto auto;
    align-content: end;
    row-gap: 14px;
    padding-bottom: clamp(40px, 9vh, 96px);
  }

  html:not(.scrub) .hero__below {
    grid-row: 2;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .hero__stage,
  .hero__overlay {
    min-height: 0;
  }

  .hero__line {
    bottom: 64px;
    font-size: clamp(1.8rem, 6vw, 3rem);
    max-width: 22ch;
  }

  .hero__wordmark {
    font-size: clamp(2.6rem, 9vw, 5rem);
  }

  .hero__end {
    min-height: 0;
  }
}

/* --------------------------------------------------------------------------
   Sections: shared pieces
   -------------------------------------------------------------------------- */

.section {
  --pt: var(--section);
  position: relative;
  padding-block: var(--pt) var(--section);
}

/* Less air between the three cards and the pricing heading than between other sections */
.who {
  padding-bottom: clamp(44px, 5vw, 72px);
}

.pricing {
  --pt: clamp(48px, 6vw, 88px);
}

.section__title {
  max-width: 17ch;
  font-size: clamp(2.2rem, 5.4vw, 4.5rem);
}

.section__lede {
  max-width: 54ch;
  margin-top: clamp(20px, 3vw, 32px);
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

/* Small numbered label above a heading, same letter-spacing as the menu */
.eyebrow {
  margin-bottom: clamp(18px, 2.2vw, 28px);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.45);
}

/* Warm light behind a heading, like the café lamp. Brighter once it is in view. */
.sec-head {
  position: relative;
}

.sec-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: clamp(-180px, -12vw, -60px);
  top: clamp(-200px, -16vw, -90px);
  width: min(900px, 120vw);
  height: clamp(380px, 46vw, 620px);
  pointer-events: none;
  background: radial-gradient(50% 50% at 38% 46%, rgba(var(--accent-rgb), 0.15), rgba(var(--accent-rgb), 0.05) 46%, rgba(var(--accent-rgb), 0) 72%);
  opacity: 1;
}

.sec-head--centre::before {
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 46%, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.05) 46%, rgba(var(--accent-rgb), 0) 72%);
}

.js .sec-head::before {
  opacity: 0.3;
  transition: opacity 2.4s var(--ease);
}

.js .sec-head.is-in::before {
  opacity: 1;
}

main {
  overflow-x: clip;       /* the warm glows may reach past the edge of the screen */
}

/* Thin divider that draws itself from left to right */
.rule {
  position: relative;
  display: block;
  height: 1px;
  background: var(--line);
}

/* At the top of a section it sits on the section's upper edge */
.section > .wrap > .rule {
  margin-top: calc(var(--pt) * -1);
  margin-bottom: var(--pt);
}

.rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.5) 38%, rgba(var(--accent-rgb), 0) 82%);
  transform-origin: left center;
}

.js .rule::after {
  transform: scaleX(0);
  transition: transform 2s var(--ease) 0.1s;
}

.js .rule.is-in::after {
  transform: scaleX(1);
}

/* Things fade and rise in as they enter the screen. --i staggers neighbours. */
.js .rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 0.11s), transform 1.3s var(--ease) calc(var(--i, 0) * 0.11s);
}

.js .rv.is-in {
  opacity: 1;
  transform: none;
}

/* Headings rise in line by line (main.js splits them into lines) */
.js [data-lines]:not(.is-split) {
  visibility: hidden;
  animation: show-anyway 0s linear 3s forwards;    /* never stay hidden if the script fails */
}

@keyframes show-anyway {
  to { visibility: visible; }
}

[data-lines] .ln {
  display: block;
  overflow: hidden;
  margin-bottom: -0.14em;
  padding-bottom: 0.14em;       /* room for descenders inside the mask */
}

[data-lines] .ln > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.25s var(--ease) calc(var(--l, 0) * 0.12s + 0.05s);
}

[data-lines].is-in .ln > span {
  transform: none;
}

.cta-stack {
  display: grid;
  justify-items: start;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   01 The offer: three steps on a line that fills up as you scroll
   -------------------------------------------------------------------------- */

.offer__title {
  max-width: 19ch;
}

.offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 112px);
}

.offer__cta {
  grid-column: 1;
  grid-row: 1;
}

.timeline {
  --fill: 0;
  position: relative;
  grid-column: 2;
  padding-left: clamp(52px, 6vw, 76px);
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 6px;
  bottom: 6px;
  width: 1px;
}

.timeline::before {
  background: var(--line);
}

.timeline::after {
  background: linear-gradient(to bottom, var(--accent), rgba(var(--accent-rgb), 0.75));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7);
  transform: scaleY(var(--fill));
  transform-origin: center top;
}

.tstep {
  position: relative;
  padding-bottom: clamp(44px, 6vw, 84px);
}

.tstep:last-child {
  padding-bottom: 0;
}

.tstep__num {
  position: absolute;
  left: calc(clamp(52px, 6vw, 76px) * -1);
  top: -2px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
  transition: border-color 0.7s var(--ease), color 0.7s var(--ease), box-shadow 0.7s var(--ease);
}

.tstep.is-lit .tstep__num,
html:not(.js) .tstep__num {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.45), inset 0 0 10px rgba(var(--accent-rgb), 0.12);
}

html:not(.js) .timeline {
  --fill: 1;
}

.tstep__title {
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  line-height: 1.12;
}

.tstep__text {
  max-width: 36ch;
  margin-top: 12px;
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   02 Our work: project cards (also used on the Our Work pages)
   -------------------------------------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: center;
}

.project__media {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
}

.project__media:hover .nv__page,
.project__media:focus-visible .nv__page,
.project:hover .project__media .nv__page {
  transform: scale(1.04);
}

.tag {
  position: absolute;
  left: 18px;
  top: -12px;                /* sits on the top edge of the preview, clear of the page inside */
  z-index: 3;
  padding: 7px 11px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 24px -6px rgba(0, 0, 0, 0.6);
}

.project__title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.06;
}

.project__text {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--soft);
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.built__label {
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.built {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.built li {
  position: relative;
  padding-left: 20px;
  color: var(--soft);
}

.built li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.8);
}

/* The large card on the home page: preview on top, words underneath */
.project--teaser {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(48px, 7vw, 96px);
}

.project--teaser .project__media {
  transform: translate3d(0, var(--shift, 0px), 0);
  will-change: transform;
}

.js .project--teaser .project__media.rv {
  transform: translate3d(0, calc(var(--shift, 0px) + 22px), 0);
}

.js .project--teaser .project__media.rv.is-in {
  transform: translate3d(0, var(--shift, 0px), 0);
  transition: opacity 1.1s var(--ease);
}

.project--teaser .project__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.project--teaser .project__actions {
  margin-top: 0;
}

/* The slow band of words between two sections */
.band {
  overflow: hidden;
  padding-block: clamp(26px, 4.4vw, 60px);
  border-block: 1px solid var(--line);
}

.band__track {
  display: flex;
  width: max-content;
  animation: band 70s linear infinite;
}

.band__track span {
  flex: none;
  padding-right: 0.32em;
  color: rgba(var(--text-rgb), 0.16);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7.4vw, 6.25rem);
  font-weight: 330;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
}

@keyframes band {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   03 Who we work with
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(48px, 7vw, 88px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: clamp(300px, 32vw, 420px);
  padding: clamp(26px, 3.2vw, 42px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(var(--text-rgb), 0.022), rgba(var(--text-rgb), 0));
  transition: transform 0.7s var(--ease), border-color 0.7s var(--ease), box-shadow 0.7s var(--ease), background-color 0.7s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(70% 55% at 30% 0%, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0) 70%);
  opacity: 0;
  transition: opacity 0.7s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 28px 70px -34px rgba(var(--accent-rgb), 0.5);
}

.card:hover::before {
  opacity: 1;
}

.card__icon {
  position: relative;
  width: clamp(68px, 8vw, 96px);
  height: auto;
  color: var(--line-strong);
  transition: color 0.7s var(--ease), filter 0.7s var(--ease);
}

.card:hover .card__icon {
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.45));
}

/* The line icon draws itself when its card appears */
.js .card__icon > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.7s var(--ease) calc(var(--i, 0) * 0.11s + 0.35s), opacity 0.2s linear calc(var(--i, 0) * 0.11s + 0.35s);
}

.js .rv.is-in .card__icon > * {
  stroke-dashoffset: 0;
  opacity: 1;
}

.card__title {
  position: relative;
  margin-top: auto;
  padding-top: 40px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.card__text {
  position: relative;
  max-width: 26ch;
  margin-top: 12px;
  color: var(--soft);
}

/* --------------------------------------------------------------------------
   04 Pricing: a short teaser on the home page, and the Pricing page itself
   -------------------------------------------------------------------------- */

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 7vw, 112px);
  align-items: end;
}

.pricing__side {
  display: grid;
  justify-items: start;
  gap: clamp(22px, 2.8vw, 32px);
  padding-bottom: 6px;
}

.pricing__side .section__lede {
  margin-top: 0;
}

/* The Pricing page */

.pricingpage__title {
  max-width: 13ch;
}

.pblock {
  margin-top: clamp(64px, 9vw, 128px);
}

.pblock > .rule {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.pblock__title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.steps {
  margin-top: clamp(28px, 4vw, 48px);
}

.step {
  min-height: clamp(250px, 25vw, 330px);
}

/* the thin amber number on each step */
.step__num {
  position: relative;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(3.2rem, 5.4vw, 4.75rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.step .card__text {
  max-width: 30ch;
}

.incl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(28px, 4vw, 48px);
}

.incl li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: clamp(150px, 15vw, 190px);
  padding: clamp(20px, 2.2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(var(--text-rgb), 0.022), rgba(var(--text-rgb), 0));
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 340;
  line-height: 1.18;
  transition: opacity 1.1s var(--ease) calc(var(--i, 0) * 0.11s), transform 1.3s var(--ease) calc(var(--i, 0) * 0.11s),
    border-color 0.7s var(--ease);
}

.incl li:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.incl__icon {
  flex: none;
  width: 34px;
  height: 34px;
  color: var(--accent);
}

/* each line icon draws itself as its tile fades in */
.js .incl__icon > * {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  transition: stroke-dashoffset 1.5s var(--ease) calc(var(--i, 0) * 0.11s + 0.3s), opacity 0.2s linear calc(var(--i, 0) * 0.11s + 0.3s);
}

.js .rv.is-in .incl__icon > * {
  stroke-dashoffset: 0;
  opacity: 1;
}

.pclose {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: clamp(64px, 9vw, 128px);
  padding: clamp(48px, 8vw, 104px) var(--gutter);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 8px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(var(--accent-rgb), 0.09), rgba(var(--accent-rgb), 0) 70%);
  text-align: center;
}

.pclose__title {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
}

.pclose__title span {
  display: block;
}

/* On wide screens the signature feature gets a double tile, which also fills the grid */
@media (min-width: 901px) {
  .incl li.incl__wide {
    grid-column: span 2;
  }
}

.contact-mail .btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   05 Contact: the final call to action, under a single pendant lamp.
   The whole section is one screen tall (minus the menu bar), so the lamp, the
   headline and all the buttons are visible at once. Sizes follow the height of
   the screen (svh) as well as its width.
   -------------------------------------------------------------------------- */

.final {
  --lamp: clamp(84px, 19vh, 210px);
  --lamp: clamp(84px, 19svh, 210px);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  padding-bottom: clamp(16px, 3.4vh, 44px);
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  /* the page keeps (menu bar + 16px) free above a section it jumps to; taking the 16px
     back puts this section exactly under the menu bar, so its last button is on screen */
  scroll-margin-top: -16px;
}

.final__lamp {
  display: block;
  flex: none;
  width: 120px;
  height: var(--lamp);
  margin: 0 auto;
  color: var(--accent);
  overflow: visible;
  transform-origin: 50% 0;
}

.final::before {
  content: "";
  position: absolute;
  top: calc(var(--lamp) - 28px);
  left: 50%;
  width: min(1100px, 150vw);
  height: 760px;
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 0%, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.07) 45%, rgba(var(--accent-rgb), 0) 72%);
}

/* Unlit until it scrolls into view; then it swings once, very gently, and its light comes up */
.js .final .final__lamp {
  color: var(--line-strong);
  transition: color 1.6s var(--ease) 0.5s;
}

.js .final .final__lamp .lamp-glow,
.js .final::before {
  opacity: 0;
  transition: opacity 2.4s var(--ease) 0.6s;
}

.js .final.is-in .final__lamp {
  color: var(--accent);
  animation: lamp-swing 5.5s cubic-bezier(0.37, 0, 0.63, 1) 0.2s 1 both;
}

.js .final.is-in .final__lamp .lamp-glow,
.js .final.is-in::before {
  opacity: 1;
}

@keyframes lamp-swing {
  0%   { transform: rotate(0deg); }
  14%  { transform: rotate(3.2deg); }
  34%  { transform: rotate(-2.3deg); }
  54%  { transform: rotate(1.4deg); }
  72%  { transform: rotate(-0.7deg); }
  88%  { transform: rotate(0.25deg); }
  100% { transform: rotate(0deg); }
}

.final__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: clamp(12px, 2.4vh, 28px);
}

.final .eyebrow {
  margin-bottom: clamp(10px, 2.2vh, 24px);
}

.final__title {
  max-width: 14ch;
  margin: 0 auto;
  font-size: clamp(2.5rem, min(7.2vw, 11.5vh), 6rem);
  font-size: clamp(2.5rem, min(7.2vw, 11.5svh), 6rem);
  line-height: 0.99;
  letter-spacing: -0.03em;
}

.final__actions {
  margin-top: clamp(18px, 3.6vh, 44px);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: clamp(12px, 2vh, 20px);
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.contact-mail__address {
  color: var(--soft);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}

.contact-mail__address:hover,
.contact-mail__address:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding-block: 36px 44px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 0;
}

.footer__list li + li::before {
  content: "\00B7";
  margin: 0 12px;
  color: var(--line-strong);
}

.footer__brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.0625rem;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Inner pages (Free Preview, Imprint, Privacy)
   -------------------------------------------------------------------------- */

.page {
  padding-top: calc(var(--nav-h) + clamp(56px, 9vw, 120px));
  padding-bottom: var(--section);
}

.page__title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
}

.page__lede {
  max-width: 46ch;
  margin-top: clamp(18px, 2.6vw, 28px);
  color: var(--soft);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
}

.preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  margin-top: clamp(48px, 7vw, 88px);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label,
.field .label {
  font-size: 0.9375rem;
  font-weight: 520;
}

.field .hint {
  color: var(--muted);
  font-weight: 400;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming the page on focus */
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.input:hover {
  border-color: rgba(var(--text-rgb), 0.62);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.24);
}

textarea.input {
  min-height: 132px;
  resize: vertical;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' stroke='%23F2EEE8' stroke-width='1.5'%3E%3Cpath d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

select.input option {
  background: var(--panel);
  color: var(--text);
}

.form.was-validated .input:invalid {
  border-color: #E5806A;
}

.field__error {
  display: none;
  color: #F0A08E;
  font-size: 0.875rem;
}

.form.was-validated .input:invalid ~ .field__error,
.form.was-validated .check input:invalid ~ .field__error {
  display: block;
}

.check {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 14px;
  align-items: start;
  color: var(--soft);
  font-size: 0.9375rem;
}

.check input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
}

.check .field__error {
  grid-column: 2;
}

.form__status {
  grid-column: 1 / -1;
  color: #F0A08E;
  font-size: 0.9375rem;
}

.form__status:empty {
  display: none;
}

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.success {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 0 80px -30px rgba(var(--accent-rgb), 0.6);
}

.success__title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
}

.success p + p {
  margin-top: 14px;
  color: var(--soft);
}

.aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
}

.aside__title {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
}

.aside__text {
  margin-top: 10px;
  color: var(--soft);
  font-size: 0.9375rem;
}

.aside__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.aside__actions .text-link {
  justify-self: start;
  margin-top: 8px;
}

/* Text pages */

.prose {
  max-width: 68ch;
  margin-top: clamp(40px, 6vw, 72px);
  color: var(--soft);
}

.prose h2 {
  margin-top: 2.2em;
  color: var(--text);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.prose p,
.prose ul {
  margin-top: 1em;
}

.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}

.placeholder {
  margin-top: 1.4em;
  padding: 18px 20px;
  border: 1px dashed rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Our Work pages
   -------------------------------------------------------------------------- */

.work__title,
.case__title {
  max-width: 16ch;
}

.projects {
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  margin-top: clamp(56px, 8vw, 112px);
}

.project--next {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 28px;
  padding: clamp(56px, 9vw, 128px) var(--gutter);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 8px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(var(--accent-rgb), 0.09), rgba(var(--accent-rgb), 0) 70%);
  text-align: center;
}

.case__note {
  max-width: 52ch;
  margin-top: clamp(20px, 2.8vw, 30px);
  padding-left: 18px;
  border-left: 1px solid var(--accent);
  color: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
}

.case__hero {
  margin-top: clamp(48px, 7vw, 96px);
}

.case__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(64px, 9vw, 128px);
}

.case__col .rule {
  margin-bottom: clamp(22px, 2.6vw, 32px);
}

.case__h {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.case__col p {
  margin-top: 14px;
  color: var(--soft);
}

.gallery {
  display: grid;
  gap: clamp(32px, 4.4vw, 64px);
  margin-top: clamp(64px, 9vw, 128px);
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(18px, 2.6vw, 36px);
  align-items: end;
}

/* The tall "Our Space" page next to the phone: widths chosen so both end up the same height */
.gallery__row--tall {
  grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr);
}

.shot {
  margin: 0;
}

.shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.case__demo {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 7vw, 88px);
}

.case__cta {
  margin-top: var(--section);
  padding-block: var(--section) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.case__cta .section__title {
  max-width: none;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.btn svg[stroke] {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Smaller screens
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .cards,
  .pricing__grid,
  .preview__grid,
  .steps,
  .offer__grid,
  .project,
  .case__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline,
  .offer__cta {
    grid-column: 1;
    grid-row: auto;
  }

  .card {
    min-height: 0;
  }

  .card__title {
    margin-top: 36px;
    padding-top: 0;
  }

  .aside {
    position: static;
  }

  .incl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step {
    min-height: 0;
  }

  .step .card__title {
    margin-top: 28px;
  }

  .gallery__row,
  .gallery__row--tall {
    grid-template-columns: minmax(0, 1fr);
  }

  .shot--phone {
    width: min(72%, 320px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .form {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-stack,
  .cta-stack .btn,
  .final__actions .btn,
  .contact-row .btn,
  .project__actions,
  .project__actions .btn,
  .project--next .btn,
  .case__demo .btn,
  .form .btn {
    width: 100%;
  }

  .contact-row,
  .contact-mail {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .contact-row {
    gap: 10px;
  }

  .contact-mail {
    gap: 8px;
  }

  .contact-mail__address {
    align-self: center;
    padding: 2px 0;
  }

  .final {
    --lamp: clamp(58px, 15vh, 150px);
    --lamp: clamp(58px, 15svh, 150px);
  }

  .final__title {
    font-size: clamp(2.5rem, 11.4vw, 3rem);
  }

  .final__actions {
    width: 100%;
  }

  .pricing__side .btn,
  .pclose .btn {
    width: 100%;
  }

  .incl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .incl li {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    min-height: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
  }

  .incl__icon {
    width: 28px;
    height: 28px;
  }

  .footer__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__list li + li::before {
    content: none;
  }

  .nav__brand {
    font-size: 1.25rem;
  }

  .browser__bar {
    height: 24px;
    gap: 5px;
    padding: 0 10px;
  }

  .browser__bar i {
    width: 6px;
    height: 6px;
  }

  .browser__url {
    padding: 3px 10px;
    font-size: 8px;
    transform: translateX(-16px);
  }

  .tag {
    left: 12px;
    top: -10px;
    padding: 6px 9px 5px;
    font-size: 0.625rem;
  }

}

/* Short screens (small phones, low laptop windows): the contact section still fits */
@media (max-width: 640px) and (max-height: 640px) {
  .final {
    --lamp: 72px;
  }

  .final__title {
    font-size: clamp(2rem, 9.6vw, 2.5rem);
  }

  /* WhatsApp and Email Us side by side, the address underneath */
  .contact-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .contact-mail {
    display: contents;
  }

  .contact-row .btn {
    flex: 1 1 0;
    width: auto;
    padding-inline: 12px;
  }

  .contact-mail__address {
    flex: 0 0 100%;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion: the movement is switched off, the fades stay
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, visibility !important;
    scroll-behavior: auto !important;
  }

  .js .rv,
  .js .rv.is-in,
  .js .project--teaser .project__media.rv,
  .js .project--teaser .project__media.rv.is-in,
  .menu__links li,
  .menu__cta,
  .card:hover,
  .project__media:hover .nv__page,
  .project:hover .project__media .nv__page {
    transform: none;
  }

  /* Headings fade in as a whole instead of rising line by line */
  [data-lines] .ln > span {
    transform: none;
    opacity: 0;
    transition-duration: 1.2s !important;
  }

  [data-lines].is-in .ln > span {
    opacity: 1;
  }

  .js [data-lines]:not(.is-split) {
    visibility: visible;
  }

  .js .rule::after {
    transform: none;
    opacity: 0;
    transition-duration: 1.4s !important;
  }

  .js .rule.is-in::after {
    opacity: 1;
  }

  .timeline {
    --fill: 1 !important;
  }

  .js .card__icon > *,
  .js .incl__icon > * {
    stroke-dashoffset: 0;
  }
}
