/* IKTEN landing · section «ΓΙ' ΑΥΤΟ ΦΤΙΑΞΑΜΕ ΤΟ IKTEN.» (#tainia) · owner: builder fm · class prefix: tai-
   Purpose and Greek copy: work/PLAN_LIGHT.md B5 (FINAL_SPEC 3.11). Look: work/LIGHT_SPEC.md (the contract is its part f).
   The one moment: the owner's film standing upright on the white page, like a phone held up in front of you: a tall
   frame of black glass (9 : 16), the poster inside in black and white, one black key at its foot. Press it and the
   frame fills with the film, in colour, with sound: the only colour photograph of the page comes only when asked.
   On the left the words of the film, then the title that answers them; the composition answers the hero (text
   left, a screen right). Nothing moves and nothing loads but the poster until the key is pressed.
   The frame is NEW material, written here (PLAN_LIGHT B5): glass --glass, 10 px bezel drawn as box-shadow, inner
   radius 21 px (31-32 px outside), the warm cast shadow of a plate. Only transform and opacity move (the key).
   WebKit: the height uses svh with a vh fallback; the frame's size comes from width + aspect-ratio (Safari 15+);
   the bezel is box-shadow, so the frame keeps an 11 px margin and nothing sits under the glass. */

.tai-in { --tai-h: min(78vh, 700px); max-width: var(--page-max, 1840px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr) auto;
  column-gap: clamp(28px, 5vw, 96px); row-gap: 18px; align-items: start; }
@supports (height: 1svh) { .tai-in { --tai-h: min(78svh, 700px); } }

/* ── the words of the film, then the title, then what the title answers ── */
.tai-text { grid-column: 1; grid-row: 1; align-self: center; max-width: 50rem; }
.tai-story { display: grid; gap: .3em; margin-bottom: clamp(22px, 4vh, 40px); }
.tai-story p { max-width: 27em; font: 520 clamp(19px, 1.55vw, 25px)/1.28 var(--f-text); letter-spacing: -.012em; color: var(--ink-2); }
.tai-story .tai-story__hard { font-weight: 680; color: var(--ink); }
.tai-h { margin-bottom: clamp(18px, 3vh, 30px); }
.tai-after { max-width: 30em; }
.tai-after b { font-weight: 680; color: var(--ink); }
.tai-after__l { display: block; }                  /* the answer on its own line: «Εσύ ελέγχεις κι εγκρίνεις.» */

/* the accuracy line (FINAL_SPEC 3.11 and 8.1): always visible, at the foot of the text column */
.tai-exact { grid-column: 1; grid-row: 2; align-self: end; max-width: 60ch; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

/* ── the film, standing ── */
.tai-stand { grid-column: 2; grid-row: 1 / span 2; justify-self: end; display: flex; flex-direction: column; align-items: flex-start; }
.tai-frame { position: relative; display: block; flex: none; overflow: hidden; contain: paint;
  width: min(calc(var(--tai-h) * 9 / 16), calc(100vw - 2 * var(--pad) - 22px)); aspect-ratio: 9 / 16;
  margin: 11px; border-radius: 21px; background: var(--glass); color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px #000, 0 0 0 10px var(--glass), 0 0 0 11px #000, 0 30px 40px -30px rgba(var(--sh), .5);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.tai-frame:focus-visible { outline: 2px solid var(--ink); outline-offset: 15px; border-radius: 21px; }
/* the poster: the photograph in black and white, so that the page stays white and black (static, never animated) */
.tai-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04); }
/* the one black key, centred at the poster's foot, 28 px above the bezel; the whole frame presses it */
.tai-play { position: absolute; z-index: 1; left: 50%; bottom: 28px; transform: translateX(-50%); }
.tai-play .key__cap { white-space: nowrap; }
.tai-frame:active .tai-play .key__cap { transform: translateY(var(--kd)); transition: transform 60ms linear; }
@media (hover: hover) and (pointer: fine) {
  .tai-frame:hover .tai-play .key__cap { transform: translateY(1px); }
  .tai-frame:active .tai-play .key__cap { transform: translateY(var(--kd)); }
}
/* playing: the film fills the same box (no layout shift); its own controls and captions */
.tai-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tai-frame.is-on .tai-poster { pointer-events: none; }

/* the two small lines under the frame, aligned to its left edge (the bezel's outer edge) */
.tai-notes { margin: 8px 0 0; padding-left: 0; }
.tai-notes p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ── tablets: the same two columns, a shorter frame (560 px at 768 × 1024) ── */
@media (max-width: 900px) {
  .tai-in { --tai-h: min(56vh, 560px); column-gap: 28px; }
  @supports (height: 1svh) { .tai-in { --tai-h: min(56svh, 560px); } }
}
/* ── phones: one column; the frame centred, the whole of it in one screen ── */
@media (max-width: 640px) {
  .tai-in { --tai-h: min(70vh, 640px); grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 0; }
  @supports (height: 1svh) { .tai-in { --tai-h: min(70svh, 640px); } }
  .tai-text { grid-column: 1; grid-row: auto; }
  .tai-story p { font-size: 17.5px; line-height: 1.38; }
  .tai-stand { grid-column: 1; grid-row: auto; justify-self: center; margin-top: clamp(22px, 4vh, 34px); }
  .tai-exact { grid-row: auto; margin-top: 12px; }
  .tai-play { bottom: 22px; }
}
