/* ==========================================================================
   dvelop42 — "The Fold"
   The page behaves like a foldable screen: the hero unfolds once, a hinge
   splits wide layouts into two panels, and display type gets wider as the
   screen does (condensed when folded, extended when open).
   ========================================================================== */

/* ---------- Fonts (self-hosted: no third-party requests) ---------- */
@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The unfold intro animates this number from 1 (closed) to 0 (flat). */
@property --fold-in {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces and ink */
  --fog: #E8EBEF;
  --ink: #0D1733;
  --ink-2: #434D69;
  --ink-3: #5D6680;
  --line: rgb(13 23 51 / 0.14);
  --sheet: #0D1733;
  --cream: #F4F1E6;
  --cream-2: rgb(244 241 230 / 0.74);
  --cream-3: rgb(244 241 230 / 0.52);
  --cream-line: rgb(244 241 230 / 0.14);

  /* App colors, sampled from each app icon */
  --couponkit: #103F98;
  --lento: #336654;
  --seilo: #0F5470;
  --samedrive: #2458D6;

  /* Type */
  --display: "Anybody", "Arial Black", Impact, sans-serif;
  --text: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* Width factor: 0 on narrow (folded) screens, 1 on wide (open) ones. JS refines it. */
  --t: 0;
  --wm-w: calc(58 + 92 * var(--t));       /* wordmark width axis, 58–150 */
  --display-w: calc(80 + 50 * var(--t));  /* heading width axis, 80–130 */

  /* Spacing */
  --outer: clamp(20px, 5.6vw, 104px);
  --inner: clamp(24px, 4.4vw, 84px);

  color-scheme: light;
}
@media (min-width: 600px)  { :root { --t: 0.35; } }
@media (min-width: 860px)  { :root { --t: 0.6; } }
@media (min-width: 1280px) { :root { --t: 1; } }

@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0A1022;
    --ink: #E9ECF3;
    --ink-2: #B2B9CB;
    --ink-3: #828BA4;
    --line: rgb(233 236 243 / 0.13);
    --sheet: #121D44;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(16px, 0.2vw + 15px, 17.5px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--samedrive); color: #fff; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--cream);
  color: #0D1733;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ==========================================================================
   The crease: a hinge line down the middle of wide layouts
   ========================================================================== */
.crease { display: none; }

@media (min-width: 860px) {
  .crease {
    display: block;
    position: fixed;
    z-index: 5;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 40px;
    margin-left: -20px;
    pointer-events: none;
    background: linear-gradient(90deg,
      transparent 0,
      rgb(13 23 51 / 0.035) 15px,
      rgb(13 23 51 / 0.13) 19.5px,
      rgb(255 255 255 / 0.42) 20px,
      rgb(255 255 255 / 0.42) 21px,
      rgb(255 255 255 / 0.05) 25px,
      transparent 40px);
  }
}
@media (min-width: 860px) and (prefers-color-scheme: dark) {
  .crease {
    background: linear-gradient(90deg,
      transparent 0,
      rgb(0 0 0 / 0.12) 15px,
      rgb(0 0 0 / 0.5) 19.5px,
      rgb(255 255 255 / 0.07) 20px,
      rgb(255 255 255 / 0.07) 21px,
      transparent 26px);
  }
}

/* ==========================================================================
   Hero: the sheet
   ========================================================================== */
.hero {
  --fold-scroll: 0;
  --f: min(1, var(--fold-in) + var(--fold-scroll));
  --angle: calc(var(--f) * 80deg);
  --wm-size: 13vw;
  --wm-reserve: calc(var(--wm-size) * 0.86 + clamp(28px, 6vh, 72px));

  position: relative;
  z-index: 6;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  perspective: 2400px;
  perspective-origin: 50% 42%;
  background: var(--fog);
  color: var(--cream);
}

.js .hero { --fold-in: 1; }
.js.is-ready .hero { animation: unfold 1900ms 60ms both; }

@keyframes unfold {
  0%   { --fold-in: 1;      animation-timing-function: cubic-bezier(0.5, 0, 0.18, 1); }
  74%  { --fold-in: -0.03;  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  100% { --fold-in: 0; }
}

.sheet {
  position: absolute;
  inset: 0;
  z-index: 1;
  transform-style: preserve-3d;
  transform:
    translateZ(calc(sin(var(--angle)) * -50vw))
    rotateX(calc(var(--f) * 10deg))
    scale(calc(1 - 0.4 * var(--f)));
}

.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
  background: var(--sheet);
  backface-visibility: hidden;
}
.panel--a { left: 0;  transform-origin: 100% 50%; transform: rotateY(var(--angle)); }
.panel--b { right: 0; transform-origin: 0 50%;    transform: rotateY(calc(var(--angle) * -1)); }

/* Once the sheet lies flat, drop the 3D transforms so text renders crisply. */
.hero.is-flat .sheet,
.hero.is-flat .panel { transform: none; }

/* The crease on the sheet itself: a dark edge meets a light edge. */
.panel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  pointer-events: none;
}
.panel--a::after { right: 0; background: rgb(0 0 0 / 0.45); }
.panel--b::after { left: 0;  background: rgb(255 255 255 / 0.1); }

/* Light falls from the upper left: the left panel turns away from it, the right panel faces it. */
.panel__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: clamp(0.07, var(--f) * 1.5, 1);
}
.panel--a .panel__shade {
  background: linear-gradient(to left, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.3) 30%, rgb(0 0 0 / 0.18));
}
.panel--b .panel__shade {
  background: linear-gradient(to right, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.08) 35%, rgb(255 255 255 / 0.07));
}

.hero__floor {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 80%;
  width: 52%;
  height: 16%;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(13 23 51 / 0.34), rgb(13 23 51 / 0.12) 55%, transparent);
  opacity: clamp(0, var(--fold-in) * 1.4, 1);
  pointer-events: none;
}

/* ---------- Content on the sheet ---------- */
.panel__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 3.4vh, 36px) var(--outer) var(--wm-reserve);
}
.panel--a .panel__content { padding-right: var(--inner); }
.panel--b .panel__content { padding-left: var(--inner); }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}
.bar--end { justify-content: flex-end; }

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav { display: flex; gap: clamp(18px, 2.2vw, 36px); font-size: 15px; }
.nav a {
  color: var(--cream-2);
  text-decoration: none;
  padding-block: 10px;
}
.nav a:hover { color: var(--cream); }
.nav--compact { display: none; }

.intro { margin-block: auto; max-width: clamp(31rem, 34vw, 40rem); }
.intro__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: calc((84 + 28 * var(--t)) * 1%);
  font-size: clamp(31px, 2.3vw + 12px, 68px);
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.intro__lede {
  margin: 1.1em 0 0;
  max-width: 30em;
  font-size: clamp(15.5px, 0.35vw + 13.5px, 20px);
  line-height: 1.55;
  color: var(--cream-2);
}

.lineup {
  list-style: none;
  margin: auto 0;
  padding: 0;
  max-width: 27rem;
  display: grid;
  gap: 2px;
}
.lineup a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  text-decoration: none;
}
.lineup img,
.lineup .waffle-glyph {
  width: 48px;
  height: 48px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 10px 22px -10px rgb(0 0 0 / 0.7);
}
.lineup b {
  display: block;
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.3;
}
.lineup b + span {
  display: block;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--cream-3);
}
.lineup a:hover b { text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 1600px) {
  .lineup { max-width: 31rem; gap: 6px; }
  .lineup a { grid-template-columns: 56px 1fr; gap: 18px; }
  .lineup img, .lineup .waffle-glyph { width: 56px; height: 56px; }
  .lineup b { font-size: 18px; }
  .lineup b + span { font-size: 15.5px; }
  .nav { font-size: 16px; }
  .brand { font-size: 21px; }
}

/* A placeholder mark for the app that is still in development */
.waffle-glyph {
  display: block;
  position: relative;
  border-radius: 22.5%;
  color: inherit;
  background:
    repeating-linear-gradient(90deg, transparent 0 22%, color-mix(in srgb, currentColor 22%, transparent) 22% 26%),
    repeating-linear-gradient(0deg, transparent 0 22%, color-mix(in srgb, currentColor 22%, transparent) 22% 26%);
  outline: 1.5px dashed color-mix(in srgb, currentColor 45%, transparent);
  outline-offset: -1.5px;
}
.lineup .waffle-glyph { box-shadow: none; }

/* ---------- The wordmark, printed across both panels ---------- */
.wordmark,
.wordmark-probe {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.012em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark {
  position: absolute;
  left: 0;
  width: 200%;
  bottom: calc(var(--wm-size) * -0.06 + clamp(16px, 3.2vh, 40px));
  text-align: center;
  font-size: var(--wm-size);
  font-stretch: calc((var(--wm-w) - (var(--wm-w) - 50) * clamp(0, var(--f), 1)) * 1%);
  color: var(--cream);
  pointer-events: none;
  user-select: none;
}
.panel--b .wordmark { left: -100%; }

.wordmark-probe {
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  pointer-events: none;
  font-size: 100px;
  font-stretch: calc(var(--wm-w) * 1%);
}

/* ---------- Narrow screens: the hinge turns horizontal, like a flip phone ---------- */
@media (max-width: 859.98px) {
  .hero {
    --wm-reserve: 0px;
    min-height: 600px;
  }
  .sheet {
    transform:
      translateZ(calc(sin(var(--angle)) * -50svh))
      rotateY(calc(var(--f) * -10deg))
      scale(calc(1 - 0.26 * var(--f)));
  }
  .panel {
    left: 0;
    right: 0;
    width: auto;
    height: 50%;
  }
  .panel--a { top: 0; bottom: auto; transform-origin: 50% 100%; transform: rotateX(calc(var(--angle) * -1)); }
  .panel--b { top: auto; bottom: 0; transform-origin: 50% 0;    transform: rotateX(var(--angle)); }

  .panel::after { top: auto; bottom: auto; left: 0; right: 0; width: auto; height: 1px; }
  .panel--a::after { bottom: 0; }
  .panel--b::after { top: 0; }

  .panel--a .panel__shade {
    background: linear-gradient(to top, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0.24) 35%, rgb(0 0 0 / 0.12));
  }
  .panel--b .panel__shade {
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.5), rgb(0 0 0 / 0.1) 40%, rgb(255 255 255 / 0.05));
  }

  .panel__content,
  .panel--a .panel__content,
  .panel--b .panel__content {
    padding: 12px var(--outer) 26px;
  }
  .panel--b .panel__content { padding-top: 26px; }

  .nav--compact { display: flex; gap: 18px; font-size: 14.5px; }
  .nav--wide { display: none; }
  .bar--end { display: none; }

  .intro { margin-block: auto 0; }

  .lineup {
    margin: 0;
    max-width: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }
  .lineup a {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
    padding: 0;
    text-align: center;
  }
  .lineup img,
  .lineup .waffle-glyph { width: min(clamp(52px, 9.4vw, 80px), 100%); height: auto; aspect-ratio: 1; }
  .lineup b { font-size: clamp(12px, 1.4vw + 7px, 15px); font-weight: 500; line-height: 1.25; }
  .lineup b + span { display: none; }

  .panel--a .wordmark { display: none; }
  .panel--b .wordmark { left: 0; width: 100%; }

  .hero__floor { top: 60%; width: 74%; height: 9%; }
}

/* ==========================================================================
   Page sections
   ========================================================================== */
main { position: relative; }

.half { padding-inline: var(--outer); }

@media (min-width: 860px) {
  .section-head,
  .soon,
  .approach,
  .contact,
  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .half--a { padding-right: var(--inner); }
  .half--b { padding-left: var(--inner); }
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  font-stretch: calc(var(--display-w) * 1%);
  font-size: clamp(46px, 6.2vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.022em;
}

/* ---------- Section head ---------- */
.section-head {
  padding-block: clamp(96px, 15vh, 176px) clamp(48px, 7vh, 88px);
  align-items: end;
}
.section-head__text {
  margin: 24px 0 0;
  max-width: 27em;
  font-size: clamp(17px, 0.45vw + 14.5px, 21px);
  line-height: 1.5;
  color: var(--ink-2);
}
@media (min-width: 860px) {
  .section-head__text { margin: 0; }
}

/* ---------- App spreads ---------- */
#couponkit { --app: var(--couponkit); }
#lento     { --app: var(--lento); }
#seilo     { --app: var(--seilo); }
#samedrive { --app: var(--samedrive); }

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "plate" "body";
}
.plate { grid-area: plate; position: relative; overflow: hidden; overflow: clip; background: var(--app); }
.spread__head { grid-area: head; padding: 72px var(--outer) 28px; }
.spread__body { grid-area: body; padding: 36px var(--outer) 88px; }

@media (min-width: 860px) {
  .spread {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    grid-template-areas: "plate head" "plate body";
    min-height: clamp(780px, 100svh, 1040px);
  }
  .spread--flip { grid-template-areas: "head plate" "body plate"; }

  .spread__head { padding: clamp(80px, 11vh, 136px) var(--outer) 0 var(--inner); }
  .spread__body { padding: 40px var(--outer) clamp(80px, 11vh, 136px) var(--inner); }
  .spread--flip .spread__head { padding-left: var(--outer); padding-right: var(--inner); }
  .spread--flip .spread__body { padding-left: var(--outer); padding-right: var(--inner); }
}

.app-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border-radius: 22.5%;
  box-shadow: 0 14px 28px -16px rgb(13 23 51 / 0.55);
}

.app-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 760;
  font-stretch: calc(var(--display-w) * 1%);
  font-size: clamp(44px, 4.7vw, 86px);
  line-height: 0.92;
  letter-spacing: -0.022em;
}
.kicker {
  margin: 14px 0 0;
  font-size: clamp(18px, 0.5vw + 14.5px, 22px);
  line-height: 1.35;
  color: var(--ink-2);
}

.lede {
  margin: 0;
  max-width: 33em;
  font-size: clamp(17px, 0.25vw + 15px, 19px);
  line-height: 1.55;
}
.points {
  display: grid;
  gap: 10px;
  max-width: 33em;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}
.points li { position: relative; padding-left: 22px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--app);
}
@media (prefers-color-scheme: dark) {
  .points li::before { background: color-mix(in srgb, var(--app) 60%, white); }
}

.facts {
  max-width: 33em;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { color: var(--ink-3); font-size: 14.5px; line-height: 1.6; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.5; }

.get {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.badge { display: block; border-radius: 9px; }
.badge img { height: 44px; width: auto; }

/* A link to an app's own site, drawn as that app's address bar */
.site-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  margin-top: 22px;
  padding: 0 18px 0 15px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 10px 24px -14px rgb(13 23 51 / 0.45);
  color: var(--ink);
  font-size: 15px;
  font-weight: 560;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, translate 0.2s ease;
}
.site-capsule svg { width: 13px; height: 13px; color: var(--app); }
.site-capsule:hover {
  background: #FFFFFF;
  translate: 0 -1px;
  box-shadow: inset 0 1px 0 #FFFFFF, 0 14px 28px -14px rgb(13 23 51 / 0.5);
}
@media (prefers-color-scheme: dark) {
  .site-capsule {
    background: rgb(255 255 255 / 0.07);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12), 0 10px 24px -14px rgb(0 0 0 / 0.6);
  }
  .site-capsule svg { color: color-mix(in srgb, var(--app) 55%, white); }
  .site-capsule:hover { background: rgb(255 255 255 / 0.12); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), 0 14px 28px -14px rgb(0 0 0 / 0.7); }
}

.more {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin: 20px 0 0;
  font-size: 15px;
}
.more a { color: var(--ink-2); padding-block: 6px; }
.more a:hover { color: var(--ink); }

.note {
  max-width: 33em;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ---------- Screenshots on the plate ---------- */
.shots {
  display: flex;
  gap: clamp(14px, 1.4vw, 24px);
}
.shots img {
  flex: none;
  width: auto;
  border-radius: 7.5% / 3.45%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.08),
    0 40px 70px -34px rgb(0 0 0 / 0.65);
}
.shots img.is-wide { border-radius: 3.4% / 4.5%; }

@media (min-width: 860px) {
  /* The strip hugs the hinge and runs off the outer edge; it stays in view while the text scrolls. */
  .plate {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-inline: var(--inner);
  }
  .spread--flip .plate { justify-content: flex-start; }
  .shots {
    position: sticky;
    top: max(6vh, calc(50vh - 390px));
    flex: none;
    flex-direction: row-reverse;
    align-items: center;
    height: min(76vh, 780px);
    margin-block: clamp(64px, 12vh, 136px);
  }
  .spread--flip .shots { flex-direction: row; }
  .shots img { height: 100%; }
  .shots img.is-wide { height: 58%; }
}

@media (max-width: 859.98px) {
  .plate { padding-block: 32px; }
  .shots {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-inline: var(--outer);
    scroll-padding-inline: var(--outer);
    scrollbar-width: none;
    align-items: center;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots img { height: min(66svh, 560px); scroll-snap-align: start; }
  .shots img.is-wide { height: min(36svh, 300px); }
  .shots:focus-visible { outline-offset: -4px; }
}

/* ---------- In development ---------- */
.soon {
  padding-block: clamp(80px, 13vh, 150px);
  align-items: center;
}
.soon .half--a { display: flex; }
.waffle-glyph--large { width: 112px; height: 112px; color: var(--ink-3); }
@media (min-width: 860px) {
  .soon .half--a { justify-content: flex-end; }
}
@media (max-width: 859.98px) {
  .soon .half--a { margin-bottom: 28px; }
  .waffle-glyph--large { width: 80px; height: 80px; }
}
.soon__status {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-3);
}
.app-name--small { font-size: clamp(36px, 3.4vw, 60px); }
.soon__text {
  max-width: 30em;
  margin: 16px 0 0;
  font-size: clamp(17px, 0.25vw + 15px, 19px);
  color: var(--ink-2);
}

/* ---------- Approach ---------- */
.approach {
  padding-block: clamp(96px, 15vh, 190px);
  border-top: 1px solid var(--line);
}
.approach__about {
  max-width: 29em;
  margin: 32px 0 0;
  font-size: clamp(17px, 0.3vw + 15px, 19px);
  color: var(--ink-2);
}
@media (min-width: 860px) {
  .approach__aside { position: sticky; top: clamp(40px, 12vh, 140px); }
}
@media (max-width: 859.98px) {
  .approach .half--b { margin-top: 56px; }
}

.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.principles li:last-child { border-bottom: 1px solid var(--line); }
.principles h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: calc((88 + 26 * var(--t)) * 1%);
  font-size: clamp(22px, 1.1vw + 14px, 30px);
  line-height: 1.12;
  letter-spacing: -0.012em;
}
.principles p {
  max-width: 33em;
  margin: 10px 0 0;
  color: var(--ink-2);
}

/* ---------- Contact: the back cover ---------- */
.contact,
.footer {
  background: var(--sheet);
  color: var(--cream);
}
.contact { padding-block: clamp(96px, 15vh, 190px) clamp(72px, 11vh, 128px); }
.contact__text {
  max-width: 29em;
  margin: 32px 0 0;
  font-size: clamp(17px, 0.3vw + 15px, 19px);
  color: var(--cream-2);
}
@media (max-width: 859.98px) {
  .contact .half--b { margin-top: 56px; }
}

.contact .half--b { container-type: inline-size; }
.email {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cream-line);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: calc((80 + 20 * var(--t)) * 1%);
  font-size: clamp(22px, 7.6cqi, 50px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.email:hover { border-bottom-color: var(--cream); }

.support-index {
  width: 100%;
  max-width: 33em;
  margin-top: 52px;
  border-collapse: collapse;
  font-size: 15px;
}
.support-index caption {
  padding-bottom: 12px;
  text-align: left;
  font-size: 14.5px;
  color: var(--cream-3);
}
.support-index tr { border-top: 1px solid var(--cream-line); }
.support-index tr:last-child { border-bottom: 1px solid var(--cream-line); }
.support-index th,
.support-index td { padding: 11px 16px 11px 0; text-align: left; vertical-align: baseline; }
.support-index th { font-weight: 600; }
.support-index a { color: var(--cream-2); }
.support-index a:hover { color: var(--cream); }

.footer {
  padding-block: 36px calc(44px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--cream-line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--cream-3);
}
.footer p { margin: 0 0 8px; max-width: 40em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer__links a { color: var(--cream-2); }
.footer__legal { font-size: 12px; color: rgb(244 241 230 / 0.5); }
@media (max-width: 859.98px) {
  .footer .half--b { margin-top: 16px; }
}

/* ---------- Width changes animate (e.g. unfolding a real foldable) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .display,
  .app-name,
  .intro__title,
  .principles h3,
  .email { transition: font-stretch 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

/* ---------- Reduced motion: the sheet starts flat and stays flat ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero { --fold-in: 0; }
  .js.is-ready .hero { animation: none; }
}
