:root {
  --paper: #f4f1ea;
  --paper-2: #e9e3d6;
  --ink: #121212;
  --ink-2: #1d1d1b;
  --muted: #5b5850;
  --tomato: #ff5533;
  --cobalt: #2b44ff;
  --sun: #ffd23f;
  --line: rgba(18, 18, 18, 0.14);
  --line-light: rgba(244, 241, 234, 0.16);

  --f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 6px;
}

.section--cobalt :focus-visible,
.section--ink :focus-visible {
  outline-color: var(--sun);
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main {
  overflow-x: clip;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- shared bits ---------- */

.kicker {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.btn--ink:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.btn--line {
  background: transparent;
}

.btn--line:hover {
  background: var(--sun);
}

.btn--lg {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  padding: 1em 1.6em;
}

.round-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.round-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.meta li:not(:last-child)::after {
  content: "/";
  margin-left: 14px;
  opacity: 0.5;
}

.section {
  padding-block: clamp(72px, 10vw, 140px);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--cobalt {
  background: var(--cobalt);
  color: #fff;
}

.section--tomato {
  background: var(--tomato);
  color: var(--ink);
}

.section-head {
  max-width: 860px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  font-weight: 750;
  font-stretch: 88%;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-intro {
  margin-top: 22px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  opacity: 0.82;
}

/* reveal on scroll (only when JS runs) */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--tomato);
  transition: transform 0.4s var(--ease);
}

.brand__mark svg {
  width: 24px;
}

.brand:hover .brand__mark {
  transform: rotate(-8deg) scale(1.05);
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav__links a:hover {
  background: var(--paper-2);
}

.lang {
  display: flex;
  padding: 3px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.lang a {
  padding: 5px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.lang a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.lang a:not([aria-current]):hover {
  background: var(--sun);
}

@media (max-width: 760px) {
  .nav__links {
    display: none;
  }

  .lang {
    margin-left: auto;
  }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(28px, 5vw, 64px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.pulse {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tomato);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--tomato);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

.hero__title {
  margin: 0.18em 0 0.28em;
  font-size: clamp(4.2rem, 14vw, 12.5rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__title .line > span {
  display: inline-block;
  animation: rise 1s var(--ease) both;
}

.hero__title .line:nth-child(2) > span {
  animation-delay: 0.12s;
}

.hero__title i {
  font-style: normal;
  color: var(--tomato);
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
}

.hero__lead {
  max-width: 36ch;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  animation: fade-up 0.9s 0.3s var(--ease) both;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: fade-up 0.9s 0.42s var(--ease) both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero__photo {
  position: relative;
  animation: photo-in 1.1s 0.15s var(--ease) both;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--ink);
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
}

.sticker {
  position: absolute;
  left: -46px;
  bottom: 38px;
  width: clamp(112px, 11vw, 150px);
  transform: rotate(-12deg);
}

.sticker__bg {
  fill: var(--sun);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.sticker text {
  font-family: var(--f-mono);
  font-size: 14.5px;
  font-weight: 500;
  fill: var(--ink);
}

.sticker__spin {
  transform-origin: 100px 100px;
  animation: spin 22s linear infinite;
}

.sticker__wave {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.wave {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: clamp(36px, 6vw, 72px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.wave svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.wave path,
.notfound__wave path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s 0.5s var(--ease) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.wave__label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wave__label--end {
  color: var(--tomato);
  font-weight: 500;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    max-width: 420px;
    margin-left: auto;
    margin-right: 8px;
  }

  .sticker {
    left: -24px;
  }
}

@media (max-width: 560px) {
  .wave {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .wave svg {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .wave__label--end {
    text-align: right;
  }
}

/* ---------- marquee ---------- */

.marquee {
  padding-block: 10px;
  background: var(--ink);
}

.marquee__band {
  display: flex;
  overflow: hidden;
  background: var(--sun);
  border-block: 2px solid var(--ink);
  transform: rotate(-1.4deg) scale(1.02);
}

.marquee__track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding: 14px 14px;
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  white-space: nowrap;
  animation: marquee 38s linear infinite;
}

.marquee__track .sep {
  color: var(--tomato);
  font-size: 0.8em;
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- talks ---------- */

.talks {
  padding-top: clamp(64px, 9vw, 120px);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px) clamp(32px, 6vw, 88px);
  padding-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line-light);
}

.feature__title {
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--sun);
}

.feature__sub {
  margin-top: 14px;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.feature__summary {
  align-self: end;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  opacity: 0.86;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink);
}

.stats__value {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 750;
  font-stretch: 82%;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stats li:nth-child(2) .stats__value {
  color: var(--tomato);
}

.stats__label {
  font-size: 0.92rem;
  opacity: 0.72;
}

@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* fragments carousel */

.frags {
  padding-block: clamp(48px, 6vw, 72px);
}

.frags__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.frags__ctrl {
  display: flex;
  align-items: center;
  gap: 12px;
}

.frags__count {
  min-width: 64px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.85rem;
}

.frags__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 470px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.frags__track::-webkit-scrollbar {
  display: none;
}

.frag {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 360px;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.frag--ink {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
}

.frag--cobalt {
  background: var(--cobalt);
  color: #fff;
}

.frag--sun {
  background: var(--sun);
  color: var(--ink);
}

.frag--tomato {
  background: var(--tomato);
  color: var(--ink);
}

.frag__n {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  opacity: 0.7;
}

.frag blockquote p {
  font-family: var(--f-serif);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.frag blockquote p::before {
  content: "“";
  display: block;
  height: 0.5em;
  font-size: 2.6em;
  line-height: 1;
  opacity: 0.4;
}

.frag__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

/* correction */

.correction {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1.5px dashed var(--line-light);
  border-radius: var(--radius);
}

.stamp {
  position: absolute;
  top: -16px;
  left: clamp(20px, 3vw, 40px);
  padding: 6px 14px;
  background: var(--tomato);
  color: var(--ink);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-3deg);
}

.correction__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
}

.correction__card p {
  margin-top: 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.3;
}

.correction__year {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  opacity: 0.7;
}

.correction__card--before p {
  opacity: 0.78;
  text-decoration: line-through;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 1.5px;
}

.correction__card--after .correction__year {
  color: var(--sun);
  opacity: 1;
}

.correction__arrow {
  font-size: 2rem;
  color: var(--tomato);
}

.correction__quote {
  margin-top: clamp(24px, 3vw, 36px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line-light);
}

.correction__quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
}

.correction__quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

@media (max-width: 760px) {
  .correction__grid {
    grid-template-columns: 1fr;
  }

  .correction__arrow {
    transform: rotate(90deg);
    justify-self: start;
  }
}

/* other talks */

.talk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}

.talk {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.3s, background-color 0.3s;
}

.talk__head,
.talk__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.talk__body {
  flex: 1;
}

/* The first talk (Cloudflare Connect) gets the full row, split in two columns. */
.talk:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px clamp(28px, 5vw, 64px);
}

.talk:first-child h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-stretch: 85%;
  line-height: 1;
}

.talk:first-child .talk__quote p {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

.talk:hover {
  border-color: rgba(244, 241, 234, 0.4);
  background: var(--ink-2);
}

.talk h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.talk p {
  font-size: 0.98rem;
  opacity: 0.82;
}

.talk__quote p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--sun);
  opacity: 1;
}

.talk .talk__with {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  opacity: 0.65;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tags li {
  padding: 4px 10px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
}

.talk__link {
  align-self: flex-start;
  font-weight: 600;
  text-decoration-color: var(--tomato);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.talk__link:hover {
  color: var(--sun);
}

@media (max-width: 760px) {
  .talk-grid,
  .talk:first-child {
    grid-template-columns: 1fr;
  }
}

/* archive */

.archive {
  margin-top: clamp(56px, 7vw, 88px);
}

.archive ol {
  margin-top: 18px;
  border-top: 1px solid var(--line-light);
}

.archive li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 16px;
  align-items: baseline;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-light);
  transition: padding 0.3s var(--ease), color 0.3s;
}

.archive li:hover {
  padding-left: 10px;
  color: var(--sun);
}

.archive__year {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  opacity: 0.7;
}

.archive__title {
  font-size: 1.08rem;
  font-weight: 600;
}

.archive__where {
  font-size: 0.92rem;
  opacity: 0.65;
  text-align: right;
}

@media (max-width: 640px) {
  .archive li {
    grid-template-columns: 56px 1fr;
  }

  .archive__where {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.about__photo {
  position: sticky;
  top: 96px;
}

.about__photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: contrast(1.05);
}

.about__text {
  display: grid;
  gap: 1.1em;
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
}

.pull {
  margin-top: 0.6em;
  padding: 24px 0 0 0;
  border-top: 2px solid var(--ink);
}

.pull p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.pull p::before {
  content: "“";
  color: var(--tomato);
}

.pull p::after {
  content: "”";
  color: var(--tomato);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 7vw, 96px);
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.facts li:nth-child(1) {
  background: var(--sun);
}

.facts li:nth-child(3) {
  background: var(--ink);
  color: var(--paper);
}

.facts__value {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.facts__label {
  max-width: 22ch;
}

.cv {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(56px, 7vw, 96px);
}

.cv .kicker {
  margin-bottom: 14px;
  color: var(--muted);
}

.cv__list + .kicker {
  margin-top: 36px;
}

.cv__list {
  border-top: 1px solid var(--line);
}

.cv__list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 2px 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.cv__years {
  grid-row: span 2;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 3px;
}

.cv__role {
  font-weight: 600;
  line-height: 1.3;
}

.cv__org {
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .about__grid,
  .cv {
    grid-template-columns: 1fr;
  }

  .about__photo {
    position: static;
  }

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

/* ---------- topics ---------- */

.topic-list {
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.topic {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding-block: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: padding 0.35s var(--ease);
}

.topic:hover {
  padding-left: 12px;
}

.topic__n {
  font-family: var(--f-mono);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.topic:hover .topic__n {
  color: var(--sun);
}

.topic h3 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.topic p {
  font-size: 1.05rem;
  opacity: 0.88;
}

.formats {
  margin-top: 36px;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 760px) {
  .topic {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .topic p {
    grid-column: 2;
  }

  .formats {
    border-radius: 18px;
  }
}

/* ---------- contact ---------- */

.contact__title {
  margin-top: 20px;
  max-width: 15ch;
  font-size: clamp(2.8rem, 8vw, 7.4rem);
  font-weight: 800;
  font-stretch: 78%;
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.contact__text {
  margin-top: 28px;
  max-width: 44ch;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
}

.contact .btn--ink:hover {
  background: var(--paper);
  border-color: var(--ink);
  color: var(--ink);
}

.chip {
  padding: 0.8em 1.2em;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s;
}

.chip:hover {
  background: var(--sun);
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 28px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  max-width: 70ch;
  font-size: 0.92rem;
  opacity: 0.85;
}

.footer__ai-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
}

.footer__top {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer__top:hover {
  color: var(--sun);
}

/* ---------- 404 ---------- */

.notfound__inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.notfound__title {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.notfound__title span {
  color: var(--muted);
}

/* ---------- motion preferences ---------- */

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

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

  .marquee__track,
  .sticker__spin,
  .pulse::after {
    animation: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
