/* ==========================================================================
   nxtsite — styles
   House rules (see DESIGN.md): one ground, one ink, one accent. No hairlines,
   no shadows at rest, no eyebrows, no index numbers, square media.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg: #0b0b0c;          /* ground */
  --bg-2: #151517;        /* one tone step up */
  --bg-3: #1f1f22;        /* two tone steps up */
  --fg: #ededeb;          /* ink: neutral bone, not cream */
  --muted: #a29e97;       /* secondary notes only */
  --lime: #c8ff2e;        /* accent: the n, the action */
  --ink: #0b0b0c;

  --f-display: "Syne", "Arial Black", sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;

  --t-xl: clamp(42px, 11vw, 190px);
  --t-l: clamp(40px, 5.5vw, 88px);
  --t-body: 18px;
  --t-small: 15px;

  --gutter: clamp(16px, 2.5vw, 32px);
  --section: clamp(120px, 14vw, 220px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
@media (pointer: fine) { html { overscroll-behavior: none; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 80px; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
.contact :focus-visible { outline-color: var(--ink); }

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

.skip {
  position: fixed;
  left: var(--gutter);
  top: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}
.skip:focus-visible { transform: none; }

/* ---------- buttons: one shape, decided once (pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--t-body);
  white-space: nowrap;
  transition: transform 0.4s var(--ease-out), background-color 0.3s, color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--lime); }

/* ==========================================================================
   Loader
   ========================================================================== */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.loader__curtain {
  position: absolute;
  inset: 0;
  background: var(--lime);
}
.loader__meta,
.loader__count {
  position: absolute;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-body);
}
.loader__meta--tl { top: var(--gutter); left: var(--gutter); font-size: 24px; letter-spacing: -0.03em; font-weight: 800; }
.loader__meta--tr { top: var(--gutter); right: var(--gutter); }
.loader__meta--bl { bottom: var(--gutter); left: var(--gutter); }
.loader__count {
  right: var(--gutter);
  bottom: calc(var(--gutter) - 0.12em);
  font-size: clamp(64px, 12vw, 180px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .loader__meta--tr { display: none; }
  .loader__meta--bl { bottom: calc(var(--gutter) + 72px); }
}

/* the big "n" that assembles itself from slices, then flies into the wordmark */
.loader-n {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 101;
  pointer-events: none;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: min(62vh, 70vw);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  transform: translate(-50%, -54%);
  transform-origin: 0 0;
}
.loader-n__ghost { visibility: hidden; display: inline-block; }
.loader-n__slice { position: absolute; inset: 0; display: inline-block; }

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 95;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--lime);
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out), opacity 0.3s;
}
.cursor__label {
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-big .cursor__label { opacity: 1; transform: none; }
.cursor.is-hidden { opacity: 0; }
.cursor:not(.is-moved) { visibility: hidden; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Nav: wordmark, three links, one action
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 16px;
  background: var(--bg);
  color: var(--fg);
  transition: transform 0.5s var(--ease), background-color 0.3s, color 0.3s;
}
.nav.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.nav.is-on-lime { background: var(--lime); color: var(--ink); }
.nav__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.nav__logo span { opacity: 0.55; }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 36px); font-size: var(--t-small); font-weight: 600; }
.nav__link { position: relative; padding: 6px 0; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 640px) {
  .nav__links .nav__link:not(.nav__link--cta) { display: none; }
}

/* ==========================================================================
   Hero: the live preview up top, the name across the bottom
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(24px, 3vw, 48px);
  padding: 88px var(--gutter) var(--gutter);
}
.hero__main {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.hero__headline {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
}
.hero__lede {
  margin-top: 24px;
  max-width: 40ch;
}

/* the live thing */
.try { margin-top: 32px; max-width: 520px; }
.try__label { display: block; font-weight: 700; margin-bottom: 10px; }
.try__row { display: flex; gap: 8px; }
.try__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s;
}
.try__input::placeholder { color: var(--muted); }
.try__input:focus-visible { outline-offset: 0; }
.try__shuffle {
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--bg-3);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.try__go { margin-top: 12px; }

.preview {
  position: relative;
  background: var(--bg-3);
  overflow: hidden;
}
.preview__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
  background: #2a2a2e;
  font-size: var(--t-small);
}
.preview__dots { display: flex; gap: 6px; }
.preview__dots i { width: 10px; height: 10px; border-radius: 50%; background: #48484e; }
.preview__url {
  flex: 1;
  max-width: 320px;
  padding: 4px 14px;
  border-radius: 999px;
  background: #1c1c1f;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview__page {
  /* default look = nxtsite itself (a hair lighter than the page so the frame keeps its edge) */
  --p-bg: #121214; --p-ink: #ededeb; --p-acc: #c8ff2e; --p-on: #0b0b0c;
  position: relative;
  aspect-ratio: 16 / 10;
  padding: clamp(18px, 2.4vw, 32px);
  background: var(--p-bg);
  color: var(--p-ink);
  overflow: hidden;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.preview__page[data-theme="1"] { --p-bg: #e9e9e4; --p-ink: #17241e; --p-acc: #2f5d50; --p-on: #ffffff; }
.preview__page[data-theme="2"] { --p-bg: #ffffff; --p-ink: #2a160c; --p-acc: #e2572b; --p-on: #fff1e6; }
.preview__page[data-theme="3"] { --p-bg: #e8eefc; --p-ink: #0e1a3a; --p-acc: #1f4fff; --p-on: #ffffff; }
.preview__nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}
.preview__brand { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview__links { opacity: 0.7; white-space: nowrap; }
.preview__hero { position: relative; z-index: 1; margin-top: 12%; max-width: 56%; }
.preview__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.preview__line { margin-top: 10px; font-size: clamp(13px, 1.1vw, 16px); }
.preview__btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--p-acc);
  color: var(--p-on);
  font-size: 13px;
  font-weight: 700;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}
.preview__mono {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: 46%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--p-acc);
  color: var(--p-bg);
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(90px, 12vw, 200px);
  line-height: 1;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

.wordmark {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-size: 26vw; /* refined by JS to fill the width exactly */
}
.wordmark__inner { display: inline-block; }
.wordmark__mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.wordmark__l { display: inline-block; }
.wordmark__l--n { color: var(--lime); }

@media (max-width: 900px) {
  .hero { min-height: 0; grid-template-rows: auto auto; padding-top: 96px; }
  .hero__main { grid-template-columns: 1fr; }
  .hero__headline { max-width: 13ch; }
  .wordmark { order: -1; }
}
@media (max-width: 520px) {
  .try__row { flex-direction: column; }
  .try__input { flex: none; }
  .try__shuffle { align-self: flex-start; }
  .try__go { width: 100%; }
  .preview__links { display: none; }
  .preview__hero { max-width: 70%; }
}

/* ==========================================================================
   Marquee: a tone step, no rules
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding: clamp(20px, 2.6vw, 34px) 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: max-content;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-l);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.marquee__track i { font-style: normal; font-weight: 800; color: var(--lime); }

/* ==========================================================================
   Section titles + line reveals
   ========================================================================== */

.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-xl);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}
.js-reveal-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.js-reveal-line > .rl { display: inline-block; }

/* ==========================================================================
   Work: staggered two columns, picture + phone inset
   ========================================================================== */

.work { padding: var(--section) var(--gutter); }
.work__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(48px, 7vw, 112px);
}
.work__aside { max-width: 540px; }
.work__intro { margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: var(--t-small);
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
}
.filter.is-active { background: var(--fg); color: var(--ink); }

/* two independent columns, so a short card never leaves a hole beside a tall one */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 5vw, 96px);
  align-items: start;
}
.work__col { display: flex; flex-direction: column; gap: clamp(72px, 9vw, 140px); }
.work__col--offset { padding-top: clamp(80px, 12vw, 200px); }

.card {
  position: relative;
  transition: opacity 0.5s, filter 0.5s;
}
.card.is-dimmed { opacity: 0.15; filter: grayscale(1); }
.card.is-dimmed { pointer-events: none; }
.card__link { display: block; }
.card__link:focus-visible { outline-offset: 6px; }
/* sits exactly over the media so the film button can live outside the link */
.card__overlay { position: absolute; z-index: 3; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; pointer-events: none; }
.card__overlay .card__play { pointer-events: auto; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tint, var(--bg-2));
}
.card__media--wide { aspect-ratio: 5 / 4; }
.card__media--film { aspect-ratio: 16 / 9; }
.card__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__img {
  /* the desktop shot sits in the field like a browser window */
  position: absolute;
  left: 10%;
  top: 12%;
  width: 90%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  transition: transform 1.2s var(--ease-out);
}
.card__inset {
  position: absolute;
  z-index: 1;
  left: 6%;
  bottom: -6%;
  width: 28%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 4px solid #0e0e10;
  transition: transform 1s var(--ease-out);
}


.card__badge {
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--ink);
  font-size: var(--t-small);
  font-weight: 600;
}
.card__badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }

.card__play {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
  padding: 8px 20px 8px 8px;
}
.card__play-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}
.card__play-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  border-left: 10px solid var(--lime);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.card__info { padding-top: 24px; }
.card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card__title::after {
  content: "→";
  font-family: var(--f-body);
  font-size: 0.7em;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.card__desc { margin-top: 12px; max-width: 46ch; }
.card__tags { margin-top: 10px; font-size: var(--t-small); color: var(--muted); }

.card__media--yours {
  aspect-ratio: 5 / 4;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
}
.yours__big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-l);
  line-height: 0.9;
  letter-spacing: -0.05em;
  transition: transform 0.6s var(--ease-out);
  transform-origin: left top;
}

@media (max-width: 760px) {
  .work__grid { display: flex; flex-direction: column; gap: 72px; }
  .work__col { display: contents; }
  .work__col--offset { padding-top: 0; }
  /* one column on phones: back to the original order */
  .work__col:first-child .card:nth-child(2) { order: 3; }
  .work__col:first-child .card:nth-child(3) { order: 4; }
  .work__col--offset .card:nth-child(1) { order: 2; }
  .work__col--offset .card:nth-child(2) { order: 5; }
  .work__col:first-child .card:nth-child(1) { order: 1; }
}

/* ==========================================================================
   Services: a field one tone up, big names, no rules
   ========================================================================== */

.services {
  padding: var(--section) var(--gutter);
  background: var(--bg-2);
}
.services__list {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid;
  gap: clamp(8px, 1vw, 16px);
}
.service {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: baseline;
  gap: 24px;
  padding: clamp(14px, 1.6vw, 24px) clamp(16px, 2vw, 28px);
  margin-inline: calc(clamp(16px, 2vw, 28px) * -1);
  background: transparent;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.service__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--t-l);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.6s var(--ease-out);
}
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   Process: a staircase, order shown by position
   ========================================================================== */

.process { padding: var(--section) var(--gutter); }
.process__steps {
  margin-top: clamp(48px, 6vw, 96px);
  display: grid;
  gap: clamp(28px, 3vw, 48px);
}
.step {
  display: grid;
  grid-template-columns: max-content minmax(0, 34ch);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: baseline;
  row-gap: 6px;
  max-width: 980px;
}
.step:nth-child(2) { margin-left: 10%; }
.step:nth-child(3) { margin-left: 20%; }
.step:nth-child(4) { margin-left: 30%; }
.step h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--t-l);
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: lowercase;
}
.step:last-child h3 { color: var(--lime); }
.step p { max-width: 34ch; }
@media (max-width: 1100px) {
  .step:nth-child(n) { margin-left: 0; }
  .step:nth-child(2) { margin-left: 6%; }
  .step:nth-child(3) { margin-left: 12%; }
  .step:nth-child(4) { margin-left: 18%; }
}
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 6px; }
  .step:nth-child(n) { margin-left: 0; }
}

/* ==========================================================================
   Contact / footer: lime field, the name returns at full width
   ========================================================================== */

.contact {
  position: relative;
  background: var(--lime);
  color: var(--ink);
  padding: var(--section) var(--gutter) max(var(--gutter), env(safe-area-inset-bottom));
  overflow: hidden;
}
.contact__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: min(var(--t-xl), 10.4vw); /* "what’s nxt?" stays on one line on phones */
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-transform: lowercase;
}
.contact__lede { margin-top: clamp(28px, 3vw, 40px); max-width: 40ch; font-weight: 500; }
.contact__mail {
  margin-top: 28px;
  min-height: 64px;
  padding: 18px 34px;
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: -0.02em;
}
.contact__arrow { transition: transform 0.5s var(--ease-out); }
.contact__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(96px, 12vw, 180px);
  font-size: var(--t-small);
  font-weight: 600;
}
.contact__bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__wordmark {
  margin-top: 8px;
  margin-bottom: -0.2em;
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-size: 26vw; /* fit by JS */
}
.contact__wordmark span { display: inline-block; }

/* ==========================================================================
   Film modal
   ========================================================================== */

.film {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 80px var(--gutter) var(--gutter);
  background: rgba(11, 11, 12, 0.96);
  overscroll-behavior: contain;
}
.film[hidden] { display: none; }
.film__frame {
  width: min(100%, 1280px);
  aspect-ratio: 16 / 9;
  background: #000;
}
.film__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.film__close { position: absolute; top: 16px; right: var(--gutter); }

/* ==========================================================================
   Start a project: the dive, the curtain, the modal
   ========================================================================== */

/* the lime field the form sits on; slides up from the bottom, leaves off the top */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--lime);
  visibility: hidden;
  will-change: transform;
}
/* the preview dives forward to fill the screen before the curtain covers it */
.preview.is-diving { position: relative; z-index: 105; will-change: transform; }
html.is-starting { overflow: hidden; }

.start {
  width: min(100% - 2 * var(--gutter), 680px);
  max-height: min(100% - 2 * var(--gutter), 860px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: visible;
}
.start::backdrop { background: transparent; }
.start__form {
  position: relative;
  will-change: transform, opacity; /* it spins in: keep it on its own GPU layer */
  max-height: calc(100dvh - 2 * var(--gutter));
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-2);
  overflow: auto;
  overscroll-behavior: contain;
}
.start__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transition: background-color 0.3s, color 0.3s;
}
.start__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  padding-right: 48px;
}
.start__lede { margin-top: 14px; max-width: 46ch; }
.start__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-weight: 700; font-size: var(--t-small); }
.field__opt { font-weight: 500; color: var(--muted); }
.field__input {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--bg-3);
  font-size: var(--t-body);
  font-weight: 500;
  transition: background-color 0.3s, box-shadow 0.3s;
}
.field__input--area { resize: vertical; min-height: 96px; }
.field__input::placeholder { color: var(--muted); }
.field__input:focus-visible { outline: 3px solid var(--lime); outline-offset: 0; }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #ff6b5b; } /* taste-skill-ignore: error state on a form field */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen spam trap */
.start__error { min-height: 1.5em; margin-top: 16px; color: #ff8a7d; font-weight: 600; }
.start__error a { text-decoration: underline; text-underline-offset: 3px; }
.start__send { margin-top: 8px; }
.start__send[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.start__done .btn { margin-top: 28px; }
@media (max-width: 560px) {
  .start__fields { grid-template-columns: 1fr; }
  .start__send { width: 100%; }
}

/* phones: compact chips, and small labels on the short film card so the film shows */
@media (max-width: 760px) {
  .filter { padding: 10px 13px; font-size: var(--t-small); }
  .card__badge { left: 10px; top: 10px; padding: 4px 10px; font-size: 13px; }
  .card__play { left: 10px; bottom: 10px; min-height: 0; padding: 5px 14px 5px 5px; font-size: var(--t-small); gap: 8px; }
  .card__play-icon { width: 26px; height: 26px; }
  .card__play-icon::after { left: 10px; top: 8px; border-left-width: 8px; border-top-width: 5px; border-bottom-width: 5px; }
}

/* hover only where there is a real pointer, so taps on phones never stick */
@media (hover: hover) {
  .start__close:hover { background: var(--fg); color: var(--ink); }
  .field__input:hover { background: #29292d; }
  .btn--lime:hover { background: var(--fg); }
  .btn--ink:hover { background: #26262a; }
  .try__input:hover { background: #29292d; }
  .try__shuffle:hover { background: var(--fg); color: var(--ink); }
  .filter:hover { background: #2c2c30; }
  .card:hover .card__img { transform: translate(-2%, -2%); }
  .card:hover .card__inset { transform: translateY(-14px) rotate(-2deg); }
  .card:hover .card__title::after { opacity: 1; transform: none; }
  .card--yours:hover .yours__big { transform: rotate(-3deg) translateX(0.04em); }
  .service:hover { background: var(--lime); color: var(--ink); }
  .service:hover .service__name { transform: translateX(12px); }
  .contact__mail:hover .contact__arrow { transform: translateX(8px) rotate(-45deg); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
