﻿:root {
  --bg: #0b0d12;
  --panel: #121622;
  --panel-2: #161b29;
  --text: #e6e7eb;
  --muted: #a4adbd;
  --accent: #59c3c3;
  --accent-2: #6aa7ff;
  --stroke: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* Keep in-page anchor targets visible below the sticky header. */
  scroll-padding-top: 2rem;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, rgba(88, 117, 255, 0.12), transparent 60%),
    radial-gradient(900px 700px at 90% 20%, rgba(89, 195, 195, 0.12), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #0d1118 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-orb {
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  filter: blur(60px);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  background: rgba(89, 195, 195, 0.35);
  top: 12%;
  left: -120px;
}

.orb-2 {
  background: rgba(106, 167, 255, 0.3);
  bottom: 8%;
  right: -120px;
}

.wave-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.wave-line {
  fill: none;
  stroke: rgba(106, 167, 255, 0.75);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-dasharray: 8 20;
  transform-box: fill-box;
  transform-origin: center;
  animation: wave-dash 14s linear infinite, wave-float 7s ease-in-out infinite;
}

.wave-2 {
  stroke: rgba(89, 195, 195, 0.7);
  animation-duration: 18s, 8s;
  animation-delay: -4s, -1s;
}

.wave-3 {
  stroke: rgba(230, 231, 235, 0.4);
  stroke-dasharray: 4 24;
  animation-duration: 20s, 9s;
  animation-delay: -6s, -2s;
}

.wave-4 {
  stroke: rgba(89, 195, 195, 0.6);
  animation-duration: 16s, 6.5s;
  animation-delay: -2s, -3s;
}

.wave-5 {
  stroke: rgba(106, 167, 255, 0.55);
  stroke-dasharray: 10 26;
  animation-duration: 22s, 10s;
  animation-delay: -8s, -4s;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  z-index: 1;
  padding: 0 7vw 8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 56px;
  padding: 0.45rem 7vw;
  background:
    radial-gradient(140% 140% at 0% 0%, rgba(106, 167, 255, 0.2), transparent 55%),
    radial-gradient(140% 140% at 100% 0%, rgba(89, 195, 195, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.9), rgba(11, 13, 18, 0.72));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(14px) saturate(110%);
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(106, 167, 255, 0.4), rgba(89, 195, 195, 0.35), rgba(106, 167, 255, 0.4));
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  padding: 0.52rem 1.02rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 760px;
  animation: rise 0.9s ease both;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.64rem;
}

h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  margin: 0.6rem 0 1rem;
}

.lead {
  font-size: 1.05rem;
  max-width: 44ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.pager .btn {
  min-width: 200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--stroke);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  border: none;
}

.btn.ghost {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chips span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

/* Reduce oversized gap between home intro and featured projects. */
#about.section {
  padding-bottom: 2.1rem;
}

#about.section .section-header {
  margin-bottom: 0.9rem;
}

#projects.section {
  padding-top: 2.1rem;
}

.breadcrumbs {
  max-width: min(1240px, 94vw);
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--accent);
}

.breadcrumbs .sep {
  margin: 0 0.4rem;
  color: var(--muted);
}

.section[id],
.hero[id] {
  scroll-margin-top: 2rem;
}

.section-header {
  max-width: min(1240px, 94vw);
  margin-inline: auto;
  margin-bottom: 2rem;
}

.section-header.copy-wide {
  max-width: min(1240px, 94vw);
  margin-inline: auto;
}

.section-header h2 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.section-header h1 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 0.8rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-header ul {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  padding-left: 1.2rem;
}

.section-header li + li {
  margin-top: 0.4rem;
}

.intro-paragraph + .intro-paragraph {
  margin-top: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.projects {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  max-width: 1200px;
  margin-inline: auto;
}

.grid.projects.tools-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.grid.projects.projects-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

@media (max-width: 1100px) {
  .grid.projects,
  .grid.links {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .grid.projects.tools-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .grid.projects.projects-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 800px) {
  .grid.projects,
  .grid.projects.tools-grid,
  .grid.projects.projects-grid,
  .grid.links {
    grid-template-columns: 1fr;
  }
}

.grid.links {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  max-width: 1200px;
  margin-inline: auto;
}

.embed-card {
  margin-top: 2rem;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.embed-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.embed-header p {
  color: var(--muted);
}

.embed-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0b0d12;
  max-height: 680px;
}

.embed-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ascii-cloud {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  overflow: hidden;
  width: min(100%, 1040px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #0b0d12;
}

.ascii-cloud.ascii-cloud-compact {
  width: min(100%, 920px);
}

.ascii-cloud canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ascii-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  width: min(100%, 1240px);
  margin-inline: auto;
  align-items: start;
}

.ascii-layout .ascii-cloud {
  margin-inline: 0;
  width: 100%;
}

.ascii-controls {
  position: static;
  width: 100%;
  display: grid;
  gap: 0.9rem;
  background: rgba(18, 22, 34, 0.92);
  backdrop-filter: blur(8px);
}

.ascii-controls .control {
  display: grid;
  gap: 0.4rem;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-row input[type="range"] {
  flex: 1;
}

.control-value {
  min-width: 3.5rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
}

.ascii-controls label {
  font-size: 0.85rem;
  color: var(--muted);
}

.ascii-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.ascii-controls .btn {
  width: 100%;
  background: rgba(89, 195, 195, 0.15);
  color: var(--text);
  border: 1px solid rgba(89, 195, 195, 0.5);
}

.ascii-controls .btn:hover {
  background: rgba(89, 195, 195, 0.28);
}

.ascii-controls input[type="color"] {
  width: 100%;
  height: 36px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0.2rem;
  background: #0b0d12;
}

.tool-panel {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  flex: 1;
  min-height: 320px;
}

.tool-help {
  position: static;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: rgba(89, 195, 195, 0.14);
  color: var(--text);
  border: 1px solid rgba(89, 195, 195, 0.45);
}

.card-top {
  position: relative;
}

.card-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.tool-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.7);
  backdrop-filter: blur(4px);
}

.tool-modal-panel {
  position: absolute;
  width: 360px;
  max-width: calc(100% - 2rem);
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1.5rem;
  color: var(--text);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.tool-modal-panel p {
  color: var(--muted);
}

.tool-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tool-panel .btn {
  background: rgba(89, 195, 195, 0.14);
  color: var(--text);
  border: 1px solid rgba(89, 195, 195, 0.45);
}

.tool-panel .btn:hover {
  background: rgba(89, 195, 195, 0.3);
}

.tool-panel textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  background: rgba(18, 22, 34, 0.9);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.75rem;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.tool-panel input[type="text"] {
  width: 100%;
  background: rgba(18, 22, 34, 0.9);
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
}

.tool-panel .tool-row {
  display: flex;
  gap: 0.75rem;
}

.tool-panel pre.tool-output {
  margin: 0;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.75rem;
  color: var(--muted);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  min-height: 90px;
  white-space: pre-wrap;
}

.tool-note {
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2rem;
}

@media (max-width: 700px) {
  .ascii-controls {
    width: 100%;
  }

  .ascii-layout {
    grid-template-columns: 1fr;
  }

  .ascii-cloud {
    width: 100%;
  }

  .ascii-cloud.ascii-cloud-compact {
    width: 100%;
  }

  .tool-panel {
    min-height: auto;
  }
}

.card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, border 0.25s ease;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-card.card-clickable {
  cursor: pointer;
}

.project-card.card-clickable:focus-visible {
  outline: 2px solid rgba(89, 195, 195, 0.7);
  outline-offset: 3px;
}

.project-with-image {
  padding: 0;
  overflow: hidden;
}

.project-with-image .card-top,
.project-with-image p,
.project-with-image .meta,
.project-with-image .project-link {
  padding: 0 1.5rem;
}

.project-with-image .card-top {
  margin-top: 1.5rem;
}

.project-with-image .project-link {
  padding-bottom: 1.5rem;
}

.project-image {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid var(--stroke);
  background: #0b0d12;
}

.project-image-placeholder {
  position: relative;
  display: block;
  --bg-pos-x: 50%;
  --bg-pos-y: 50%;
  --bg-scale: 100%;
  height: 210px;
  min-height: 210px;
  flex-shrink: 0;
  max-height: none;
  background-color: #0f1724;
  background-image: url("assets/images/projects/visuals-placeholder-base.svg");
  background-repeat: no-repeat;
  background-size: var(--bg-scale) var(--bg-scale);
  background-position: var(--bg-pos-x) var(--bg-pos-y);
  overflow: hidden;
  border-bottom: 1px solid var(--stroke);
}

.project-image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 64%);
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 130% 130%;
  background-position: center, center;
  opacity: 0.78;
  transform: translateY(var(--line-shift, 0px));
  transform-origin: center;
  pointer-events: none;
}

.project-image-placeholder::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 78px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(89, 195, 195, 0.52);
  z-index: 1;
}

.project-image-placeholder.seed-a {
  --line-shift: -1px;
  --bg-pos-x: 49%;
  --bg-pos-y: 50%;
  --bg-scale: 102%;
}

.project-image-placeholder.seed-b {
  --line-shift: 1px;
  --bg-pos-x: 51%;
  --bg-pos-y: 51%;
  --bg-scale: 101%;
}

.project-image-placeholder.seed-c {
  --line-shift: 0px;
  --bg-pos-x: 50%;
  --bg-pos-y: 49%;
  --bg-scale: 103%;
}

.project-image-placeholder.gravity-card-preview {
  background:
    radial-gradient(circle at 62% 46%, rgba(255, 227, 154, 0.95) 0 8px, rgba(255, 204, 102, 0.7) 9px, rgba(255, 204, 102, 0.18) 17px, rgba(255, 204, 102, 0) 34px),
    radial-gradient(circle at 40% 61%, rgba(118, 220, 255, 0.96) 0 6px, rgba(118, 220, 255, 0.34) 7px, rgba(118, 220, 255, 0) 20px),
    radial-gradient(circle at 74% 68%, rgba(255, 155, 122, 0.94) 0 5px, rgba(255, 155, 122, 0.28) 6px, rgba(255, 155, 122, 0) 16px),
    radial-gradient(circle at 55% 54%, rgba(248, 243, 232, 0.9) 0 2px, rgba(248, 243, 232, 0) 5px),
    radial-gradient(circle at 50% 54%, rgba(77, 149, 167, 0.2), rgba(77, 149, 167, 0) 38%),
    linear-gradient(180deg, rgba(13, 19, 31, 0.9), rgba(8, 11, 19, 0.98));
  background-repeat: no-repeat;
  background-size: auto;
  background-position: center;
}

.project-image-placeholder.gravity-card-preview::before {
  background-image:
    radial-gradient(circle at 62% 46%, rgba(255, 225, 150, 0.18), rgba(255, 225, 150, 0) 44%),
    radial-gradient(circle at 40% 61%, rgba(118, 220, 255, 0.12), rgba(118, 220, 255, 0) 32%),
    linear-gradient(138deg, transparent 0 27%, rgba(109, 222, 213, 0.18) 27.8%, transparent 28.6%, transparent 100%),
    linear-gradient(37deg, transparent 0 60%, rgba(109, 222, 213, 0.12) 60.8%, transparent 61.6%, transparent 100%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 68%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  opacity: 0.92;
  transform: none;
}

.project-image-placeholder.gravity-card-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 55% 54%, rgba(255, 248, 228, 0.92) 0 1.5px, rgba(255, 248, 228, 0) 3px),
    radial-gradient(circle at 62% 46%, transparent 0 21px, rgba(255, 223, 152, 0.16) 22px, transparent 23px),
    radial-gradient(circle at 62% 46%, transparent 0 35px, rgba(255, 223, 152, 0.08) 36px, transparent 37px),
    radial-gradient(circle at 40% 61%, transparent 0 19px, rgba(118, 220, 255, 0.12) 20px, transparent 21px);
  pointer-events: none;
}

.project-image-placeholder.seed-d {
  --line-shift: 1px;
  --bg-pos-x: 50%;
  --bg-pos-y: 51%;
  --bg-scale: 102%;
}

.project-image-placeholder.seed-e {
  --line-shift: -1px;
  --bg-pos-x: 48%;
  --bg-pos-y: 50%;
  --bg-scale: 101%;
}

.project-image-placeholder.seed-f {
  --line-shift: 0px;
  --bg-pos-x: 52%;
  --bg-pos-y: 49%;
  --bg-scale: 102%;
}

@media (max-width: 600px) {
  .project-image-placeholder {
    height: 188px;
    min-height: 188px;
  }

  .project-image-placeholder::after {
    font-size: 64px;
  }
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
}

.status {
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid rgba(89, 195, 195, 0.4);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.project-link {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--accent);
  position: relative;
}

.project-link + .project-link {
  margin-top: 0.5rem;
}

.project-link.external::after {
  content: "↗";
  font-size: 0.85em;
  margin-left: 0.4rem;
  color: inherit;
}

.project-link:hover {
  color: var(--accent-2);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: var(--accent-2);
}

.doc-source {
  overflow-x: auto;
}

.doc-source pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
  line-height: 1.6;
}

.doc-source .md-doc {
  font-size: 0.95rem;
  line-height: 1.65;
}

.doc-source .md-doc > * + * {
  margin-top: 1rem;
}

.doc-source .md-doc h1,
.doc-source .md-doc h2,
.doc-source .md-doc h3,
.doc-source .md-doc h4 {
  font-family: "Fraunces", "Times New Roman", serif;
  line-height: 1.25;
}

.doc-source .md-doc ul,
.doc-source .md-doc ol {
  padding-left: 1.4rem;
}

.doc-source .md-doc code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--stroke);
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
}

.doc-source .md-doc pre {
  overflow-x: auto;
  white-space: pre;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(18, 22, 34, 0.9);
  padding: 0.85rem;
}

.doc-source .md-doc pre code {
  background: transparent;
  border: 0;
  padding: 0;
}

.doc-source .md-doc table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}

.doc-source .md-doc th,
.doc-source .md-doc td {
  border: 1px solid var(--stroke);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}

.doc-source .md-doc th {
  background: rgba(106, 167, 255, 0.12);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grid.blog-list {
  grid-template-columns: 1fr;
  max-width: 1200px;
}

.blog-entry {
  width: 100%;
}

.entry-date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.entry-body {
  white-space: pre-line;
}

.link-title {
  font-weight: 600;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(89, 195, 195, 0.18), rgba(106, 167, 255, 0.1));
  border: 1px solid var(--stroke);
  border-radius: 20px;
}

.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.contact-link {
  font-size: 1.2rem;
  font-weight: 500;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 7vw 3rem;
  color: var(--muted);
  border-top: 1px solid var(--stroke);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wave-dash {
  to {
    stroke-dashoffset: -360;
  }
}

@keyframes wave-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  main {
    padding: 0 6vw 6rem;
  }

  .site-header {
    min-height: 52px;
    padding: 0.38rem 6vw;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-line {
    animation: none;
    stroke-dasharray: none;
  }
}


