@font-face {
  font-family: Hanken;
  src: url("assets/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Bricolage;
  src: url("assets/bricolage-display.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101023;
  --surface: #181831;
  --surface-raised: #212142;
  --paper: #f8f5ff;
  --stone: #e2def9;
  --muted: #b9b6d7;
  --line: #414066;
  --iris: #c6bcff;
  --lime: #d7ff87;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: Bricolage, Hanken, sans-serif;
  --gutter: clamp(1.15rem, 3vw, 3.25rem);
  --nav-height: 4.15rem;
  scroll-padding-top: calc(var(--nav-height) + env(safe-area-inset-top) + .8rem);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.5 Hanken, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
p, h1, h2, h3, pre { margin: 0; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
svg { width: 19px; height: 19px; flex: none; }
section[id], details[id] { scroll-margin-top: 1.5rem; }
section[tabindex="-1"]:focus { outline: none; }

.shell {
  width: min(calc(100% - max(var(--gutter), env(safe-area-inset-left)) - max(var(--gutter), env(safe-area-inset-right))), 94rem);
  margin-inline: auto;
}

.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 8;
  top: .75rem;
  left: .75rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  outline-color: var(--ink);
  outline-offset: -4px;
}

.nav-trigger {
  position: absolute;
  top: 3rem;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.header {
  --dock-width: min(34rem, calc(100% - max(.7rem, env(safe-area-inset-left)) - max(.7rem, env(safe-area-inset-right))));
  --dock-height: 3.2rem;
  --dock-radius: calc(var(--dock-height) / 2);
  --dock-background: #191930f5;
  position: sticky;
  top: 0;
  z-index: 5;
  height: calc(var(--nav-height) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100%;
  height: var(--nav-height);
  margin-inline: auto;
  padding-inline: max(var(--gutter), calc((100% - 94rem) / 2));
  gap: .75rem;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  background: var(--ink);
  pointer-events: auto;
}
.header[data-docked] .header-inner {
  max-width: var(--dock-width);
  height: var(--dock-height);
  padding-inline: clamp(.8rem, 2.6vw, 1.4rem);
  transform: translateY(.5rem);
  border-color: #c6bcff45;
  border-radius: var(--dock-radius);
  background: var(--dock-background);
  box-shadow: 0 8px 22px #0005;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 800 1.84rem/.9 var(--display);
  letter-spacing: -.045em;
  color: var(--iris);
}
.header nav { display: flex; align-items: center; gap: clamp(.7rem, 2.25vw, 2rem); font-weight: 650; }
.header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.header nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .24em; }
.header nav a:hover, .footer a:hover { color: var(--lime); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); }
.hero-wall, .hero-scrim { position: absolute; inset: 0; pointer-events: none; }
.hero-wall {
  overflow: hidden;
  background: #292652;
  --lane-gap: clamp(.55rem, 1.15vw, 1rem);
  --tile-width: clamp(14rem, 29vw, max(26rem, 24vw));
}
.wall-plane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(calc(100% + 26rem), 58rem);
  display: grid;
  gap: var(--lane-gap);
  transform: translate(-50%, -50%) rotate(-15deg);
}
.wall-lane { overflow: hidden; min-width: 0; }
.wall-strip {
  --lane-offset: -2rem;
  display: flex;
  width: max-content;
  transform: translateX(var(--lane-offset));
}
.wall-lane:nth-child(even) .wall-strip { --lane-offset: -7rem; }
.wall-set {
  display: flex;
  flex: none;
  gap: var(--lane-gap);
  padding-inline-end: var(--lane-gap);
}
.wall-screen {
  position: relative;
  flex: none;
  width: var(--tile-width);
  aspect-ratio: 1.7;
  overflow: hidden;
  background: #262444;
  border: 1px solid #635e87;
}
.wall-screen img { height: 100%; object-fit: cover; object-position: center; }
.wall-type {
  display: grid;
  align-content: center;
  padding: .85rem 1.2rem;
  color: var(--stone);
}
.wall-type strong { font: 800 clamp(1.6rem, 3.8vw, 3.5rem)/.98 var(--display); letter-spacing: -.04em; }
.wall-type span { margin-top: .45rem; font-size: .83rem; }
.wall-type-light { background: #b5a6f0; border-color: #c6bcff; color: #20183c; }

.hero-scrim {
  background:
    linear-gradient(90deg, #101023fc 0%, #101023ed 24%, #101023cf 43%, #13102d4a 73%, #10102360),
    linear-gradient(0deg, #101023f0 0%, #10102316 28%, #1010230a 78%, #10102367),
    radial-gradient(ellipse at 80% 52%, #5344ac58 0%, #2b235550 46%, #10102399 85%);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  gap: clamp(1.3rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 5.2vw, 5rem) max(2.5rem, env(safe-area-inset-bottom));
}
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 {
  font: 800 clamp(6.4rem, 12.3vw, 12.25rem)/.81 var(--display);
  letter-spacing: -.034em;
  color: var(--iris);
}
.hero-copy p {
  max-width: 24ch;
  margin-top: clamp(1.3rem, 3vw, 2.45rem);
  color: var(--stone);
  font-size: clamp(1.18rem, 1.75vw, 1.625rem);
  line-height: 1.35;
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  margin-top: 1.6rem;
  padding: .55rem .85rem .55rem 1rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.button:hover { background: #eaffba; }
.button:focus-visible { outline-offset: 5px; }
.button svg { width: 17px; height: 17px; }
.hero-art {
  justify-self: end;
  width: min(100%, 42rem);
  min-width: 0;
  container-type: inline-size;
}
.art-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #7168a1;
  border-radius: .85rem;
  box-shadow: 0 18px 66px #0a0827c2;
}
.art-code { background: #16162d; color: var(--paper); }
.art-bar {
  display: flex;
  align-items: center;
  min-height: 48px;
  gap: clamp(.55rem, 2cqw, 1rem);
  padding-inline: clamp(.7rem, 4cqw, 1.5rem) .3rem;
  border-bottom: 1px solid var(--line);
  background: #222244;
  color: var(--stone);
  font-size: clamp(.75rem, 2.5cqw, .95rem);
  line-height: 1;
}
.editor-dots { display: flex; flex: none; gap: clamp(.22rem, 1cqw, .38rem); }
.editor-dots i {
  width: clamp(.26rem, 1.15cqw, .43rem);
  height: clamp(.26rem, 1.15cqw, .43rem);
  border-radius: 50%;
  background: #a9a0d6;
}
.editor-dots i:first-child { background: #d7ff87; }
.editor-file {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, Consolas, monospace;
}
.editor-language { flex: none; margin-inline-start: auto; color: var(--iris); padding-inline-end: .4rem; }
.editor-toggle {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.editor-toggle[hidden] { display: none; }
.editor-toggle:focus-visible { outline-offset: -4px; }
.editor-toggle:hover { color: var(--paper); background: var(--line); }
.editor-toggle svg { width: 16px; height: 16px; }
.editor-play-icon, .art-code[data-paused] .editor-pause-icon { display: none; }
.art-code[data-paused] .editor-play-icon { display: block; }
.art-code pre {
  min-height: clamp(10.75rem, 45cqw, 18rem);
  padding: clamp(1rem, 4.5cqw, 2rem) clamp(.7rem, 4cqw, 1.6rem);
  font: 400 clamp(.65rem, 3.3cqw, 1.06rem)/1.62 ui-monospace, Consolas, monospace;
  letter-spacing: -.025em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.editor-output { font: inherit; }
.code-keyword { color: #cfb4ff; }
.code-string { color: var(--lime); }

.intro-screen { display: none; }
.work { padding-block: clamp(4rem, 8vw, 7.5rem); background: var(--surface); }
h2 { font: 800 clamp(3rem, 6.5vw, 6rem)/.96 var(--display); letter-spacing: -.045em; }
.featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.4rem, 5.7vw, 5.5rem) clamp(1.25rem, 3.1vw, 3.2rem);
  margin-top: clamp(1.5rem, 4vw, 3.45rem);
}
.feature { min-width: 0; }
.feature-media, .business-media {
  aspect-ratio: 1.75;
  overflow: hidden;
  background: var(--surface-raised);
  border-radius: .75rem;
}
.feature-media > img, .business-media img { height: 100%; object-fit: cover; }
.feature-media > img { object-position: center top; }
.feature-caption { padding-top: clamp(1.1rem, 2.5vw, 2rem); }
.feature-caption h3, .business-caption h3 {
  font: 750 clamp(1.85rem, 3.45vw, 3.25rem)/1.03 var(--display);
  letter-spacing: -.038em;
}
.feature-caption > p, .business-caption p {
  max-width: 51ch;
  color: var(--stone);
  margin-top: .6rem;
  font-size: clamp(1rem, 1.36vw, 1.2rem);
}
.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(1.25rem, 3.1vw, 3.2rem);
}
.feature-lyrics .feature-caption { padding-top: 0; }
.screenshot-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: #050505;
  cursor: zoom-in;
}
.screenshot-media > img { object-fit: contain; }
.project { max-width: 48ch; margin-top: .85rem; border-bottom: 1px solid var(--line); }
.project summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
.project summary::-webkit-details-marker { display: none; }
.project summary:hover { text-decoration: underline; text-underline-offset: .24em; }
.project summary:hover, .project[open] summary { color: var(--lime); }
.project[open] .expand-icon { transform: rotate(45deg); }
.project > p { padding-block: 0 1rem; color: var(--muted); }

.business { padding-block: clamp(3.75rem, 8vw, 7.5rem); background: var(--surface-raised); }
.business-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(12rem, .45fr);
  align-items: end;
  gap: 1.15rem 2.25rem;
  margin-bottom: clamp(1.8rem, 4.5vw, 4rem);
}
.business-heading h2 { max-width: 13ch; font-size: clamp(2.75rem, 6.15vw, 5.8rem); }
.business-heading p { max-width: 26ch; color: var(--stone); font-size: clamp(1.06rem, 1.75vw, 1.35rem); }
.business-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.3rem, 3.1vw, 3.2rem); }
.business-card { display: grid; grid-template-rows: 1fr auto; min-width: 0; gap: .65rem; }
.business-link { min-width: 0; }
.business-media { aspect-ratio: 16 / 9; }
.mythpick-mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(2px, .32vw, 5px);
  background: var(--surface-raised);
}
.mosaic-tile { overflow: hidden; }
.mosaic-main { grid-row: span 2; }
.mosaic-portrait img { object-position: 50% 25%; }
.mosaic-event img { object-position: 50% 72%; }
.myth-digital-cover { background: #171717; }
.myth-digital-cover img { object-fit: contain; }
.business-caption { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.2rem 0 .4rem; }
.business-caption svg { width: 23px; height: 23px; margin-top: .2rem; color: var(--iris); }
.business-link:hover h3 { text-decoration: underline; text-underline-offset: .22em; }
.business-instagram {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 1px solid #817bb1;
  border-radius: 999px;
  color: var(--paper);
  font-size: .9375rem;
  font-weight: 650;
}
.business-instagram svg { width: 18px; height: 18px; }
.business-instagram:hover { border-color: var(--lime); background: var(--surface); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  color: var(--stone);
}
.footer a { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; }
.footer svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  :root { --nav-height: 3.65rem; }
  .wordmark { font-size: 1.62rem; }
  .header nav { font-size: .94rem; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 1.05rem;
    padding-top: clamp(1.8rem, 6.4svh, 3.5rem);
  }
  .hero-copy h1 { font-size: clamp(5rem, 22vw, 8.25rem); }
  .hero-copy p { max-width: 24ch; margin-top: 1rem; font-size: 1.19rem; }
  .button { min-height: 44px; margin-top: .85rem; }
  .hero-art { justify-self: center; width: min(100%, 29rem); }
  .hero-scrim {
    background:
      linear-gradient(180deg, #101023f8 0%, #101023eb 29%, #10102371 55%, #10102366 75%, #101023f0),
      linear-gradient(90deg, #1c164b80, #29235341);
  }
  .business-heading { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 590px) {
  .featured, .feature-wide, .business-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-wide { gap: 0; }
  .feature-lyrics { gap: 1.15rem; }
  .business-grid { row-gap: 2rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .intro .intro-screen {
    display: block;
    position: fixed;
    z-index: 7;
    inset: 0;
    pointer-events: none;
    animation: dismiss-intro 1.32s step-end both;
  }
  .intro-panel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: var(--ink);
    animation: curtain 1.08s .14s var(--ease) both;
  }
  .intro-panel span { font: 800 clamp(4.1rem, 12vw, 8rem)/.85 var(--display); letter-spacing: -.034em; }
  .intro-top { clip-path: inset(0 0 50%); --curtain: -52%; }
  .intro-bottom { clip-path: inset(50% 0 0); --curtain: 52%; }
  .intro .hero-copy > * { animation: copy-in .68s .36s var(--ease) both; }
  .intro .hero-copy p { animation-delay: .45s; }
  .intro .hero-copy .button { animation-delay: .54s; }
  .intro .art-code { animation: panel-in .92s .55s var(--ease) both; --enter: -14%; }
  .art-code[data-typing] .editor-output::after {
    content: "";
    display: inline-block;
    width: .12em;
    height: 1em;
    vertical-align: -.13em;
    background: var(--lime);
  }
  .art-code::after {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--iris), var(--lime), transparent);
    opacity: 0;
    pointer-events: none;
  }
  .art-code[data-typing]::after {
    animation: editor-sweep 3.7s var(--ease) infinite;
  }
  .wall-strip[data-loop] { animation: wall-loop 53s -10s linear infinite paused; }
  .wall-lane:nth-child(even) .wall-strip[data-loop] { animation-direction: reverse; animation-duration: 61s; animation-delay: -34s; }
  .wall-lane:nth-child(3) .wall-strip[data-loop] { animation-delay: -22s; }
  .wall-lane:nth-child(4) .wall-strip[data-loop] { animation-delay: -45s; }
  .hero-wall[data-playing] .wall-strip[data-loop] { animation-play-state: running; }
  .expand-icon, .feature-media img, .button svg, .business-caption svg { transition: transform .32s var(--ease); }
  .mosaic-tile img { transition: transform .45s var(--ease); }
  .business-instagram { transition: background-color .24s var(--ease), border-color .24s var(--ease); }
  .button { transition: background-color .25s var(--ease), transform .25s var(--ease); }
  .button:active { transform: scale(.97); }
  .project[open] > p { animation: detail-in .26s var(--ease) both; }
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .header-inner {
      animation: dock-header auto cubic-bezier(.38, 0, .28, 1) both;
      animation-timeline: scroll(root block);
      animation-range: 0px 9rem;
    }
  }
  @supports not ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    .header-inner {
      transition: max-width .52s var(--ease), height .52s var(--ease), padding-inline .52s var(--ease),
        transform .52s var(--ease), border-radius .52s var(--ease), background-color .52s var(--ease),
        border-color .52s var(--ease), box-shadow .52s var(--ease);
    }
  }
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .hero {
      view-timeline: --hero-passage block;
      view-timeline-inset: 0px;
    }
    .hero-layout {
      animation: hero-depart auto linear both;
      animation-timeline: --hero-passage;
      animation-range: exit 0% exit 76%;
    }
    [data-scroll-reveal] {
      animation: reveal-entry auto linear backwards, reveal-exit auto linear forwards;
      animation-timeline: view(block 0px), view(block 0px);
      animation-range: entry 0% cover 28%, cover 78% exit 95%;
    }
  }
  @supports not ((animation-timeline: view()) and (animation-range: entry)) {
    .hero-layout { opacity: calc(1 - var(--hero-exit, 0) * .94); }
    [data-scroll-reveal] { opacity: calc(.3 + var(--reveal-visibility, 1) * .7); }
    .hero-layout, [data-scroll-reveal] { transition: opacity .15s linear; }
  }
  :is(.hero-layout, [data-scroll-reveal]):is(:focus-visible, :has(:focus-visible)) {
    opacity: 1 !important;
    transform: none !important;
  }
  @media (hover: hover) {
    .feature:hover .feature-media:not(.screenshot-media) > img { transform: scale(1.035); }
    .button:hover svg { transform: translateY(3px); }
    .button:hover { transform: translateY(-2px); }
    .business-link:hover .mosaic-tile img { transform: scale(1.035); }
    .business-link:hover svg { transform: translate(3px, -3px); }
  }
}

@keyframes dock-header {
  from {
    max-width: 100%;
    height: var(--nav-height);
    padding-inline: max(var(--gutter), calc((100% - 94rem) / 2));
    transform: translateY(0);
    border-color: transparent transparent var(--line);
    border-radius: 0;
    background-color: var(--ink);
    box-shadow: none;
  }
  to {
    max-width: var(--dock-width);
    height: var(--dock-height);
    padding-inline: clamp(.8rem, 2.6vw, 1.4rem);
    transform: translateY(.5rem);
    border-color: #c6bcff45;
    border-radius: var(--dock-radius);
    background-color: var(--dock-background);
    box-shadow: 0 8px 22px #0005;
  }
}

@keyframes hero-depart {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: .06; transform: translateY(-32px); }
}

@keyframes reveal-entry {
  from { opacity: .3; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-exit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: .3; transform: translateY(-14px); }
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes editor-sweep {
  0% { transform: translateX(-100%); opacity: 0; }
  26% { opacity: .8; }
  66%, 100% { transform: translateX(200%); opacity: 0; }
}

@keyframes curtain {
  0%, 19% { transform: translateY(0); }
  to { transform: translateY(var(--curtain)); }
}
@keyframes dismiss-intro { to { visibility: hidden; } }
@keyframes copy-in {
  from { opacity: 0; transform: translateX(-2.4rem); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(var(--enter)); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wall-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
