@font-face {
  font-family: 'Shantell Sans';
  src: url('/assets/fonts/shantell-sans.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --yellow: #febf15;
  --ink: #242018;
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
  background: var(--yellow);
  color: var(--ink);
  font-family: 'Shantell Sans', system-ui, sans-serif;
  font-weight: 400;
  font-variation-settings: 'INFM' 12, 'BNCE' 0, 'SPAC' 0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { color: var(--yellow); background: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 7px; }
.page-width { width: min(100% - 112px, 1440px); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 5;
  left: 24px;
  top: 16px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--yellow);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.header {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark { font-size: 22px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.instagram { font-size: 15px; }
.instagram, .footer a { position: relative; }
.instagram::after, .footer a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-settle);
}
.instagram span, .footer a span { display: inline-block; margin-left: 8px; transition: transform 320ms var(--ease-settle); }
.instagram:focus-visible::after, .footer a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.hero { overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: .92fr 1.4fr;
  align-items: end;
  position: relative;
  min-height: max(650px, calc(100svh - 110px));
}
.introduction { position: relative; z-index: 1; align-self: center; padding: 20px 0 115px; }
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(72px, 7.1vw, 112px); line-height: 1.02; }
.hello { display: block; margin-bottom: 15px; font-size: .62em; letter-spacing: -.025em; }
.portrait { position: relative; width: calc(100% + 72px); margin-left: -18px; }
.portrait img { width: 100%; }
.scroll-note { position: absolute; bottom: 36px; left: 0; z-index: 2; display: flex; align-items: center; gap: 24px; font-size: 14px; }
.scroll-note span:last-child { font-size: 20px; transition: transform 350ms var(--ease-settle); }
.scroll-note:focus-visible span:last-child { transform: translateY(3px); }
.scroll-note:active span:last-child { transform: translateY(5px); }

.tote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  max-width: 1100px;
  padding-block: 112px 120px;
  scroll-margin-top: 30px;
}
.tote-image { display: flex; justify-content: center; }
.tote-image img { max-height: 550px; width: auto; }
.eyebrow { margin: 0 0 24px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(64px, 6vw, 88px); line-height: 1.02; }
.tote-description { margin: 28px 0 0; font-size: 17px; line-height: 1.65; }
.coming-soon { display: inline-block; margin: 36px 0 0; font-size: 15px; }
.footer { padding-block: 28px 32px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }

.print-section { padding-block: 104px 120px; }
.print-animation { max-width: 660px; margin: 0 auto; }
.print-stage { position: relative; width: 100%; aspect-ratio: 1.12; }
.print-canvas { display: block; width: 100%; height: 100%; opacity: 0; }
.print-poster { position: absolute; inset: 7% 12%; width: 76%; height: 86%; object-fit: contain; }
.print-animation.is-ready .print-canvas { opacity: 1; }
.print-animation.is-ready .print-poster { visibility: hidden; }
.print-controls { min-height: 44px; display: flex; align-items: center; justify-content: center; position: relative; font-size: 12px; }
.print-toggle { position: absolute; right: 5%; display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.print-toggle[hidden] { display: none; }
.print-copy { margin: 36px auto 0; text-align: center; max-width: 790px; }
.print-copy h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.15; letter-spacing: -.025em; }
.print-aside { display: block; margin-top: 16px; font-size: .59em; letter-spacing: -.015em; }
.print-copy .coming-soon { margin-top: 32px; }
.ears-animation { --ears-motion: paused; width: 88%; max-width: 500px; margin: 132px auto 0; scroll-margin-top: 32px; }
.ears-animation.is-playing { --ears-motion: running; }
.ears-stage { perspective: 1200px; }
.ears-study { display: block; width: 100%; height: auto; overflow: visible; }
.ears-drawing { transform-origin: 50% 47%; transform-box: view-box; }
.ears-geometry { stroke: var(--ink); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.ears-geometry path, .ears-geometry circle { vector-effect: non-scaling-stroke; }
.ears-trace { stroke: #fff5d6; filter: drop-shadow(0 0 1px rgb(36 32 24 / 55%)); }
.ears-detail { opacity: .6; }
.ears-labels { fill: var(--ink); font-size: 28px; text-anchor: middle; }
.ears-equation { fill: var(--ink); font-size: 30px; letter-spacing: .04em; }
.ears-controls { position: relative; height: 44px; }
.ears-toggle { position: absolute; right: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.ears-toggle[hidden] { display: none; }
.print-toggle, .ears-toggle {
  border-radius: 50%;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.print-toggle::before, .ears-toggle::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px;
  border-radius: inherit;
  background: rgb(36 32 24 / 7%);
  opacity: 0;
  transform: scale(.8);
  transition: opacity 180ms ease, transform 350ms var(--ease-settle);
}
.print-toggle svg, .ears-toggle svg { transition: transform 240ms var(--ease-settle); }
.print-toggle:focus-visible::before, .ears-toggle:focus-visible::before { opacity: 1; transform: scale(1); }
.print-toggle:active::before, .ears-toggle:active::before { opacity: 1; transform: scale(.92); }
.print-toggle:active svg, .ears-toggle:active svg { transform: scale(.88); }

@media (hover: hover) and (pointer: fine) {
  .instagram:hover::after, .footer a:hover::after { transform: scaleX(1); transform-origin: left; }
  .instagram:hover span, .footer a:hover span { transform: translate(2px, -2px); }
  .scroll-note:hover span:last-child { transform: translateY(3px); }
  .print-toggle:hover::before, .ears-toggle:hover::before { opacity: 1; transform: scale(1); }
  .tote-image img {
    transform: perspective(1000px) rotateX(var(--tote-pitch, 0deg)) rotateY(var(--tote-yaw, 0deg)) rotateZ(var(--tote-roll, 0deg));
    transform-origin: 50% 48%;
    transition: transform 650ms var(--ease-settle);
  }
}
.ears-animation.has-motion .ears-drawing { animation: ears-turn 18s ease-in-out infinite; }
.ears-animation.has-motion .ears-trace { stroke-dasharray: 1; animation: ears-measure 18s ease-in-out infinite; }
.ears-animation.has-motion .ears-left .ears-detail, .ears-animation.has-motion .ears-left-labels { animation: ears-left-notes 18s ease-in-out infinite; }
.ears-animation.has-motion .ears-right .ears-trace { animation-name: ears-measure-right; }
.ears-animation.has-motion .ears-right .ears-detail, .ears-animation.has-motion .ears-right-labels { animation: ears-right-notes 18s ease-in-out infinite; }
.ears-animation.has-motion .ears-equation { animation: ears-equation 18s ease-in-out infinite; }
.ears-animation.has-motion .ears-drawing, .ears-animation.has-motion .ears-trace, .ears-animation.has-motion .ears-detail, .ears-animation.has-motion .ears-labels, .ears-animation.has-motion .ears-equation { animation-play-state: var(--ears-motion); }
.ears-animation.is-still .ears-drawing, .ears-animation.is-still .ears-trace, .ears-animation.is-still .ears-detail, .ears-animation.is-still .ears-labels, .ears-animation.is-still .ears-equation { animation: none; }

@keyframes ears-turn {
  0%, 100% { transform: rotateY(-4deg) rotateZ(-.3deg); }
  50% { transform: rotateY(4deg) rotateZ(.3deg); }
}
@keyframes ears-measure {
  0%, 7% { stroke-dashoffset: 1; opacity: 0; }
  12% { opacity: .85; }
  31%, 80% { stroke-dashoffset: 0; opacity: .85; }
  91%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ears-measure-right {
  0%, 31% { stroke-dashoffset: 1; opacity: 0; }
  36% { opacity: .85; }
  58%, 80% { stroke-dashoffset: 0; opacity: .85; }
  91%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes ears-left-notes {
  0%, 23%, 93%, 100% { opacity: 0; }
  34%, 80% { opacity: .7; }
}
@keyframes ears-right-notes {
  0%, 50%, 93%, 100% { opacity: 0; }
  61%, 80% { opacity: .7; }
}
@keyframes ears-equation {
  0%, 61%, 95%, 100% { opacity: 0; }
  71%, 83% { opacity: .8; }
}

@media (min-width: 1600px) {
  .portrait { width: calc(100% + 100px); }
}

@media (max-width: 1000px) {
  .page-width { width: calc(100% - 64px); }
  .header { height: 92px; }
  .hero-inner { min-height: clamp(600px, calc(100svh - 92px), 760px); grid-template-columns: 1fr 1.15fr; }
  h1 { font-size: clamp(68px, 8.1vw, 88px); }
  .portrait { width: calc(100% + 90px); margin-left: -40px; }
  .introduction { padding-bottom: 150px; }
  .tote { gap: 50px; padding-block: 90px; }
  .tote-image img { max-height: 480px; }
}

@media (max-width: 650px) {
  .page-width { width: calc(100% - 44px); }
  .header { height: 82px; }
  .wordmark { font-size: 20px; }
  .instagram { font-size: 14px; }
  .instagram span { margin-left: 3px; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .introduction { align-self: auto; padding: 35px 0 0; }
  h1 { font-size: clamp(62px, 16vw, 90px); line-height: 1.01; }
  .hello { margin-bottom: 10px; font-size: .59em; }
  .portrait { width: calc(100% + 38px); margin: 20px -19px 0; }
  .scroll-note { position: static; order: 1; justify-content: space-between; padding-block: 22px; }
  .tote { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 76px; }
  .tote-copy { text-align: center; }
  .tote-image img { max-height: 400px; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  h2 { font-size: 66px; }
  .tote-description { margin-top: 20px; font-size: 16px; }
  .coming-soon { margin-top: 28px; }
  .footer { font-size: 12px; padding-block: 24px; }
  .print-section { padding-block: 54px 76px; }
  .print-stage { aspect-ratio: 1; }
  .print-copy { margin-top: 26px; }
  .print-copy h2 { font-size: 36px; }
  .print-aside { font-size: .65em; margin-top: 14px; }
  .print-toggle { right: 0; }
  .ears-animation { margin-top: 86px; }
  .ears-toggle { right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .tote-image img, .instagram span, .footer a span, .scroll-note span:last-child,
  .print-toggle svg, .ears-toggle svg { transform: none !important; }
}
