:root {
  --ink: #11110f;
  --paper: #f1f0eb;
  --red: #ff4b35;
  --cyan: #28c8d4;
  --yellow: #f2d52c;
  --line: rgba(17, 17, 15, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}
body.motion-off *, body.motion-off *::before, body.motion-off *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  scroll-behavior: auto !important;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section-pad { padding: 120px clamp(24px, 6vw, 96px); }

.cursor {
  position: fixed; z-index: 100; left: 0; top: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red); pointer-events: none;
  transform: translate(-50%, -50%); mix-blend-mode: multiply;
  transition: width .2s, height .2s, opacity .2s;
}
.cursor.is-hover { width: 42px; height: 42px; opacity: .5; }
.progress { position: fixed; z-index: 101; top: 0; left: 0; width: 100%; height: 3px; }
.progress span { display: block; width: 100%; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }

.site-header {
  position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 76px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(20px, 4vw, 64px); color: white; mix-blend-mode: difference;
}
.wordmark { font-weight: 900; font-size: 18px; width: max-content; }
.wordmark span { font-weight: 400; opacity: .65; }
.site-header nav { display: flex; gap: 32px; font-size: 12px; text-transform: uppercase; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.site-header nav a:hover::after { transform: scaleX(1); }
.motion-toggle {
  justify-self: end; display: flex; align-items: center; gap: 8px; border: 0;
  padding: 8px 0; color: inherit; background: none; cursor: pointer; font-size: 11px; text-transform: uppercase;
}
.motion-dot { width: 7px; height: 7px; border-radius: 50%; background: #62ff78; box-shadow: 0 0 0 3px rgba(98,255,120,.2); }

.hero { position: relative; min-height: 92svh; color: white; overflow: hidden; background: #222; }
.hero-media, .hero-scrim { position: absolute; inset: 0; }
.hero-media { transform: scale(1.04); will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.92) contrast(1.03); }
.hero-scrim { background: linear-gradient(90deg, rgba(10,10,8,.76) 0%, rgba(10,10,8,.18) 48%, rgba(10,10,8,.05) 100%); }
.hero-copy { position: relative; z-index: 2; min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding: 92px clamp(24px, 6vw, 96px) 56px; }
.eyebrow, .section-kicker { margin: 0 0 28px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.eyebrow::before, .section-kicker::before { content: ""; display: inline-block; width: 38px; height: 1px; margin-right: 12px; background: currentColor; vertical-align: middle; }
.split-title { margin: 0; max-width: 960px; font-size: clamp(64px, 12.5vw, 190px); line-height: .73; font-weight: 900; text-transform: uppercase; }
.title-line { display: block; transform: translateY(110%); animation: title-in 1s cubic-bezier(.2,.8,.2,1) .15s forwards; }
.title-line-right { padding-left: clamp(20px, 9vw, 140px); animation-delay: .28s; }
@keyframes title-in { to { transform: translateY(0); } }
.hero-bottom { display: flex; align-items: end; gap: 34px; margin-top: clamp(46px, 8vh, 100px); }
.hero-bottom p { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(18px, 2vw, 28px); line-height: 1.55; }
.round-link { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; overflow: hidden; }
.round-link span { animation: arrow-loop 1.8s ease-in-out infinite; }
@keyframes arrow-loop { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
.hero-index { position: absolute; z-index: 2; right: clamp(24px, 4vw, 64px); bottom: 28px; margin: 0; font-size: 10px; writing-mode: vertical-rl; }

.ticker { height: 8svh; min-height: 58px; display: flex; align-items: center; overflow: hidden; background: var(--yellow); border-bottom: 1px solid var(--ink); }
.ticker-track { display: flex; align-items: center; flex-shrink: 0; gap: 28px; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { font-size: 15px; font-weight: 900; white-space: nowrap; }
.ticker i { width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

.manifesto { background: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .75fr); gap: clamp(40px, 9vw, 140px); align-items: end; }
.manifesto h2, .work-heading h2, .contact h2 { margin: 0; font-size: clamp(42px, 7vw, 106px); line-height: .98; font-weight: 800; }
.manifesto h2 em { color: var(--red); font-family: Georgia, "Yu Mincho", serif; font-weight: 400; }
.manifesto h2 .nobreak { white-space: nowrap; }
.manifesto-copy { max-width: 520px; font-size: 17px; line-height: 2; }
.manifesto-copy p { margin: 0 0 20px; }
.manifesto-copy small { display: block; padding-top: 12px; border-top: 1px solid var(--line); color: #666; font-size: 10px; line-height: 1.6; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 110px; border-top: 1px solid var(--ink); }
.principle { min-height: 190px; padding: 24px 22px 20px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 22px; }
.principle:last-child { border-right: 0; }
.principle strong { display: block; margin-bottom: 48px; color: var(--red); font-size: 11px; }
.principle span { font-size: 22px; font-weight: 800; }
.principle p { margin: 8px 0 0; color: #555; font-size: 13px; }

.work { background: var(--ink); color: var(--paper); }
.work-heading { min-height: 74vh; display: flex; flex-direction: column; justify-content: space-between; }
.work-heading h2 span { color: var(--cyan); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.project {
  position: relative; min-height: 92svh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .55fr);
  border-top: 1px solid rgba(255,255,255,.25); overflow: hidden;
}
.project-no { position: absolute; z-index: 2; top: 34px; left: clamp(24px, 4vw, 64px); color: rgba(255,255,255,.7); font-size: 12px; }
.project-stage { position: relative; min-height: 620px; display: grid; place-items: center; overflow: hidden; }
.project-info { align-self: end; padding: 64px clamp(24px, 5vw, 72px) 76px; }
.project-info > p:first-child { margin: 0 0 20px; font-size: 10px; text-transform: uppercase; }
.project-info h3 { margin: 0; font-size: clamp(52px, 6.2vw, 92px); line-height: .85; overflow-wrap: anywhere; }
.project-description { margin: 38px 0; font-family: Georgia, "Yu Mincho", serif; font-size: 16px; line-height: 1.9; }
.project-info ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.project-info li { padding: 8px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; font-size: 10px; text-transform: uppercase; }
.project-coral { background: var(--red); }
.project-cyan { background: #096d75; }
.project-yellow { background: var(--yellow); color: var(--ink); }
.project-yellow .project-no { color: rgba(17,17,15,.65); }
.project-yellow .project-info li { border-color: rgba(17,17,15,.4); }

.planet { position: relative; width: min(42vw, 520px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffe2a0 0 7%, #6aa86b 8% 17%, #203f3c 18% 42%, #101b28 68%); box-shadow: inset -45px -35px 70px rgba(0,0,0,.7), 0 40px 90px rgba(0,0,0,.25); animation: float 5s ease-in-out infinite; }
.planet::before, .planet::after { content: ""; position: absolute; inset: 47% -20%; border: 2px solid rgba(255,255,255,.62); border-radius: 50%; transform: rotate(-13deg); }
.planet::after { inset: 45% -28%; border-color: rgba(255,223,87,.75); transform: rotate(17deg); }
.planet span { position: absolute; width: 12px; aspect-ratio: 1; border-radius: 50%; background: white; box-shadow: 0 0 20px white; }
.planet span:nth-child(1) { top: 8%; left: -8%; }.planet span:nth-child(2) { right: -20%; top: 55%; }.planet span:nth-child(3) { bottom: -9%; left: 31%; }
@keyframes float { 50% { transform: translateY(-22px) rotate(2deg); } }
.studio-stage { perspective: 900px; }
.code-window { position: relative; z-index: 2; width: min(48vw, 580px); aspect-ratio: 1.28; border: 1px solid rgba(255,255,255,.55); background: rgba(3,18,20,.72); box-shadow: 18px 22px 0 var(--cyan); transform: rotateX(6deg) rotateY(-8deg); animation: window-drift 7s ease-in-out infinite; }
.code-window > span { position: absolute; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.code-window > span:nth-child(1) { left: 20px; }.code-window > span:nth-child(2) { left: 38px; background: var(--yellow); }.code-window > span:nth-child(3) { left: 56px; background: var(--cyan); }
.code-window b { position: absolute; left: 9%; bottom: 9%; color: white; font-size: clamp(32px, 5vw, 72px); line-height: .8; }
@keyframes window-drift { 50% { transform: rotateX(-2deg) rotateY(7deg) translateY(-14px); } }
.orbit { position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; animation: spin 12s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 48%; left: -6px; width: 12px; height: 12px; background: var(--yellow); }
.orbit-b { width: 48%; animation-direction: reverse; animation-duration: 8s; transform: rotate(70deg); }
@keyframes spin { to { transform: rotate(360deg); } }
.learning-stage { background-image: linear-gradient(rgba(17,17,15,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(17,17,15,.12) 1px, transparent 1px); background-size: 48px 48px; }
.tile-grid { position: absolute; width: min(48vw, 600px); aspect-ratio: 1; background: conic-gradient(from 45deg, var(--red), var(--cyan), white, var(--red)); clip-path: polygon(50% 0, 100% 25%, 86% 82%, 50% 100%, 14% 82%, 0 25%); animation: tile-turn 10s ease-in-out infinite alternate; }
@keyframes tile-turn { to { transform: rotate(16deg) scale(.86); filter: hue-rotate(40deg); } }
.question-mark { position: relative; z-index: 2; font-family: Georgia, serif; font-size: clamp(170px, 28vw, 420px); font-weight: 900; color: var(--ink); transform: rotate(-8deg); animation: question 3.2s ease-in-out infinite; }
@keyframes question { 50% { transform: rotate(7deg) scale(1.04); } }

.capabilities { background: var(--paper); }
.capability-row { display: grid; grid-template-columns: 1fr 1.4fr 40px; gap: 28px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--ink); transition: padding .25s, color .25s, background .25s; }
.capability-row:last-child { border-bottom: 1px solid var(--ink); }
.capability-row:hover { padding-left: 18px; padding-right: 18px; color: white; background: var(--ink); }
.capability-row span { font-size: 13px; text-transform: uppercase; }
.capability-row b { font-size: clamp(24px, 3.5vw, 52px); }
.capability-row i { justify-self: end; color: var(--red); font-size: 12px; font-style: normal; }

.contact { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px clamp(24px, 6vw, 96px) 32px; color: white; background: #181816; overflow: hidden; }
.contact-noise { position: absolute; inset: 0; opacity: .11; background-image: url("assets/hero-studio.png"); background-size: cover; background-position: center; filter: grayscale(1) contrast(2); mix-blend-mode: screen; }
.contact > *:not(.contact-noise) { position: relative; z-index: 1; }
.contact h2 span { color: var(--red); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.contact-link { display: flex; justify-content: space-between; align-items: center; width: min(100%, 780px); margin-top: 80px; padding: 20px 0; border-bottom: 2px solid white; font-size: clamp(22px, 4vw, 58px); overflow-wrap: anywhere; }
.contact-link span { color: var(--yellow); }
.contact-socials { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 40px; font-size: 13px; text-transform: uppercase; }
.contact-socials a { position: relative; padding-bottom: 4px; }
.contact-socials a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.contact-socials a:hover::after { transform: scaleX(1); }
.contact footer { display: flex; justify-content: space-between; gap: 24px; margin-top: auto; padding-top: 100px; font-size: 10px; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .cursor { display: none; }
  .site-header { height: 64px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .motion-label { display: none; }
  .hero { min-height: 88svh; }
  .hero-copy { min-height: 88svh; padding-top: 90px; }
  .hero-media img { object-position: 62% center; }
  .hero-scrim { background: linear-gradient(90deg, rgba(10,10,8,.86), rgba(10,10,8,.18)); }
  .split-title { max-width: 100%; font-size: clamp(52px, 17vw, 84px); line-height: .8; }
  .title-line-right { padding-left: 0; }
  .ticker { height: 12svh; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto h2, .work-heading h2, .contact h2 { font-size: clamp(40px, 12vw, 72px); }
  .principles { grid-template-columns: 1fr; margin-top: 72px; }
  .principle, .principle + .principle { min-height: 0; padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle strong { margin-bottom: 20px; }
  .work-heading { min-height: 60vh; }
  .project { min-height: auto; grid-template-columns: 1fr; }
  .project-stage { min-height: 58svh; }
  .project-info { padding-top: 24px; }
  .planet { width: 68vw; }
  .code-window, .tile-grid { width: 72vw; }
  .capability-row { grid-template-columns: 1fr 30px; gap: 10px; }
  .capability-row span { grid-column: 1 / -1; }
  .capability-row b { font-size: 23px; }
  .contact footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
