




/* The cover is the demo's scroll room: the headline starts below the fold
   so the reveal plays on scroll. */
.iih_page {
  --iih-bg: var(--color-paper);
  --iih-tile: var(--warm-50);
  --iih-tile-2: var(--warm-100);
  --iih-fg: var(--color-ink);
  --iih-grey: var(--color-muted);
  --iih-line: rgba(20, 19, 20, 0.12);
  --iih-focus: rgba(16, 16, 16, 0.3);
  --iih-accent: var(--color-accent);
  --iih-on-accent: var(--warm-100);
  --iih-margin: clamp(20px, 2.8vw, 48px);
  --iih-gutter: clamp(12px, 1.4vw, 24px);
  --iih-col: calc((100% - 2 * var(--iih-margin, 40px) - 11 * var(--iih-gutter, 20px)) / 12);
  --iih-display: clamp(40px, 4.2vw, 80px);
  --iih-label: clamp(18px, 1.4vw, 28px);
  --iih-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --iih-serif: 'Instrument Serif', Georgia, serif;

  width: 100%;
  box-sizing: border-box;
  background: var(--iih-bg, var(--color-paper));
  color: var(--iih-fg, var(--color-ink));
  font-family: var(--iih-sans, 'Inter', sans-serif);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.iih_stage {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--iih-margin);
}

.iih_headline {
  --iih-slot-w: 1.7;
  --iih-slot-h: 0.72;
  --iih-slot-r: 0.36;

  width: 100%;
  max-width: calc((10 * 100% - 2 * var(--iih-gutter, 20px)) / 12);
  margin: 0;
  font-family: var(--iih-serif, Georgia, serif);
  font-size: var(--iih-display, 60px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--iih-fg, var(--color-ink));
  text-align: center;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
}

/* No in-flow content, so the slot's baseline is its bottom edge: it sits on
   the text baseline and reaches cap height. isolation keeps the rounded
   clip working in Safari while the img inside is scaled. */
.iih_slot {
  position: relative;
  display: inline-block;
  width: calc(var(--iih-slot-w) * 1em);
  height: calc(var(--iih-slot-h) * 1em);
  border-radius: calc(var(--iih-slot-r) * 1em);
  overflow: hidden;
  isolation: isolate;
  vertical-align: baseline;
}

/* Fixed at the full slot width and centred, so an opening slot uncovers the
   photo from the middle instead of re-cropping it every frame. Taller than
   the slot (20% overhang each side) so the inner parallax never shows an
   edge. */
.iih_img {
  position: absolute;
  top: -20%;
  left: 50%;
  display: block;
  width: calc(var(--iih-slot-w) * 1em);
  max-width: none;
  height: 140%;
  margin-left: calc(var(--iih-slot-w) * -0.5em);
  object-fit: cover;
}

/* Descender headroom: the padding grows the line so its mask clips below
   g/p/y, the mask's negative margin cancels the extra leading. */
.iih_grey {
  color: var(--iih-grey, var(--color-muted));
}

.iih_line {
  padding-bottom: 0.18em;
}

.iih_line-mask {
  margin-bottom: -0.18em;
}

@media (max-width: 767px) {
  .iih_headline {
    max-width: 100%;
  }
}

.iih_stage { min-height: 80svh; padding-block: clamp(80px, 8vw, 140px); }
h2.iih_headline { font-size: var(--text-h2); line-height: 1.2; letter-spacing: -.025em; max-width: 1000px; }
.iih_line-mask { display: block; overflow-x: visible; overflow-y: clip; padding-bottom: .25em; margin-bottom: -.25em; }
.iih_line { display: block; padding-bottom: 0; }
.iih_slot { --iih-slot-h: 1.155; border-radius: 999px; vertical-align: -.12em; }
.iih_img { top: 0; height: 100%; object-position: center; }
.iih_grey { color: var(--color-slate); }
@media(max-width:767px) { h2.iih_headline { font-size: var(--text-h2); max-width: 100%; } }

/* Two authored lines, with the middle portrait retained. */
.iih_page h2.iih_headline { max-width:100%; font-size:clamp(24px,7.5vw,120px); line-height:1.22; }
.iih_headline .iih_line { white-space:nowrap; }

@media(max-width:767px) { .iih_page h2.iih_headline { font-size:clamp(20px,7.1vw,54px); } }

.iih_mobile_break{display:none}
@media(max-width:767px){
 .iih_mobile_break{display:block}
 .iih_page h2.iih_headline{font-size:clamp(38px,10.5vw,72px);line-height:1.18}
 .iih_headline .iih_line{white-space:normal}
}
