:root {
  --ink: #f7fbff;
  --paper: #070a12;
  --mist: #132238;
  --steel: #9ca9c7;
  --line: rgba(183, 213, 255, 0.2);
  --blue: #3d8cff;
  --green: #44e6a3;
  --purple: #9b6cff;
  --violet: #5f3fd6;
  --panel: rgba(12, 18, 34, 0.78);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(183, 213, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 213, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(68, 230, 163, 0.22), transparent 30rem),
    radial-gradient(circle at 82% 8%, rgba(61, 140, 255, 0.24), transparent 28rem),
    radial-gradient(circle at 74% 70%, rgba(155, 108, 255, 0.18), transparent 34rem),
    var(--paper);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

#studio-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand,
.site-nav,
.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #071019;
  background: linear-gradient(135deg, var(--green), var(--blue) 52%, var(--purple));
  border-radius: 8px;
  box-shadow: inset -8px -8px 0 rgba(255, 255, 255, 0.11);
}

.site-nav a {
  padding: 8px 2px;
  color: rgba(247, 251, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:hover {
  color: #fff;
}

.nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: end;
  gap: 40px;
  min-height: calc(100svh - 82px);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 9vh 0 7vh;
}

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

.eyebrow,
.card-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 9vw, 7.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 32px;
  color: rgba(247, 251, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
  word-break: keep-all;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(247, 251, 255, 0.32);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #071019;
  background: linear-gradient(135deg, var(--green), var(--blue) 58%, var(--purple));
  box-shadow: 6px 6px 0 rgba(155, 108, 255, 0.42);
}

.button.ghost {
  background: rgba(12, 18, 34, 0.7);
}

.signal-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-topline,
.signal-grid {
  display: grid;
  gap: 12px;
}

.panel-topline {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

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

.signal-grid div {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

dt {
  margin-bottom: 18px;
  color: var(--steel);
  font-size: 0.75rem;
  font-weight: 750;
}

dd {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 850;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band p {
  max-width: 900px;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  font-weight: 820;
  line-height: 1.22;
  word-break: keep-all;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
  word-break: keep-all;
}

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

.work-card {
  min-height: 440px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 18, 34, 0.76);
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.28);
}

.work-visual {
  position: relative;
  height: 210px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 22% 20%, rgba(68, 230, 163, 0.22), transparent 14rem), var(--mist);
}

.work-visual::before,
.work-visual::after {
  content: "";
  position: absolute;
}

.work-visual.cad::before {
  inset: 38px 54px;
  border: 3px solid var(--blue);
  transform: skewY(-13deg) rotate(-3deg);
}

.work-visual.cad::after {
  width: 92px;
  height: 92px;
  right: 34px;
  bottom: 28px;
  border: 14px solid var(--purple);
  border-radius: 50%;
}

.work-visual.render {
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 44%),
    linear-gradient(45deg, #080b14, #183463 54%, var(--purple));
}

.work-visual.render::before {
  width: 170px;
  height: 170px;
  left: 34px;
  top: 24px;
  background: linear-gradient(135deg, #dff8ff, #44e6a3 42%, #3d8cff 72%, #9b6cff);
  clip-path: polygon(50% 0, 100% 30%, 84% 100%, 16% 100%, 0 30%);
}

.work-visual.render::after {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.work-visual.game {
  background:
    linear-gradient(rgba(244, 240, 232, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 232, 0.22) 1px, transparent 1px),
    #20241f;
  background-size: 24px 24px;
}

.work-visual.game::before {
  width: 88px;
  height: 88px;
  left: 38px;
  bottom: 32px;
  background: var(--green);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.work-visual.game::after {
  width: 118px;
  height: 44px;
  right: 30px;
  top: 42px;
  border: 3px solid var(--purple);
}

.work-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.work-card p:last-child {
  margin-bottom: 0;
  color: rgba(247, 251, 255, 0.72);
  line-height: 1.65;
  word-break: keep-all;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 56px;
  border-top: 1px solid var(--line);
}

.lab-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lab-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.lab-list span {
  color: var(--purple);
  font-weight: 850;
}

.lab-list p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.68;
  word-break: keep-all;
}

.notes-section {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.note-link {
  display: block;
  min-height: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.note-link span {
  display: block;
  margin-bottom: 34px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.note-link strong {
  display: block;
  font-size: 1.22rem;
  line-height: 1.42;
  word-break: keep-all;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  max-width: 720px;
}

.entry-content {
  max-width: 780px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.pagination {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .nav-menu {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .hero,
  .section-heading,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .signal-panel {
    max-width: 520px;
  }

  .work-grid,
  .note-row {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

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

  .section {
    padding: 62px 0;
  }
}
