/* Longest Labs, 2026-11-25 (v9, 2026-11-26: the five steps on the home page). The site around the demo (the demo page keeps site.v7.css).
   Direction: a photo studio and a closet. Cool stone paper, ink, one pine green, used as
   full-width blocks of colour. Titles in Hoefler Text, the app's own title face; text in the
   system sans. Two families, three text sizes under the first screen.
   No script, no web font, no inline style: the site's Content-Security-Policy refuses them.
   One set of tokens, two sets of values (light, dark by the visitor's system setting).
   No colour below the two token blocks is written as a literal. */
:root {
  color-scheme: light dark;
  --page: #eeeeea;
  --surface: #e2e2dd;
  --paper: #f8f8f5;
  --fg: #14181a;
  --muted: #555b5e;
  --rule: rgba(20, 24, 26, 0.16);
  --accent: #0a6650;
  --block: #0c3a2f;
  --block-deep: #082a22;
  --on-block: #f2f5f2;
  --on-block-muted: #b9cec6;
  --block-rule: rgba(242, 245, 242, 0.2);
  --block-mark: rgba(242, 245, 242, 0.055);
  --btn: #14181a;
  --on-btn: #f2f5f2;
  --shot-edge: rgba(20, 24, 26, 0.14);
  --shot-shadow: 0 36px 70px -34px rgba(20, 24, 26, 0.5), 0 2px 10px rgba(20, 24, 26, 0.08);

  --display: "Hoefler Text", ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* The three sizes. The first screen's h1 and the brand are the only others. */
  --t-head: clamp(2rem, 4.4vw, 3.5rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --wide: 90rem;
  /* The left and right edge of everything: the gutter, or more once the screen is wider than --wide. */
  --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  --band: clamp(4.5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b0e0d;
    --surface: #141918;
    --paper: #e9e9e5;
    --fg: #eceeec;
    --muted: #a0a9a5;
    --rule: rgba(236, 238, 236, 0.16);
    --accent: #58d3ae;
    --block: #0f3a30;
    --block-deep: #0a2a22;
    --btn: #eceeec;
    --on-btn: #0b0e0d;
    --shot-edge: rgba(236, 238, 236, 0.16);
    --shot-shadow: 0 36px 70px -30px rgba(0, 0, 0, 0.9);
  }
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--page);
  color: var(--fg);
  font: var(--t-body)/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
p, ul, ol { margin: 0 0 0.9rem; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 600; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-head); font-weight: 600; line-height: 1.04; letter-spacing: -0.025em; }
h3 { font-size: var(--t-body); font-weight: 700; line-height: 1.3; }
.wordmark { font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: -0.03em; }
.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Top bar: one line on a desktop, the brand heavier than the links. */
header.site {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem 2rem;
  padding: 1.35rem var(--edge) 1.1rem;
}
.over header.site { position: absolute; top: 0; left: 0; z-index: 3; }
.mark { font: 700 1.375rem/1 var(--display); letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
header.site nav { display: flex; flex-wrap: wrap; gap: 0.3rem clamp(0.85rem, 2.4vw, 2rem); font-size: var(--t-small); }
header.site nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; transition: color 0.18s var(--ease); }
header.site nav a:hover, header.site nav a[aria-current] { color: var(--fg); }
header.site nav a[aria-current] { box-shadow: 0 1px 0 currentColor; }
.on-block header.site .mark, .on-block header.site nav a:hover, .on-block header.site nav a[aria-current] { color: var(--on-block); }
.on-block header.site nav a { color: var(--on-block-muted); }

/* The one button a section gets. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--btn);
  color: var(--on-btn);
  font: 600 var(--t-body)/1 var(--text);
  text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.block .btn, .poster .btn { background: var(--on-block); color: var(--block-deep); }

/* Blocks of pine, edge to edge. */
.block, .poster { background: var(--block); color: var(--on-block); }
.block a, .poster a { color: var(--on-block); }
.block p, .poster p { color: var(--on-block-muted); }

/* ---------- Home and 404: a poster ---------- */
.poster {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100vh, 60rem);
  min-height: min(100svh, 60rem);
  padding: 8rem var(--edge) clamp(2.5rem, 6vw, 4.5rem);
}
/* The studio's mark, as tall as the poster, running off its right edge. */
.poster::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: -6vh;
  width: 62vh;
  height: 62vh;
  max-width: 70vw;
  background: var(--block-mark);
  -webkit-mask: url(/assets/l-mark.v1.svg) center / 100% 100% no-repeat;
  mask: url(/assets/l-mark.v1.svg) center / 100% 100% no-repeat;
}
.poster > * { position: relative; }
@media (max-width: 44rem) {
  /* On a phone the words are at the foot; the mark takes the open space above them. */
  .poster { min-height: min(86vh, 60rem); min-height: min(86svh, 60rem); }
  .poster::before { top: 6.5rem; bottom: auto; right: -12vw; width: 64vw; height: 64vw; max-width: none; }
  .poster.small::before { display: none; }
}
.poster h1 {
  font-size: clamp(4.25rem, min(21.5vw, 36vh), 21rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.045em;
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.75rem) -0.04em;
}
.poster h1 span { display: block; }
.poster p { font-size: var(--t-body); max-width: 34ch; margin: 0 0 1.75rem; }
.poster.small { min-height: 0; flex: 1; }
.poster.small h1 { font-size: clamp(3.5rem, 15vw, 12rem); }
body.fill main { display: flex; flex-direction: column; }

/* Home, under the poster: Wardro, with four of its try-ons. */
.product { padding: var(--band) 0; }
.product-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.product-head h2 { font-size: clamp(4rem, 15vw, 13rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.04em; margin-left: -0.05em; }
.product-head p { color: var(--muted); max-width: 30ch; margin-bottom: 1.25rem; }
.lineup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.4vw, 1.25rem); }
.lineup img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); }
.lineup img:nth-child(even) { margin-top: clamp(1.25rem, 4vw, 4rem); }
@media (max-width: 40rem) {
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lineup img:nth-child(even) { margin-top: 2rem; }
}

/* The app in five steps: a garment photographed, cut out, prettified, styled, worn.
   A real sequence, so it is a numbered list. */
.flow { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(0.5rem, 1.2vw, 1.25rem); margin: 0 0 var(--band); padding: 0; }
.flow li { counter-increment: step; margin: 0; }
.flow .tile { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); margin-bottom: 1rem; }
.flow div.tile { display: grid; align-content: center; justify-items: center; background: var(--paper); padding: 9%; gap: 4%; }
.flow .tile.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.flow .tile.four img { width: 100%; aspect-ratio: 1; object-fit: contain; }
/* Two tiles that change: the photo's background goes (cut out), then the wrinkled cut-out
   becomes the tidy one (Prettify). Each holds two pictures, one over the other; .was is the
   earlier state and is wiped away from the left. At rest, and with reduced motion, .was is
   not shown: the tile is its result. */
.flow .tile.lift, .flow .tile.pretty { position: relative; display: block; padding: 0; overflow: hidden; }
.flow .tile.lift img, .flow .tile.pretty img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.flow .tile.pretty .ideal { object-fit: contain; padding: 11%; }
.flow .tile.pretty .was { background: var(--paper); }
.flow .was { clip-path: inset(0 0 0 100%); }
.flow .tile.lift::after, .flow .tile.pretty::after { content: ""; position: absolute; inset: 0; border-left: 2px solid var(--accent); opacity: 0; }
.flow h3::before { content: counter(step) "\2002"; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.flow h3 { margin-bottom: 0.25rem; }
.flow .star h3 { color: var(--accent); }
.flow p { color: var(--muted); margin: 0; max-width: 26ch; }
.lineup-note { color: var(--muted); max-width: 40ch; margin: 0 0 1.5rem; }
@media (max-width: 56rem) {
  /* Phones and narrow windows: two columns, Prettify across both. */
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .flow .star { grid-column: 1 / -1; }
  .flow .star .tile { aspect-ratio: 5 / 4; }
  .flow .star p { max-width: 36ch; }
}

/* ---------- Wardro: the name, with the closet hung in front of it ---------- */
.rail {
  overflow: hidden;
  text-align: center;
  padding: clamp(6.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}
.rail h1 {
  font-size: clamp(5.5rem, min(27vw, 44vh), 27rem);
  line-height: 0.8;
  margin: 0;
  padding-right: 0.06em;
}
.hung {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.25rem, 1vw, 1rem);
  padding: 0 var(--gutter);
  margin-top: calc(-1 * clamp(1.1rem, 5.5vw, 5.5rem));
  position: relative;
  z-index: 1;
}
.hung img {
  flex: 0 1 13.5%;
  min-width: 0;
  width: 13.5%;
  aspect-ratio: 942 / 960;
  object-fit: contain;
  object-position: top;
  transition: transform 0.24s var(--ease);
}
.hung img:hover { transform: translateY(-0.6rem); }
.rail p { max-width: 36ch; margin: clamp(1.25rem, 3vw, 2.25rem) auto 1.75rem; padding: 0 var(--gutter); color: var(--muted); }
@media (max-width: 44rem) {
  .hung img { flex-basis: 24%; width: 24%; }
  .hung img:nth-child(n + 5) { display: none; }
  .rail { padding-top: 7.75rem; }
}

/* A section of words beside a picture of the app. Not half and half: 5 to 7. */
.band { padding: var(--band) 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.split .copy > p { color: var(--muted); max-width: 40ch; }
.split h2 { margin-bottom: 1.1rem; max-width: 12ch; }
.aside { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); max-width: 40ch; }
.aside h3 { margin-bottom: 0.3rem; }
.aside p { color: var(--muted); margin: 0; }
.phone { justify-self: center; width: min(100%, 21rem); }
.phone img { width: 100%; border-radius: 2.25rem; border: 1px solid var(--shot-edge); box-shadow: var(--shot-shadow); }
@media (min-width: 52rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; }
  .split.flip .copy { order: 2; }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}
.band.tint { background: var(--surface); }

/* Try-on, on pine: the pieces, then the picture of them worn. */
.worn-head { display: grid; gap: 1rem 4rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.worn-head p { max-width: 36ch; margin: 0; }
@media (min-width: 52rem) { .worn-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
@media (min-width: 60rem) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pair { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(0.5rem, 1.2vw, 1rem); }
.pieces {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 4%;
  padding: 7%;
  aspect-ratio: 3 / 4;
  border-radius: clamp(0.75rem, 1.6vw, 1.5rem);
  background: var(--paper);
}
.pieces img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pair > img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: clamp(0.75rem, 1.6vw, 1.5rem); }
.pair figcaption { grid-column: 1 / -1; font-size: var(--t-small); color: var(--on-block-muted); }
.block .aside { border-top-color: var(--block-rule); margin-top: clamp(2.5rem, 6vw, 4rem); }
.block .aside h3 { color: var(--on-block); }
.block .aside p { color: var(--on-block-muted); }

/* Plans: a real table. */
.plans { display: grid; gap: 2rem 4rem; }
.plans h2 { max-width: 12ch; margin-bottom: 1.1rem; }
.plans p { color: var(--muted); max-width: 40ch; }
@media (min-width: 52rem) { .plans { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; } }
.plans table { font-size: var(--t-body); font-variant-numeric: tabular-nums; }
.plans th, .plans td { padding: 0.9rem 1.5rem 0.9rem 0; border-top: 1px solid var(--rule); }
.plans thead th { border-top: 0; color: var(--muted); font-weight: 400; font-size: var(--t-small); }
.plans tbody th { font: 700 var(--t-body)/1.3 var(--display); width: auto; }
.plans tr > :last-child { padding-right: 0; }

/* The last call: the demo closet. */
.closing { text-align: center; padding: var(--band) 0 0; overflow: hidden; }
.closing h2 { max-width: 14ch; margin: 0 auto 1rem; }
.closing p { margin: 0 auto 1.75rem; max-width: 36ch; }
.shelf { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.25rem, 1vw, 1rem); margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: 0 var(--gutter); }
.shelf img { flex: 0 1 9.5%; width: 9.5%; min-width: 0; aspect-ratio: 1; object-fit: contain; object-position: bottom; }
.shelf-floor { background: var(--block-deep); height: clamp(2rem, 5vw, 4rem); margin-top: -1px; }
.block.closing .shelf { background: linear-gradient(to top, var(--block-deep) 22%, transparent 22%); padding-bottom: 0; }
@media (max-width: 44rem) {
  .shelf img { flex-basis: 19%; width: 19%; }
  .shelf img:nth-child(n + 6) { display: none; }
}

/* ---------- Documents: support, privacy, terms. No hero; the page is the document. ---------- */
main.doc { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter) var(--band); }
main.doc > h1 {
  font-size: clamp(3.25rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: clamp(2rem, 6vw, 4.5rem) 0 1rem -0.04em;
}
main.doc > .meta, main.doc > .lede { color: var(--muted); margin: 0 0 clamp(2.5rem, 6vw, 4.5rem); }
main.doc section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem 3rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}
main.doc section > h2 { font-size: var(--t-body); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
main.doc section > div { max-width: 65ch; }
main.doc section > div.wide { max-width: none; }
main.doc section > div.wide > p { max-width: 65ch; }
main.doc section > div > :last-child { margin-bottom: 0; }
@media (min-width: 52rem) {
  main.doc section { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); padding: 2.25rem 0; }
  main.doc section > h2 { position: sticky; top: 1.5rem; align-self: start; }
}
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-small); }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 1.5rem 0.7rem 0; border-top: 1px solid var(--rule); }
main.doc tr:first-child > * { border-top: 0; padding-top: 0; }
th { font-weight: 600; }
main.doc tbody th { width: 28%; }
main.doc thead th { color: var(--muted); font-weight: 400; }

/* ---------- Foot ---------- */
footer.site { background: var(--block-deep); color: var(--on-block-muted); font-size: var(--t-small); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 3rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: calc(clamp(2rem, 5vw, 3.5rem) + env(safe-area-inset-bottom, 0px)); }
footer.site .mark { color: var(--on-block); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.4rem clamp(0.85rem, 2.4vw, 2rem); }
footer.site a { color: var(--on-block-muted); text-decoration: none; transition: color 0.18s var(--ease); }
footer.site a:hover { color: var(--on-block); }
footer.site .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--block-rule); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* The first screen arrives once. Nothing waits at opacity 0: with no animation, it is all there. */
  @keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
  @keyframes hang { from { opacity: 0; transform: translateY(-2.5rem); } to { opacity: 1; transform: none; } }
  .poster h1 span, .poster p, .poster .btn, .rail h1, .rail p, .rail .btn, main.doc > h1, main.doc > .meta, main.doc > .lede { animation: rise 0.8s var(--ease) backwards; }
  .poster h1 span:nth-child(2) { animation-delay: 0.07s; }
  .poster p, main.doc > .meta, main.doc > .lede { animation-delay: 0.14s; }
  .poster .btn { animation-delay: 0.2s; }
  .rail p { animation-delay: 0.5s; }
  .rail .btn { animation-delay: 0.56s; }
  .hung img { animation: hang 0.7s var(--ease) backwards; }
  .hung img:nth-child(1) { animation-delay: 0.12s; }
  .hung img:nth-child(2) { animation-delay: 0.17s; }
  .hung img:nth-child(3) { animation-delay: 0.22s; }
  .hung img:nth-child(4) { animation-delay: 0.27s; }
  .hung img:nth-child(5) { animation-delay: 0.32s; }
  .hung img:nth-child(6) { animation-delay: 0.37s; }
  .hung img:nth-child(7) { animation-delay: 0.42s; }

  /* The two changing tiles, one loop of 9 s: the photo's background is wiped away, then the
     wrinkled cut-out is wiped into the prettified one, then both rest before the next round. */
  @keyframes wipe-lift { 0%, 12% { clip-path: inset(0 0 0 0); } 30%, 100% { clip-path: inset(0 0 0 100%); } }
  @keyframes wipe-pretty { 0%, 40% { clip-path: inset(0 0 0 0); } 58%, 100% { clip-path: inset(0 0 0 100%); } }
  @keyframes edge-lift { 0%, 12% { transform: none; opacity: 0; } 13% { opacity: 1; } 29% { opacity: 1; } 30%, 100% { transform: translateX(100%); opacity: 0; } }
  @keyframes edge-pretty { 0%, 40% { transform: none; opacity: 0; } 41% { opacity: 1; } 57% { opacity: 1; } 58%, 100% { transform: translateX(100%); opacity: 0; } }
  .flow .tile.lift .was { animation: wipe-lift 9s var(--ease) infinite; }
  .flow .tile.pretty .was { animation: wipe-pretty 9s var(--ease) infinite; }
  .flow .tile.lift::after { animation: edge-lift 9s var(--ease) infinite; }
  .flow .tile.pretty::after { animation: edge-pretty 9s var(--ease) infinite; }

  /* Tied to the scroll where the browser can do it without script. Position only, never opacity,
     so a browser that does not run these shows the same page, at rest. */
  @supports (animation-timeline: view()) {
    @keyframes settle { from { transform: translateY(2rem); } to { transform: none; } }
    @keyframes settle-late { from { transform: translateY(3.75rem); } to { transform: none; } }
    .phone, .pair, .lineup img, .shelf img, .flow li {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .pair:nth-child(2), .lineup img:nth-child(even), .shelf img:nth-child(even), .flow li:nth-child(even) { animation-name: settle-late; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn .arrow, .hung img, header.site nav a, footer.site a { transition: none; }
}
