/* Hallmark · shape: Photographic, the logo's window opens into the film and the questions sit on it · genre: atmospheric · theme: brand
 * paper: oklch(12.3% 0.004 70.2) · accent: oklch(67.6% 0.216 37.4) · display: Archivo Expanded · body: Archivo · hero: Poster, the film full-bleed and the question on it · nav: none while the questions are open · footer: none while the questions are open
 * axes: dark/grotesk-heavy/warm · posture: Full palette · contrast: pass · fold: pass · job: hire · brand: Grainback Studios (spec 2026-11-06) · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, three short questions; the owner's own booking questions, asked one at a time */
/* Hallmark · dropped 44d · the owner asked for the AreYouDami layout exactly, and it pins the tab and title to the screen edges at every width */

/* ---------- Contact: the button under the logo, and the mail picker from Polaroid X ---------- */
.contact__cta { position: absolute; left: 52%; top: calc(54% + min(27svh, 14vw) + var(--space-lg)); transform: translateX(-50%); }
.contact__cta .d-btn { min-height: 60px; padding-inline: var(--space-xl) var(--space-2xl); font-size: var(--text-lg); }

.mailpick { position: relative; display: inline-block; max-width: 100%; }
.mailpick__menu { position: absolute; left: 0; top: calc(100% + var(--space-xs)); z-index: var(--z-dropdown); display: flex; flex-direction: column; min-width: 200px; padding: var(--space-2xs); gap: var(--space-3xs); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper-2); opacity: 0; visibility: hidden; transform: translateY(calc(-1 * var(--space-xs))); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out), visibility var(--dur-short); }
.mailpick.is-open .mailpick__menu { opacity: 1; visibility: visible; transform: none; }
.mailpick--up .mailpick__menu { top: auto; bottom: calc(100% + var(--space-xs)); transform: translateY(var(--space-xs)); }
.mailpick--up.is-open .mailpick__menu { transform: none; }
.mailpick__opt { display: flex; align-items: center; min-height: 44px; padding-inline: var(--space-sm); border: 0; border-radius: var(--radius-card); background: none; color: var(--color-ink); font: inherit; font-size: var(--text-sm); font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.contact__list .mailpick__opt:hover { background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none; }
.mailpick__opt:focus-visible { outline-color: var(--color-negative); outline-offset: calc(-1 * var(--space-3xs)); }

/* ---------- the questions ---------- */
html.brief-locked, html.brief-locked body { overflow: clip; }
.brief { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--color-paper); color: var(--color-ink); clip-path: circle(var(--iris-from, 0px) at var(--iris-x, 50%) var(--iris-y, 50%)); }
.brief[hidden] { display: none; }
.brief.is-open { clip-path: circle(150vmax at var(--iris-x, 50%) var(--iris-y, 50%)); }
.js.motion .brief { transition: clip-path calc(var(--dur-long) * 2) var(--ease-in-out); }

/* a new film arrives as a negative and develops */
.brief__film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: invert(1); transition: opacity var(--dur-long) var(--ease-out), filter var(--dur-long) var(--ease-out); }
.brief__film.is-front { opacity: 1; filter: none; }
.brief__scrim { position: absolute; inset: 0; background: var(--color-scrim-strong); }

.brief__top { position: relative; display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-lg) var(--page-gutter); }
.brief__mark { width: 44px; height: 44px; }
.brief__rec { width: var(--space-sm); height: var(--space-sm); margin-left: var(--space-xs); border-radius: 50%; background: var(--color-rec); }
.brief__count { font-weight: 600; font-variant-numeric: tabular-nums; }
.brief__close, .brief__back { min-height: 44px; padding-inline: var(--space-xs); border: 0; background: none; color: var(--color-negative); font: inherit; font-weight: 600; cursor: pointer; }
.brief__close { margin-left: auto; }
.brief__close:hover, .brief__back:hover { text-decoration: underline; }
.brief__close:focus-visible, .brief__back:focus-visible, .brief__opt:focus-visible, .brief__edit:focus-visible { outline-color: var(--color-negative); }

.brief__stage { position: relative; display: grid; min-height: 0; padding-inline: var(--stage-text-x) var(--page-gutter); overflow-y: auto; }
.brief__step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--gap-columns); }
.brief__step[hidden] { display: none; }
.brief__q { max-width: 10ch; font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; }
.brief__answers { display: grid; justify-items: start; gap: var(--space-md); }
.brief__opts { display: grid; justify-items: start; gap: var(--space-2xs); }

/* the answer: on hover the negative runs through it, in the shape of the logo's long D */
.brief__opt { position: relative; min-height: 44px; padding: var(--space-2xs) var(--space-2xl) var(--space-2xs) var(--space-md); border: 0; background: none; color: var(--color-negative); font: inherit; font-size: clamp(1.75rem, 3.3vw, 3.25rem); font-weight: 800; font-stretch: 125%; line-height: 1.1; text-align: left; text-transform: uppercase; cursor: pointer; }
.brief__opt::before { content: ""; position: absolute; inset: 0; border-radius: 0 var(--radius-pill) var(--radius-pill) 0; background: var(--color-accent); mix-blend-mode: difference; transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.brief__opt:hover::before, .brief__opt:focus-visible::before, .brief__opt[aria-checked="true"]::before { transform: scaleX(1); }
.brief__opt span { position: relative; }

.brief__other { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); padding-left: var(--space-md); }
.brief__other[hidden] { display: none; }
.brief__input { width: min(100%, 20rem); min-height: 48px; padding: 0; border: 0; border-bottom: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: none; color: var(--color-ink); font: inherit; font-size: var(--text-lg); font-weight: 600; }
.brief__input::placeholder { color: var(--color-ink-2); opacity: 1; }
.brief__input:focus-visible { outline: none; border-bottom-color: var(--color-accent); }

.brief__copy { display: grid; justify-items: start; gap: var(--space-lg); }
.brief__p { max-width: 38ch; font-size: var(--text-lead); font-weight: 600; line-height: 1.4; }
.brief__end { display: grid; justify-items: start; gap: var(--space-xl); }
.brief__recap { display: grid; gap: var(--space-md); margin: 0; }
.brief__recap dt { font-size: var(--text-sm); }
.brief__recap dd { margin: 0; }
.brief__edit { min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-negative); font: inherit; font-size: var(--text-xl); font-weight: 600; text-align: left; text-decoration: underline; text-decoration-thickness: var(--rule-hair); text-underline-offset: var(--space-2xs); cursor: pointer; }
.brief__end .d-btn { min-height: 60px; padding-inline: var(--space-xl) var(--space-2xl); font-size: var(--text-lg); }

.brief__foot { position: relative; min-height: 92px; padding: var(--space-lg) var(--page-gutter) var(--space-lg) var(--stage-text-x); }
.brief__back[hidden] { display: none; }

/* between questions the frame closes in slats of orange negative, then develops */
.brief__slats { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); mix-blend-mode: difference; pointer-events: none; }
.brief__slats i { background: var(--color-accent); transform: scaleX(0); }
.brief__slats.is-wiping i { animation: brief-slat calc(var(--dur-long) * 1.5) var(--ease-in-out) calc(var(--i, 0) * 24ms) both; }
@keyframes brief-slat { 0%, 100% { transform: scaleX(0); } 30%, 70% { transform: scaleX(1.04); } }

@media (prefers-reduced-motion: no-preference) {
  .brief__rec { animation: brief-rec 1.4s steps(2, jump-none) infinite; }
  @keyframes brief-rec { 50% { opacity: 0.2; } }
}

@media (max-width: 60rem) {
  .contact__cta { position: relative; left: auto; top: auto; transform: none; }
  .brief__stage { padding-inline: var(--page-gutter); }
  .brief__step { grid-template-columns: minmax(0, 1fr); align-content: center; gap: var(--space-xl); }
  /* the recap folds to one line per answer, so the booking button stays on a small phone's screen */
  .brief__end { justify-items: stretch; gap: var(--space-md); }
  .brief__recap { gap: 0; }
  .brief__recap > div { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
  .brief__edit { font-size: var(--text-md); text-align: right; }
  .brief__end .d-btn { justify-content: center; }
  .brief__foot { min-height: 76px; padding: var(--space-md) var(--page-gutter); }
}

/* short phones: four answers and the booking button still fit on one screen */
@media (max-width: 60rem) and (max-height: 44rem) {
  .brief__top { padding-block: var(--space-sm); }
  .brief__step { gap: var(--space-md); }
  .brief__copy { gap: var(--space-xs); }
  .brief__q { font-size: 2rem; }
  .brief__p { font-size: var(--text-sm); }
  .brief__end .d-btn { min-height: 52px; }
  .brief__foot { min-height: 60px; padding-block: var(--space-xs); }
}
