
:root {
  --bg: #0b1017;
  --panel: #131d2b;
  --panel-2: #0d1520;
  --text: #edf3fb;
  --muted: #9eb2c6;
  --accent: #63dfff;
  --line: #2d465c;
  --max-width: 1800px;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: radial-gradient(circle at top left, rgba(99, 223, 255, 0.12), transparent 34%), var(--bg);
  color: var(--text);
}

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

.site-header {
  width:min(94vw,var(--max-width));
  max-width:var(--max-width);
  margin: 0 auto;
  padding: clamp(20px,2vw,40px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 14px;
}

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

.section {
  width:min(94vw,var(--max-width));
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 70px 24px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.4px;
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  font-size: clamp(46px, 8vw, 92px);
  line-height: .92;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  margin: 42px 0 24px;
}

h3 {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: 34px;
}

h3:first-child { margin-top: 0; }

p, li {
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}

ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 42px 0;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 36px;
  align-items: center;
}

.subtitle {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 13px;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #041016;
  border-color: var(--accent);
}

.hero-card, .project-card, .contact-panel, details, .credit-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
}

.hero-card {
  min-height: 480px;
  padding: 18px;
}

.placeholder, .project-image, .thumb {
  display: grid;
  place-items: center;
  background: #0b111a;
  border: 1px dashed #4a6782;
  color: #8fa5b8;
  text-align: center;
  padding: 18px;
}

.hero-card .placeholder { min-height: 100%; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 400px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}


.project-image {
  min-height: 240px;
  padding: 0;
  overflow: hidden;
  border-style: solid;
}

.project-image img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 48%;
}


.project-info { padding: 22px; }
.project-info h3 { margin-top: 0; font-size: 25px; }
.project-info span {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
}

.split {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-panel { padding: 48px; }

.footer {
  width:min(94vw,var(--max-width));
  max-width:var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 60px;
  color: var(--muted);
}

.case-hero {
  min-height: 420px;
  margin: 36px 0 40px;
}

details {
  border-radius: 8px;
  margin: 18px 0;
  overflow: hidden;
}

summary {
  list-style: none;
  cursor: pointer;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 24px;
  font-weight: bold;
}

summary::-webkit-details-marker { display: none; }

.thumb {
  width: 140px;
  height: 80px;
  flex-shrink: 0;
}

.content {
  padding: 30px;
  border-top: 1px solid var(--line);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 24px 0;
}

.image-row .placeholder,
.content > .placeholder {
  min-height: 220px;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 30px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(99, 223, 255, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.credits {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.credit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.credit-card {
  padding: clamp(20px,2vw,40px);
}

.credit-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.credit-role {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.credit-card .button {
  margin-top: 10px;
  min-height: 38px;
}

@media (max-width: 850px) {
  .site-header { align-items: flex-start; gap: 20px; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  .hero, .project-grid, .split, .image-row, .credit-grid { grid-template-columns: 1fr; }
  .project-card.large { grid-column: span 1; }
  .section { padding: 54px 20px; }
  summary { align-items: flex-start; font-size: 20px; }
  .thumb { width: 100px; height: 70px; }
}


.logo-hero {
  min-height: 420px;
  margin: 36px 0 40px;
  display: grid;
  place-items: center;
  padding: 34px;
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line);
}

.logo-hero img {
  display: block;
  max-width: min(760px, 100%);
  max-height: 330px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.45));
}


.project-overview-panel {
  margin: 40px 0;
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
}


/* Project overview layout: original logo floats left; overview text wraps beside and below it. */
.project-overview-wrap-original {
  margin: 36px 0 42px;
  padding: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  overflow: auto;
}

.overview-logo-original {
  float: left;
  width: min(48%, 520px);
  min-height: 360px;
  margin: 0 34px 18px 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #f4f4f4;
  border: 1px solid var(--line);
}

.overview-logo-original img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}

.overview-role {
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.overview-role span {
  color: var(--accent);
  margin: 0 6px;
}

.overview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px 26px;
  margin: 0 0 26px;
}

.overview-meta p {
  margin: 0;
}

.project-overview-wrap-original::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 900px) {
  .overview-logo-original {
    float: none;
    width: 100%;
    min-height: 280px;
    margin: 0 0 24px 0;
  }

  .overview-logo-original img {
    max-height: 300px;
  }

  .overview-meta {
    grid-template-columns: 1fr;
  }
}


/* Fix: keep the uploaded transparent PNG transparent. */
.overview-logo-original {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.overview-logo-original img {
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55));
}

.contribution-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 34px;
  color: var(--muted);
  font-size: 16px;
}

.contribution-table th,
.contribution-table td {
  border: 1px solid var(--line);
  padding: 14px;
  vertical-align: top;
  text-align: left;
}

.contribution-table th {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(99, 223, 255, 0.06);
}


.biomech-hero {
  margin: 36px 0 40px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  overflow: hidden;
}

.biomech-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.asset-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.portfolio-img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #0b111a;
}

@media (max-width: 850px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: auto;
  }
}


.material-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.material-card:first-of-type {
  border-top: 0;
}

.material-card img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
  background: #0b111a;
}

@media (max-width: 850px) {
  .material-card {
    grid-template-columns: 1fr;
  }
}


/* Focus the Gel Finger Pads material image lower so the fingertips stay in frame. */
.material-card img.gel-pad-material-img {
  object-position: center bottom;
}




.character-rig-slideshow {
  margin: 20px 0 28px;
  outline: none;
}

.rig-slides {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b111a;
}

.rig-slide {
  display: none;
  width: 100%;
  height: 520px;
}

.rig-slide.is-active {
  display: grid;
  place-items: center;
}

.rig-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 18px;
}

.rig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 52px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.82);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.rig-arrow:hover,
.rig-arrow:focus-visible {
  background: var(--accent);
  color: #071018;
}

.rig-prev {
  left: 14px;
}

.rig-next {
  right: 14px;
}

.rig-slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.rig-counter {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.rig-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rig-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.rig-dot.is-active {
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 850px) {
  .rig-slides,
  .rig-slide {
    min-height: 360px;
    height: 360px;
  }

  .rig-slide img {
    padding: 10px;
  }

  .rig-arrow {
    width: 38px;
    height: 46px;
  }
}

@media (max-width: 520px) {
  .rig-slides,
  .rig-slide {
    min-height: 280px;
    height: 280px;
  }

  .rig-slideshow-controls {
    align-items: flex-start;
  }
}


/* Paired rig and bone-view slideshow */
.rig-slides {
  min-height: 430px;
  height: 430px;
}

.rig-slide {
  width: 100%;
  height: 100%;
}

.rig-slide.is-active {
  display: grid;
  place-items: center;
}

.rig-image-pair {
  width: calc(100% - 120px);
  height: calc(100% - 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
}

.rig-paired-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rig-paired-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

@media (max-width: 850px) {
  .rig-slides {
    min-height: 340px;
    height: 340px;
  }

  .rig-image-pair {
    width: calc(100% - 92px);
    height: calc(100% - 36px);
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .rig-slides {
    min-height: 500px;
    height: 500px;
  }

  .rig-image-pair {
    width: calc(100% - 72px);
    height: calc(100% - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}




/* Stable paired rig slideshow sizing */
.character-rig-slideshow {
  width: 100%;
  max-width: 100%;
}

.rig-slides {
  position: relative;
  width: 100%;
  height: 460px;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b111a;
  box-sizing: border-box;
}

.rig-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.rig-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rig-image-pair {
  width: calc(100% - 110px);
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px;
  overflow: hidden;
}

.rig-paired-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rig-paired-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  margin: 0;
}

.rig-arrow {
  z-index: 4;
}

@media (max-width: 850px) {
  .rig-slides {
    height: 380px;
    min-height: 380px;
  }

  .rig-image-pair {
    width: calc(100% - 88px);
    height: calc(100% - 34px);
    gap: 12px;
  }

  .rig-paired-image img {
    max-width: 92%;
    max-height: 92%;
  }
}

@media (max-width: 560px) {
  .rig-slides {
    height: 520px;
    min-height: 520px;
  }

  .rig-image-pair {
    width: calc(100% - 68px);
    height: calc(100% - 28px);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .rig-paired-image img {
    max-width: 94%;
    max-height: 94%;
  }
}


/* Final slideshow containment fix */
.rig-slides {
  position: relative;
  display: block;
  width: 100%;
  height: 460px;
  min-height: 460px;
  overflow: hidden;
}

.rig-slides > .rig-slide {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
}

.rig-slides > .rig-slide.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rig-image-pair {
  width: calc(100% - 120px);
  height: calc(100% - 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 18px;
}

.rig-paired-image {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rig-paired-image img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 850px) {
  .rig-slides {
    height: 380px;
    min-height: 380px;
  }
}

@media (max-width: 560px) {
  .rig-slides {
    height: 520px;
    min-height: 520px;
  }

  .rig-image-pair {
    width: calc(100% - 72px);
    height: calc(100% - 32px);
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.animation-gif{
display:block;
margin:20px auto;
max-width:240px;
width:100%;
height:auto;
padding:8px;
border:1px solid var(--line);
border-radius:8px;
background:#3f3f3f;
}

.animation-layout{
display:grid;
grid-template-columns:1fr 260px;
gap:24px;
align-items:start;
margin:18px 0 28px;
}
.animation-media{
display:flex;
justify-content:center;
}
.animation-gif{
max-width:240px;
width:100%;
height:auto;
margin:0;
}
@media(max-width:800px){
.animation-layout{grid-template-columns:1fr;}
.animation-media{order:-1;margin-bottom:16px;}
}

.tutorial-video-layout{
display:grid;
grid-template-columns:minmax(0,1fr) minmax(280px,42%);
gap:26px;
align-items:start;
margin:18px 0 28px;
}
.tutorial-video-media{width:100%;}
.tutorial-video{
display:block;
width:100%;
height:auto;
max-height:420px;
border:1px solid var(--line);
background:#080d15;
}
@media(max-width:850px){
.tutorial-video-layout{grid-template-columns:1fr;}
.tutorial-video-media{order:-1;}
}

.tutorial-blueprint-figure{margin:24px 0;text-align:center;}
.tutorial-blueprint{
width:100%;
max-width:1100px;
height:auto;
border:1px solid var(--line);
border-radius:8px;
cursor:zoom-in;
}
.tutorial-blueprint-figure figcaption{
margin-top:10px;
font-size:.9rem;
opacity:.8;
}

.tutorial-video-media .tutorial-blueprint-figure{
margin-top:16px;
}
.tutorial-video-media .tutorial-blueprint{
max-width:100%;
width:100%;
}
.tutorial-video-media .tutorial-blueprint-figure figcaption{
font-size:.85rem;
}

.rig-autoplay-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}

.rig-autoplay-toggle:hover,
.rig-autoplay-toggle:focus-visible {
  border-color: currentColor;
}

/* Wisp slideshow: reveal controls only while interacting with the images. */
[data-rig-slideshow][data-autoplay="true"] .rig-prev,
[data-rig-slideshow][data-autoplay="true"] .rig-next,
[data-rig-slideshow][data-autoplay="true"] .rig-slideshow-controls {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

[data-rig-slideshow][data-autoplay="true"]:hover .rig-prev,
[data-rig-slideshow][data-autoplay="true"]:hover .rig-next,
[data-rig-slideshow][data-autoplay="true"]:hover .rig-slideshow-controls,
[data-rig-slideshow][data-autoplay="true"]:focus-within .rig-prev,
[data-rig-slideshow][data-autoplay="true"]:focus-within .rig-next,
[data-rig-slideshow][data-autoplay="true"]:focus-within .rig-slideshow-controls {
  opacity: 1;
  visibility: visible;
}

/* Touchscreens do not have hover, so controls remain available there. */
@media (hover: none), (pointer: coarse) {
  [data-rig-slideshow][data-autoplay="true"] .rig-prev,
  [data-rig-slideshow][data-autoplay="true"] .rig-next,
  [data-rig-slideshow][data-autoplay="true"] .rig-slideshow-controls {
    opacity: 1;
    visibility: visible;
  }
}

.animation-video{
display:block;
width:100%;
max-width:240px;
height:auto;
margin:0;
padding:8px;
border:1px solid var(--line);
border-radius:8px;
background:#3f3f3f;
}


.animation-media .tutorial-blueprint-figure{
  width:100%;
  max-width:240px;
  margin:16px 0 0;
}
.animation-media .tutorial-blueprint{
  width:100%;
  height:auto;
}


/* Keep character animation media consistently sized and stacked. */
.animation-media{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
}

.animation-media .animation-video,
.animation-media .tutorial-blueprint-figure{
  width:100%;
  max-width:240px;
}

.animation-media .tutorial-blueprint-figure{
  margin:16px 0 0;
}


/* Monster character: copy on the left, all media stacked on the right. */
.monster-full-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 260px;
  gap:24px;
  align-items:start;
  margin:18px 0 28px;
}

.monster-media-column{
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
}

.monster-media-column .animation-video,
.monster-media-column .tutorial-blueprint-figure{
  width:100%;
  max-width:240px;
}

.monster-media-column .tutorial-blueprint-figure{
  margin:16px 0 0;
}

@media (max-width:760px){
  .monster-full-layout{
    grid-template-columns:1fr;
  }

  .monster-media-column{
    order:-1;
    margin-bottom:16px;
  }
}

.deer-concept-figure{margin:18px 0 28px;text-align:center}.deer-concept-image{width:100%;max-width:760px;border:1px solid var(--line);border-radius:8px}.deer-concept-figure figcaption{max-width:760px;margin:12px auto 0;text-align:left}

/* Cursed Friendship — Curse mechanic technical image gallery */
.curse-system-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  margin:24px 0 30px;
  align-items:start;
}
.curse-system-figure{
  margin:0;
}
.curse-system-figure-wide{
  margin:20px 0 28px;
}
.curse-system-figure a{
  display:block;
}
.curse-system-figure img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--line);
  border-radius:8px;
  background:#151515;
}
.curse-system-figure-wide img{
  max-height:620px;
  object-fit:contain;
}
.curse-system-figure figcaption{
  margin-top:10px;
  color:var(--muted);
  font-size:.92rem;
  line-height:1.55;
}
@media (max-width:760px){
  .curse-system-gallery{grid-template-columns:1fr;}
}

/* Curse mechanic gameplay demo lead-in */
.curse-demo-placeholder{
  min-height:360px;
  margin:20px 0 30px;
  padding:40px;
  border:1px dashed var(--line);
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(255,255,255,.015);
}
.curse-demo-placeholder strong{
  display:block;
  margin-top:12px;
  font-size:clamp(1.35rem,2.5vw,2rem);
}
.curse-demo-placeholder p{
  max-width:650px;
  margin:12px auto 0;
  color:var(--muted);
}
.curse-demo-label{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.curse-code-figure{
  max-width:980px;
}
@media (max-width:760px){
  .curse-demo-placeholder{min-height:260px;padding:26px 20px;}
}

/* Curse mechanic — Spring Joint prototype layout */
.curse-prototype-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px 36px;
  margin:24px 0 34px;
  align-items:start;
}
.curse-prototype-layout .curse-system-figure{
  min-width:0;
  margin:0;
}
.curse-prototype-layout .curse-system-figure img{
  display:block;
  width:100%;
  height:300px;
  object-fit:contain;
  object-position:left top;
  background:#1f1f1f;
  border:1px solid var(--line);
  border-radius:12px;
}
.curse-prototype-layout .curse-visual-figure{
  grid-column:1;
  grid-row:2;
}
.curse-prototype-layout figcaption{
  margin-top:12px;
}
.curse-prototype-layout figcaption strong{
  color:var(--text);
}
@media (max-width:760px){
  .curse-prototype-layout{
    grid-template-columns:1fr;
  }
  .curse-prototype-layout .curse-visual-figure{
    grid-column:auto;
    grid-row:auto;
  }
  .curse-prototype-layout .curse-system-figure img{
    height:auto;
    max-height:420px;
  }
}


/* Biomechanical Arm video breakdown */
.biomech-video-section {
  margin-bottom: 0;
}

.responsive-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #080b12;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Procedural Tree Generator case study */
.tree-generator-hero {
  width: min(100%, 1100px);
  margin: 0 auto 34px;
}

.tree-generator-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05080d;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tree-generator-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tree-generator-hero figcaption,
.tree-generator-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.tree-generator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  margin: 24px 0 34px;
}

.tree-generator-figure {
  margin: 0;
}

.tree-generator-figure a {
  display: block;
}

.tree-generator-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0a0d12;
}

@media (max-width: 850px) {
  .tree-generator-grid {
    grid-template-columns: 1fr;
  }
}


/* Text-only cards and dropdowns used for Prototype Lab / tools. */
.project-card.text-only {
  min-height: 220px;
}

.project-card.text-only .project-info {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-card.text-only .project-info span {
  margin-top: 12px;
}

.project-card.text-only::after {
  content: "View prototypes →";
  display: block;
  padding: 0 24px 24px;
  color: var(--accent);
  font-weight: 700;
}

/* Prototype Lab entries use clean text headers instead of thumbnails. */
main > details > summary {
  justify-content: space-between;
}

main > details > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
  font-weight: 400;
}

main > details[open] > summary::after {
  content: "−";
}

/* Accordion navigation: opened sections align below the sticky site header. */
details {
  scroll-margin-top: 6.5rem;
}


/* Main-page Industry Night demo hero */
.hero-video {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background:#000;
  z-index: -3;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 15, .94) 0%, rgba(5, 9, 15, .76) 42%, rgba(5, 9, 15, .28) 72%, rgba(5, 9, 15, .5) 100%),
    linear-gradient(0deg, rgba(5, 9, 15, .78) 0%, transparent 45%, rgba(5, 9, 15, .28) 100%);
}

.hero-content {
  width: min(680px, 100%);
  padding: 34px;
  border-left: 3px solid var(--accent);
  background: rgba(5, 9, 15, .58);
  backdrop-filter: blur(5px);
}

.hero-content h1,
.hero-content .subtitle {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .75);
}

@media (max-width: 850px) {
  .hero-video {
    min-height: 72vh;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero-content {
    padding: clamp(20px,2vw,40px);
    background: rgba(5, 9, 15, .72);
  }

  .hero-video-overlay {
    background: linear-gradient(0deg, rgba(5, 9, 15, .93), rgba(5, 9, 15, .52));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-video {
    display: none;
  }

  .hero-video {
    background: url("assets/images/industry-night-demo-poster.jpg") center / cover no-repeat;
  }
}


.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(11,16,23,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.08);
}
body{padding-top:0;}

/* Cursed Friendship full-game demonstration */
.cursed-game-demo {
  margin: 34px 0 42px;
}

.cursed-game-demo h2 {
  margin-bottom: 12px;
}

.cursed-game-demo > p:not(.eyebrow) {
  max-width: 78ch;
  margin-bottom: 20px;
}


/* Wizard character pipeline */
.wizard-production-note {
  margin: 26px 0 34px;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(99, 223, 255, 0.06);
}
.wizard-production-note p:last-child { margin-bottom: 0; }
.wizard-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 30px);
  margin: 24px 0 34px;
  align-items: start;
}
.wizard-pipeline-figure,
.wizard-feature-figure {
  margin: 24px 0 34px;
}
.wizard-pipeline-grid .wizard-pipeline-figure { margin: 0; }
.wizard-pipeline-figure a,
.wizard-feature-figure a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #252525;
}
.wizard-pipeline-figure img,
.wizard-feature-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.wizard-pipeline-figure img { max-height: 760px; }
.wizard-feature-figure img { max-height: 900px; }
.wizard-rig-figure img { max-height: 780px; }
.wizard-pipeline-figure figcaption,
.wizard-feature-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 820px) {
  .wizard-pipeline-grid { grid-template-columns: 1fr; }
}


/* Scrollable C# source-code viewer */
.source-code-viewer { margin:24px 0 30px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#0d1117; box-shadow:0 12px 30px rgba(0,0,0,.18); }
.source-code-toolbar { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:13px 16px; border-bottom:1px solid rgba(255,255,255,.1); background:#161b22; }
.source-code-toolbar > div { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }
.source-code-toolbar strong { color:#f0f6fc; }
.source-code-toolbar span { color:#8b949e; font-size:.85rem; }
.source-code-toolbar a { color:var(--accent); font-size:.9rem; white-space:nowrap; }
.source-code-scroll { max-height:620px; margin:0; overflow:auto; padding:16px 0; color:#d6deeb; background:#0d1117; font:.88rem/1.62 Consolas,"SFMono-Regular",Menlo,Monaco,monospace; tab-size:4; scrollbar-color:#44505f #0d1117; }
.source-code-scroll code { display:block; min-width:max-content; counter-reset:code-line; }
.source-code-scroll .code-line { display:block; min-height:1.62em; padding:0 22px 0 0; white-space:pre; counter-increment:code-line; }
.source-code-scroll .code-line::before { content:counter(code-line); display:inline-block; width:4.5em; margin-right:18px; padding-right:13px; border-right:1px solid rgba(255,255,255,.08); color:#66707d; text-align:right; user-select:none; }
.source-code-scroll:focus { outline:2px solid var(--accent); outline-offset:-2px; }
@media (max-width:620px) { .source-code-toolbar { align-items:flex-start; } .source-code-scroll { max-height:480px; font-size:.78rem; } }

/*=========================================
  LEVEL DESIGN
=========================================*/

.level-design-layout{
    display:grid;
    grid-template-columns:58% 42%;
    gap:40px;
    align-items:start;
    margin:30px 0 50px;
}

.level-design-text{
    min-width:0;
}

.level-design-gallery{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.level-design-gallery figure{
    margin:0;
}

.level-design-gallery a{
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
    background:#111;
}

.level-design-gallery img{
    width:100%;
    display:block;
    object-fit:cover;
}

.level-design-gallery figcaption{
    margin-top:8px;
    font-size:.85rem;
    color:var(--muted);
    text-align:center;
}

.level-design-gallery .large img{
    max-height:520px;
    object-fit:contain;
    background:#111;
}

.level-design-gallery .small img{
    max-height:260px;
    object-fit:contain;
    background:#111;
}

.level-design-tags{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:24px 0;
}

.level-design-tags span{
    padding:8px 14px;
    border:1px solid var(--line);
    border-radius:999px;
    color:var(--accent);
    font-size:.8rem;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1px;
    background:rgba(99,223,255,.08);
}

@media (max-width:900px){

    .level-design-layout{
        grid-template-columns:1fr;
    }

    .level-design-gallery{
        order:-1;
    }

}
.level-design-process{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-top:24px;
    align-items:start;
}

.level-design-figure{
    margin:0;
}

.level-design-figure img{
    width:100%;
    height:auto;
    display:block;
    border-radius:8px;
}

.level-design-figure figcaption{
    margin-top:10px;
    font-size:.9rem;
    color:#9fb7d8;
    text-align:center;
}

@media (max-width:900px){
    .level-design-process{
        grid-template-columns:1fr;
    }
}

/* Statue puzzle case-study gallery */
.statue-puzzle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 24px 0 30px;
}
.statue-puzzle-figure {
  margin: 0;
  min-width: 0;
}
.statue-puzzle-figure-wide {
  grid-column: 1 / -1;
}
.statue-puzzle-figure a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #10131a;
}
.statue-puzzle-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.statue-puzzle-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 800px) {
  .statue-puzzle-grid { grid-template-columns: 1fr; }
  .statue-puzzle-figure-wide { grid-column: auto; }
}
/* Monolith Puzzle Gallery */

.wizard-code-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    margin:24px 0 32px;
    align-items:start;
}

.wizard-code-card{
    margin:0;
    min-width:0;
}

.wizard-code-card a{
    display:block;
    border:1px solid var(--line);
    border-radius:10px;
    overflow:hidden;
    background:#10131a;
}

.wizard-code-card img{
    display:block;
    width:100%;
    height:auto;
}

.wizard-code-card figcaption{
    margin-top:10px;
    color:var(--muted);
    line-height:1.55;
}

@media (max-width:800px){
    .wizard-code-grid{
        grid-template-columns:1fr;
    }
}
/* =========================================
   ABOUT PAGE
   ========================================= */

.about-intro {
    padding: 72px 0 80px;
    border-bottom: 1px solid var(--border, #29475a);
}

.about-intro h1 {
    margin: 12px 0 8px;
}

.about-intro .subtitle {
    margin-bottom: 36px;
}

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

.about-copy p {
    margin-bottom: 22px;
}

.about-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border, #29475a);
}

.about-section h2 {
    margin-top: 10px;
    margin-bottom: 32px;
}

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

.about-card,
.experience-card {
    padding: 28px;
    background: #101c29;
    border: 1px solid #315168;
}

.about-card h3,
.experience-card h3 {
    margin-top: 0;
}

.about-card ul,
.experience-card ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.about-card li,
.experience-card li {
    margin-bottom: 10px;
}

.experience-grid {
    display: grid;
    gap: 20px;
}

.experience-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 18px;
}

.experience-role {
    margin: 6px 0 0;
    font-weight: 600;
}

.experience-date {
    margin: 0;
    text-align: right;
    white-space: nowrap;
}

.resume-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.resume-panel > div {
    max-width: 800px;
}

@media (max-width: 900px) {

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

    .experience-heading {
        display: block;
    }

    .experience-date {
        margin-top: 10px;
        text-align: left;
        white-space: normal;
    }

    .resume-panel {
        display: block;
    }

    .resume-panel .button {
        display: inline-block;
        margin-top: 22px;
    }
}
/* =========================================
   About Hero
========================================= */

.about-grid{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:60px;
    align-items:center;
}

.about-photo img{
    width:100%;
    aspect-ratio:3/4;
    object-fit:cover;
    display:block;
    border-radius:8px;
    border:1px solid #315168;
}

.about-content h1{
    margin-bottom:10px;
}

.about-copy{
    margin-top:30px;
}

.about-copy p{
    margin-bottom:24px;
}

@media (max-width:900px){

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

    .about-photo{
        max-width:300px;
        margin:0 auto;
    }

}
/* Wizard Overview */

.wizard-overview-layout{
    display:grid;
    grid-template-columns:60% 40%;
    gap:40px;
    align-items:start;
    margin:35px 0 50px;
}

.wizard-overview-image{
    display:flex;
    justify-content:center;
}

.wizard-overview-image img{
    width:100%;
    max-width:420px;
    border:1px solid var(--line);
    display:block;
}

.wizard-overview-text h3{
    margin-top:0;
}

@media (max-width:900px){

    .wizard-overview-layout{
        grid-template-columns:1fr;
    }

    .wizard-overview-image{
        order:-1;
    }

}
/* Wizard Animation Layout */

.project-overview-layout{
    display:grid;
    grid-template-columns:65% 35%;
    gap:50px;
    align-items:start;
}

.project-overview-text{
    min-width:0;
}

.project-overview-images{
    display:flex;
    flex-direction:column;
    gap:18px;
    max-width:420px;
    width:100%;
    margin-left:auto;
}

.project-overview-images figure{
    margin:0;
}

.project-overview-images video{
    width:100%;
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
}

.project-overview-images img{
    width:100%;
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
}

.project-overview-images figcaption{
    margin-top:8px;
    font-size:.85rem;
    text-align:center;
    color:var(--muted);
}

@media (max-width:900px){

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

.project-overview-images{
    order:-1;
    max-width:420px;
    margin:0 auto 24px;
}

}

/* -----------------------------
   Rigging & Animation
----------------------------- */

.rigging-layout{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:50px;
    margin:40px 0;
}

.rigging-text{
    flex:1;
}

.rigging-media{
    width:230px;
    display:flex;
    flex-direction:column;
    gap:20px;
    align-items:center;
    flex-shrink:0;
}

.rigging-media video{
    width:100%;
    border-radius:8px;
    border:1px solid #4b6075;
    display:block;
}

.rigging-media figure{
    margin:0;
    width:100%;
}

.rigging-media img{
    width:100%;
    display:block;
    border-radius:8px;
    border:1px solid #4b6075;
}

.rigging-media figcaption{
    text-align:center;
    font-size:0.8rem;
    color:#bfc8d6;
    margin-top:10px;
    line-height:1.4;
}
/* ==========================================
   Wizard Gameplay Code Gallery
========================================== */

.code-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    margin:30px 0 50px;
}

.code-gallery figure{
    margin:0;
}

.code-gallery img{
    width:100%;
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
    background:#151515;
}

@media(max-width:900px){

    .code-gallery{
        grid-template-columns:1fr;
    }

}
/* ---------- Level 5 layout ---------- */

.level-design-overview{
    display:grid;
    grid-template-columns:1fr 42%;
    gap:32px;
    align-items:start;
    margin:24px 0;
}

.level-design-copy{
    min-width:0;
}

.level-design-plan{
    margin:0;
}

.level-design-plan img{
    width:100%;
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
}

.level-design-plan figcaption{
    margin-top:10px;
    font-size:.9rem;
    opacity:.85;
}

@media (max-width:900px){
    .level-design-overview{
        grid-template-columns:1fr;
    }
}
.controller-code-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:24px;
    margin:24px 0 36px;
    align-items:start;
}

.controller-code-gallery figure{
    margin:0;
}

.controller-code-gallery img{
    width:100%;
    display:block;
    border:1px solid var(--line);
    border-radius:8px;
    background:#111;
}

.controller-code-gallery figcaption{
    margin-top:10px;
    color:var(--muted);
    font-size:.9rem;
    line-height:1.5;
}

@media (max-width:900px){
    .controller-code-gallery{
        grid-template-columns:1fr;
    }
}
/* Make the final image in the wizard code gallery smaller and centered */
.wizard-code-card:last-child{
    grid-column:1 / -1;
    justify-self:center;
    max-width:650px;
}

.wizard-code-card:last-child img{
    width:100%;
    height:auto;
}
/* ========================================
   MONSTER PLAYER CONTROLLER
   ======================================== */

.monster-code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 16px 0 30px;
}

.monster-code-card {
    margin: 0;
    width: 100%;
}

.monster-code-card a {
    display: block;
    width: 100%;
}

.monster-code-card img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #35566b;
    border-radius: 6px;
}


/* Mobile */
@media (max-width: 800px) {
    .monster-code-grid {
        grid-template-columns: 1fr;
    }
}
/* Flying Book Overview */

.flying-book-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 36px;
    align-items: start;
    margin-bottom: 32px;
}

.flying-book-overview-text {
    min-width: 0;
}

.flying-book-overview-media {
    width: 100%;
}

.flying-book-overview-media iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 1px solid var(--line);
    background: #0b111a;
}

@media (max-width: 850px) {
    .flying-book-overview {
        grid-template-columns: 1fr;
    }

    .flying-book-overview-media {
        order: -1;
    }
}

/* Telescope Puzzle overview */
.telescope-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    gap: 32px;
    align-items: start;
    margin-bottom: 32px;
}

.telescope-overview-text {
    min-width: 0;
}

.telescope-overview-media {
    width: 100%;
}

.telescope-overview-media iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    background: #000;
    border: 1px solid var(--line);
}

@media (max-width: 850px) {
    .telescope-overview {
        grid-template-columns: 1fr;
    }

    .telescope-overview-media {
        order: -1;
    }
}
/* =========================================
   LEVEL 6 — LAYOUT + FLOW
   ========================================= */

.level-layout-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 48%);
    gap: 40px;
    align-items: start;
    margin-top: 30px;
    margin-bottom: 40px;
}

.level-layout-text {
    min-width: 0;
}

.level-layout-text h3:first-child {
    margin-top: 0;
}

.level-layout-image {
    margin: 0;
}

.level-layout-image a {
    display: block;
}

.level-layout-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}


/* Mobile / narrow screen */

@media (max-width: 900px) {

    .level-layout-showcase {
        grid-template-columns: 1fr;
    }

    .level-layout-image {
        order: -1;
    }
}
/* =========================================
   BIOMECHANICAL ARM — TEXT + STACKED IMAGES
   ========================================= */

.biomech-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 46%);
    gap: 36px;
    align-items: start;
}

.biomech-side-text {
    min-width: 0;
}

.biomech-side-text h2 {
    margin-top: 0;
}

.biomech-side-images {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.biomech-side-images .placeholder {
    padding: 18px;
    min-height: 0;
}

.biomech-side-images img {
    display: block;
    width: 100%;
    height: auto;
}


/* Mobile */

@media (max-width: 850px) {

    .biomech-side-layout {
        grid-template-columns: 1fr;
    }

    .biomech-side-images {
        order: -1;
    }
}
/* Biomechanical Arm — compact side image layout */
.biomech-side-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
    gap: 36px;
    align-items: start;
}

.biomech-side-images {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: 480px;
    justify-self: end;
}

.biomech-side-images .placeholder {
    width: 100%;
    padding: 12px;
    min-height: 0;
}

.biomech-side-images img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
}

/* Mobile */
@media (max-width: 850px) {
    .biomech-side-layout {
        grid-template-columns: 1fr;
    }

    .biomech-side-images {
        max-width: 520px;
        justify-self: center;
    }

    .biomech-side-images img {
        max-height: none;
    }
}
/* =========================================================
   BIOMECHANICAL ARM — PROJECT OVERVIEW
   ========================================================= */

.biomech-overview-panel {
    display: grid;
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    gap: 42px;
    align-items: center;

    margin: 36px 0 48px;
    padding: 32px;

    border: 1px solid var(--line);
    background: linear-gradient(145deg, var(--panel), var(--panel-2));
}

.biomech-overview-image {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.biomech-overview-image img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}

.biomech-overview-content {
    min-width: 0;
}

.biomech-overview-content .eyebrow {
    margin-bottom: 18px;
}

.biomech-overview-content h1 {
    font-size: clamp(42px, 5vw, 72px);
    margin-bottom: 18px;
}

.biomech-overview-role {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 24px;
}

.biomech-overview-role span {
    color: var(--accent);
    margin: 0 8px;
}

.biomech-overview-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 30px;
    margin-bottom: 26px;
}

.biomech-overview-meta p {
    margin: 0;
}

.biomech-overview-content .tag-grid {
    margin-bottom: 0;
}


/* Tablet / Mobile */

@media (max-width: 900px) {

    .biomech-overview-panel {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px;
    }

    .biomech-overview-image img {
        max-height: 440px;
    }

    .biomech-overview-meta {
        grid-template-columns: 1fr;
    }
}
/* Strong Arm Gameplay Walkthrough */
.strongarm-walkthrough {
    width: min(100%, 1100px);
    margin: 0 auto 36px;
    aspect-ratio: 16 / 9;
}

.strongarm-walkthrough iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    background: #000;
}

@media (max-width: 850px) {
    .strongarm-walkthrough {
        width: 100%;
    }
}

/* StrongArm - Flying Book Awakening image */
.flying-book-awakening-image {
    max-width: 950px;
    margin: 24px auto;
}

.flying-book-awakening-image img {
    display: block;
    width: 100%;
    height: auto;
}
/* Rock Climbing C# code — full width */
.rockclimb-code-full {
    display: block;
    width: 100%;
    margin: 24px 0;
}

.rockclimb-code-full .source-code-viewer {
    width: 100%;
    max-width: none;
}
/* Cursed Friendship Full Game Demo */
.cursed-demo-video {
    width: min(100%, 1000px);
    aspect-ratio: 16 / 9;
    margin: 28px auto 42px;
}

.cursed-demo-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
}
/* Shrink Wizard Controller state machine */
.wizard-state-machine {
    max-width: 900px;
    margin: 24px auto;
}

.wizard-state-machine .tutorial-blueprint {
    width: 100%;
    max-width: 900px;
}
/* Cursed Friendship - Level 5 walkthrough */
.level5-video {
    width: min(70%, 1000px);
    margin: 24px auto;
    aspect-ratio: 16 / 9;
}

.level5-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 850px) {
    .level5-video {
        width: 100%;
    }
}

/* Cursed Friendship - Monolith Puzzle */
.monolith-video {
    width: min(70%, 1000px);
    margin: 24px auto;
    aspect-ratio: 16 / 9;
}

.monolith-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 850px) {
    .monolith-video {
        width: 100%;
    }
}

/* Cursed Friendship - Statue Puzzle */
.statue-video {
    width: min(70%, 1000px);
    margin: 24px auto;
    aspect-ratio: 16 / 9;
}

.statue-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

@media (max-width: 850px) {
    .statue-video {
        width: 100%;
    }
}