/* ==========================================================================
   EthioDevMatrix
   base.css: reset, tokens, typography, layout, header, footer, utilities
   ========================================================================== */

/* ---------- Fonts are loaded from Google Fonts in each page head ---------- */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:target {
  scroll-margin-top: 6rem;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  /* palette */
  --ink: #0b0c09;
  --ink-2: #14150f;
  --ink-3: #22231b;
  --paper: #f3efe4;
  --paper-2: #e9e3d3;
  --paper-3: #dcd5c1;
  --lime: #c8f751;
  --lime-deep: #a9d92f;
  --ember: #ff5b2e;
  --ember-text: #b93612;
  --muted: #5f5d52;
  --muted-2: #666356;
  --line: rgba(11, 12, 9, 0.15);
  --line-soft: rgba(11, 12, 9, 0.08);
  --line-strong: rgba(11, 12, 9, 0.42);
  --line-paper: rgba(243, 239, 228, 0.18);
  --line-paper-soft: rgba(243, 239, 228, 0.09);

  /* type */
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --font-am: "Noto Sans Ethiopic", "Nyala", sans-serif;

  --fs-xs: 0.6875rem;
  --fs-sm: 0.8125rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --fs-xl: clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-h4: clamp(1.125rem, 1.5vw, 1.3125rem);
  --fs-h3: clamp(1.5rem, 2.4vw, 2rem);
  --fs-h2: clamp(2.25rem, 4.6vw, 4.25rem);
  --fs-h1: clamp(2.9rem, 7.2vw, 6.9rem);
  --fs-mega: clamp(3.2rem, 11.5vw, 11rem);

  /* layout */
  --wrap: 1360px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gutter: clamp(1rem, 2.2vw, 2rem);
  --header-h: 4.5rem;
  --sp-section: clamp(4.5rem, 9vw, 9rem);
  --radius: 2px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.55s;

  /* effects */
  --shadow-print: 5px 5px 0 var(--ink);
  --shadow-print-sm: 3px 3px 0 var(--ink);
}

/* ---------- Base type ---------- */
html {
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.06;
}

h4 {
  font-size: var(--fs-h4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--fs-sm);
}

code,
kbd,
samp,
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* ---------- Focus ---------- */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.on-ink :where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--wide {
  max-width: 1600px;
}

.wrap--narrow {
  max-width: 920px;
}

.section {
  padding-block: var(--sp-section);
  position: relative;
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section--flush-top {
  padding-top: 0;
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--paper-2 {
  background: var(--paper-2);
}

.section--line-top {
  border-top: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
}

.cosplit {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}

.stack > * + * {
  margin-top: var(--flow, 1.25rem);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--ink);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--ink);
  flex: none;
}

.eyebrow--lime::before {
  background: var(--lime);
}

.eyebrow--ember::before {
  background: var(--ember);
}

.on-ink .eyebrow,
.eyebrow--paper {
  color: var(--paper);
}

.on-ink .eyebrow::before,
.eyebrow--paper::before {
  background: var(--lime);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.on-ink .label {
  color: rgba(243, 239, 228, 0.55);
}

.num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.on-ink .num {
  color: rgba(243, 239, 228, 0.45);
}

/* ---------- Section head ---------- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: var(--gutter);
  align-items: end;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.sec-head__title {
  max-width: none;
  min-width: 0;
}

.sec-head__title h2 {
  margin-top: 1.1rem;
}

.sec-head__aside {
  justify-self: end;
  max-width: 40ch;
  padding-bottom: 0.4rem;
}

.sec-head__aside p {
  color: var(--muted);
  font-size: var(--fs-base);
}

.on-ink .sec-head {
  border-color: var(--line-paper);
}

.on-ink .sec-head__aside p {
  color: rgba(243, 239, 228, 0.62);
}

/* ---------- Lede ---------- */
.lede {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
}

.lede--ink {
  color: var(--ink);
}

.on-ink .lede {
  color: rgba(243, 239, 228, 0.66);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(243, 239, 228, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.45s var(--ease-out);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 239, 228, 0.94);
}

.site-header.is-hidden {
  transform: translateY(-101%);
}

.site-header.is-menu-open {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  z-index: 1001;
  transform: none;
}

.is-locked {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--lime-deep);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1001;
  pointer-events: none;
  will-change: transform;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  padding-block: 0.4rem;
}

.brand__mark {
  width: 26px;
  height: 26px;
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}

.brand:hover .brand__mark {
  transform: rotate(-90deg);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
}

.brand__name span {
  color: var(--muted-2);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.6rem);
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  color: var(--ink);
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.15rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--ember);
  transform: translateY(-50%);
}

.header__cta {
  flex: none;
}

/* language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: none;
}

.lang-switch__item {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding-inline: 0.45rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch__item:hover {
  color: var(--ink);
}

.lang-switch__item.is-active {
  background: var(--ink);
  color: var(--paper);
}

.lang-switch__item.is-active:hover {
  color: var(--paper);
}

/* menu toggle */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 0;
  position: relative;
  z-index: 1002;
}

.menu-toggle__bars {
  position: relative;
  width: 22px;
  height: 10px;
  display: block;
}

.menu-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease, top 0.35s var(--ease-out);
}

.menu-toggle__bars i:nth-child(1) {
  top: 0;
}

.menu-toggle__bars i:nth-child(2) {
  top: 4.5px;
}

.menu-toggle__bars i:nth-child(3) {
  top: 9px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(1) {
  top: 4.5px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars i:nth-child(3) {
  top: 4.5px;
  transform: rotate(-45deg);
}

/* mobile panel */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 1.5rem) var(--pad) 2rem;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease-in-out), opacity 0.3s ease, visibility 0s linear 0.6s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-nav.is-open {
  visibility: visible;
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--ease-in-out), opacity 0.2s ease, visibility 0s;
}

.mobile-nav:focus {
  outline: none;
}

.mobile-nav__note {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--muted);
  max-width: 26ch;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.mobile-nav__item {
  border-bottom: 1px solid var(--line);
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
}

.mobile-nav.is-open .mobile-nav__item {
  transform: none;
  opacity: 1;
}

.mobile-nav.is-open .mobile-nav__item:nth-child(1) {
  transition-delay: 0.12s;
}

.mobile-nav.is-open .mobile-nav__item:nth-child(2) {
  transition-delay: 0.18s;
}

.mobile-nav.is-open .mobile-nav__item:nth-child(3) {
  transition-delay: 0.24s;
}

.mobile-nav.is-open .mobile-nav__item:nth-child(4) {
  transition-delay: 0.3s;
}

.mobile-nav.is-open .mobile-nav__item:nth-child(5) {
  transition-delay: 0.36s;
}

.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  transition: color 0.2s ease 0.05s;
}

.mobile-nav__link span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  transform: translateY(-0.35em);
}

.mobile-nav__link:hover,
.mobile-nav__link:active {
  color: var(--muted);
}

.mobile-nav__foot {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.mobile-nav__lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-nav__lang span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav__lang a {
  font-family: var(--font-am);
  font-size: 0.9375rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--line-strong);
}

.mobile-nav__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.site-footer a {
  color: inherit;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line-paper);
}

.footer__pitch h2 {
  font-size: clamp(2.4rem, 5.2vw, 4.8rem);
  line-height: 0.97;
  max-width: 14ch;
  margin-top: 1.2rem;
}

.footer__pitch h2 em {
  font-style: normal;
  color: var(--lime);
}

.footer__pitch p {
  margin-top: 1.5rem;
  max-width: 42ch;
  color: rgba(243, 239, 228, 0.6);
}

.footer__email {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.5vw, 1rem);
  letter-spacing: 0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-paper);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer__email svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease-out);
}

.footer__email:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.footer__email:hover svg {
  transform: translate(3px, -3px);
}

.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 1.5rem;
  align-content: start;
}

.footer__col h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(243, 239, 228, 0.45);
  margin-bottom: 1.1rem;
}

.footer__col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer__col a {
  font-size: 0.9375rem;
  color: rgba(243, 239, 228, 0.82);
  transition: color 0.2s ease, padding-left 0.25s var(--ease-out);
  display: inline-block;
  overflow-wrap: anywhere;
}

.footer__col a:hover {
  color: var(--lime);
  padding-left: 0.35rem;
}

.footer__col a.footer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding-left: 0;
  border: 1px solid rgba(243, 239, 228, 0.28);
  border-radius: 50%;
  color: var(--paper);
}

.footer__col a.footer__icon:hover {
  padding-left: 0;
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

.footer__col a.footer__icon svg {
  width: 16px;
  height: 16px;
}

.site-footer > .wrap {
  container-type: inline-size;
}

.footer__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10.4vw;
  font-size: clamp(2.2rem, 13.6cqw, 12rem);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 239, 228, 0.22);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 0.16em;
  white-space: nowrap;
  user-select: none;
  transition: color 0.6s ease;
}

.footer__wordmark:hover {
  color: rgba(200, 247, 81, 0.12);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-paper);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 239, 228, 0.5);
}

.footer__bottom a:hover {
  color: var(--lime);
}

.footer__clock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-variant-numeric: tabular-nums;
}

.footer__clock::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  animation: clock-pulse 2.4s ease-in-out infinite;
}

@keyframes clock-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.to-top svg {
  width: 11px;
  height: 11px;
  transition: transform 0.3s var(--ease-out);
}

.to-top:hover svg {
  transform: translateY(-3px);
}

/* ---------- Utilities ---------- */
.mono {
  font-family: var(--font-mono);
}

.amharic {
  font-family: var(--font-am);
  letter-spacing: 0;
}

.uppercase {
  text-transform: uppercase;
}

.text-muted {
  color: var(--muted);
}

.on-ink .text-muted {
  color: rgba(243, 239, 228, 0.6);
}

.no-wrap {
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* corner ticks */
.tick-frame {
  position: relative;
}

.tick-frame::before,
.tick-frame::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
  z-index: 2;
}

.tick-frame::before {
  top: 8px;
  left: 8px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.tick-frame::after {
  bottom: 8px;
  right: 8px;
  border-bottom: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
}

/* ---------- Motion primitives ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal-x {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal-x.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal-scale {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .reveal-scale.is-in {
  opacity: 1;
  transform: none;
}

/* split lines */
.split-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.split-line > span {
  display: block;
}

.js .split-line > span {
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.js .is-in .split-line > span,
.js .split-line.is-in > span {
  transform: none;
}

/* diagonal marquee rule */
.angled {
  transform: rotate(-2deg);
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@media (max-width: 720px) {
  .grain {
    opacity: 0.032;
  }
}

/* ---------- Scrollbar ---------- */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: var(--paper-2);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--ink-3);
    border: 3px solid var(--paper-2);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--ink);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sec-head {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .sec-head__aside {
    justify-self: start;
    padding-bottom: 0;
  }

  .nav {
    gap: 1.4rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }

  .footer__nav {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .site-header .nav,
  .site-header .header__cta,
  .site-header .lang-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header {
    background: rgba(243, 239, 228, 0.9);
    border-bottom-color: var(--line);
  }

  .split,
  .cosplit {
    grid-template-columns: 1fr;
  }

  .grid {
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 4rem;
    --pad: 1.25rem;
    --sp-section: 3.5rem;
  }

  body {
    font-size: 1rem;
  }

  .brand__mark {
    width: 23px;
    height: 23px;
  }

  .brand__name {
    font-size: 0.9375rem;
  }

  .footer__bottom {
    justify-content: flex-start;
    gap: 1rem;
  }

  .footer__wordmark {
    font-size: 15.2vw;
  }
}

@media (max-width: 640px) {
  .footer__nav {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal,
  .js .reveal-x,
  .js .reveal-scale {
    opacity: 1;
    transform: none;
  }

  .split-line > span {
    transform: none;
  }

  .grain {
    display: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .cursor,
  .grain,
  .page-transition,
  .boot {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section {
    padding-block: 1.5rem;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
  }
}
