@font-face {
  font-family: Quera;
  src: url('/fonts/Quera-DEMO.otf') format('opentype');
  font-display: swap;
}

:root {
  --cream: #ffdfb7;
  --red: #e61f25;
  --gray: #696969;
  --black: #101010;
  --line: #ffdfb738;
  --panel: #5c5c5c;
  font-family: Quera, Arial, sans-serif;
  color: var(--cream);
  background: var(--gray);
}

@property --angle {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}

@property --spin {
  syntax: '<angle>';
  inherits: false;
  initial-value: -14deg;
}

* { box-sizing: border-box; }
html { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--gray);
}

body {
  margin: 0;
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow-x: clip;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('/assets/identity/back.png') center / cover no-repeat;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

body[data-site='studio'] #page-content,
body[data-site='studio'] .studio-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.star {
  position: absolute;
  display: block;
  background: var(--stars) no-repeat;
  background-origin: padding-box;
  animation: star-twinkle 18s ease-in-out infinite;
}
.star-lg {
  width: min(220px, 18vw);
  height: min(200px, 16vw);
  left: clamp(72px, 8vw, 140px);
  top: clamp(36px, 5vw, 72px);
  background-size: 190% 190%;
  background-position: 100% 36%;
  animation-duration: 18s;
}
.star-sm {
  display: none;
}
.star-solo {
  width: min(72px, 7.5vw);
  height: min(72px, 7.5vw);
  right: clamp(72px, 8vw, 140px);
  top: clamp(64px, 10vw, 120px);
  left: auto;
  background-size: 780%;
  background-position: 90.6% 73%;
  animation-duration: 22s;
  animation-delay: 5s;
}

.studio-hero > *:not(.star-field),
.profile-section > *:not(.star-field),
.skills-section > *:not(.star-field),
.work-section > *:not(.star-field),
.studio-about > *:not(.star-field),
.contact-section > *:not(.star-field) {
  position: relative;
  z-index: 1;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  background: url('/assets/grain.svg');
  background-size: 190px;
  opacity: 0.12;
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 6px;
}
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 400; }

.skip {
  position: fixed;
  top: -80px;
  background: var(--black);
  padding: 12px;
  z-index: 100;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0;
  padding: 22px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--gray) url('/assets/identity/back.png') center / cover no-repeat;
  isolation: isolate;
}
.site-header:after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/grain.svg');
  background-size: 190px;
  opacity: 0.38;
  mix-blend-mode: multiply;
}
.site-header > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand > img { display: none; }
.brand > span { font-size: 36px; line-height: 1; }
.brand-dot { font-size: 14px; margin-left: 3px; }
.brand small {
  font: 11px/1.3 Quera, Arial, sans-serif;
  letter-spacing: 0.14em;
  display: block;
  margin-top: 7px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--cream);
  border-radius: 999px;
  padding: 10px 16px;
  font: 15px Quera, Arial, sans-serif;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.contact-nav {
  border: 1px solid var(--line);
  padding: 13px 20px;
  border-radius: 30px;
}

.eyebrow, .section-caption {
  font: 13px/1.4 Quera, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--gray);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.boot img {
  width: min(220px, 42vw);
  animation: boot-spin 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.boot.is-out {
  transform: translateX(100%);
  pointer-events: none;
  opacity: 0;
}
@keyframes boot-spin {
  from { transform: rotate(-180deg) scale(0.6); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

.studio-hero {
  padding: 28px 5% 10px;
  position: relative;
  overflow: visible;
  justify-content: space-between;
  min-height: calc(100svh - 92px);
}

.hero-kicker { text-align: center; font-size: 16px; }

.hero-composition {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1fr;
  align-items: center;
  flex: 1;
  min-height: 0;
  gap: 20px;
}

.hero-logo {
  cursor: pointer;
  overflow: visible;
  animation: breathe 4.8s ease-in-out infinite;
}
.hero-logo img,
.hero-logo svg {
  width: 100%;
  display: block;
  height: min(78vh, 860px);
  max-height: none;
  object-fit: contain;
  transform-origin: 50% 46%;
}
.hero-logo.is-spin img,
.hero-logo.is-spin svg {
  animation: logo-spin 0.55s cubic-bezier(0.18, 0.82, 0.2, 1);
}
.hero-logo:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 8px;
}
.hero-logo {
  overflow: visible;
}
.hero-logo svg {
  overflow: visible;
}
.hero-logo svg .logo-brow,
.hero-logo svg .logo-nose,
.hero-logo svg .logo-eye-left {
  transform-box: fill-box;
}
.hero-logo svg .logo-brow-left {
  transform-origin: 80% 80%;
  animation: live-brow-l 10s ease-in-out infinite;
}
.hero-logo svg .logo-brow-right {
  transform-origin: 20% 80%;
  animation: live-brow-r 10s ease-in-out infinite;
}
.hero-logo svg .logo-nose {
  transform-origin: 50% 100%;
  animation: live-nose 4.2s ease-in-out infinite;
}
.hero-logo svg .logo-eye-left {
  transform-origin: 50% 50%;
  animation: live-blink 5.6s ease-in-out infinite;
}

.hero-door {
  position: relative;
  padding: 40px 0;
  z-index: 1;
}
.hero-door .label {
  font-size: clamp(48px, 6.2vw, 104px);
  display: block;
  letter-spacing: -0.05em;
}
.hero-door .by {
  display: block;
  font-size: 18px;
  margin-top: 14px;
  color: var(--black);
}
.hero-door .arrow {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--cream);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin-top: 28px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hero-door:hover .arrow,
.hero-door:focus-visible .arrow {
  background: var(--red);
  border-color: var(--red);
}
.hero-door.right { text-align: right; }

.hero-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 17px;
}
.hero-footer p { max-width: 520px; line-height: 1.55; margin: 0; }

.profile-section {
  padding: 70px 5%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8vw;
  position: relative;
}

.profile-intro { position: relative; }
.profile-intro h1 {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(60px, 7vw, 112px);
  font-weight: 700;
  color: var(--black);
  margin: 20px 0 25px;
  letter-spacing: 0.01em;
}
.profile-intro h1 small {
  display: block;
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  color: var(--cream);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-top: 18px;
}
.profile-intro p {
  font-size: 22px;
  line-height: 1.65;
  max-width: 620px;
}
.profile-intro .pill { margin-top: 20px; }
.resume-aside {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.pill {
  display: inline-block;
  border: 1px solid var(--cream);
  border-radius: 30px;
  padding: 15px 24px;
  font-size: 16px;
}
.pill:hover { background: var(--red); border-color: var(--red); }

.resume {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 6px 0 0 36px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.resume-kicker {
  margin: 0;
  font: 15px/1.4 Quera, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.resume-board {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.resume-practice,
.resume-path,
.resume-kit {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.resume-kit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.resume-group h2 {
  font-size: 32px;
  line-height: 1.2;
  color: var(--black);
  margin: 0 0 16px;
}
.resume-group.is-timeline {
  position: relative;
}
.resume-group.is-timeline:before {
  content: '';
  position: absolute;
  left: 0;
  top: 42px;
  bottom: 8px;
  width: 2px;
  background: var(--red);
  opacity: 0.85;
}
.resume-entry {
  padding: 0 0 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.resume-entry:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.resume-entry h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 400;
}
.resume-entry p {
  font: 18px / 1.55 Quera, Arial, sans-serif;
  color: #fff0dc;
  margin: 0;
}
.resume-entry time {
  font: 16px Quera, Arial, sans-serif;
  display: block;
  margin-top: 8px;
  opacity: 0.75;
}
.resume-entry.is-job {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 8px 18px;
  margin: 0;
  padding: 16px 0 16px 22px;
  border-bottom: 1px solid var(--line);
}
.resume-entry.is-job time {
  margin: 4px 0 0;
  font: 14px/1.45 Quera, Arial, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.resume-entry.is-job:last-child { border-bottom: 0; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font: 16px/1.2 Quera, Arial, sans-serif;
}
.chip.is-tool img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
  background: #111;
}

.skills-section {
  padding: 60px 5% 80px;
  border-top: 1px solid var(--line);
  position: relative;
}

.section-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.skills-title { font-size: clamp(36px, 4.2vw, 56px); max-width: 640px; }

.skill-tree {
  position: relative;
  min-height: 620px;
  margin-top: 8px;
}
.skill-tree svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.skill-tree path {
  stroke: var(--cream);
  stroke-width: 1.4;
  fill: none;
  opacity: 0.62;
  stroke-linecap: round;
}
.skill-tree path.is-twig {
  stroke-width: 1;
  opacity: 0.4;
}

.portrait {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 240px;
  border-radius: 110px 110px 12px 12px;
  border: 1px solid var(--cream);
  background: var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 3;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initial { font-size: 70px; color: var(--cream); }

.skill-branch {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.skill-node,
.skill-twig {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  pointer-events: auto;
}
.skill-node {
  padding: 10px 16px;
  background: color-mix(in srgb, var(--gray) 88%, transparent);
  font-size: clamp(16px, 1.7vw, 24px);
  border-bottom: 2px solid var(--red);
  max-width: 200px;
}
.skill-twig {
  padding: 4px 8px;
  font: 13px Quera, Arial, sans-serif;
  color: var(--cream);
  opacity: 0.9;
  max-width: 140px;
  white-space: nowrap;
}

.portrait-caption {
  position: absolute;
  top: calc(50% + 158px);
  left: 50%;
  transform: translateX(-50%);
  font: 14px Quera, Arial, sans-serif;
  white-space: nowrap;
  opacity: 0.7;
  z-index: 3;
}

.work-section {
  padding: 60px 5% 100px;
  overflow: visible;
  border-top: 1px solid var(--line);
  position: relative;
}
.work-section.is-catalog {
  flex: 1;
  min-height: calc(100svh - 160px);
}
body.is-single .work-detail {
  min-height: min(70vh, 760px);
  align-items: stretch;
}
.work-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 22px 0 0;
}
.work-specs .spec { margin: 0; }
.work-specs dt {
  font: 11px Quera, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.work-specs dd { margin: 0; font-size: 15px; }
.work-credits { font-size: 14px; line-height: 1.5; opacity: 0.8; margin-top: 16px; }
.work-kicker { font-size: 16px; opacity: 0.8; margin: 0 0 12px; }

.orbit-scene {
  --orbit-r: min(30vw, 380px);
  position: relative;
  height: calc(var(--orbit-r) * 2 + 40px);
  display: grid;
  place-items: center;
  width: 100vw;
  max-width: none;
  margin: 10px calc(50% - 50vw) 30px;
  overflow: visible;
}

.side-mark {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: min(28vw, 400px);
  aspect-ratio: 720 / 920;
  height: auto;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.side-mark img,
.side-mark svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}
.side-mark.left {
  left: calc(50% - 50vw);
}
.side-mark.left img,
.side-mark.left svg {
  object-position: left center;
}
.side-mark.right {
  right: calc(50% - 50vw);
}
.side-mark.right img,
.side-mark.right svg {
  object-position: right center;
}

.orbit {
  width: calc(var(--orbit-r) * 2);
  height: calc(var(--orbit-r) * 2);
  position: relative;
  z-index: 5;
  --angle: 0deg;
  animation: orbit-turn 48s linear infinite;
}

.orbit.is-paused,
.orbit.is-paused .orbit-item {
  animation-play-state: paused;
}

@keyframes orbit-turn {
  to { --angle: 360deg; }
}

.orbit-center {
  position: absolute;
  inset: 32%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: none;
  z-index: 8;
  pointer-events: none;
  padding: 8px;
}
.orbit-center h2 {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 0.95;
  margin: 12px 0 10px;
  letter-spacing: 0.01em;
}
.works-heading,
.orbit-center .works-heading a {
  color: inherit;
  pointer-events: auto;
  text-decoration: none;
}
.works-heading a:hover { color: var(--red); }
.works-cue {
  pointer-events: auto;
  display: inline-block;
  margin: 0 0 18px;
  font: 16px/1.3 Quera, Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--cream);
  padding-bottom: 4px;
}
.works-cue:hover { color: var(--red); border-bottom-color: var(--red); }
.works-back {
  font: 15px Quera, Arial, sans-serif;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-bottom: 14px;
}
.works-back:hover { color: var(--red); }
body.is-single .work-toolbar,
body.is-single .work-grid { display: none; }

.red-dot {
  width: 9px;
  height: 9px;
  background: var(--red);
  border-radius: 50%;
}

.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  --card-w: min(248px, 24vw);
  --card-h: min(308px, 30vw);
  width: var(--card-w);
  height: var(--card-h);
  margin: calc(var(--card-h) / -2) 0 0 calc(var(--card-w) / -2);
  --spin: -14deg;
  transform: rotate(calc(var(--position) + var(--angle))) translateY(calc(var(--orbit-r) * -1)) rotate(var(--spin));
  animation: card-spin 11s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  border: 1px solid var(--cream);
  background: var(--cream);
  padding: min(10px, 1.4vw);
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 14px 28px #0003;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  z-index: 6;
}
.orbit-item:hover { box-shadow: 0 22px 40px #0004; z-index: 7; }
.orbit-item img {
  width: 100%;
  height: min(236px, 22vw);
  object-fit: cover;
  display: block;
  border-radius: 22px;
}
.orbit-item span {
  display: block;
  font-size: 16px;
  color: var(--black);
  padding: 12px 4px 4px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.orbit-item.active { outline: 3px solid var(--red); outline-offset: 6px; }
.orbit-item .tile-placeholder {
  height: min(236px, 22vw);
  background: var(--black);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 42px;
  border-radius: 22px;
}

@keyframes card-spin {
  0% { --spin: -18deg; }
  50% { --spin: 20deg; }
  100% { --spin: -18deg; }
}

.work-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 15px;
}
.filters button.active {
  background: var(--cream);
  color: var(--black);
}

#work-count {
  font: 14px Quera, Arial, sans-serif;
  white-space: nowrap;
}

.work-detail {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  background: var(--black);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}
.feature-media {
  min-height: 380px;
  display: grid;
  place-items: center;
  background: #252525;
}
.feature-media img,
.feature-media video {
  width: 100%;
  max-height: 580px;
  object-fit: contain;
  display: block;
}
.feature-info { padding: 40px; align-self: center; }
.feature-info h3 {
  font-family: Impact, Haettenschweiler, 'Arial Black', sans-serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.12;
  margin: 18px 0;
  letter-spacing: 0.01em;
}
.feature-info p { font-size: 17px; line-height: 1.6; opacity: 0.85; }
.feature-info small {
  font: 13px Quera, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.feature-info a { display: inline-block; margin-top: 18px; font-size: 16px; text-decoration: underline; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  padding: 0;
  background: var(--cream);
  border: 0;
  border-radius: 22px;
  text-align: left;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: block;
  font: inherit;
  cursor: pointer;
}
.work-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}
.work-card:hover img { transform: scale(1.04); }
.work-card .card-caption {
  padding: 16px;
  color: var(--black);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  gap: 15px;
}
.work-card.active { outline: 2px solid var(--red); outline-offset: 4px; }

.tile-placeholder {
  background: #171717;
  color: var(--cream);
  display: grid;
  place-items: center;
  height: 270px;
  font-size: 60px;
}

.studio-about {
  padding: 90px 7%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8vw;
  position: relative;
  background: color-mix(in srgb, var(--panel) 42%, transparent);
}
.studio-about h2 { margin-top: 25px; }
.studio-about p { max-width: 680px; line-height: 1.7; font-size: 20px; }
.about-art {
  display: grid;
  place-items: center;
  position: relative;
}
.about-art img,
.about-art svg { width: 100%; position: relative; z-index: 1; }

.contact-section {
  padding: 100px 7%;
  background: var(--cream);
  color: var(--black);
  position: relative;
}
.contact-section h2 {
  font-size: clamp(60px, 9vw, 140px);
  margin: 35px 0 45px;
}
.contact-bottom {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  border-top: 1px solid #0003;
  padding-top: 30px;
}
.contact-bottom p { max-width: 440px; line-height: 1.55; font-size: 18px; }
.contact-person { display: block; padding: 12px 0; font-size: 20px; }
.contact-person small {
  display: block;
  font: 13px Quera, Arial, sans-serif;
  color: #696969;
  margin-bottom: 5px;
}
.contact-person:hover { color: var(--red); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 5%;
  background: var(--black);
  font: 14px Quera, Arial, sans-serif;
}
footer > a:first-child { font-family: Quera; font-size: 18px; }

#work-status { font-size: 14px; }
.load-status { padding: 100px 5%; font-size: 22px; }

@keyframes star-twinkle {
  0%, 100% { opacity: 0.42; }
  12% { opacity: 1; }
  22% { opacity: 0.12; }
  34% { opacity: 0.95; }
  55% { opacity: 0.38; }
  70% { opacity: 0.8; }
}

@keyframes breathe {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-30px); }
}

@keyframes live-brow-l {
  0%, 16%, 100% { transform: rotate(0deg) translateY(0); }
  26%, 38% { transform: rotate(-10deg) translateY(-7px); }
  50%, 66% { transform: rotate(16deg) translateY(8px); }
}
@keyframes live-brow-r {
  0%, 16%, 100% { transform: rotate(0deg) translateY(0); }
  26%, 38% { transform: rotate(10deg) translateY(-7px); }
  50%, 66% { transform: rotate(-16deg) translateY(8px); }
}
@keyframes live-nose {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes live-blink {
  0%, 88%, 96%, 100% { transform: scaleY(1); }
  91%, 93% { transform: scaleY(0.12); }
}

@keyframes logo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.type-cursor {
  display: inline-block;
  width: 0.07em;
  height: 0.82em;
  margin-left: 3px;
  background: var(--red);
  vertical-align: -0.06em;
  animation: type-blink 0.55s step-end infinite;
}
.will-type {
  min-height: 1.2em;
}
.studio-about h2.will-type,
.contact-section h2.will-type {
  min-height: 2.2em;
}

@keyframes type-blink {
  50% { opacity: 0; }
}

@media (min-width: 1500px) {
  .studio-hero, .profile-section, .skills-section, .work-section {
    padding-left: max(5%, calc((100vw - 1600px) / 2));
    padding-right: max(5%, calc((100vw - 1600px) / 2));
  }
}

@media (max-width: 1100px) {
  .orbit-scene {
    --orbit-r: min(32vw, 340px);
  }
  .orbit-item {
    --card-w: min(200px, 20vw);
    --card-h: min(248px, 25vw);
  }
  .orbit-item img,
  .orbit-item .tile-placeholder {
    height: min(188px, 18vw);
  }
}

@media (max-width: 800px) {
  .site-header {
    padding: 16px 5%;
    flex-wrap: wrap;
  }
  .nav-toggle { display: inline-flex; }
  #site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0 8px;
  }
  body.nav-open #site-nav { display: flex; }
  .brand > span { font-size: 25px; }
  .brand small { display: none; }
  .contact-nav { padding: 10px; }
  .hero-composition {
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero-logo { grid-column: 1 / 3; grid-row: 1; }
  .hero-logo img, .hero-logo svg { height: min(48vh, 420px); }
  .studio-hero { min-height: 0; }
  .resume-aside { grid-template-columns: 1fr; }
  .work-specs { grid-template-columns: 1fr; }
  .hero-door { padding: 15px 10px 35px; }
  .hero-door .label { font-size: 42px; }
  .hero-footer { gap: 30px; font-size: 16px; }
  .hero-footer p { max-width: 320px; }
  .profile-section { grid-template-columns: 1fr; gap: 45px; padding-top: 45px; }
  .profile-intro h1 { font-size: 64px; }
  .profile-intro p { font-size: 18px; }
  .skill-tree { min-height: 520px; }
  .portrait { width: 125px; height: 165px; }
  .portrait-caption { top: calc(50% + 100px); }
  .skill-node { font-size: 15px; padding: 9px 6px; max-width: 130px; }
  .skill-twig { display: none; }
  .skill-tree path.is-twig { display: none; }
  .skills-title { font-size: 36px; }
  .orbit-scene {
    --orbit-r: min(42vw, 200px);
    width: 100%;
    margin: 8px 0 24px;
    height: calc(var(--orbit-r) * 2 + 72px);
  }
  .orbit-center {
    inset: 20%;
    z-index: 8;
  }
  .orbit-center h2 {
    font-size: clamp(28px, 8vw, 40px);
    margin: 8px 0 6px;
  }
  .works-cue {
    font-size: 12px;
    letter-spacing: 0.06em;
    margin: 0;
    max-width: 16ch;
  }
  .orbit-item {
    --card-w: min(112px, 28vw);
    --card-h: min(140px, 36vw);
    border-radius: 18px;
    padding: 6px;
    z-index: 4;
  }
  .orbit-item img,
  .orbit-item .tile-placeholder {
    height: min(100px, 26vw);
    border-radius: 12px;
  }
  .orbit-item span { font-size: 11px; padding: 6px 2px 2px; }
  .side-mark { display: none; }
  .work-detail { grid-template-columns: 1fr; }
  .feature-info { padding: 25px; }
  .feature-media { min-height: 220px; }
  .feature-info h3 { font-size: 30px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .work-card img, .tile-placeholder { height: 190px; }
  .studio-about { grid-template-columns: 1fr; padding: 65px 6%; }
  .about-art img { max-height: 300px; object-fit: contain; }
  .contact-section { padding: 65px 6%; }
  .contact-bottom { flex-direction: column; gap: 15px; }
  .work-toolbar { align-items: flex-start; }
  footer { flex-wrap: wrap; }
  footer span:nth-child(2) { display: none; }
}

@media (max-width: 420px) {
  .orbit-scene { --orbit-r: min(44vw, 168px); }
  .orbit-center { inset: 16%; }
  .orbit-center h2 { font-size: clamp(24px, 9vw, 32px); }
  .orbit-item {
    --card-w: min(96px, 30vw);
    --card-h: min(120px, 38vw);
  }
  .orbit-item img,
  .orbit-item .tile-placeholder { height: min(86px, 27vw); }
  .work-card img, .tile-placeholder { height: 150px; }
  .hero-logo img, .hero-logo svg { height: 300px; }
  .resume {
    padding-left: 0;
    border-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .resume-board,
  .resume-kit { grid-template-columns: 1fr; }
  .resume-entry.is-job { grid-template-columns: 1fr; padding-left: 16px; }
  .profile-intro h1 { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.boot):not(.boot img):not(.boot.is-out),
  *:not(.boot):not(.boot img):before,
  *:not(.boot):not(.boot img):after {
    animation: none !important;
    transition: none !important;
  }
  .boot.is-out { opacity: 0; }
}
