:root {
  --bg: #0a0b0d;
  --bg-2: #121317;
  --card: #16171c;
  --border: #24262c;
  --border-strong: #33353c;
  --text: #f2f2f3;
  --text-2: #9a9ca5;
  --text-3: #65676f;
  --accent: #5b7cfa;
  --accent-dim: #1b2340;
  --success: #3dd68c;
  --dot: rgba(255, 255, 255, 0.05);
  --shadow: rgba(0, 0, 0, 0.65);
  --nav-bg: rgba(10, 11, 13, 0.75);
  --nav-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f7f5;
    --bg-2: #efefec;
    --card: #ffffff;
    --border: #e4e4e0;
    --border-strong: #cdcdc7;
    --text: #15171a;
    --text-2: #585c62;
    --text-3: #8a8e93;
    --accent: #4258db;
    --accent-dim: #eaedfc;
    --success: #1e9a63;
    --dot: rgba(0, 0, 0, 0.05);
    --shadow: rgba(20, 20, 25, 0.12);
    --nav-bg: rgba(247, 247, 245, 0.75);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --card: #ffffff;
  --border: #e4e4e0;
  --border-strong: #cdcdc7;
  --text: #15171a;
  --text-2: #585c62;
  --text-3: #8a8e93;
  --accent: #4258db;
  --accent-dim: #eaedfc;
  --success: #1e9a63;
  --dot: rgba(0, 0, 0, 0.05);
  --shadow: rgba(20, 20, 25, 0.12);
  --nav-bg: rgba(247, 247, 245, 0.75);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 100px 0;
}
h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.lede {
  color: var(--text-2);
  font-size: 15px;
  margin: 0 0 48px;
  max-width: 56ch;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
}
.logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  flex: none;
}
.nav-toggle .icon-svg {
  width: 18px;
  height: 18px;
}
.nav-toggle .close-ic {
  display: none;
}
.nav-toggle.is-open .menu-ic {
  display: none;
}
.nav-toggle.is-open .close-ic {
  display: block;
}
.nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.nav-mobile a {
  display: block;
  padding: 14px 24px;
  font-size: 14px;
  color: var(--text-2);
  border-top: 1px solid var(--border);
}
.nav-mobile a:first-child {
  border-top: none;
}
.nav-mobile a:hover {
  color: var(--text);
}
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-mobile.is-open {
    max-height: 220px;
  }
}
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
  flex: none;
}
.nav-icon-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}
.nav-icon-btn .icon-svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 860px) {
  .nav-social {
    display: none;
  }
}
.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s ease;
  flex: none;
  margin-right: 8px;
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.theme-toggle .icon-svg {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex: none;
  transition: color 0.2s ease;
}
.theme-toggle .sun {
  color: #f5a623;
}
.theme-toggle .moon {
  color: #ffd54f;
}
.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.25s ease;
  z-index: 0;
}
:root[data-theme="light"] .theme-toggle-thumb {
  transform: translateX(26px);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle-thumb {
    transform: translateX(26px);
  }
}
.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-2);
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--text);
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}
@media (max-width: 640px) {
  .nav-cv {
    display: none;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 24px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.texture-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(
    ellipse 60% 55% at 50% 42%,
    #000 30%,
    transparent 85%
  );
}

/* the blob: a slowly morphing shape with a glowing gradient rim, always animating */
.blob-wrap {
  position: absolute;
  width: min(64vw, 760px);
  height: min(64vw, 760px);
  transition: transform 0.3s ease-out;
  will-change: transform;
}
.blob {
  position: relative;
  width: 100%;
  height: 100%;
  animation: blob-morph 17s ease-in-out infinite;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    #a78bfa,
    #e0a934,
    var(--success),
    var(--accent)
  );
  filter: blur(2px);
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .blob {
    animation:
      blob-morph 17s ease-in-out infinite,
      blob-spin 26s linear infinite;
  }
}
.blob::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--bg);
}
@keyframes blob-morph {
  0%,
  100% {
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  }
  25% {
    border-radius: 58% 42% 39% 61% / 55% 61% 39% 45%;
  }
  50% {
    border-radius: 39% 61% 57% 43% / 63% 38% 62% 37%;
  }
  75% {
    border-radius: 63% 37% 45% 55% / 40% 62% 38% 60%;
  }
}
@keyframes blob-spin {
  to {
    filter: blur(2px) hue-rotate(360deg);
  }
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 62% 55% at 50% 45%,
    transparent 35%,
    var(--bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
}

.hero-reveal {
  opacity: 0;
  transform: translateY(14px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-reveal {
    animation: hero-rise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
  .hero-content > .badge {
    animation-delay: 0.05s;
  }
  .hero-content > .hi {
    animation-delay: 0.15s;
  }
  .hero-content > .hero-name {
    animation-delay: 0.22s;
  }
  .hero-content > .role {
    animation-delay: 0.32s;
  }
  .hero-content > .pitch {
    animation-delay: 0.4s;
  }
  .hero-content > .hero-ctas {
    animation-delay: 0.48s;
  }
  .hero-content > .hero-meta {
    animation-delay: 0.56s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--success);
  background: rgba(61, 214, 140, 0.08);
  border: 1px solid rgba(61, 214, 140, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
@media (prefers-reduced-motion: no-preference) {
  .badge .dot {
    animation: pulse 2s ease-in-out infinite;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hi {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 4px;
}
.hero-name {
  position: relative;
  font-size: clamp(40px, 6.2vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  line-height: 1.05;
  color: var(--text);
}
.hero-name .accent-word {
  position: relative;
  color: var(--accent);
}
.role {
  font-size: 17px;
  color: var(--text-2);
  margin: 0 0 18px;
}
.pitch {
  max-width: 50ch;
  margin: 0 auto 32px;
  color: var(--text-2);
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.btn {
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 8px;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.icon-svg {
  width: 16px;
  height: 16px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -3px;
}
.icon-svg.filled {
  fill: currentColor;
  stroke: none;
}
.btn .icon-svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: #4a6bf0;
  box-shadow: 0 8px 24px rgba(91, 124, 250, 0.35);
}
.btn-primary:hover .icon-svg {
  transform: translateY(2px);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-ghost:hover .icon-svg {
  transform: translateX(2px);
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta .icon-svg {
  color: var(--text-2);
}
.hero-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-strong);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  text-transform: uppercase;
  z-index: 1;
}
.scroll-cue:hover {
  color: var(--text-2);
}
.mouse-icon {
  width: 15px;
  height: 23px;
  flex: none;
  color: inherit;
}
.mouse-icon .wheel {
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .mouse-icon .wheel {
    animation: mouse-wheel 1.8s ease-in-out infinite;
  }
}
@keyframes mouse-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  55% {
    transform: translateY(6px);
    opacity: 0;
  }
  56% {
    transform: translateY(0);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ---------- skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition:
    border-color 0.2s ease,
    transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: no-preference) {
  .skill-card.is-in {
    animation: card-rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skill-card {
    opacity: 1;
    transform: none;
  }
}
@keyframes card-rise {
  to {
    opacity: 1;
    transform: none;
  }
}
.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -22px var(--shadow);
}
.skill-card h3 {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
  color: var(--text);
}
.skill-card .desc {
  font-size: 13px;
  color: var(--text-2);
  margin: 0 0 16px;
  line-height: 1.5;
}
.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 14px;
  transition:
    transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    background 0.2s ease;
}
.skill-card:hover .icon-badge {
  transform: scale(1.1) rotate(-6deg);
}
.icon-badge svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 5px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}
.skill-card:hover .tag {
  border-color: var(--border-strong);
  color: var(--text);
}
@media (max-width: 720px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- projects ---------- */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.proj-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.proj-thumb {
  height: 150px;
  background:
    linear-gradient(135deg, var(--accent-dim), transparent 70%), var(--bg-2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.proj-thumb .glyph {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
}
.proj-body {
  padding: 20px;
}
.proj-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.proj-title {
  font-size: 16px;
  font-weight: 600;
}
.proj-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  padding-top: 3px;
}
.proj-desc {
  color: var(--text-2);
  font-size: 13.5px;
  margin: 0 0 14px;
  line-height: 1.6;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.proj-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}
.proj-links a {
  color: var(--accent);
}
.proj-links a:hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .proj-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- experience ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.timeline.is-in::before {
  transform: scaleY(1);
}
.tl-item {
  position: relative;
  padding-bottom: 44px;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.tl-item.is-in {
  opacity: 1;
  transform: none;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border-strong);
  transform: scale(0);
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}
.tl-item.is-in::before {
  transform: scale(1);
}
.tl-item.is-current::before {
  border-color: var(--accent);
  background: var(--accent);
}
.tl-item.is-current::after {
  content: "";
  position: absolute;
  left: -27px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .tl-item.is-current.is-in::after {
    animation: tl-pulse 2.2s ease-out infinite;
  }
}
@keyframes tl-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}
@media (prefers-reduced-motion: reduce) {
  .timeline::before {
    transform: scaleY(1);
    transition: none;
  }
  .tl-item,
  .tl-item::before {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.tl-role {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 2px;
}
.tl-company {
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 2px;
}
.tl-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 12px;
}
.tl-desc {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 12px;
  max-width: 60ch;
}
.tl-item ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 13.5px;
  max-width: 60ch;
}
.tl-item li {
  margin-bottom: 5px;
}

/* ---------- contact ---------- */
.contact {
  text-align: center;
}
.contact h2 {
  font-size: 34px;
}
.contact .lede {
  margin-left: auto;
  margin-right: auto;
}
.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--card);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}
.contact-links a .icon-svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.contact-links a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-dim);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-inner {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}
.foot-social {
  display: flex;
  gap: 16px;
}
.foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.foot-social a .icon-svg {
  width: 14px;
  height: 14px;
}
.foot-social a:hover {
  color: var(--text);
}

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  box-shadow: 0 8px 20px var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--text);
}
.back-to-top .icon-svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 640px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }
  section {
    padding: 80px 0;
  }
}
@media (max-width: 640px) {
  :root {
    --nav-h: 58px;
  }
  section {
    padding: 60px 0;
  }
  .hero {
    padding: 48px 18px;
  }
  h2 {
    font-size: 24px;
  }
  .lede {
    margin-bottom: 36px;
  }
  .hero-ctas {
    margin-bottom: 28px;
  }
  .hero-meta {
    gap: 12px;
    font-size: 11.5px;
  }
  .hero-meta .sep {
    display: none;
  }
  .contact h2 {
    font-size: 28px;
  }
  .scroll-cue {
    bottom: 18px;
  }
}
@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }
  .hero {
    padding: 40px 14px;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .contact-links {
    flex-direction: column;
    width: 100%;
  }
  .contact-links a {
    width: 100%;
    justify-content: center;
  }
  .filters {
    justify-content: flex-start;
  }
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
