:root {
  --bg-dark: #020412;
  --bg-mid: #0b1230;
  --text-main: #eef3ff;
  --text-muted: #b9c8ff;
  --card-bg: rgba(5, 10, 30, 0.72);
  --card-border: rgba(131, 161, 255, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  /* Fixed space background — background-attachment: fixed is most reliable */
  background-color: var(--bg-dark);
  background-image:
    linear-gradient(
      165deg,
      rgba(2, 4, 18, 0.28) 0%,
      rgba(2, 6, 24, 0.12) 50%,
      rgba(2, 4, 18, 0.38) 100%
    ),
    url("./assets/space2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  color: var(--text-main);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: transparent;
}

.parallax-site {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 3rem clamp(1rem, 2vw, 2.5rem);
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: transparent;
}

/* Hero: title + astronaut centered */
.panel.panel-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
}

.panel.panel-hero .hero-title {
  margin: 0 auto;
  max-width: calc(100vw - 2 * clamp(1rem, 2vw, 2.5rem));
}

/*
 * Hero: vertical stack — "Hey...", astronaut, "OCK".
 * Horizontally centered; overlap via negative margins (z: back 0, astronaut 1, OCK 2).
 */
.hero-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(720px, calc(100vw - 2 * clamp(1rem, 2vw, 2.5rem)));
  margin: 0 auto;
  padding: clamp(0.5rem, 2vh, 1.5rem) 0;
  min-height: clamp(280px, 56vh, 620px);
  isolation: isolate;
  letter-spacing: 0.02em;
  font-size: clamp(2.1rem, 6.5vw, 5.25rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  text-align: center;
}

.hero-title__back,
.hero-title__front {
  position: relative;
  white-space: nowrap;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.75);
}

.hero-title__back {
  z-index: 0;
  margin: 0 0 clamp(-2rem, -5.5vh, -0.5rem);
  transform: translateY(clamp(0.5rem, 1.8vh, 1.15rem));
}

.hero-title__front {
  z-index: 2;
  margin: clamp(-4.5rem, -12vh, -1.75rem) 0 0;
  transform: translateY(calc(-1 * clamp(3.25rem, 11vh, 6.75rem)));
}

.panel-hero .astronaut-hero {
  position: relative;
  width: min(56vw, 420px);
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  margin: clamp(-3.25rem, -8.5vh, -1.25rem) 0;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 640px) {
  .hero-title {
    min-height: clamp(240px, 50vh, 480px);
    font-size: clamp(1.5rem, 8vw, 2.4rem);
  }

  .hero-title__back {
    margin-bottom: clamp(-1.25rem, -4vh, -0.35rem);
    transform: translateY(clamp(0.35rem, 1.2vh, 0.75rem));
  }

  .panel-hero .astronaut-hero {
    width: min(62vw, 280px);
    margin: clamp(-2rem, -6vh, -0.75rem) 0;
  }

  .hero-title__front {
    margin-top: clamp(-2.75rem, -8vh, -1rem);
    transform: translateY(calc(-1 * clamp(2.1rem, 8.5vh, 4.25rem)));
  }
}

.content-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-main);
  font-weight: 700;
}

.content-card p {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.eyebrow {
  margin: 0 0 0.55rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #8ba7ff !important;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.theme-word {
  margin: 0 0 0.65rem !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: linear-gradient(105deg, #c4b5fd 0%, #93c5fd 45%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.65rem;
}

.eyebrow--inline,
.theme-word--inline {
  margin: 0 !important;
}

.heading-sep {
  color: rgba(139, 167, 255, 0.45);
  font-weight: 300;
  user-select: none;
}

.content-card .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--text-main);
  margin-bottom: 0.35rem !important;
  line-height: 1.55;
}

.content-card .lead-sub {
  margin: 0 0 0.5rem !important;
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.55;
  color: var(--text-muted);
}

.lead--quote {
  font-style: italic;
  opacity: 0.95;
}

.content-card .card-body-only {
  margin: 0 !important;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.btn-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.35rem;
  padding: 0.5rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #c8d6ff;
  border: 1px solid rgba(139, 167, 255, 0.38);
  border-radius: 999px;
  background: rgba(8, 14, 40, 0.45);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-cv:hover {
  color: #fff;
  border-color: rgba(180, 200, 255, 0.55);
  background: rgba(20, 35, 80, 0.5);
}

.cv-actions {
  display: flex;
  justify-content: center;
  margin: 0;
  margin-top: 0.25rem;
}

.section-inner {
  --section-max: 680px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2.2vh, 1.45rem);
  width: 100%;
  max-width: min(var(--section-max), 90vw);
  margin: 0 auto;
}

.section-inner--contact {
  --section-max: 560px;
}

.section-inner--projects {
  --section-max: 720px;
}

.content-addon {
  padding: clamp(0.85rem, 1.8vw, 1.15rem) clamp(1rem, 2vw, 1.25rem);
  border: 1px solid rgba(131, 161, 255, 0.22);
  border-radius: 16px;
  background: rgba(4, 8, 24, 0.42);
  backdrop-filter: blur(8px);
  opacity: 0.5;
  transform: translateY(12px);
  transition:
    opacity 450ms ease 80ms,
    transform 450ms ease 80ms;
}

.panel.is-visible .content-addon {
  opacity: 1;
  transform: translateY(0);
}

.addon-title {
  margin: 0 0 0.75rem !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(139, 167, 255, 0.75) !important;
}

.logo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Two universities / focus columns side by side */
.logo-strip--two-col {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.25rem;
}

.logo-strip--two-col .logo-item {
  flex: 1 1 min(280px, 100%);
  min-width: min(100%, 260px);
}

.logo-strip--edu.logo-strip--two-col .logo-item--stacked {
  padding: 0.65rem 0.5rem 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 167, 255, 0.18);
  background: rgba(4, 10, 28, 0.35);
}

.logo-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

/* Logo on top, copy below (dark-friendly, no white tile) */
.logo-item--stacked {
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo-item__text--under-logo {
  align-items: center;
  text-align: center;
  width: 100%;
}

.logo-item--employer {
  align-items: center;
  padding: 0.75rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 167, 255, 0.15);
  background: rgba(4, 10, 28, 0.35);
}

.logo-brand-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

/* Fixed canvas so both university marks render at the same visual size */
.logo-brand-block--edu {
  width: min(100%, 220px);
  height: 5rem;
  flex-shrink: 0;
}

.logo-brand-block--edu img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-brand-block--employer {
  min-height: 3rem;
  max-height: 3.75rem;
}

.logo-brand-block--employer img {
  max-width: min(180px, 100%);
  max-height: 3.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.logo-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.logo-degree {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(165, 190, 255, 0.82);
  line-height: 1.35;
}

/* Employer row: title + dates (sentence case) */
.logo-meta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(165, 190, 255, 0.78);
  line-height: 1.45;
}

.logo-mark {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #b8c9ff;
  border-radius: 12px;
  border: 1px solid rgba(139, 167, 255, 0.28);
  background: rgba(10, 18, 45, 0.65);
}

.logo-name {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.logo-mark--pm {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  background: linear-gradient(145deg, rgba(30, 50, 100, 0.9), rgba(60, 90, 160, 0.75));
}

.logo-mark--ios {
  font-size: 0.62rem;
  background: linear-gradient(145deg, rgba(20, 40, 90, 0.9), rgba(40, 120, 200, 0.65));
}

.logo-mark--compact {
  font-size: 0.52rem;
  letter-spacing: 0.04em;
}

.project-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-chip {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-radius: 999px;
  border: 1px solid rgba(139, 167, 255, 0.2);
  background: rgba(6, 12, 32, 0.55);
}

/* Projects: tabbed Apps vs Consulting */
.content-addon--project-tabs {
  padding: clamp(0.65rem, 1.5vw, 0.85rem);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-tablist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: 0 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(100, 140, 220, 0.22);
  background:
    linear-gradient(145deg, rgba(12, 20, 48, 0.92) 0%, rgba(6, 12, 32, 0.88) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.25);
}

.project-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem 0.6rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: rgba(180, 198, 255, 0.55);
  background: transparent;
  transition:
    color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s ease;
}

.project-tab:hover:not(.is-active) {
  color: rgba(220, 228, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.project-tab:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.65);
  outline-offset: 2px;
}

.project-tab__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-tab__hint {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(139, 167, 255, 0.45);
  transition: color 0.22s ease;
}

.project-tab--apps.is-active {
  color: #ecfeff;
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.35) 0%,
    rgba(59, 130, 246, 0.42) 55%,
    rgba(99, 102, 241, 0.32) 100%
  );
  box-shadow:
    0 4px 20px rgba(34, 211, 238, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.project-tab--apps.is-active .project-tab__hint {
  color: rgba(207, 250, 254, 0.75);
}

.project-tab--consulting.is-active {
  color: #faf5ff;
  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.38) 0%,
    rgba(244, 114, 182, 0.28) 50%,
    rgba(251, 191, 36, 0.22) 100%
  );
  box-shadow:
    0 4px 22px rgba(167, 139, 250, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-tab--consulting.is-active .project-tab__hint {
  color: rgba(233, 213, 255, 0.8);
}

.project-tab-panels {
  position: relative;
  border-radius: 14px;
  padding: 0.65rem 0.5rem 0.55rem;
  min-height: 8rem;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.project-tab-panel--apps {
  border: 1px solid rgba(56, 189, 248, 0.22);
  background:
    linear-gradient(
      165deg,
      rgba(8, 47, 73, 0.35) 0%,
      rgba(5, 12, 32, 0.5) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.06);
}

.project-tab-panel--consulting {
  border: 1px solid rgba(167, 139, 250, 0.28);
  background:
    linear-gradient(
      165deg,
      rgba(46, 16, 60, 0.4) 0%,
      rgba(5, 12, 32, 0.52) 100%
    );
  box-shadow: inset 0 0 0 1px rgba(192, 132, 252, 0.08);
}

.project-tab-panel[hidden] {
  display: none !important;
}

.project-tab-panel:not([hidden]) {
  animation: project-tab-fade 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .project-tab-panel:not([hidden]) {
    animation: none;
  }
}

@keyframes project-tab-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* App Store portfolio */
.app-showcase {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.app-showcase--consulting {
  gap: 0.85rem;
}

.app-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(139, 167, 255, 0.18);
  background: rgba(5, 12, 32, 0.55);
}

.app-card:not(.app-card--consulting) {
  align-items: center;
}

.app-card--consulting {
  padding: 0.75rem 0.7rem;
}

.app-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  background: rgba(8, 14, 36, 0.6);
}

.app-icon--image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-icon--consulting {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
}

.app-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.app-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

.app-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(139, 167, 255, 0.65);
}

.app-blurb {
  margin: 0.45rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(185, 200, 255, 0.82);
  font-weight: 400;
}

a.app-card--link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

a.app-card--link:hover {
  border-color: rgba(139, 167, 255, 0.38);
  background: rgba(12, 22, 52, 0.65);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

a.app-card--link:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.75);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  a.app-card--link:hover {
    transform: none;
  }
}

/* Standalone project detail page */
.project-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.project-page .content-card {
  opacity: 1 !important;
  transform: none !important;
}

.project-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(139, 167, 255, 0.9);
  transition: color 0.2s ease;
}

.project-back:hover {
  color: #fff;
}

.project-back:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.75);
  outline-offset: 3px;
  border-radius: 6px;
}

.project-detail__header {
  margin-bottom: 1rem;
}

.project-detail__eyebrow {
  margin-bottom: 0.5rem !important;
}

.project-detail__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

.project-detail__meta {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(139, 167, 255, 0.65);
}

.project-detail__hero {
  margin: 0 -0.25rem 1.25rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(139, 167, 255, 0.2);
  background: rgba(6, 12, 32, 0.6);
  aspect-ratio: 16 / 9;
}

.project-detail__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-prose {
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.project-prose p {
  margin: 0 0 1rem;
}

.project-prose p:last-child {
  margin-bottom: 0;
}

.project-prose__lead {
  font-size: clamp(1.02rem, 1.25vw, 1.12rem);
  color: rgba(220, 228, 255, 0.92);
}

.project-prose__h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(180, 198, 255, 0.55);
}

.project-detail--missing .project-detail__missing-text {
  margin: 0.75rem 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-detail__missing-actions {
  margin: 0;
}

.cert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cert-item {
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-radius: 10px;
  border: 1px solid rgba(139, 167, 255, 0.15);
  background: rgba(5, 10, 28, 0.5);
}

a.cert-item--link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

a.cert-item--link:hover {
  border-color: rgba(139, 167, 255, 0.32);
  background: rgba(12, 22, 48, 0.65);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
}

a.cert-item--link:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.75);
  outline-offset: 2px;
}

.cert-item__name {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.cert-item__meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(139, 167, 255, 0.55);
}

/* Farewell / contact */
.content-card--farewell {
  text-align: center;
  padding-block: clamp(1.5rem, 4vh, 2.25rem);
}

.farewell-ornament {
  font-size: 1.25rem;
  color: rgba(180, 200, 255, 0.45);
  margin-bottom: 0.35rem;
  letter-spacing: 0.2em;
}

.eyebrow--center {
  text-align: center;
  margin-bottom: 0.4rem !important;
}

.farewell-title {
  margin: 0 0 0.85rem !important;
  font-size: clamp(1.65rem, 4vw, 2.1rem) !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(110deg, #e8ecff 0%, #a8c4ff 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.farewell-lead {
  margin: 0 auto 1.5rem !important;
  max-width: 26rem;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem) !important;
  line-height: 1.65 !important;
  color: var(--text-muted) !important;
}

.farewell-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 0.75rem;
  margin-bottom: 1.15rem;
}

.btn-contact-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #0a0e1a;
  background: linear-gradient(135deg, #c8d7ff 0%, #8fb4ff 100%);
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 24px rgba(80, 120, 220, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn-contact-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(100, 140, 255, 0.45);
}

.btn-contact-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: #b9c8ff;
  border: 1px solid rgba(139, 167, 255, 0.4);
  border-radius: 999px;
  background: transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.btn-contact-ghost:hover {
  color: #fff;
  border-color: rgba(200, 215, 255, 0.55);
  background: rgba(20, 35, 80, 0.35);
}

.farewell-note {
  margin: 0 !important;
  font-size: 0.8rem !important;
  opacity: 0.65;
}

/* Same card width on every section */
.content-card {
  --card-max: 620px;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(var(--card-max), 90vw);
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1rem, 2vw, 2rem);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  opacity: 0.45;
  transform: translateY(16px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.panel.is-visible .content-card {
  opacity: 1;
  transform: translateY(0);
}

.section-inner .content-card {
  max-width: 100%;
}

@media (max-width: 900px) {
  .panel:not(.panel-hero) {
    padding-top: 5rem;
    padding-bottom: 5rem;
    place-items: center;
  }

  .content-card,
  .section-inner {
    max-width: 100%;
  }

  .card-heading-row {
    gap: 0.25rem 0.4rem;
  }
}
