:root {
  color-scheme: light dark;
  --bg: #f5f4f1;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --text: #141414;
  --muted: #5a5f66;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #0ea5a8;
  --accent-strong: #0b7f81;
  --accent-2: #f97316;
  --shadow: 0 20px 50px -30px rgba(14, 165, 168, 0.5);
  --radius: 22px;
  --radius-sm: 12px;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4f1;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0efec;
  --text: #141414;
  --muted: #5a5f66;
  --line: rgba(20, 20, 20, 0.12);
  --accent: #0ea5a8;
  --accent-strong: #0b7f81;
  --accent-2: #f97316;
  --shadow: 0 20px 50px -30px rgba(14, 165, 168, 0.5);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-alt: #0f1216;
  --surface: #12161c;
  --surface-2: #171c23;
  --text: #f5f5f5;
  --muted: #a7adb5;
  --line: rgba(245, 245, 245, 0.14);
  --accent: #27c3c6;
  --accent-strong: #1aa2a5;
  --accent-2: #fb923c;
  --shadow: 0 20px 60px -30px rgba(39, 195, 198, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --bg-alt: #0f1216;
    --surface: #12161c;
    --surface-2: #171c23;
    --text: #f5f5f5;
    --muted: #a7adb5;
    --line: rgba(245, 245, 245, 0.14);
    --accent: #27c3c6;
    --accent-strong: #1aa2a5;
    --accent-2: #fb923c;
    --shadow: 0 20px 60px -30px rgba(39, 195, 198, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 168, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 45%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(245, 244, 241, 0.6)),
    var(--bg);
  min-height: 100vh;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 168, 0.12), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.12), transparent 45%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.9), rgba(245, 244, 241, 0.6)),
    var(--bg);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 20% 20%, rgba(39, 195, 198, 0.16), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.12), transparent 50%),
    linear-gradient(140deg, rgba(10, 12, 16, 0.96), rgba(15, 18, 22, 0.7)),
    var(--bg);
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 20% 20%, rgba(39, 195, 198, 0.16), transparent 45%),
      radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.12), transparent 50%),
      linear-gradient(140deg, rgba(10, 12, 16, 0.96), rgba(15, 18, 22, 0.7)),
      var(--bg);
  }
}

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

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

a:hover {
  color: var(--accent-strong);
}

p {
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  p {
    text-wrap: pretty;
  }
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg-alt) 80%, transparent);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
  overflow: visible;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.theme-indicator:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

.theme-indicator .icon {
  width: 20px;
  height: 20px;
  display: none;
}

.theme-indicator .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  .theme-indicator .icon-sun {
    display: none;
  }

  .theme-indicator .icon-moon {
    display: block;
  }
}

html[data-theme="light"] .theme-indicator .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-indicator .icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-indicator .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-indicator .icon-moon {
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.lang-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  font-size: 1.05rem;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.lang-btn.active {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.95rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d0f;
  font-weight: 600;
  box-shadow: var(--shadow);
}


.contact-info {
  margin-top: 1.6rem;
}

.contact-info h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
}

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

.contact-link {
  margin-top: 0.9rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.2;
}

.contact-link:hover {
  color: var(--accent-strong);
}

.contact-link-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.icon-linkedin {
  width: 22px;
  height: 22px;
  display: block;
}

.avatar-video {
  width: min(240px, 70vw);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.avatar-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateY(9px) scale(1.08);
  transform-origin: center;
}

.nav-cta:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
}

.hero-byline {
  margin: -0.7rem 0 1.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity: 0.85;
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 35rem;
}

.hero-meta {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  background: var(--accent);
  color: #0b0d0f;
}

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: transparent;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.lead-large {
  font-size: 1.1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 24px 50px -45px rgba(0, 0, 0, 0.2);
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.6rem;
  font-size: 1.2rem;
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.media-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.media-image {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.media-plain {
  margin: 0;
}

.media-placeholder {
  border-radius: calc(var(--radius) - 8px);
  border: 1px dashed var(--line);
  min-height: 220px;
  background:
    linear-gradient(120deg, rgba(14, 165, 168, 0.08), rgba(249, 115, 22, 0.08)),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.04) 10px,
      transparent 10px,
      transparent 20px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
  .media-placeholder {
    background:
      linear-gradient(120deg, rgba(39, 195, 198, 0.16), rgba(251, 146, 60, 0.12)),
      repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.05) 10px,
        transparent 10px,
        transparent 20px
      );
  }
}

.media-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.process-list {
  display: grid;
  gap: 1rem;
}

.process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.process-index {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0b0d0f;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.6rem;
  background: linear-gradient(120deg, rgba(14, 165, 168, 0.12), rgba(249, 115, 22, 0.08));
}

@media (prefers-color-scheme: dark) {
  .callout {
    background: linear-gradient(120deg, rgba(39, 195, 198, 0.16), rgba(251, 146, 60, 0.1));
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 26px;
  width: auto;
  opacity: 0.9;
}

@media (prefers-color-scheme: dark) {
  .footer-logo {
    filter: brightness(0) invert(1);
    opacity: 0.85;
  }
}

html[data-theme="dark"] .footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

html[data-theme="light"] .footer-logo {
  filter: none;
  opacity: 0.9;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav {
    flex-wrap: wrap;
  }

  .avatar-video {
    width: min(200px, 65vw);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
