:root {
  --ink: #123238;
  --ink-soft: #36545a;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --line: #c8d0c8;
  --signal: #d65b35;
  --signal-dark: #ae4526;
  --mint: #c8ded5;
  --yellow: #e7e9e3;
  --coral: #d65b35;
  --focus: #08766c;
  --board: #102d32;
  --board-line: #3d5b60;
  --max-width: 1180px;
  --radius: 18px;
  --shadow: 0 22px 60px rgba(18, 50, 56, 0.12);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(18, 50, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 50, 56, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 12% 4%, rgba(188, 230, 213, 0.8), transparent 29rem);
  content: "";
  pointer-events: none;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
}

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

:focus {
  outline: none;
}

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

.site-header {
  position: sticky;
  z-index: 30;
  inset-block-start: 0;
  border-bottom: 1px solid rgba(18, 50, 56, 0.14);
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 5px);
  align-items: end;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 9px;
  background: var(--ink);
}

.brand-mark span {
  display: block;
  border-radius: 2px 2px 0 0;
  background: var(--mint);
}

.brand-mark span:nth-child(1) {
  height: 8px;
}

.brand-mark span:nth-child(2) {
  height: 16px;
  background: var(--signal);
}

.brand-mark span:nth-child(3) {
  height: 12px;
}

.brand-name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mode {
  padding: 0.2rem 0.42rem;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-link:hover {
  background: rgba(18, 50, 56, 0.07);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: var(--ink);
}

/* Custom language control: no native select or OS-owned popup. */
.language-menu {
  position: relative;
}

.language-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(18, 50, 56, 0.4);
  border-radius: 11px;
  color: var(--ink);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  border-color: var(--focus);
  background: #e8f4ee;
}

.language-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--focus);
}

.language-flag,
.option-flag {
  display: inline-grid;
  place-items: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  line-height: 1;
}

.language-flag {
  width: 21px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.option-flag {
  width: 24px;
  font-size: 1.08rem;
}

.language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.language-trigger[aria-expanded="true"] .language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.language-popover {
  position: absolute;
  z-index: 50;
  inset-block-start: calc(100% + 10px);
  inset-inline-end: 0;
  width: 220px;
  padding: 0.48rem;
  border: 1px solid rgba(18, 50, 56, 0.28);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(18, 50, 56, 0.2);
  transform-origin: top right;
  animation: popover-in 140ms ease-out;
}

@keyframes popover-in {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.75rem;
  border: 0;
  border-radius: 10px;
  text-align: start;
  background: transparent;
  cursor: pointer;
}

.language-option:hover,
.language-option:focus-visible {
  outline: none;
  background: #e8f4ee;
  box-shadow: inset 0 0 0 2px var(--focus);
}

.language-option > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.language-option strong {
  font-size: 0.92rem;
}

.language-option small {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.language-check {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-option[aria-selected="true"] {
  background: var(--mint);
}

.language-option[aria-selected="true"] .language-check {
  color: #fff;
  background: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.2rem, 7vw, 6.2rem) 0 clamp(3.4rem, 7vw, 5.6rem);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset-block-start: 14%;
  inset-inline-end: -110px;
  width: 280px;
  height: 280px;
  border: 46px solid rgba(240, 90, 42, 0.09);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  gap: clamp(2.6rem, 6vw, 6.5rem);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.15rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(240, 90, 42, 0.14);
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(2.8rem, 5.15vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 650px;
  margin-top: 1.55rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1.1rem;
  min-height: 50px;
  padding: 0.75rem 1rem 0.75rem 1.15rem;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(18, 50, 56, 0.15);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button span:last-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink);
  background: var(--mint);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 0 rgba(18, 50, 56, 0.15);
}

.hero-action-row p {
  max-width: 230px;
  color: var(--ink-soft);
  font-size: 0.79rem;
}

.learning-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  list-style: none;
}

.learning-values li {
  padding: 0.38rem 0.62rem;
  border: 1px solid rgba(18, 50, 56, 0.25);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.66);
  font-size: 0.72rem;
  font-weight: 760;
}

.learning-values li::before {
  margin-inline-end: 0.38rem;
  color: var(--focus);
  content: "✓";
  font-weight: 900;
}

.lesson-board {
  position: relative;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  color: #ecf8f2;
  background:
    linear-gradient(rgba(188, 230, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 230, 213, 0.045) 1px, transparent 1px),
    var(--board);
  background-size: 20px 20px;
  box-shadow: var(--shadow);
  direction: ltr;
}

.lesson-board::before {
  position: absolute;
  inset-block: 24px;
  inset-inline-start: -9px;
  width: 18px;
  border-radius: 9px;
  background: var(--signal);
  content: "";
}

.lesson-board__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--board-line);
  color: #b8cac6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.board-status {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--mint);
}

.board-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62e69e;
  box-shadow: 0 0 0 4px rgba(98, 230, 158, 0.12);
}

.lesson-board__heading {
  padding: 1rem 0 0.85rem;
}

.lesson-board__heading p {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.lesson-board__heading h2 {
  margin-top: 0.22rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.ladder-window {
  position: relative;
  display: grid;
  gap: 1.35rem;
  min-height: 170px;
  padding: 2.25rem 1.65rem;
  border: 1px solid var(--board-line);
  border-radius: 14px;
  background: rgba(4, 25, 28, 0.58);
  overflow: hidden;
}

.ladder-rail {
  position: absolute;
  inset-block: 20px;
  width: 3px;
  background: #78928d;
}

.ladder-rail--left {
  inset-inline-start: 21px;
}

.ladder-rail--right {
  inset-inline-end: 21px;
}

.ladder-rung {
  position: relative;
  display: grid;
  grid-template-columns: 52px 27px 1fr 35px 52px;
  align-items: center;
  min-width: 0;
}

.ladder-rung::before,
.ladder-rung::after {
  height: 2px;
  background: #78928d;
  content: "";
}

.ladder-rung::before {
  position: absolute;
  z-index: 0;
  inset-inline-start: -4px;
  width: 36px;
}

.ladder-rung::after {
  position: absolute;
  inset-inline-end: -4px;
  width: 38px;
}

.rung-address {
  position: relative;
  z-index: 1;
  color: #a8bdb8;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  text-align: center;
  transform: translateY(-21px);
}

.rung-address--output {
  justify-self: end;
}

.contact {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 30px;
  border-inline: 3px solid #d0ded9;
}

.contact--active {
  border-color: var(--mint);
  filter: drop-shadow(0 0 6px rgba(188, 230, 213, 0.6));
}

.wire {
  width: 100%;
  height: 2px;
  background: #78928d;
}

.coil {
  width: 29px;
  height: 29px;
  border-inline: 3px solid #d0ded9;
  border-radius: 50%;
}

.coil--active {
  border-color: var(--coral);
  filter: drop-shadow(0 0 6px rgba(255, 155, 122, 0.55));
}

.timer {
  display: grid;
  width: 35px;
  height: 30px;
  place-items: center;
  border: 2px solid #d0ded9;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 800;
}

.scan-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
}

.scan-flow div {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-width: 0;
  padding: 0.55rem;
  border-radius: 8px;
  background: rgba(188, 230, 213, 0.08);
}

.scan-flow div span {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 900;
}

.scan-flow div strong {
  font-size: 0.67rem;
  white-space: nowrap;
}

.scan-flow > i {
  color: #89a09a;
  font-style: normal;
}

.lesson-board__note {
  margin-top: 0.85rem;
  color: #b8cac6;
  font-size: 0.72rem;
}

.lesson-board__note > span:first-child {
  color: var(--coral);
}

.topic-tape {
  border-block: 1px solid var(--ink);
  color: var(--surface);
  background: var(--ink);
  overflow: hidden;
}

.topic-tape__track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vw, 2rem);
  width: max-content;
  min-width: 100%;
  padding: 0.82rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.64rem, 1vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.topic-tape i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
}

.paths-section {
  padding: clamp(3.7rem, 7vw, 6rem) 0;
  background: rgba(255, 253, 247, 0.78);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.eyebrow--small {
  margin-bottom: 0.7rem;
  color: var(--signal-dark);
  font-size: 0.66rem;
}

.section-heading h2 {
  max-width: 720px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.section-heading > p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.path-card {
  position: relative;
  min-width: 0;
  min-height: 330px;
  padding: 1.35rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}

.path-card::after {
  position: absolute;
  inset-inline-end: -38px;
  inset-block-end: -55px;
  width: 150px;
  height: 150px;
  border: 25px solid rgba(18, 50, 56, 0.07);
  border-radius: 50%;
  content: "";
}

.path-card--mint {
  border-top: 7px solid var(--mint);
  background: var(--surface);
}

.path-card--yellow {
  border-top: 7px solid var(--ink);
  background: var(--surface);
}

.path-card--coral {
  border-top: 7px solid var(--signal);
  background: var(--surface);
}

.path-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

.path-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.path-level {
  padding: 0.28rem 0.48rem;
  border-radius: 5px;
  color: #fff;
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.path-card h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.path-card > p {
  max-width: 310px;
  margin-top: 0.7rem;
  font-size: 0.88rem;
}

.path-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.42rem;
  margin-top: 1.25rem;
  list-style: none;
}

.path-card li {
  font-size: 0.77rem;
  font-weight: 760;
}

.path-card li::before {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-inline-end: 0.5rem;
  vertical-align: middle;
  background: var(--ink);
  content: "";
}

.learning-method {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 15px;
  color: #fff;
  background: var(--ink);
}

.learning-method p {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.learning-method p span {
  color: var(--coral);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
}

.learning-method p strong {
  font-size: 0.82rem;
}

.learning-method i {
  color: #76908b;
  font-style: normal;
}

.site-footer {
  border-top: 1px solid rgba(18, 50, 56, 0.2);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.4rem;
  align-items: center;
  min-height: 105px;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.brand--footer {
  color: var(--ink);
}

.brand--footer + p {
  justify-self: center;
}

.footer-nav {
  display: flex;
  gap: 0.8rem;
}

.footer-nav a {
  font-weight: 780;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Compact supporting pages */
.inner-page {
  min-height: calc(100vh - 180px);
}

.page-intro {
  padding: clamp(4rem, 8vw, 7.2rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.78fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
}

.page-intro__copy h1 {
  max-width: 760px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-intro__copy > p:not(.eyebrow) {
  max-width: 670px;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.page-intro__copy .button {
  margin-top: 1.8rem;
}

.idea-panel {
  position: relative;
  padding: 1.45rem;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(rgba(188, 230, 213, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(188, 230, 213, 0.045) 1px, transparent 1px),
    var(--board);
  background-size: 20px 20px;
  box-shadow: var(--shadow);
}

.idea-panel::before {
  position: absolute;
  inset-block: 25px;
  inset-inline-start: -8px;
  width: 16px;
  border-radius: 9px;
  background: var(--signal);
  content: "";
}

.idea-panel__top,
.contact-card__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b8cac6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.09em;
}

.idea-circuit {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.7rem;
  margin: 2.7rem 0 2.2rem;
}

.idea-circuit::before {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(50% - 1px);
  height: 2px;
  background: #78928d;
  content: "";
}

.idea-circuit i {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 28px;
  height: 28px;
  border: 6px solid var(--mint);
  border-radius: 50%;
  background: var(--board);
}

.idea-circuit i:nth-child(2) {
  border-color: var(--yellow);
}

.idea-circuit i:nth-child(3) {
  border-color: var(--coral);
}

.idea-panel h2 {
  max-width: 400px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.idea-panel > p {
  margin-top: 0.9rem;
  color: #c5d5d1;
  font-size: 0.88rem;
}

.idea-panel > strong {
  display: block;
  margin-top: 1.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  background: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  text-align: center;
}

.about-story {
  padding: clamp(3.4rem, 6vw, 5.4rem) 0;
  border-top: 1px solid rgba(18, 50, 56, 0.2);
  background: var(--surface);
}

.about-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.72fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.about-story__copy .eyebrow {
  margin-bottom: 0.75rem;
}

.about-story__copy h2 {
  max-width: 720px;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.04;
  text-wrap: balance;
}

.about-story__copy > p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.about-scope {
  padding: 1.25rem;
  border: 1px solid var(--ink);
  border-top: 7px solid var(--signal);
  border-radius: 15px;
  background: var(--paper);
}

.about-scope > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.about-scope ul {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  list-style: none;
  counter-reset: scope;
}

.about-scope li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.84rem;
  counter-increment: scope;
}

.about-scope li::before {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  content: counter(scope, decimal-leading-zero);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.55rem;
  font-weight: 900;
}

.principles-section,
.contact-details {
  padding: clamp(3.2rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--ink);
  background: rgba(255, 253, 247, 0.82);
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.compact-heading .eyebrow {
  margin: 0;
}

.compact-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.principle-grid,
.contact-reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.principle-grid article,
.contact-reason-grid article {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--ink);
  border-radius: 15px;
  background: var(--surface);
}

.principle-grid article:nth-child(1) {
  border-top: 7px solid var(--mint);
  background: var(--surface);
}

.principle-grid article:nth-child(2) {
  border-top: 7px solid var(--ink);
  background: var(--surface);
}

.principle-grid article:nth-child(3) {
  border-top: 7px solid var(--signal);
  background: var(--surface);
}

.principle-grid article > span,
.contact-reason-grid article > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  font-weight: 900;
}

.principle-grid h3,
.contact-reason-grid h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.principle-grid p,
.contact-reason-grid p {
  margin-top: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.page-intro--contact {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.contact-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 22px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: 12px 12px 0 rgba(18, 50, 56, 0.12);
}

.contact-card__status {
  color: var(--ink);
}

.contact-card__status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--focus);
  box-shadow: 0 0 0 5px rgba(8, 118, 108, 0.13);
}

.contact-card > p {
  margin-top: 3.7rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-card > a {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
}

.contact-card > span:last-child {
  display: block;
  margin-top: 2.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(18, 50, 56, 0.35);
  font-size: 0.75rem;
}

.contact-details > .container > .eyebrow {
  margin-bottom: 1rem;
}

.contact-reason-grid article:nth-child(1) {
  border-top: 8px solid var(--mint);
}

.contact-reason-grid article:nth-child(2) {
  border-top: 8px solid var(--yellow);
}

.contact-reason-grid article:nth-child(3) {
  border-top: 8px solid var(--coral);
}

.safety-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  color: #fff;
  background: var(--ink);
}

.safety-note strong {
  color: var(--coral);
  font-size: 0.8rem;
}

.safety-note p {
  color: #c5d5d1;
  font-size: 0.76rem;
}

.contact-page {
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.contact-page__layout {
  width: min(calc(100% - 40px), 1040px);
}

.contact-page__intro {
  max-width: 820px;
}

.contact-page__intro h1 {
  font-size: clamp(2.9rem, 5.5vw, 5rem);
  line-height: 1;
  text-wrap: balance;
}

.contact-page__intro > p:last-child {
  max-width: 700px;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.primary-email-panel {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.1rem, 2.5vw, 1.55rem);
  border: 1px solid var(--ink);
  border-radius: 18px;
  color: #fff;
  background: var(--ink);
  box-shadow: 10px 10px 0 rgba(18, 50, 56, 0.13);
  overflow: hidden;
}

.primary-email-panel::before {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 7px;
  background: var(--signal);
  content: "";
}

.primary-email-panel__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.primary-email-panel__label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(200, 222, 213, 0.12);
}

.primary-email-panel > a {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 1rem;
  padding: clamp(1.15rem, 3vw, 1.8rem);
  border: 1px solid rgba(200, 222, 213, 0.7);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  font-size: clamp(1.8rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  text-align: center;
  direction: ltr;
  overflow-wrap: anywhere;
}

.contact-guidance {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(18, 50, 56, 0.28);
}

.contact-guidance > h2 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.contact-guidance__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-guidance article {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.contact-guidance article > span {
  color: var(--signal-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 900;
}

.contact-guidance h3 {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.1;
}

.contact-guidance article p {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.contact-page .safety-note {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--yellow);
}

.contact-page .safety-note strong {
  color: var(--signal-dark);
}

.contact-page .safety-note p {
  color: var(--ink-soft);
}

html[lang="de"] h1,
html[lang="de"] h2,
html[lang="de"] h3 {
  hyphens: auto;
}

html[dir="rtl"] body {
  font-family: "SF Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  line-height: 1.72;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "SF Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

html[dir="rtl"] .lesson-board__topline,
html[dir="rtl"] .lesson-board__heading,
html[dir="rtl"] .lesson-board__note {
  direction: rtl;
}

html[dir="rtl"] .scan-flow,
html[dir="rtl"] .learning-method {
  direction: rtl;
}

html[dir="rtl"] .scan-flow > i,
html[dir="rtl"] .learning-method > i {
  transform: rotate(180deg);
}

html[dir="rtl"] .language-popover {
  transform-origin: top left;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(370px, 0.82fr);
    gap: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 4.15rem);
  }

  .scan-flow div {
    display: grid;
    gap: 0.15rem;
  }

  .scan-flow div strong {
    white-space: normal;
  }

  .path-card__top {
    margin-bottom: 2.4rem;
  }

  .page-intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.76fr);
    gap: 2.5rem;
  }
}

@media (max-width: 780px) {
  .hero {
    padding-top: 3.4rem;
  }

  .hero-grid,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .lesson-board {
    width: min(100%, 590px);
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: 0;
  }

  .path-card__top {
    margin-bottom: 2.1rem;
  }

  .path-card > p {
    max-width: 520px;
  }

  .section-heading > p {
    max-width: 540px;
  }

  .page-intro__grid {
    grid-template-columns: 1fr;
  }

  .about-story__grid {
    grid-template-columns: 1fr;
  }

  .idea-panel,
  .contact-card,
  .about-scope {
    width: min(100%, 620px);
  }

  .principle-grid,
  .contact-reason-grid,
  .contact-guidance__grid {
    grid-template-columns: 1fr;
  }

  .principle-grid h3,
  .contact-reason-grid h2 {
    margin-top: 1.4rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .header-inner {
    min-height: 66px;
    padding-top: 0.45rem;
    flex-wrap: wrap;
  }

  .brand-mode {
    display: none;
  }

  .primary-nav {
    display: contents;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: stretch;
    margin-top: 0.45rem;
    border-top: 1px solid rgba(18, 50, 56, 0.12);
  }

  .nav-link {
    flex: 1;
    padding: 0.52rem 0.32rem;
    border-radius: 0;
    font-size: 0.75rem;
    text-align: center;
  }

  .language-menu {
    order: 2;
  }

  .language-popover {
    position: fixed;
    inset-block-start: 118px;
    inset-inline: 14px;
    width: auto;
  }

  .hero {
    padding: 2.9rem 0 3.2rem;
  }

  .page-intro {
    padding: 3.4rem 0 3.2rem;
  }

  .contact-page {
    padding: 3.4rem 0 3.2rem;
  }

  .contact-page__layout {
    width: min(calc(100% - 28px), 1040px);
  }

  .contact-page__intro h1 {
    font-size: clamp(2.45rem, 11vw, 3.25rem);
    line-height: 1.04;
  }

  .primary-email-panel > a {
    font-size: clamp(1.25rem, 6.2vw, 2rem);
  }

  .about-story {
    padding: 3.2rem 0;
  }

  .page-intro__copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.012em;
  }

  .compact-heading {
    display: grid;
    gap: 0.75rem;
  }

  .idea-panel,
  .contact-card {
    border-radius: 18px;
  }

  .idea-panel::before {
    display: none;
  }

  .contact-card > p {
    margin-top: 2.5rem;
  }

  .safety-note {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 11.5vw, 3.35rem);
    line-height: 1.01;
    letter-spacing: -0.01em;
  }

  .hero-copy {
    margin-top: 1.25rem;
  }

  .hero-action-row {
    display: grid;
    justify-items: start;
  }

  .hero-action-row p {
    max-width: 290px;
  }

  .learning-values {
    margin-top: 1.5rem;
  }

  .lesson-board {
    padding: 1rem;
    border-radius: 19px;
  }

  .lesson-board::before {
    display: none;
  }

  .ladder-window {
    min-height: 150px;
    padding-inline: 1.1rem;
  }

  .ladder-rung {
    grid-template-columns: 42px 24px 1fr 30px 42px;
  }

  .contact {
    width: 24px;
  }

  .timer {
    width: 30px;
  }

  .scan-flow {
    grid-template-columns: 1fr;
  }

  .scan-flow > i {
    display: none;
  }

  .scan-flow div {
    display: flex;
  }

  .topic-tape__track {
    justify-content: flex-start;
  }

  .paths-section {
    padding: 3.5rem 0;
  }

  .learning-method {
    grid-template-columns: 1fr;
  }

  .learning-method > i {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    padding-block: 1.2rem;
  }

  .footer-inner > p {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .footer-nav {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .footer-inner > span:last-child {
    grid-column: 2;
    grid-row: 1;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Keep the same calm tracking across every display heading. */
h1,
h2,
h3 {
  letter-spacing: 0.4px !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  letter-spacing: 0 !important;
}
