:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --ink: #12110f;
  --muted: #6e6b67;
  --line: #bebbb5;
  --accent: #12110f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header,
.home-footer,
.approach-footer { display: flex; justify-content: space-between; align-items: flex-start; }

.wordmark {
  display: inline-block;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.wordmark span { font-weight: 400; letter-spacing: -0.045em; }
.wordmark--link { text-decoration: none; }
.wordmark--link:hover { color: var(--accent); }
.descriptor {
  margin: 0.52rem 0 0;
  font-size: clamp(0.83rem, 1.2vw, 1.05rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.page-index {
  padding-top: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.header-tools { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 2rem); }
.language-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 0.1rem;
  border: 1px solid var(--ink);
  padding: 0.12rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}
.language-switch > * {
  display: inline-flex;
  min-width: 2.6rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.language-switch a:hover { background: #e8e5de; }
.language-switch .language-current { background: var(--ink); color: var(--paper); }
.period { color: var(--accent); }

.home-shell {
  min-height: 100svh;
  padding: clamp(1.4rem, 3.3vw, 3.5rem) clamp(1.35rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 2.8rem);
  display: flex;
  flex-direction: column;
}
.site-header--home { animation: appear 0.9s ease both; }
.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vh, 7rem) 0;
}
.manifesto {
  width: 100%;
  margin: 0;
  font-size: clamp(2.75rem, 6.05vw, 8rem);
  font-weight: 460;
  line-height: 1.045;
  letter-spacing: -0.068em;
}
.manifesto-line {
  display: block;
  overflow: hidden;
  padding-right: 0.12em;
  padding-bottom: 0.075em;
  margin-bottom: -0.075em;
}
.manifesto-line > span {
  display: block;
}
.ink-word {
  display: inline-block;
  position: relative;
  white-space: nowrap;
  color: var(--letter-color, var(--ink));
}
.period { --letter-color: var(--accent); }
.ink-running .ink-word { color: transparent; }
.ink-final .ink-word { color: var(--letter-color, var(--ink)); }
.sketch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
  pointer-events: none;
  transition: opacity 0.55s ease;
}
.ink-final .sketch-overlay { opacity: 0; }
.sketch-glyph {
  fill: transparent;
  stroke: #88817b;
  stroke-width: 0.95px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--dash) var(--dash);
  stroke-dashoffset: var(--dash);
  animation:
    pencil-contour 0.52s cubic-bezier(0.3, 0, 0.25, 1) var(--trace-delay) both,
    pencil-fill 0.32s ease var(--fill-delay) both;
}
.manifesto em,
.approach-intro em,
.closing em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
}
.manifesto-line--emphasis { padding-left: clamp(0rem, 9vw, 10rem); }
.manifesto-line--emphasis em { white-space: normal; }
.manifesto-line:nth-child(4) { padding-left: clamp(0rem, 16vw, 17rem); }
.manifesto-line:nth-child(5) { padding-left: clamp(0rem, 7vw, 7.5rem); }

.home-footer { align-items: center; gap: 2rem; animation: appear 0.7s 0.4s ease both; }
.footer-rule { display: block; height: 1px; flex: 1; background: var(--line); }
.text-link {
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.text-link > span { display: inline-block; margin-left: 0.8em; font-size: 1.3em; transition: transform 0.25s ease; }
.text-link:hover > span { transform: translate(0.22em, -0.22em); }
.text-link:hover { color: var(--accent); }

.approach-shell { padding: clamp(1.4rem, 3.3vw, 3.5rem) clamp(1.35rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 2.8rem); }
.site-header--approach { padding-bottom: clamp(5rem, 11vw, 13rem); }
.eyebrow,
.section-heading,
.step-number {
  font-size: clamp(0.85rem, 1vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.eyebrow { margin: 0 0 2rem; }
.approach-intro h1 {
  max-width: 15ch;
  margin: 0 0 clamp(4rem, 10vw, 10rem);
  font-size: clamp(3.4rem, 8.4vw, 10.5rem);
  font-weight: 440;
  line-height: 0.98;
  letter-spacing: -0.072em;
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 8vw, 11rem);
  align-items: start;
  max-width: 76rem;
  margin-inline: auto;
  padding-bottom: clamp(5rem, 11vw, 11rem);
}
.intro-grid p { margin: 0; }
.intro-lead {
  max-width: 23ch;
  font-size: clamp(1.9rem, 3.1vw, 3.7rem);
  font-weight: 420;
  line-height: 1.13;
  letter-spacing: -0.055em;
}
.intro-copy {
  max-width: 34rem;
  padding-top: 0.25rem;
  font-size: clamp(1.1rem, 1.4vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.028em;
}
.approach-steps { border-top: 1px solid var(--ink); }
.section-heading { display: flex; justify-content: space-between; padding: 1.1rem 0 clamp(3rem, 6vw, 6rem); }
.section-heading span:last-child { font-size: 1.5rem; line-height: 0.8; }
.steps { list-style: none; margin: 0 0 clamp(7rem, 13vw, 14rem); padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3.7vw, 4rem); }
.step { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.step-number { color: var(--accent); }
.step h2 { margin: clamp(2.7rem, 5vw, 5rem) 0 1.3rem; font-size: clamp(2.1rem, 3.25vw, 4rem); font-weight: 450; line-height: 1.05; letter-spacing: -0.065em; }
.step p { max-width: 28ch; margin: 0; color: #383633; font-size: clamp(1.03rem, 1.25vw, 1.25rem); line-height: 1.45; letter-spacing: -0.025em; }
.closing { margin: 0 calc(-1 * clamp(1.35rem, 4vw, 4.5rem)); padding: clamp(4.5rem, 9vw, 10rem) clamp(1.35rem, 4vw, 4.5rem); background: var(--ink); color: var(--paper); }
.closing p { margin: 0; font-size: clamp(2.5rem, 6.1vw, 7.5rem); font-weight: 420; line-height: 1.06; letter-spacing: -0.065em; }
.closing em { color: #d6cbc3; }
.approach-footer { align-items: center; padding-top: 2rem; font-size: clamp(0.9rem, 1vw, 1rem); }

@keyframes pencil-contour {
  from { stroke-dashoffset: var(--dash); }
  to { stroke-dashoffset: 0; }
}
@keyframes pencil-fill {
  from { fill: transparent; stroke: #88817b; }
  to { fill: var(--final-color); stroke: var(--final-color); }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .manifesto { font-size: clamp(2.65rem, 6.5vw, 4.7rem); }
  .manifesto-line--emphasis { padding-left: 0; }
  .manifesto-line:nth-child(4), .manifesto-line:nth-child(5) { padding-left: 0; }
}

@media (max-width: 650px) {
  .home-shell { min-height: 100svh; }
  .site-header--home, .site-header--approach { gap: 1rem; }
  .page-index { font-size: 0.72rem; }
  .home-main { padding: 3.6rem 0; }
  .manifesto { font-size: clamp(2.35rem, 10.2vw, 3.3rem); line-height: 1.08; letter-spacing: -0.07em; }
  .manifesto-line { overflow: visible; margin-bottom: 0.05em; padding-bottom: 0; }
  .manifesto-line--emphasis em { white-space: normal; }
  .home-footer { gap: 0.9rem; }
  .text-link { white-space: normal; text-align: right; }
  .site-header--approach { padding-bottom: 7rem; }
  .approach-intro h1 { font-size: clamp(3.3rem, 11vw, 5rem); margin-bottom: 5.5rem; }
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; padding-bottom: 6rem; }
  .intro-lead { font-size: clamp(2rem, 8vw, 3rem); }
  .intro-copy { padding-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 3.5rem; margin-bottom: 7rem; }
  .step h2 { margin: 2rem 0 0.9rem; }
  .closing { padding-top: 5.5rem; padding-bottom: 6rem; }
  .closing p { font-size: clamp(2.7rem, 9vw, 4.5rem); }
}

@media (max-width: 360px) {
  .manifesto { font-size: 2.2rem; }
  .descriptor { max-width: 19ch; }
  .page-index { padding-top: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header--home, .home-footer, .sketch-glyph { animation: none; }
  .ink-running .ink-word { color: var(--letter-color, var(--ink)); }
  .sketch-overlay { display: none; }
  .text-link > span { transition: none; }
}

/* The editorial typography is shared by both pages. */
.page-home .site-header--home {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.page-home .identity { text-align: center; }
.page-home .header-tools { align-self: flex-end; }
.page-home .manifesto {
  margin-inline: auto;
  text-align: center;
  font-family: "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  font-size: clamp(2.7rem, 6.4vw, 8.2rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.012em;
}
.page-home .manifesto em {
  font-family: inherit;
  font-weight: 400;
  font-style: italic;
  letter-spacing: inherit;
}
.page-home .manifesto-line {
  padding-left: 0;
  overflow: visible;
}
.page-home .manifesto .ink-shift {
  font-style: italic;
}
.ink-measuring .page-home .manifesto .ink-shift,
.ink-running .page-home .manifesto .ink-shift { font-style: normal; }
.ink-running .page-home .manifesto .ink-shift.ink-italic { font-style: italic; }
.page-home .marker-phrase { display: inline-block; position: relative; isolation: isolate; white-space: nowrap; }
.page-home .footnote-ref {
  position: relative;
  top: -0.05em;
  margin-left: 0.03em;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.35em;
  font-style: normal;
  font-weight: 500;
  line-height: 0;
  vertical-align: super;
}
.page-home .footnote-ref a { text-decoration: none; }
.ink-running .page-home .footnote-ref { opacity: 0; }
.ink-final .page-home .footnote-ref { opacity: 1; transition: opacity 0.3s ease; }
.page-home .marker-word { isolation: isolate; }
.page-approach .approach-marker { display: inline-block; position: relative; isolation: isolate; }
.page-home .marker-phrase::before,
.page-home .marker-word::before,
.page-approach .approach-marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.045em;
  right: -0.055em;
  top: 0.47em;
  height: 0.57em;
  background: #f4ff00;
  opacity: 0.9;
  clip-path: polygon(0 9%, 12% 2%, 37% 8%, 61% 1%, 83% 6%, 100% 3%, 99% 85%, 80% 93%, 56% 86%, 29% 100%, 8% 88%, 0 94%);
  transform: rotate(var(--marker-angle, -1deg)) scaleX(1);
  transform-origin: left center;
}
.page-home .marker-phrase::before { left: -0.035em; right: -0.055em; }
.page-home .marker-word--ideas { --marker-angle: -0.7deg; --marker-delay: 0.34s; }
.page-home .marker-word--reality { --marker-angle: 0.8deg; --marker-delay: 0.56s; }
.ink-running .page-home .marker-phrase::before,
.ink-running .page-home .marker-word::before { transform: rotate(var(--marker-angle, -1deg)) scaleX(0); opacity: 0; }
.ink-highlight .page-home .marker-phrase::before,
.ink-highlight .page-home .marker-word::before {
  animation: marker-stroke 0.72s cubic-bezier(0.2, 0.65, 0.2, 1) var(--marker-delay, 0s) both;
}
.page-approach .approach-marker::before {
  animation: marker-stroke 0.85s cubic-bezier(0.2, 0.65, 0.2, 1) 0.7s both;
}
@keyframes marker-stroke {
  from { transform: rotate(var(--marker-angle, -1deg)) scaleX(0); opacity: 0; }
  12% { opacity: 0.9; }
  to { transform: rotate(var(--marker-angle, -1deg)) scaleX(1); opacity: 0.9; }
}
.normalites-definition {
  max-width: 72ch;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 0.87vw, 0.9rem);
  line-height: 1.45;
}
.normalites-definition span { color: var(--ink); margin-right: 0.3em; }

.page-approach .site-header--approach {
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.page-approach .header-tools { align-self: flex-end; }
.page-approach .approach-intro h1,
.page-approach .intro-lead,
.page-approach .step h2,
.page-approach .closing p {
  font-family: "Bodoni 72", Didot, "Times New Roman", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.page-approach .approach-intro h1 {
  max-width: none;
  text-align: center;
  font-size: clamp(3.4rem, 7.2vw, 9rem);
  line-height: 1.04;
}
.page-approach .approach-intro em,
.page-approach .closing em {
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  letter-spacing: inherit;
}
.page-approach .intro-lead { line-height: 1.18; }
.page-approach .step h2 { line-height: 1.08; }
.page-approach .closing p { line-height: 1.08; }
.page-approach .intro-copy,
.page-approach .step p { letter-spacing: -0.01em; }
.page-approach .closing em { color: #e5ded5; }
@media (max-width: 900px) {
  .page-approach .approach-intro h1 { font-size: clamp(3.2rem, 8.2vw, 6.2rem); }
}
@media (max-width: 650px) {
  .page-home .site-header--home { gap: 1rem; }
  .page-home .manifesto { font-size: clamp(2.15rem, 9.3vw, 3.4rem); letter-spacing: 0; }
  .page-home .manifesto-line--emphasis { font-size: min(1em, calc(8.93vw - 0.24rem)); }
  html[lang="en"] .page-home .manifesto-line--emphasis { font-size: min(1em, calc(9.5vw - 0.2rem)); }
  .page-approach .site-header--approach { gap: 1rem; }
  .page-approach .approach-intro h1 { font-size: clamp(3.1rem, 10vw, 5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .page-approach .approach-marker::before { animation: none; transform: none; opacity: 0.9; }
}
