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

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

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

:root {
  --ink: #20172b;
  --ink-deep: #17101f;
  --ink-muted: #b9b0bd;
  --paper: #f4efe9;
  --paper-light: #faf7f3;
  --paper-shadow: #d5c9be;
  --plum: #261a41;
  --muted: #6e6675;
  --rust: #b96649;
  --rust-deep: #944a35;
  --line-ink: rgba(255, 250, 245, 0.2);
  --line-paper: rgba(38, 26, 65, 0.16);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 5.2rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fold: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 84px;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--plum);
  background: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  font-weight: 390;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.027;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

::selection { color: var(--paper-light); background: var(--rust); }

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

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 120;
  padding: 0.72rem 1rem;
  color: var(--paper-light);
  background: var(--rust-deep);
  transform: translateY(-180%);
  transition: transform 200ms ease;
}

.skip-link:focus { transform: translateY(0); }

.svg-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--gutter);
  color: var(--paper-light);
  transition: color 450ms ease, background-color 450ms ease, opacity 280ms ease;
}

.site-header.on-paper {
  color: var(--plum);
  background: linear-gradient(180deg, rgba(244, 239, 233, 0.96), rgba(244, 239, 233, 0));
}

.site-header.on-hero .header-nav { color: var(--plum); }
.site-header.on-hero .release-state { color: var(--rust-deep); }
.site-header.on-close { opacity: 0; pointer-events: none; }

.tender-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 48px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -0.02em;
}

.tender-brand img,
.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.8);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.6rem);
  font-size: 0.93rem;
  font-weight: 520;
}

.header-nav a,
.footer-back,
.footer-brand {
  transition: color 220ms ease, opacity 220ms ease;
}

.header-nav a:hover,
.footer-back:hover { color: var(--rust); }
.release-state { color: var(--rust); white-space: nowrap; }

.ink-section {
  color: var(--paper-light);
  background:
    radial-gradient(circle at 26% 42%, rgba(72, 53, 80, 0.32), transparent 38%),
    linear-gradient(135deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.paper-section {
  color: var(--plum);
  background:
    radial-gradient(circle at 68% 14%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(110deg, var(--paper) 0%, var(--paper-light) 48%, #eee6df 100%);
}

/* Hero */

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  isolation: isolate;
}

.hero-ink {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 3;
  width: 58%;
  background: transparent;
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  top: clamp(7.6rem, 15.5vh, 10.5rem);
  max-width: min(48vw, 45rem);
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(4.6rem, 6.7vw, 7.5rem);
  font-weight: 410;
  font-variation-settings: "opsz" 144, "wght" 410;
  line-height: 0.96;
  letter-spacing: -0.045em;
  word-spacing: 0.07em;
}

.pronoun-row {
  display: flex;
  align-items: baseline;
  gap: 0.09em;
}

.pronoun {
  position: relative;
  display: inline-block;
  min-width: 3.2ch;
  color: var(--rust);
  font-family: "Snell Roundhand", "Bradley Hand", "Segoe Print", var(--display);
  font-size: 0.84em;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.08em;
  transform: rotate(-4deg) translateY(0.05em);
  transform-origin: left center;
  filter: blur(0);
  opacity: 1;
  transition: opacity 180ms ease, filter 230ms ease, transform 320ms var(--ease-out);
}

.pronoun::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.08em;
  bottom: 0.03em;
  height: 0.045em;
  min-height: 3px;
  border-radius: 70% 30% 65% 38%;
  background: var(--rust);
  transform: rotate(-1deg) scaleX(1);
  transform-origin: left;
  transition: transform 420ms var(--ease-out);
}

.pronoun.is-reinking {
  opacity: 0;
  filter: blur(3px);
  transform: rotate(-4deg) translate(0.12em, 0.14em) scale(0.985);
}

.pronoun.is-reinking::after { transform: rotate(-1deg) scaleX(0); }

.hero-intro {
  margin-top: clamp(1.4rem, 2.8vh, 2.4rem);
  color: #c9c1cc;
  font-size: clamp(1.14rem, 1.45vw, 1.52rem);
  font-weight: 390;
  line-height: 1.48;
  letter-spacing: -0.016em;
}

.hero-practice {
  margin-top: 0.8rem;
  max-width: 54ch;
  color: #aaa2af;
  font-size: clamp(0.88rem, 1.05vw, 1.02rem);
  line-height: 1.58;
}

.hero-promises {
  display: grid;
  gap: 0.65rem;
  margin-top: clamp(1.25rem, 2.6vh, 2rem);
  color: #eee8ef;
  font-size: clamp(0.86rem, 1vw, 1rem);
}

.hero-promises li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hero-promises svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  margin-top: clamp(1.15rem, 2.4vh, 1.9rem);
  color: var(--rust);
  font-size: 0.93rem;
  font-weight: 620;
}

.practice-link svg {
  width: 19px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 300ms var(--ease-out);
}

.practice-link:hover svg { transform: translateY(5px); }

.hero-rail {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(1.5rem, 4vh, 3.2rem);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #a79fab;
  font-size: 0.82rem;
}

.hero-rail > p {
  min-width: 3.3rem;
  color: var(--paper-light);
  font-variant-numeric: tabular-nums;
}

.rail-line {
  position: relative;
  width: clamp(3.3rem, 5vw, 5rem);
  height: 1px;
  overflow: hidden;
  background: var(--line-ink);
}

.rail-line i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 25%;
  background: var(--rust);
  transition: width 600ms var(--ease-out);
}

.hero-dots { display: flex; align-items: center; gap: 1.2rem; }

.hero-dots button {
  position: relative;
  min-height: 44px;
  padding: 0 0 0 1.35rem;
  border: 0;
  color: #8f8794;
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease;
}

.hero-dots button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid #756d79;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hero-dots button:hover,
.hero-dots button.is-active { color: var(--paper-light); }
.hero-dots button.is-active::before { border-color: var(--rust); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 8px var(--rust); }

.hero-paper {
  --fold-x: 0deg;
  --fold-y: 0deg;
  position: absolute;
  inset: 0 0 0 48.8%;
  z-index: 2;
  background:
    radial-gradient(circle at 62% 22%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(128deg, #e4dbd2 0%, #f9f5f0 43%, #d9cfc5 100%);
  clip-path: url("#hero-paper-desktop");
  filter:
    drop-shadow(-3px 0 0 rgba(255, 252, 248, 0.95))
    drop-shadow(-9px 0 0 #c9bdb3)
    drop-shadow(-22px 0 18px rgba(20, 13, 24, 0.3));
}

.hero-paper::after,
.practice::after,
.privacy-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035 .65' numOctaves='2' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.58'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.fold-shadow {
  position: absolute;
  z-index: 1;
  left: -2%;
  top: -7%;
  width: 29%;
  height: 61%;
  border-radius: 0 42% 68% 0 / 0 30% 70% 0;
  background: rgba(24, 17, 30, 0.33);
  filter: blur(24px);
  transform: rotate(3deg) translate(1.2rem, 1.5rem);
}

.paper-fold {
  position: absolute;
  z-index: 2;
  left: -2%;
  top: -5%;
  width: 27%;
  height: 58%;
  clip-path: url("#hero-fold");
  background:
    linear-gradient(104deg, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(150deg, #d8cec5 0%, #fbf7f2 48%, #c8bbb1 100%);
  filter: drop-shadow(1.2rem 1.3rem 1.5rem rgba(27, 19, 32, 0.28));
  transform: perspective(800px) rotateX(var(--fold-x)) rotateY(var(--fold-y)) rotate(3deg);
  transform-origin: 10% 0;
  transition: transform 450ms var(--ease-fold);
}

.hero-phones {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 590 / 1279;
  border: clamp(6px, 0.55vw, 9px) solid #151419;
  border-radius: clamp(34px, 3vw, 52px);
  background: #151419;
  box-shadow:
    0 42px 76px -26px rgba(33, 22, 31, 0.68),
    0 0 0 1px rgba(255, 255, 255, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0.11), transparent 14%, transparent 78%, rgba(255, 255, 255, 0.035));
  box-shadow:
    inset 1px 0 rgba(255, 255, 255, 0.14),
    inset -1px 0 rgba(0, 0, 0, 0.14);
}

.phone-front {
  position: absolute;
  left: 25%;
  top: 12.5%;
  width: min(26vw, 370px);
  z-index: 2;
  transform: rotate(-1.4deg);
}

.phone-back {
  position: absolute;
  left: 79%;
  top: 26%;
  width: min(24vw, 345px);
  z-index: 1;
  opacity: 0.9;
  transform: rotate(6.5deg);
}

.dynamic-island {
  position: absolute;
  z-index: 8;
  top: 9px;
  left: 50%;
  width: 29%;
  height: 3.25%;
  min-height: 18px;
  border-radius: 999px;
  background: #09080a;
  transform: translateX(-50%);
}

.phone-slides { position: absolute; inset: 0; overflow: hidden; }

.phone-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(7%) scale(1.01);
  transition: opacity 420ms ease, transform 700ms var(--ease-out);
}

.phone-slides img.is-active { opacity: 1; transform: none; }
.phone-back > img { width: 100%; height: 100%; object-fit: cover; }

.hero-control {
  position: absolute;
  right: clamp(2rem, 4vw, 4.4rem);
  bottom: clamp(1.8rem, 4vh, 3.4rem);
  z-index: 12;
  display: flex;
  gap: 0.85rem;
}

.hero-control button,
.practice-arrows button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 300ms var(--ease-out);
}

.hero-control button { color: var(--plum); }
.hero-control button:hover,
.practice-arrows button:hover { color: var(--paper-light); background: var(--rust); border-color: var(--rust); transform: translateY(-3px); }

.hero-control svg,
.practice-arrows svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The practice */

.practice {
  position: relative;
  min-height: 430svh;
  overflow: clip;
  isolation: isolate;
}

.practice-edge {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 0;
  width: clamp(1.6rem, 7vw, 7rem);
  background: var(--ink);
  clip-path: polygon(0 0, 64% 0, 100% 9%, 74% 18%, 100% 29%, 73% 43%, 100% 56%, 72% 70%, 100% 84%, 65% 100%, 0 100%);
}

.practice-layout {
  position: relative;
  z-index: 2;
  width: min(100%, 1600px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(380px, 45%) 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  padding: 0 var(--gutter) 20svh;
}

.practice-device-wrap {
  position: relative;
  min-width: 0;
}

.practice-device {
  position: sticky;
  top: 8svh;
  height: 84svh;
  display: grid;
  place-items: center;
}

.practice-phone {
  width: min(23.5vw, 350px);
  z-index: 3;
  transform: rotate(-1deg);
}

.practice-phone-back {
  position: absolute;
  width: min(22vw, 326px);
  z-index: 1;
  opacity: 0.34;
  filter: saturate(0.68) contrast(0.94);
  transform: translate(42%, 2%) rotate(4.2deg);
}

.practice-phone-back > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.practice-connector {
  position: absolute;
  z-index: 4;
  left: 68%;
  top: 53%;
  width: min(22vw, 310px);
  overflow: visible;
  fill: none;
  stroke: var(--rust);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.74;
}

.practice-connector path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.45s var(--ease-out) 180ms;
}

.practice.is-visible .practice-connector path { stroke-dashoffset: 0; }

.practice-shadow {
  position: absolute;
  z-index: 1;
  left: 25%;
  right: 14%;
  bottom: 2%;
  height: 13%;
  border-radius: 50%;
  background: rgba(45, 31, 44, 0.28);
  filter: blur(34px);
}

.practice-story {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.9fr);
  column-gap: clamp(2rem, 4vw, 5rem);
}

.practice-heading {
  grid-column: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
  padding-top: var(--header-h);
}

.practice-heading > p:first-child {
  color: var(--rust);
  font-size: 0.98rem;
  font-weight: 600;
}

.practice-heading h2 {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(4.2rem, 6.4vw, 7.25rem);
  font-weight: 410;
  font-variation-settings: "opsz" 144, "wght" 410;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.practice-heading > p:last-child {
  max-width: 43ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.55;
}

.chapters { grid-column: 1; }

.chapter {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
  opacity: 0.22;
  transform: translateY(2rem);
  transition: opacity 650ms ease, transform 800ms var(--ease-out);
}

.chapter.is-active { opacity: 1; transform: none; }

.chapter-number {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 620;
  letter-spacing: 0.14em;
}

.chapter h3 {
  margin-top: 0.25rem;
  font-family: var(--display);
  font-size: clamp(3.8rem, 5.8vw, 6.4rem);
  font-weight: 420;
  line-height: 1;
  letter-spacing: -0.04em;
}

.chapter > p:last-child {
  max-width: 29ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.58;
}

.chapter-nav {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 29svh;
  align-self: start;
  display: grid;
  gap: 0.95rem;
  padding-left: 0;
}

.chapter-thread {
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(38, 26, 65, 0.17);
}

.chapter-thread i {
  display: block;
  width: 1px;
  height: 0;
  background: var(--rust);
  transition: height 650ms var(--ease-out);
}

.chapter-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 46px 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0 0.68rem;
  min-height: 58px;
  padding: 0.45rem 0;
  border: 0;
  text-align: left;
  color: #827a86;
  background: transparent;
  cursor: pointer;
  transition: color 250ms ease, transform 350ms var(--ease-out);
}

.chapter-icon {
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(38, 26, 65, 0.15);
  border-radius: 50%;
  color: var(--plum);
  background: rgba(250, 247, 243, 0.94);
  box-shadow: 0 8px 24px -20px rgba(38, 26, 65, 0.72);
  transition: color 250ms ease, background 250ms ease, border-color 250ms ease, transform 350ms var(--ease-out);
}

.chapter-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chapter-nav button b {
  color: var(--plum);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}

.chapter-nav button > span:last-child { font-size: 0.84rem; line-height: 1.4; }
.chapter-nav button:hover { color: var(--plum); transform: translateX(3px); }
.chapter-nav button.is-active { color: var(--rust); }
.chapter-nav button.is-active b { color: var(--rust); }
.chapter-nav button.is-active .chapter-icon {
  color: #fffaf5;
  border-color: var(--rust);
  background: var(--rust);
  box-shadow: 0 0 0 7px rgba(185, 102, 73, 0.1);
  transform: scale(1.04);
}

.practice-arrows {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(100svh - 76px);
  z-index: 6;
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  align-self: start;
  margin-top: calc(100svh - 90px);
  padding: 0;
}

.practice-arrows button { color: var(--plum); }
.practice-arrows button:disabled {
  opacity: 0.28;
  cursor: default;
  background: transparent;
  transform: none;
}

/* Privacy close */

.privacy-close {
  position: relative;
  min-height: max(760px, 100svh);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(5rem, 9vh, 7rem) var(--gutter) 0;
  overflow: hidden;
}

.privacy-sheet {
  position: relative;
  width: min(100%, 1240px);
  min-height: min(71svh, 720px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: clamp(3rem, 6vw, 6.8rem) clamp(3rem, 8vw, 7.5rem);
  color: var(--plum);
  background: linear-gradient(117deg, #fbf8f4 0%, var(--paper) 67%, #e8dfd7 100%);
  box-shadow: 0 34px 72px -26px rgba(0, 0, 0, 0.62);
  isolation: isolate;
}

.privacy-sheet::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  clip-path: polygon(0 0.6%, 7% 0, 17% 0.7%, 29% 0.1%, 41% 0.6%, 54% 0, 67% 0.5%, 81% 0, 94% 0.6%, 100% 0.2%, 99.5% 100%, 88% 99.4%, 75% 100%, 62% 99.5%, 49% 100%, 36% 99.4%, 22% 100%, 8% 99.5%, 0.4% 100%);
  background: var(--paper-light);
}

.sheet-corner {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  width: clamp(9rem, 20vw, 15rem);
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #cbbdb2 0%, #faf6f1 62%);
  filter: drop-shadow(-1.2rem 1.25rem 0.8rem rgba(40, 25, 39, 0.3));
}

.privacy-copy { position: relative; z-index: 3; }

.privacy-copy h2 {
  font-family: var(--display);
  font-size: clamp(4.3rem, 7vw, 7.65rem);
  font-weight: 410;
  font-variation-settings: "opsz" 144, "wght" 410;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.privacy-copy > p {
  max-width: 44ch;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.55;
}

.privacy-list {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vh, 3rem);
  color: var(--plum);
  font-family: var(--display);
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
}

.privacy-list li { display: flex; align-items: center; white-space: nowrap; }
.privacy-list li:not(:last-child)::after { content: ""; width: 1px; height: 1.55rem; margin: 0 clamp(1rem, 2vw, 1.8rem); background: rgba(185, 102, 73, 0.52); }

.privacy-proof {
  position: relative;
  z-index: 3;
  min-height: 104px;
  margin-top: clamp(1.8rem, 3.5vh, 2.6rem);
}

.privacy-proof p {
  position: absolute;
  left: 6.6rem;
  bottom: 1.3rem;
  color: var(--muted);
  font-size: clamp(0.88rem, 1vw, 1rem);
  line-height: 1.45;
}

.privacy-drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.lock-mark { opacity: 0; transition: opacity 500ms ease 100ms; }
.lock-mark .leaf { fill: rgba(185, 102, 73, 0.18); }
.draw-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) 420ms;
}

.privacy-sheet.is-visible .lock-mark { opacity: 1; }
.privacy-sheet.is-visible .draw-line { stroke-dashoffset: 0; }

.tender-footer {
  width: min(100%, 1240px);
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  align-items: center;
  gap: 2rem;
  color: #d6cfd8;
  font-size: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--display);
  font-size: 1.8rem;
}

.footer-brand img { width: 40px; height: 40px; border-radius: 10px; }
.tender-footer p a,
.footer-release { color: var(--rust); }
.footer-back { width: max-content; border-bottom: 1px solid rgba(250, 247, 243, 0.6); }

/* Entrance */

.js .hero-copy > *,
.js .hero-rail,
.js .hero-control,
.js .hero-phones {
  opacity: 0;
  transform: translateY(22px);
}

.js .hero-paper {
  transform: translateX(101%);
}

.js.is-ready .hero-paper {
  transform: none;
  transition: transform 1.25s var(--ease-fold) 100ms;
}

.js.is-ready .hero-copy > *,
.js.is-ready .hero-rail,
.js.is-ready .hero-control,
.js.is-ready .hero-phones {
  opacity: 1;
  transform: none;
  transition: opacity 850ms ease, transform 950ms var(--ease-out);
}

.js.is-ready .hero-copy > :nth-child(1) { transition-delay: 280ms; }
.js.is-ready .hero-copy > :nth-child(2) { transition-delay: 390ms; }
.js.is-ready .hero-copy > :nth-child(3) { transition-delay: 480ms; }
.js.is-ready .hero-copy > :nth-child(4) { transition-delay: 560ms; }
.js.is-ready .hero-copy > :nth-child(5) { transition-delay: 630ms; }
.js.is-ready .hero-phones { transition-delay: 380ms; }
.js.is-ready .hero-rail,
.js.is-ready .hero-control { transition-delay: 720ms; }

@media (max-width: 1180px) {
  .hero-ink { width: 61%; }
  .hero-paper { inset: 0 0 0 51%; }
  .hero-copy { max-width: 52vw; }
  .hero h1 { font-size: clamp(4rem, 6.3vw, 5.8rem); }
  .phone-front { left: 23%; width: min(29vw, 340px); }
  .phone-back { left: 78%; }

  .practice-layout { grid-template-columns: minmax(340px, 42%) 1fr; gap: 3rem; }
  .practice-story { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 2rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .desktop-only { display: none; }
  .site-header.on-hero .header-nav { color: var(--paper-light); }

  .hero { min-height: 1160px; }
  .hero-ink { width: 100%; height: 68%; }
  .hero-copy { top: 9rem; max-width: 72vw; }
  .hero h1 { font-size: clamp(4.4rem, 11vw, 6.7rem); }
  .hero-paper {
    inset: 55% 0 0;
    clip-path: url("#hero-paper-mobile");
    filter:
      drop-shadow(0 -3px 0 rgba(255, 252, 248, 0.95))
      drop-shadow(0 -8px 0 #c9bdb3)
      drop-shadow(0 -17px 15px rgba(20, 13, 24, 0.28));
  }
  .js .hero-paper { transform: translateY(101%); }
  .js.is-ready .hero-paper { transform: none; }
  .paper-fold { left: -8%; top: -21%; width: 68%; height: 52%; transform: rotate(62deg); }
  .hero-phones { inset: auto 0 0; height: 53%; }
  .phone-front { left: 50%; top: 4%; width: min(54vw, 370px); transform: translateX(-50%) rotate(-1deg); }
  .phone-back { display: none; }
  .hero-rail { left: 0; right: 0; bottom: 0; min-height: 76px; padding: 0 var(--gutter); background: rgba(32, 23, 43, 0.97); }
  .hero-control { right: var(--gutter); bottom: calc(76px + 1rem); }
  .hero-control button { color: var(--plum); background: rgba(250, 247, 243, 0.72); }

  .practice { min-height: 500svh; }
  .practice-layout { grid-template-columns: minmax(280px, 42%) 1fr; gap: 1.5rem; }
  .practice-phone { width: min(32vw, 295px); }
  .practice-phone-back { width: min(30vw, 275px); }
  .practice-connector { left: 64%; width: min(25vw, 245px); }
  .practice-story { grid-template-columns: 1fr; }
  .practice-heading { grid-column: 1; }
  .chapters { grid-column: 1; }
  .chapter-nav { display: none; }
  .practice-arrows { grid-column: 1; }
}

@media (max-width: 650px) {
  :root { --gutter: 1.25rem; --header-h: 72px; }

  .site-header { gap: 1rem; }
  .tender-brand { gap: 0.72rem; font-size: 1.65rem; }
  .tender-brand img { width: 40px; height: 40px; border-radius: 10px; }
  .header-nav { font-size: 0.92rem; }
  .header-nav .release-state { display: none; }

  .hero { min-height: max(1120px, 150svh); }
  .hero-ink { height: min(65.5%, 100svh); }
  .hero-copy { left: var(--gutter); right: var(--gutter); top: 8.6rem; max-width: none; }
  .hero h1 { font-size: clamp(3.8rem, 18.7vw, 5.1rem); line-height: 0.98; }
  .hero-intro { margin-top: 1.65rem; font-size: 1.17rem; max-width: 28ch; }
  .hero-practice { display: none; }
  .hero-promises { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin-top: 1.4rem; }
  .hero-promises li { gap: 0.55rem; }
  .hero-promises li:first-child span { font-size: 0; }
  .hero-promises li:first-child span::after { content: "Forever free"; font-size: 0.9rem; }
  .hero-promises li:last-child span { font-size: 0; }
  .hero-promises li:last-child span::after { content: "Private · Offline"; font-size: 0.9rem; }
  .hero-promises svg { width: 21px; height: 21px; }
  .practice-link { margin-top: 1.6rem; font-size: 1rem; }
  .hero-paper { inset: 38% 0 0; }
  .hero-phones { inset: 0; height: auto; }
  .phone-front { top: 3%; width: min(79vw, 350px); }
  .hero-rail { gap: 0.7rem; overflow: hidden; }
  .rail-line { min-width: 2.4rem; }
  .hero-dots { gap: 0.75rem; }
  .hero-dots button { padding-left: 1.15rem; font-size: 0.78rem; }
  .hero-dots button::before { width: 10px; height: 10px; }
  .hero-control { display: none; }

  .practice { min-height: auto; padding: 0 0 6rem; }
  .practice-edge { display: none; }
  .practice-layout { display: block; padding: 0; }
  .practice-device-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 50svh;
    pointer-events: none;
  }
  .practice-device {
    position: relative;
    top: 0;
    height: 100%;
    overflow: hidden;
    align-items: start;
    padding-top: 6.25rem;
    background: linear-gradient(180deg, rgba(244, 239, 233, 0.99) 75%, rgba(244, 239, 233, 0));
  }
  .practice-phone { width: min(48vw, 210px); }
  .practice-phone-back,
  .practice-connector { display: none; }
  .practice-shadow { left: 31%; right: 31%; bottom: 6%; }
  .practice-story { position: relative; z-index: 3; display: block; margin-top: -50svh; }
  .practice-heading {
    min-height: 100svh;
    justify-content: flex-end;
    max-width: none;
    padding: 52svh var(--gutter) 5rem;
    background: linear-gradient(180deg, rgba(244, 239, 233, 0) 30%, rgba(244, 239, 233, 0.96) 55%, var(--paper) 100%);
  }
  .practice-heading h2 { font-size: clamp(3.75rem, 17vw, 5.1rem); }
  .practice-heading > p:last-child { font-size: 1rem; }
  .chapters { padding: 0 var(--gutter); }
  .chapter { min-height: 88svh; justify-content: flex-end; padding: 48svh 0 4.5rem; }
  .chapter h3 { font-size: clamp(3.4rem, 16vw, 4.8rem); }
  .chapter > p:last-child { font-size: 1rem; }
  .practice-arrows {
    position: sticky;
    top: calc(100svh - 64px);
    z-index: 8;
    height: 44px;
    justify-content: flex-end;
    gap: 0.55rem;
    margin: 0 0 -44px;
    padding: 0 var(--gutter);
    transform: translateY(-3.2rem);
  }
  .practice-arrows button {
    width: 44px;
    height: 44px;
    background: rgba(250, 247, 243, 0.92);
  }

  .privacy-close { min-height: auto; padding: 4.5rem 1rem 0; }
  .privacy-sheet { width: calc(100vw - 2rem); min-width: 0; min-height: 74svh; justify-self: start; padding: 4rem 1.45rem 2.2rem; align-content: start; }
  .sheet-corner { width: 8rem; }
  .privacy-copy h2 { font-size: clamp(3.75rem, 17vw, 5.15rem); }
  .privacy-copy > p { max-width: 31ch; font-size: 0.98rem; }
  .privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1rem; font-size: 0.97rem; }
  .privacy-list li::after { display: none; }
  .privacy-proof { min-height: 130px; margin-top: 1.6rem; }
  .privacy-proof p { left: 3.8rem; bottom: 2.3rem; font-size: 0.82rem; }
  .privacy-drawing { height: 122px; }
  .tender-footer { width: calc(100vw - 2rem); min-width: 0; min-height: 220px; justify-self: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; padding: 2.2rem 0; }
  .tender-footer > * { min-width: 0; }
  .footer-brand { font-size: 1.6rem; }
  .tender-footer > p:nth-child(2) { text-align: right; }
  .footer-back { grid-column: 1; }
  .footer-release { grid-column: 2; text-align: right; }
}

@media (max-height: 760px) and (min-width: 901px) {
  :root { --header-h: 68px; }
  .hero { min-height: 680px; }
  .hero-copy { top: 6rem; }
  .hero h1 { font-size: clamp(3.8rem, 5.7vw, 5.3rem); }
  .hero-intro { margin-top: 1rem; font-size: 1.12rem; }
  .hero-practice { margin-top: 0.5rem; line-height: 1.45; }
  .hero-promises { margin-top: 1rem; gap: 0.38rem; }
  .practice-link { margin-top: 0.75rem; }
  .phone-front { top: 8%; width: min(24vw, 310px); }
  .hero-rail { bottom: 1.1rem; }
  .hero-control { bottom: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .pronoun { transform: none; }
  .paper-fold { transform: rotate(5deg); }
  .js .hero-paper,
  .js.is-ready .hero-paper { transform: none; }
  .js .hero-copy > *,
  .js .hero-rail,
  .js .hero-control,
  .js .hero-phones { opacity: 1; transform: none; }
  .lock-mark { opacity: 1; }
  .draw-line { stroke-dashoffset: 0; }
  .practice-connector path { stroke-dashoffset: 0; }
}
