:root,
[data-theme="white"] {
  --canvas: #f6f7f4;
  --canvas-tint: #eef1ec;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-elevated: rgba(255, 255, 255, 0.90);
  --surface-inset: rgba(239, 243, 240, 0.85);
  --text-title: #0f172a;
  --text-body: #425062;
  --text-muted: #5a6778;
  --accent: #19655f;
  --accent-strong: #114c47;
  --accent-soft: rgba(25, 101, 95, 0.12);
  --accent-pill-bg: #d7ede5;
  --accent-pill-text: #114c47;
  --cta-bg: #19655f;
  --cta-fg: #ffffff;
  --orb-1: rgba(25, 101, 95, 0.18);
  --orb-2: rgba(255, 138, 61, 0.14);
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --shadow-soft: 0 20px 48px -16px rgba(15, 23, 42, 0.10), 0 4px 14px -4px rgba(15, 23, 42, 0.05);
  --dock-bg: rgba(247, 249, 248, 0.86);
  --wordmark: #0f172a;
}

[data-theme="sand"] {
  --canvas: #f1e7d6;
  --canvas-tint: #e8dac2;
  --surface: rgba(255, 252, 246, 0.76);
  --surface-elevated: rgba(255, 252, 246, 0.90);
  --surface-inset: rgba(242, 232, 214, 0.86);
  --text-title: #1e1914;
  --text-body: #473c30;
  --text-muted: #65584a;
  --accent: #8f4f1d;
  --accent-strong: #5a2d0a;
  --accent-soft: rgba(143, 79, 29, 0.14);
  --accent-pill-bg: rgba(214, 174, 125, 0.36);
  --accent-pill-text: #5a2d0a;
  --cta-bg: #1f1914;
  --cta-fg: #fffcf6;
  --orb-1: rgba(217, 138, 60, 0.18);
  --orb-2: rgba(25, 101, 95, 0.11);
  --border: rgba(45, 32, 18, 0.11);
  --border-strong: rgba(45, 32, 18, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 20px 48px -16px rgba(45, 32, 18, 0.12), 0 4px 14px -4px rgba(45, 32, 18, 0.06);
  --dock-bg: rgba(251, 246, 237, 0.88);
  --wordmark: #1e1914;
}

[data-theme="forest"] {
  --canvas: #131c17;
  --canvas-tint: #1a261f;
  --surface: rgba(26, 38, 31, 0.74);
  --surface-elevated: rgba(31, 45, 37, 0.88);
  --surface-inset: rgba(19, 28, 23, 0.86);
  --text-title: #f5f7f5;
  --text-body: #c5cdc8;
  --text-muted: #8b9890;
  --accent: #b0d4ba;
  --accent-strong: #d9f1e2;
  --accent-soft: rgba(176, 212, 186, 0.18);
  --accent-pill-bg: rgba(176, 212, 186, 0.18);
  --accent-pill-text: #d9f1e2;
  --cta-bg: #f3f3ed;
  --cta-fg: #121613;
  --orb-1: rgba(55, 215, 195, 0.20);
  --orb-2: rgba(251, 155, 80, 0.11);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --shadow-soft: 0 22px 54px -16px rgba(0, 0, 0, 0.50);
  --dock-bg: rgba(24, 35, 29, 0.86);
  --wordmark: #f5f7f5;
}

[data-theme="ocean"] {
  --canvas: #071c35;
  --canvas-tint: #0e2646;
  --surface: rgba(14, 38, 70, 0.74);
  --surface-elevated: rgba(18, 46, 84, 0.88);
  --surface-inset: rgba(8, 24, 46, 0.86);
  --text-title: #f2f7fc;
  --text-body: #c6d2e2;
  --text-muted: #8999b2;
  --accent: #7db9ff;
  --accent-strong: #d2e8ff;
  --accent-soft: rgba(125, 185, 255, 0.18);
  --accent-pill-bg: rgba(125, 185, 255, 0.18);
  --accent-pill-text: #d2e8ff;
  --cta-bg: #eef4fc;
  --cta-fg: #07162b;
  --orb-1: rgba(125, 185, 255, 0.22);
  --orb-2: rgba(55, 215, 195, 0.13);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.24);
  --shadow-soft: 0 22px 54px -16px rgba(2, 10, 22, 0.58);
  --dock-bg: rgba(11, 32, 60, 0.86);
  --wordmark: #f2f7fc;
}

[data-theme="dark"] {
  --canvas: #090909;
  --canvas-tint: #141414;
  --surface: rgba(22, 22, 24, 0.78);
  --surface-elevated: rgba(28, 28, 30, 0.92);
  --surface-inset: rgba(14, 14, 16, 0.88);
  --text-title: #fafafa;
  --text-body: #cacace;
  --text-muted: #94949c;
  --accent: #37d7c3;
  --accent-strong: #aef5ec;
  --accent-soft: rgba(55, 215, 195, 0.18);
  --accent-pill-bg: rgba(55, 215, 195, 0.18);
  --accent-pill-text: #aef5ec;
  --cta-bg: #ffffff;
  --cta-fg: #090909;
  --orb-1: rgba(55, 215, 195, 0.18);
  --orb-2: rgba(251, 155, 80, 0.11);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --glass-highlight: rgba(255, 255, 255, 0.20);
  --shadow-soft: 0 22px 54px -16px rgba(0, 0, 0, 0.65);
  --dock-bg: rgba(20, 20, 22, 0.86);
  --wordmark: #fafafa;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: ui-rounded, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
  background-color: var(--canvas);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s ease;
}

.font-serif {
  font-family: "Newsreader", Georgia, "New York", "Times New Roman", serif;
  letter-spacing: -0.025em;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 16px;
}

/* Ambient background orbs */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(95px);
  transition: background 0.6s ease;
  will-change: transform;
}

.orb-1 {
  width: 68vw;
  max-width: 860px;
  height: 540px;
  top: -190px;
  left: -14vw;
  background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
  transform: translate3d(calc(var(--scroll-orb, 0px) * 0.45), calc(var(--scroll-orb, 0px) * 0.8), 0);
}

.orb-2 {
  width: 58vw;
  max-width: 760px;
  height: 500px;
  bottom: -140px;
  right: -12vw;
  background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
  transform: translate3d(calc(var(--scroll-orb, 0px) * -0.45), calc(var(--scroll-orb, 0px) * -0.7), 0);
}

/* Layout */
.container {
  width: min(1560px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 50px 0;
}

.section-header {
  max-width: 960px;
  margin-bottom: 28px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.1;
  font-weight: 500;
  color: var(--text-title);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 12px 0 0;
  font-size: 17px;
  color: var(--text-body);
}

/* Glass cards */
.glass {
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    var(--shadow-soft);
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}

.glass-elevated {
  background: var(--surface-elevated);
}

/* Floating Liquid Glass Pill Header (Zero-Wobble) */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  width: min(1560px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px 9px 18px;
  border-radius: 999px;
  background: var(--dock-bg);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    var(--shadow-soft);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled .nav-pill {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 0 var(--glass-highlight),
    0 18px 44px -16px rgba(0, 0, 0, 0.26);
}

main {
  padding-top: 90px;
}

section[id] {
  scroll-margin-top: 98px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--wordmark);
  font-weight: 700;
  font-size: 18.5px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--accent-soft);
  color: var(--text-title);
}

.nav-links a.is-active {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  font-weight: 600;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  line-height: 1;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-btn:hover {
  color: var(--text-title);
}

.lang-btn.is-active {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
}

.theme-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(128, 128, 128, 0.28);
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-dot:hover {
  transform: scale(1.12);
}

.theme-dot.is-active {
  box-shadow: 0 0 0 2px var(--canvas), 0 0 0 3.5px var(--accent);
  transform: scale(1.08);
}

.theme-dot[data-set-theme="white"] { background: #f6f7f4; }
.theme-dot[data-set-theme="sand"] { background: #f1e7d6; }
.theme-dot[data-set-theme="forest"] { background: #131c17; }
.theme-dot[data-set-theme="ocean"] { background: #071c35; }
.theme-dot[data-set-theme="dark"] { background: #090909; }

.pill-cta,
.pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.pill-cta {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: none;
}

.pill-cta:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.pill-secondary {
  background: var(--surface);
  color: var(--text-title);
  border: 1px solid var(--border);
  font-weight: 600;
}

.pill-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.nav-cta-compact {
  padding: 9px 16px;
}

/* Hero */
.hero {
  padding: 64px 0 46px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: end;
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1.03;
  font-weight: 500;
  color: var(--text-title);
  letter-spacing: -0.025em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-aside {
  padding-bottom: 4px;
}

.hero-sub {
  margin: 0;
  font-size: 17px;
  color: var(--text-body);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Studio Frame Card in Hero */
.studio-card {
  border-radius: 28px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.studio-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.studio-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.studio-lockup img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.studio-lockup strong {
  display: block;
  font-size: 16px;
  color: var(--text-title);
}

.studio-lockup span {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-pill-text);
  background: var(--accent-pill-bg);
  padding: 5px 11px;
  border-radius: 999px;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.mini-project-list {
  display: grid;
  gap: 12px;
}

.mini-project {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.mini-project:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.mini-project img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.mini-project-meta {
  min-width: 0;
  flex: 1;
}

.mini-project-meta strong {
  display: block;
  font-size: 15px;
  color: var(--text-title);
}

.mini-project-meta span {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-arrow {
  font-size: 16px;
  color: var(--accent);
  font-weight: 700;
}

.studio-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-top: 4px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-card:hover,
.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.project-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}

.project-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.25);
}

.project-category {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.project-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  color: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.project-stage {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.project-stage::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.project-stage.is-dev::before {
  background: #38bdf8;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
}

.badge-placeholder {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  border: 1px solid var(--placeholder-border);
}

.project-summary {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-body);
}

.project-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-features li {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-inset);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.52;
  color: var(--text-body);
}

.project-features strong {
  display: block;
  font-size: 13.8px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.project-link:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Capabilities */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pillar-card {
  border-radius: 26px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-pill-bg);
  color: var(--accent-pill-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pillar-card h3 {
  margin: 4px 0 0;
  font-size: 19px;
  color: var(--text-title);
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-body);
}

/* About Dominique */
.about-card {
  border-radius: 28px;
  padding: 34px 36px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  align-items: center;
}

.portrait-figure {
  margin: 0;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.portrait-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.about-content h2 {
  margin: 4px 0 12px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.12;
  color: var(--text-title);
  font-weight: 500;
}

.about-content p {
  margin: 0 0 10px;
  font-size: 15.5px;
}

.about-principles {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-principle {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.about-principle strong {
  display: block;
  font-size: 14.5px;
  color: var(--accent);
  margin-bottom: 4px;
}

.about-principle span {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-body);
}

.about-signature {
  margin: 20px 0 0 !important;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 19px !important;
  font-style: italic;
  color: var(--text-title);
}

.about-stats {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-stats div {
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
}

.about-stats dt {
  font-size: 12.5px;
  color: var(--text-muted);
}

.about-stats dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-title);
}

/* Contact Banner (Navurio & Vunalio Pattern) */
.download-banner {
  border-radius: 32px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.frame-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Footer */
.site-footer {
  padding: 26px 0 38px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links button,
.footer-links a {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
}

.footer-links button:hover,
.footer-links a:hover {
  color: var(--text-title);
  text-decoration: underline;
}

/* Dialogs */
.legal-dialog {
  width: min(600px, calc(100% - 32px));
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: var(--surface-elevated);
  color: var(--text-body);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.legal-dialog::backdrop {
  background: rgba(10, 16, 15, 0.56);
  backdrop-filter: blur(6px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  color: var(--text-title);
}

.legal-dialog h3 {
  margin: 20px 0 6px;
  font-size: 15px;
  color: var(--text-title);
}

.legal-dialog p,
.legal-dialog address {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 14.5px;
}

.legal-dialog a {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split,
  .projects-grid,
  .about-card,
  .download-banner {
    grid-template-columns: 1fr;
  }

  .store-buttons {
    justify-content: flex-start;
  }

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

  .nav-links {
    display: none;
  }

  .about-card {
    padding: 26px;
  }

  .portrait-img {
    max-width: 340px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 40px 0;
  }

  .project-card,
  .download-banner {
    padding: 22px;
  }

  .project-top {
    flex-direction: column;
  }

  .about-stats,
  .about-principles,
  .project-features {
    grid-template-columns: 1fr;
  }

  .nav-cta-compact {
    display: none;
  }

  .site-header {
    padding: 0 12px;
  }

  .nav-pill {
    padding: 7px 10px 7px 14px;
  }

  .brand-link span {
    font-size: 15.5px;
  }

  .header-controls {
    gap: 6px;
  }

  .lang-btn {
    padding: 4px 6px;
    font-size: 11px;
  }

  .theme-dots {
    gap: 4px;
    padding: 4px 6px;
  }

  .theme-dot {
    width: 14px;
    height: 14px;
  }
}

/* Scroll Reveal & Motion */
html.has-reveal .reveal-target {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition-property: opacity, transform, background, border-color, box-shadow;
  transition-duration: 0.68s, 0.72s, 0.35s, 0.35s, 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms), var(--reveal-delay, 0ms), 0ms, 0ms, 0ms;
  will-change: opacity, transform;
}

html.has-reveal .reveal-target.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: auto;
}

html.has-reveal .reveal-target.is-settled {
  transition-duration: 0.35s, 0.28s, 0.35s, 0.35s, 0.28s;
  transition-delay: 0ms;
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    transform: none !important;
  }

  html.has-reveal .reveal-target {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
