/* V6: identity doors, the door's resting state is the reader's own
   sentence — "I am an agency." / "I am a company." The name, the
   demographic line and the hostname live in the navy face, which desktop
   reveals on hover (the house wipe in root.css) and a no-hover device
   reveals on a first tap (see door-tap.js and the notes below). Both
   resting states are identity-only, at every width: on both desktop and
   mobile the name, the line--demo and the hostname row are hidden in the
   RESTING column only — the selectors target direct children of
   .door__inner, so the navy face's copies are untouched and the wipe
   still shows the full card. The "WHO ARE YOU?" prompt above the doors
   is what asks the question the two answers sit below. */

/* the prompt: small, centred, translucent, on its own line between the
   proposition and the doors — the question the doors answer. Page-level, so
   it stays on mobile too (mobile override below). */
.prompt {
  margin: 4px 0 0;
  text-align: center;
  font-family: var(--font-label);
  font-size: var(--size-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-ink);
  opacity: 0.55;
}

@media (min-width: 761px) {
  .door > .door__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
  }
  /* the resting column only: .door__face holds a SECOND .door__inner,
     which is not a direct child of .door, so the navy card is untouched */
  .door > .door__inner > .door__name { display: none; }
  .door > .door__inner > .door__line--demo { display: none; }
  .door > .door__inner > .door__go { display: none; }
  .door__line--who {
    max-width: none;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 500;
    color: var(--ink);
  }
  .door__line--who em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
  }
}

/* Mobile (<=760px): no hover, so the identity lines ARE the card.
   Same resting design as desktop — one centered identity sentence per row,
   name + demographic line + hostname hidden — with the rows stacked.

   ⚠ The navy face, which desktop reveals on hover, is reachable on a
   no-hover device ONLY by tapping: that is the whole point of this
   version (Jake, 2026-10-26/27). The tap reveals it (the 320ms house
   wipe, driven by the `is-open` class door-tap.js adds), 1.75 seconds
   pass, then the page goes — time to read what is behind the identity
   line and change one's mind. A second tap skips the wait and goes
   immediately. A back-navigation resets the card. The CSS and door-tap.js
   are gated on the SAME condition, `(hover: none)`, so they cannot
   disagree — a touch laptop reports a coarse pointer but still has
   hover, so it keeps the desktop behaviour: hover reveals, tap
   navigates at once, no delay (Jake, 2026-10-27). */

/* Media query, not the max-width block below, on purpose: it names the
   DEVICE capability, the same capability door-tap.js gates on, so the
   CSS and the JS cannot drift apart. (hover: none) and NOT
   (pointer: coarse): touch laptops report coarse pointers but still
   have hover, and they must keep the normal hover behaviour, no tap
   reveal, no delay (Jake, 2026-10-27). */
@media (hover: none) {
  .door__face { display: grid; }
  .door.is-open .door__face { clip-path: inset(0 0 0 0); }

  /* The 18px bleed exists so a fill pasted on the DESK reads as a printed
     column, not a rectangle drawn round the words. On a device that cannot
     hover the sheet IS the page, so the horizontal bleed is zeroed and the
     block's edges land exactly on the content edge, like the masthead and
     the statement above it; the vertical bleed stays, it is the wipe's
     headroom. The type, however, must NOT sit on that edge — it carries
     the same 18px left padding as the desktop faces, so the revealed text
     starts exactly where the desktop text starts (Jake, 2026-10-27). */
  .door:first-child .door__face { left: 0; }
  .door:first-child .door__face .door__inner {
    padding-left: var(--bleed);
    padding-right: var(--bleed);
  }
  .door + .door .door__face { right: 0; }
  .door + .door .door__face .door__inner {
    padding-left: var(--bleed);
    padding-right: var(--bleed);
  }
}

/* Desktop: the two navy faces used to be mirror images — the agency face
   bleeds LEFT and the company face bleeds RIGHT — so the same 18px padding
   sat on opposite sides and hovering the doors felt different (Jake,
   2026-10-27). Both faces now sit flush with their door's box, bleed
   nowhere, and carry the SAME padding — 18px left, 0 right — so the
   revealed type starts at the same inset in both doors. The gutter rule
   still clears both fills (28px gutter, 0 bleed) and stays visible between
   them. The agency face's padding-right: 0 overrides the resting column's
   gutter padding (root.css), which would otherwise push its type toward the
   right edge in a way the company face's does not. Overrides root.css at
   equal specificity, later in the cascade. */
@media (min-width: 761px) {
  .door:first-child .door__face { left: 0; }
  .door:first-child .door__face .door__inner {
    padding-left: var(--bleed);
    /* the resting column's gutter padding (root.css) hits both
       .door__inner copies; on the face it would push the agency's
       type off the right edge in a way the company's does not */
    padding-right: 0;
  }
  .door + .door .door__face { right: 0; }
  .door + .door .door__face .door__inner {
    padding-left: var(--bleed);
    padding-right: 0;
  }
}

@media (max-width: 760px) {
  .prompt { margin: 8px 0 0; font-size: 12px; opacity: 0.6; }
  .door > .door__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    /* 110px only fits the identity line. The navy face carries that same
       row plus the name, the demographic line and the hostname, and its
       height is the door's height plus the wipe's 2x18px headroom — at
       110 that is 166, six pixels short of the ~174 the face content
       needs, so the hostname spilled out of the navy (Jake, 2026-10-27).
       150 leaves the face 186, clear of the content at 320 and up. */
    min-height: 150px;
  }
  .door > .door__inner > .door__name { display: none; }
  .door > .door__inner > .door__line--demo { display: none; }
  .door > .door__inner > .door__go { display: none; }
  .door__line--who {
    max-width: none;
    font-size: clamp(20px, 5.6vw, 26px);
    font-weight: 500;
    color: var(--ink);
  }
  .door__line--who em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
  }
}