/* kuskodu — brand (sdílené) + surfaces (den / noc) */

:root {
  /* barvy loga — syté v obou režimech */
  --pill-purple: #581845;
  --pill-red: #ff2d46;
  --pill-teal: #26b6a9;
  --pill-yellow: #ffb344;
  --pill-orange: #f37121;
  --pill-blue: #5ac0e7;

  --accent: #26b6a9;
  --accent-hover: #3dccc0;
  --accent-fg: #000000;

  --tag-purple-bg: #581845;
  --tag-purple-fg: #ffffff;
  --tag-red-bg: #ff2d46;
  --tag-red-fg: #000000;
  --tag-teal-bg: #26b6a9;
  --tag-teal-fg: #000000;
  --tag-yellow-bg: #ffb344;
  --tag-yellow-fg: #1a1a1a;
  --tag-orange-bg: #f37121;
  --tag-orange-fg: #000000;
  --tag-blue-bg: #5ac0e7;
  --tag-blue-fg: #0a0a0a;

  --card-accent-teal: rgba(38, 182, 169, 0.5);
  --card-accent-red: rgba(255, 45, 70, 0.5);
  --card-accent-orange: rgba(243, 113, 33, 0.5);

  --contact-bar-gradient: linear-gradient(
    90deg,
    #581845 0%,
    #ff2d46 18%,
    #26b6a9 36%,
    #ffb344 54%,
    #f37121 72%,
    #5ac0e7 100%
  );
  --font-sans: "DM Sans", system-ui, sans-serif;
  --radius-pill: 999px;
  --radius-card: 1.25rem;
  --contact-bar-h: 2.25rem;
  --nav-h: 3.75rem;
  --header-h: calc(var(--contact-bar-h) + var(--nav-h));
  --container: min(68rem, 92vw);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #141414;
  --bg-header: rgba(0, 0, 0, 0.85);
  --bg-menu-mobile: rgba(0, 0, 0, 0.97);
  --text: #f5f5f5;
  --text-muted: #b0b0b0;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --surface-subtle: rgba(255, 255, 255, 0.04);
  --surface-tag: rgba(255, 255, 255, 0.06);
  --surface-code: rgba(255, 255, 255, 0.08);
  --quote-bg: rgba(88, 24, 69, 0.22);
  --quote-border: #7a3560;
  --card-shadow: none;
  --hero-pills-opacity: 0.38;
  --theme-color: #000000;
  --hero-title-gradient: linear-gradient(135deg, #f5f5f5 0%, #26b6a9 48%, #ffb344 100%);
  --contact-bar-bg: rgba(20, 20, 20, 0.95);
  --contact-bar-fg: #e8e8e8;
  --contact-bar-label: rgba(255, 255, 255, 0.55);
}

[data-theme="light"] {
  color-scheme: light;

  --bg: #ffffff;
  --bg-elevated: #f7f8f8;
  --bg-card: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-menu-mobile: rgba(255, 255, 255, 0.98);
  --text: #151515;
  --text-muted: #4f4b44;
  --border: rgba(36, 31, 23, 0.11);
  --border-strong: rgba(36, 31, 23, 0.22);
  --surface-hover: rgba(36, 31, 23, 0.055);
  --surface-subtle: rgba(36, 31, 23, 0.035);
  --surface-tag: rgba(36, 31, 23, 0.055);
  --surface-code: rgba(36, 31, 23, 0.07);
  --quote-bg: rgba(88, 24, 69, 0.1);
  --quote-border: #581845;
  --card-shadow: 0 1px 2px rgba(36, 31, 23, 0.05), 0 12px 32px rgba(36, 31, 23, 0.08);
  --hero-pills-opacity: 0.34;
  --theme-color: #ffffff;
  --hero-title-gradient: linear-gradient(135deg, #151515 0%, #168f86 46%, #d98518 100%);
  --contact-bar-bg: #201d19;
  --contact-bar-fg: #f5f5f5;
  --contact-bar-label: rgba(255, 255, 255, 0.65);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 179, 68, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(38, 182, 169, 0.07), transparent 26rem),
    var(--bg);
}

.site-header,
.card,
.theme-toggle,
.btn--ghost,
.nav__menu {
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.contact-bar {
  position: relative;
  height: var(--contact-bar-h);
  display: flex;
  align-items: center;
  background: var(--contact-bar-bg);
}

.contact-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.contact-bar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    #581845,
    #ff2d46,
    #26b6a9,
    #ffb344,
    #f37121,
    #5ac0e7,
    #581845
  );
  background-size: 200% 100%;
  animation: gradient-flow 10s linear infinite;
}

.contact-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    #581845,
    #ff2d46,
    #26b6a9,
    #ffb344,
    #f37121,
    #5ac0e7,
    #581845
  );
  background-size: 200% 100%;
  opacity: 0.4;
  animation: gradient-flow 10s linear infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.contact-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.75rem;
}

.contact-bar__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--contact-bar-fg);
  transition: color 0.2s var(--ease);
}

.contact-bar__list a:hover,
.contact-bar__list a:focus-visible {
  color: var(--pill-yellow);
}

.contact-bar__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--contact-bar-label);
}

.nav {
  height: var(--nav-h);
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav__logo {
  border-radius: 0.35rem;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.nav__menu a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  color: var(--text);
}

.nav__cta {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-fg) !important;
  font-weight: 600;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--accent-hover);
  color: var(--accent-fg) !important;
}

.nav__settings {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.25rem;
}

.language-toggle,
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.language-toggle:hover,
.language-toggle:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--pill-teal);
  background: var(--surface-hover);
}

.theme-toggle__icon {
  display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun,
[data-theme="light"] .theme-toggle__icon--moon {
  display: block;
}

.nav__toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav__toggle-bar {
  position: relative;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav__toggle-bar::before {
  top: -6px;
}

.nav__toggle-bar::after {
  top: 6px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse at 46% 48%, rgba(255, 255, 255, 0.7), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(247, 248, 248, 0.28) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 88%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: var(--hero-pills-opacity);
  transition: opacity 0.4s var(--ease);
}

.code-blocks {
  width: min(32rem, 85vw);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transform: translateX(-8%);
}

.code-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.code-row--indent {
  padding-left: 18%;
}

.pill {
  display: block;
  height: 0.85rem;
  width: var(--w, 30%);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  animation: pill-in 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.pill--purple { background: var(--pill-purple); }
.pill--red { background: var(--pill-red); }
.pill--teal { background: var(--pill-teal); }
.pill--yellow { background: var(--pill-yellow); }
.pill--orange { background: var(--pill-orange); }
.pill--blue { background: var(--pill-blue); }

.code-row:nth-child(1) .pill:nth-child(1) { --i: 1; }
.code-row:nth-child(1) .pill:nth-child(2) { --i: 2; }
.code-row:nth-child(1) .pill:nth-child(3) { --i: 3; }
.code-row:nth-child(2) .pill { --i: 4; }
.code-row:nth-child(3) .pill { --i: 5; }
.code-row:nth-child(4) .pill { --i: 6; }
.code-row:nth-child(5) .pill { --i: 7; }
.code-row:nth-child(6) .pill { --i: 8; }
.code-row:nth-child(7) .pill { --i: 9; }

@keyframes pill-in {
  from {
    opacity: 0;
    transform: scaleX(0.3);
    transform-origin: left;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  max-width: 40rem;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.hero__title {
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.hero__title-brand {
  display: block;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: var(--hero-title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 500;
  color: var(--text-muted);
}

.hero__lead {
  position: relative;
  z-index: 1;
  margin: 0 0 2rem;
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  transition: color 0.35s var(--ease);
}

.hero__lead::before {
  content: "";
  position: absolute;
  inset: -0.75rem -1rem;
  z-index: -1;
  border-radius: var(--radius-card);
  background: var(--bg);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.hero:has(.hero__lead:hover) .hero__bg,
.hero:has(.hero__lead:focus-visible) .hero__bg {
  opacity: calc(var(--hero-pills-opacity) * 0.2);
}

.hero:has(.hero__lead:hover)::before,
.hero:has(.hero__lead:focus-visible)::before {
  opacity: 0.84;
}

.hero__lead:hover,
.hero__lead:focus-visible {
  z-index: 5;
  color: var(--text);
}

.hero__lead:hover::before,
.hero__lead:focus-visible::before {
  opacity: 0.92;
}

[data-theme="light"] .hero__lead::before {
  background: var(--bg);
  border: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-hover);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface-subtle);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.btn--large {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: 5.5rem 0;
}

.section[id],
.section-anchor {
  scroll-margin-top: var(--header-h);
}

.section-anchor {
  display: block;
  height: 0;
}

.section__header {
  margin-bottom: 2.75rem;
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.section__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ——— Service cards ——— */
.services {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 14%, var(--bg-elevated) 100%);
}

.services .section__header {
  margin-inline: auto;
  text-align: center;
}

.services .section__header {
  max-width: 42rem;
}

.services .section__desc {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 54rem;
  margin-inline: auto;
}

.card {
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  text-align: left;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

[data-theme="light"] .card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 1));
}

[data-theme="light"] .card:hover {
  box-shadow: 0 1px 2px rgba(36, 31, 23, 0.06), 0 18px 42px rgba(36, 31, 23, 0.1);
}

.card:hover {
  transform: translateY(-4px);
}

.card--teal:hover { border-color: var(--card-accent-teal); }
.card--red:hover { border-color: var(--card-accent-red); }
.card--orange:hover { border-color: var(--card-accent-orange); }
.card--purple:hover { border-color: rgba(88, 24, 69, 0.55); }

.card__icon {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.card__icon .pill {
  height: 0.55rem;
  width: 2.5rem;
  animation: none;
}

.card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  text-align: center;
}

.card__text {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.9875rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: left;
}

.card__text strong {
  color: var(--text);
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.45rem;
}

.card__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--surface-tag);
  color: var(--text-muted);
  border-left: 3px solid transparent;
}

.card--teal .card__tags li { border-left-color: var(--pill-teal); }
.card--red .card__tags li { border-left-color: var(--pill-red); }
.card--orange .card__tags li { border-left-color: var(--pill-orange); }
.card--purple .card__tags li { border-left-color: var(--pill-purple); }

/* ——— About: značka + osoba ——— */
.about-brand {
  padding-bottom: 2.5rem;
  background: var(--bg);
}

.about-brand__inner {
  max-width: 40rem;
}

.about-brand__prose p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about-brand__lead {
  font-size: 1.2rem;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.about-brand__lead strong {
  color: var(--text);
}

.about-brand__subtitle {
  margin: 2rem 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.about-brand__subtitle:first-of-type {
  margin-top: 1.5rem;
}

.about-brand__prose em {
  font-style: normal;
  color: var(--accent);
}

.about-brand__logo-code {
  max-width: 30rem;
  margin: 1.35rem auto 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface-subtle);
}

[data-theme="light"] .about-brand__logo-code {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 1));
  box-shadow: var(--card-shadow);
}

.logo-code__mark {
  display: grid;
  gap: 0.6rem;
  padding: 0.35rem;
}

.logo-code__row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-code__row--indent {
  padding-left: 14%;
}

.logo-code__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  height: 1.7rem;
  padding: 0 0.8rem;
  border-radius: var(--radius-pill);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.logo-code__pill--purple {
  min-width: 10.8rem;
  background: var(--pill-purple);
  color: #ffffff;
}

.logo-code__pill--red {
  min-width: 8.4rem;
  background: var(--pill-red);
  color: #000000;
}

.logo-code__pill--teal {
  min-width: 10.5rem;
  background: var(--pill-teal);
  color: #000000;
}

.logo-code__pill--yellow {
  min-width: 7.4rem;
  background: var(--pill-yellow);
  color: #1a1a1a;
}

.logo-code__pill--orange {
  min-width: 10rem;
  background: var(--pill-orange);
  color: #000000;
}

.logo-code__pill--blue {
  min-width: 10rem;
  background: var(--pill-blue);
  color: #0a0a0a;
}

.code-story__result {
  margin: 0.75rem 0 0 !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}

.about-person {
  padding-top: 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 52%, var(--bg) 100%);
}

.about__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem 4rem;
  align-items: center;
  max-width: 52rem;
}

.about__eyebrow {
  margin: 0 0 0.55rem !important;
  color: var(--accent) !important;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about__visual {
  display: flex;
  justify-content: center;
}

.about__photo-frame {
  position: relative;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--bg-card), var(--bg-card)),
    var(--surface-subtle);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  padding: 0.45rem;
  transition: border-color 0.35s var(--ease);
}

.about__photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(38, 182, 169, 0.16), transparent 9rem),
    radial-gradient(circle at 90% 86%, rgba(255, 179, 68, 0.12), transparent 8rem);
  pointer-events: none;
}

.about__photo-code {
  position: absolute;
  inset: 0.9rem auto auto 0.9rem;
  z-index: 1;
  display: grid;
  gap: 0.35rem;
  width: 7.5rem;
  opacity: 0.34;
  pointer-events: none;
}

.about__photo-code .pill {
  height: 0.45rem;
  width: var(--w);
  animation: none;
}

.about__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(14rem, 42vw);
  max-height: 22rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 0.75rem;
}

.about__content .section__title {
  margin-bottom: 1rem;
}

.about__intro {
  font-size: 1.125rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.25rem !important;
}

.about__content p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.about__content strong {
  color: var(--text);
}

.about__tags-label {
  margin: 1.5rem 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.about__expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.about__expertise li {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--surface-tag);
  color: var(--text-muted);
  border-left: 3px solid var(--pill-teal);
}

.about__link {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.about__link:hover,
.about__link:focus-visible {
  color: var(--accent-hover);
}

/* ——— References carousel ——— */
.references {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.carousel {
  max-width: 40rem;
  margin-inline: auto;
}

.carousel__viewport {
  position: relative;
  min-height: 9rem;
}

.carousel__slide {
  margin: 0;
  padding: 0;
  border: none;
  transition: opacity 0.35s var(--ease);
}

.carousel__slide[hidden] {
  display: none;
}

.carousel__slide p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text);
}

.carousel__slide footer {
  margin: 0;
}

.carousel__slide cite {
  font-size: 0.8125rem;
  font-weight: 500;
  font-style: normal;
  color: var(--text-muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: var(--surface-subtle);
  color: var(--text);
  font-size: 1.125rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
  border-color: var(--pill-teal);
  background: var(--surface-hover);
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.carousel__dot.is-active {
  transform: scale(1.35);
  background: var(--pill-teal);
}

.carousel__dot:hover,
.carousel__dot:focus-visible {
  background: var(--pill-yellow);
}

/* ——— Contact ——— */
.contact {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 18%, var(--bg) 100%);
}

.contact__inner {
  text-align: center;
}

.contact__note {
  max-width: 32rem;
  margin: 0 auto 1.75rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__note code {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  background: var(--surface-code);
  border-radius: 0.35rem;
}

.site-footer__links a,
.site-footer__info a {
  color: var(--accent);
  transition: color 0.2s var(--ease);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__info a:hover,
.site-footer__info a:focus-visible {
  color: var(--accent-hover);
}

/* ——— Footer ——— */
.site-footer {
  padding: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.site-footer__brand img {
  border-radius: 0.35rem;
}

.site-footer__brand span,
.site-footer__brand small {
  display: block;
}

.site-footer__brand small {
  margin-top: 0.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.site-footer__main-meta {
  text-align: right;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 0.9rem;
  margin-top: 0.35rem;
}

.site-footer__links a {
  font-size: 0.8125rem;
  font-weight: 600;
}

.site-footer__info {
  position: relative;
  padding: 0.8rem 0 0.7rem;
  border-top: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--text-muted);
  overflow: hidden;
}

.site-footer__info::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    #581845,
    #ff2d46,
    #26b6a9,
    #ffb344,
    #f37121,
    #5ac0e7,
    #581845
  );
  background-size: 200% 100%;
  opacity: 0.85;
  animation: gradient-flow 10s linear infinite;
}

.site-footer__info-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  justify-content: center;
  text-align: center;
}

.site-footer__info p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0.68;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-bar__list {
    gap: 0.25rem 1rem;
  }

  .contact-bar__list a {
    font-size: 0.75rem;
  }

  .nav__settings {
    margin-left: 0;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0.25rem;
    background: var(--bg-menu-mobile);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu a {
    display: block;
    padding: 0.75rem 0;
  }

  .nav__cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .hero__bg {
    opacity: calc(var(--hero-pills-opacity) * 0.65);
  }

  .code-blocks {
    transform: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-brand__inner {
    max-width: none;
  }

  .about-brand__logo-code {
    margin-inline: auto;
  }

  .logo-code__pill {
    min-width: auto;
    height: 1.55rem;
    padding-inline: 0.65rem;
    font-size: 0.625rem;
  }

  .logo-code__row--indent {
    padding-left: 8%;
  }

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

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__main-meta {
    text-align: left;
  }

  .site-footer__links {
    justify-content: flex-start;
  }

  .site-footer__info-inner {
    justify-content: flex-start;
    text-align: left;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .site-header,
  .card,
  .theme-toggle,
  .btn--ghost,
  .nav__menu {
    transition: none;
  }

  .pill {
    animation: none;
  }

  .btn:hover,
  .card:hover {
    transform: none;
  }

  .hero__bg,
  .hero__lead::before,
  .contact-bar::before,
  .contact-bar::after {
    animation: none;
  }
}
