/* ==========================================================================
   ApplyLogics Studio — design system
   base.css: tokens · type · layout · shared components (nav, buttons, labels,
   cursor, pixel transition, footer). Page-specific styles live in home.css,
   lab.css and contact.css.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Mona Sans";
  src: url("../assets/fonts/mona-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colour — black with a breath of green, bone instead of white, one signal */
  --ink: #060807;
  --ink-2: #0b0e0c;
  --ink-3: #121613;
  --ink-4: #1a1f1b;
  --bone: #edebe4;
  --bone-2: #a9aba3;
  --bone-3: #7f827b;
  --signal: #00ff88;
  --signal-deep: #00b862;
  --signal-ink: #00170c;
  --line: rgba(237, 235, 228, 0.1);
  --line-2: rgba(237, 235, 228, 0.2);

  /* the palette history arrives in */
  --era-fire: #ff5a1f;
  --era-wheel: #d6c3a1;
  --era-press: #f3efe6;
  --era-light: #ffc247;
  --era-web: #6f9bff;
  --era-mind: #00ff88;

  /* contextual (flipped inside .theme-bone) */
  --bg: var(--ink);
  --fg: var(--bone);
  --fg-2: var(--bone-2);
  --fg-3: var(--bone-3);
  --rule: var(--line);
  --rule-2: var(--line-2);
  --accent: var(--signal);

  /* type */
  --font-display: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", Times, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --t-hero: clamp(3.1rem, 12.6vw, 15.5rem);
  --t-display: clamp(2.5rem, 7.4vw, 8rem);
  --t-title: clamp(2rem, 4.6vw, 4.75rem);
  --t-lead: clamp(1.2rem, 1.75vw, 1.75rem);
  --t-body: clamp(1rem, 1.05vw, 1.125rem);
  --t-small: 0.875rem;
  --t-label: 0.6875rem;

  /* space */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(6rem, 14vw, 13rem);
  --nav-h: 4.5rem;
  --px: clamp(4px, 0.42vw, 7px); /* one "pixel" of the system */

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-snap: cubic-bezier(0.2, 0.9, 0.1, 1);
}

.theme-bone {
  --bg: var(--bone);
  --fg: var(--ink);
  --fg-2: #3c403b;
  --fg-3: #5d615b;
  --rule: rgba(6, 8, 7, 0.14);
  --rule-2: rgba(6, 8, 7, 0.3);
  --accent: var(--ink);
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink-4) var(--ink);
  scrollbar-width: thin;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-display);
  font-size: var(--t-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
::selection {
  background: var(--signal);
  color: var(--signal-ink);
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
.theme-bone :focus-visible {
  outline-color: var(--ink);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--signal);
  color: var(--signal-ink);
  font-family: var(--font-mono);
  font-size: var(--t-small);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* ---------- Type ---------- */
.t-hero {
  font-size: var(--t-hero);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.t-display {
  font-size: var(--t-display);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.t-title {
  font-size: var(--t-title);
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.t-lead {
  font-size: var(--t-lead);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.t-body {
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.t-mono {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
}
/* the italic serif voice — the "studio" half of the name */
.serif,
.t-hero em,
.t-display em,
.t-title em,
.t-lead em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  letter-spacing: -0.02em;
  text-transform: none;
}
.t-hero em {
  font-size: 1.12em;
  letter-spacing: -0.035em;
}
.t-display em,
.t-title em {
  font-size: 1.08em;
}
.accent {
  color: var(--accent);
}
.dim {
  color: var(--fg-2);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.6vw, 1.75rem);
}
.section {
  position: relative;
  padding-block: var(--section);
}
.rule {
  height: 1px;
  background: var(--rule);
  border: 0;
  margin: 0;
}

/* section label:  ■ 01 — Manifesto */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  background: var(--accent);
  flex: none;
}
.label b {
  font-weight: 500;
  color: var(--fg);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.75rem, 1.6vw, 1.75rem);
  row-gap: 1.5rem;
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6.5rem);
}
.section-head > .label {
  grid-column: 1 / -1;
}
.section-head > .t-display,
.section-head > .t-title {
  grid-column: 1 / span 12;
}
.section-head > .section-head__aside {
  grid-column: 1 / -1;
  max-width: 34rem;
}
@media (min-width: 62rem) {
  /* heading runs the full measure; the aside hangs under it on the right */
  .section-head > .t-display,
  .section-head > .t-title {
    grid-column: 1 / -1;
    max-width: 13.5em;
  }
  .section-head > .section-head__aside {
    grid-column: 9 / -1;
    margin-top: 0.5rem;
  }
}

/* crop-mark frame — four pixel corners on any block */
.frame {
  position: relative;
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  --c: var(--frame-c, var(--accent));
  --s: 10px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat;
}
.frame::after {
  background:
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-bd: var(--rule-2);
  --btn-fill: var(--fg);
  --btn-fill-fg: var(--bg);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9em;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease-out);
}
.btn--primary {
  --btn-bg: var(--signal);
  --btn-fg: var(--signal-ink);
  --btn-bd: var(--signal);
  --btn-fill: var(--bone);
  --btn-fill-fg: var(--ink);
}
.theme-bone .btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  --btn-fill: var(--signal);
  --btn-fill-fg: var(--signal-ink);
}
.btn--lg {
  min-height: 4rem;
  padding: 0 2rem;
  font-size: 0.8125rem;
}
.btn__label {
  position: relative;
  display: inline-block;
  overflow: hidden;
  line-height: 1.6;
}
.btn__label > span {
  display: block;
  transition: transform 0.55s var(--ease-out);
}
.btn__label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 100%;
  transition: transform 0.55s var(--ease-out);
}
.btn__icon {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  transition: transform 0.55s var(--ease-out);
}
@media (hover: hover) {
  .btn:hover {
    color: var(--btn-fill-fg);
    border-color: var(--btn-fill);
  }
  .btn:hover::before {
    transform: none;
  }
  .btn:hover .btn__label > span,
  .btn:hover .btn__label::after {
    transform: translateY(-100%);
  }
  .btn:hover .btn__icon {
    transform: translateX(0.3em);
  }
}
.btn:active {
  scale: 0.98;
}

/* text link with a drawn underline */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 0.1em;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}
@media (hover: hover) {
  .link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.link--on::after {
  transform: scaleX(1);
}

/* ---------- Pixel glyph canvas ---------- */
.px-glyph {
  display: block;
  width: 3rem;
  aspect-ratio: 1;
  image-rendering: pixelated;
}
/* glyphs are drawn by script; without it, don't reserve empty squares */
html:not(.js) .px-glyph {
  display: none;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: var(--gutter);
  color: var(--bone);
  transition: transform 0.6s var(--ease-out), color 0.35s linear;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  bottom: -45%;
  background: linear-gradient(to bottom, rgba(6, 8, 7, 0.94), rgba(6, 8, 7, 0.78) 55%, rgba(6, 8, 7, 0));
  opacity: 0;
  transition: opacity 0.4s linear;
  pointer-events: none;
}
.nav.is-scrolled::before {
  opacity: 1;
}
.nav.is-hidden {
  transform: translateY(-110%);
}
.nav[data-theme="bone"] {
  color: var(--ink);
}
.nav[data-theme="bone"]::before {
  background: linear-gradient(to bottom, rgba(237, 235, 228, 0.96), rgba(237, 235, 228, 0.8) 55%, rgba(237, 235, 228, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 650;
  font-stretch: 104%;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  color: var(--signal);
}
.nav[data-theme="bone"] .brand__mark {
  color: var(--ink);
}
.brand__mark .mark-bg {
  fill: currentColor;
}
.brand__mark .mark-fg {
  fill: var(--ink);
}
.nav[data-theme="bone"] .brand__mark .mark-fg {
  fill: var(--bone);
}
.brand__name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: -0.01em;
  margin-left: 0.18em;
  color: var(--signal);
}
.nav[data-theme="bone"] .brand__name em {
  color: inherit;
}

.nav__links {
  display: none;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
}
.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-block: 0.5rem;
  opacity: 0.72;
  transition: opacity 0.3s linear;
}
.nav__link::before {
  content: "";
  position: absolute;
  left: -0.9em;
  top: 50%;
  width: 0.45em;
  height: 0.45em;
  margin-top: -0.225em;
  background: var(--signal);
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}
.nav[data-theme="bone"] .nav__link::before {
  background: var(--ink);
}
.nav__link:hover,
.nav__link.is-active {
  opacity: 1;
}
.nav__link.is-active::before {
  transform: scale(1);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__clock {
  display: none;
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.nav__cta {
  display: none;
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.6875rem;
}
.nav[data-theme="bone"] .nav__cta {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  --btn-bd: var(--ink);
  --btn-fill: var(--signal);
  --btn-fill-fg: var(--signal-ink);
}
.nav__burger {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  margin-right: -0.6rem;
}
.nav__burger i {
  position: absolute;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}
.nav__burger i:first-child {
  transform: translateY(-4px);
}
.nav__burger i:last-child {
  transform: translateY(4px);
}
.nav__burger[aria-expanded="true"] i:first-child {
  transform: rotate(45deg);
}
.nav__burger[aria-expanded="true"] i:last-child {
  transform: rotate(-45deg);
}
@media (min-width: 62rem) {
  .nav__links {
    display: flex;
  }
  .nav__cta {
    display: inline-flex;
  }
  .nav__burger {
    display: none;
  }
}
@media (min-width: 80rem) {
  .nav__clock {
    display: block;
  }
}

/* full-screen menu (small screens) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  background: var(--ink);
  color: var(--bone);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s 0.8s;
  overflow-y: auto;
}
.menu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu__list {
  display: grid;
  gap: 0.25rem;
}
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.4rem;
  font-size: clamp(2.6rem, 13vw, 4.5rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.04em;
  line-height: 1;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.menu__link small {
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  color: var(--signal);
  transform: translateY(-0.4em);
}
.menu__link > span {
  display: block;
  transform: translateY(110%);
  transition: transform 0.9s var(--ease-out);
}
.menu.is-open .menu__link > span {
  transform: none;
  transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
}
.menu__foot {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  color: var(--bone-2);
}
.menu__foot a {
  color: var(--bone);
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
}
html.has-cursor .cursor {
  display: block;
}
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [role="button"],
html.has-cursor [data-cursor] {
  cursor: none;
}
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select {
  cursor: auto;
}
.cursor__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: var(--signal);
  mix-blend-mode: difference;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out),
    opacity 0.25s linear, background-color 0.25s linear;
}
.cursor__label {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  margin: -2.75rem 0 0 -2.75rem;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}
.cursor.is-link .cursor__dot {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}
.cursor.is-label .cursor__dot {
  opacity: 0;
}
.cursor.is-label .cursor__label {
  transform: scale(1);
}
.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__label {
  opacity: 0;
}
.cursor.is-down .cursor__dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 150;
  width: 200%;
  height: 200%;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .grain {
    animation: grain 0.9s steps(6) infinite;
  }
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 6%); }
  80% { transform: translate(5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Pixel transition (page cover / reveal) ---------- */
.pixel-wipe {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  pointer-events: none;
}
.pixel-wipe i {
  background: var(--ink);
  opacity: 0;
  /* overlap neighbours by a hair so no seams show while covered */
  outline: 1px solid var(--ink);
  outline-offset: -0.5px;
}
.pixel-wipe.is-covering {
  pointer-events: auto;
}
/* before JS runs on a page we arrived at through a transition, stay covered */
html.is-arriving:not(.no-boot) body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 299;
  background: var(--ink);
}

/* ---------- Reveal primitives (JS adds motion; without JS everything is visible) ---------- */
.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
[class*="line-mask"] {
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.footer__top {
  display: grid;
  gap: 3rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer__lead {
  grid-column: 1 / -1;
  max-width: 30rem;
}
.footer__lead p {
  margin-top: 1.25rem;
}
.footer__col h3 {
  margin-bottom: 1.25rem;
  color: var(--bone-3);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.footer__col ul {
  display: grid;
  gap: 0.55rem;
}
.footer__col a,
.footer__col span {
  font-size: 0.9875rem;
  color: var(--bone);
}
.footer__col--contact {
  grid-column: 1 / -1;
}
.footer__col--contact a {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
@media (min-width: 48rem) {
  .footer__top {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .footer__lead {
    grid-column: 1 / span 12;
  }
  .footer__col {
    grid-column: span 4;
  }
  .footer__col--contact {
    grid-column: span 4;
  }
}
@media (min-width: 72rem) {
  .footer__lead {
    grid-column: 1 / span 4;
  }
  .footer__col {
    grid-column: span 2;
  }
  .footer__col--contact {
    grid-column: 9 / -1;
  }
}
.footer__word {
  margin: clamp(3.5rem, 9vw, 8rem) 0 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.12em;
  font-size: clamp(2.4rem, 13vw, 17rem);
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.055em;
  line-height: 0.8;
  white-space: nowrap;
  user-select: none;
}
.footer__word span {
  display: inline-block;
}
.footer__word em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.52em;
  letter-spacing: -0.02em;
  color: var(--signal);
  align-self: flex-start;
  margin-top: 0.16em;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--bone-3);
  font-family: var(--font-mono);
  font-size: var(--t-label);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.footer__bottom a:hover {
  color: var(--bone);
}
.live-dot {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.6em;
  background: var(--signal);
  vertical-align: 0.05em;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: blink 1.6s steps(2, jump-none) infinite;
  }
}
@keyframes blink {
  50% { opacity: 0.25; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}
