:root {
  --plate: #f3eeea;
  --ink: #2a2622;
  --soft: #5e584f;
  --line: rgba(42, 38, 34, 0.14);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--plate);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 400 1.05rem/1.6 var(--sans);
}

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.top {
  width: min(40rem, calc(100% - 2rem));
  padding: max(1.15rem, env(safe-area-inset-top)) 0 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mark { display: block; padding: 0.2rem 0; line-height: 0; }
.mark img { display: block; height: 2.6rem; width: auto; }

.nav {
  display: flex;
  justify-content: center;
  gap: 0 1.35rem;
  margin: 0.45rem 0 0;
  font: 500 0.95rem/1 var(--sans);
}

.nav a {
  text-decoration: none;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.stage {
  width: 100%;
  display: flex;
  justify-content: center;
}

.bb {
  position: relative;
  flex: none;
  height: min(58dvh, 640px);
  width: auto;
  aspect-ratio: 1080 / 1440;
  max-width: 100%;
  border: 0;
  padding: 0;
  background: var(--plate) center / contain no-repeat;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  /* Browsers render video a few levels off the CSS cream; feathered edges hide the seam. */
  --feather: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
             linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: var(--feather);
  -webkit-mask-composite: source-in;
  mask-image: var(--feather);
  mask-composite: intersect;
}

.bb[data-bb-start="asleep"] { background-image: url("/bb/posters/asleep.webp"); }
.bb[data-bb-start="idle"] { background-image: url("/bb/posters/idle.webp"); }

.bb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

.bb video[data-on="1"] { opacity: 1; }

.copy {
  width: min(38rem, calc(100% - 2.5rem));
  padding: 0.5rem 0 3rem;
  transition: opacity 0.24s ease;
}

.copy.is-out { opacity: 0; }

.copy h1 {
  margin: 0.5rem 0 0.75rem;
  font: 500 clamp(1.8rem, 4.6vw, 2.5rem)/1.12 var(--sans);
  letter-spacing: -0.025em;
  outline: none;
}

.copy h2 {
  margin: 2.5rem 0 0.6rem;
  font: 500 0.78rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.copy h3 {
  margin: 1.4rem 0 0.2rem;
  font: 500 1.05rem/1.35 var(--sans);
}

.copy p, .copy li, .copy dd { color: #3c3833; }

.copy p { margin: 0 0 0.9rem; }

.lede { font-size: 1.15rem; line-height: 1.55; color: var(--ink) !important; }

.actions { display: flex; gap: 1.5rem; margin-top: 1.4rem !important; font-weight: 500; }

.copy ul, .copy ol { margin: 0; padding-left: 1.15rem; }
.copy li { margin: 0 0 0.4rem; }

.offers { margin: 0; }
.offers dt { margin: 1.1rem 0 0.15rem; font-weight: 500; }
.offers dt:first-child { margin-top: 0; }
.offers dd { margin: 0; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.9rem 2rem 0.9rem 0;
  position: relative;
  font-weight: 500;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  top: 0.85rem;
  font-weight: 400;
  color: var(--soft);
}

.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; }

.films { display: grid; gap: 1.75rem; margin: 0.4rem 0 0.5rem; }

.film { margin: 0; }

.film-play {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #e6e0db;
}

.film-play img { display: block; width: 100%; height: 100%; object-fit: cover; }

.film-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 0 -1.7rem;
  border-radius: 50%;
  background: rgba(243, 238, 234, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%232a2622'/%3E%3C/svg%3E") center / 1.4rem no-repeat;
  transition: transform 0.2s ease;
}

.film-play:hover::after { transform: scale(1.06); }

.film-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 6px;
  background: #000;
}

.film figcaption { margin-top: 0.6rem; color: #3c3833; }
.film figcaption h3 { display: inline; margin: 0; font-size: 1rem; }
.film .tag { color: var(--soft); font-size: 0.88rem; }

.projects {
  position: relative;
  left: 50%;
  width: min(64rem, calc(100vw - 2.5rem));
  transform: translateX(-50%);
  margin-top: 2.5rem;
  display: grid;
  gap: 4.5rem;
}

.project { scroll-margin-top: 1.5rem; }

.project-film { border-radius: 10px; box-shadow: 0 30px 60px -40px rgba(42, 38, 34, 0.45); }
.project-film img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.project-film:hover img { transform: scale(1.02); }

.project-body { margin-top: 1.4rem; }

.project-no {
  margin: 0 0 0.3rem !important;
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.14em;
  color: var(--soft) !important;
}

.copy .project-name {
  margin: 0 0 0.6rem;
  font: 500 clamp(2rem, 5.5vw, 3.4rem)/1 var(--sans);
  letter-spacing: -0.035em;
  text-transform: none;
  color: var(--ink);
}

.project-line { max-width: 34rem; font-size: 1.08rem; }

.project-facts {
  margin: 1.2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.project-facts div { padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--line); }
.project-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.project-facts dt { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.project-facts dd { margin: 0.15rem 0 0; font-weight: 500; }

.project .film-frame { border-radius: 10px; }

@media (min-width: 900px) {
  .project-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
  .project-no, .project-name, .project-line { grid-column: 1; }
  .project-facts { grid-column: 2; grid-row: 1 / span 3; margin-top: 0.2rem; grid-template-columns: 1fr; }
  .project-facts div { display: flex; justify-content: space-between; gap: 1rem; }
  .project-facts dd { margin: 0; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .project-film img { transition: none; }
}

.note { font-size: 0.92rem; color: var(--soft) !important; margin-top: 1.5rem !important; }

.lead { display: grid; gap: 1.1rem; margin: 1.75rem 0 2.25rem; }
.lead-row { display: grid; gap: 1.1rem; }
.lead label { display: grid; gap: 0.35rem; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft); }
.lead label i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.lead input, .lead select, .lead textarea {
  width: 100%;
  font: 400 1.05rem/1.4 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(42, 38, 34, 0.35);
  border-radius: 0;
  padding: 0.45rem 0;
  -webkit-appearance: none;
  appearance: none;
}
.lead select {
  padding-right: 1.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232a2622' stroke-width='1.4'/%3E%3C/svg%3E") right 0.1rem center / 0.7rem no-repeat;
}
.lead textarea { resize: vertical; min-height: 6rem; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.lead ::placeholder { color: #9a938a; }
.lead button {
  justify-self: start;
  margin-top: 0.4rem;
  font: 500 1rem/1 var(--sans);
  color: var(--plate);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.9rem;
  cursor: pointer;
}
.lead button:hover { background: #000; }
.lead button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lead button:disabled { opacity: 0.5; cursor: default; }
.lead .trap { position: absolute; left: -9999px; }
.lead-status { margin: 0 !important; min-height: 1.6em; font-size: 0.95rem; }
.lead-status[data-state="error"] { color: #9b2c1f !important; }
@media (min-width: 600px) { .lead-row { grid-template-columns: 1fr 1fr; } }

.contact { font-size: 1.3rem; line-height: 1.6; font-weight: 500; margin: 1.5rem 0 !important; }

.foot {
  width: min(38rem, calc(100% - 2.5rem));
  margin-top: auto;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--soft);
}

.foot nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.1rem; margin-bottom: 0.9rem; color: var(--ink); }
.foot nav a { text-decoration: none; padding: 0.25rem 0; }
.foot nav a[aria-current="page"] { text-decoration: underline; }
.foot p { margin: 0 0 0.3rem; }

@media (min-width: 900px) {
  .films { grid-template-columns: 1fr 1fr; }
  .films .film:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .bb video { display: none; }
  .copy { transition: none; }
}
