:root {
  color-scheme: light;
  --paper: #eaeae8;
  --paper-bright: #f5f5f2;
  --ink: #272c35;
  --ink-soft: #555a62;
  --line: rgba(39, 44, 53, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

.site-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.site-shell::before {
  inset: 0;
  background-image:
    linear-gradient(to right, transparent calc(50% - 0.5px), var(--line) 50%, transparent calc(50% + 0.5px)),
    linear-gradient(to bottom, transparent calc(72% - 0.5px), var(--line) 72%, transparent calc(72% + 0.5px));
  opacity: 0.45;
}

.site-shell::after {
  top: clamp(7rem, 16vh, 11rem);
  right: clamp(-6rem, -4vw, -2rem);
  width: clamp(10rem, 18vw, 19rem);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.noise {
  position: fixed;
  z-index: 50;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.15rem, 3vw, 2.25rem) clamp(1.25rem, 4.7vw, 4.75rem) 0;
}

.brand {
  display: inline-block;
  width: 194px;
  height: 108px;
  overflow: hidden;
}

.brand-crop {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.brand-crop img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 300px;
  max-width: none;
  height: auto;
  transform: translate(-56px, -65px);
  user-select: none;
}

.build-status {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  line-height: 1.55;
  letter-spacing: 0.13em;
  text-align: right;
  text-transform: uppercase;
}

.build-status strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
}

.status-pulse {
  position: relative;
  width: 8px;
  height: 8px;
  margin-top: 0.18rem;
  background: var(--ink);
  border-radius: 50%;
}

.status-pulse::after {
  position: absolute;
  inset: -5px;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
  animation: status-pulse 2.4s var(--ease-out) infinite;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(360px, 0.87fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
  padding: clamp(0.5rem, 1.6vh, 1.5rem) clamp(1.25rem, 4.7vw, 4.75rem)
    clamp(1rem, 2.5vh, 2.25rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 54rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 clamp(1.1rem, 2.5vh, 2rem);
  color: var(--ink-soft);
  font-size: clamp(0.6rem, 0.8vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 2.7rem;
  height: 1px;
  background: var(--ink);
  transform-origin: left center;
  animation: line-breathe 3.4s var(--ease-in-out) infinite;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(4.6rem, 8.35vw, 9.4rem);
  font-weight: 800;
  line-height: 0.79;
  letter-spacing: -0.087em;
}

h1 em {
  display: block;
  margin: 0.12em 0 0 0.56em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68em;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.075em;
  white-space: nowrap;
}

.hero-note {
  max-width: 34rem;
  margin: clamp(1.65rem, 3.5vh, 2.7rem) 0 0;
  padding-left: clamp(2.4rem, 5vw, 5.5rem);
  color: var(--ink-soft);
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  margin-top: clamp(1.5rem, 3.4vh, 2.5rem);
  padding-left: clamp(2.4rem, 5vw, 5.5rem);
}

.panel-button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: 13.4rem;
  min-height: 3.8rem;
  padding: 0.45rem 0.48rem 0.45rem 1.45rem;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  transition:
    color 450ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.panel-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--paper-bright);
  transform: translateY(102%);
  transition: transform 450ms var(--ease-out);
}

.panel-button:hover {
  color: var(--ink);
}

.panel-button:hover::before {
  transform: translateY(0);
}

.panel-button.is-pressed {
  animation: button-press 550ms var(--ease-out);
}

.button-icon {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: none;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  transition:
    background-color 350ms var(--ease-out),
    color 350ms var(--ease-out),
    transform 350ms var(--ease-out);
}

.button-icon svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.panel-button:hover .button-icon {
  background: var(--ink);
  color: var(--paper);
  transform: rotate(-22deg);
}

.visual-stage {
  --stage-x: 0px;
  --stage-y: 0px;
  position: relative;
  justify-self: end;
  width: min(39vw, 34rem);
  min-width: 360px;
  aspect-ratio: 1;
  transform: translate3d(var(--stage-x), var(--stage-y), 0);
  transition: transform 500ms var(--ease-out);
}

.stage-caption {
  position: absolute;
  z-index: 8;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.88rem, 1.05vw, 1.08rem);
  font-style: italic;
  font-weight: 400;
}

.stage-caption {
  left: 2%;
  bottom: 2%;
  color: var(--ink-soft);
  transform: rotate(-5deg);
}

.creative-playground {
  position: absolute;
  inset: 1%;
}

.scribble-line {
  position: absolute;
  z-index: 1;
  top: 4%;
  left: -5%;
  width: 112%;
  height: 94%;
  overflow: visible;
  fill: none;
  stroke: rgba(39, 44, 53, 0.38);
  stroke-linecap: round;
  stroke-width: 1.15;
  transform: rotate(-4deg);
}

.scribble-line path {
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: scribble-draw 2.4s 1.8s var(--ease-out) forwards;
}

.studio-mark {
  position: absolute;
  z-index: 3;
  inset: 15% 10% 11% 9%;
  transform: rotate(-3deg);
}

.organic-ink {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  background: var(--ink);
  border-radius: 64% 36% 59% 41% / 43% 62% 38% 57%;
  color: var(--paper);
  box-shadow: 0 1.8rem 4rem rgba(39, 44, 53, 0.18);
  transform-origin: 51% 48%;
  animation: ink-breathe 9s var(--ease-in-out) infinite;
}

.wild-word {
  position: relative;
  z-index: 2;
  margin: -0.02em 0 0 -0.1em;
  font-size: clamp(3.2rem, 6.7vw, 6.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.115em;
  transform: rotate(3deg);
}

.ink-bite {
  position: absolute;
  z-index: 3;
  aspect-ratio: 1;
  background: var(--paper);
  border-radius: 50%;
}

.ink-bite--one {
  top: -4%;
  right: 13%;
  width: 22%;
}

.ink-bite--two {
  right: -3%;
  bottom: 15%;
  width: 10%;
}

.ink-caption {
  position: absolute;
  right: 16%;
  bottom: 17%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.46rem, 0.62vw, 0.64rem);
  font-style: italic;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-align: right;
  transform: rotate(5deg);
}

.idea-note {
  position: absolute;
  z-index: 6;
  top: 2%;
  left: -1%;
  margin: 0;
  padding: 0.75rem 1rem 0.72rem;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  box-shadow: 0.35rem 0.38rem 0 var(--ink);
  color: var(--ink);
  transform: rotate(-7deg);
  animation: paper-float 5.4s var(--ease-in-out) infinite;
}

.idea-note span,
.idea-note strong {
  display: block;
}

.idea-note span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-style: italic;
  line-height: 1;
}

.idea-note strong {
  margin-top: 0.18rem;
  font-size: clamp(0.88rem, 1.15vw, 1.15rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.studio-label {
  position: absolute;
  z-index: 5;
  top: 17%;
  right: -1%;
  margin: 0;
  padding: 0.58rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(0.42rem, 0.5vw, 0.52rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
  transform: rotate(7deg);
  animation: label-sway 6.2s 0.8s var(--ease-in-out) infinite;
}

.smile-stamp {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: 7%;
  width: clamp(3.5rem, 5.8vw, 5rem);
  aspect-ratio: 1;
  background: var(--paper-bright);
  border: 1.5px solid var(--ink);
  border-radius: 47% 53% 45% 55% / 53% 44% 56% 47%;
  box-shadow: 0.22rem 0.24rem 0 var(--ink);
  transform: rotate(8deg);
  animation: smile-bob 4.8s var(--ease-in-out) infinite;
}

.smile-face {
  position: absolute;
  inset: 0;
}

.smile-face::before {
  position: absolute;
  top: 33%;
  left: 29%;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--ink);
  border-radius: 50%;
  box-shadow: clamp(1.25rem, 2vw, 1.7rem) 0 0 var(--ink);
}

.smile-face::after {
  position: absolute;
  bottom: 23%;
  left: 27%;
  width: 46%;
  height: 23%;
  content: "";
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 50% 50%;
}

.play-spark {
  position: absolute;
  z-index: 5;
  display: block;
  color: var(--ink);
  line-height: 1;
  animation: spark-pop 3.8s var(--ease-in-out) infinite;
}

.play-spark--one {
  top: 9%;
  left: 39%;
  font-size: clamp(1rem, 1.8vw, 1.6rem);
}

.play-spark--two {
  bottom: 10%;
  left: 15%;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  animation-delay: 1.1s;
}

.ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  min-height: clamp(2.65rem, 5.4vh, 3.55rem);
  animation: ticker-roll 24s linear infinite;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: none;
  width: max-content;
  min-width: 100vw;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.2vw, 2.5rem);
  flex: none;
  padding: 0 clamp(0.9rem, 1.5vw, 1.5rem);
  font-size: clamp(0.62rem, 0.78vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

.ticker-item i {
  display: block;
  flex: none;
  color: var(--paper);
  font-size: 0.7rem;
  font-style: normal;
}

.reveal {
  opacity: 0;
  animation: reveal-up 1s var(--ease-out) forwards;
}

.reveal--1 {
  animation-delay: 1.05s;
}

.reveal--2 {
  animation-delay: 1.15s;
}

.reveal--3 {
  animation-delay: 1.27s;
}

.reveal--4 {
  animation-delay: 1.4s;
}

.reveal--5 {
  animation-delay: 1.52s;
}

.reveal--visual {
  animation-name: visual-reveal;
  animation-delay: 1.34s;
  animation-duration: 1.25s;
}

.reveal--6 {
  animation-delay: 1.65s;
}

.intro-wipe {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  pointer-events: none;
  animation: wipe-away 1.25s 0.35s var(--ease-in-out) forwards;
}

.intro-wipe span {
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.45em;
  animation: intro-word 1s var(--ease-out) both;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  transform: translate(-50%, -50%);
  transition:
    width 220ms var(--ease-out),
    height 220ms var(--ease-out),
    background-color 220ms var(--ease-out);
}

body.has-pointer .cursor-dot,
body.has-pointer .cursor-ring {
  opacity: 1;
}

body.cursor-on-action .cursor-ring {
  width: 46px;
  height: 46px;
  background: rgba(234, 234, 232, 0.14);
}

@keyframes wipe-away {
  0% {
    clip-path: inset(0 0 0 0);
  }
  100% {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}

@keyframes intro-word {
  from {
    opacity: 0;
    letter-spacing: 0.1em;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    letter-spacing: 0.45em;
    transform: translateY(0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes visual-reveal {
  from {
    opacity: 0;
    transform: translate3d(2rem, 1rem, 0) scale(0.9) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
  }
}

@keyframes status-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.35);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes line-breathe {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.62);
  }
}

@keyframes scribble-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ink-breathe {
  0%,
  100% {
    border-radius: 64% 36% 59% 41% / 43% 62% 38% 57%;
    transform: rotate(0deg) scale(1);
  }
  50% {
    border-radius: 43% 57% 35% 65% / 59% 39% 61% 41%;
    transform: rotate(1.6deg) scale(1.018);
  }
}

@keyframes paper-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-7deg);
  }
  50% {
    transform: translate3d(0.35rem, -0.65rem, 0) rotate(-4deg);
  }
}

@keyframes label-sway {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(7deg);
  }
  50% {
    transform: translate3d(-0.4rem, 0.35rem, 0) rotate(4deg);
  }
}

@keyframes smile-bob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(8deg);
  }
  50% {
    transform: translate3d(-0.35rem, -0.55rem, 0) rotate(2deg);
  }
}

@keyframes spark-pop {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82) rotate(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

@keyframes ticker-roll {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes button-press {
  0%,
  100% {
    filter: none;
  }
  40% {
    filter: invert(1);
  }
}

@media (max-width: 980px) {
  .site-shell {
    overflow: hidden;
  }

  .site-shell::before {
    background-image: linear-gradient(
      to bottom,
      transparent calc(59% - 0.5px),
      var(--line) 59%,
      transparent calc(59% + 0.5px)
    );
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3.3rem;
    padding-top: 1.6rem;
    padding-bottom: 3.4rem;
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(4.35rem, 13.5vw, 7.5rem);
  }

  .hero-note {
    max-width: 36rem;
  }

  .visual-stage {
    justify-self: center;
    width: min(74vw, 31rem);
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    padding: 1rem 1.15rem 0;
  }

  .brand {
    width: 150px;
    height: 84px;
  }

  .brand-crop img {
    width: 232px;
    transform: translate(-43px, -50px);
  }

  .build-status {
    padding-top: 0.35rem;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }

  .status-pulse {
    width: 6px;
    height: 6px;
  }

  .hero {
    gap: 2.65rem;
    padding: 1.15rem 1.15rem 2.8rem;
  }

  .eyebrow {
    max-width: 29rem;
    margin-bottom: 1.35rem;
    font-size: 0.53rem;
    line-height: 1.4;
    letter-spacing: 0.13em;
  }

  .eyebrow > span {
    width: 1.65rem;
    flex: none;
  }

  h1 {
    max-width: 8.6ch;
    font-size: clamp(3.85rem, 18.5vw, 6.1rem);
    line-height: 0.82;
  }

  h1 em {
    margin-left: 0.18em;
    font-size: 0.6em;
  }

  .hero-note {
    margin-top: 1.65rem;
    padding-left: 1.55rem;
    font-size: 0.86rem;
  }

  .hero-actions {
    margin-top: 1.55rem;
    padding-left: 1.55rem;
  }

  .panel-button {
    width: min(100%, 17rem);
    min-height: 3.55rem;
  }

  .visual-stage {
    width: min(91vw, 24rem);
  }

  .wild-word {
    font-size: clamp(3rem, 16.5vw, 4.7rem);
  }

  .stage-caption {
    bottom: 0;
  }

  .idea-note {
    left: 1%;
    padding: 0.6rem 0.75rem;
  }

  .studio-label {
    top: 14%;
    right: 1%;
    width: 7.8rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }

  .smile-stamp {
    right: 1%;
    bottom: 5%;
  }

  .ticker-track {
    min-height: 3.05rem;
  }

  .ticker-item {
    padding: 0 1rem;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .topbar {
    padding-top: 1rem;
  }

  .brand {
    width: 158px;
    height: 88px;
  }

  .brand-crop img {
    width: 244px;
    transform: translate(-46px, -53px);
  }

  .hero {
    gap: 3rem;
    padding-top: 0;
    padding-bottom: 0.8rem;
  }

  h1 {
    font-size: clamp(4rem, 7.6vw, 7rem);
  }

  .hero-note {
    margin-top: 1.2rem;
  }

  .hero-actions {
    margin-top: 1.2rem;
  }

  .visual-stage {
    width: min(35vw, 27rem);
  }
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .intro-wipe {
    display: none;
  }

  .reveal {
    opacity: 1;
  }
}
