/* ==========================================================================
   civcic.com — portfolio
   ========================================================================== */

:root {
  --bg: #09090b;
  --bg-2: #111114;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f5;
  --ink-2: #a1a1aa;
  --muted: #71717a;
  --accent: #b4f461;
  --accent-2: #7dd3fc;
  --accent-soft: rgba(180, 244, 97, 0.1);

  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;

  --max: 1240px;
  --pad: clamp(24px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle grid + glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 900px;
  height: 900px;
  left: -300px;
  top: -450px;
  background: radial-gradient(circle, rgba(180, 244, 97, 0.09), transparent 60%);
  pointer-events: none;
}

.spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, -20%),
    rgba(125, 211, 252, 0.07),
    transparent 45%
  );
  transition: opacity 0.3s;
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--accent);
  color: #0a0a0a;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  background: var(--accent);
  color: #0a0a0a;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  left: 10px;
}

/* ---------- Layout ---------- */

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.side {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 88px 0 56px;
  display: flex;
  flex-direction: column;
}

.content {
  padding: 88px 0 64px;
  min-width: 0;
}

@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .side {
    position: static;
    height: auto;
    padding: 64px 0 24px;
  }
  .content {
    padding-top: 24px;
  }
}

/* ---------- Side panel ---------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-2);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 28px;
}
.status .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status .dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

.side h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 5.6vw, 64px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.045em;
}
.side .title {
  margin: 14px 0 0;
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.side .title .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.side .tagline {
  margin: 18px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.65;
}
.side .tagline b {
  color: var(--ink);
  font-weight: 500;
}

.side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.toc {
  margin-top: 56px;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.toc a::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 0.25s ease, background 0.25s;
}
.toc a:hover,
.toc a.active {
  color: var(--ink);
}
.toc a:hover::before,
.toc a.active::before {
  width: 64px;
}
.toc a.active::before {
  background: var(--accent);
}

.socials {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.socials a {
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}
.socials a:hover {
  color: var(--ink);
  transform: translateY(-2px);
}
.socials svg {
  width: 22px;
  height: 22px;
  display: block;
}
.socials .loc {
  margin-left: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .toc {
    display: none;
  }
  .socials {
    margin-top: 28px;
    padding-top: 0;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s,
    box-shadow 0.2s;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 0 0 rgba(180, 244, 97, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -6px rgba(180, 244, 97, 0.45);
}
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Sections ---------- */

.section {
  margin-bottom: 120px;
  scroll-margin-top: 88px;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-label span {
  color: var(--accent);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
@media (max-width: 1024px) {
  .section {
    margin-bottom: 88px;
  }
  .section-label {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0 calc(var(--pad) * -1) 24px;
    padding: 18px var(--pad);
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ---------- About ---------- */

.about p {
  margin: 0 0 18px;
}
.about p b,
.about p strong {
  color: var(--ink);
  font-weight: 500;
}
.about a.inline {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s;
}
.about a.inline:hover {
  color: var(--accent);
}

.terminal {
  margin: 32px 0 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3f3f46;
}
.terminal-bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
}
.terminal pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  color: var(--ink-2);
  white-space: pre;
}
@media (max-width: 640px) {
  .terminal {
    font-size: 11.5px;
  }
  .terminal pre {
    padding: 14px;
  }
}
.terminal .k {
  color: #c4b5fd;
}
.terminal .p {
  color: var(--accent-2);
}
.terminal .s {
  color: var(--accent);
}
.terminal .c {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: 20px 18px;
}
.stat .num {
  color: var(--ink);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat .num span {
  color: var(--accent);
}
.stat .lbl {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
@media (max-width: 640px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Cards (experience / projects) ---------- */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 24px;
  margin: 0 -24px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.25s, border-color 0.25s, opacity 0.25s;
}
@media (hover: hover) and (min-width: 1025px) {
  .list:hover .card {
    opacity: 0.5;
  }
  .list:hover .card:hover {
    opacity: 1;
  }
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card .when {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
  line-height: 1.6;
}
.card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.card h3 a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  transition: color 0.2s;
}
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
}
.card h3 a svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.2s;
  position: relative;
  top: 1px;
}
.card:hover h3 a {
  color: var(--accent);
}
.card:hover h3 a svg {
  transform: translate(3px, -3px);
}
.card .at {
  color: var(--ink-2);
  font-weight: 400;
}
.card .sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.card ul.points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  font-size: 15px;
}
.card ul.points li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}
.card ul.points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 13px;
  top: 1px;
}
.card ul.points b {
  color: var(--ink);
  font-weight: 500;
}
.card p.desc {
  margin: 12px 0 0;
  font-size: 15px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
  position: relative;
}
.chip {
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}
.chip.dim {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.06);
}

.thumb {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0a0a0a;
  overflow: hidden;
  max-width: 120px;
  transition: border-color 0.25s, transform 0.25s;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb.fixman {
  background: #0f172a;
}
.thumb.fox {
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #fff;
}
.card:hover .thumb {
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  vertical-align: middle;
}
.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@media (max-width: 640px) {
  .card {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 18px 0;
  }
  .card:hover {
    background: transparent;
    border-color: transparent;
  }
  .thumb {
    max-width: 72px;
    font-size: 28px;
  }
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}
.more-link span {
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.more-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.more-link:hover span {
  border-color: var(--accent);
}
.more-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Open source rows ---------- */

.subhead {
  margin: 48px 0 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.repos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.repo {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.repo:hover {
  border-color: var(--line-2);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.repo .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.repo .top svg {
  width: 18px;
  height: 18px;
}
.repo .top .yr {
  font-family: var(--mono);
  font-size: 12px;
}
.repo b {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  font-family: var(--mono);
  letter-spacing: -0.01em;
}
.repo:hover b {
  color: var(--accent);
}
.repo small {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .repos {
    grid-template-columns: 1fr;
  }
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: #27272a transparent;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  filter: grayscale(0.35) brightness(0.85);
  transition: filter 0.3s;
}
.gallery figure:hover img {
  filter: none;
}
.gallery figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.gallery figcaption b {
  color: var(--ink-2);
  font-weight: 500;
}

/* ---------- Skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.skill {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.skill.wide {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(180, 244, 97, 0.07), rgba(125, 211, 252, 0.04));
  border-color: rgba(180, 244, 97, 0.22);
}
.skill h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.skill h3 small {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.skill p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}
.skill .chips {
  margin-top: 14px;
}
@media (max-width: 640px) {
  .skills {
    grid-template-columns: 1fr;
  }
  .skill.wide {
    grid-column: auto;
  }
}

/* ---------- Quotes ---------- */

.quotes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.quote blockquote {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
}
.quote blockquote::before {
  content: "“";
  display: block;
  font-size: 44px;
  line-height: 0.7;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 700;
}
.quote figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.quote .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-2);
}
.quote figcaption b {
  display: block;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
}
.quote figcaption span {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Background ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.fact {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.fact h3 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.fact .big {
  margin: 0 0 6px;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}
.fact .small {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.langs {
  list-style: none;
  margin: 0;
  padding: 0;
}
.langs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 14.5px;
}
.langs li:last-child {
  border-bottom: 0;
}
.langs li span:first-child {
  color: var(--ink);
}
.langs li span:last-child {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact-card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid rgba(180, 244, 97, 0.25);
  background: radial-gradient(120% 140% at 100% 0%, rgba(180, 244, 97, 0.12), transparent 55%),
    radial-gradient(100% 120% at 0% 100%, rgba(125, 211, 252, 0.08), transparent 55%),
    var(--bg-2);
  overflow: hidden;
}
.contact-card h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.contact-card p {
  margin: 0 0 28px;
  max-width: 46ch;
}
.contact-card .mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: clamp(14px, 2vw, 17px);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, 0.3);
  word-break: break-all;
  transition: border-color 0.2s, color 0.2s;
}
.contact-card .mail:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.contact-card .mail svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.contact-card .row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.foot {
  margin-top: 72px;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
}
.foot a {
  color: var(--ink-2);
  transition: color 0.2s;
}
.foot a:hover {
  color: var(--accent);
}

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status .dot::after {
    animation: none;
  }
  .spotlight {
    display: none;
  }
}

@media print {
  body::before,
  body::after,
  .spotlight,
  .toc {
    display: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Projects intro ---------- */
.subhead.first {
  margin-top: 0;
}
.section-intro {
  margin: 0 0 32px;
  max-width: 60ch;
}

/* ---------- Language switch ---------- */
.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.side-top .status {
  margin-bottom: 0;
}
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.lang-switch a {
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current="page"] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
}
.qa {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.qa h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.qa p {
  margin: 0;
  font-size: 15px;
}
