:root {
  --ink: #26162E;
  --blush: #FCEAF0;
  --pink: #FF0062;
  --plum: #B43A80;
  --amber: #FF8038;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --accent: "Fraunces", "Times New Roman", serif;        /* soft pink italic emphasis */
  --numeral: "Instrument Serif", "Times New Roman", serif; /* roman numerals */
  --hand: "Caveat", cursive;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--blush);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--pink); color: #fff; }

/* The accent voice: a soft, rounded serif italic in pink. Fraunces' SOFT axis
   rounds its terminals, and its x-height matches Plus Jakarta Sans, so the two
   sit level at the same size. */
em {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "SOFT" 100;
  font-size: 1.1em;
  letter-spacing: -.035em;
  color: var(--pink);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Type ─────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 1.4em;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--plum);
}

.display, .title {
  margin: 0;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.display { font-size: clamp(2.3rem, 6.2vw, 5.4rem); }
.title   { font-size: clamp(2rem, 4.8vw, 4rem); }

/* ── Nav ──────────────────────────────────────────── */

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 32px) var(--gutter);
}
.nav__logo img { width: clamp(160px, 19vw, 240px); }
.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .8em 1.4em;
  border: 1px solid rgba(252, 234, 240, .3);
  border-radius: 99px;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.nav__cta:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.nav__icon { display: none; }

/* Tablet: just the envelope, no frame */
@media (max-width: 1024px) {
  .nav__label { display: none; }
  .nav__icon { display: block; }
  .nav__cta { padding: 8px; border: 0; border-radius: 8px; color: var(--blush); }
  .nav__cta:hover { background: none; color: var(--pink); transform: translateY(-2px) rotate(-6deg); }
}
/* Phone: the logo has the top to itself */
@media (max-width: 600px) {
  .nav { justify-content: center; padding-top: 26px; }
  .nav__cta { display: none; }
  .nav__logo img { width: 164px; }
}

/* ── Hero ─────────────────────────────────────────── */

.hero { height: 240vh; position: relative; }
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__copy {
  grid-area: 1 / 1;
  position: relative;
  text-align: center;
  padding: 0 var(--gutter);
  margin-top: -6vh;
  will-change: opacity, transform;
}
.hero__copy--after { opacity: 0; pointer-events: none; }

.hero__emblem {
  width: clamp(60px, 7vw, 96px);
  margin: 0 auto 1.6rem;
  animation: spin 24s linear infinite;
}
.hero__hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 12px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em; /* optically re-centre the tracked word */
  text-transform: uppercase;
  color: var(--blush);
}
.hero__hint svg {
  color: var(--pink);
  overflow: visible;
  animation: nudge 2s var(--ease) infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge {
  0%, 100% { transform: translateY(-4px); }
  55% { transform: translateY(6px); }
}
/* ── Movements (focus areas) ──────────────────────── */

.movements {
  background: var(--blush);
  color: var(--ink);
  padding: clamp(80px, 12vw, 170px) 0;
}
.movements__intro {
  max-width: 30em;
  margin: 1.4rem 0 clamp(40px, 6vw, 80px);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.moves { list-style: none; margin: 0; padding: 0; }
.move { border-top: 1px solid rgba(38, 22, 46, .18); }
.move:last-child { border-bottom: 1px solid rgba(38, 22, 46, .18); }

.move__head {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: grid;
  grid-template-columns: clamp(40px, 7vw, 110px) 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: clamp(20px, 2.6vw, 34px) 0;
  cursor: pointer;
  transition: padding .5s var(--ease), color .3s;
}
.move__head:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.move__num {
  font-family: var(--numeral);
  font-style: italic;
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  color: var(--plum);
}
.move__name {
  font-size: clamp(1.3rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.move__plus {
  position: relative;
  width: 22px;
  height: 22px;
  align-self: center;
}
.move__plus::before, .move__plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease);
}
.move__plus::after { transform: rotate(90deg); }

.move__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.move__body > div {
  overflow: hidden;
  padding-left: calc(clamp(40px, 7vw, 110px) + 12px);
}
.move__body p {
  margin: 0 0 1.2rem;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 42rem;
}
.move__body ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 42rem;
  margin: 0;
  padding: 0 0 clamp(26px, 3vw, 40px);
}
.move__body li {
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.2;
  padding: .7em 1em;
  background: rgba(38, 22, 46, .065);
  border-radius: 8px;
}

.move.is-open .move__body { grid-template-rows: 1fr; }
.move.is-open .move__head { color: var(--pink); }
.move.is-open .move__plus::after { transform: rotate(0deg); }
@media (hover: hover) {
  .move__head:hover { color: var(--pink); padding-left: 14px; }
}

/* ── Team ─────────────────────────────────────────── */

.team {
  padding: clamp(90px, 13vw, 190px) 0;
  overflow: hidden;
}
.team__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.team__copy > p:not(.eyebrow) {
  max-width: 26em;
  margin: 1.6rem 0 0;
  color: rgba(252, 234, 240, .8);
}

.creed {
  list-style: none;
  margin: clamp(28px, 3.4vw, 44px) 0 0;
  padding: 0;
  border-top: 1px solid rgba(252, 234, 240, .16);
}
.creed li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  align-items: baseline;
  padding: .95em 0;
  border-bottom: 1px solid rgba(252, 234, 240, .16);
}
.creed b {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
}
.creed span { color: rgba(252, 234, 240, .85); }

.polaroid {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  margin: 0;
  padding: clamp(12px, 1.4vw, 18px) clamp(12px, 1.4vw, 18px) 0;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
  transform: perspective(1100px) rotate(-2.5deg) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s;
}
.polaroid:hover { box-shadow: 0 44px 90px -24px rgba(255, 0, 98, .5); }
.polaroid__photo { overflow: hidden; border-radius: 2px; }
.polaroid__photo img {
  width: 100%;
  transform: scale(1.04);
  transition: transform 1.2s var(--ease);
}
.polaroid:hover .polaroid__photo img { transform: scale(1.09); }
.polaroid figcaption {
  font-family: var(--hand);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  text-align: center;
  padding: .55em 0 .65em;
  color: var(--ink);
}
.polaroid__tape {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 120px;
  height: 32px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(255, 0, 98, .55);
  z-index: 2;
}

/* ── Finale ───────────────────────────────────────── */

.finale {
  background: var(--blush);
  color: var(--ink);
  text-align: center;
  padding: clamp(100px, 14vw, 200px) 0;
}
.finale__emblem {
  width: clamp(72px, 9vw, 120px);
  margin: 0 auto 2.4rem;
  animation: spin 24s linear infinite;
}
.button {
  display: inline-block;
  margin-top: clamp(32px, 4vw, 56px);
  padding: 1.05em 2.2em;
  background: var(--pink);
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border-radius: 99px;
  box-shadow: 0 0 0 0 rgba(255, 0, 98, .5);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.button:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 0 0 12px rgba(255, 0, 98, .14); }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 26px var(--gutter);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(252, 234, 240, .55);
}

/* ── Scroll reveal ────────────────────────────────── */

.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ── Small screens ────────────────────────────────── */

@media (max-width: 820px) {
  .team__grid { grid-template-columns: 1fr; gap: 56px; }
  .move__body > div { padding-left: 0; }
  .footer { justify-content: center; text-align: center; }
}

/* ── Reduced motion: skip the drama, keep the harmony ─ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero__copy--before, .hero__hint { display: none; }
  .hero__copy--after { opacity: 1; }
  .hero__emblem, .finale__emblem, .hero__hint svg { animation: none; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .polaroid { transition: none; }
}
