/* Polytelic Labs, variant B ("The Lab").
   A white ground, black ink, and flat fields in colours borrowed from the game's
   own paint palette (tools/blender/palette.py); the names below are the palette's.
   One typeface, Bricolage Grotesque, for everything. Surfaces are square like
   paint chips; only controls and phones are rounded. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --sm-paper: #f6ead6;
  --sm-red: #a5281f;
  --mg-night: #0d0b1e;
  --white: #ffffff;
  --black: #25222d; /* palette: black, the ink of every outline in the game */
  --gold: #f6bd35;
  --leaf-spring: #7ccb3f;
  --sand: #e6c98a;
  --blue-light: #9bd6f5;
  --blue: #3f8fde;
  --ink: var(--black);
  --ink-soft: #5b5864; /* black at 75 percent on white, 7:1 on the ground */
  --rule: #dcdbe0;
  --wash: #f3f3f5;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  /* side room: the gutter, or whatever centres an 85rem page */
  --edge: max(var(--gutter), calc((100vw - 85rem) / 2));
  --gap: clamp(1rem, 2vw, 1.5rem);
  --measure: 34rem;
  font-family: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--white);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1,
h2,
h3,
h4 {
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.1rem + 5.4vw, 5.6rem);
  line-height: 0.97;
  letter-spacing: -0.022em;
  font-stretch: 87%;
}

h2 {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.024em;
  font-stretch: 86%;
}

h3 {
  font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.125rem);
  line-height: 1.08;
  letter-spacing: -0.016em;
  font-stretch: 90%;
}

h4 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p,
dd,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.2em;
}

a[href]:hover {
  background: var(--gold);
  text-decoration-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: var(--edge);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip:focus {
  top: 0.75rem;
}

.lede {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.42;
  max-width: 36rem;
}

.statement {
  font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 600;
  font-stretch: 90%;
  text-wrap: balance;
}

/* fields: flat paint, square corners */
.field {
  background: var(--field, var(--wash));
}
.field--gold {
  --field: var(--gold);
}
.field--leaf {
  --field: var(--leaf-spring);
}
.field--black {
  --field: var(--black);
  color: var(--white);
}
.field--gold a[href]:hover,
.field--leaf a[href]:hover {
  background: var(--white);
}
.field--black a[href]:hover {
  background: var(--white);
  color: var(--ink);
}
.field--black :focus-visible {
  outline-color: var(--white);
}

/* ---------- header ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.25rem var(--edge) 0;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 88%;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.top__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  font-size: 0.9375rem;
}

.top__nav a {
  text-decoration: none;
  padding-block: 0.35rem;
}

.top__nav a:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  background: none;
}

}

.phone {
  width: min(100%, 20rem);
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: var(--ink);
}

.phone--small {
  width: min(100%, 13.5rem);
  padding: 0.4rem;
  border-radius: 1.7rem;
}

.phone__screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 1.9rem;
  background: #3a8a2e;
}

.phone--small .phone__screen {
  border-radius: 1.35rem;
}

/* ---------- the method ---------- */

.claim {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

.claim + .claim {
  margin-top: clamp(5rem, 11vw, 9.5rem);
}

.claim__say {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.claim__say p {
  max-width: var(--measure);
}

/* the inspector */

.inspector {
  --stage: var(--leaf-spring);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.inspector__stage {
  --field: var(--stage);
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.inspector__still {
  position: absolute;
  inset: 9% 12% 7%;
  width: 76%;
  height: 84%;
  object-fit: contain;
}

.inspector__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}

.inspector__canvas:active {
  cursor: grabbing;
}

.inspector__canvas:focus-visible {
  outline-offset: -6px;
}

.inspector.is-live .inspector__still {
  visibility: hidden;
}

.inspector__atlas {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 1rem;
  align-items: end;
}

.inspector__atlas img {
  width: 100%;
  border: 3px solid var(--ink);
}

.inspector__atlas figcaption {
  font-size: 0.9375rem;
  line-height: 1.4;
}

.inspector__controls {
  display: grid;
  gap: 1.1rem;
}

.peel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
}

.peel[hidden] {
  display: none;
}
.peel__end,
.picker button,
.take__play  {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}
.peel__end:hover,
.picker button:hover,
.take__play:hover  {
  background: var(--gold);
}

.picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.picker button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

.inspector__hint {
  font-weight: 600;
}

.inspector__facts {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: var(--measure);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--ink);
}

input[type="range"]::-moz-range-track {
  height: 4px;
  background: var(--ink);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: calc(-0.875rem + 2px);
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--gold);
}

/* the chart */

.proof {
  display: grid;
  gap: 2rem;
  min-width: 0;
}

.code {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

pre,
code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9375rem;
  font-variant-numeric: normal;
}

.code pre {
  padding: 1.25rem 1.4rem;
  background: var(--wash);
  line-height: 1.6;
  tab-size: 4;
  overflow-x: auto;
}

.code figcaption,
.take__script figcaption {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* the take */
.company {
  display: grid;
  gap: 3.5rem clamp(2rem, 6vw, 5.5rem);
}

.company__facts,
.company__press {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  min-width: 0;
}

.company__facts > p,
.company__press > p {
  max-width: var(--measure);
}

.company h3 {
  margin-top: 1.25rem;
}

.company__press h3 {
  margin-top: 0;
}

.company h4 {
  margin-top: 0.5rem;
}

.facts {
  display: grid;
}

.facts {
  gap: 0.7rem;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.8fr) 1.6fr;
  gap: 1rem;
}

.facts > div[hidden] {
  display: none;
}

.facts dt {
  color: var(--ink-soft);
}

.facts dd {
  font-weight: 600;
}
/* ---------- footer ---------- */

.foot {
  display: grid;
  gap: 0.75rem;
  padding: clamp(2.5rem, 6vw, 4rem) var(--edge);
  font-size: 1rem;
}

.foot__name {
  font-size: 1.375rem;
  font-weight: 700;
  font-stretch: 88%;
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-bottom: 1rem;
}

.foot__note {
  font-size: 0.9375rem;
  color: #c9c7d1;
}

/* ---------- legal pages ---------- */

.legal {
  padding: clamp(3rem, 8vw, 6rem) var(--edge) clamp(4rem, 10vw, 8rem);
}

.legal__body {
  max-width: 42rem;
}

.legal__body h1 {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);
  margin-bottom: 2rem;
}

.legal__body h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  font-stretch: 92%;
  margin: 2.75rem 0 0.75rem;
}

.legal__body p {
  margin-bottom: 0.9rem;
}

.legal__body a {
  overflow-wrap: anywhere;
}

.legal__body dl {
  display: grid;
  margin: 1.5rem 0 0.5rem;
}

.legal__body dt {
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 1rem;
}

.legal__body dd {
  padding-bottom: 0.75rem;
  font-weight: 600;
}

.legal__body .gap {
  padding: 0.05em 0.4em;
  background: var(--gold);
  font-weight: 500;
}

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  font-size: 1rem;
}

body[data-page="privacy"] .legal__nav a[data-for="privacy"],
body[data-page="terms"] .legal__nav a[data-for="terms"],
body[data-page="imprint"] .legal__nav a[data-for="imprint"] {
  font-weight: 700;
  text-decoration: none;
}

/* ====================================================================
   The company page. Everything above is shared with the
   legal pages; from here on it is this page's own layout.
   ==================================================================== */

:root {
  /* Two Hit Wonder's own stage colours */
  --indigo: #1a1033;
  --magenta: #ff2e88;
  --cyan: #22d3ee;
  --stage-gold: #ffc93c;
}

.band {
  padding: clamp(4.5rem, 10vw, 9rem) var(--edge);
}

.band__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.band--row {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}

.band--row h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
}

/* ---------- the front: statement and two doors ---------- */

.front {
  display: grid;
  gap: clamp(2rem, 6vw, 3rem);
  padding-top: clamp(2.5rem, 9vw, 4.5rem);
}

.front__say {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  padding-inline: var(--edge);
}

/* ---------- the craft: four ideas, running ---------- */

.tag {
  justify-self: start;
  padding: 0.2rem 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.tag--warmaze {
  background: var(--leaf-spring);
}

.tag--thw {
  background: var(--indigo);
  color: var(--white);
}

.try {
  font-weight: 700;
}
 td):nth-child(n + 2)  {
  text-align: right;
  padding-right: 0;
  padding-left: 0.75rem;
}

/* the lyric loom */

/* ---------- the games built on them ---------- */

.results__head {
  padding: clamp(4.5rem, 10vw, 9rem) var(--edge) 0;
}

.result {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 7vw, 6rem) var(--edge);
}

.result--warmaze {
  background: var(--leaf-spring);
}

.result--thw {
  background: var(--indigo);
  color: var(--white);
}

.result--sm {
  background: var(--sm-paper);
}

.result--mg {
  background: var(--mg-night);
  color: var(--white);
}

.result--sm a[href]:hover {
  background: var(--white);
}

.result--mg a[href]:hover {
  background: var(--stage-gold);
  color: var(--mg-night);
}

.result--mg :focus-visible {
  outline-color: var(--stage-gold);
}

/* these two have no logo, so their heading is the name */
.result.result--sm h3,
.result.result--mg h3 {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  line-height: 0.95;
  font-weight: 700;
  font-stretch: 84%;
  letter-spacing: -0.026em;
}

.result.result--sm h3 {
  color: var(--sm-red);
}

.result.result--mg h3,
.result--mg .statement {
  color: var(--stage-gold);
}

.result--mg .phone {
  background: #05030c;
}

.result--mg .phone__screen {
  aspect-ratio: 780 / 1696;
}

.result--sm .result__show {
  padding-inline: 0;
}

.result__picture {
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.result__badge {
  position: absolute;
  left: -0.75rem;
  bottom: -1.5rem;
  width: 26%;
  max-width: 7.5rem;
  height: auto;
  border-radius: 22%;
  box-shadow: 0 0.5rem 0 rgb(37 34 45 / 0.2);
}

.result__cut--tile {
  width: 26%;
  max-width: 7rem;
  padding: 0.6rem;
  background: #ded5ee;
  border-radius: 0.8rem;
}

.result--warmaze a[href]:hover {
  background: var(--white);
}

.result--thw a[href]:hover {
  background: var(--magenta);
  color: var(--white);
}

.result--thw :focus-visible {
  outline-color: var(--cyan);
}

.result__say {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.result__say > p {
  max-width: var(--measure);
}

.result__logo {
  width: min(100%, 15rem);
}

.result__logo--thw {
  width: min(100%, 19rem);
}

.result h3 {
  /* the logo above carries the name for the eye; the heading carries it for everyone else */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.result--thw .statement {
  color: var(--stage-gold);
}

.go {
  font-size: 1.25rem;
  font-weight: 700;
}

.result__show {
  position: relative;
  display: grid;
  justify-items: center;
  padding-inline: 12%;
}

.result__show .phone {
  width: min(100%, 17rem);
}

.result--thw .phone {
  background: #05030c;
}

.result--thw .phone__screen {
  background: var(--indigo);
  aspect-ratio: 864 / 1878;
}

.result__cut {
  position: absolute;
  bottom: -2rem;
  width: 30%;
  max-width: 10rem;
  filter: drop-shadow(0 0.5rem 0 rgb(37 34 45 / 0.2));
}

.result__cut--a {
  left: 0;
}

.result__cut--b {
  right: 0;
}

/* ---------- many ends, habits ---------- */

.works {
  display: grid;
  gap: 1.75rem clamp(2rem, 6vw, 5.5rem);
}

.works dt {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.works dd {
  max-width: 26rem;
}

/* ---------- wider screens ---------- */

@media (min-width: 44rem) {
  .top__nav {
    gap: 0.25rem 1.5rem;
    font-size: 1rem;
  }

  .inspector {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }

  .inspector__stage {
    aspect-ratio: 5 / 6;
  }

  .inspector__atlas {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .inspector__controls {
    grid-column: 1 / -1;
  }

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

  /* the sheet stays in view while the votes scroll past */

  .result {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gap);
    align-items: center;
  }

  .result__say {
    grid-column: 1 / 8;
  }

  .result__show {
    grid-column: 8 / 13;
  }

  .result--thw .result__say,
  .result--mg .result__say {
    grid-column: 6 / 13;
    grid-row: 1;
  }

  .result--thw .result__show,
  .result--mg .result__show {
    grid-column: 1 / 6;
    grid-row: 1;
  }
}

@media (min-width: 62rem) {
  .top {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 3;
    padding-top: 1.75rem;
  }

  .front {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gap);
    padding: 0 0 0 var(--edge);
    min-height: min(52rem, 100vh);
  }

  .front__say {
    grid-column: 1 / 8;
    padding: clamp(8rem, 13vw, 11.5rem) clamp(1rem, 3vw, 3rem) clamp(4rem, 7vw, 6rem) 0;
    align-content: center;
  }

  .claim {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gap);
    align-items: start;
  }

  .claim__say {
    grid-column: 1 / 5;
  }

  .claim > :last-child {
    grid-column: 6 / 13;
  }

  .claim--wide {
    gap: clamp(2rem, 4vw, 3rem) var(--gap);
  }

  .claim--wide .claim__say {
    grid-column: 1 / 8;
  }

  .claim--wide > :last-child {
    grid-column: 1 / 13;
  }

  .band--row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gap);
    align-items: start;
  }

  .band--row h2 {
    grid-column: 1 / 5;
  }

  .band--row > :last-child {
    grid-column: 6 / 13;
  }

  .company {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 var(--gap);
  }

  .company__facts {
    grid-column: 1 / 6;
  }

  .company__press {
    grid-column: 7 / 13;
  }

  .legal {
    padding-top: clamp(6rem, 9vw, 8rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .inspector__stage {
    transition: background-color 0.35s ease;
  }
}

/* ====================================================================
   2026-11-13: the front as a statement with four small app chips, the
   experiments named by app, and the short status line of each app.
   ==================================================================== */

.front__say h1 {
  max-width: 13ch;
}

.front__promise {
  max-width: 30rem;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.front__go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.5rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

a.button[href]:hover {
  background: var(--gold);
  color: var(--ink);
}

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

.chip {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  line-height: 1.25;
  font-size: 0.9375rem;
}

.chip img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.chip--sm img,
.chip--mg img {
  border-radius: 22%;
}

.chip strong {
  display: block;
  font-size: 1.0625rem;
}

.chip--sm {
  background: var(--sm-paper);
}

.chip--warmaze {
  background: var(--leaf-spring);
}

.chip--thw {
  background: var(--indigo);
  color: var(--white);
}

.chip--mg {
  background: var(--mg-night);
  color: var(--white);
}

a.chip[href]:hover {
  background: var(--gold);
  color: var(--ink);
}

.chip:focus-visible {
  outline-offset: -5px;
}

.chip--thw:focus-visible,
.chip--mg:focus-visible {
  outline-color: var(--stage-gold);
}

.tag--sm {
  background: var(--sm-paper);
  color: var(--sm-red);
}

.small {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.status {
  font-weight: 600;
}

.claim > :last-child {
  min-width: 0;
}

@media (min-width: 44rem) {
  .front__apps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .chip {
    padding-inline: clamp(1rem, 2.5vw, 2rem);
  }

  .chip--sm {
    padding-left: var(--edge);
  }

  .chip--mg {
    padding-right: var(--edge);
  }
}

@media (min-width: 62rem) {
  .front {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .front__say {
    padding: clamp(9rem, 14vw, 12rem) var(--edge) clamp(3.5rem, 6vw, 5rem);
  }

  .front__say h1 {
    max-width: none;
  }
}

.picker button {
  min-height: 2.75rem;
}

@media (min-width: 44rem) {
  .front__promise {
    max-width: none;
  }

  .front__promise span {
    display: block;
  }
}

.peel__end {
  min-height: 2.75rem;
}

/* text links people tap: 44 px tall */
.top__nav a,
.foot__nav a,
.go,
.front__go a:not(.button),
[data-contact-email] a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.picker[hidden] {
  display: none;
}

/* on a phone the controls sit right under the model, the atlas after them */
@media (max-width: 43.99rem) {
  .inspector__controls {
    order: 2;
  }

  .inspector__atlas {
    order: 3;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

/* 2026-11-13: the drawn wordmark (direction A, "Tittle") replaces the set name. */
.wordmark img {
  display: block;
  width: auto;
  height: 2.125rem;
}

/* 2026-11-14: on wide screens the header floats over the opening section from the top of
   the page. While the preview note stands above it, it starts under the note instead. */
.preview-note ~ .top {
  top: auto;
}

/* 2026-11-14: the opening line is two sentences, and each keeps to its own lines. */
#front-title span {
  display: block;
}

/* 2026-11-14: four promises, each addressed to the person it is for. */
.front__promise span {
  display: block;
}

.front__promise span + span {
  margin-top: 0.7em;
}

.front__promise b {
  display: block;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* ====================================================================
   2026-11-13: a phone beside the opening statement, playing a silent
   montage cut from the four apps' trailers (tools/labs_teaser.sh).
   ==================================================================== */

.front__reel {
  display: grid;
  justify-items: center;
  padding-inline: var(--edge);
}

.phone--reel {
  width: min(100%, 15rem);
  /* the page's other screens are frameless; this one is a device, so it keeps a bezel */
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: var(--ink);
  /* a slight tilt, so the phone reads as an object and not as a panel */
  transform: rotate(3deg);
  box-shadow: 0 1.5rem 3rem -1rem rgb(0 0 0 / 0.35);
}

.phone--reel {
  position: relative;
}

/* shown when the montage has played through once */
.phone__again {
  position: absolute;
  inset: auto 50% 2rem auto;
  transform: translateX(50%);
  min-height: 2.75rem;
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 999px;
  /* ink, so it shows on the film and on the white card it ends on */
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.phone__again[hidden] {
  display: none;
}

/* the film starts muted; this turns its music on and off */
.phone__sound {
  position: absolute;
  inset: 1.4rem 1.4rem auto auto;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.phone__sound[hidden] {
  display: none;
}

.phone--reel .phone__screen {
  display: block;
  border-radius: 1.9rem;
  height: auto;
  background: var(--ink);
}

@media (min-width: 62rem) {
  .front {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  /* the statement was placed on a twelve column grid at this width; here it is the first of two */
  .front__say {
    grid-column: 1;
    grid-row: 1;
  }

  .front__reel {
    grid-column: 2;
    grid-row: 1;
    padding: clamp(6.5rem, 9vw, 8rem) clamp(var(--edge), 8vw, 9rem) 2rem 0;
  }

  .phone--reel {
    width: clamp(16rem, 22vw, 20rem);
  }

  .front__apps {
    grid-column: 1 / -1;
  }
}

/* 2026-11-13: the contact section: one address to write to, set large, and the postal address. */
.band--contact {
  border-top: 1px solid var(--rule);
}

.contact__mail a {
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 750;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.band--contact address {
  font-style: normal;
}

@media (min-width: 62rem) {
  /* the invitation on the left, the address beside it, on one row */
  .band--contact .company__press {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .band--contact .company__facts {
    grid-column: 8 / 13;
    grid-row: 1;
  }
}

/* 2026-11-14: the contact form. */
.contact__form {
  display: grid;
  gap: 0.375rem;
  max-width: 34rem;
  margin-block: 1.25rem;
}

.contact__form label {
  margin-top: 0.75rem;
  font-weight: 600;
}

.contact__form label span {
  font-weight: 400;
  opacity: 0.7;
}

.contact__form input,
.contact__form textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 1.5px solid currentcolor;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.contact__form textarea {
  resize: vertical;
}

.contact__form .button {
  justify-self: start;
  margin-top: 0.75rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

/* a field only robots fill in */
.contact__trap {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact__note,
.contact__or {
  font-size: 0.9375rem;
  opacity: 0.8;
}

.contact__state:empty {
  display: none;
}

.contact__state {
  font-weight: 600;
}

/* 2026-11-14: the language switch in the header. */
.top__lang {
  display: inline-flex;
  gap: 0.15rem;
  margin-left: 0.5rem;
}

.top__lang a {
  min-width: 2.25rem;
  padding: 0.35rem 0.4rem;
  text-align: center;
  font-weight: 600;
}

.top__lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
}

/* 2026-11-14: Wing Commander, the studio's air mail, perched on the contact form. */
.contact__form {
  position: relative;
}

.courier {
  position: absolute;
  top: 1.25rem;
  left: calc(100% + 1.5rem);
  width: 8rem;
  transition: transform 1.4s cubic-bezier(0.5, -0.3, 0.7, 0.4), opacity 0.4s 1s;
}

.courier__pilot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  animation: courier-hover 3.2s ease-in-out infinite;
}

.courier__pilot img {
  display: block;
  width: 100%;
  height: auto;
}

.courier__pilot:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.courier__says {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.25rem);
  z-index: 1;
  width: 13rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.courier--away {
  transform: translate(60vw, -70vh) rotate(-18deg) scale(0.6);
  opacity: 0;
}

@keyframes courier-hover {
  50% {
    transform: translateY(-0.4rem) rotate(-2deg);
  }
}

/* no room beside the form: he waits above it, and speaks to his left */
@media (max-width: 64rem) {
  .courier {
    position: relative;
    top: auto;
    left: auto;
    justify-self: end;
    width: 6.5rem;
    margin-top: 2rem;
  }

  .courier__says {
    left: auto;
    right: calc(100% + 0.5rem);
    top: auto;
    bottom: 0;
    width: min(13rem, calc(100vw - 10.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .courier__pilot {
    animation: none;
  }

  .courier {
    transition: opacity 0.4s;
  }

  .courier--away {
    transform: none;
  }
}
