/* One dark world. Modern base (Space Grotesk + Inter), pixel accents (Silkscreen),
   terminal in JetBrains Mono. Single column of sections, max 1160px. */

/* ---------- fonts (self-hosted, SIL OFL 1.1, see assets/fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/silkscreen-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/silkscreen-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/silkscreen-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/silkscreen-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: dark;

  --bg: #0b0a1f;
  --panel: #14122e;
  --line: rgba(167, 139, 250, .24);
  --text: #e9e7ff;
  --muted: #b9b5dc;
  --violet: #7c3aed;
  --blue: #2563eb;
  --lav: #a78bfa;
  --sky: #60a5fa;
  --gold: #fbbf24;
  --ok: #34d399;
  --display: "Space Grotesk", system-ui, sans-serif;
  --body: Inter, system-ui, sans-serif;
  --px: Silkscreen, "Courier New", monospace;
  --mono: "JetBrains Mono", Consolas, monospace;
}

/* ---------- base ---------- */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
  margin: 0;
  color: #fff;
}

p {
  margin: 0;
}

a {
  color: #c4b5fd;
}

a:hover {
  color: #fff;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* <picture> only chooses the file format; the <img> inside keeps all the styling */
picture {
  display: block;
}

.wrap {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.eye {
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--lav);
  text-transform: uppercase;
}

.card {
  position: relative;
  background: rgba(20, 18, 46, .82);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 58, 237, .24), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(167, 139, 250, .6);
}

.card:hover::before {
  opacity: 1;
}

/* scroll reveal: the classes are only ever added by JS */
.rv {
  opacity: .12;
  transform: translateY(30px);
}

.rv.in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}

/* skip link: off-screen until it receives keyboard focus */
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 40;
  padding: 12px 18px;
  background: var(--violet);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- background, progress bar, header ---------- */

#sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#bar {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--sky));
  z-index: 30;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 10, 31, .78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-family: var(--px);
  font-size: 14px;
}

.logo b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--violet);
  box-shadow: 4px 4px 0 var(--blue);
  font-size: 16px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 15px;
}

.links a {
  /* 44px touch target even for the shortest label ("Skills") */
  min-width: 44px;
  text-align: center;
  text-decoration: none;
  padding: 10px 0;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  font-family: var(--px);
  font-size: 13px;
}

.lang button {
  min-width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #c4b5fd;
  font: inherit;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--violet);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(124, 58, 237, .55);
  color: #fff;
}

.btn.pri {
  background: linear-gradient(90deg, var(--violet), var(--blue));
}

.btn.ghost {
  border: 1px solid rgba(167, 139, 250, .6);
  background: rgba(20, 18, 46, .6);
}

.btn.sm {
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

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

#top {
  position: relative;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: orb 16s ease-in-out infinite;
}

.orb-violet {
  right: -140px;
  top: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(124, 58, 237, .5), rgba(124, 58, 237, 0) 65%);
}

.orb-blue {
  left: -220px;
  bottom: -320px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(37, 99, 235, .4), rgba(37, 99, 235, 0) 65%);
  animation-direction: reverse;
}

@keyframes orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-40px, 30px) scale(1.12);
  }
}

@keyframes fl {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }

  50% {
    transform: translateY(-10px) rotate(1.5deg);
  }
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes ln {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

@keyframes up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-txt {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: up .8s cubic-bezier(.2, .7, .2, 1) backwards;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(167, 139, 250, .45);
  background: rgba(124, 58, 237, .14);
  font-family: var(--px);
  font-size: 13px;
  letter-spacing: 1px;
  color: #ddd6fe;
}

.badge i {
  width: 8px;
  height: 8px;
  background: var(--ok);
  animation: blink 1.6s steps(1) infinite;
}

h1 {
  font-size: clamp(46px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -2px;
}

h1 span {
  background: linear-gradient(90deg, var(--lav), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag-line {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.3;
  color: #fff;
  max-width: 560px;
}

.lead {
  color: var(--muted);
  max-width: 540px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.hero-side {
  position: relative;
  padding-top: 118px;
  animation: up .8s .15s cubic-bezier(.2, .7, .2, 1) backwards;
}

.wbt {
  position: absolute;
  top: 0;
  right: -6px;
  z-index: 2;
  display: block;
  width: 210px;
  border: 2px solid #1e1b4b;
  box-shadow: 10px 10px 0 var(--violet);
  animation: fl 6s ease-in-out infinite;
  transition: box-shadow .2s;
}

.wbt:hover {
  box-shadow: 10px 10px 0 var(--gold);
}

.wbt img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.term {
  border: 1px solid rgba(129, 140, 248, .4);
  border-radius: 12px;
  background: rgba(8, 9, 26, .94);
  box-shadow: 0 30px 80px rgba(49, 46, 129, .55);
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(129, 140, 248, .2);
  font-family: var(--mono);
  font-size: 13px;
  color: #8f96c4;
}

.term-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6366f1;
}

.term-bar i:nth-child(2) {
  background: #8b5cf6;
}

.term-bar i:nth-child(3) {
  background: #38bdf8;
}

.term-bar span {
  margin-left: 10px;
}

.term-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 24px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.4;
  overflow-x: auto;
}

.ln {
  white-space: nowrap;
  animation: ln .35s ease-out backwards;
}

/* terminal lines appear one after another */
.ln:nth-child(1) { animation-delay: .5s; }
.ln:nth-child(2) { animation-delay: 1.1s; }
.ln:nth-child(3) { animation-delay: 1.6s; }
.ln:nth-child(4) { animation-delay: 2.1s; }
.ln:nth-child(5) { animation-delay: 2.6s; }
.ln:nth-child(6) { animation-delay: 3.1s; }
.ln:nth-child(7) { animation-delay: 3.6s; }
.ln:nth-child(8) { animation-delay: 4.1s; }
.ln:nth-child(9) { animation-delay: 4.8s; }
.ln:nth-child(10) { animation-delay: 5.3s; }

.ok {
  color: var(--ok);
}

.dim {
  color: #8f96c4;
}

.pr {
  color: #818cf8;
}

.ln.cmd {
  color: #fff;
}

.ln.sum {
  font-weight: 700;
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 48px;
  }

  .hero-side {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .wbt {
    position: static;
  }

  .term {
    width: 100%;
  }
}

/* ---------- stats and tech marquee ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.stat {
  padding: 18px 20px;
}

.stat b {
  display: block;
  font-family: var(--px);
  font-weight: 400;
  font-size: 28px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.stat b.gold {
  color: var(--gold);
}

.stat > span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.mq {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(11, 10, 31, .6);
}

.mq-in {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
}

/* .run is added by JS once the items are duplicated for a seamless loop */
.mq.run .mq-in {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  padding: 0 12px 0 0;
  animation: mq 40s linear infinite;
}

.mq.run:hover .mq-in {
  animation-play-state: paused;
}

@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}

.tech {
  flex: none;
  padding: 7px 14px;
  border: 1px solid rgba(129, 140, 248, .32);
  font-family: var(--mono);
  font-size: 14px;
  color: #c7d2fe;
}

/* ---------- sections, experience ---------- */

.sec {
  padding-top: 96px;
}

.sec-h {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}

.sec-h h2 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -1px;
  line-height: 1.05;
}

.xp {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.job {
  padding: 30px 32px;
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 20px 40px;
}

.job-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.when {
  font-family: var(--px);
  font-size: 13px;
  color: #fff;
  padding: 6px 10px;
  background: rgba(124, 58, 237, .3);
  border: 1px solid var(--line);
}

.now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--px);
  font-size: 12px;
  color: var(--ok);
}

.now i {
  width: 8px;
  height: 8px;
  background: var(--ok);
  animation: blink 1.6s steps(1) infinite;
}

.job-meta strong {
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  line-height: 1.25;
}

.job-meta small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.job-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.job-body h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
}

.proj {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--sky);
}

.job-body p {
  color: var(--muted);
  font-size: 16px;
  max-width: 70ch;
}

.job ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
  max-width: 72ch;
}

.job li {
  position: relative;
  padding-left: 22px;
}

.job li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  background: var(--lav);
}

details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--px);
  font-size: 13px;
  color: #c4b5fd;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  color: #fff;
}

details[open] summary::before {
  content: "–";
}

details summary:hover {
  color: #fff;
}

details ul {
  margin-top: 8px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 5px 12px;
  border: 1px solid rgba(129, 140, 248, .32);
  background: rgba(11, 10, 31, .6);
  font-family: var(--mono);
  font-size: 13px;
  color: #c7d2fe;
  transition: transform .15s, border-color .15s, color .15s;
}

.chip:hover {
  transform: translateY(-2px);
  border-color: var(--lav);
  color: #fff;
}

@media (max-width: 820px) {
  .job {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px;
  }
}

/* ---------- skills ---------- */

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

/* certificates: as many columns as fit, at every width */
.grid2.fit {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.box {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box.wide {
  grid-column: 1 / -1;
}

.box h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.box h3 i {
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--lav);
  box-shadow: 4px 4px 0 var(--blue);
}

.soft {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
}

.soft.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px 28px;
}

/* ---------- certificates and languages ---------- */

.cert {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cert .eye {
  color: var(--sky);
}

.cert h3 {
  font-size: 21px;
  line-height: 1.25;
}

.cert p {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- achievements ---------- */

.ach {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(180deg, rgba(11, 10, 31, .9), rgba(43, 21, 98, .75));
  border-color: rgba(251, 191, 36, .45);
}

.ach img {
  display: block;
  width: 100%;
  border: 2px solid #1e1b4b;
  box-shadow: 12px 12px 0 var(--violet);
}

.ach-txt {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ach-txt h3 {
  font-family: var(--px);
  font-weight: 400;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.3;
  color: var(--gold);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .45);
}

.ach-txt p {
  color: var(--muted);
}

.tro {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(11, 10, 31, .55);
  transition: transform .2s, border-color .2s;
}

.tro:hover {
  transform: translateX(6px);
  border-color: var(--gold);
}

.tro svg {
  flex: none;
}

.tro b {
  display: block;
  font-family: var(--display);
  font-size: 19px;
  color: #fff;
  line-height: 1.25;
}

.tro small {
  font-family: var(--px);
  font-size: 12px;
  color: var(--lav);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.tro:first-of-type svg {
  animation: bob 1.4s steps(3) infinite;
}

@media (max-width: 820px) {
  .ach {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }
}

/* ---------- contact, footer ---------- */

.end {
  margin-top: 96px;
  padding: 56px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* h1 is the 404 page, which reuses this card */
.end h1,
.end h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -1px;
  line-height: 1.6;
}

.end p {
  color: var(--muted);
  max-width: 52ch;
}

footer {
  padding: 40px 24px 48px;
  text-align: center;
  font-family: var(--px);
  font-size: 12px;
  color: #8f8bb8;
}

/* ---------- reduced motion: no animation, all content visible ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
