:root { --paper: #f3f2ee; --ink: #282b29; --accent: #d35f43; }
html { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); overflow-x: clip; }
header { border: 0; }
.code-hero-scroll { height: 150svh; position: relative; }
.code-hero {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, #fcfcf8 12%, #f0f2ed 74%, #e9ece8 100%);
}
.code-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#808a7824 .7px, transparent .7px);
  background-size: 17px 17px;
  mask-image: linear-gradient(180deg, transparent 5%, #000 48%, transparent 92%);
  pointer-events: none;
}
.code-hero-stage { position: relative; height: 100%; width: 100%; }
.code-hero-heading {
  position: absolute;
  z-index: 2;
  top: 10%;
  left: 5%;
  width: 90%;
  text-align: center;
  will-change: transform, opacity;
}
.code-hero-heading .eyebrow { font-size: 9px; letter-spacing: .24em; color: #868c80; }
.code-hero-heading h1 {
  margin: 9px 0 7px;
  font-size: clamp(46px, 4.3vw, 64px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.067em;
}
.code-hero-heading h1 em { font-style: normal; color: #8a987e; }
.code-hero-heading>p:last-child { font-size: 14px; color: #727d70; }
.showreel-shell {
  position: absolute;
  z-index: 3;
  top: 32%;
  left: 50%;
  width: min(70vw, calc(121svh - 196px), 1000px);
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #f9faf7db;
  box-shadow: 0 38px 90px -57px #3e4e3d72, inset 0 1px 0 #fff;
  transform: translateX(-50%) scale(.96);
  transform-origin: center;
  will-change: transform;
}
.showreel-top, .starter-film-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 5px 10px;
  color: #84907e;
  font-size: 9px;
  letter-spacing: .12em;
}
.showreel-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  background: #e7e9e3;
}
.showreel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  padding: 8px 5px 0;
  font-size: 11px;
  color: #798477;
}
.showreel-controls>div { display: flex; gap: 10px; align-items: center; }
.showreel-controls button {
  min-height: 32px;
  border: 1px solid #c8cfc4;
  border-radius: 999px;
  padding: 6px 13px;
  color: #39453b;
  background: #f6f8f3;
  font-size: 11px;
  white-space: nowrap;
}
.showreel-controls button:hover { background: #e8eee4; }
.showreel-controls #play-toggle { width: 34px; padding: 6px; font-size: 12px; }
.showreel-controls button:focus-visible { outline: 2px solid #4d6750; outline-offset: 2px; }
.code-hero-foot {
  position: absolute;
  bottom: 22px;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  color: #959e91;
  font-size: 9px;
  letter-spacing: .1em;
}
.code-lens { height: 370svh; margin-top: 0; }
.code-lens .collection-stage {
  padding: 55px 6.5% 35px;
  min-height: 620px;
  background: #f7f8f5;
  border-radius: 40px 40px 0 0;
}
.code-lens .collection-heading { margin-bottom: 22px; }
.code-lens .collection-heading h2 { font-size: clamp(37px, 3.6vw, 56px); }
.code-lens .lens-all {
  justify-self: end;
  align-self: end;
  padding-bottom: 6px;
  border-bottom: 1px solid #a6b2a2;
  color: #687769;
  font-size: 13px;
}
.code-lens .lens-all:hover { color: #c95e41; }
.code-lens .diagram-view { background: #f1f2ed; border-color: #e1e5dc; }
.code-lens .viewer-top, .code-lens .viewer-bottom { color: #768372; }
.code-lens .viewer-top h3 { color: #3b463c; }
.lens-range { font-size: 10px; letter-spacing: .1em; color: #a0aa9b; white-space: nowrap; }
.lens-media {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 10px 20px;
  background: radial-gradient(ellipse at center, #fffefb, #eeeee8 85%);
}
.lens-media img { display: block; width: 100%; max-height: 100%; object-fit: contain; }
.code-lens .viewer-bottom a:hover { color: #cf6548; }
.code-worlds {
  padding: 100px 6.5% 95px;
  background: #f7f8f5;
}
.code-worlds-head { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 45px; }
.code-worlds .eyebrow, .code-starter .eyebrow, .code-workflow .eyebrow {
  color: #9aa394;
  font-size: 9px;
  letter-spacing: .16em;
  margin-bottom: 17px;
}
.code-worlds h2, .code-starter h2, .code-workflow h2 {
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.1;
  font-weight: 450;
  letter-spacing: -.05em;
}
.world-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.world-card {
  overflow: hidden;
  border: 1px solid #dfe4d8;
  border-radius: 16px;
  background: #ecf0e7;
  box-shadow: 0 15px 40px -34px #4d5d4b66;
  transition: transform .35s ease, box-shadow .35s ease;
}
.world-card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -35px #4d5d4b66; }
.world-card img { display: block; width: 100%; aspect-ratio: 1.35; object-fit: cover; }
.world-card>div { padding: 17px 18px 20px; }
.world-card h3 { font-size: 18px; font-weight: 500; letter-spacing: -.035em; }
.world-card p { margin-top: 7px; color: #838d80; font-size: 12px; line-height: 1.55; }
.world-note { max-width: 680px; margin: 24px 0 0; color: #9aa393; font-size: 11px; line-height: 1.7; }
.code-starter {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 7%;
  padding: 100px 6.5%;
  background: #edf1ea;
}
.starter-copy p:not(.eyebrow) { max-width: 400px; margin: 24px 0; color: #748172; font-size: 15px; line-height: 1.8; }
.starter-copy a { display: inline-flex; padding-bottom: 7px; border-bottom: 1px solid #97a28d; font-size: 13px; }
.starter-copy a:hover { color: #cf6548; }
.starter-film {
  padding: 12px;
  border: 1px solid #fff;
  border-radius: 16px;
  background: #f7f8f4;
  box-shadow: 0 28px 70px -50px #485b426a;
}
.starter-film video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e8ebe5; }
.code-workflow {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 10%;
  padding: 110px 8%;
  background: #f7f8f5;
}
.workflow-steps { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 24px; }
.workflow-steps span { display: block; border-top: 1px solid #cbd4c9; padding-top: 16px; font-size: 14px; color: #5d6e5f; }
.code-price-art { flex: 1; min-height: 0; display: grid; place-items: center; margin: 0 -12px; overflow: hidden; }
.code-price-art img { display: block; width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.code-source-note { padding: 22px 20px 32px; background: #f7f8f5; text-align: center; font-size: 10px; color: #8b9688; }
.code-source-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 799px) {
  .code-hero-scroll { height: 130svh; }
  .code-hero { min-height: 0; }
  .code-hero-heading { top: 16%; left: 6%; width: 88%; }
  .code-hero-heading h1 { font-size: clamp(42px, 10.5vw, 60px); line-height: 1.04; }
  .code-hero-heading>p:last-child { font-size: 12px; }
  .showreel-shell { top: 42%; width: 94vw; padding: 7px; border-radius: 12px; }
  .showreel-top { padding: 3px 3px 7px; font-size: 7px; }
  .showreel-shell video { border-radius: 6px; }
  .showreel-controls { min-height: 38px; padding: 6px 3px 0; }
  .showreel-caption { display: none; }
  .showreel-controls>div { width: 100%; justify-content: space-between; }
  .showreel-controls button { font-size: 10px; min-height: 28px; }
  .code-hero-foot { font-size: 7px; letter-spacing: .02em; bottom: 18px; }
  .code-lens { height: 350svh; }
  .code-lens .collection-stage { min-height: 610px; padding: 38px 5% 26px; border-radius: 26px 26px 0 0; }
  .code-lens .collection-heading h2 { font-size: 34px; }
  .code-lens .lens-all { display: inline-block; margin-top: 15px; font-size: 11px; }
  .code-lens .viewer-top { padding: 16px 14px; }
  .code-lens .viewer-top h3 { font-size: 19px; }
  .code-lens .viewer-top p { max-width: 250px; font-size: 10px; }
  .lens-range { font-size: 8px; }
  .lens-media {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
    scrollbar-width: none;
  }
  .lens-media::-webkit-scrollbar { display: none; }
  .lens-media img { flex: none; width: 660px; max-height: none; height: auto; }
  .code-worlds { padding: 65px 6% 75px; }
  .code-worlds h2, .code-starter h2, .code-workflow h2 { font-size: 43px; }
  .world-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .world-card { border-radius: 10px; }
  .world-card>div { padding: 12px; }
  .world-card h3 { font-size: 14px; }
  .world-card p { font-size: 10px; }
  .code-starter { display: block; padding: 75px 6%; }
  .starter-copy p:not(.eyebrow) { font-size: 13px; margin: 22px 0; }
  .starter-film { margin-top: 32px; padding: 8px; }
  .starter-film-top { font-size: 7px; }
  .code-workflow { display: block; padding: 80px 6%; }
  .workflow-steps { gap: 20px; margin-top: 42px; }
  .workflow-steps span { font-size: 12px; }
}
@media (min-width: 800px) and (max-height: 700px) {
  .code-hero-heading { top: 10%; }
  .code-hero-heading h1 { font-size: clamp(42px, 3.8vw, 54px); }
  .showreel-shell { top: 36%; }
}
@media (prefers-reduced-motion: reduce) {
  .code-hero-scroll { height: auto; }
  .code-hero { position: relative; }
  .showreel-shell, .code-hero-heading { will-change: auto; }
  .code-lens { height: auto; }
  .world-card { transition: none; }
}
