/* =========================================================
   1. Reset / variables
   ========================================================= */

:root {
  --studio-blue: #86adc6;
  --studio-floor: #7ea6bf;
  --paper: #f3f0ea;
  --mist: #e5eef2;
  --ink: #1a1917;
  --brown: #6b4333;
  --brown-deep: #472c1e;
  --mute: #6f6d69;
  --line: rgba(26, 25, 23, 0.16);
  --line-strong: rgba(26, 25, 23, 0.38);
  --paper-line: rgba(243, 240, 234, 0.42);
  --section-space: clamp(4.75rem, 11vw, 9.5rem);
  --header-height: 3.35rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --pad: clamp(1.15rem, 3.2vw, 3.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:visited {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* =========================================================
   2. Typography
   ========================================================= */

.wordmark {
  font-weight: 700;
  letter-spacing: -0.045em;
  font-size: 1.02rem;
  line-height: 1;
  display: inline-block;
  transition: letter-spacing 500ms var(--ease);
}

a:hover .wordmark,
.wordmark:hover {
  letter-spacing: 0.045em;
}

.display,
.names-display,
.casting-title .js-name,
.profile-name,
.market-title,
.contract-label {
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.84;
}

.hook,
.ctrl,
.meet,
.text-link,
.header-kicker,
.hero-kicker,
.pair-label,
.profile-kicker,
.file-marks,
.casting-file,
.look-index,
.inspect-label,
.ca-action,
.contract-chain,
.prelaunch,
.footer-links,
.swipe-hint,
.spec-list span,
.spec-sheet dt {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.poem p,
.profile-story p,
.market-sub,
.footer-close,
.runway-poem,
.runway-name,
.casting-note {
  font-family: var(--serif);
  font-weight: 400;
}

/* =========================================================
   3. Shared layout
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.55rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skip:focus {
  top: 0.6rem;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 0.4rem);
}

.ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 400ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}

.ctrl:hover {
  transform: translateY(-1px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.ctrl-fill {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  min-height: 2.85rem;
  padding: 0.7rem 1.05rem;
}

.ctrl-fill:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

.text-link,
.meet {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: 0.7rem;
  line-height: 1;
}

.text-link {
  border-bottom: 1px solid currentColor;
  min-height: 0;
  padding-bottom: 0.2rem;
}

.arrow {
  display: inline-block;
  transition: transform 450ms var(--ease);
}

.ctrl:hover .arrow-ne,
.text-link:hover .arrow-ne,
.footer-links a:hover .arrow-ne {
  transform: translate(4px, -4px);
}

.meet:hover .arrow-down {
  transform: translateY(4px);
}

.swipe-hint .arrow-right {
  animation: nudge 1.8s var(--ease) infinite;
}

.rule {
  height: 1px;
  background: var(--line-strong);
  border: 0;
  transform-origin: left center;
}

.cursor-dot {
  display: none;
}

/* =========================================================
   4. Header
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
  padding: 0 max(1.1rem, env(safe-area-inset-right)) 0 max(1.15rem, env(safe-area-inset-left));
  background: transparent;
  border-bottom: 1px solid rgba(26, 25, 23, 0.14);
  transition: background-color 500ms var(--ease), border-color 500ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(243, 240, 234, 0.96);
  border-bottom-color: var(--line);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.22rem;
  min-width: 0;
}

.header-kicker {
  font-size: 0.58rem;
  line-height: 1;
  opacity: 0.82;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: none;
}

/* =========================================================
   5. Hero
   ========================================================= */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  background: var(--studio-blue);
  color: var(--ink);
  overflow: hidden;
}

.hero-stage {
  position: relative;
  height: 100%;
}

.hero-kicker {
  position: absolute;
  z-index: 5;
  top: calc(var(--header-height) + 1.35rem);
  left: var(--pad);
  margin: 0;
  font-size: 0.66rem;
}

.hero-aside {
  position: absolute;
  z-index: 5;
  top: calc(var(--header-height) + 1.35rem);
  right: var(--pad);
  text-align: right;
}

.spec-list {
  display: grid;
  gap: 1.05rem;
}

.spec-list span {
  display: block;
  font-size: 0.6rem;
  opacity: 0.78;
}

.spec-list b {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.status-prelaunch {
  display: none;
}

.is-prelaunch .status-prelaunch {
  display: block;
}

.hero-type {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-type-shift {
  position: absolute;
  inset: 0;
}

.hero-type-frank,
.hero-type-cat {
  position: absolute;
  font-weight: 700;
  font-size: clamp(6.2rem, 18.2vw, 17.5rem);
  line-height: 0.74;
  letter-spacing: -0.068em;
  text-transform: uppercase;
}

.hero-type-frank {
  top: 15%;
  left: -0.05em;
}

.hero-type-cat {
  right: -0.045em;
  bottom: 7%;
}

.hero-figure {
  position: absolute;
  z-index: 2;
  left: 54%;
  bottom: 0;
  height: 93%;
  aspect-ratio: 544 / 1088;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-figure-enter,
.hero-figure-shift {
  width: 100%;
  height: 100%;
}

.hero-figure-shift {
  position: relative;
}

.hero-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-shadow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0.4%;
  width: 62%;
  height: 2.6%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(32, 48, 60, 0.4), rgba(32, 48, 60, 0) 70%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  left: var(--pad);
  bottom: 6vh;
  max-width: min(22rem, 32vw);
}

.hook {
  margin: 0;
  max-width: 16rem;
  font-size: clamp(0.92rem, 1.25vw, 1.12rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.11em;
}

.meet {
  margin-top: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

/* =========================================================
   6. Narrative
   ========================================================= */

.names {
  background: var(--paper);
  padding: var(--section-space) var(--pad) calc(var(--section-space) * 0.85);
}

.names-wrap {
  max-width: 78rem;
}

.names-display {
  font-size: clamp(4.4rem, 14.5vw, 12.4rem);
  text-transform: none;
}

.name-pairs {
  display: grid;
  gap: 0.7rem;
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
}

.pair {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.pair-label {
  font-size: 0.68rem;
}

.pair-value {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  letter-spacing: -0.04em;
  font-weight: 700;
}

.names .rule {
  margin-top: clamp(2rem, 6vw, 4.5rem);
  max-width: 18rem;
}

.same {
  margin-top: clamp(1.6rem, 5vh, 3rem);
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  text-transform: uppercase;
}

.poem {
  margin-top: clamp(4.5rem, 14vh, 9rem);
  display: grid;
  gap: clamp(1.6rem, 4.5vh, 3rem);
}

.poem p {
  font-size: clamp(1.7rem, 3.5vw, 3.05rem);
  line-height: 1.18;
  max-width: 16em;
}

.poem .i1 { margin-left: 8vw; }
.poem .i2 { margin-left: 18vw; }
.poem .i3 { margin-left: 3vw; }
.poem .i4,
.poem .i4b { margin-left: 12vw; }

.line .w {
  display: inline-block;
  margin-right: 0.28em;
}

.line .w:last-child {
  margin-right: 0;
}

/* =========================================================
   7. Casting
   ========================================================= */

.casting {
  background: var(--paper);
  padding: calc(var(--section-space) * 0.35) 0 clamp(2.5rem, 6vw, 4.75rem);
}

.casting-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 var(--pad) 1.35rem;
}

.casting-title .js-name {
  display: block;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  text-transform: uppercase;
}

.casting-file {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.7rem;
  font-weight: 400;
  font-family: var(--sans);
  letter-spacing: 0.18em;
}

.casting-note {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
  text-align: right;
}

.swipe-hint {
  display: none;
  margin: 0;
  padding: 0 var(--pad) 0.7rem;
  font-family: var(--sans);
  font-size: 0.66rem;
}

.casting-scroll {
  width: 100%;
}

.casting-sheet {
  width: min(100% - 4vw, 1680px);
  margin: 0 auto;
}

.casting-frame {
  position: relative;
  background: var(--studio-blue);
}

.casting-frame img {
  width: 100%;
  height: auto;
}

.inspect-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.casting-frame.is-inspecting .inspect-line {
  opacity: 0.85;
}

.inspect-label {
  position: absolute;
  top: 0.75rem;
  left: 0.65rem;
  padding: 0.22rem 0.38rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.64rem;
  white-space: nowrap;
}

.inspect-label.is-flip {
  left: auto;
  right: 0.65rem;
}

.look-index {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  margin-top: 0.7rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}

.look-index li {
  text-align: center;
}

/* =========================================================
   8. Profile
   ========================================================= */

.profile {
  background: var(--mist);
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 5.5rem);
  align-items: start;
  padding: var(--section-space) var(--pad);
}

.profile > * {
  min-width: 0;
}

.profile-portrait {
  margin: 0;
}

.profile-portrait img {
  width: 100%;
  height: auto;
}

.file-marks {
  font-size: 0.64rem;
  margin-bottom: 1.3rem;
}

.profile-kicker {
  font-size: 0.68rem;
  margin-bottom: 0.7rem;
}

.profile-name {
  font-size: clamp(3.6rem, 6.5vw, 6.4rem);
}

.spec-sheet {
  margin-top: 1.8rem;
}

.spec-sheet > div {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.spec-sheet > div:last-child {
  border-bottom: 1px solid var(--line);
}

.spec-sheet dt {
  font-size: 0.66rem;
}

.spec-sheet dd {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.035em;
  font-weight: 700;
}

.profile-story {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}

.profile-story p {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  line-height: 1.28;
}

/* =========================================================
   9. Contract
   ========================================================= */

.contract {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.2rem, 8vw, 6.5rem) var(--pad);
}

.contract-button {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
}

.contract-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.contract-label {
  font-size: clamp(3.2rem, 9vw, 7.5rem);
  text-transform: uppercase;
}

.contract-chain {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}

.contract-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 1.1rem;
}

.ca-value {
  flex: 1;
  min-width: 0;
  font-size: clamp(1.7rem, 5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.ca-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--paper-line);
  font-size: 0.66rem;
  transition: transform 400ms var(--ease), background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
}

.contract-button:hover .ca-action {
  transform: translateY(-1px);
  background: var(--paper);
  color: var(--ink);
}

.contract-button.is-copied .ca-action {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--paper);
}

.copy-icon {
  display: block;
}

/* =========================================================
   10. Market
   ========================================================= */

.market {
  background: var(--paper);
  padding: var(--section-space) var(--pad);
}

.market-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 1.4rem;
}

.market-title {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
  text-transform: uppercase;
}

.market-sub {
  margin: 0;
  text-align: right;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

.market .rule {
  margin-bottom: 0;
}

.tape-frame {
  min-height: clamp(320px, 62vh, 680px);
  display: grid;
  place-items: center;
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(134, 173, 198, 0.2), rgba(134, 173, 198, 0.05));
  border-bottom: 1px solid var(--line);
}

.tape-fallback {
  text-align: center;
  padding: 2rem 1.25rem;
}

.tape-fallback p {
  max-width: 9ch;
  margin: 0 auto 1.4rem;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.88;
  text-transform: uppercase;
}

.tape-frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: var(--paper);
}

.tape-frame:has(iframe) {
  display: block;
  min-height: 0;
  background: none;
  border-bottom: 0;
}

/* =========================================================
   11. Final runway
   ========================================================= */

.runway {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-height) + 1.25rem) 0 2.5rem;
  background: var(--studio-blue);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: none;
  gap: 0.38em;
  padding-right: 0.38em;
}

.marquee span {
  font-weight: 700;
  font-size: clamp(4.2rem, 14.5vw, 12.5rem);
  line-height: 0.8;
  letter-spacing: -0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-left .marquee-track {
  animation: marquee-left 78s linear infinite;
}

.marquee-right .marquee-track {
  animation: marquee-right 92s linear infinite;
}

.marquee-still .marquee-track {
  width: 100%;
  max-width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.25vw;
  box-sizing: border-box;
}

.marquee-still span {
  font-size: clamp(2.15rem, 4.7vw, 5.5rem);
}

.runway-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(26rem, calc(100% - 1.5rem));
  transform: translate(-50%, -50%);
  background: var(--studio-blue);
  text-align: center;
  padding: 1.35rem 1rem 1.2rem;
}

.prelaunch {
  display: none;
  margin: 0 auto 0.9rem;
  padding: 0.32rem 0.5rem;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.62rem;
  line-height: 1;
}

.is-prelaunch .prelaunch {
  display: inline-block;
}

.runway-poem {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.runway-dollar {
  margin-top: 0.95rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.runway-name {
  margin-top: 0.35rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
}

.runway-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.9rem 1.15rem;
  margin-top: 1.15rem;
}

/* =========================================================
   12. Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 1.6rem max(var(--pad), env(safe-area-inset-right)) calc(1.8rem + env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-top > * {
  min-width: 0;
}

.footer-chain {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.footer-links {
  justify-self: end;
  display: flex;
  gap: 1.15rem;
  font-size: 0.68rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
}

.footer-close {
  margin-top: 2.4rem;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* =========================================================
   13. Animation utilities
   ========================================================= */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cat-in {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.js .site-header {
  animation: fade 700ms ease 40ms both;
}

.js .hero-type-frank {
  animation: rise 1000ms var(--ease) both;
}

.js .hero-type-cat {
  animation: rise 1000ms var(--ease) 120ms both;
}

.js .hero-figure-enter {
  animation: cat-in 1100ms var(--ease) 180ms both;
}

.js .late {
  animation: rise 800ms var(--ease) 680ms both;
}

.js .hero-aside.late {
  animation-delay: 820ms;
}

.js .reveal {
  opacity: 0;
  transform: translateY(25px);
  transition:
    opacity 800ms var(--ease),
    transform 900ms var(--ease),
    letter-spacing 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .tighten {
  letter-spacing: -0.02em;
}

.js .tighten.is-in,
.js .names-display.tighten.is-in {
  letter-spacing: -0.065em;
}

.js .line .w {
  color: var(--mute);
  transition: color 720ms var(--ease);
}

.js .line.is-in .w { color: var(--ink); }
.js .line.is-in .w:nth-child(2) { transition-delay: 60ms; }
.js .line.is-in .w:nth-child(3) { transition-delay: 120ms; }
.js .line.is-in .w:nth-child(4) { transition-delay: 180ms; }
.js .line.is-in .w:nth-child(5) { transition-delay: 240ms; }
.js .line.is-in .w:nth-child(6) { transition-delay: 300ms; }
.js .line.is-in .w:nth-child(7) { transition-delay: 360ms; }
.js .line.is-in .w:nth-child(8) { transition-delay: 420ms; }

.js .rule {
  transform: scaleX(0);
  transition: transform 950ms var(--ease);
}

.js .rule.is-in {
  transform: scaleX(1);
}

.js .clip {
  clip-path: inset(8% 0 8% 0);
  transition: clip-path 1100ms var(--ease);
}

.js .clip.is-in {
  clip-path: inset(0);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: 0 0 0 1px var(--paper);
    pointer-events: none;
    z-index: 90;
    opacity: 0;
  }

  .cursor-dot.is-on {
    opacity: 0.9;
  }
}

/* =========================================================
   14. Responsive breakpoints
   ========================================================= */

@media (max-width: 1100px) and (min-width: 980px) {
  .hero-type-frank,
  .hero-type-cat {
    font-size: clamp(5rem, 15.5vw, 11rem);
  }

  .hero-copy {
    max-width: min(17rem, 30vw);
  }

  .hero-figure {
    height: 90%;
    left: 57%;
  }
}

@media (max-width: 979px) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-stage {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    padding: calc(var(--header-height) + 0.7rem) 1.15rem 1.15rem;
  }

  .hero-kicker,
  .hero-aside,
  .hero-type,
  .hero-figure,
  .hero-copy {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: none;
  }

  .hero-kicker {
    order: 1;
  }

  .hero-aside {
    order: 2;
    margin-top: 0.55rem;
    text-align: left;
  }

  .spec-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
  }

  .hero-type {
    order: 3;
    inset: auto;
    margin-top: 0.35rem;
    pointer-events: none;
  }

  .hero-type-shift {
    position: relative;
    inset: auto;
  }

  .hero-type-frank,
  .hero-type-cat {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    font-size: clamp(3.5rem, 20vw, 7rem);
  }

  .hero-type-cat {
    text-align: right;
    margin-top: -0.24em;
  }

  .hero-figure {
    order: 4;
    width: min(56vw, 300px);
    height: auto;
    aspect-ratio: 544 / 1088;
    margin: -1.5vw auto 0;
    align-self: center;
    z-index: 2;
  }

  .hero-copy {
    order: 5;
    z-index: 3;
    margin-top: auto;
    padding-top: 0.75rem;
  }

  .hook {
    max-width: 18rem;
    font-size: 0.84rem;
  }

  .meet {
    margin-top: 0.45rem;
    min-height: 2.5rem;
  }

  .hero-actions .ctrl {
    min-height: 44px;
  }

  .poem .i1 { margin-left: 6vw; }
  .poem .i2 { margin-left: 0; }
  .poem .i3 { margin-left: 4vw; }
  .poem .i4,
  .poem .i4b { margin-left: 0; }
}

@media (max-width: 860px) {
  .profile {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .profile-portrait {
    max-width: min(100%, 540px);
  }

  .market-head,
  .casting-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .market-sub,
  .casting-note {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .swipe-hint {
    display: block;
  }

  .casting-scroll {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 25, 23, 0.35) transparent;
    padding-bottom: 0.35rem;
  }

  .casting-sheet {
    width: 1280px;
    max-width: none;
    margin: 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .marquee-still {
    visibility: hidden;
  }

  .contract-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name links"
      "chain chain";
  }

  .footer-top .wordmark { grid-area: name; }
  .footer-links { grid-area: links; }
  .footer-chain { grid-area: chain; margin-top: 0.35rem; }
}

@media (max-width: 430px) {
  .header-nav {
    gap: 0.25rem;
  }

  .header-nav .ctrl {
    padding: 0.4rem 0.45rem;
    min-height: 2.35rem;
  }

  .pair {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .spec-sheet > div {
    grid-template-columns: 5.5rem minmax(0, 1fr);
  }

  .runway-actions {
    flex-direction: column;
  }

  .runway-actions .ctrl,
  .runway-actions .text-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 979px) and (max-height: 480px) and (orientation: landscape) {
  .hero-stage {
    min-height: 0;
  }

  .hero-figure {
    width: min(24vh, 180px);
    margin-top: 0;
  }

  .hero-type-frank,
  .hero-type-cat {
    font-size: clamp(3rem, 12vh, 5rem);
  }
}

/* =========================================================
   15. Reduced motion
   ========================================================= */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .clip,
  .js .rule,
  .js .late,
  .js .hero-type-frank,
  .js .hero-type-cat,
  .js .hero-figure-enter,
  .js .site-header {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .js .tighten,
  .js .tighten.is-in,
  .js .names-display.tighten.is-in {
    letter-spacing: -0.06em;
  }

  .js .line .w {
    color: var(--ink) !important;
  }

  .marquee-track {
    will-change: auto;
  }

  .cursor-dot {
    display: none !important;
  }
}
