@font-face {
  font-family: "Gabarito";
  src: url("assets/fonts/gabarito-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gabarito";
  src: url("assets/fonts/gabarito-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --butter: #ffffeb;
  --card: #fffff6;
  --ink: #1b2233;
  --night: #0a0f1e;
  --body: #45422f;
  --muted: #7c7761;
  --line: #e2dcc6;
  --blue: #82bce2;
  --green: #3e7c4f;
  --display: "Gabarito", ui-sans-serif, system-ui, sans-serif;
  --text: "Figtree", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --paper-w: 1600px;
  --paper-h: 900px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #cbc7bb;
}

body {
  margin: 0;
  color: var(--body);
  background: #cbc7bb;
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

.reader-bar {
  position: fixed;
  inset: 18px 22px auto;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 46px;
  padding: 0 9px 0 18px;
  color: var(--butter);
  background: rgba(10, 15, 30, 0.92);
  border: 1px solid rgba(255, 255, 235, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.reader-bar img {
  width: 112px;
}

.reader-bar__rule {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 235, 0.22);
}

.reader-bar__count {
  min-width: 74px;
  color: rgba(255, 255, 235, 0.68);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.reader-bar__actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.reader-bar button {
  min-width: 38px;
  height: 30px;
  padding: 0 12px;
  color: var(--butter);
  background: transparent;
  border: 1px solid rgba(255, 255, 235, 0.25);
  border-radius: 999px;
  cursor: pointer;
}

.reader-bar button:hover,
.reader-bar button:focus-visible {
  color: var(--night);
  background: var(--butter);
  outline: none;
}

.book {
  display: grid;
  gap: 56px;
  justify-items: center;
  padding: 92px 36px 80px;
}

.page {
  position: relative;
  container-type: inline-size;
  width: min(var(--paper-w), calc(100vw - 72px));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: var(--body);
  background: var(--butter);
  box-shadow: 0 28px 80px rgba(10, 15, 30, 0.22);
  isolation: isolate;
}

.page__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 4.5cqw 5cqw 4.1cqw;
}

.page.dark {
  color: rgba(255, 255, 235, 0.82);
  background: var(--night);
}

.page.ink-page {
  color: rgba(255, 255, 235, 0.82);
  background: var(--ink);
}

.page.card-page {
  background: var(--card);
}

.page__wash,
.page__photo,
.page__grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.page__photo {
  z-index: -3;
}

.page__wash {
  z-index: -2;
  background: rgba(255, 255, 235, 0.16);
}

.page__grain {
  z-index: 8;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.page.dark .page__grain,
.page.ink-page .page__grain {
  opacity: 0.08;
  mix-blend-mode: screen;
}

.topline,
.bottomline {
  position: absolute;
  z-index: 6;
  right: 5cqw;
  left: 5cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.68cqw;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topline {
  top: 2.4cqw;
}

.bottomline {
  bottom: 2cqw;
}

.topline img {
  width: 7.6cqw;
  max-height: 1.35cqw;
}

.topline span,
.bottomline span {
  color: var(--muted);
}

.dark .topline span,
.dark .bottomline span,
.ink-page .topline span,
.ink-page .bottomline span {
  color: rgba(255, 255, 235, 0.48);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 0.85cqw;
  margin-bottom: 1.8cqw;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72cqw;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-index::before {
  width: 2.4cqw;
  height: 2px;
  content: "";
  background: currentColor;
}

.dark .section-index,
.ink-page .section-index {
  color: rgba(255, 255, 235, 0.62);
}

.display-xl,
.display-lg,
.display-md,
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  text-wrap: balance;
}

.dark .display-xl,
.dark .display-lg,
.dark .display-md,
.dark h1,
.dark h2,
.dark h3,
.ink-page .display-xl,
.ink-page .display-lg,
.ink-page .display-md,
.ink-page h1,
.ink-page h2,
.ink-page h3 {
  color: var(--butter);
}

.display-xl {
  max-width: 14ch;
  font-size: 7.1cqw;
  line-height: 0.91;
  letter-spacing: -0.042em;
}

.display-lg {
  max-width: 15ch;
  font-size: 4.7cqw;
  line-height: 0.96;
  letter-spacing: -0.034em;
}

.display-md {
  font-size: 3.2cqw;
  line-height: 1.02;
  letter-spacing: -0.026em;
}

.lede {
  max-width: 40ch;
  margin: 1.6cqw 0 0;
  color: var(--body);
  font-size: 1.28cqw;
  line-height: 1.5;
  text-wrap: pretty;
}

.dark .lede,
.ink-page .lede {
  color: rgba(255, 255, 235, 0.78);
}

.mono {
  font-family: var(--mono);
}

.label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72cqw;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dark .label,
.ink-page .label {
  color: rgba(255, 255, 235, 0.52);
}

.rule {
  height: 2px;
  background: var(--line);
}

.dark .rule,
.ink-page .rule {
  background: rgba(255, 255, 235, 0.18);
}

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

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

.split-40 {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 5cqw;
}

.split-60 {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 5cqw;
}

.cover .page__photo {
  filter: saturate(0.88) contrast(1.03);
}

.cover::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 235, 0.08);
}

.cover .cover-mark {
  width: 15.8cqw;
}

.cover .cover-copy {
  position: absolute;
  right: 5cqw;
  bottom: 5.4cqw;
  left: 5cqw;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4cqw;
}

.cover h1 {
  max-width: 9.8ch;
  font-size: 7.5cqw;
  line-height: 0.88;
  letter-spacing: -0.048em;
}

.cover-meta {
  display: grid;
  gap: 0.85cqw;
  min-width: 16cqw;
  padding-bottom: 0.5cqw;
  color: rgba(255, 255, 235, 0.78);
  font-family: var(--mono);
  font-size: 0.74cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.big-statement {
  display: grid;
  height: 100%;
  align-content: center;
}

.big-statement .display-xl {
  max-width: 11ch;
}

.big-statement .note {
  position: absolute;
  right: 5cqw;
  bottom: 4.8cqw;
  max-width: 26ch;
  color: var(--muted);
  font-size: 1.05cqw;
  line-height: 1.5;
}

.time-arc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 100%;
}

.time-arc__scene {
  position: relative;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 235, 0.55);
}

.time-arc__scene:last-child {
  border-right: 0;
}

.time-arc__scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.time-arc__scene::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(10, 15, 30, 0.78), transparent 62%);
}

.time-arc__text {
  position: absolute;
  right: 2cqw;
  bottom: 3.8cqw;
  left: 2cqw;
  z-index: 2;
  color: var(--butter);
}

.time-arc__text b {
  display: block;
  margin-bottom: 0.6cqw;
  font-family: var(--display);
  font-size: 1.85cqw;
}

.time-arc__text span {
  color: rgba(255, 255, 235, 0.65);
  font-family: var(--mono);
  font-size: 0.68cqw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.position-lockup {
  display: grid;
  height: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.position-lockup .label {
  margin-bottom: 1.7cqw;
}

.position-lockup h2 {
  max-width: 18ch;
  font-size: 5.1cqw;
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.position-lockup p {
  max-width: 48ch;
  margin: 2cqw 0 0;
  font-size: 1.15cqw;
  line-height: 1.55;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.25cqw;
  margin-top: 3.2cqw;
}

.principle {
  min-height: 12.4cqw;
  padding: 1.7cqw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 1.1cqw;
  box-shadow: 0.3cqw 0.3cqw 0 var(--ink);
}

.principle__num {
  display: block;
  margin-bottom: 1.8cqw;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72cqw;
}

.principle h3 {
  margin-bottom: 0.55cqw;
  font-size: 1.55cqw;
}

.principle p {
  max-width: 32ch;
  margin: 0;
  font-size: 0.94cqw;
  line-height: 1.5;
}

.spectrums {
  display: grid;
  gap: 2.35cqw;
  margin-top: 3.6cqw;
}

.spectrum__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7cqw;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.25cqw;
  font-weight: 600;
}

.spectrum__line {
  position: relative;
  height: 2px;
  background: var(--line);
}

.spectrum__line::after {
  position: absolute;
  top: 50%;
  left: var(--position, 68%);
  width: 1cqw;
  height: 1cqw;
  content: "";
  background: var(--ink);
  border: 0.25cqw solid var(--butter);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
  transform: translate(-50%, -50%);
}

.logo-hero {
  display: grid;
  height: 100%;
  place-items: center;
}

.logo-hero img {
  width: 43cqw;
}

.logo-caption {
  position: absolute;
  bottom: 4.5cqw;
  left: 5cqw;
  max-width: 33ch;
  font-size: 1cqw;
  line-height: 1.5;
}

.clearspace-stage {
  display: grid;
  place-items: center;
  min-height: 28cqw;
  margin-top: 2.5cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.2cqw;
}

.clearspace {
  position: relative;
  width: 34cqw;
  padding: 4.4cqw;
  border: 2px dashed var(--muted);
}

.clearspace img {
  width: 100%;
  display: block;
}

.clearspace__x {
  position: absolute;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8cqw;
}

.clearspace__x.top {
  top: 1.6cqw;
  left: 50%;
}

.clearspace__x.left {
  top: 50%;
  left: 1.5cqw;
}

.size-specs {
  display: grid;
  gap: 1.3cqw;
  align-content: center;
}

.size-spec {
  display: grid;
  grid-template-columns: 6cqw 1fr;
  gap: 1.5cqw;
  align-items: center;
  padding-top: 1.3cqw;
  border-top: 2px solid var(--line);
}

.size-spec b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4cqw;
}

.size-spec p {
  margin: 0;
  font-size: 0.9cqw;
  line-height: 1.4;
}

.logo-colourways {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 37cqw;
  margin-top: 2.5cqw;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.4cqw;
}

.logo-colourways > div {
  display: grid;
  place-items: center;
  padding: 3cqw;
}

.logo-colourways > div:first-child {
  background: var(--butter);
}

.logo-colourways > div:last-child {
  background: var(--ink);
}

.logo-colourways img {
  width: 30cqw;
}

.dont-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15cqw;
  margin-top: 2.8cqw;
}

.dont {
  position: relative;
  min-height: 12.1cqw;
  display: grid;
  place-items: center;
  padding: 1.4cqw;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1cqw;
}

.dont::before {
  position: absolute;
  top: 0.9cqw;
  right: 0.9cqw;
  content: "×";
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.5cqw;
  font-weight: 700;
}

.dont img {
  width: 75%;
}

.dont.stretch img {
  transform: scaleX(1.35);
}

.dont.rotate img {
  transform: rotate(-8deg);
}

.dont.outline img {
  filter: drop-shadow(1px 0 white) drop-shadow(-1px 0 white) drop-shadow(0 1px white) drop-shadow(0 -1px white);
  opacity: 0.28;
}

.dont.effect img {
  filter: drop-shadow(0.5cqw 0.6cqw 0 #82bce2);
}

.dont.photo {
  background: url("assets/images/fr_content.jpg") center / cover;
}

.dont.photo img {
  filter: none;
}

.dont span {
  position: absolute;
  bottom: 0.85cqw;
  left: 1cqw;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65cqw;
  text-transform: uppercase;
}

.swatches {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  min-height: 26cqw;
  margin-top: 2.7cqw;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.4cqw;
}

.swatch {
  position: relative;
  padding: 1.3cqw;
  border-right: 2px solid var(--ink);
}

.swatch:last-child {
  border-right: 0;
}

.swatch b,
.swatch code {
  position: absolute;
  left: 1.2cqw;
}

.swatch b {
  bottom: 2.3cqw;
  font-family: var(--display);
  font-size: 1.15cqw;
}

.swatch code {
  bottom: 1.15cqw;
  font-family: var(--mono);
  font-size: 0.65cqw;
}

.swatch.butter { background: var(--butter); }
.swatch.card { background: var(--card); }
.swatch.ink { color: var(--butter); background: var(--ink); }
.swatch.night { color: var(--butter); background: var(--night); }
.swatch.body { color: var(--butter); background: var(--body); }
.swatch.muted { color: var(--butter); background: var(--muted); }

.colour-ratio {
  display: grid;
  grid-template-columns: 7fr 2fr 1fr;
  height: 3.2cqw;
  margin-top: 1.4cqw;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.colour-ratio i:nth-child(1) { background: var(--butter); }
.colour-ratio i:nth-child(2) { background: var(--ink); }
.colour-ratio i:nth-child(3) { background: var(--blue); }

.contrast-table {
  display: grid;
  gap: 0;
  margin-top: 3cqw;
  border-top: 2px solid var(--ink);
}

.contrast-row {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr 1fr 0.7fr;
  align-items: center;
  min-height: 4.2cqw;
  border-bottom: 2px solid var(--line);
}

.contrast-row > * {
  padding: 0 1cqw;
  font-size: 0.9cqw;
}

.contrast-row b {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.05cqw;
}

.pass,
.limit {
  justify-self: start;
  padding: 0.35cqw 0.7cqw;
  color: var(--butter);
  background: var(--green);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.64cqw;
  text-transform: uppercase;
}

.limit {
  color: var(--ink);
  background: var(--line);
}

.type-family {
  display: grid;
  grid-template-columns: 12cqw 1fr 18cqw;
  gap: 2cqw;
  align-items: baseline;
  min-height: 10.2cqw;
  padding: 2cqw 0;
  border-bottom: 2px solid var(--line);
}

.type-family:first-of-type {
  margin-top: 2cqw;
  border-top: 2px solid var(--ink);
}

.type-family h3 {
  font-size: 1.5cqw;
}

.type-family__sample {
  color: var(--ink);
  font-size: 4.4cqw;
  line-height: 1;
}

.type-family__sample.display { font-family: var(--display); font-weight: 700; }
.type-family__sample.text { font-family: var(--text); }
.type-family__sample.monospace { font-family: var(--mono); font-size: 2.2cqw; }

.type-family p {
  margin: 0;
  font-size: 0.85cqw;
  line-height: 1.45;
}

.scale-table {
  display: grid;
  gap: 0;
  margin-top: 2.5cqw;
  border-top: 2px solid var(--ink);
}

.scale-row {
  display: grid;
  grid-template-columns: 10cqw 7cqw 1fr;
  align-items: center;
  min-height: 5.6cqw;
  border-bottom: 2px solid var(--line);
}

.scale-row .meta {
  font-family: var(--mono);
  font-size: 0.68cqw;
  line-height: 1.6;
  text-transform: uppercase;
}

.scale-row .specimen {
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
}

.scale-row.hero .specimen { font-size: 4cqw; letter-spacing: -0.025em; }
.scale-row.section .specimen { font-size: 3.05cqw; letter-spacing: -0.02em; }
.scale-row.cardtitle .specimen { font-size: 1.4cqw; }
.scale-row.bodycopy .specimen { font-family: var(--text); font-size: 1.1cqw; font-weight: 400; }
.scale-row.labelcopy .specimen { font-family: var(--mono); font-size: 0.76cqw; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

.wrap-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2cqw;
  margin-top: 3cqw;
}

.wrap-card {
  min-height: 27cqw;
  padding: 2.3cqw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 1.1cqw;
}

.wrap-card.good {
  box-shadow: 0.35cqw 0.35cqw 0 var(--ink);
}

.wrap-card .verdict {
  display: inline-block;
  margin-bottom: 4cqw;
  padding: 0.35cqw 0.7cqw;
  color: var(--butter);
  background: var(--ink);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65cqw;
  text-transform: uppercase;
}

.wrap-card h3 {
  max-width: 12ch;
  font-size: 3.3cqw;
  line-height: 0.97;
  letter-spacing: -0.03em;
}

.wrap-card.bad h3 {
  max-width: 8.5ch;
}

.wrap-card p {
  max-width: 38ch;
  margin: 1.5cqw 0 0;
  font-size: 0.95cqw;
  line-height: 1.5;
}

.grid-demo {
  position: relative;
  min-height: 29cqw;
  margin-top: 2.8cqw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 1.2cqw;
  overflow: hidden;
}

.grid-demo__columns {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1cqw;
  padding: 2.5cqw 3cqw;
}

.grid-demo__columns i {
  background: rgba(130, 188, 226, 0.23);
  border: 1px solid rgba(27, 34, 51, 0.1);
}

.grid-demo__headline {
  position: absolute;
  top: 7cqw;
  left: 10.6cqw;
  width: 45cqw;
  font-family: var(--display);
  font-size: 4.4cqw;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.grid-demo__copy {
  position: absolute;
  right: 10.5cqw;
  bottom: 5.5cqw;
  width: 18cqw;
  font-size: 1cqw;
  line-height: 1.5;
}

.geometry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2cqw;
  margin-top: 3cqw;
}

.geometry {
  min-height: 23.5cqw;
  padding: 1.6cqw;
  background: var(--card);
  border: 2px solid var(--line);
}

.geometry:nth-child(1) { border-radius: 0.75cqw; }
.geometry:nth-child(2) { border-radius: 1.35cqw; }
.geometry:nth-child(3) { border-radius: 1cqw; }
.geometry:nth-child(4) { border: 2px solid var(--ink); border-radius: 1.1cqw; box-shadow: 0.35cqw 0.35cqw 0 var(--ink); }

.geometry__shape {
  height: 11cqw;
  margin-bottom: 3.5cqw;
  background: var(--ink);
}

.geometry:nth-child(1) .geometry__shape { border-radius: 0.75cqw; }
.geometry:nth-child(2) .geometry__shape { border-radius: 1.35cqw; }
.geometry:nth-child(3) .geometry__shape { border-radius: 999px; }
.geometry:nth-child(4) .geometry__shape { border-radius: 1.1cqw; }

.geometry b {
  display: block;
  margin-bottom: 0.45cqw;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15cqw;
}

.geometry span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66cqw;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 1.1cqw;
  height: 39cqw;
  margin-top: 2.5cqw;
}

.photo-tile {
  position: relative;
  overflow: hidden;
  border-radius: 1.25cqw;
}

.photo-tile:first-child {
  grid-row: 1 / -1;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile__tag {
  position: absolute;
  bottom: 1cqw;
  left: 1cqw;
  padding: 0.38cqw 0.75cqw;
  color: var(--butter);
  background: rgba(10, 15, 30, 0.82);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.64cqw;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.direction-list {
  display: grid;
  align-content: center;
  gap: 1.8cqw;
  height: 100%;
}

.direction-item {
  padding-top: 1.2cqw;
  border-top: 2px solid var(--line);
}

.direction-item b {
  display: block;
  margin-bottom: 0.45cqw;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3cqw;
}

.direction-item p {
  margin: 0;
  font-size: 0.9cqw;
  line-height: 1.45;
}

.grade-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 33cqw;
  margin-top: 2.7cqw;
  overflow: hidden;
  border-radius: 1.3cqw;
}

.grade {
  position: relative;
  overflow: hidden;
}

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

.grade::after {
  position: absolute;
  inset: 0;
  content: "";
  mix-blend-mode: color;
}

.grade.dawn::after { background: rgba(255, 240, 190, 0.14); }
.grade.day::after { background: rgba(255, 255, 235, 0.04); }
.grade.dusk::after { background: rgba(60, 128, 170, 0.14); }
.grade.night::after { background: rgba(10, 15, 30, 0.32); }

.grade span {
  position: absolute;
  right: 1.1cqw;
  bottom: 1.1cqw;
  left: 1.1cqw;
  z-index: 2;
  color: var(--butter);
  font-family: var(--display);
  font-size: 1.3cqw;
  font-weight: 600;
}

.horizon-demo {
  position: relative;
  height: 34cqw;
  margin-top: 2.6cqw;
  overflow: hidden;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 1.3cqw;
}

.horizon-demo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.horizon-demo__line {
  position: absolute;
  right: 0;
  bottom: 6.8cqw;
  left: 0;
  height: 2px;
  background: var(--butter);
  box-shadow: 0 0 1.2cqw 0.45cqw rgba(130, 188, 226, 0.62);
}

.horizon-notes {
  position: absolute;
  top: 2cqw;
  right: 2cqw;
  display: grid;
  gap: 0.6cqw;
  width: 18cqw;
  padding: 1.25cqw;
  color: var(--butter);
  background: rgba(10, 15, 30, 0.84);
  border: 1px solid rgba(255, 255, 235, 0.18);
  border-radius: 0.8cqw;
  font-family: var(--mono);
  font-size: 0.64cqw;
  line-height: 1.5;
}

.component-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2cqw;
  margin-top: 2.8cqw;
}

.component-panel {
  display: grid;
  align-content: center;
  min-height: 29cqw;
  padding: 2.2cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1.3cqw;
}

.component-panel > .component-card {
  margin-top: 0;
}

.nav-specimen {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 4cqw;
  padding: 0 0.7cqw 0 1.3cqw;
  background: #fffdf4;
  border: 2px solid var(--line);
  border-radius: 0.8cqw;
}

.nav-specimen img { width: 8.2cqw; }
.nav-specimen span { color: var(--body); font-size: 0.8cqw; font-weight: 500; }
.nav-specimen .nav-button {
  margin-left: auto;
  color: var(--butter);
}

.button-specimen,
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7cqw;
  padding: 0 1.2cqw;
  color: var(--butter);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0.2cqw 0.2cqw 0 rgba(27, 34, 51, 0.2);
  font-family: var(--display);
  font-size: 0.76cqw;
  font-weight: 600;
}

.button-specimen.outline {
  color: var(--ink);
  background: var(--card);
  border-radius: 0.6cqw;
  box-shadow: none;
}

.tag-specimen {
  display: inline-flex;
  margin: 0 0.6cqw 0.6cqw 0;
  padding: 0.38cqw 0.75cqw;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.64cqw;
}

.component-card {
  min-height: 15cqw;
  margin-top: 2cqw;
  padding: 1.6cqw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 1.1cqw;
  box-shadow: 0.3cqw 0.3cqw 0 var(--ink);
}

.component-card h3 { font-size: 1.35cqw; }
.component-card .price { margin-top: 0.4cqw; color: var(--ink); font-family: var(--display); font-size: 2.4cqw; font-weight: 700; }
.component-card p { margin: 1cqw 0 1.4cqw; font-size: 0.85cqw; line-height: 1.45; }

.voice-system {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15cqw;
  margin-top: 3.2cqw;
}

.voice-step {
  min-height: 26cqw;
  padding: 1.5cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1cqw;
}

.voice-step b {
  display: block;
  margin: 1.7cqw 0 0.7cqw;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35cqw;
}

.voice-step p {
  min-height: 3.2cqw;
  margin: 0;
  font-size: 0.88cqw;
  line-height: 1.45;
}

.voice-step blockquote {
  margin: 3.3cqw 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.35cqw;
  font-weight: 600;
  line-height: 1.18;
}

.copy-pairs {
  display: grid;
  gap: 1.2cqw;
  margin-top: 2.8cqw;
}

.copy-pair {
  display: grid;
  grid-template-columns: 6.5cqw 1fr 1fr;
  gap: 1.2cqw;
  min-height: 8.7cqw;
  padding: 1.2cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 0.9cqw;
}

.copy-pair__type {
  padding-top: 0.35cqw;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.65cqw;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.copy-sample {
  padding: 0 1.2cqw;
  border-left: 2px solid var(--line);
}

.copy-sample small {
  display: block;
  margin-bottom: 0.55cqw;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62cqw;
  text-transform: uppercase;
}

.copy-sample p {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15cqw;
  font-weight: 600;
  line-height: 1.25;
}

.copy-sample.no p {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.human-loop {
  position: relative;
  height: 36cqw;
  margin-top: 2.3cqw;
}

.human-loop__center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 15cqw;
  aspect-ratio: 1;
  place-items: center;
  color: var(--butter);
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--display);
  font-size: 1.65cqw;
  font-weight: 700;
  line-height: 1.05;
}

.human-loop__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31cqw;
  aspect-ratio: 1;
  border: 2px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.human-loop__item {
  position: absolute;
  display: grid;
  place-content: center;
  justify-items: center;
  width: 16.5cqw;
  padding: 1.2cqw 1.35cqw;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0.22cqw 0.22cqw 0 var(--ink);
  text-align: center;
}

.human-loop__item b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.1cqw; }
.human-loop__item span { color: var(--muted); font-size: 0.76cqw; }
.human-loop__item.one { top: 1.7cqw; left: 50%; transform: translateX(-50%); }
.human-loop__item.two { top: 50%; right: 1cqw; transform: translateY(-50%); }
.human-loop__item.three { bottom: 1.7cqw; left: 50%; transform: translateX(-50%); }
.human-loop__item.four { top: 50%; left: 1cqw; transform: translateY(-50%); }

.motion-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2cqw;
  margin-top: 3cqw;
}

.motion-card {
  min-height: 30cqw;
  padding: 1.4cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 1cqw;
}

.motion-viz {
  position: relative;
  height: 14cqw;
  margin-bottom: 2.7cqw;
  overflow: hidden;
  background: var(--butter);
  border-radius: 0.75cqw;
}

.motion-viz::before,
.motion-viz::after {
  position: absolute;
  content: "";
  background: var(--ink);
}

.motion-card:nth-child(1) .motion-viz::before { inset: 44% -20% auto; height: 2px; transform: rotate(-4deg); }
.motion-card:nth-child(1) .motion-viz::after { width: 3cqw; height: 3cqw; top: 35%; left: 48%; border-radius: 50%; }
.motion-card:nth-child(2) .motion-viz::before { inset: 0; background: url("assets/images/bg_content.jpg") center / cover; opacity: 0.55; }
.motion-card:nth-child(2) .motion-viz::after { inset: 18%; background: var(--card); border-radius: 0.8cqw; opacity: 0.92; }
.motion-card:nth-child(3) .motion-viz::before { width: 3.5cqw; height: 3.5cqw; top: 20%; left: 20%; border-radius: 1cqw; box-shadow: 7cqw 4cqw 0 rgba(27,34,51,.55), 2cqw 8cqw 0 rgba(27,34,51,.28); }
.motion-card:nth-child(3) .motion-viz::after { display: none; }
.motion-card:nth-child(4) .motion-viz::before { width: 12cqw; height: 4cqw; top: 5cqw; left: 3cqw; border-radius: 999px; }
.motion-card:nth-child(4) .motion-viz::after { width: 1.1cqw; height: 1.1cqw; top: 6.45cqw; left: 12.4cqw; background: var(--green); border-radius: 50%; }

.motion-card b { display: block; color: var(--ink); font-family: var(--display); font-size: 1.3cqw; }
.motion-card p { margin: 0.6cqw 0 0; font-size: 0.86cqw; line-height: 1.45; }
.motion-card code { display: block; margin-top: 1.5cqw; color: var(--muted); font-family: var(--mono); font-size: 0.62cqw; }

.browser-mock {
  position: relative;
  height: 38cqw;
  margin-top: 2.3cqw;
  overflow: hidden;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 1.3cqw;
  box-shadow: 0.45cqw 0.45cqw 0 var(--ink);
}

.browser-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.45cqw;
  height: 2.7cqw;
  padding: 0 1cqw;
  background: var(--card);
  border-bottom: 2px solid var(--line);
}

.browser-mock__bar i {
  width: 0.62cqw;
  height: 0.62cqw;
  background: var(--line);
  border-radius: 50%;
}

.browser-mock__hero {
  position: relative;
  display: grid;
  height: calc(100% - 2.7cqw);
  align-content: center;
  justify-items: center;
  text-align: center;
}

.browser-mock__hero img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.browser-mock__hero h3,
.browser-mock__hero p,
.browser-mock__hero .button-specimen {
  position: relative;
  z-index: 1;
}

.browser-mock__hero h3 {
  max-width: 12ch;
  font-size: 4cqw;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.browser-mock__hero p {
  margin: 1cqw 0 1.4cqw;
  font-size: 0.85cqw;
}

.application-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.7fr;
  gap: 1.4cqw;
  height: 37cqw;
  margin-top: 2.4cqw;
}

.social-card,
.deck-cover,
.story-card {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 1.1cqw;
  box-shadow: 0.32cqw 0.32cqw 0 var(--ink);
}

.social-card { background: var(--butter); }
.social-card img { width: 100%; height: 55%; object-fit: cover; }
.social-card__copy { padding: 1.5cqw; }
.social-card__copy h3 { font-size: 2.1cqw; line-height: 1; }
.social-card__copy span { display: block; margin-top: 1.5cqw; color: var(--muted); font-family: var(--mono); font-size: 0.65cqw; }

.deck-cover { display: flex; flex-direction: column; justify-content: space-between; padding: 2cqw; color: var(--butter); background: var(--ink); }
.deck-cover img { width: 10cqw; }
.deck-cover h3 { max-width: 9ch; color: var(--butter); font-size: 3.2cqw; line-height: 0.95; }
.deck-cover span { color: rgba(255,255,235,.55); font-family: var(--mono); font-size: 0.66cqw; text-transform: uppercase; }

.story-card { display: grid; align-content: end; padding: 1.5cqw; color: var(--butter); background: url("assets/images/bg_night.jpg") center / cover; }
.story-card img { position: absolute; top: 1.5cqw; left: 1.5cqw; width: 7.2cqw; }
.story-card h3 { max-width: 7ch; color: var(--butter); font-size: 2.8cqw; line-height: 0.94; }
.story-card .button-specimen { margin-top: 1.2cqw; color: var(--ink); background: var(--butter); border-color: var(--butter); }

.quick-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.3cqw;
  margin-top: 2.5cqw;
}

.quick-block {
  min-height: 14cqw;
  padding: 1.5cqw;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 0.9cqw;
}

.quick-block h3 { margin-bottom: 1.1cqw; font-size: 1.25cqw; }
.quick-block p,
.quick-block li { font-size: 0.82cqw; line-height: 1.48; }
.quick-block ul { margin: 0; padding-left: 1.1cqw; }
.quick-block code { font-family: var(--mono); font-size: 0.72cqw; }

.token-list {
  display: grid;
  gap: 0.55cqw;
}

.token-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  padding-bottom: 0.45cqw;
  border-bottom: 1px solid var(--line);
  font-size: 0.78cqw;
}

.token-list i {
  width: 1.3cqw;
  height: 1.3cqw;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.back-cover {
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.back-cover img {
  width: 18cqw;
  margin-bottom: 3cqw;
}

.back-cover h2 {
  max-width: 11ch;
  font-size: 5.4cqw;
  line-height: 0.93;
}

.back-cover p {
  margin: 2cqw 0 0;
  color: rgba(255, 255, 235, 0.62);
  font-family: var(--mono);
  font-size: 0.75cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  html,
  body {
    overflow-x: hidden;
  }

  .reader-bar {
    inset: auto auto 12px 12px;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    justify-content: space-between;
    gap: 8px;
    padding-right: 8px;
    overflow: hidden;
  }

  .reader-bar__rule,
  .reader-bar img {
    display: none;
  }

  .reader-bar__count {
    min-width: 0;
  }

  .reader-bar__actions {
    display: none;
  }

  .book {
    gap: 24px;
    padding: 24px 12px 82px;
  }

  .page {
    width: calc(100vw - 24px);
  }
}

@media print {
  @page {
    size: 1600px 900px;
    margin: 0;
  }

  html,
  body {
    width: 1600px;
    background: transparent;
  }

  .reader-bar {
    display: none !important;
  }

  .page__grain {
    display: none;
  }

  .book {
    display: block;
    padding: 0;
  }

  .page {
    width: 1600px;
    height: 900px;
    aspect-ratio: auto;
    break-after: page;
    box-shadow: none;
  }

  .page:last-child {
    break-after: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
