:root {
  color-scheme: dark;
  --background: #000000;
  --surface: #0b0b0d;
  --surface-solid: #141417;
  --text: #f4f7fb;
  --muted: #a4adbb;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #2f80ff;
  --accent-strong: #8ec5ff;
  --accent-soft: rgba(47, 128, 255, 0.16);
  --tag: #101014;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #eef0f3;
  --surface: #f8f9fb;
  --surface-solid: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6670;
  --line: rgba(20, 28, 38, 0.12);
  --accent: #0066cc;
  --accent-strong: #004b9b;
  --accent-soft: rgba(0, 102, 204, 0.12);
  --tag: #f1f4f8;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  transition:
    background-color 260ms ease,
    color 260ms ease;
}

html::before {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: radial-gradient(circle at calc(100% - 40px) 40px, var(--accent-soft), transparent 34%);
}

html.theme-changing::before {
  animation: theme-wash 420ms ease;
}

@keyframes theme-wash {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 320ms ease,
    color 260ms ease;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.45;
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
}

main {
  min-height: 100vh;
}

.top-actions {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.language-control {
  display: inline-flex;
  flex: 0 0 auto;
}

.language-select {
  min-width: 78px;
  height: 44px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 18px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 13px) 18px / 6px 6px no-repeat,
    var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.language-select:hover,
.language-select:focus {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.42);
  outline: 0;
}

.theme-toggle {
  position: static;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  color: #ffd84d;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.42);
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle__moon {
  display: none;
}

:root[data-theme="light"] .theme-toggle__moon {
  display: block;
}

:root[data-theme="light"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle {
  background: #111827;
  color: #ffffff;
  border-color: rgba(17, 24, 39, 0.16);
}

.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;
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes fade-slide-left {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

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

@keyframes soft-scale-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

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

.hero {
  min-height: 100svh;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 34%, rgba(47, 128, 255, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.985) 0%, rgba(0, 0, 0, 0.94) 48%, rgba(0, 0, 0, 0.86) 100%),
    url("assets/hero-ai-background.webp");
  background-blend-mode: normal;
  background-position: 72% 34%, center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, min(920px, 72vw) auto;
  transition:
    background-color 320ms ease,
    border-color 260ms ease;
}

:root[data-theme="light"] .hero {
  background:
    radial-gradient(circle at 72% 34%, rgba(0, 102, 204, 0.08), transparent 34%),
    linear-gradient(90deg, rgba(238, 240, 243, 0.97) 0%, rgba(238, 240, 243, 0.88) 48%, rgba(238, 240, 243, 0.72) 100%),
    url("assets/hero-ai-background.webp");
  background-position: 72% 34%, center, right center;
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%, min(920px, 72vw) auto;
}

.hero__content,
.section__inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  min-height: 100svh;
  padding: 96px 0;
  animation: fade-slide-up 700ms ease both;
}

.hero__copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.012em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.role {
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 750;
}

.summary {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(47, 128, 255, 0.18);
  border-radius: 28px;
  background: rgba(11, 11, 13, 0.94);
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    background-color 280ms ease,
    border-color 280ms ease,
    box-shadow 280ms ease;
}

.hero-panel:hover,
.hero-panel:focus-within {
  transform: translateY(-3px);
  border-color: rgba(142, 197, 255, 0.34);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

:root[data-theme="light"] .hero-panel {
  background: #f8f9fb;
  border-color: rgba(20, 28, 38, 0.1);
}

.hero-panel div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-panel span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 680;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.hero-panel strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  transition: color 180ms ease;
}

.hero-panel:hover span,
.hero-panel:focus-within span {
  color: var(--accent-strong);
}

.hero-panel:hover strong,
.hero-panel:focus-within strong {
  color: #ffffff;
}

:root[data-theme="light"] .hero-panel:hover,
:root[data-theme="light"] .hero-panel:focus-within {
  border-color: rgba(0, 102, 204, 0.22);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.13);
}

:root[data-theme="light"] .hero-panel:hover strong,
:root[data-theme="light"] .hero-panel:focus-within strong {
  color: #111827;
}

.hero-panel,
.data-card,
.tool-card,
.project {
  position: relative;
  overflow: hidden;
}

.section {
  padding: 88px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 56px;
  align-items: center;
}

.about-copy {
  max-width: 760px;
}

.about-portrait {
  position: relative;
  min-height: 440px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 22%, rgba(142, 197, 255, 0.12), transparent 34%),
    #0c0d10;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.76;
  filter: saturate(0.92) contrast(0.98);
  transition: transform 320ms ease;
}

.about-portrait:hover,
.about-portrait:focus-within {
  transform: translateY(-3px);
  border-color: rgba(142, 197, 255, 0.32);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.about-portrait:hover img,
.about-portrait:focus-within img {
  transform: scale(1.025);
}

.about-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at 50% 18%, transparent, rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

:root[data-theme="light"] .about-portrait img {
  opacity: 1;
  filter: none;
}

:root[data-theme="light"] .about-portrait::after {
  background: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

.reveal:has(:target) {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(24px);
}

.reveal--scale {
  transform: translateY(16px) scale(0.98);
}

.section--muted {
  border-block: 1px solid var(--line);
  background: #050506;
  transition:
    background-color 320ms ease,
    border-color 260ms ease;
}

:root[data-theme="light"] .section--muted {
  background: #e7eaee;
}

.section--expertise {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.86)),
    url("assets/expertise-background.webp");
  background-position: center;
  background-size: cover;
}

:root[data-theme="light"] .section--expertise {
  background:
    linear-gradient(90deg, rgba(238, 240, 243, 0.94), rgba(238, 240, 243, 0.82)),
    url("assets/expertise-background.webp");
  background-position: center;
  background-size: cover;
}

.section--tools {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.92)),
    url("assets/tools-platforms-background.jpg");
  background-position: center;
  background-size: cover;
}

:root[data-theme="light"] .section--tools {
  background:
    linear-gradient(180deg, rgba(231, 234, 238, 0.88), rgba(231, 234, 238, 0.92)),
    url("assets/tools-platforms-background.jpg");
  background-position: center;
  background-size: cover;
}

.section--compact {
  padding: 56px 0 80px;
}

.section p {
  max-width: 820px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 500;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  margin-bottom: 0;
}

.section--education {
  padding: 72px 0;
}

.section--education .section-heading {
  align-items: center;
  margin-bottom: 0;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.data-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.data-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 128, 255, 0.42);
  background: var(--surface-solid);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.data-card dt {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-card:hover dt {
  color: var(--accent-strong);
}

.data-card dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.32rem, 1.75vw, 1.85rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.012em;
}

.credential-institutions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.credential-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.credential-card {
  min-height: 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.045);
  transition:
    transform 220ms ease,
    background-color 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.credential-card:hover,
.credential-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(142, 197, 255, 0.32);
  background: var(--surface-solid);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] .credential-card:hover,
:root[data-theme="light"] .credential-card:focus-within {
  border-color: rgba(0, 102, 204, 0.22);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.credential-logo-frame {
  display: flex;
  width: 100%;
  height: 76px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(142, 197, 255, 0.13);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: 14px 20px;
  overflow: hidden;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.credential-logo-image {
  display: block;
  width: 100%;
  max-width: 196px;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease, opacity 220ms ease;
}

.credential-logo-frame:hover,
.credential-logo-frame:focus-within {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.42);
  background: rgba(47, 128, 255, 0.08);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.credential-logo-frame:hover .credential-logo-image,
.credential-logo-frame:focus-within .credential-logo-image {
  transform: scale(1.04);
}

.credential-logo-image--light {
  display: none;
}

:root[data-theme="light"] .credential-logo-image--dark {
  display: none;
}

:root[data-theme="light"] .credential-logo-image--light {
  display: block;
}

.credential-logo-frame--michigan .credential-logo-image {
  max-width: 230px;
  transform: scale(1.22);
}

.credential-logo-frame--michigan:hover .credential-logo-image,
.credential-logo-frame--michigan:focus-within .credential-logo-image {
  transform: scale(1.28);
}

.credential-logo-frame--deeplearning .credential-logo-image {
  max-width: 215px;
}

.credential-logo-frame--platzi .credential-logo-image {
  max-width: 164px;
}

.credential-year {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:root[data-theme="light"] .credential-logo-frame {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

:root[data-theme="light"] .credential-logo-frame:hover,
:root[data-theme="light"] .credential-logo-frame:focus-within {
  border-color: rgba(0, 86, 179, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.credential-card h3 {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.credential-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  list-style: none;
}

.credential-card li {
  position: relative;
  padding-left: 18px;
}

.credential-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 940px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tag);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.tag-list li:hover,
.tag-list li:focus-within {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.42);
  background: var(--surface-solid);
  color: var(--accent-strong);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] .tag-list li {
  background: #f1f4f8;
  color: #1d1d1f;
  border-color: rgba(20, 28, 38, 0.1);
}

:root[data-theme="light"] .tag-list li:hover,
:root[data-theme="light"] .tag-list li:focus-within {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: rgba(0, 102, 204, 0.28);
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-card {
  display: flex;
  width: auto;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.tool-card:hover,
.tool-card:focus-within,
.tool-card:active {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.42);
  background: var(--surface-solid);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.tool-card img {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.tool-logo--openai {
  filter: invert(1);
}

.tool-logo--theme-light {
  display: none;
}

:root[data-theme="light"] .tool-logo--openai {
  filter: none;
}

:root[data-theme="light"] .tool-logo--theme-dark {
  display: none;
}

:root[data-theme="light"] .tool-logo--theme-light {
  display: block;
}

.tool-card span {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.tool-card:hover span,
.tool-card:focus-within span,
.tool-card:active span {
  color: var(--accent-strong);
}

.tool-note {
  max-width: none;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.project {
  display: flex;
  min-height: 380px;
  flex-direction: column;
  padding: 12px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.data-card:nth-child(2),
.credential-card:nth-child(2),
.tool-card:nth-child(2),
.project:nth-child(2) {
  transition-delay: 70ms;
}

.data-card:nth-child(3),
.credential-card:nth-child(3),
.tool-card:nth-child(3),
.project:nth-child(3) {
  transition-delay: 140ms;
}

.data-card:nth-child(4),
.credential-card:nth-child(4),
.tool-card:nth-child(4),
.project:nth-child(4) {
  transition-delay: 210ms;
}

.project:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 128, 255, 0.38);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.project-visual {
  position: relative;
  z-index: 1;
  height: 112px;
  margin: -12px -12px 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 21px 21px 0 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, #12151c, #07080b);
}

.project-visual--platform {
  display: grid;
  place-items: center;
}

:root[data-theme="light"] .project-visual--platform,
:root[data-theme="light"] .project-visual--signals,
:root[data-theme="light"] .project-visual--management,
:root[data-theme="light"] .project-visual--codevising {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 44%),
    linear-gradient(180deg, #12151c, #07080b);
}

.envision-logo {
  width: min(184px, calc(100% - 24px));
}

.envision-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.visual-window {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 6px;
}

.visual-window span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.28);
}

.visual-layout {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  height: 96px;
}

.visual-sidebar,
.visual-content,
.signal-chart,
.device-stack i {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(248, 249, 251, 0.86);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);
}

.visual-sidebar {
  border-radius: 16px;
}

.visual-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
}

.visual-content i {
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 102, 204, 0.22), rgba(52, 199, 89, 0.16));
}

.project-visual--signals {
  display: grid;
  place-items: center;
}

.signals-logo {
  position: relative;
  display: flex;
  width: min(178px, calc(100% - 28px));
  align-items: center;
  justify-content: center;
}

.signals-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.signal-chart {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  display: flex;
  height: 72px;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
}

.signal-chart span {
  flex: 1;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #0066cc, #34c759);
}

.signal-chart span:nth-child(1) {
  height: 42%;
}

.signal-chart span:nth-child(2) {
  height: 68%;
}

.signal-chart span:nth-child(3) {
  height: 54%;
}

.signal-chart span:nth-child(4) {
  height: 88%;
}

.device-stack {
  position: absolute;
  top: 18px;
  right: 20px;
}

.device-stack i {
  position: absolute;
  display: block;
  width: 34px;
  height: 56px;
  border-radius: 10px;
}

.device-stack i:first-child {
  right: 28px;
  transform: rotate(-8deg);
}

.device-stack i:last-child {
  right: 0;
  transform: rotate(8deg);
}

.project-visual--management {
  display: grid;
  place-items: center;
}

.spozz-logo {
  width: 86px;
  height: 86px;
}

.spozz-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-visual--codevising {
  display: grid;
  place-items: center;
}

.codevising-logo {
  width: 90px;
  height: 90px;
}

.codevising-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 999px;
}

.project__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.project__label {
  margin-bottom: 0;
  color: rgba(142, 197, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: 0.015em;
  line-height: 1.35;
}

.project h3,
.project p,
.project__meta {
  position: relative;
  z-index: 1;
}

.project h3 {
  margin-bottom: 9px;
  font-size: clamp(1.02rem, 1vw, 1.18rem);
  font-weight: 720;
  letter-spacing: -0.006em;
}

.project p {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 0;
  padding: 16px 0 0;
  list-style: none;
}

.project__meta li {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 540;
  line-height: 1.3;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

.project__meta li:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

:root[data-theme="light"] .project__meta li {
  background: #edf0f4;
  color: #3d4652;
  border-color: rgba(20, 28, 38, 0.1);
}

:root[data-theme="light"] .project__meta li:hover {
  background: #ffffff;
  color: var(--accent-strong);
  border-color: rgba(0, 102, 204, 0.26);
  box-shadow: 0 10px 22px rgba(0, 102, 204, 0.1);
}

:root[data-theme="light"] .project__label {
  color: #476986;
}

.project__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 18px;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 400;
  text-decoration: none;
}

.project__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-section {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97), rgba(0, 0, 0, 0.94)),
    url("assets/contact-buildings-background.jpg");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  transition:
    background-color 320ms ease,
    border-color 260ms ease;
}

:root[data-theme="light"] .contact-section {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.9)),
    url("assets/contact-buildings-background.jpg");
  background-position: center;
  background-size: cover;
}

.contact-section h2,
.contact-section p {
  color: #ffffff;
}

.contact-heading {
  margin-bottom: 26px;
}

.contact-heading h2 {
  animation: fade-slide-up 620ms ease both;
}

.contact-heading h2 {
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  max-width: 560px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: fade-slide-up 560ms ease both;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-list div:hover,
.contact-list div:focus-within {
  transform: none;
  border-color: rgba(142, 197, 255, 0.28);
  background: transparent;
  box-shadow: none;
}

.contact-list div:nth-child(2) {
  animation-delay: 90ms;
}

.contact-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contact-icon svg,
.contact-icon img {
  display: block;
  width: 20px;
  height: 20px;
}

.contact-icon svg {
  fill: #ffffff;
  stroke: none;
}

.contact-list dd {
  margin: 0;
}

.contact-list a {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 300;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 780px) {
  .top-actions {
    top: 12px;
    right: 12px;
  }

  .language-select {
    min-width: 70px;
    height: 40px;
    padding-left: 14px;
    font-size: 0.72rem;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 100svh;
    padding: 72px 0;
  }

  .section {
    padding: 60px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-portrait,
  .about-portrait img {
    min-height: 360px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .project {
    min-height: auto;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tool-grid {
    gap: 8px;
  }

  .tool-card {
    flex: 1 1 calc(50% - 8px);
    min-height: 50px;
    padding-inline: 14px;
  }

  .tool-card:active {
    transform: scale(0.985);
    border-color: rgba(123, 183, 255, 0.38);
    background: var(--surface-solid);
  }

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

  .credential-list {
    grid-template-columns: 1fr;
  }

  .credential-institutions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .contact-heading {
    grid-template-columns: 1fr;
  }

  .contact-list div {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .credential-card ul {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) {
  .tool-card {
    -webkit-tap-highlight-color: transparent;
  }

  .tool-card:active {
    transform: scale(0.985);
    box-shadow: 0 10px 24px rgba(0, 102, 204, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
  }

  html.theme-changing::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 781px) and (max-width: 980px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .tool-grid {
    gap: 10px;
  }

  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .credential-list {
    grid-template-columns: 1fr;
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
