:root {
  --ink: #050a16;
  --paper: #eef4ff;
  --dim: rgba(226, 236, 255, 0.72);
  --accent: 150, 190, 255;
  --display: "Oswald", "Arial Narrow", "Helvetica Neue", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
i, em { font-style: normal; }
::selection { background: rgb(var(--accent)); color: var(--ink); }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 4px; border-radius: 4px; }

/* Light field */
#light {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
  background: radial-gradient(90% 70% at 50% -10%, rgba(80, 130, 255, 0.4), transparent 70%), var(--ink);
}
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
main, .foot { position: relative; z-index: 2; }

/* The W mark, wherever it appears */
.nav__w, .marquee__w, .intro__mark, .lockup__mark { display: block; overflow: visible; }
.nav__w path, .marquee__w path { fill: currentColor; }

/* Intro: the mark is drawn, then filled */
.intro {
  position: fixed; inset: 0; z-index: 50; background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.intro.is-done { opacity: 0; visibility: hidden; }
.intro__mark { width: min(240px, 46vw); }
.intro__mark path {
  fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s ease-in-out forwards, fillin 0.6s ease 1.3s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }

/* Cursor */
.cursor { position: fixed; top: 0; left: 0; z-index: 60; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor span {
  display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: #fff; transition: transform 0.35s var(--ease);
}
.cursor.is-hot span { transform: scale(4.2); }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad) 34px;
  background: linear-gradient(rgba(5, 10, 22, 0.92), rgba(5, 10, 22, 0.6) 55%, rgba(5, 10, 22, 0));
}
.nav__mark, .foot__brand { display: flex; align-items: center; gap: 12px; }
.nav__mark span { font-family: var(--display); font-weight: 500; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; }
.nav__w { width: 30px; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); font-size: 15px; align-items: center; }
.nav__links a { padding: 6px 0; opacity: 0.8; transition: opacity 0.3s; }
.nav__links a:hover { opacity: 1; }
.nav__cta { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 8px 16px !important; font-weight: 600; opacity: 1 !important; transition: background 0.3s; }
.nav__cta:hover { background: rgb(var(--accent)); }
@media (max-width: 640px) { .nav__links a:not(.nav__cta) { display: none; } .nav__mark span { font-size: 14px; } }

/* Rail: the four works by name */
.rail {
  position: fixed; right: calc(var(--pad) / 2.4); top: 50%; transform: translateY(-50%);
  z-index: 15; display: flex; flex-direction: column; gap: 10px; text-align: right;
  font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.6s;
}
.rail.is-on { opacity: 1; pointer-events: auto; }
.rail a { color: var(--dim); opacity: 0.6; transition: opacity 0.4s, color 0.4s, transform 0.5s var(--ease); }
.rail a.is-on { color: #fff; opacity: 1; font-weight: 600; transform: translateX(-8px); }
@media (max-width: 1100px) { .rail { display: none; } }

/* Shared type */
.label { font-size: 15px; font-weight: 500; color: rgb(var(--accent)); }
h2 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 150px); line-height: 0.98; letter-spacing: 0.005em;
}

.rv { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* Hero */
.hero { min-height: 100svh; padding: 96px var(--pad) 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 4vh; }
.lockup { --w: min(62vw, 74svh, 760px); width: var(--w); margin-top: 2vh; display: block; font-weight: 400; }
.lockup__mark { width: 100%; filter: drop-shadow(0 0 60px rgba(120, 170, 255, 0.55)); transition: transform 0.3s ease-out; }
.lockup__mark path {
  fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.2;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
body.is-ready .lockup__mark path { animation: draw 1.6s ease-in-out forwards, fillin 0.9s ease 1.2s forwards; }
.lockup__name, .lockup__studios { display: block; font-family: var(--display); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.lockup__name {
  font-weight: 500; font-size: calc(var(--w) * 0.1215); letter-spacing: 0.04em;
  margin-top: calc(var(--w) * 0.07); text-align: center;
  opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease) 1.3s, transform 1s var(--ease) 1.3s;
}
body.is-ready .lockup__name { opacity: 1; transform: none; }
/* Studios: same condensed gothic, light weight, set to the width of the name */
.lockup__studios {
  display: flex; justify-content: space-between;
  font-weight: 300; font-size: calc(var(--w) * 0.058); margin-top: calc(var(--w) * 0.035);
  padding: 0 calc(var(--w) * 0.19); color: rgb(var(--accent));
}
.lockup__studios i { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
body.is-ready .lockup__studios i { opacity: 1; transform: none; }
.lockup__studios i:nth-child(1) { transition-delay: 1.7s; } .lockup__studios i:nth-child(2) { transition-delay: 1.76s; }
.lockup__studios i:nth-child(3) { transition-delay: 1.82s; } .lockup__studios i:nth-child(4) { transition-delay: 1.88s; }
.lockup__studios i:nth-child(5) { transition-delay: 1.94s; } .lockup__studios i:nth-child(6) { transition-delay: 2s; }
.lockup__studios i:nth-child(7) { transition-delay: 2.06s; }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; }
.hero__lede { max-width: 34ch; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.35; }
.scrollcue { font-size: 14px; color: var(--dim); white-space: nowrap; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(6px); } }
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: flex-end; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 5vh; padding-bottom: 2vh; max-width: 36ch; }
}

/* Mission */
.mission { padding: 22vh var(--pad) 14vh; }
.mission__text {
  font-weight: 500; font-size: clamp(30px, 5vw, 80px); line-height: 1.1; letter-spacing: -0.03em;
  max-width: 1500px; margin: 4vh 0 12vh;
}
.mission__text .w { opacity: 0.16; transition: opacity 0.5s, color 0.5s, text-shadow 0.5s; }
.mission__text .w.is-lit { opacity: 1; }
.mission__text .w.is-key.is-lit { color: rgb(var(--accent)); text-shadow: 0 0 50px rgba(var(--accent), 0.5); }
.triad { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(24px, 4vw, 60px); }
.triad__item b { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: 0.02em; display: block; margin-bottom: 8px; }
.triad__item p { color: var(--dim); max-width: 32ch; }
.triad__item:nth-child(2) { transition-delay: 0.12s; margin-top: 5vh; }
.triad__item:nth-child(3) { transition-delay: 0.24s; margin-top: 10vh; }
@media (max-width: 760px) { .triad { grid-template-columns: 1fr; } .triad__item { margin-top: 0 !important; } }

/* Marquee */
.marquee { overflow: hidden; padding: 4vh 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 0.42em; width: max-content; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(64px, 12vw, 190px); line-height: 1; will-change: transform; }
.marquee__w { width: 0.62em; color: rgb(var(--accent)); flex: none; }

/* Works */
.works__head { padding: 18vh var(--pad) 4vh; }
.works__head h2 { margin-top: 3vh; }
.work {
  min-height: 100svh; padding: 12vh var(--pad);
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 6vw, 100px);
}
.work--flip .work__copy { order: 2; }

/* Each product's own lockup, set the way its own site sets it */
.lk { display: flex; align-items: center; margin: 22px 0 26px; font-size: clamp(54px, 7.6vw, 124px); line-height: 1; font-weight: 400; }
.lk--itoro { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 300; letter-spacing: -0.03em; gap: 0.3em; }
.lk--itoro .lk__glyph { height: 1.05em; width: auto; stroke-width: 0.8; overflow: visible; }
.lk--makairos { font-family: "Shippori Mincho", serif; font-weight: 600; letter-spacing: 0.14em; color: #efe6d6; gap: 0.36em; font-size: clamp(38px, 5.6vw, 92px); }
.lk--p1523 img { height: 1em; width: auto; filter: brightness(0) invert(1); }
.lk--shepherd { font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0.02em; gap: 0.3em; font-size: clamp(38px, 5.6vw, 92px); }
.lk__tile { height: 1.15em; width: 1.15em; border-radius: 0.26em; flex: none; }

.work__tag { font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.work__desc { max-width: 46ch; color: var(--dim); font-size: clamp(16px, 1.25vw, 19px); }
.work__quote { font-size: clamp(19px, 1.6vw, 24px); font-weight: 500; line-height: 1.3; max-width: 30ch; margin-top: 28px; color: rgb(var(--accent)); }
.work__quote span { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--dim); }
.work__meta { margin: 24px 0 30px; font-size: 15px; color: var(--dim); max-width: 44ch; }
.work__copy > * { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.work.is-in .work__copy > * { opacity: 1; transform: none; }
.work.is-in .work__copy > :nth-child(2) { transition-delay: 0.08s; }
.work.is-in .work__copy > :nth-child(3) { transition-delay: 0.18s; }
.work.is-in .work__copy > :nth-child(4) { transition-delay: 0.26s; }
.work.is-in .work__copy > :nth-child(5) { transition-delay: 0.34s; }
.work.is-in .work__copy > :nth-child(6) { transition-delay: 0.42s; }
.work.is-in .work__copy > :nth-child(7) { transition-delay: 0.5s; }

.btn {
  display: inline-block; padding: 15px 24px; border-radius: 6px;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 15px;
  transition: background 0.3s, transform 1s var(--ease), opacity 1s var(--ease);
}
.btn:hover { background: rgb(var(--accent)); }

.work__art { perspective: 900px; opacity: 0; transform: scale(0.9); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.work.is-in .work__art { opacity: 1; transform: none; }
.art { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; transition: transform 0.25s ease-out; transform-style: preserve-3d; }
.amb { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.amb * { fill: none; stroke: rgb(var(--accent)); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.art__logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateZ(40px); }
.art__logo--itoro { height: 46%; overflow: visible; filter: drop-shadow(0 0 26px rgba(212, 175, 55, 0.6)); }
.art__logo--tile { width: 40%; border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px rgba(var(--accent), 0.35); }
.art__logo--p1523 { height: 42%; filter: brightness(0) invert(1) drop-shadow(0 0 30px rgba(var(--accent), 0.7)); }

.amb--itoro .ring { transform-origin: 200px 200px; animation: ring 6s linear infinite; }
.amb--itoro .ring:nth-child(2) { animation-delay: -1.5s; }
.amb--itoro .ring:nth-child(3) { animation-delay: -3s; }
.amb--itoro .ring:nth-child(4) { animation-delay: -4.5s; }
@keyframes ring { from { transform: scale(2.6); opacity: 0; } 15% { opacity: 0.9; } to { transform: scale(6.6); opacity: 0; } }
.amb--itoro .voices circle { fill: rgb(var(--accent)); stroke: none; animation: voice 3.2s ease-in-out infinite; }
@keyframes voice { 50% { opacity: 0.15; } }

.amb--makairos .orbit { stroke-dasharray: 2 7; opacity: 0.8; }
.amb--makairos .orbit--2 { transform-origin: 200px 200px; transform: rotate(62deg); opacity: 0.4; }
.amb--makairos .mote { fill: #fff; stroke: none; filter: drop-shadow(0 0 10px #fff); }

.amb--p1523 .frame { stroke-dasharray: 1200; animation: frame 9s var(--ease) infinite; opacity: 0.7; }
.amb--p1523 .frame:nth-child(2) { animation-delay: 0.5s; opacity: 0.5; }
.amb--p1523 .frame:nth-child(3) { animation-delay: 1s; opacity: 0.35; }
@keyframes frame { 0% { stroke-dashoffset: 1200; } 45%, 100% { stroke-dashoffset: 0; } }

.amb--shepherd .sheep { fill: rgba(var(--accent), 0.3); stroke: none; transition: fill 0.8s; }
.amb--shepherd .sheep.is-seen { fill: #fff; }
.amb--shepherd .staff { stroke-width: 1; opacity: 0.6; transition: all 0.9s var(--ease); }
.amb--shepherd .shepherd { fill: #fff; stroke: none; filter: drop-shadow(0 0 12px #fff); transition: all 0.9s var(--ease); }

@media (max-width: 860px) {
  .work { grid-template-columns: 1fr; padding-block: 10vh; }
  .work--flip .work__copy { order: 0; }
  .work__art { max-width: 340px; margin: 0 auto; width: 100%; }
}

.more { padding: 20vh var(--pad); }
.more__text { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(36px, 6.4vw, 104px); line-height: 1; margin-top: 3vh; max-width: 16ch; }

/* Founder */
.founder { padding: 16vh var(--pad); }
.founder__grid h2 { position: sticky; top: 110px; }
.founder__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); margin-top: 4vh; align-items: start; }
.founder__roles { font-size: clamp(20px, 1.8vw, 26px) !important; font-weight: 500; color: var(--paper) !important; }
.founder__body p { margin-bottom: 18px; max-width: 58ch; color: var(--dim); font-size: clamp(16px, 1.3vw, 20px); }
.link { display: inline-block; margin-top: 10px; font-weight: 600; color: rgb(var(--accent)); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 860px) { .founder__grid { grid-template-columns: 1fr; } .founder__grid h2 { position: static; } }

/* Partner */
.partner { min-height: 100svh; padding: 18vh var(--pad) 12vh; display: flex; flex-direction: column; justify-content: center; }
.partner__title { font-size: clamp(72px, 17vw, 300px); margin: 3vh 0 4vh; }
.partner__lede { max-width: 44ch; font-size: clamp(19px, 1.9vw, 27px); line-height: 1.35; }
.bigmail {
  align-self: flex-start; margin-top: 6vh;
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 100px); line-height: 1.1;
  color: rgb(var(--accent)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.14em;
  transition: color 0.4s, transform 0.3s ease-out, opacity 1.1s var(--ease);
}
.bigmail:hover { color: #fff; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 30px; padding: 30px var(--pad); font-size: 14px; color: var(--dim); }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .rv, .work__art, .work__copy > *, .lockup__name, .lockup__studios i { opacity: 1 !important; transform: none !important; }
  .lockup__mark path, .intro__mark path { fill-opacity: 1; stroke-dashoffset: 0; }
  .mission__text .w { opacity: 1; }
  .grain { animation: none; }
}
