/* round 8: the Norte week page. Round 7 page B cut to one short story and five blocks, and a flat page for phones and
   browsers without WebGL (html.flat): the waterfall as a still, no canvas, everything in normal flow */

/* ---------- shared pieces ---------- */
.tag svg { width: 0.95em; height: 0.95em; }
.tag--heart svg { color: #C62A1F; }
.link--small { font-size: 15px; }
.halves, .hero__still { display: none; }

/* the bridge: three cards, the decks of real cards settle under them */
.bridge .deck-head { max-width: 40rem; }
.bridge .pc h3 { font-size: clamp(22px, 1.7vw, 30px); }
.bridge .note { margin-top: 0; }

/* the workshop: the words on the left, four real screens of the room app on the right */
.workshop .sx__in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 2.5vh 4.5vw; align-items: center; }
.workshop .h2 { font-size: clamp(32px, 3vw, 54px); }
.takeaway { margin-top: 1.4em; padding-left: 16px; border-left: 3px solid #C62A1F; font-size: clamp(15.5px, 1.05vw, 18px); line-height: 1.5; color: var(--ink-mid); }
.takeaway__free { margin-top: 0.5em; font-weight: 650; color: var(--ink); }
.workshop .link { display: inline-block; margin-top: 1.3em; }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 22px); margin: 0; align-items: start; }
.phone { margin: 0; }
.phone__frame { position: relative; padding: 5px; border-radius: 24px; background: var(--ink); box-shadow: 0 18px 40px -22px rgba(22, 23, 27, 0.55); }
.phone__frame img { display: block; width: 100%; height: auto; border-radius: 19px; }
.phone__frame::after { content: "Ejemplo"; position: absolute; top: -9px; right: 10px; padding: 3px 7px; border-radius: 3px; background: #C62A1F; color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.02em; line-height: 1.2; }
.phone figcaption { margin-top: 0.7em; font-size: 13.5px; line-height: 1.35; color: var(--ink-mid); }
.phones__note { grid-column: 1 / -1; margin-top: 0.2em; font-size: 13px; color: #6A6D76; }

/* marked blanks: what only the team can give. Dashed red so nobody ships one by mistake */
.blank { margin-top: 1.4em; padding: 14px 18px; border: 2px dashed rgba(198, 42, 31, 0.55); border-radius: 6px; color: #C62A1F; font-size: 14px; font-weight: 600; }
.workshop .blank { grid-column: 1 / -1; margin-top: 0; }

/* proof of building */
.proof .tx { max-width: 32rem; }
.product { margin-top: 1.8em; padding: 22px 24px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(22, 23, 27, 0.08); }
.product h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.product p { margin: 0.45em 0 0.8em; color: var(--ink-mid); font-size: 16px; line-height: 1.45; }

/* honest answers and the close */
.answers .tx { max-width: 31rem; }
.qa { margin: 1.4em 0 0; }
.qa dt { font-family: var(--display); font-weight: 700; font-size: clamp(18px, 1.3vw, 22px); letter-spacing: -0.015em; line-height: 1.2; }
.qa dd { margin: 0.35em 0 1.15em; color: var(--ink-mid); font-size: clamp(15.5px, 1.05vw, 18px); line-height: 1.5; }
.close { margin-top: 2.2em; padding-top: 2em; border-top: 1px solid rgba(22, 23, 27, 0.12); }
.close .h2 { font-size: clamp(28px, 2.5vw, 44px); }
.close .btn--big { margin-top: 0; }

/* ---------- the deep page: the story is short now, and its two suits carry the two halves ---------- */
.story { --story: 285vh; }
.deep .workshop { background: var(--ground); }
.deep .bridge, .deep .proof { min-height: 68vh; }
.deep .workshop, .deep .answers { padding-top: 9vh; padding-bottom: 9vh; }
.deep .answers { min-height: 0; }
.deep .answers .tx { background: rgba(241, 242, 244, 0.96); padding: 30px 32px; border-radius: 16px; margin-right: -32px; }
.deep .say--suit { bottom: 12vh; width: 27vw; }
.deep .say--suit span { font-size: clamp(15px, 1.1vw, 19px); line-height: 1.4; }
@media (max-height: 760px) { .deep .say--suit { bottom: 7vh; } }

/* ---------- the flat page ---------- */
.flat #gl, .flat .thesis, .flat .say { display: none; }
.flat .story { height: auto; }
.flat .stage { position: relative; height: auto; overflow: visible; }
.flat .hero { position: relative; left: auto; top: auto; transform: none; padding: 92px var(--g) 0; }
.flat .hero h1 { font-size: clamp(25px, 7.4vw, 46px); }
.flat .hero__sub { font-size: 17px; max-width: 34ch; }
.flat .hero__acts { flex-wrap: wrap; gap: 14px 22px; }
.flat .hero__still { display: block; width: min(100%, 520px); height: auto; margin: 6px auto 0; }
.flat .top { background: rgba(241, 242, 244, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(22, 23, 27, 0.06); padding-top: 12px; padding-bottom: 12px; }
.flat .top__nav a:not(.top__talk) { display: none; }
.flat .top .btn--ink { padding: 0.7em 1em; font-size: 14px; }
.flat .sx { min-height: 0; padding: 56px var(--g); }
.flat .sx__in { flex-direction: column; }
.flat .halves { display: block; padding-top: 24px; }
.flat .halves .sx__in { gap: 14px; }
.half { position: relative; padding: 22px 22px 20px 64px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(22, 23, 27, 0.08); }
.half__suit { position: absolute; left: 20px; top: 24px; width: 26px; height: 26px; color: var(--ink); }
.half--heart .half__suit, .half--heart h2 { color: #C62A1F; }
.half__suit svg { width: 100%; height: 100%; fill: currentColor; }
.half h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.025em; line-height: 1.05; }
.half p { margin: 0.45em 0 0.6em; color: var(--ink-mid); font-size: 16px; line-height: 1.45; }
.half__go { font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.flat .deck-row, .flat .sx--split .deck-row { flex-direction: column; flex-wrap: nowrap; gap: 14px; width: 100%; }
.flat .pc { width: 100%; aspect-ratio: auto; padding: 46px 22px 22px; }
.flat .pc__ix--br { display: none; }
.flat .sx--deck .sx__in { gap: 22px; }
.flat .workshop .sx__in { display: flex; gap: 28px; }
.flat .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.flat .sx--l .sx__in, .flat .sx--r .sx__in { justify-content: flex-start; }
.flat .h2 { font-size: clamp(30px, 8.4vw, 44px); }
.flat .foot { flex-direction: column; align-items: flex-start; }
.flat .btn--big { font-size: 18px; }

/* a wide window without WebGL: the still beside the hero, the halves side by side */
@media (min-width: 640px) {
  .flat .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; min-height: 100vh; min-height: 100svh; }
  .flat .hero { padding: 0 0 0 calc(var(--g) + 3.5vw); }
  .flat .hero h1 { font-size: min(4.3vw, 7vh); }
  .flat .hero__still { width: 100%; margin: 0; }
  .flat .halves .sx__in { flex-direction: row; }
  .flat .half { flex: 1; }
  .flat .deck-row { flex-direction: row; }
  .flat .pc { width: auto; flex: 1 1 0; min-width: 0; }
  .flat .workshop .sx__in { display: grid; }
  .flat .phones { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
