/* ============================================================
   Lupa Studios - homepage
   Layout matches the Paper artboard "Lupa Studios - Home" (90rem)
   pixel for pixel at desktop; interactions ported from studiolinear.com.
   ============================================================ */

@font-face {
  font-family: 'Bootzy TM';
  src: url('./fonts/BootzyTM.woff2') format('woff2'),
       url('./fonts/BootzyTM.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #663F24;
  --blue: #C0F1FD;
  --cream: #E6DEC9;
  --cream-2: #D9CFB8;
  --dark-blue: #9fdff0;
  --pad: 2.5rem;
  --font: 'Bootzy TM', Arial, sans-serif;
}

* { box-sizing: border-box; }
/* Fluid scale: 16px at 1440 wide, everything in rem so the whole layout scales with the viewport. */
html { -webkit-text-size-adjust: 100%; font-size: calc(100vw / 90); }
body {
  margin: 0;
  background: var(--brown);
  color: var(--blue);
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; }

/* ---------- Custom cursor: the swirl on brown, the normal pointer on light blue ---------- */
html {
  cursor: url('./assets/cursor-swirl.png') 16 20, auto;
  cursor: -webkit-image-set(url('./assets/cursor-swirl.png') 1x, url('./assets/cursor-swirl@2x.png') 2x) 16 20, auto;
  cursor: image-set(url('./assets/cursor-swirl.png') 1x, url('./assets/cursor-swirl@2x.png') 2x) 16 20, auto;
}
/* links/buttons on brown keep the swirl (UA stylesheet would force a pointer) */
a, button { cursor: inherit; }
/* light-blue surfaces: back to the system cursor, pointer on their links */
.hero-copy, .team-card, .partners-bar, .pill, .say-hello,
.medium-button:hover, .button-2:hover, .sticky-navbar .nav-link:hover {
  cursor: auto;
}
.hero-copy a, .team-card a, .say-hello, .medium-button:hover, .button-2:hover { cursor: pointer; }

h1, h2, h3, p { margin: 0; font-weight: 400; }

/* ---------- Page container: 1440 design, scales down below ---------- */
.header, .hero, .marquee-section, .events, .book-event, .team, .partners, .footer {
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
}

/* ---------- Header (Paper: padding 24 40 16, gap 8) ---------- */
.header { padding: 1.5rem var(--pad) 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.wordmark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.5rem;
  text-decoration: none;
}
.logo-lupa { width: 30.75rem; height: 9.0625rem; object-fit: contain; flex-shrink: 0; }
.logo-studios-wrap { position: relative; width: 52.5rem; aspect-ratio: 979 / 189; flex-shrink: 0; }
.logo-studios { width: 100%; height: 100%; object-fit: contain; }
/* The swirl "O" - positioned exactly where it was cut out of the wordmark. */
.logo-swirl {
  position: absolute;
  left: 71.81%;
  top: 0.53%;
  width: 15.63%;
  height: 98.94%;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
  transform-origin: 50% 50%;
  will-change: transform;
}
.nav-menu { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 0.5rem; }
.nav-link {
  font-size: 1.375rem;
  line-height: 1.75rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: filter .2s;
}
.nav-link:hover { filter: blur(2px); }

/* ---------- Slim sticky navbar (original IX2 "Show Slim Navbar") ---------- */
.sticky-navbar {
  z-index: 500;
  position: fixed;
  inset: 0 0 auto;
  background: var(--brown);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-6.25rem);
  opacity: 0;
  transition: transform .5s, opacity .5s;
  pointer-events: none;
}
.sticky-navbar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-container { display: flex; align-items: center; padding: 0.5rem var(--pad); gap: 6rem; }
.sticky-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; text-decoration: none; }
.sticky-brand img { height: 2.25rem; width: auto; }
.sticky-brand img:last-child { height: 2.5rem; }
.sticky-menu { display: flex; justify-content: flex-end; align-items: center; gap: 12rem; margin-left: auto; }
.sticky-menu .nav-link { padding: 0.5rem 0; }

/* ---------- Landing intro: a fixed curtain over the page; the first scroll lifts it ---------- */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}
.landing {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--brown);
  transform: translateY(0);
  transition: transform 1100ms var(--ease-in-out);
  will-change: transform;
}
.landing-logo {
  width: 46rem; max-width: 80vw; height: auto;
  transform: scale(1);
  opacity: 1;
  transition: transform 700ms var(--ease-out), opacity 550ms var(--ease-out);
}
.landing.is-done { transform: translateY(-100%); pointer-events: none; }
.landing.is-done .landing-logo { transform: scale(0.94) translateY(-1.5rem); opacity: 0; }
.landing.is-gone { display: none; }
body.is-landing { overflow: hidden; }
body.is-landing .purpose-bar,
body.is-landing .sticky-navbar,
body.is-landing .flying-img { display: none; }
@media (prefers-reduced-motion: reduce) {
  .landing { transition: opacity 300ms var(--ease-out); }
  .landing.is-done { transform: none; opacity: 0; }
  .landing-logo { transition: none; }
  .landing.is-done .landing-logo { transform: none; }
}

/* ---------- Hero card: sticky copy in the blue column, photos stacked on the right ---------- */
.hero { padding: 0 var(--pad); }
.hero-card { display: flex; background: var(--blue); border-radius: 0.875rem; overflow: clip; }
.hero-copy-col { width: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: stretch; }
.hero-copy {
  position: sticky;
  top: 6rem;                         /* clears the slim navbar; stays until the blue column ends */
  display: flex; flex-direction: column; align-items: center;
  padding: 6rem 3rem 3rem;
  gap: 1.375rem;
  color: var(--brown);
}
.hero-photo-col { width: 50%; flex-shrink: 0; display: flex; flex-direction: column; }
.hero-title {
  font-size: 5.25rem;
  line-height: 5.75rem;
  letter-spacing: 0.04em;
  text-align: center;
  white-space: pre;
}
.hero-services { font-size: 1rem; line-height: 1.375rem; text-align: center; }
.hero-blurb { width: 28.125rem; font-size: 1rem; line-height: 1.375rem; text-align: center; padding-top: 0.375rem; text-wrap: pretty; }
.hero-cta {
  display: flex;
  padding: 0.625rem 1.75rem;
  border-radius: 62.4375rem;
  background: var(--brown);
  color: var(--blue);
  font-size: 0.875rem;
  line-height: 1.125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .4s, color .4s, transform .3s ease-out;
}
.hero-cta:hover { background: var(--dark-blue); color: var(--brown); transform: scale(1.04); }
.hero-link-block { display: flex; flex-direction: column; align-items: center; width: 33.75rem; padding-top: 1.25rem; }
.rule { width: 100%; height: 2px; background: var(--brown); flex-shrink: 0; }
.rule.blue { background: var(--blue); }
.view-project {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 0.625rem 0;
  font-size: 1.25rem;
  line-height: 1.625rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter .4s, font-size .4s;
}
.view-project:hover { filter: blur(0.15625rem); font-size: 1.3125rem; }
.view-project .arrow { width: 2.25rem; height: 1.25rem; flex-shrink: 0; transition: transform .3s ease-out; }
.view-project:hover .arrow { transform: translateX(0.375rem); }
/* one 2:3 photo, sized to the column so nothing is cropped; crossfades between three */
.hero-image { display: block; position: relative; width: 100%; aspect-ratio: 2 / 3; flex-shrink: 0; background: var(--cream); overflow: hidden; }
.slideshow .slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0;
  transition: opacity 1.2s var(--ease-in-out);
}
.slideshow .slide.is-active { opacity: 1; }

/* Sticky "Start here" bar (original: last element in body, position sticky bottom 0) */
.purpose-bar {
  position: sticky;
  bottom: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: 0 var(--pad);
  background: var(--brown);
  border-top: 2px solid var(--blue);
  transition: transform .3s cubic-bezier(.23,1,.32,1); /* outQuint */
}
.purpose-bar.is-hidden { transform: translateY(100%); }
.purpose-bar.is-gone { display: none; }
.callout-title { font-size: 1.25rem; line-height: 1.5rem; flex-shrink: 0; }
.purpose-buttons { display: flex; justify-content: space-around; align-items: center; flex: 1; }
.medium-button {
  display: flex;
  padding: 0.375rem 1.375rem;
  border: 2px solid var(--blue);
  border-radius: 62.4375rem;
  font-size: 0.875rem;
  line-height: 1.125rem;
  text-decoration: none;
  transition: background-color .4s, color .4s;
}
.medium-button:hover { background: var(--blue); color: var(--brown); }
.button-2 {
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem; flex-shrink: 0;
  border: 2px solid var(--blue);
  font-size: 0.875rem;
  line-height: 1.125rem;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button-2:hover { background: var(--blue); color: var(--brown); }

/* ---------- Marquee (Paper: 4rem, 1.125rem; original: 60s linear loop) ---------- */
.marquee-section { height: 4rem; display: flex; align-items: center; overflow: hidden; }
.marquee-text {
  display: flex;
  width: max-content;
  font-size: 1.125rem;
  line-height: 1.5rem;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Events (Paper: 3 × 26.625rem, gap 40) ---------- */
.events { padding: 0 var(--pad); display: flex; gap: 2.5rem; }
.event-card { width: 26.625rem; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.375rem; }
.event-image-link {
  display: block;
  width: 26.625rem;
  height: 26.625rem;
  border-radius: 0.875rem;
  overflow: hidden;
  transition: border-radius .3s; /* original: 1rem → 6rem on hover */
}
.event-image-link:hover { border-radius: 6rem; }
.event-image { width: 100%; height: 100%; background: var(--cream) center / cover; }
.event-info { display: flex; flex-direction: column; gap: 1rem; }
.event-title-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0.625rem; }
.event-title { font-size: 1.1875rem; line-height: 1.5rem; letter-spacing: 0.04em; white-space: pre; }
.pill {
  display: flex;
  padding: 0.3125rem 1rem;
  border-radius: 62.4375rem;
  background: var(--blue);
  color: var(--brown);
  font-size: 0.75rem;
  line-height: 1rem;
}
.event-summary { font-size: 1rem; line-height: 1.4rem; }

/* ---------- Book an event (Paper: 32/40/8; hover = original "view more work") ---------- */
.book-event { padding: 2rem var(--pad) 0.5rem; display: flex; flex-direction: column; }
.view-more-work {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.125rem;
  padding: 0.875rem 0;
  font-size: 1.625rem;
  line-height: 2rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: all .4s, filter .4s;
}
.view-more-work:hover { filter: blur(2px); transform: scale3d(1.05, 1.1, 1); }
.view-more-work .arrow { width: 2.75rem; height: 1.5rem; flex-shrink: 0; }

/* ---------- Meet the team (Paper) ---------- */
.team { padding: 1rem var(--pad) 2.5rem; }
.team-card {
  background: var(--blue);
  color: var(--brown);
  border-radius: 0.875rem;
  overflow: clip;
  padding: 4.5rem 4rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.team-title { font-size: 6rem; line-height: 5.75rem; letter-spacing: 0.04em; white-space: pre; }
.members { display: flex; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.member { width: 21rem; flex-shrink: 0; display: flex; flex-direction: column; gap: 1.25rem; text-decoration: none; color: inherit; cursor: pointer; }
.member:hover .member-name { filter: blur(2px); }
.member.offset { padding-top: 0; }
.portrait {
  width: 21rem;
  height: 28rem;
  flex-shrink: 0;
  background: var(--cream) center top / cover no-repeat;
}
.portrait.arch-top { border-radius: 10.5rem 10.5rem 0.875rem 0.875rem; }
.portrait.square { border-radius: 0.875rem; }
.portrait.arch-bottom { border-radius: 0.875rem 0.875rem 10.5rem 10.5rem; }
.portrait { transition: border-radius .3s; }
.member:hover .portrait { border-radius: 0.875rem; }
.member-name { font-size: 2.125rem; line-height: 2.5rem; }
.member-bio { font-size: 1rem; line-height: 1.4rem; }

/* ---------- Partners (Paper sizes; original 60s track) ---------- */
.partners { border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
.partners-bar {
  display: flex; align-items: center; justify-content: center;
  height: 2.25rem;
  background: var(--blue);
  color: var(--brown);
  font-size: 0.9375rem;
  line-height: 1.25rem;
}
.partners-track-wrap { height: 7rem; display: flex; align-items: center; overflow: hidden; }
.partners-track { display: flex; width: max-content; animation: track 60s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partners-row { display: flex; align-items: center; gap: 1.5rem; padding: 0 3rem; width: 100vw; justify-content: space-between; }
.partner { object-fit: contain; flex-shrink: 0; }
.partner.posh { width: 7rem; height: 2.5rem; }
.partner.genspace { width: 11.875rem; height: 2.125rem; }
.partner.bloom { width: 10.625rem; height: 2.875rem; }
.partner.craft { width: 10rem; height: 3rem; }
.partner.nostrangers { width: 12.25rem; height: 2rem; }
.partner.drumsticks { width: 10.625rem; height: 1.125rem; }
@keyframes track { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Footer (Paper: 18.75rem, 480 / 1fr / 480) ---------- */
.footer { display: flex; height: 18.75rem; }
.footer-left {
  width: 30rem; flex-shrink: 0;
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  border-right: 2px solid var(--blue);
}
.footer-logo { width: 17.5rem; height: 6.875rem; object-fit: contain; }
.footer-meta { display: flex; flex-direction: column; gap: 2px; font-size: 0.8125rem; line-height: 1.125rem; letter-spacing: 0.04em; }
.footer-link { text-decoration: none; transition: filter .2s; }
.footer-link:hover { filter: blur(2px); }
.say-hello {
  align-self: flex-start;
  display: flex;
  padding: 0.5rem 1.625rem;
  border-radius: 62.4375rem;
  background: var(--blue);
  color: var(--brown);
  font-size: 0.8125rem;
  line-height: 1rem;
  text-decoration: none;
  transition: background-color .4s;
}
.say-hello:hover { background: var(--dark-blue); }
.footer-middle {
  flex: 1;
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  border-right: 2px solid var(--blue);
}
.swirl-game-text { font-size: 0.9375rem; line-height: 1.25rem; text-align: center; }
.swirl-toy {
  background: none; border: 0; padding: 0; cursor: inherit;
  outline: none; -webkit-tap-highlight-color: transparent; user-select: none;
  width: 5.625rem; height: 6.875rem; margin-bottom: 0.5rem;
  transition: transform .9s cubic-bezier(.22,.61,.36,1);
  transform: rotate(var(--spin, 0deg));
}
.swirl-toy:focus, .swirl-toy:focus-visible, .swirl-toy:active { outline: none; box-shadow: none; }
.swirl-toy img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.footer-right {
  width: 30rem; flex-shrink: 0;
  padding: 1.75rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.footer-nav { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; }
.footer-nav-link { font-size: 1.375rem; line-height: 1.75rem; text-decoration: none; transition: filter .2s; }
.footer-nav-link:hover { filter: blur(2px); }
.legal { font-size: 0.75rem; line-height: 1rem; letter-spacing: 0.04em; opacity: .6; text-align: center; }

/* ---------- Flying swirl (original "flying-img" script) ---------- */
.flying-img {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  width: 11.25rem;
  height: auto;
  transform: translate(-12.5rem, 0) rotate(0deg);
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 900px) {
  /* Stop scaling below tablet: lock to 16px and reflow. */
  html { font-size: 16px; }
  :root { --pad: 1.25rem; }
  .wordmark-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .logo-lupa { width: 60vw; height: auto; }
  .logo-studios-wrap { width: 88vw; height: auto; aspect-ratio: 979 / 189; }
  .nav-link { font-size: 1.125rem; }
  .hero-card { flex-direction: column; }
  .hero-copy-col, .hero-photo-col { width: 100%; }
  .hero-copy { position: static; padding: 3rem 1.5rem; }
  .landing-logo { max-width: 80vw; }
  .hero-title { font-size: 2.5rem; line-height: 1.1; white-space: normal; }
  .hero-blurb, .hero-link-block { width: 100%; }
  .purpose-bar { height: auto; flex-wrap: wrap; gap: 0.625rem; padding: 0.75rem var(--pad); }
  .purpose-buttons { flex-wrap: wrap; gap: 0.5rem; justify-content: flex-start; }
  .callout-title { font-size: 1rem; }
  .events { flex-direction: column; }
  .event-card, .event-image-link { width: 100%; }
  .event-image-link { height: auto; aspect-ratio: 1; }
  .team-card { padding: 2.5rem 1.5rem 3rem; }
  .team-title { font-size: 3.25rem; line-height: 1; }
  .members { flex-direction: column; }
  .member { width: 100%; }
  .member.offset { padding-top: 0; }
  .portrait { width: 100%; height: auto; aspect-ratio: 3 / 4; }
  .partners-row { width: auto; gap: 3rem; }
  .footer { flex-direction: column; height: auto; }
  .footer-left, .footer-right { width: 100%; }
  .footer-left, .footer-middle { border-right: 0; border-bottom: 2px solid var(--blue); }
  .sticky-container { gap: 1.5rem; }
  .sticky-menu .nav-link { font-size: 1rem; }
}

/* ============================================================
   WORKSHOPS - horizontal scroll (original: .work-horizontal-section)
   The frame sticks under the nav; as you scroll, the strip translates
   0 → −93% and the offset grows 0 → 100vw (pushes the intro off right).
   ============================================================ */
.work-horizontal-section { background: var(--brown); position: relative; }
.work-sticky-frame {
  position: sticky;
  top: 4rem;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  height: calc(100vh - 6rem);
  overflow: hidden;
}
.work-horizontal-offset { flex: none; width: 0; }
.work-projects-content_wrapper {
  position: relative;
  flex: 0 auto;
  min-width: 33vw;
  max-width: 50vw;
  background: var(--brown);
}
.project-description-container { width: 100%; padding: 1rem 1rem 1rem var(--pad); }
.project-description { display: flex; flex-direction: column; gap: 1.25rem; color: var(--blue); }
.work-list_heading { font-size: 3rem; line-height: 3.25rem; letter-spacing: 0.04em; white-space: pre; }
.work-paragraph { width: 24rem; font-size: 1rem; line-height: 1.375rem; text-wrap: pretty; }
.horizontal-wrap { flex: none; }
.horizontal-strip { display: flex; flex: none; will-change: transform; }
.horizontal-item { flex: none; }
.work-tile_wrapper {
  display: block;
  width: calc(100vh - 6rem);   /* --_ui---work-tile-width */
  aspect-ratio: 1;
  text-decoration: none;
  cursor: inherit;
}
.work-tile_content { position: relative; width: 100%; height: 100%; overflow: hidden; }
.work-tile-image {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: var(--cream) center / cover;
}
.work-tile-image.blurred {
  z-index: 2;
  width: 120%; height: 120%; top: -10%; left: -10%;
  filter: blur(14px);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .5s ease-out, transform .5s ease-out;
  background: var(--cream-2);
}
.work-tile_overlay {
  position: absolute; inset: 0; z-index: 3;
  background: rgba(102, 63, 36, 0.35);
  opacity: 0;
  transition: opacity .5s ease-out;
}
.work-tile_title-wrapper {
  position: absolute; left: 0; top: 0; right: 0; z-index: 10;
  padding: 1rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(102,63,36,0.55) 0%, rgba(102,63,36,0) 100%);
}
.work-tile_logo { display: block; object-fit: contain; object-position: left center; max-width: 100%; }
.work-tile_reveal-content {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 2rem;
  color: var(--blue);
  opacity: 0;
  transition: opacity .5s ease-out;
}
.work-tile_reveal-text { max-width: 30rem; padding-bottom: 5rem; font-size: 1.125rem; line-height: 1.6rem; }
.work-tile_content:hover .work-tile-image.blurred { opacity: 1; transform: scale(1); }
.work-tile_content:hover .work-tile_overlay,
.work-tile_content:hover .work-tile_reveal-content { opacity: 1; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-statement { position: relative; display: flex; flex-direction: column; gap: 1.5rem; padding: 5.5rem var(--pad) 4.5rem; }
.about-statement_text {
  width: 56.25rem;
  max-width: 100%;
  font-size: 1.875rem;
  line-height: 2.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: justify;
  color: var(--blue);
}
.about-photo { width: 100%; height: 45rem; background: var(--cream) center / cover; }
.eggshell {
  display: flex; flex-direction: row; align-items: center;
  padding: 6rem var(--pad) 5rem;
  gap: 4rem;
}
.eggshell-copy { display: flex; flex-direction: column; gap: 1.5rem; width: 30rem; flex-shrink: 0; }
.eggshell-title { font-size: 4rem; line-height: 4.25rem; letter-spacing: 0.04em; white-space: pre; }
.eggshell-text { font-size: 1.125rem; line-height: 1.625rem; }
.eggshell-steps { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.25rem; }
.step-pill {
  display: flex; padding: 0.375rem 1.125rem;
  border: 2px solid var(--blue); border-radius: 62.4375rem;
  font-size: 0.8125rem; line-height: 1.125rem; letter-spacing: 0.04em;
}
.video-slot {
  position: relative;
  flex: 1; min-width: 0;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border-radius: 0.875rem;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.eggshell-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.video-slot.is-playing .play-button { opacity: 0; pointer-events: none; }
.play-button {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 6rem; height: 6rem; border-radius: 50%; border: 0;
  background: rgba(102, 63, 36, 0.85); color: var(--blue);
  cursor: inherit;
  transition: transform .3s ease-out, background-color .3s, opacity .3s;
}
.play-button:hover { transform: scale(1.08); background: var(--brown); }
.play-button svg { margin-left: 4px; }

.faq { display: flex; flex-direction: column; gap: 1.5rem; padding: 2.5rem var(--pad) 4.5rem; }
.faq-title { font-size: 2.5rem; line-height: 2.875rem; letter-spacing: 0.04em; }
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--blue); color: var(--brown); border-radius: 0.5rem; overflow: hidden; cursor: auto; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1rem 1.25rem 1rem 1.5rem;
  background: none; border: 0; text-align: left;
  font: inherit; font-size: 1.125rem; line-height: 1.5rem; letter-spacing: 0.04em; color: inherit;
  cursor: pointer;
}
.faq-plus {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--brown); color: var(--blue);
  transition: transform .3s ease-out;
}
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-answer {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease-out;
}
.faq-answer > p { overflow: hidden; min-height: 0; padding: 0 1.5rem; font-size: 1rem; line-height: 1.5rem; opacity: 0; transition: opacity .3s, padding .35s; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { opacity: 1; padding: 0 1.5rem 1.25rem; }
.faq-cta { display: flex; gap: 1rem; padding-top: 1.5rem; }
.pill-link {
  display: flex; padding: 0.5rem 1.625rem;
  border: 2px solid var(--blue); border-radius: 62.4375rem;
  font-size: 0.8125rem; line-height: 1rem; letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color .4s, color .4s;
}
.pill-link:hover { background: var(--blue); color: var(--brown); cursor: pointer; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { display: flex; align-items: flex-start; gap: 5rem; padding: 3.5rem var(--pad) 5rem; }
.contact-intro { display: flex; flex-direction: column; gap: 1.5rem; width: 30rem; flex-shrink: 0; padding-top: 0.5rem; }
.contact-title { font-size: 4.5rem; line-height: 4.75rem; letter-spacing: 0.04em; white-space: pre; }
.contact-text { font-size: 1.125rem; line-height: 1.625rem; }
.contact-direct { display: flex; flex-direction: column; gap: 0.375rem; padding-top: 0.5rem; }
.contact-label { font-size: 0.8125rem; line-height: 1.125rem; letter-spacing: 0.1em; opacity: .6; }
.contact-email { font-size: 1.125rem; line-height: 1.5rem; text-decoration: none; transition: filter .2s; }
.contact-email:hover { filter: blur(2px); }
.form-card {
  flex: 1;
  display: flex; flex-direction: column; gap: 1.5rem;
  background: var(--blue); color: var(--brown);
  border-radius: 0.875rem;
  padding: 3rem;
  cursor: auto;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field-label { font-size: 0.8125rem; line-height: 1.125rem; letter-spacing: 0.1em; }
.field-input {
  width: 100%; height: 3.25rem; padding: 0 1rem;
  border: 2px solid var(--brown); border-radius: 0.5rem;
  background: var(--blue); color: var(--brown);
  font: inherit; font-size: 1rem; line-height: 1.375rem; letter-spacing: 0.03em;
  outline: none;
  transition: background-color .2s;
}
.field-input::placeholder { color: var(--brown); opacity: .5; }
.field-input:focus { background: #fff; }
.field-input.is-invalid { border-color: #b8432b; }
.field-textarea { height: 12.5rem; padding: 0.875rem 1rem; resize: vertical; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; }
.form-note { font-size: 0.8125rem; line-height: 1.125rem; opacity: .7; }
.send-button {
  display: flex; align-items: center; gap: 0.875rem;
  padding: 0.75rem 1.75rem;
  border: 0; border-radius: 62.4375rem;
  background: var(--brown); color: var(--blue);
  font: inherit; font-size: 0.875rem; line-height: 1.125rem; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color .3s, transform .3s ease-out;
}
.send-button:hover { transform: scale(1.04); }
.send-button .arrow { transition: transform .3s ease-out; }
.send-button:hover .arrow { transform: translateX(4px); }

@media screen and (max-width: 900px) {
  .work-sticky-frame { position: static; height: auto; flex-direction: column; overflow: visible; }
  .work-projects-content_wrapper { max-width: 100%; min-width: 0; }
  .horizontal-strip { flex-direction: column; transform: none !important; }
  .work-horizontal-offset { display: none; }
  .work-tile_wrapper { width: 100%; }
  .work-list_heading { font-size: 2.25rem; line-height: 2.5rem; }
  .eggshell-title { font-size: 2.75rem; line-height: 3rem; }
  .eggshell { flex-direction: column; align-items: stretch; gap: 2rem; }
  .eggshell-copy { width: 100%; }
  .video-slot, .eggshell-video { width: 100%; }
  .contact { flex-direction: column; gap: 2rem; }
  .contact-intro { width: 100%; }
  .form-card { padding: 1.5rem; }
  .form-footer { flex-direction: column; align-items: flex-start; }
  .faq-cta { flex-wrap: wrap; }
}


/* ============================================================
   PHONE (≤ 640px): nav-only header, no sticky bar, full-width forms, tighter rhythm
   ============================================================ */
@media screen and (max-width: 640px) {
  :root { --pad: 1rem; }
  html { font-size: 15px; overflow-x: hidden; }
  body { overflow-x: hidden; width: 100%; }
  .marquee-section, .partners-track-wrap, .work-horizontal-section { max-width: 100vw; overflow: hidden; }
  .partners-row { width: max-content; }

  /* header: drop the big wordmark, keep just the three links */
  .header { padding: 1rem var(--pad) 0.75rem; gap: 0; }
  .wordmark-row { display: none; }
  .nav-menu { padding-top: 0; justify-content: space-between; }
  .nav-link { font-size: 1.125rem; line-height: 1.5rem; }

  /* slim sticky nav: links only */
  .sticky-brand { display: none; }
  .sticky-container { padding: 0.5rem var(--pad); gap: 0; }
  .sticky-menu { gap: 0; margin-left: 0; width: 100%; justify-content: space-between; }
  .sticky-menu .nav-link { font-size: 1rem; padding: 0.375rem 0; }

  /* the START HERE bar is gone on phones */
  .purpose-bar { display: none !important; }

  /* landing */
  .landing-logo { width: 78vw; max-width: 78vw; }

  /* hero */
  .hero-card { border-radius: 0.75rem; }
  .hero-copy { padding: 2.25rem 1.25rem 2rem; gap: 1rem; }
  .hero-title { font-size: 2.125rem; line-height: 1.1; }
  .hero-blurb { font-size: 0.9375rem; line-height: 1.4; padding-top: 0.25rem; }
  .hero-link-block { padding-top: 0.75rem; }
  .view-project { font-size: 1rem; }
  .hero-image { aspect-ratio: 2 / 3; }

  /* marquee */
  .marquee-section { height: 3rem; }
  .marquee-text { font-size: 0.9375rem; }

  /* events */
  .events { gap: 2rem; }
  .event-card { gap: 1rem; }
  .event-title { font-size: 1.125rem; white-space: normal; }
  .event-summary { font-size: 0.9375rem; line-height: 1.4; }
  .book-event { padding: 1.5rem var(--pad) 0.5rem; }
  .view-more-work { font-size: 1.25rem; line-height: 1.5rem; gap: 0.75rem; }
  .view-more-work .arrow { width: 2rem; height: 1.125rem; }

  /* team */
  .team { padding: 1rem var(--pad) 2rem; }
  .team-card { padding: 2rem 1.25rem 2.25rem; gap: 2rem; border-radius: 0.75rem; }
  .team-title { font-size: 2.5rem; line-height: 1; }
  .members { gap: 2rem; }
  .member-name { font-size: 1.5rem; line-height: 1.2; }
  .member-bio { font-size: 0.9375rem; line-height: 1.4; }

  /* partners */
  .partners-bar { height: 2rem; font-size: 0.8125rem; }
  .partners-track-wrap { height: 4.5rem; }
  .partners-row { gap: 2rem; padding: 0 1.5rem; }
  .partner { transform: scale(0.75); transform-origin: center; }

  /* footer */
  .footer-left, .footer-middle, .footer-right { padding: 1.5rem var(--pad); }
  .footer-left { align-items: center; text-align: center; }
  .footer-meta { align-items: center; }
  .say-hello { align-self: center; }
  .footer-logo { width: 12rem; height: auto; }
  .swirl-toy { width: 3.5rem; height: 4.25rem; margin: 0.75rem 0 0; }
  .footer-nav-link { font-size: 1.125rem; }
  .right-footer, .footer-right { gap: 1.5rem; }

  /* flying swirl: small, and never over the nav */
  .flying-img { width: 3.5rem !important; }

  /* workshops page */
  .work-horizontal-section { height: auto !important; }
  .work-sticky-frame { height: auto; }
  .project-description-container { padding: 1.5rem var(--pad) 1rem; }
  .work-list_heading { font-size: 2rem; line-height: 1.1; }
  .work-paragraph { width: 100%; font-size: 0.9375rem; line-height: 1.4; }
  .horizontal-wrap { width: 100%; }
  .horizontal-strip { flex-direction: column; gap: 0.75rem; width: 100%; }
  .horizontal-item { width: 100%; }
  .horizontal-item.no-photo { display: none; }   /* No Strangers has no photo yet: hide on phones */
  .work-tile_wrapper { width: 100%; aspect-ratio: 1; }
  .work-tile_content { height: 100%; }
  .work-tile_title-wrapper { padding: 0.75rem 1rem 1.5rem; }
  .work-tile_logo { max-width: 55% !important; height: auto !important; }
  .work-tile_reveal-text { font-size: 0.9375rem; line-height: 1.4; padding-bottom: 1rem; }
  /* no hover on touch: show the blurb by default in a band at the bottom */
  .work-tile_reveal-content { opacity: 1; justify-content: flex-end; padding: 1rem; background: linear-gradient(0deg, rgba(102,63,36,0.75) 0%, rgba(102,63,36,0) 60%); }
  .work-tile_reveal-text { max-width: 100%; }

  /* about page */
  .about-statement { padding: 2.5rem var(--pad) 2rem; gap: 1rem; }
  .about-statement_text { font-size: 1.125rem; line-height: 1.6; text-align: left; letter-spacing: 0.04em; }
  .about-photo { height: 14rem; }
  .eggshell { padding: 2.5rem var(--pad) 2rem; gap: 1.5rem; }
  .eggshell-title { font-size: 2.125rem; line-height: 1.1; }
  .eggshell-text { font-size: 0.9375rem; line-height: 1.4; }
  .step-pill { font-size: 0.75rem; padding: 0.3rem 0.75rem; }
  .faq { padding: 1.5rem var(--pad) 2.5rem; gap: 1rem; }
  .faq-title { font-size: 1.625rem; line-height: 1.2; }
  .faq-question { font-size: 0.9375rem; line-height: 1.3; padding: 0.875rem 1rem; }
  .faq-answer > p, .faq-item.is-open .faq-answer > p { padding-left: 1rem; padding-right: 1rem; font-size: 0.9375rem; line-height: 1.45; }
  .faq-cta { flex-direction: column; gap: 0.625rem; }
  .pill-link { justify-content: center; }

  /* contact page: form fills the width */
  .contact { flex-direction: column; gap: 1.5rem; padding: 2rem var(--pad) 3rem; }
  .contact-intro { width: 100%; gap: 1rem; padding-top: 0; }
  .contact-title { font-size: 2.5rem; line-height: 1; }
  .contact-text { font-size: 0.9375rem; line-height: 1.45; }
  .contact-email { font-size: 1rem; }
  .form-card { width: 100%; padding: 1.25rem; gap: 1rem; border-radius: 0.75rem; }
  .field-input { height: 3rem; font-size: 1rem; }
  .field-textarea { height: 9rem; }
  .form-footer { flex-direction: column-reverse; align-items: stretch; gap: 0.75rem; }
  .send-button { justify-content: center; padding: 0.875rem 1.5rem; }
  .form-note { text-align: center; }
}
