:root {
  --bg: #080a0f;
  --panel: #0f131d;
  --panel-2: #161c2a;
  --text: #eef2f7;
  --muted: #a2adbd;
  --line: #222b3c;
  --accent: #8cc2ff;
  --accent-2: #b9dbff;
  --header-bg: rgba(6, 9, 14, 0.88);
  --surface-glass: transparent;
  --hero-glow: #0d1423;
  --code-bg: #0b1320;
  --code-inline-bg: #111827;
  --code-border: #2a3448;
  --code-text: #dbe7ff;
  --code-keyword: #ff7ab8;
  --code-string: #a5d6ff;
  --code-number: #d0bcff;
  --code-title: #8cc2ff;
  --code-comment: #7f8da6;
  --code-meta: #c4b5fd;

  --max: 1408px;
  --header-gap: 10px;
  --header-zone-height: 140px;
  --site-bg-video-opacity: 0.27;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }










:root[data-theme="houdini"] {
  --bg: #0f1218;
  --panel: #151a24;
  --panel-2: #1d2432;
  --text: #e3e9f9;
  --muted: #8f9db9;
  --line: #2b354b;
  --accent: #ff9f43;
  --accent-2: #ffd08d;
  --header-bg: rgba(12, 15, 22, 0.88);
  --surface-glass: transparent;
  --hero-glow: #1c2538;
  --code-bg: #141926;
  --code-inline-bg: #1b2231;
  --code-border: #2e3952;
  --code-text: #e7ecff;
  --code-keyword: #ffb454;
  --code-string: #bae67e;
  --code-number: #d2a6ff;
  --code-title: #73d0ff;
  --code-comment: #7f8ea8;
  --code-meta: #f29f9f;
}


body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--hero-glow) 0%, var(--bg) 38%);
  color: var(--text);
  line-height: 1.6;
}

body.home-with-bg-video {
  background: radial-gradient(circle at top, rgba(13, 20, 35, 0.66) 0%, rgba(8, 10, 15, 0.72) 38%);
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

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


.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-footer {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 60;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.93) 0%, rgba(8, 10, 15, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 200'%3E%3Cpath d='M0 82L52 18l42 44-36 56-58-4zM94 62l54-42 50 34-16 58-72 6zM198 54l64-30 54 38-20 64-72-2zM318 64l58-34 44 44-22 56-66 2zM12 130l56-14 44 42-36 42H8zM112 124l72-6 32 52-52 30-68-30zM216 126l80 2 30 48-62 24-54-22zM296 128l66-2 54 38-28 34-72 2-34-24z' fill='none' stroke='rgba(140,194,255,0.22)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: auto, 420px 200px;
  background-position: center top, center top;
  border: 0;
  padding-top: 10px;
  isolation: isolate;
}



.page-shell {
  height: 100vh;
}

.page-scroll {
  height: calc(100vh - var(--header-zone-height));
  margin-top: var(--header-zone-height);
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: var(--header-gap);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 4rem;
}

.header-row,
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.floating-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: #ff9d2f;
  white-space: nowrap;
}

.brand-short {
  display: none;
}

.site-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.header-contact-button {
  flex-shrink: 0;
}

.nav-toggle,
.header-controls {
  display: none;
}

.header-search-toggle {
  display: none;
}

.header-search-toggle {
  border: 1px solid rgba(255, 157, 47, 0.35);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(30, 37, 56, 0.92), rgba(14, 18, 28, 0.9));
  color: rgb(255, 196, 120);
  width: 2.2rem;
  height: 2.2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible {
  border-color: rgba(255, 157, 47, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 157, 47, 0.25);
  outline: none;
}

.header-search-toggle-icon svg {
  width: 1rem;
  height: 1rem;
  display: block;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 200px;
  max-width: 260px;
}

#site-search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 18, 28, 0.85);
  color: var(--text);
  padding: 0.42rem 0.85rem;
  font-size: 0.9rem;
}

#site-search-input::placeholder {
  color: var(--muted);
}

#site-search-input:focus {
  outline: 1px solid rgba(255, 157, 47, 0.5);
  border-color: rgba(255, 157, 47, 0.65);
}

.header-search-results {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 50;
  width: min(340px, 84vw);
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(7, 10, 18, 0.97);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.header-search-result-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--text);
}

.header-search-result-link:hover {
  background: var(--panel-2);
}

.header-search-result-link small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.header-search-results-empty {
  padding: 0.6rem;
  color: var(--muted);
}

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

.hero,
.page-header {
  padding: 4rem 0 1rem;
}

.project-page {
  position: relative;
  --project-hero-fade-strength: 0.6;
}

.project-trailer-hero {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1600px, 122vw);
  height: min(50vh, 510px);
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.project-trailer-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0) calc(100% - 5px), rgba(8, 10, 15, 1) 100%);
  pointer-events: none;
}

.project-trailer-media {
  width: 110%;
  height: 110%;
  border: 0;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(1.08) contrast(1.04) brightness(0.9);
  transform: scale(1.08);
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.project-trailer-hero--contain .project-trailer-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.project-trailer-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(8, 10, 15, 0) 22%, rgba(8, 10, 15, calc(0.18 * var(--project-hero-fade-strength))) 48%, rgba(8, 10, 15, calc(0.52 * var(--project-hero-fade-strength))) 70%, rgba(8, 10, 15, calc(0.86 * var(--project-hero-fade-strength))) 90%, rgba(8, 10, 15, var(--project-hero-fade-strength)) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, calc(0.14 * var(--project-hero-fade-strength))) 0%, rgba(8, 10, 15, calc(0.36 * var(--project-hero-fade-strength))) 50%, rgba(8, 10, 15, calc(0.62 * var(--project-hero-fade-strength))) 68%, rgba(8, 10, 15, calc(0.88 * var(--project-hero-fade-strength))) 80%, rgba(8, 10, 15, var(--project-hero-fade-strength)) 86%, rgba(8, 10, 15, var(--project-hero-fade-strength)) 100%);
  box-shadow: inset 0 -90px 120px -100px rgba(8, 10, 15, 0.82);
  opacity: var(--project-hero-fade-strength);
}

.project-hero-shell {
  position: relative;
  z-index: 10;
  isolation: isolate;
}

.project-hero-top {
  position: relative;
  z-index: 11;
}

.project-hero-top h1,
.project-hero-top .eyebrow,
.project-hero-actions {
  position: relative;
  z-index: 12;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.site-bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-bg-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.9) contrast(0.95) brightness(0.72);
  transform: scale(1.04);
}

body.home-with-bg-video.video-bg-ready .site-bg-video {
  opacity: var(--site-bg-video-opacity);
  visibility: visible;
}

body.home-with-bg-video.video-bg-disabled .site-bg-video,
body.home-with-bg-video.video-bg-disabled .site-bg-video-overlay {
  opacity: 0;
}

.site-bg-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0.58), rgba(8, 10, 15, 0.74));
}

.home-with-bg-video .site-bg-video {
  visibility: hidden;
}

.home-with-bg-video .project-trailer-hero {
  display: none !important;
}


.page-shell {
  position: relative;
  z-index: 5;
}

.hero-content {
  flex: 1 1 400px;
}

.hero-image-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero h1,
.page-header h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  margin: 0.3rem 0 1rem;
  max-width: 12ch;
}

.hero-image {
  width: 100%;
  height: auto;
  max-width: 420px;
  border-radius: 18px;
  display: block;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-stack-divider {
  border: 0;
  height: 1px;
  margin: 1.4rem 0 1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--line) 15%, var(--line) 85%, rgba(255, 255, 255, 0));
}

.stack-label {
  margin: 1.2rem 0 0.35rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: 0.6rem;
}

.hero-stack-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: color-mix(in srgb, var(--surface-glass) 90%, #05070d 10%);
}

.hero-stack-icon {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}


.cv-preferred-stack {
  margin-top: 0.85rem;
}

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

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-company {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.company-role-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.company-logo-inline {
  width: 100px !important;
  height: 100px !important;
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.narrow {
  max-width: 760px;
}

.section-block {
  padding: 1.25rem 0 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
}

.section-subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-intro {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.landing-variations-head {
  align-items: center;
  flex-wrap: wrap;
}

.variation-select-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.variation-select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  min-width: 260px;
}

.landing-variation-gallery {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01));
}

.landing-variation-panel { display: none; }
.landing-variation-panel.is-active { display: block; }

.variation-grid { display: grid; gap: 1rem; }
.variation-grid-3col,
.variation-grid-minimal,
.variation-grid-cta { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.variation-grid-spotlight { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.variation-stack { display: grid; gap: 1rem; }
.variation-grid-strips { grid-template-columns: 1fr; }
.variation-card h3 { margin-top: 0.1rem; }
.variation-spotlight { min-height: 100%; }
.strip-card { display: flex; justify-content: space-between; align-items: center; }
.compact { text-align: center; padding: 1.8rem 1rem; }
.cta-card .button { margin-top: 0.4rem; width: fit-content; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.projects-row.blog-row {
  grid-auto-columns: minmax(280px, 360px);
}

.blog-row-card {
  scroll-snap-align: start;
}

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

.card,
.list-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.js-clickable-card {
  cursor: pointer;
}

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

.card:hover,
.list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 194, 255, 0.42);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
}

.card h2,
.card h3,
.list-card h2,
.list-card h3 {
  margin: 0.25rem 0 0.6rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: var(--accent);
  color: #09111d;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
}


.button.secondary.project-link-artstation {
  color: #3b82f6;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1.5px;
}

.button.secondary.project-link-artstation:hover {
  color: #60a5fa;
}

.button-logo {
  width: 1em;
  height: 1em;
  object-fit: contain;
  vertical-align: -0.1em;
}


.gumroad-logo-large {
  width: 2em;
  height: 2em;
}

.fab-logo-large {
  width: 1.35em;
  height: 1.35em;
}

.project-link-artstation .project-link-artstation-logo {
  filter: none;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.project-card-links {
  margin-top: 1rem;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 0.5rem;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(6,10,16,0.08) 0%, rgba(6,10,16,0.88) 100%);
  opacity: 0;
  transition: opacity 0.24s ease;
  pointer-events: none;
}

.card-overlay p {
  margin: 0;
  color: #f1f5fb;
  font-size: 0.92rem;
  line-height: 1.35;
}

.card:hover .card-overlay,
.list-card:hover .card-overlay {
  opacity: 1;
}

.card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  margin-bottom: 0;
  display: block;
  transition: transform 0.28s ease;
}

.card:hover .card-thumb,
.list-card:hover .card-thumb {
  transform: scale(1.06);
}

.experience-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: min(100%, 30rem);
  min-height: 200px;
  float: left;
  clear: both;
  margin: 1.5rem 0 0.75rem;
}

.experience-head-copy h3 {
  margin: 0;
}

.experience-head-copy p {
  margin: 0;
}

.experience-head + ul {
  min-height: 200px;
  margin: 1.5rem 0 0.75rem 28.75rem;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cv-core-skills {
  columns: 2;
  column-gap: 2.2rem;
}

.cv-core-skills li {
  break-inside: avoid;
}

.company-logo-inline {
  width: 56px !important;
  height: 56px !important;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.project-card-thumb {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  margin-bottom: 0.75rem;
  display: block;
  background: transparent;
  transition: transform 0.28s ease;
}

.project-text-placeholder {
  display: grid;
  place-items: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

.project-text-placeholder span {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.25;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.project-card-thumb.project-text-placeholder {
  aspect-ratio: 2 / 3;
}

.card:hover .project-card-thumb,
.list-card:hover .project-card-thumb {
  transform: scale(1.015);
}

.prose {
  color: var(--text);
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2rem;
  position: relative;
}

.prose p,
.prose li {
  color: #d5deea;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  word-break: break-word;
}

.prose a:hover {
  color: #b9dbff;
}

.prose code {
  background: var(--code-inline-bg);
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.prose pre code {
  background: var(--bg);
  padding: 0;
  border-radius: 0;
}

.prose img,
.prose video {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  margin: 1.25rem 0;
}

.prose .media-loading-wrap {
  position: relative;
  display: block;
}

.prose .media-loading-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border-radius: 999px;
  border: 2px solid rgba(238, 242, 247, 0.28);
  border-top-color: var(--accent);
  animation: media-spinner 0.9s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.prose .media-loading-wrap.is-loading::after {
  opacity: 1;
}

.prose .media-loading-wrap.is-loading > img,
.prose .media-loading-wrap.is-loading > video {
  opacity: 0.6;
}

@keyframes media-spinner {
  to {
    transform: rotate(360deg);
  }
}

.prose iframe {
  border-radius: 14px;
  margin: 1.25rem 0;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  height: auto;
  min-height: 0;
}

.prose .embed-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 1.25rem 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--code-inline-bg);
  aspect-ratio: var(--embed-aspect-ratio);
}

.prose .embed-frame iframe {
  width: 110%;
  height: 110%;
  max-width: 100% !important;
  min-height: 0;
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.prose img.zoomable-image {
  cursor: zoom-in;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
}

.prose pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg);
  border-radius: 14px;
  border: 1px solid var(--code-border);
}

.code-block pre {
  padding-top: 3rem;
}

.prose .heading-anchor {
  margin-left: 0.5rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
  font-weight: 500;
}

.prose h2:hover .heading-anchor,
.prose h3:hover .heading-anchor,
.prose h4:hover .heading-anchor {
  opacity: 1;
}


.prose pre code.hljs {
  border: 0;
  padding: 0;
  border-radius: 0;
}


.hljs {
  color: var(--code-text);
  background: var(--code-bg);
}

.hljs-comment,
.hljs-quote { color: var(--code-comment); font-style: italic; }
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-name { color: var(--code-keyword); }
.hljs-string,
.hljs-attr,
.hljs-regexp,
.hljs-addition { color: var(--code-string); }
.hljs-number,
.hljs-symbol,
.hljs-bullet { color: var(--code-number); }
.hljs-title,
.hljs-section,
.hljs-selector-id,
.hljs-selector-class,
.hljs-type { color: var(--code-title); }
.hljs-meta,
.hljs-meta .hljs-keyword,
.hljs-doctag { color: var(--code-meta); }
.hljs-deletion { color: #ff6b81; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }

.code-block {
  position: relative;
  margin: 1.5rem 0;
  clear: both;
}

.code-language-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: 1px solid var(--line);
  background: var(--surface-glass);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout.note {
  border-color: #3c5f8f;
  background: rgba(60, 95, 143, 0.14);
}

.callout.tip {
  border-color: #2f7d57;
  background: rgba(47, 125, 87, 0.14);
}

.callout.warning {
  border-color: #9a6a1d;
  background: rgba(154, 106, 29, 0.14);
}

.callout.tldr {
  border-color: var(--accent);
  background: rgba(140, 194, 255, 0.12);
}


.post-share {
  margin-top: 1.4rem;
  padding-top: 0.35rem;
}

.post-share-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

.post-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-link,
.share-action-button,
.share-platform-button,
.share-copy-button {
  font-weight: 500;
}

.share-action-button,
.share-platform-button,
.share-copy-button {
  cursor: pointer;
}

.share-icon {
  display: inline-flex;
  width: 1.1rem;
  justify-content: center;
  font-weight: 700;
  opacity: 0.9;
}

.share-link.is-success,
.share-copy-button.is-success {
  border-color: #2f7d57;
  color: #7ee0a6;
}

.post-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.post-pagination-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}

.post-pagination-card.next {
  text-align: right;
}

.post-pagination-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.hero-project-links {
  margin-top: 1.5rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.8rem;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 0.92rem;
}

.tag-chip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.tag-chip.small {
  padding: 0.28rem 0.6rem;
  font-size: 0.82rem;
}

.projects-row-wrap {
  position: relative;
}

.projects-row-wrap::after {
  content: none;
}

.projects-row-hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.projects-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 340px);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.projects-row.is-auto-scrolling {
  scroll-snap-type: none;
}

.projects-row::-webkit-scrollbar {
  display: none;
}

.projects-row::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.project-row-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-row-media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
}

.project-row-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: transparent;
  transition: transform 0.56s ease, filter 0.56s ease;
}

.project-row-image.project-text-placeholder {
  aspect-ratio: 4 / 5;
}

.project-row-card:hover .project-row-image,
.project-row-card:focus-within .project-row-image {
  transform: none;
  filter: brightness(0.42);
}

.project-row-copy h3 {
  margin: 0.25rem 0 0.6rem;
}

.project-card-title a {
  font-weight: 700;
  color: var(--accent);
}

.project-card-title a:hover {
  color: var(--accent-2);
}

.project-card-meta {
  font-weight: 700;
  color: var(--text);
}

.project-row-card .project-card-summary {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 1rem;
  color: #ffffff;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.44s ease, transform 0.44s ease;
  pointer-events: none;
}

.project-row-card:hover .project-card-summary,
.project-row-card:focus-within .project-card-summary {
  opacity: 1;
  transform: translateY(0);
}


.projects-index-grid .project-card-summary {
  position: static;
  inset: auto;
  display: block;
  margin: 0.6rem 0 0;
  padding: 0;
  color: var(--muted);
  font-weight: 500;
  opacity: 1;
  transform: none;
  transition: none;
  pointer-events: auto;
  text-align: left;
}
.projects-row-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.projects-row-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  display: inline-block;
}

.projects-row-wrap--with-arrows {
  position: relative;
}

.projects-row-wrap--with-arrows .projects-row {
  width: 100%;
}

.projects-row-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  font-size: 1.05rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.projects-row-nav-prev {
  left: -0.85rem;
}

.projects-row-nav-next {
  right: -0.85rem;
}

.projects-row-nav:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 14, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
  z-index: 200;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-image {
  max-width: min(1200px, calc(100vw - 4rem));
  max-height: calc(100vh - 4rem);
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero-eyebrow,
.hero-title,
.hero-lead {
  opacity: 1;
  transform: translateY(0);
}

.hero-eyebrow {
  animation-delay: 0.08s;
}

.hero-title {
  animation-delay: 0.18s;
}

.hero-lead {
  animation-delay: 0.3s;
}

.page-header,
.section-block,
.card-grid,
.tag-cloud,
.list-stack,
.prose,
.projects-row-wrap,
.link-row {
  opacity: 1;
  transform: translateY(0);
}

.page-header { animation-delay: 0.05s; }
.project-page .page-header {
  position: relative;
  z-index: 2;
  padding-top: min(50vh, 510px);
}

.project-page .page-header h1 {
  position: absolute;
  left: 0;
  bottom: calc(100% - min(50vh, 510px) + 1rem);
  margin: 0;
}

.project-header-body {
  margin-top: 1.25rem;
}
.section-block { animation-delay: 0.14s; }
.tag-cloud { animation-delay: 0.18s; }
.card-grid { animation-delay: 0.22s; }
.list-stack { animation-delay: 0.22s; }
.prose { animation-delay: 0.18s; }
.projects-row-wrap { animation-delay: 0.24s; }
.link-row { animation-delay: 0.16s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hero-title,
  .hero-lead {
    opacity: 0;
    transform: translateY(14px);
    animation: heroTextReveal 0.9s ease-out forwards;
  }

  .page-header,
  .section-block,
  .card-grid,
  .tag-cloud,
  .list-stack,
  .prose,
  .projects-row-wrap,
  .link-row {
    opacity: 0;
    transform: translateY(18px);
    animation: pageReveal 0.85s ease-out forwards;
  }
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero-eyebrow,
  .hero-title,
  .hero-lead,
  .page-header,
  .section-block,
  .card-grid,
  .tag-cloud,
  .list-stack,
  .prose,
  .projects-row-wrap,
  .link-row {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 900px) {
  .project-trailer-hero {
    width: 100vw;
    height: min(36vh, 280px);
  }

  .project-page .page-header {
    padding-top: min(36vh, 280px);
  }

  .project-page .page-header h1 {
    position: static;
    margin: 0.3rem 0 1rem;
  }

  .project-header-body {
    margin-top: 0;
  }

  .card-grid,
  .card-grid.two-up,
  .post-pagination {
    grid-template-columns: 1fr;
  }

  .card,
  .list-card {
    padding: 1.1rem;
  }

  .card h2,
  .card h3,
  .list-card h2,
  .list-card h3 {
    font-size: 1.1rem;
    line-height: 1.35;
  }

  .card p,
  .list-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .tag-chip {
    font-size: 0.88rem;
  }

  .variation-grid-3col,
  .variation-grid-minimal,
  .variation-grid-cta,
  .variation-grid-spotlight {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-with-video-bg {
    padding: 2rem 1rem;
  }

  .projects-row {
    grid-auto-columns: minmax(240px, 86vw);
  }

  .projects-row.blog-row {
    grid-auto-columns: minmax(260px, 92vw);
  }

  .blog-row-card,
  .projects-row.blog-row .card {
    padding: 1rem;
  }

  .projects-row.blog-row h3,
  .projects-row.blog-row h2 {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0.45rem 0 0.55rem;
  }

  .projects-row.blog-row p {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-stack-list {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }

  .cv-core-skills {
    columns: 1;
  }

  .experience-head {
    width: 100%;
    min-height: 0;
    float: none;
  }

  .experience-head + ul {
    min-height: 0;
    margin: 0.35rem 0 0.75rem 0.75rem;
    padding-left: 1.1rem;
    display: block;
  }
}

@media (max-width: 860px) {
  :root {
    --header-zone-height: 168px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-header {
    border-radius: 20px;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
  }

  .site-nav {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.15rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.25rem 0.45rem;
    font-size: clamp(0.62rem, 1.45vw, 0.8rem);
  }

  .brand {
    flex: 0 0 auto;
    font-size: clamp(0.72rem, 1.75vw, 0.92rem);
  }

  .brand-full,
  .floating-header.is-condensed .brand-full {
    display: none;
  }

  .brand-short,
  .floating-header.is-condensed .brand-short {
    display: inline;
  }

  .header-contact-button {
    display: none;
  }

  .header-search-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .header-search {
    display: none;
    position: absolute;
    right: 0.75rem;
    top: calc(100% + 0.4rem);
    width: min(70vw, 300px);
    max-width: none;
    min-width: 0;
    z-index: 80;
  }

  .header-search.is-open {
    display: flex;
  }
}

.hero-with-animation {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 1rem;
  padding: 2.8rem 1.4rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.hero-animation-shell {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-geometry-canvas {
  width: 110%;
  height: 110%;
  display: block;
}

.hero-content-elevated {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-with-animation {
    padding: 2rem 1rem;
  }
}


.contact-box {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  padding: 1.25rem;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--panel) 84%, #000 16%), color-mix(in srgb, var(--surface-glass) 86%, #061127 14%));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

.contact-copy h3 {
  margin: 0;
  font-size: 1.45rem;
}

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

.contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contact-list-inline {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.contact-list-inline li {
  flex-wrap: nowrap;
}

.contact-icon-link {
  display: inline-flex;
  text-decoration: none;
}

.contact-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 78%, var(--muted) 22%);
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 150ms ease, border-color 150ms ease;
}

.contact-icon-link:hover .contact-icon,
.contact-icon-link:focus-visible .contact-icon {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--line) 35%);
}

.contact-icon-img {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
  object-fit: contain;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 2.55rem;
  padding: 0.55rem 1.2rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 75%, var(--line) 25%);
  color: color-mix(in srgb, var(--accent) 84%, #f9b25e 16%);
  text-decoration: none;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

@media (max-width: 820px) {
  .contact-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}


[id] {
  scroll-margin-top: calc(var(--header-zone-height) + var(--header-gap));
}

.image-compare {
  --compare-position: 50%;
  position: relative;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.image-compare img {
  width: 100%;
  display: block;
  height: auto;
}

.image-compare-overlay {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
  pointer-events: none;
}

.image-compare-overlay img {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.image-compare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
}

.image-compare-slider {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  touch-action: none;
}

.image-compare-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: var(--accent);
}

.image-compare-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text);
  background: var(--accent);
}

.cv-contact-list {
  margin-top: 0.6rem;
}

.cv-contact-icon {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  border-radius: 8px;
}

.cv-contact-icon-img {
  width: 1.9rem;
  height: 1.9rem;
}


.experience-head .company-logo-inline {
  width: 200px !important;
  height: 200px !important;
  min-width: 200px;
  min-height: 200px;
  max-width: 200px;
  max-height: 200px;
  object-position: center top;
  margin: 0 auto;
}

.experience-head .company-logo-massive {
  width: 200px !important;
  height: auto !important;
  min-height: 0;
  max-height: 92px;
}


.cv-profile-photo {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  margin: 0.25rem 0 1rem;
}

.cv-intro-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.cv-quick-links-wrap {
  flex: 1;
  min-width: 0;
}

.cv-quick-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.experience-project-cover {
  width: 72px;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 0.5rem;
}

.experience-project-covers {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.experience-project-covers .experience-project-cover {
  margin-top: 0;
}

.experience-project-cover.project-text-placeholder {
  padding: 0.2rem;
  border-radius: 10px;
}

.experience-project-cover.project-text-placeholder span {
  font-size: 0.52rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .cv-quick-links-grid {
    grid-template-columns: 1fr;
  }
}


.cv-title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  margin-left: -1.1rem;
}

.cv-title-card {
  margin: 0;
}

.cv-title-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}

.cv-title-card figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}


.cv-experience-separator {
  height: 1px;
  margin: 1.2rem 0 0.4rem;
  background: linear-gradient(90deg, rgba(255,255,255,0), var(--line) 18%, var(--line) 82%, rgba(255,255,255,0));
  clear: both;
}



.experience-head .company-logo-amazon,
.experience-head .company-logo-ubisoft {
  width: 200px !important;
  height: auto !important;
  min-height: 0;
  max-height: 92px;
}

.experience-head .company-logo-ubisoft {
  width: 600px !important;
}

.cv-title-link {
  position: relative;
  border-radius: 12px;
}

.cv-title-cover {
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cv-title-link:hover .cv-title-cover {
  box-shadow: none;
}

.cv-title-role {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 2.1rem;
  background: rgba(10, 14, 22, 0.9);
  border: 0;
  color: var(--accent);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.cv-title-link:hover .cv-title-role {
  opacity: 1;
  transform: translateY(0);
}

.cv-title-card figcaption {
  color: var(--accent);
}

.cv-stack-icons {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem 1rem;
}

.cv-stack-icons li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.cv-stack-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cv-stack-icon-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  object-fit: contain;
  padding: 0.38rem;
}

.experience-head-copy {
  text-align: center;
  margin-left: 0;
  width: 100%;
}

.experience-head {
  align-items: center;
  margin-left: 0;
}

@media (max-width: 640px) {
  .cv-intro-row {
    flex-direction: column;
  }

  .cv-title-grid {
    margin-left: 0;
  }
}

/* Project layout refresh */
.project-hero-shell {
  position: relative;
  z-index: 2;
  margin-top: clamp(11rem, 28vw, 20rem);
  margin-bottom: 1rem;
}

.project-hero-top h1 {
  margin-bottom: 0.75rem;
}

.project-detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: 5.5rem;
  padding: 1rem;
  border: 1px solid rgba(150, 180, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.62), rgba(6, 10, 18, 0.34));
  backdrop-filter: blur(2px);
}

.project-fact {
  margin-top: 1rem;
}

.project-fact h3 {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-fact p {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
}

.project-links-stack {
  margin-top: 1.1rem;
}

.project-main-content {
  max-width: none;
}

.project-main-content h2:first-child {
  margin-top: 0;
}

@media (max-width: 980px) {
  .project-hero-shell {
    margin-top: clamp(8rem, 34vw, 12rem);
  }

  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-sidebar {
    position: static;
  }
}

/* Project mockup alignment overrides */
.project-page {
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.project-page .project-trailer-hero {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 100%;
  height: clamp(360px, 56vw, 680px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-hero-shell {
  margin-top: -12.5rem;
  margin-bottom: 0;
  padding: 0 2rem;
}

.project-hero-shell--no-trailer {
  margin-top: 0;
  padding-top: 0.75rem;
}

.project-hero-top {
  max-width: 520px;
}

.project-inline-back {
  margin-bottom: 0.9rem;
}


.project-detail-layout {
  margin-top: 0;
  padding: 1.5rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.74), rgba(6, 10, 18, 0.56));
  border: 1px solid rgba(150, 180, 255, 0.12);
  border-radius: 0 0 24px 24px;
}

.project-sidebar {
  margin-top: 0.2rem;
}

@media (max-width: 980px) {
  .project-page {
    padding: 1rem 0 2.2rem;
  }

  .project-hero-shell {
    margin-top: -7rem;
    padding: 0 1rem;
  }

  .project-hero-shell--no-trailer {
    margin-top: 0;
    padding-top: 0.25rem;
  }

  .project-detail-layout {
    padding: 1rem;
    border-radius: 16px;
  }

  .project-sidebar {
    margin-top: 0;
  }
}

.project-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.project-fact:first-child {
  margin-top: 0;
}

.project-back-link-box .button {
  width: 100%;
  justify-content: center;
}

.landing-hero {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  min-height: 750px;
  max-height: 750px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--panel) 20%, transparent) 0%, color-mix(in srgb, var(--panel-2) 14%, transparent) 52%, color-mix(in srgb, var(--panel) 16%, transparent) 100%);
}

body.home-with-bg-video .landing-hero,
body.home-with-bg-video .section-block {
  width: 100%;
  margin-left: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.landing-hero .hero-content {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: min(44%, 540px);
  height: 100%;
  padding: 1.6rem 1.6rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.landing-hero .hero-image-container {
  position: relative;
  z-index: 1;
  height: 750px;
  min-height: 750px;
  max-height: 750px;
}

.hero-feature-video {
  width: 100%;
  height: 750px;
  min-height: 750px;
  max-height: 750px;
  border-radius: 18px;
  object-fit: cover;
  object-position: 28% center;
  opacity: 0.95;
  filter: saturate(0.95) contrast(1.02) brightness(0.86);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  -webkit-mask-image: none;
  mask-image: none;
}


.landing-hero .hero-image-container {
  position: relative;
}

.landing-hero .hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0px, rgba(0, 0, 0, 1) 200px, rgba(5, 7, 12, 0.72) 34%, rgba(5, 7, 12, 0.38) 56%, rgba(5, 7, 12, 0.14) 78%, rgba(5, 7, 12, 0) 100%);
}

.landing-hero .hero-image-container::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.62) 0%, rgba(5, 7, 12, 0.28) 24%, rgba(5, 7, 12, 0.1) 46%, rgba(5, 7, 12, 0.04) 68%, rgba(5, 7, 12, 0) 100%);
}

.hero-title-accent {
  color: #ff9d2f;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}


.landing-hero .hero-title {
  max-width: 11ch;
  font-size: clamp(2.2rem, 3.8vw, 4.2rem);
  line-height: 1.04;
}

.landing-hero .hero-lead {
  max-width: 52ch;
}

.landing-hero .hero-stack-list li {
  background: rgba(6, 12, 24, 0.72);
  color: #d6dfef;
}

@media (max-width: 900px) {
  .landing-hero {
    min-height: auto;
    max-height: none;
  }

  .landing-hero .hero-content {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 0.3rem;
    margin-bottom: 1rem;
    overflow: visible;
  }

  body.home-with-bg-video .section-block,
  body.home-with-bg-video .landing-hero {
    width: 100%;
    margin-left: 0;
  }

  .hero-backdrop {
    background: transparent;
  }

  .landing-hero .hero-image-container {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .hero-feature-video {
    width: 100%;
    height: auto;
    min-height: 300px;
    max-height: 420px;
    margin-top: 0.5rem;
  }

  .landing-hero .hero-image-container::before,
  .landing-hero .hero-image-container::after {
    display: none;
  }

  .hero-cta-row {
    flex-wrap: wrap;
  }
}

.detail-layout-with-toc {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(220px, 280px);
}

.toc-sidebar {
  position: sticky;
  top: 5.5rem;
}

.toc-list {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.toc-list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-subitem {
  padding-left: 0.85rem;
}

.toc-empty {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1200px) {
  .detail-layout-with-toc {
    grid-template-columns: 1fr;
  }

  .detail-layout-with-toc .project-sidebar,
  .detail-layout-with-toc .toc-sidebar {
    position: static;
  }

  .toc-sidebar {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .detail-layout-with-toc {
    grid-template-columns: 1fr;
  }

  .detail-layout-with-toc .project-sidebar,
  .detail-layout-with-toc .toc-sidebar {
    position: static;
  }
}
