@view-transition { navigation: auto; }

body { margin: 0; font-family: "Host Grotesk", sans-serif; color: #000; -webkit-font-smoothing: antialiased; }

body:not(.tii-overlay-mode) .tii-page { background: #ffffff; min-height: 100vh; }

/* overflow-x: clip clips full-bleed bands without becoming a scroll container */
.tii-page { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 10px 120px; min-height: 100vh; box-sizing: border-box; overflow-x: clip; }

/* the close button stays put as the page scrolls: the header row sticks where it sits at the top,
   and only the button itself takes clicks */
.tii-header { position: sticky; top: 10px; z-index: 50; pointer-events: none; max-width: 1280px; width: 100%; height: 100px; display: flex; justify-content: flex-end; align-items: center; padding-right: 30px; box-sizing: border-box; }
.tii-header > * { pointer-events: auto; }
.tii-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #ffffff; border: 1.838px solid rgba(0,0,0,0.1); border-radius: 16px; box-shadow: 0 14.703px 58.811px -4px rgba(0,0,0,0.1); overflow: hidden; text-decoration: none; flex-shrink: 0; transition: opacity 0.15s ease; }
.tii-close:hover { opacity: 0.7; }

.tii-content { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 90px; }

/* ── type ramp ───────────────────────────────────────────────────────── */
.tii-title { font-size: 70px; font-weight: 500; line-height: 1.0; text-align: center; margin: 0; }
.tii-lead { font-size: 30px; font-weight: 300; line-height: 1.4; margin: 0; }
.tii-lead--bold { font-weight: 700; }
.tii-sec-h { font-size: 35px; font-weight: 700; line-height: 1.2; margin: 0; }
.tii-body { font-size: 22px; font-weight: 300; line-height: 1.4; margin: 0; }
.tii-callout, .tii-statement { font-size: 35px; font-weight: 400; line-height: 1.4; text-align: center; margin: 0; max-width: 760px; align-self: center; }
.tii-b { font-weight: 700; }

.tii-sec { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
.tii-sec--title { gap: 48px; }
.tii-closing { align-items: center; gap: 40px; padding: 10px 0; }

/* ── intro (roomy, matches sibling pages) ────────────────────────────── */
.tii-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.tii-intro > :first-child { flex: 0 1 468px; }
.tii-lead-stack { display: flex; flex-direction: column; gap: 20px; }
.tii-meta { flex: 0 0 220px; display: flex; flex-direction: column; gap: 20px; }
.tii-meta__group p { font-size: 22px; font-weight: 300; line-height: 1.4; margin: 0 0 6px; }
.tii-meta__group p:last-child { margin-bottom: 0; }

/* ── phone trio (full-bleed wide) ────────────────────────────────────── */
.tii-trio { margin: 0; position: relative; left: 50%; transform: translateX(-50%); width: min(940px, calc(100vw - 32px)); }
.tii-trio img { display: block; width: 100%; height: auto; }

/* ── dark "in-depth" section (full-bleed) ──────────────────────── */
.tii-sec--dark { background: #181818; color: #fff; width: 100vw; left: 50%; position: relative; transform: translateX(-50%); padding: 90px 0; gap: 0; }
.tii-sec__inner { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 90px; }

/* alternating splits */
.tii-split { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.tii-split__text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 18px; }
.tii-split__text--right { text-align: right; align-items: flex-end; }
.tii-split__media { margin: 0; flex: 0 0 auto; }
.tii-split__media img { display: block; width: 340px; height: auto; }
/* Feed: header unit on top, narrower post card below, centered stack */
.tii-split__media--stack { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 348px; }
.tii-split__media--stack img { width: 100%; }
.tii-split__media--stack .tii-feed-card { width: 70%; }

/* simplified controls: full-bleed before/after, text below */
.tii-block { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.tii-block__text { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; max-width: 760px; }
/* parent .tii-block is align-items:center, so it already centres this wider
   image. Do NOT add left:50%/translateX too — that double-applies on top of the
   centred flex item and shoves it off to the left. */
.tii-controls { margin: 0; align-self: center; width: min(956px, calc(100vw - 32px)); }
.tii-controls img { display: block; width: 100%; height: auto; }

/* ── responsive ──────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .tii-page { padding: 0 0 64px; gap: 0; }
  .tii-header { top: 0; height: 64px; padding-right: 16px; }
  .tii-content { gap: 64px; padding: 0 16px; box-sizing: border-box; }

  .tii-title { font-size: 40px; }
  .tii-lead { font-size: 24px; }
  .tii-sec-h { font-size: 26px; }
  .tii-callout, .tii-statement { font-size: 24px; }

  .tii-sec { gap: 28px; }
  .tii-sec--title { gap: 32px; }

  .tii-intro { flex-direction: column; gap: 24px; }
  .tii-intro > :first-child { flex: 1 1 auto; }
  .tii-meta { flex: 1 1 auto; }

  .tii-trio { left: auto; transform: none; position: static; width: 100%; }
  .tii-controls { width: 100%; }

  .tii-sec__inner { gap: 48px; }
  /* image stacks above text on mobile (image-text-image-text down the page) */
  .tii-split { flex-direction: column; align-items: center; gap: 24px; }
  .tii-split--reverse { flex-direction: column-reverse; }
  .tii-split__text, .tii-split__text--right { text-align: center; align-items: center; }
  .tii-split__media img { width: 280px; }
  .tii-split__media--stack { width: 280px; }
}
