/* =========================================================================
   Wisdom Ikoi — Software Engineer × Developer Relations
   style.css — tokens, base, layout, components
   Layout rules that change per breakpoint live in responsive.css
   ========================================================================= */

/* ---------- 0. Fonts (self-hosted, latin subset) ----------
   Archivo carries the voice; JetBrains Mono carries the interface.
   font-display: swap so text is readable before the files land. */
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('../assets/fonts/archivo-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 600;
  font-display: swap; src: url('../assets/fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('../assets/fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo'; font-style: normal; font-weight: 800;
  font-display: swap; src: url('../assets/fonts/archivo-800.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url('../assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url('../assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 700;
  font-display: swap; src: url('../assets/fonts/jetbrains-mono-700.woff2') format('woff2');
}

/* ---------- 1. Tokens ---------- */
:root {
  --bg:        #060708;
  --bg-alt:    #0A0C0D;
  --surface:   #0E1112;
  --surface-2: #131718;

  --line:      #1B2122;
  --line-2:    #2A3234;

  --fg:        #ECEFEA;
  --fg-2:      #98A19A;
  --fg-3:      #5F6864;

  --acc:       #C6FF3D;   /* signal green: state, focus, activity */
  --acc-dim:   #7F9F2C;
  --acc-wash:  rgba(198, 255, 61, 0.08);
  --warn:      #F0A82E;   /* used only for unresolved / friction states */

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1320px;

  --sec-y: clamp(5.5rem, 11vw, 11rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line-2) var(--bg);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

button {
  font: inherit; color: inherit; background: none;
  border: 0; padding: 0; cursor: pointer;
}

::selection { background: var(--acc); color: #07090A; }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.dim { color: var(--fg-3); }

/* Placeholder content that must be replaced before launch. */
.todo {
  color: var(--warn);
  border-bottom: 1px dashed rgba(240, 168, 46, 0.45);
  text-transform: none;
}

/* ---------- 3. Focus + skip link ---------- */
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--acc);
  color: #07090A;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- 4. Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: var(--sec-y); position: relative; }
.section--flush { padding-block: 0; }
.section--alt { background: var(--bg-alt); }
.section--alt + .section--alt { border-top: 1px solid var(--line); }


.seclabel {
  color: var(--acc);
  margin-bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.seclabel::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.h2 {
  font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem);
  max-width: 19ch;
  margin-bottom: 2rem;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--fg);
  line-height: 1.55;
  max-width: 58ch;
}

.section p { color: var(--fg-2); max-width: 62ch; }
.section .lede { color: var(--fg); }

.note-line {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--fg-3);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.75rem;
}
a.note-line:hover { color: var(--acc); }

/* Split-text reveal (JS adds spans; safe fallback if it does not run) */
.h2 .word, .contact__h .word { display: inline-block; }

/* ---------- 5. Scroll rail ---------- */
.rail {
  position: fixed;
  left: 1.15rem;
  top: 0; bottom: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  pointer-events: none;
}
.rail__track {
  width: 1px;
  height: 28vh;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.rail__fill {
  position: absolute;
  inset: 0 0 auto 0;
  height: 0%;
  background: var(--acc);
}
.rail__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--fg-3);
  letter-spacing: 0.1em;
}

/* ---------- 6. Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.nav.is-stuck {
  background: rgba(6, 7, 8, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.35rem var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding 0.35s var(--ease);
}
.nav.is-stuck .nav__inner { padding-block: 0.85rem; }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.nav__brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--acc);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
  background: var(--surface);
  flex: none;
}

.nav__links { display: none; gap: 1.75rem; }
.nav__links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  position: relative;
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--acc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a.is-active { color: var(--fg); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  padding: 0.6rem 0.25rem;
}
.nav__toggle-bars { display: block; width: 20px; }
.nav__toggle-bars i {
  display: block;
  height: 1px;
  background: var(--fg);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__toggle-bars i + i { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] i:first-child { transform: translateY(3px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 5.25rem var(--gut) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list { display: flex; flex-direction: column; }
.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.55rem 0;
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
}
.menu__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--acc);
}
.menu__foot { color: var(--fg-3); margin-top: 1.5rem; }

/* ---------- 7. Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 0 3rem;
  position: relative;
}
.hero::before {
  /* faint grid: infrastructure texture, not decoration-for-decoration's-sake */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(110% 80% at 20% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 1.6rem;
}
.eyebrow .x { color: var(--acc); }

.hero__title {
  font-size: clamp(2.4rem, 1rem + 5.4vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-bottom: 1.9rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }

.hero__lede {
  color: var(--fg-2);
  max-width: 48ch;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  margin-bottom: 2.4rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  right: var(--gut);
  color: var(--fg-3);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero__scroll::after {
  content: "";
  width: 42px; height: 1px;
  background: linear-gradient(to right, var(--acc), transparent);
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  background: transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { border-color: var(--acc); color: var(--acc); }

.btn--solid {
  background: var(--acc);
  border-color: var(--acc);
  color: #07090A;
  font-weight: 700;
}
.btn--solid:hover { background: #D9FF7A; border-color: #D9FF7A; color: #07090A; }

/* ---------- 9. Terminal ---------- */
.term {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), #0A0D0E);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);
  max-width: 460px;
  width: 100%;
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.term__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-2);
}
.term__path {
  margin-left: auto;
  color: var(--fg-3);
  font-size: 0.66rem;
  text-transform: none;
}
.term__body {
  padding: 1.25rem 1.15rem 1.35rem;
  font-size: 0.8rem;
  line-height: 1.9;
  text-transform: none;
  letter-spacing: 0;
}
.term__row { display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 0.35rem; }
.term__prompt { color: var(--acc); }
.caret {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--acc);
  transform: translateY(2px);
}
.term__out { margin: 0; color: var(--fg-2); }
.term__out .arrow { color: var(--acc-dim); margin-right: 0.4rem; }
.term__status {
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 0 0 rgba(198,255,61,0.55);
  flex: none;
}
html.motion .pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(198,255,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,255,61,0); }
}

/* Hidden starting state only when motion is on */
html.motion .term__out,
html.motion .term__status { opacity: 0; }
html.motion .caret { opacity: 0; }

/* ---------- 10. About ---------- */
.about { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.about__text .h2 { max-width: 22ch; }

.quad { display: grid; gap: 0; border-top: 1px solid var(--line); }
.quad li {
  display: grid;
  gap: 0.3rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}
.quad__k { color: var(--acc); }
.quad__v { color: var(--fg-2); font-size: 0.95rem; }

/* ---------- 11. Principles (build / explain / listen / improve) ---------- */
.principles {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(198,255,61,0.045), transparent 70%),
    var(--bg-alt);
  padding-block: var(--sec-y);
}
.principles__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }

.principles__list { display: grid; gap: 0.15rem; }
.principles__list button {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  padding: 0.35rem 0;
  font-size: clamp(2.1rem, 1rem + 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: var(--fg-3);
  transition: color 0.4s var(--ease);
}
.principles__list .num {
  font-size: 0.7rem;
  color: var(--line-2);
  transition: color 0.4s var(--ease);
  flex: none;
}
.principles__list button:hover { color: var(--fg-2); }
.principles__list li { border-bottom: 1px solid var(--line); }
.principles__list button[aria-current="true"] { color: var(--fg); }
.principles__list button[aria-current="true"] .num { color: var(--acc); }

.principles__panels { position: relative; }
.panel { display: none; }
.panel.is-active { display: block; }
.panel__label { color: var(--acc); margin-bottom: 0.6rem; }
.principles__hint { color: var(--fg-3); margin-top: 1rem; text-transform: none; letter-spacing: 0.02em; }

.panel__quote {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 1.1rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--acc);
  max-width: 30ch;
}
.panel p { color: var(--fg-2); max-width: 52ch; }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.tags li {
  border: 1px solid var(--line-2);
  padding: 0.35rem 0.7rem;
  color: var(--fg-2);
  font-size: 0.66rem;
}

/* ---------- 12. Timeline ---------- */
.tl { position: relative; margin-top: 1rem; }
.tl::before {
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.tl::after {
  /* the drawn line, scaled by ScrollTrigger */
  content: "";
  position: absolute;
  left: 4px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--acc);
  transform: scaleY(var(--tl-progress, 0));
  transform-origin: top;
}
html:not(.motion) .tl::after { --tl-progress: 1; opacity: 0.35; }

.tl__item {
  position: relative;
  padding: 0 0 2.6rem 2rem;
  display: grid;
  gap: 0.35rem;
}
.tl__item:last-child { padding-bottom: 0; }

.tl__meta { display: flex; align-items: center; gap: 0.7rem; color: var(--fg-3); }
.tl__dot {
  position: absolute;
  left: 0; top: 0.45rem;
  width: 9px; height: 9px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  border-radius: 50%;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tl__item.is-on .tl__dot { background: var(--acc); border-color: var(--acc); }
.tl__date { text-transform: none; letter-spacing: 0.02em; }

.tl__role {
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.tl__flag {
  color: #07090A;
  background: var(--acc);
  padding: 0.2rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
}
.tl__kicker {
  color: var(--acc);
  margin: 0.45rem 0 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}
.tl__desc { color: var(--fg-2); margin: 0.5rem 0 0.75rem; max-width: 56ch; }
.tl__skills { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; color: var(--fg-3); }
.tl__skills li { font-size: 0.66rem; }
.tl__link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--acc);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.tl__link:hover { border-bottom-color: var(--acc); }

.tl__item.is-highlight .tl__body {
  border-left: 2px solid var(--acc);
  padding-left: 1.1rem;
  margin-left: -1.1rem;
}

/* ---------- 13. Community case ---------- */
.case { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.case__list { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.case__list > div {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.case__list dt { font-weight: 600; letter-spacing: -0.02em; }
.case__list dd { color: var(--fg-2); font-size: 0.95rem; }

.flow { display: grid; gap: 0; align-content: start; }
.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.95rem;
  color: var(--fg-2);
}
.flow li + li { margin-top: 1.6rem; }
.flow li + li::before {
  content: "";
  position: absolute;
  left: 1.6rem; top: -1.6rem;
  width: 1px; height: 1.6rem;
  background: var(--line-2);
}
.flow li + li::after {
  content: "";
  position: absolute;
  left: calc(1.6rem - 3px); top: -0.5rem;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5px solid var(--acc-dim);
}
.flow__i { color: var(--acc); flex: none; }
.flow .is-end {
  border-color: var(--acc-dim);
  color: var(--fg);
  background: var(--acc-wash);
}

/* ---------- 14. Selected work ---------- */
.work { padding-block: var(--sec-y); border-top: 1px solid var(--line); }
.work__head { margin-bottom: 3rem; }
.work__head .h2 { margin-bottom: 0; }

.work__viewport { width: 100%; }
.work__track {
  display: grid;
  gap: 1.25rem;
  padding-inline: var(--gut);
  max-width: var(--maxw);
  margin-inline: auto;
}

.proj {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}

.proj:hover { border-color: var(--line-2); background: var(--surface-2); }

.proj__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}
.proj__idx { color: var(--acc); }
.proj__kind { color: var(--fg-3); text-align: right; }

.proj__title {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  margin-bottom: 1.3rem;
  transition: transform 0.4s var(--ease);
}
.proj:hover .proj__title { transform: translateX(5px); }

.proj__steps { display: grid; gap: 0.85rem; }
.proj__steps p { color: var(--fg-2); font-size: 0.95rem; margin: 0; max-width: 46ch; }
.step {
  display: inline-block;
  color: var(--acc);
  margin-right: 0.5rem;
  font-size: 0.64rem;
}

.proj__link {
  margin-top: auto;
  padding-top: 1.6rem;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}
.proj__link::after {
  content: "";
  width: 0; height: 1px;
  background: var(--acc);
  transition: width 0.3s var(--ease);
}
.proj__link:hover { color: var(--acc); }
.proj__link:hover::after { width: 24px; }

.proj__note { margin-top: 1.4rem; text-transform: none; font-size: 0.7rem; }

.proj--end {
  align-items: flex-start;
  justify-content: center;
  gap: 1.2rem;
  border-style: dashed;
  background: transparent;
}
.proj--end p { color: var(--fg-3); }

/* ---------- 14b. Live project previews ----------
   The iframe is inert: pointer-events off, so hovering, the custom cursor
   and the card's own links all keep working over the top of it. */
.proj { position: relative; overflow: hidden; }

.proj__preview {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  z-index: 2;
}
.proj.is-previewing .proj__preview { opacity: 1; visibility: visible; }
.proj.is-clickable { cursor: pointer; }
.proj[data-preview-mode="default"] .proj__visit { display: none; }

.proj__stage {
  transform-origin: top left;
  width: 1280px;
  pointer-events: none;
  filter: saturate(0.9);
}
.proj__frame {
  width: 1280px;
  height: 860px;   /* replaced per card by previews.js so it fills the card */
  border: 0;
  background: #0E1112;
  pointer-events: none;
}

/* Center fixed-format landscape and portrait demos within their cards. */
.proj[data-preview-layout] .proj__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
}

/* Loading and failure states sit under the frame area. */
.proj__preview::before {
  content: "Loading preview";
  position: absolute;
  inset: auto 0 50% 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.proj.is-loading .proj__preview::before { opacity: 1; }
.proj.is-ready .proj__preview::before { content: none; }

.proj__fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--warn);
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.proj.is-failed .proj__fallback { display: grid; }
.proj.is-failed .proj__stage { display: none; }

.proj__visit {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--acc);
  color: #07090A;
  font-weight: 700;
  font-size: 0.7rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.9);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.proj__visit::after { content: "\2197"; }
.proj__visit:hover { background: #D9FF7A; transform: translateY(-2px); }

/* A card with a preview hints that there is something behind it.
   Absolutely placed so it cannot disturb the card's own layout. */
.proj[data-preview]::after {
  content: "Hover to preview";
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  opacity: 0.75;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.proj.is-previewing::after { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .proj[data-preview]::after { content: none; }
}

.proj--end__note { color: var(--fg-3); font-size: 0.9rem; max-width: 24ch; }

/* ---------- 15. The Lab ---------- */
.lab__head { margin-bottom: 3rem; }
.lab__head .h2 { margin-bottom: 1.2rem; }
.lab__head .lede { color: var(--acc); margin-bottom: 1.2rem; }

.lab { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }

.lab__subject-v { color: var(--fg); }
.lab__subject {
  color: var(--fg-3);
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0.02em;
}

.stack { display: grid; gap: 0; }
.stack li {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.15rem;
  display: grid;
  gap: 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  justify-items: start;
}
.stack li + li { margin-top: 1.5rem; }
.stack li + li::before {
  content: "";
  position: absolute;
  left: 50%; top: -1.5rem;
  width: 1px; height: 1.5rem;
  background: var(--line-2);
}
.stack__n { color: var(--fg-3); }
/* Where that layer actually runs, kept visually subordinate to the tech. */
.stack__h {
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.66rem;
  border: 1px solid var(--line-2);
  padding: 0.15rem 0.45rem;
  margin-top: 0.4rem;
}
.stack .is-host .stack__h { color: var(--acc); border-color: var(--acc-dim); }
.stack .is-host {
  border-color: var(--acc);
  background: var(--acc-wash);
  color: var(--fg);
}
.stack .is-host .stack__n { color: var(--acc); }

.lab__link { margin-top: 1.4rem; color: var(--fg-2); }
.lab__link a { color: var(--acc); border-bottom: 1px solid transparent; }
.lab__link a:hover { border-bottom-color: var(--acc); }
.lab__link .sep { color: var(--line-2); margin-inline: 0.4rem; }

.lab__notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.note {
  padding: 1.35rem 0 1.35rem 1.1rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.note__h {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.note .tag {
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  padding: 0.15rem 0.45rem;
  font-size: 0.58rem;
}
.note p { color: var(--fg-2); font-size: 0.95rem; }
.note--good { border-left-color: var(--acc-dim); }
.note--good .tag { color: var(--acc); border-color: var(--acc-dim); }
.note--warn { border-left-color: var(--warn); }
.note--warn .tag { color: var(--warn); border-color: rgba(240,168,46,0.5); }

.loop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.35rem;
  align-items: center;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.loop li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line);
  padding: 0.4rem 0.7rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.loop li.is-on { color: var(--acc); border-color: var(--acc-dim); }
.loop li:not(:last-child)::after {
  content: "→";
  color: var(--line-2);
  margin-left: 0.75rem;
}

/* ---------- 16. Writing ---------- */
.cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card__topic { color: var(--acc); }
.card__title { font-size: 1.2rem; letter-spacing: -0.025em; line-height: 1.25; }
.card__desc { color: var(--fg-2); font-size: 0.92rem; margin: 0; }
.card__cta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}
.card__cta:hover { color: var(--acc); }

.article-card {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  cursor: pointer;
}
.article-card__preview,
.article-card__details {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.article-card__preview {
  justify-content: space-between;
  background: #f4f4ef;
  color: #111;
}
.article-card__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: Georgia, serif;
  font-size: 1.15rem;
}
.article-card__mark {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.article-card__headline {
  max-width: 17ch;
  font-family: Georgia, serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
}
.article-card__byline { color: #555; font-size: 0.68rem; }
.article-card__details {
  gap: 0.7rem;
  background: var(--surface);
  opacity: 0;
  transform: translateY(0.75rem);
}
.article-card:hover .article-card__preview,
.article-card:focus-visible .article-card__preview {
  opacity: 0;
  transform: translateY(-0.75rem);
}
.article-card:hover .article-card__details,
.article-card:focus-visible .article-card__details {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 17. DevRel model ---------- */
.devrel { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }

.model {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  place-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.model__top    { grid-area: 1 / 2; color: var(--fg); }
.model__left   { grid-area: 2 / 1; color: var(--acc); justify-self: start; }
.model__core   { grid-area: 2 / 2; }
.model__right  { grid-area: 2 / 3; color: var(--acc); justify-self: end; }
.model__bottom { grid-area: 3 / 2; color: var(--fg); }

.model__core {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--acc);
  background: var(--acc-wash);
  position: relative;
  z-index: 1;
}
.model__top, .model__left, .model__right, .model__bottom {
  position: relative;
  z-index: 1;
  background: var(--surface);
  padding: 0.2rem 0.5rem;
}
.model__left::after   { content: " \2190"; color: var(--acc-dim); }
.model__right::before { content: "\2192 "; color: var(--acc-dim); }
.model__top::after    { content: "\2191"; display: block; color: var(--acc-dim); margin-top: 0.2rem; }
.model__bottom::before{ content: "\2193"; display: block; color: var(--acc-dim); margin-bottom: 0.2rem; }

.model__axis { position: absolute; background: var(--line-2); z-index: 0; }
.model__axis--v { left: 50%; top: 12%; bottom: 12%; width: 1px; }
.model__axis--h { top: 50%; left: 12%; right: 12%; height: 1px; }

.points { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 2rem; }
.points > div {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.points dt { font-weight: 600; letter-spacing: -0.02em; }
.points dd { color: var(--fg-2); font-size: 0.95rem; }

/* ---------- 18. Approach ---------- */
.why { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 1rem; }
.why__col { padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
.why__k { color: var(--acc); margin-bottom: 0.75rem; }
.why__col p { color: var(--fg-2); max-width: 46ch; }

/* ---------- 19. Contact ---------- */
.contact { padding-bottom: clamp(4rem, 8vw, 7rem); }
.contact__h {
  font-size: clamp(2.1rem, 1rem + 5.4vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 16ch;
  margin-bottom: 3rem;
}

.links { border-top: 1px solid var(--line); }
.links a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: baseline;
  gap: 0.5rem 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s var(--ease), padding-left 0.3s var(--ease);
}
.links a:hover { padding-left: 0.75rem; color: var(--acc); }
.links__k { color: var(--fg-3); transition: color 0.25s var(--ease); }
.links__k svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}
.links a:hover .links__k { color: var(--acc); }
.links__v { color: var(--fg-2); font-size: 0.95rem; word-break: break-word; justify-self: start; }

.bigcta {
  margin-top: 3.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.9rem;
  background: var(--acc);
  color: #07090A;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  will-change: transform;
  transition: background 0.25s var(--ease);
}
.bigcta:hover { background: #D9FF7A; }
.bigcta__mark {
  width: 9px; height: 9px;
  background: #07090A;
  transition: transform 0.3s var(--ease);
}
.bigcta:hover .bigcta__mark { transform: rotate(45deg); }
.works-contact__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2rem, 7vw, 7rem);
}
.works-contact__actions .bigcta { flex: 0 0 auto; }
.social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.social-icons a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--fg-3);
  border: 1px solid var(--line-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-icons a:hover { color: var(--acc); border-color: var(--acc); transform: translateY(-2px); }
.social-icons svg { width: 1.05rem; height: 1.05rem; fill: currentColor; }
@media (max-width: 42rem) {
  .works-contact__actions { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .social-icons { justify-content: flex-start; }
}

/* ---------- Reviews ---------- */
.reviews-section {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(198, 255, 61, 0.035), transparent 42%),
    var(--bg-alt);
}
.reviews__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.reviews__head .h2 { max-width: 20ch; margin-bottom: 1rem; }
.reviews__grid { display: grid; gap: 1.25rem; }
.review-card {
  position: relative;
  isolation: isolate;
  min-height: 21rem;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(236, 239, 234, 0.14);
  border-radius: 8px;
  background: rgba(24, 30, 30, 0.58);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    inset 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px rgba(198, 255, 61, 0.08),
    0 24px 60px -36px rgba(0, 0, 0, 0.95);
}
.review-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(300deg, rgba(198, 255, 61, 0.055), transparent 35%);
  pointer-events: none;
}
.review-card__head {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.review-card__head > div:nth-child(2) { min-width: 0; }
.review-card__avatar {
  display: grid;
  place-items: center;
  width: 3.4rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--acc);
  border-radius: 50%;
  background: rgba(198, 255, 61, 0.08);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; }
.review-card__name { font-size: 1.05rem; line-height: 1.2; }
.review-card__linkedin {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--acc-dim);
  color: var(--acc);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}
.review-card__company {
  margin-top: 0.25rem;
  color: var(--fg-3);
  font-size: 0.78rem;
  line-height: 1.4;
}
.review-card__rating {
  color: #f4c542;
  font-size: 0.9rem;
  letter-spacing: 0;
  white-space: nowrap;
}
.review-card__quote {
  margin: 0;
  max-width: 76ch;
  color: var(--fg-2);
  font-size: 0.96rem;
  line-height: 1.7;
}
@media (min-width: 56.25rem) {
  .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card:last-child { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 35rem) {
  .review-card { min-height: 0; }
  .review-card__head { grid-template-columns: 3rem minmax(0, 1fr); }
  .review-card__avatar { width: 3rem; }
  .review-card__rating { grid-column: 2; }
}

/* ---------- 19b. Projects page ---------- */
.pagehead { padding-top: clamp(7rem, 12vw, 10rem); }
.pagehead__h {
  font-size: clamp(2.2rem, 1rem + 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 1.5rem;
}

.brand-marquee {
  padding-block: clamp(2rem, 4vw, 3.5rem);
  border-block: 1px solid var(--line);
  background: #101415;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    inset 0 -1px rgba(255, 255, 255, 0.025);
}
.brand-marquee__track {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 4rem);
}
.brand-marquee__group {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
}
.brand-marquee__group[aria-hidden="true"] { display: none; }
.brand-marquee__logo {
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(3rem, 4vw, 3.75rem);
  padding: 0.5rem;
  border: 0;
  background: #121617;
}
.brand-marquee__logo img,
.brand-marquee__logo--samsung img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 1.9rem;
  object-fit: contain;
  object-position: center;
}
.brand-marquee__wordmark {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(0.56rem, 0.68vw, 0.72rem);
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
@media (max-width: 75rem) {
  .brand-marquee__group { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
@media (max-width: 56.25rem) {
  .brand-marquee__group { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 35rem) {
  .brand-marquee__group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .brand-marquee__logo { height: 3rem; padding: 0.45rem; }
}

/* Phones and small tablets: one row of logos on an endless loop instead of
   a tall grid. The second group is an exact copy, so -50% lands seamlessly. */
@media (max-width: 56.25rem) {
  .brand-marquee { overflow: hidden; padding-block: 1.5rem; }
  .brand-marquee__track {
    display: flex;
    width: max-content;
    padding-inline: 0;
    animation: brand-loop 80s linear infinite;
  }
  .brand-marquee__group,
  .brand-marquee__group[aria-hidden="true"] {
    display: flex;
    gap: 0.6rem;
    padding-right: 0.6rem;   /* equals the gap, so the seam is invisible */
  }
  .brand-marquee__logo { flex: none; width: 6.5rem; height: 3rem; padding: 0.45rem; }
  .brand-marquee__wordmark { font-size: 0.62rem; }
}
@keyframes brand-loop { to { transform: translateX(-50%); } }
@media (max-width: 56.25rem) and (prefers-reduced-motion: reduce) {
  .brand-marquee { overflow-x: auto; }
  .brand-marquee__track { animation: none; }
  .brand-marquee__group[aria-hidden="true"] { display: none; }
}

/* Copy that is only true with a mouse, or only true on touch. */
.only-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .only-hover { display: none; }
  .only-touch { display: inline; }
}
.nav__back {
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  padding: 0.5rem 0.9rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav__back:hover { color: var(--acc); border-color: var(--acc); }
.nav__back::before { content: "\2190"; margin-right: 0.45rem; }

/* Card grid: the projects page is a grid, not the pinned horizontal track. */
.grid { display: grid; gap: 1.25rem; }
.grid .proj { width: auto; min-height: 20rem; }
.grid .proj__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }

.richmedia-showcase {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.richmedia-showcase__head {
  display: grid;
  gap: 0.75rem;
  max-width: 44rem;
  margin-bottom: 2rem;
}
.richmedia-showcase__head .seclabel { margin-bottom: 0; }
.richmedia-showcase__title {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  line-height: 1.05;
}
.richmedia-showcase__copy { color: var(--fg-2); }
.richmedia-showcase .grid {
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: start;
  width: min(1260px, calc(100vw - (2 * var(--gut))));
  max-width: none;
}
.richmedia-showcase .proj {
  width: 300px;
  height: 600px;
  min-height: 600px;
}
@media (max-width: 21.75rem) {
  .richmedia-showcase .grid { grid-template-columns: minmax(0, 1fr); }
  .richmedia-showcase .proj {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 2;
  }
}

.foot__inner a { border-bottom: 1px solid var(--line-2); }
.foot__inner a:hover { color: var(--acc); border-bottom-color: var(--acc); }

/* ---------- 20. Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 2.25rem; }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}
.foot__inner p { margin: 0; max-width: none; }

/* ---------- 21. Custom cursor ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  pointer-events: none;
  mix-blend-mode: difference;
  display: grid;
  place-items: center;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--acc);
  transform: translate(-50%, -50%);
}
.cursor__text {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #07090A;
  opacity: 0;
  white-space: nowrap;
}
.cursor.is-label { width: 62px; height: 62px; }
.cursor.is-label .cursor__text { opacity: 1; }

/* ---------- 22. Reveal states (motion only) ---------- */
html.motion [data-reveal],
html.motion [data-reveal-group] > *,
html.motion [data-hero] { opacity: 0; }
html.motion .hero__title .line span { transform: translateY(102%); }


/* ---------- 23. Placeholders (keep last) ----------
   Element+class selectors so unreplaced copy always reads as unfinished,
   whatever component it sits in. */
p.todo, span.todo, h3.todo, li.todo, a.todo, .card__title.todo, .links__v.todo {
  color: var(--warn);
}

/* A link whose href is still a placeholder: flagged, and not clickable. */
a.is-dead, .proj__link.is-dead, .card__cta.is-dead, .links a.is-dead, .lab__link a.is-dead {
  color: var(--warn);
  cursor: not-allowed;
  opacity: 0.9;
}
/* The solid CTA keeps its dark label: amber on green fails contrast. */
.bigcta.is-dead { color: #07090A; opacity: 0.6; }
