@import url("palette.css?v=20261024-cream-1");

:root {
  --bg: var(--paper);
  --bg-elevated: var(--paper);
  --surface: var(--paper);
  --surface-muted: var(--wash);
  --surface-highlight: var(--wash);
  --text: var(--ink);
  --brand: var(--green);
  --brand-soft: var(--wash);
  --brand-dark: var(--green-dark);
  --accent: var(--green);
  --accent-soft: var(--wash);
  --success: var(--green);
  --shadow-soft: none;
  --shadow-strong: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, rgba(59, 130, 246, 0.25), transparent 40%),
    radial-gradient(circle at 92% 0%, rgba(34, 211, 238, 0.14), transparent 36%),
    linear-gradient(180deg, #050816 0%, #060b1b 100%);
  line-height: 1.68;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  pointer-events: none;
  animation: floatGlow 16s ease-in-out infinite;
}

body::before {
  width: 260px;
  height: 260px;
  top: 10%;
  left: -70px;
  background: rgba(59, 130, 246, 0.55);
}

body::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -80px;
  background: rgba(34, 211, 238, 0.42);
  animation-delay: -7s;
}

a {
  color: #9cc6ff;
  text-decoration: none;
  transition: color 0.22s ease;
}

a:hover {
  color: #c4ecff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 13, 31, 0.8);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #f8fafc;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.42);
}

.brand-name {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  border-color: rgba(125, 211, 252, 0.55);
  color: #e0f2fe;
}

.nav-toggle .bi {
  font-size: 1.4rem;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.2rem 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.16rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: #dbeafe;
}

.site-nav a.active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5.8rem 0 4.7rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  opacity: 0.7;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -190px;
  right: -130px;
  background: rgba(34, 211, 238, 0.22);
  animation: floatBlob 11s ease-in-out infinite;
}

.hero::after {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -160px;
  background: rgba(96, 165, 250, 0.22);
  animation: floatBlob 14s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
  margin-inline: auto;
}

.hero-kicker {
  margin: 0;
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.025em;
}

.hero h1 {
  margin: 0.58rem 0 0.8rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.hero-role {
  margin: 0;
  color: #bfdbfe;
  font-size: 1.1rem;
  font-weight: 600;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.hero-role.is-switching {
  opacity: 0.3;
  transform: translateY(5px);
}

.hero-summary {
  margin: 1.24rem 0 1.65rem;
  color: var(--muted);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(125deg, var(--brand), var(--accent));
  color: #031225;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.16rem;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.28);
}

.btn-brand::before {
  content: "";
  position: absolute;
  top: -90%;
  left: -20%;
  width: 42%;
  height: 280%;
  transform: rotate(22deg);
  background: rgba(255, 255, 255, 0.3);
  transition: transform 0.45s ease;
}

.btn-brand:hover::before {
  transform: translateX(280%) rotate(22deg);
}

.btn-brand:hover {
  color: #031225;
}

.btn-outline-brand {
  border: 1px solid rgba(125, 211, 252, 0.5);
  color: #c5e9ff;
  border-radius: 999px;
  padding: 0.72rem 1.16rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.5);
}

.btn-outline-brand:hover {
  border-color: rgba(125, 211, 252, 0.85);
  background: rgba(34, 211, 238, 0.17);
  color: #e0f2fe;
}

.hero-highlights {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.5);
}

.hero-visual {
  justify-self: end;
  max-width: 410px;
  width: 100%;
}

.hero-image-card {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(160deg, rgba(17, 27, 50, 0.95), rgba(10, 17, 34, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow-strong);
  transition: transform 0.2s ease, border-color 0.24s ease;
}

.hero-image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.4), rgba(34, 211, 238, 0.24));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: 16px;
}

.hero-image--cartoon {
  filter: grayscale(1) contrast(1.45) brightness(1.07);
}

.hero-image-caption {
  margin: 0.92rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.section {
  padding: 4.65rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(15, 22, 45, 0.82), rgba(11, 18, 35, 0.8));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0.42rem 0 0.72rem;
  font-size: clamp(1.52rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.availability-panel {
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(34, 211, 238, 0.11)
  );
  border-radius: 18px;
  padding: 1.28rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.availability-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.availability-panel p {
  margin: 0.47rem 0 0;
  color: #b7c5df;
}

.summary-card {
  background: linear-gradient(180deg, rgba(17, 26, 49, 0.95), rgba(12, 20, 37, 0.94));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.summary-card p {
  margin: 0;
  color: #b8c8e0;
}

.contact-links {
  margin-top: 1.22rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.62);
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-link:hover {
  color: #d9efff;
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(34, 211, 238, 0.13);
}

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

.skill-card {
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.96), rgba(12, 20, 39, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.12rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.36);
  transition: transform 0.2s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.48);
}

.skill-card h3 {
  margin: 0 0 0.74rem;
  font-size: 1.02rem;
}

.skill-list {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.skill-list li + li {
  margin-top: 0.4rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.96), rgba(11, 19, 36, 0.95));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.34);
  transition: transform 0.2s ease, border-color 0.25s ease;
}

.timeline-item:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.45);
}

.timeline-role {
  margin: 0;
  font-size: 1.15rem;
}

.timeline-company {
  margin: 0.2rem 0 0;
  color: #9ac7ff;
  font-weight: 600;
}

.timeline-meta {
  margin: 0.15rem 0 0.9rem;
  color: #8ea6c8;
  font-size: 0.9rem;
}

.timeline-bullets {
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
}

.timeline-bullets li + li {
  margin-top: 0.45rem;
}

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

.project-card,
.article-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.96), rgba(11, 19, 36, 0.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.34);
  transition: transform 0.22s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card::before,
.article-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.8), rgba(34, 211, 238, 0.8));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.project-card:hover,
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, 0.44);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.42);
}

.project-card:hover::before,
.article-card:hover::before {
  opacity: 1;
}

.project-card h3,
.article-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.project-card p,
.article-card p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.project-highlights {
  margin: 0.82rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-highlights li + li {
  margin-top: 0.35rem;
}

.project-tags {
  margin-top: 0.96rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.23rem 0.56rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34);
  color: #b8dcff;
}

.card-link {
  margin-top: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #b7dcff;
  font-size: 0.92rem;
  font-weight: 600;
}

.card-link:hover {
  color: #dbf2ff;
}

.article-meta {
  margin-top: 0.45rem;
  color: #8fa8ca;
  font-size: 0.86rem;
  font-weight: 500;
}

.simple-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.simple-list li {
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.95), rgba(11, 19, 36, 0.94));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.3);
  transition: transform 0.2s ease, border-color 0.25s ease;
}

.simple-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 211, 252, 0.42);
}

.simple-list h3 {
  margin: 0;
  font-size: 1rem;
}

.simple-list p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.article-main {
  padding-bottom: 4.8rem;
}

.article-shell {
  max-width: 880px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(16, 26, 49, 0.98), rgba(10, 18, 34, 0.97));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.article-cover {
  width: 100%;
  height: min(52vw, 420px);
  object-fit: cover;
}

.article-inner {
  padding: clamp(1.1rem, 3vw, 2rem);
}

.article-kicker {
  margin: 0;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.article-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-meta {
  margin: 0.9rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.article-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #b7cceb;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34);
}

.article-body {
  color: #bfd0e6;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body h2,
.article-body h3 {
  margin: 1.7rem 0 0.75rem;
  color: #e4ecf8;
}

.article-body h2 {
  font-size: 1.34rem;
}

.article-body h3 {
  font-size: 1.08rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.1rem;
  padding: 0;
}

.article-body li {
  margin-bottom: 0.45rem;
}

.article-body blockquote {
  margin: 1.2rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid rgba(34, 211, 238, 0.8);
  border-radius: 8px;
  background: rgba(34, 211, 238, 0.08);
  color: #d7e8fb;
}

.article-separator {
  margin: 1.45rem 0;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.24);
}

.article-source {
  margin-top: 1.45rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.3);
  color: #9eb4d2;
  font-size: 0.92rem;
}

.article-source a {
  font-weight: 600;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 5.45rem 0 2.45rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(8, 13, 31, 0.85), rgba(6, 10, 25, 0.78));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

body[data-page^="article-"] .article-main {
  padding: 3.2rem 0 5rem;
}

body[data-page^="article-"] {
  --article-title-color: #ffd39a;
  --article-heading-section: #e4b1ff;
  --article-heading-subsection: #8ddcff;
  --article-heading-keyline: #f6c676;
}

body[data-page^="article-"] .article-shell {
  max-width: 930px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

body[data-page^="article-"] .article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

body[data-page^="article-"] .article-kicker {
  color: #9bb4d6;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

body[data-page^="article-"] .article-title {
  margin: 0.5rem 0 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 3.05rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--article-title-color);
}

body[data-page^="article-"] .article-meta {
  margin: 1rem 0 1.2rem;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body[data-page^="article-"] .article-meta-chip {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: #c4d6ef;
  background: rgba(59, 130, 246, 0.12);
}

body[data-page^="article-"] .article-cover {
  display: block;
  width: 100%;
  height: auto;
  max-height: 540px;
  margin: 0 0 2rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.42);
}

body[data-page^="article-"] .article-body {
  max-width: 740px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.9;
  color: #d2dcec;
}

body[data-page^="article-"] .article-body p {
  margin: 0 0 1.24rem;
}

body[data-page^="article-"] .article-body h2,
body[data-page^="article-"] .article-body h3 {
  font-family: "Inter", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

body[data-page^="article-"] .article-body h2 {
  font-size: 1.5rem;
  margin-top: 2.15rem;
  color: var(--article-heading-section);
}

body[data-page^="article-"] .article-body h3 {
  font-size: 1.15rem;
  margin-top: 1.7rem;
  color: var(--article-heading-section);
}

body[data-page^="article-"] .article-body .quick-bucket-list {
  margin: 0.2rem 0 1.6rem 0.9rem;
  padding: 0;
}

body[data-page^="article-"] .article-body .quick-bucket-list > li {
  margin: 0 0 0.9rem;
}

body[data-page^="article-"] .article-body .quick-bucket-list > li > strong {
  color: var(--article-heading-section);
}

body[data-page^="article-"] .article-body .quick-bucket-points {
  margin: 0.22rem 0 0 1.55rem;
  padding: 0;
}

body[data-page^="article-"] .article-body .quick-bucket-points > li {
  margin-bottom: 0.32rem;
}

body[data-page^="article-"] .article-body .security-point-list {
  margin: 0.45rem 0 1.7rem 1.35rem;
  padding: 0;
}

body[data-page^="article-"] .article-body .security-point {
  margin: 0 0 1.12rem;
  padding-left: 0.08rem;
}

body[data-page^="article-"] .article-body .security-point > h4 {
  margin: 0 0 0.48rem;
}

body[data-page^="article-"] .article-body .security-point > ul {
  margin-left: 0.35rem;
}

body[data-page^="article-"] .article-body .security-point > ul {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

body[data-page^="article-"] .article-body .security-point > ul:first-of-type + p {
  margin-left: 1.28rem;
}

body[data-page^="article-"] .article-body .security-point > ul > li:has(> strong) {
  margin-bottom: 0.15rem;
}

body[data-page^="article-"] .article-body .security-point > ul > li:has(> strong) ~ li {
  margin-left: 1.2rem;
  list-style-type: circle;
}

body[data-page^="article-"] .article-body h4 {
  margin: 1.4rem 0 0.7rem;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  color: var(--article-heading-subsection);
  letter-spacing: -0.01em;
}

body[data-page^="article-"] .article-body li {
  margin-bottom: 0.56rem;
}

body[data-page^="article-"] .article-body li > strong:first-child {
  color: var(--article-heading-keyline);
}

body[data-page^="article-"] .article-body a {
  color: #9bd0ff;
  text-decoration: underline;
  text-decoration-color: rgba(155, 208, 255, 0.45);
  text-underline-offset: 0.18em;
}

body[data-page^="article-"] .article-body a:hover {
  color: #c5e8ff;
  text-decoration-color: rgba(197, 232, 255, 0.72);
}

body[data-page^="article-"] .article-body img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.25rem 0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 12px 34px rgba(2, 6, 23, 0.35);
}

body[data-page^="article-"] .article-source {
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #91a8c7;
}

.maintenance-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.maintenance-note code {
  font-family: "JetBrains Mono", Consolas, monospace;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.34);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(5, 9, 22, 0.8);
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  color: #8ea6c8;
  font-size: 0.9rem;
}

.footer-social {
  display: inline-flex;
  gap: 0.7rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #9cb7da;
  background: rgba(15, 23, 42, 0.55);
}

.footer-social a:hover {
  color: #d9efff;
  border-color: rgba(125, 211, 252, 0.65);
  background: rgba(34, 211, 238, 0.13);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(125deg, var(--brand), var(--accent));
  color: #031225;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #031225;
  filter: brightness(1.05);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
  transition:
    opacity 0.62s ease,
    transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-14px) translateX(12px);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, 18px);
  }
}

@media (max-width: 991px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 0.45rem 0.85rem 0.9rem;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(8, 13, 31, 0.98);
    border-radius: 12px;
    padding: 0.55rem;
    box-shadow: var(--shadow-strong);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border-radius: 8px;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(59, 130, 246, 0.14);
  }

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

  .hero-visual {
    justify-self: start;
    max-width: 100%;
  }

  .hero-image {
    height: 390px;
  }

  .skills-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .availability-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }
}

@media (max-width: 575px) {
  .brand-name {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: 5.2rem;
  }

  .section {
    padding: 3.6rem 0;
  }
}

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

  /* Keep the existing layouts while sharing the editorial palette. */
  body {
    background: var(--paper);
  }

  body::before,
  body::after,
  .hero::before,
  .hero::after,
  .hero-image-card::before,
  .btn-brand::before,
  .project-card::before,
  .article-card::before {
    display: none;
  }

  a, a:hover, .card-link, .card-link:hover,
  .hero-kicker, .hero-role, .section-kicker, .article-kicker,
  .timeline-company, .site-nav a.active, .site-nav a:hover,
  .nav-toggle:hover {
    color: var(--green);
  }

  a:hover {
    text-decoration: underline;
    text-underline-offset: .22em;
  }

  .site-header, .site-footer {
    background: var(--paper);
    border-color: var(--line);
    backdrop-filter: none;
  }

  .brand-mark, .site-nav a::after, .hero-highlights li::before {
    background: var(--green);
    box-shadow: none;
  }

  .hero h1, .section-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
  }

  .btn-brand, .back-to-top {
    background: var(--green);
    color: white;
    box-shadow: none;
  }

  .btn-brand:hover, .btn-brand:focus-visible,
  .back-to-top:hover {
    background: var(--green-dark);
    color: white;
    text-decoration: none;
    filter: none;
  }

  .btn-outline-brand, .contact-link, .tag, .article-meta-chip,
  .footer-social a, .footer-socials a {
    color: var(--green);
    background: transparent;
    border-color: var(--line);
  }

  .btn-outline-brand:hover, .contact-link:hover, .footer-social a:hover,
  .footer-socials a:hover {
    background: var(--wash);
    border-color: var(--green);
    color: var(--green);
  }

  .section-muted, .availability-panel, .page-hero {
    background: var(--wash);
    border-color: var(--line);
  }

  .summary-card, .skill-card, .timeline-item, .project-card,
  .article-card, .simple-list li, .hero-image-card, .article-shell {
    background: var(--paper);
    border-color: var(--line);
    box-shadow: none;
  }

  .skill-card:hover, .timeline-item:hover, .project-card:hover,
  .article-card:hover, .simple-list li:hover {
    transform: none;
    border-color: var(--green);
    box-shadow: none;
  }

  .availability-panel p, .summary-card p, .timeline-meta,
  .article-meta, .footer-copy, .footer-inner > p, .article-source {
    color: var(--muted);
  }

  .footer-socials {
    display: flex;
    gap: 1rem;
  }

  .nav-toggle, .article-separator, .article-source,
  .article-meta, .article-meta-chip, .maintenance-note code {
    border-color: var(--line);
  }

  code, .maintenance-note code {
    color: var(--green);
    background: var(--wash);
    overflow-wrap: anywhere;
  }

  .article-body {
    color: var(--ink);
  }

  .article-body h2, .article-body h3 {
    color: var(--green);
  }

  .article-body blockquote {
    color: var(--ink);
    background: var(--wash);
    border-color: var(--green);
  }

  body[data-page^="article-"] {
    --article-title-color: var(--ink);
    --article-heading-section: var(--green);
    --article-heading-subsection: var(--green);
    --article-heading-keyline: var(--green);
  }

  body[data-page^="article-"] .article-title {
    font-weight: 500;
  }

  body[data-page^="article-"] .article-kicker,
  body[data-page^="article-"] .article-body a,
  body[data-page^="article-"] .article-body a:hover {
    color: var(--green);
    text-decoration-color: currentColor;
  }

  body[data-page^="article-"] .article-body {
    color: var(--ink);
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    max-width: 72ch;
  }

  body[data-page^="article-"] .article-meta-chip,
  body[data-page^="article-"] .article-source {
    color: var(--muted);
    background: transparent;
  }

  body[data-page^="article-"] .article-cover,
  body[data-page^="article-"] .article-body img,
  body[data-page^="article-"] .article-meta {
    border-color: var(--line);
    box-shadow: none;
  }

  .article-body iframe,   .article-body video {
    max-width: 100%;
  }

  .article-body {
    overflow-wrap: anywhere;
  }

  .reveal-on-scroll, .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  @media (max-width: 991px) {
    .site-nav ul {
      background: var(--paper);
      border-color: var(--line);
    }

    .site-nav a:hover, .site-nav a.active {
      background: var(--wash);
    }
  }
