:root {
  --ink: #17211f;
  --ink-soft: #31403c;
  --paper: #fbfaf4;
  --paper-deep: #f0eee5;
  --white: #ffffff;
  --amber: #dfa13d;
  --amber-soft: #f4d498;
  --blue: #6d92a8;
  --blue-soft: #c8dde3;
  --mint: #bcd6c8;
  --violet: #7565c7;
  --line: rgba(23, 33, 31, 0.15);
  --shadow: 0 24px 70px rgba(23, 33, 31, 0.12);
  --radius: 24px;
  --shell: min(1180px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: var(--amber-soft);
  color: var(--ink);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 650;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4.5vw;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark img {
  width: 35px;
  height: 42px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pickford-logo {
  position: absolute;
  top: 25px;
  left: 50%;
  display: block;
  width: 138px;
  line-height: 0;
  transform: translateX(-50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pickford-logo:hover,
.pickford-logo:focus-visible {
  opacity: 0.7;
  transform: translateX(-50%) translateY(-1px);
}

.pickford-logo img {
  width: 100%;
  height: auto;
}

.site-header nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  position: relative;
  display: grid;
  min-height: 880px;
  overflow: hidden;
  align-items: center;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  gap: 3vw;
  padding: 150px max(6vw, calc((100vw - 1320px) / 2)) 120px;
  background:
    radial-gradient(circle at 77% 30%, rgba(255, 255, 255, 0.9) 0 12%, transparent 34%),
    linear-gradient(120deg, #f3c771 0%, #e8d49f 25%, #b6d6d2 63%, #b8c7e6 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(23, 33, 31, 0.14);
  border-radius: 50%;
}

.hero::before {
  right: -10vw;
  bottom: -33vw;
  width: 60vw;
  height: 60vw;
}

.hero::after {
  right: 14vw;
  bottom: -23vw;
  width: 42vw;
  height: 42vw;
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(23, 33, 31, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 31, 0.12) 1px, transparent 1px);
  background-position: center;
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, transparent 88%);
}

.hero-copy,
.hero-stage,
.scroll-cue {
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--ink);
}

.kicker.light {
  color: var(--amber-soft);
}

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(5rem, 10vw, 9.4rem);
  font-weight: 680;
  letter-spacing: -0.075em;
}

.hero-subtitle {
  margin-bottom: 24px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 670px;
  margin-bottom: 24px;
  color: rgba(23, 33, 31, 0.78);
  font-size: 1.05rem;
}

.project-credits {
  max-width: 760px;
  margin-bottom: 28px;
}

.authors {
  margin-bottom: 9px;
  font-size: 0.88rem;
  font-weight: 620;
  line-height: 1.7;
}

.authors a {
  text-decoration-color: rgba(23, 33, 31, 0.32);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.authors a,
.authors span {
  white-space: nowrap;
}

.authors a:hover,
.authors a:focus-visible {
  text-decoration-color: var(--ink);
}

.authors sup,
.affiliations sup {
  position: relative;
  top: -0.1em;
  margin-left: 1px;
  font-size: 0.65em;
}

.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 3px;
  color: rgba(23, 33, 31, 0.7);
  font-size: 0.76rem;
}

.contribution-note {
  margin-bottom: 0;
  color: rgba(23, 33, 31, 0.58);
  font-size: 0.7rem;
  font-style: italic;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resource-button,
.closing-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 24px rgba(23, 33, 31, 0.07);
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(9px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.resource-button:hover,
.resource-button:focus-visible,
.closing-button:hover,
.closing-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.14);
}

.resource-button svg,
.closing-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.resource-button small {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.08);
  color: rgba(23, 33, 31, 0.58);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-button.is-pending {
  cursor: default;
}

.resource-button.is-live {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.resource-button .arrow {
  width: 15px;
}

.hf-icon {
  font-size: 1.02rem;
  line-height: 1;
}

.hero-stage {
  align-self: center;
  min-height: 560px;
}

.hero-stage::before {
  position: absolute;
  right: 8%;
  bottom: 5%;
  left: 4%;
  height: 18%;
  content: "";
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(18px);
  transform: perspective(300px) rotateX(62deg);
}

.hero-stage img {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 50%;
  width: min(93%, 470px);
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 26px 20px rgba(23, 33, 31, 0.2));
  transform: translateX(-50%);
  animation: float 6s ease-in-out infinite;
}

.stage-ring {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(23, 33, 31, 0.28);
  border-radius: 50%;
}

.ring-one {
  top: 8%;
  right: -2%;
  width: 92%;
  aspect-ratio: 1;
}

.ring-two {
  top: 20%;
  right: 11%;
  width: 66%;
  aspect-ratio: 1;
  border-style: dashed;
}

.string {
  position: absolute;
  z-index: 1;
  top: -22%;
  width: 1px;
  height: 69%;
  background: linear-gradient(to bottom, transparent, rgba(23, 33, 31, 0.55));
  transform-origin: top;
}

.string-one {
  left: 35%;
  transform: rotate(-5deg);
}

.string-two {
  left: 53%;
}

.string-three {
  left: 69%;
  transform: rotate(4deg);
}

.stage-label {
  position: absolute;
  z-index: 3;
  padding: 6px 11px;
  border: 1px solid rgba(23, 33, 31, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.label-speech {
  top: 24%;
  left: -3%;
}

.label-pose {
  top: 53%;
  right: -1%;
}

.label-scene {
  right: 9%;
  bottom: 4%;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(23, 33, 31, 0.72);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.teaser-section,
.abstract-section,
.method-section,
.capabilities-section {
  padding: 120px 0;
}

.section-heading {
  max-width: 670px;
}

.section-heading.compact h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.section-heading.centered {
  max-width: 890px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading.centered > p:last-child {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(23, 33, 31, 0.67);
}

.media-card {
  margin: 46px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.teaser-card img {
  width: 100%;
}

.teaser-card figcaption {
  padding: 19px 24px 21px;
  border-top: 1px solid var(--line);
  color: rgba(23, 33, 31, 0.63);
  font-size: 0.83rem;
}

.overview-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0 120px;
  background: var(--ink);
  color: var(--white);
}

.overview-section::after {
  position: absolute;
  top: -420px;
  right: -260px;
  width: 700px;
  height: 700px;
  content: "";
  border: 1px solid rgba(244, 212, 152, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(244, 212, 152, 0.035), 0 0 0 180px rgba(244, 212, 152, 0.025);
}

.video-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 38px;
}

.video-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
}

.video-heading > p {
  max-width: 370px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  text-align: right;
}

.video-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #080a09;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.video-frame::before {
  display: block;
  padding-top: 56.25%;
  content: "";
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.abstract-section {
  background: linear-gradient(120deg, #f6edda, var(--paper) 40%, #e6efec);
}

.abstract-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 9vw;
}

.abstract-grid .section-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.abstract-copy {
  max-width: 720px;
  color: rgba(23, 33, 31, 0.76);
  font-size: 1.03rem;
}

.abstract-copy .lead {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.25vw, 1.85rem);
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.method-section {
  background: var(--paper);
}

.method-card {
  padding: 20px;
}

.method-card img {
  width: 100%;
  border-radius: 12px;
}

.stage-list {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stage-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.stage-card:nth-child(2) {
  background: #e8f1ee;
}

.stage-card:nth-child(3) {
  background: #f7ecd7;
}

.stage-number {
  display: block;
  margin-bottom: 48px;
  color: rgba(23, 33, 31, 0.38);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.stage-card h3,
.capability-card h3 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.stage-card p,
.capability-card p {
  margin-bottom: 0;
  color: rgba(23, 33, 31, 0.63);
  font-size: 0.88rem;
}

.dataset-section {
  padding: 120px 0;
  overflow: hidden;
  background: #314d56;
  color: var(--white);
}

.dataset-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(300px, 0.75fr) minmax(500px, 1.25fr);
  gap: 7vw;
}

.dataset-copy > p:not(.kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.dataset-stats {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dataset-stats div {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.dataset-stats strong,
.dataset-stats span {
  display: block;
}

.dataset-stats strong {
  color: var(--amber-soft);
  font-size: 1.7rem;
  line-height: 1.2;
}

.dataset-stats span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dataset-visual {
  position: relative;
  width: 52vw;
  max-width: 820px;
  margin: 0;
}

.dataset-visual::before {
  position: absolute;
  z-index: 0;
  inset: -30px -70px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.dataset-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(8, 20, 22, 0.28);
}

.capabilities-section {
  background: var(--paper-deep);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.capability-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.capability-card svg {
  width: 48px;
  margin-bottom: 58px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.promo-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(109, 146, 168, 0.2), transparent 45%),
    #090c0c;
  color: var(--white);
}

.promo-section::before {
  position: absolute;
  top: -330px;
  left: 50%;
  width: 620px;
  height: 620px;
  content: "";
  border: 1px solid rgba(244, 212, 152, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 85px rgba(244, 212, 152, 0.025), 0 0 0 170px rgba(244, 212, 152, 0.02);
  transform: translateX(-50%);
}

.promo-heading {
  position: relative;
  z-index: 1;
}

.promo-heading > p:last-child {
  color: rgba(255, 255, 255, 0.58) !important;
}

.promo-video-frame {
  max-width: 1040px;
  margin: 0 auto;
}

.closing-section {
  padding: 86px 0;
  background: var(--amber);
  color: var(--ink);
}

.closing-section .kicker.light {
  color: rgba(23, 33, 31, 0.6);
}

.closing-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.closing-grid h2 {
  margin-bottom: 0;
}

.closing-button {
  flex-shrink: 0;
  padding: 16px 22px;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 4.5vw;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
}

.footer-mark {
  color: var(--white);
}

footer p {
  margin: 0;
  font-size: 0.7rem;
  text-align: right;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% { transform: translateX(-50%) translateY(0) rotate(-0.5deg); }
  50% { transform: translateX(-50%) translateY(-10px) rotate(0.7deg); }
}

@media (max-width: 980px) {
  .hero {
    min-height: 900px;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    padding-right: 36px;
    padding-left: 36px;
  }

  .hero-stage {
    min-height: 460px;
  }

  .resource-button {
    padding-right: 14px;
    padding-left: 14px;
  }

  .abstract-grid,
  .dataset-grid {
    gap: 50px;
  }

  .dataset-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 620px);
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 16px;
  }

  .pickford-logo {
    top: 21px;
    width: 98px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    display: block;
    min-height: 1020px;
    padding: 126px 20px 90px;
  }

  .hero-copy {
    position: relative;
    z-index: 4;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 15vw, 4rem);
  }

  .hero-intro {
    font-size: 0.96rem;
  }

  .authors {
    font-size: 0.78rem;
  }

  .affiliations {
    gap: 2px 12px;
    font-size: 0.68rem;
  }

  .action-row {
    gap: 8px;
  }

  .resource-button {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 0.75rem;
  }

  .resource-button small {
    display: none;
  }

  .hero-stage {
    min-height: 390px;
    margin-top: 20px;
  }

  .hero-stage img {
    width: 75%;
  }

  .label-speech { left: 5%; }
  .label-pose { right: 3%; }

  .scroll-cue {
    display: none;
  }

  .teaser-section,
  .abstract-section,
  .method-section,
  .capabilities-section,
  .dataset-section,
  .promo-section {
    padding: 84px 0;
  }

  .media-card {
    margin-top: 32px;
    border-radius: 16px;
  }

  .teaser-card {
    overflow-x: auto;
  }

  .teaser-card img {
    width: 900px;
    max-width: none;
  }

  .teaser-card figcaption {
    position: sticky;
    left: 0;
    width: calc(100vw - 34px);
  }

  .overview-section {
    padding: 80px 0 86px;
  }

  .video-heading,
  .closing-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .video-heading > p {
    text-align: left;
  }

  .video-frame {
    border-radius: 14px;
  }

  .abstract-grid,
  .dataset-grid {
    grid-template-columns: 1fr;
  }

  .abstract-grid .section-heading {
    position: static;
  }

  .stage-list,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .stage-card {
    min-height: auto;
  }

  .stage-number,
  .capability-card svg {
    margin-bottom: 32px;
  }

  .method-card {
    overflow-x: auto;
    padding: 12px;
  }

  .method-card img {
    width: 900px;
    max-width: none;
  }

  .dataset-visual {
    width: 100%;
    max-width: none;
  }

  .closing-button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer p {
    text-align: left;
  }
}

@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;
  }
}
