:root {
  --bg: #0a0a0a;
  --panel: #171717;
  --panel-2: #111111;
  --ink: #ededed;
  --muted: #a6a6ad;
  --soft: #74747c;
  --line: #262626;
  --line-strong: #393941;
  --green: #35e68a;
  --teal: #4df3c4;
  --violet: #a15cff;
  --blue: #60a5fa;
  --orange: #f59e0b;
  --radius: 22px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 34rem),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 40px 40px, 40px 40px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 16px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.12rem;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 950;
}

.nav-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 2px 0;
  background: var(--ink);
  border-radius: 99px;
}

.site-nav {
  position: fixed;
  top: 76px;
  right: clamp(18px, 4vw, 48px);
  display: none;
  width: min(260px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 16, 16, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #1a1a1d;
  color: var(--ink);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: var(--bg);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: #d7d7dc;
  color: var(--bg);
}

.site-nav.static-nav {
  position: static;
  display: flex;
  width: auto;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

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

h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero {
  display: grid;
  min-height: calc(100vh - 66px);
  place-items: center;
  padding: clamp(76px, 10vw, 132px) 0 clamp(50px, 7vw, 86px);
  text-align: center;
}

.hero-copy {
  max-width: 980px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 4px 13px;
  margin: 0 auto 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #d8d8dc;
  font-size: 0.82rem;
  font-weight: 800;
}

.availability span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(53, 230, 138, 0.8);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 28px;
  font-size: clamp(3.15rem, 7vw, 5.9rem);
  font-weight: 800;
}

h1 span {
  display: block;
  color: #74747b;
}

.gradient-text {
  background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  font-weight: 780;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  font-weight: 720;
}

.hero-lede {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 600;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}

.button:active,
.filter-button:active {
  transform: translateY(0) scale(0.98);
}

.button-primary {
  background: var(--ink);
  color: var(--bg);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.social-row a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.social-row a:hover {
  color: var(--ink);
}

.scroll-cue {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-top: 26px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  animation: bounce 1.5s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(7px);
  }
}

.hero-panel {
  display: none;
}

.intro-band,
.research-band,
.experience-band,
.contact-band {
  border-block: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.015);
}

.intro-band {
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 243, 196, 0.055), transparent 34rem),
    rgba(255, 255, 255, 0.015);
}

.experience-band {
  background:
    radial-gradient(circle at 88% 0%, rgba(96, 165, 250, 0.055), transparent 34rem),
    rgba(255, 255, 255, 0.015);
}

.research-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(161, 92, 255, 0.05), transparent 34rem),
    rgba(255, 255, 255, 0.015);
}

.contact-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(53, 230, 138, 0.055), transparent 34rem),
    rgba(255, 255, 255, 0.015);
}

.focus-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(70px, 8vw, 108px) 0;
}

.focus-grid article,
.about-grid > article,
.education-list article,
.project-card,
.publication-card,
.achievement-card,
.automation-card,
.client-card,
.template-request article,
.skills-grid article,
.thesis-panel,
.timeline-item,
.experience-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.focus-grid article:hover,
.about-grid > article:hover,
.education-list article:hover,
.project-card:hover,
.publication-card:hover,
.achievement-card:hover,
.automation-card:hover,
.client-card:hover,
.template-request article:hover,
.skills-grid article:hover,
.thesis-panel:hover,
.timeline-item:hover,
.experience-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 40px -10px rgba(255, 255, 255, 0.05);
}

.focus-grid article,
.about-grid > article,
.education-list article {
  border-color: rgba(77, 243, 196, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 243, 196, 0.105), transparent 42%),
    linear-gradient(180deg, rgba(77, 243, 196, 0.04), rgba(255, 255, 255, 0.018));
}

.focus-grid article:nth-child(2),
.about-grid > article:nth-child(2),
.education-list article:nth-child(2) {
  border-color: rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.105), transparent 42%),
    linear-gradient(180deg, rgba(96, 165, 250, 0.04), rgba(255, 255, 255, 0.018));
}

.experience-item {
  border-color: rgba(96, 165, 250, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(96, 165, 250, 0.045), rgba(255, 255, 255, 0.018));
}

.thesis-panel {
  border-color: rgba(161, 92, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(161, 92, 255, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(161, 92, 255, 0.05), rgba(255, 255, 255, 0.018));
}

.timeline-item {
  border-color: rgba(53, 230, 138, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 230, 138, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(53, 230, 138, 0.04), rgba(255, 255, 255, 0.018));
}

.project-card:nth-child(3n + 1) {
  border-color: rgba(77, 243, 196, 0.17);
  background: linear-gradient(180deg, rgba(77, 243, 196, 0.04), rgba(255, 255, 255, 0.018));
}

.project-card:nth-child(3n + 2) {
  border-color: rgba(161, 92, 255, 0.17);
  background: linear-gradient(180deg, rgba(161, 92, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.project-card:nth-child(3n + 3) {
  border-color: rgba(96, 165, 250, 0.17);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.04), rgba(255, 255, 255, 0.018));
}

.publication-card {
  border-color: rgba(77, 243, 196, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 243, 196, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(77, 243, 196, 0.045), rgba(255, 255, 255, 0.018));
}

.publication-group:nth-child(2) .publication-card {
  border-color: rgba(96, 165, 250, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(96, 165, 250, 0.045), rgba(255, 255, 255, 0.018));
}

.publication-group:nth-child(3) .publication-card {
  border-color: rgba(161, 92, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(161, 92, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(161, 92, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.achievement-card:nth-child(3n + 1),
.automation-card:nth-child(3n + 1),
.client-card:nth-child(3n + 1) {
  border-color: rgba(77, 243, 196, 0.18);
  background: linear-gradient(180deg, rgba(77, 243, 196, 0.04), rgba(255, 255, 255, 0.018));
}

.achievement-card:nth-child(3n + 2),
.automation-card:nth-child(3n + 2),
.client-card:nth-child(3n + 2) {
  border-color: rgba(96, 165, 250, 0.18);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.04), rgba(255, 255, 255, 0.018));
}

.achievement-card:nth-child(3n + 3),
.automation-card:nth-child(3n + 3),
.client-card:nth-child(3n + 3) {
  border-color: rgba(245, 158, 11, 0.18);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04), rgba(255, 255, 255, 0.018));
}

.template-request article {
  border-color: rgba(53, 230, 138, 0.18);
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 230, 138, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(53, 230, 138, 0.04), rgba(255, 255, 255, 0.018));
}

.focus-grid article,
.about-grid > article {
  min-height: 260px;
  padding: clamp(26px, 5vw, 50px);
}

.number,
.education-list span,
.project-topline span,
.timeline-item span,
.publication-card span,
.experience-item span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-grid h2,
.about-grid h2 {
  margin: 18px 0;
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
}

.focus-grid p,
.about-grid p,
.education-list p,
.split-heading p,
.project-card p,
.timeline-item p,
.thesis-panel p,
.publication-card p,
.achievement-card p,
.automation-card p,
.client-card p,
.template-request p,
.experience-item p,
.experience-item li,
.skills-grid p,
.contact-layout p {
  color: var(--muted);
}

.education-list {
  display: grid;
  gap: 14px;
}

.education-list article {
  padding: 24px;
}

.education-list h3 {
  margin-top: 10px;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.about-links a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.about-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.about-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.industrial-attachments {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.industrial-attachments span {
  display: block;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.industrial-attachments ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.industrial-attachments li + li {
  margin-top: 8px;
}

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

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  padding: clamp(76px, 9vw, 124px) 0 30px;
}

.split-heading p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.project-section {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: pointer;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.92);
  color: var(--bg);
}

.project-grid,
.publication-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border-radius: 14px;
}

.project-card[hidden] {
  display: none;
}

.project-card.is-filtering {
  animation: cardFilter 260ms ease both;
}

.project-card::before {
  display: grid;
  min-height: 210px;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: 4rem;
  font-weight: 850;
  content: "</>";
}

.project-card:nth-child(3n + 1)::before {
  background: linear-gradient(to top right, rgba(6, 95, 70, 0.22), #171717);
  color: rgba(77, 243, 196, 0.38);
  content: "~";
}

.project-card:nth-child(3n + 2)::before {
  background: linear-gradient(to top right, rgba(88, 28, 135, 0.22), #171717);
  color: rgba(161, 92, 255, 0.38);
  content: "{ }";
}

.project-card:nth-child(3n + 3)::before {
  background: linear-gradient(to top right, rgba(30, 64, 175, 0.22), #171717);
  color: rgba(96, 165, 250, 0.38);
  content: "</>";
}

.project-topline,
.project-card h3,
.project-card p,
.project-card .tag-list {
  margin-inline: 28px;
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.project-topline a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-topline a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.project-card h3 {
  color: var(--ink);
}

.project-card p {
  flex: 1;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 28px;
  list-style: none;
}

.tag-list li {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c7c7cd;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.research-band {
  padding-bottom: clamp(34px, 5vw, 62px);
}

.research-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.thesis-panel {
  align-self: start;
  padding: clamp(28px, 4vw, 42px);
}

.thesis-panel .eyebrow {
  color: var(--violet);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 26px 26px 26px 54px;
}

.timeline-item::before {
  position: absolute;
  top: 31px;
  left: 26px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(53, 230, 138, 0.62);
  content: "";
}

.publication-sections {
  display: grid;
  gap: 28px;
  padding-bottom: clamp(72px, 9vw, 118px);
}

.publication-group {
  display: grid;
  gap: 18px;
}

.publication-group-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.publication-group-heading span,
.achievement-card span,
.automation-card span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.publication-group-heading h3 {
  margin: 0;
  font-size: clamp(1.32rem, 2.2vw, 1.9rem);
}

.publication-grid {
  padding-bottom: 0;
}

.publication-card {
  min-height: 245px;
  padding: 28px;
}

.publication-card-featured {
  grid-column: span 2;
  border-color: rgba(77, 243, 196, 0.35);
}

.publication-card a {
  color: var(--teal);
  font-weight: 900;
}

.achievement-grid,
.automation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: clamp(72px, 9vw, 118px);
}

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

.client-showcase-rail {
  overflow: hidden;
  scroll-behavior: smooth;
  padding-bottom: clamp(72px, 9vw, 118px);
}

.client-showcase-grid {
  display: flex;
  width: max-content;
  gap: 22px;
  animation: clientMarquee 28s linear infinite;
}

.client-showcase-grid:hover,
.client-showcase-rail:focus-within .client-showcase-grid,
.client-showcase-rail.is-manual-scroll .client-showcase-grid {
  animation-play-state: paused;
}

.client-showcase-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-bottom: 18px;
}

.client-scroll-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.client-scroll-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.achievement-card,
.automation-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 360px;
  padding: 0;
}

.workflow-image {
  width: 100%;
  height: clamp(220px, 24vw, 280px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #151515;
  background-size: 24px 24px, 24px 24px, auto;
  object-fit: contain;
  object-position: center;
}

.achievement-card span,
.achievement-card h3,
.achievement-card p,
.automation-card span,
.automation-card h3,
.automation-card p,
.automation-card .tag-list {
  margin-inline: 26px;
}

.achievement-card span,
.automation-card span {
  display: block;
  margin-top: 24px;
  margin-bottom: 12px;
}

.achievement-card p,
.automation-card p {
  font-weight: 600;
}

.automation-card .tag-list {
  margin-top: auto;
}

.client-card {
  width: min(390px, calc(100vw - 64px));
  min-height: 250px;
  overflow: hidden;
  padding: 0 0 28px;
}

.client-preview {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to top right, rgba(30, 64, 175, 0.22), #171717);
  background-size: 24px 24px, 24px 24px, auto;
}

.client-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-preview span {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.45);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.client-card span {
  display: block;
  margin-inline: 28px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-card a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  margin-inline: 28px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 850;
  text-decoration: none;
}

.client-card h3,
.client-card p {
  margin-inline: 28px;
}

.template-request {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.template-request article {
  display: grid;
  max-width: 980px;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 1fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  padding: clamp(28px, 5vw, 46px);
}

.template-request .button {
  margin-top: 16px;
}

.template-request h2 {
  margin-bottom: 0;
}

.template-request p:not(.eyebrow) {
  max-width: 620px;
  line-height: 1.8;
}

@keyframes clientMarquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 11px));
  }
}

.certificate-placeholder,
.workflow-placeholder {
  display: grid;
  min-height: 180px;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to top right, rgba(88, 28, 135, 0.22), #171717);
  background-size: 24px 24px, 24px 24px, auto;
  color: rgba(255, 255, 255, 0.36);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-placeholder {
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to top right, rgba(6, 95, 70, 0.22), #171717);
  background-size: 24px 24px, 24px 24px, auto;
}

.n8n-hero {
  min-height: 74vh;
}

.n8n-gateway {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.n8n-gateway .automation-card {
  max-width: 760px;
  min-height: 0;
}

.n8n-gateway .workflow-image {
  height: auto;
  object-fit: initial;
}

.gateway-actions {
  display: flex;
  margin: 22px 26px 28px;
}

.gateway-actions .button {
  width: 100%;
  text-align: center;
}

.experience-band {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.experience-list {
  display: grid;
  gap: 18px;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(26px, 4vw, 40px);
}

.experience-item ul {
  padding-left: 18px;
  margin: 0;
}

.experience-item li + li {
  margin-top: 9px;
}

.skills-grid {
  padding-bottom: clamp(72px, 9vw, 118px);
}

.skills-grid article {
  position: relative;
  min-height: 210px;
  padding: 32px;
  overflow: hidden;
  border-color: rgba(77, 243, 196, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(77, 243, 196, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(77, 243, 196, 0.06), rgba(255, 255, 255, 0.018));
}

.skills-grid article::after {
  position: absolute;
  top: 22px;
  right: 26px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 4.6rem;
  font-weight: 900;
  line-height: 1;
  content: "AI";
}

.skills-grid article::before {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--teal);
  font-weight: 950;
  content: "AI";
}

.skills-grid article:nth-child(2)::before {
  color: var(--blue);
  content: "LLM";
}

.skills-grid article:nth-child(2)::after {
  content: "{}";
}

.skills-grid article:nth-child(2) {
  border-color: rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(96, 165, 250, 0.17), transparent 38%),
    linear-gradient(180deg, rgba(96, 165, 250, 0.065), rgba(255, 255, 255, 0.018));
}

.skills-grid article:nth-child(3)::before {
  color: var(--violet);
  content: "API";
}

.skills-grid article:nth-child(3)::after {
  content: "</>";
}

.skills-grid article:nth-child(3) {
  border-color: rgba(161, 92, 255, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(161, 92, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(161, 92, 255, 0.07), rgba(255, 255, 255, 0.018));
}

.skills-grid article:nth-child(4)::before {
  color: var(--orange);
  content: "Ops";
}

.skills-grid article:nth-child(4)::after {
  content: "DB";
}

.skills-grid article:nth-child(4) {
  border-color: rgba(245, 158, 11, 0.25);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(245, 158, 11, 0.065), rgba(255, 255, 255, 0.018));
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

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

@keyframes cardFilter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

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

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

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

.contact-band {
  padding: clamp(76px, 9vw, 124px) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 32px;
  align-items: center;
}

.contact-layout h2 {
  max-width: 780px;
}

.contact-layout p {
  max-width: 650px;
  margin-top: 22px;
  font-size: 1.08rem;
  font-weight: 600;
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 26px clamp(20px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 900px) {
  .split-heading,
  .research-layout,
  .contact-layout,
  .experience-item,
  .template-request article {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(var(--max-width), calc(100% - 32px));
  }

  .hero {
    min-height: calc(100vh - 66px);
    text-align: center;
  }

  .focus-grid,
  .project-grid,
  .publication-grid,
  .achievement-grid,
  .automation-grid,
  .client-showcase-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .publication-card-featured {
    grid-column: span 1;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .filter-button {
    white-space: nowrap;
  }
}

@media (max-width: 460px) {
  .site-header {
    padding-inline: 18px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 3.7rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.6rem);
  }

  .project-topline,
  .project-card h3,
  .project-card p,
  .project-card .tag-list {
    margin-inline: 22px;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    width: auto;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-nav a {
    padding: 8px 13px;
    font-size: 0.9rem;
  }

  .site-nav .nav-cta {
    margin-left: 8px;
    padding-inline: 18px;
    border-radius: 999px;
  }
}
