/* Full pages for the approved colour wrapper and diagonal ribbon.
   All selectors are confined to their hero; the rest of the site is untouched. */
body[data-header-look] .hero{position:relative;isolation:isolate;overflow:hidden;background:#f1c54a}
body[data-header-look="color"][data-header-palette="green"] .mast{position:relative}
body[data-header-look="color"][data-header-palette="green"] .mast-inner{justify-content:flex-end}
body[data-header-look="color"][data-header-palette="green"] .mast .brand{position:absolute;left:24px;top:50%;transform:translateY(-50%)}
body[data-header-look] .hero-inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.023fr) minmax(0,1fr);gap:8.05%;width:min(100%,1180px);min-height:700px;padding:104px 6.78% 82px 8.05%;align-items:center;margin-inline:auto}
body[data-header-look] .intro{display:block;position:relative;min-width:0;container-type:inline-size}
body[data-header-look] .intro::before{content:none}
body[data-header-look] .hero h1{font-size:min(clamp(76px,8.82vw,104px),21.3cqw);line-height:.98;letter-spacing:-.0385em;margin:22px 0}
body[data-header-look] .hero-word{white-space:nowrap}
/* Oswald's Ё dots sit above its tight line box. Padding keeps them inside the
   text background; negative margins preserve the original line spacing. */
body[data-header-look] .hero-yo{display:inline-block;vertical-align:baseline;line-height:inherit;padding:.2em 0;margin:-.2em 0;background-image:linear-gradient(to bottom,var(--green) 0 .28em,var(--ink) .28em);-webkit-background-clip:text;background-clip:text;color:transparent}
body[data-header-look] .hero .byline{font-size:11px;line-height:1.4;letter-spacing:1px;white-space:nowrap;gap:.65rem}
body[data-header-look] .hero .byline>span{width:1.2rem}
body[data-header-look] .hero .lead{font-size:16px;line-height:1.65;max-width:min(400px,90%);letter-spacing:-.25px}
body[data-header-look] .hero-action-row{margin-top:22px;justify-content:flex-start;gap:0}
body[data-header-look] .hero-action-row .action{font-size:13px;gap:32px;padding:14px 17px;min-height:46px;margin:0}
body[data-header-look] .hero-art,
body[data-header-look] .hero-doodles,
body[data-header-look] .field-bulb,
body[data-header-look] .field-r{display:none!important}
body[data-header-look] .board{position:relative;min-width:0;background:transparent;border:0;box-shadow:none;padding:0;isolation:isolate;transform:none}
body[data-header-look] .field-note{padding:32px;transform:rotate(-3deg);margin:0;border:1.5px solid #24251f;box-shadow:7px 9px 0 #24251f;background:#f8f6ed}
body[data-header-look] .hero .eyebrow{font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1px;text-transform:uppercase}
body[data-header-look] .hero .note-before{font-size:17px;line-height:1.5;margin-top:28px;color:#737366;text-decoration-thickness:2px}
body[data-header-look] .hero .note-arrow{font-size:47px;line-height:1;margin:8px 0}
body[data-header-look] .field-note h2{font-size:32px;line-height:1.17;letter-spacing:-1.2px;font-weight:800;max-width:380px}
body[data-header-look] .hero .note-after{font-size:14px;line-height:1.7;margin:17px 0 20px;max-width:350px}
body[data-header-look] .hero .poster-link{font-size:13px;font-weight:750;text-underline-offset:4px}
body[data-header-look="color"] .hero-inner{padding-left:9.83%;gap:6.27%}
body[data-header-look="color"] .field-note{transform:rotate(-2deg)}
body[data-header-look] .header-art{position:absolute;top:0;bottom:0;left:50%;width:min(100%,1180px);z-index:0;pointer-events:none;user-select:none;transform:translateX(-50%)}
body[data-header-look] .header-motif{position:absolute;display:block;left:var(--motif-x);top:var(--motif-y);width:var(--motif-width);height:auto;max-width:none;opacity:1;transform:rotate(var(--motif-angle))}
body[data-header-look] .edge-motif{position:absolute;display:block;height:auto;max-width:none;opacity:1}
body[data-header-look] .header-story{display:none}
body[data-header-look] .invitation-stage{display:block;background:#f8f6ed;border:1.5px solid #24251f;padding:32px;box-shadow:7px 9px 0 #24251f;transform:rotate(-3deg);margin:0}
body[data-header-look="color"] .invitation-stage{transform:rotate(-2deg)}
body[data-header-look] .invitation-teaser{display:block;min-height:0}
body[data-header-look] .invitation-teaser>.eyebrow{font-size:11px;line-height:1.4;max-width:100%}
body[data-header-look] .invitation-teaser .note-before{font-size:17px;margin-top:28px}
body[data-header-look] .invitation-teaser .note-arrow{font-size:47px;margin:8px 0}
body[data-header-look] .invitation-teaser h2{font-size:30px;line-height:1.17;letter-spacing:-1.1px;max-width:400px;overflow-wrap:break-word}
body[data-header-look] .teaser-description{font-size:14px;line-height:1.7;margin:17px 0 20px;max-width:360px}
body[data-header-look] .proposal-link{font-size:13px;font-weight:750;padding:12px 15px;gap:.8rem;min-height:44px;margin:0;width:fit-content;max-width:100%;line-height:1.5}
body[data-header-look] .teaser-footnote{font-size:10px;line-height:1.5;margin-top:12px;max-width:360px}

/* Keep the artwork's original frame proportions on large monitors. */
@media(min-width:1180px){
  body[data-header-look] .hero-inner{grid-template-columns:450px 440px;padding-left:95px;padding-right:80px;gap:95px}
  body[data-header-look="color"] .hero-inner{padding-left:116px;gap:74px}
}
@media(min-width:701px) and (max-width:1099px){
  body[data-header-look] .hero-inner{padding-top:108px;padding-bottom:105px;min-height:730px}
  body[data-header-look] .hero .byline{font-size:9px;letter-spacing:.7px}
  body[data-header-look] .field-note,
  body[data-header-look] .invitation-stage{padding:25px}
  body[data-header-look] .field-note h2{font-size:28px;letter-spacing:-.8px}
  body[data-header-look] .invitation-teaser h2{font-size:27px;letter-spacing:-.7px}
  body[data-header-look] .hero .eyebrow,
  body[data-header-look] .invitation-teaser>.eyebrow{font-size:10px}
  body[data-header-look] .hero .note-before,
  body[data-header-look] .invitation-teaser .note-before{font-size:15px}
}

/* A normal stacked page below 700px, with whole visual jokes in two printed rows.
   Text and controls never inherit a scale transform from the desktop study. */
@media(max-width:700px){
  body[data-header-look] .hero-inner,
  body[data-header-look="color"] .hero-inner{width:min(calc(100% - 3rem),620px);min-height:0;padding:3rem 0 3.5rem;grid-template-columns:minmax(0,1fr);gap:2.5rem;align-items:start}
  body[data-header-look] .header-art{display:none}
  body[data-header-look] .hero h1{font-size:min(clamp(72px,12vw,104px),21.3cqw);line-height:.98;margin:22px 0}
  body[data-header-look] .hero .byline{font-size:10px;letter-spacing:.8px;white-space:normal}
  body[data-header-look] .hero .lead{max-width:460px;font-size:16px;line-height:1.65}
  body[data-header-look] .hero-action-row{margin-top:22px}
  body[data-header-look] .hero-action-row .action{min-height:46px;font-size:13px}
  body[data-header-look] .header-story{display:flex;flex-direction:column;gap:18px;width:min(100%,480px);margin:2rem auto 0;pointer-events:none;user-select:none}
  body[data-header-look] .header-story img{display:block;width:100%;height:auto;min-width:0;object-fit:contain;max-height:120px;opacity:1}
  body[data-header-look] .story-formula{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:28px;align-items:center;padding:0 5px}
  body[data-header-look] .story-equation{transform:none}
  body[data-header-look] .story-phone{transform:rotate(-8deg)}
  body[data-header-look] .story-poses{display:grid;grid-template-columns:1fr 1.3fr .85fr;gap:30px;align-items:center;padding:3px 12px}
  body[data-header-look] .story-shot{transform:rotate(-5deg)}
  body[data-header-look] .story-rest{transform:rotate(4deg)}
  body[data-header-look] .story-r{transform:rotate(-6deg)}
  body[data-header-look="diagonal"] .story-formula{padding-left:25px;padding-right:0}
  body[data-header-look="diagonal"] .story-poses{padding-right:28px;padding-left:0}
  body[data-header-look] .board{width:100%;margin:0;padding:0}
  body[data-header-look] .field-note{margin:0 6px;padding:28px;transform:rotate(-1deg);box-shadow:5px 7px 0 #24251f}
  body[data-header-look] .field-note h2{font-size:32px;max-width:450px}
  body[data-header-look] .hero .note-after{max-width:450px;font-size:14px}
  body[data-header-look] .invitation-stage{margin:0 6px;padding:28px;transform:rotate(-1deg);box-shadow:5px 7px 0 #24251f}
  body[data-header-look] .invitation-teaser h2{font-size:30px;max-width:480px}
  body[data-header-look] .teaser-description{max-width:450px}
  body[data-header-look] .proposal-link{font-size:13px;min-height:46px}
}
@media(max-width:480px){
  body[data-header-look] .hero-inner,
  body[data-header-look="color"] .hero-inner{width:calc(100% - 2.3rem);padding:2.5rem 0 3rem;gap:2.1rem}
  body[data-header-look] .hero h1{font-size:min(clamp(70px,18vw,86px),21.3cqw);letter-spacing:-.045em;margin:20px 0}
  body[data-header-look] .hero .byline{font-size:9px;letter-spacing:.6px;gap:.5rem}
  body[data-header-look] .hero .lead{font-size:15px;max-width:none}
  body[data-header-look] .header-story{gap:15px;margin-top:1.8rem}
  body[data-header-look] .story-formula{grid-template-columns:minmax(0,1fr) 50px;gap:18px;padding:0 4px}
  body[data-header-look] .story-poses{gap:19px;padding:2px 9px}
  body[data-header-look] .header-story img{max-height:98px}
  body[data-header-look="diagonal"] .story-formula{padding-left:10px}
  body[data-header-look="diagonal"] .story-poses{padding-right:15px}
  body[data-header-look] .field-note,
  body[data-header-look] .invitation-stage{padding:24px}
  body[data-header-look] .field-note h2,
  body[data-header-look] .invitation-teaser h2{font-size:27px;line-height:1.18;letter-spacing:-.8px}
  body[data-header-look] .hero .eyebrow,
  body[data-header-look] .invitation-teaser>.eyebrow{font-size:9px;letter-spacing:.7px}
  body[data-header-look] .hero .note-before,
  body[data-header-look] .invitation-teaser .note-before{font-size:15px;margin-top:24px}
  body[data-header-look] .hero .note-arrow,
  body[data-header-look] .invitation-teaser .note-arrow{font-size:41px}
  body[data-header-look] .proposal-link{padding:12px;font-size:12px;gap:.6rem;line-height:1.4}
}
@media(max-width:360px){
  body[data-header-look] .hero h1{font-size:min(68px,21.3cqw)}
  body[data-header-look] .hero .byline{font-size:8px;letter-spacing:.5px}
  body[data-header-look] .story-formula{grid-template-columns:minmax(0,1fr) 44px;gap:14px}
  body[data-header-look] .story-poses{gap:15px;padding-inline:6px}
  body[data-header-look] .field-note,
  body[data-header-look] .invitation-stage{padding:21px}
  body[data-header-look] .field-note h2,
  body[data-header-look] .invitation-teaser h2{font-size:25px}
  body[data-header-look] .hero .note-before,
  body[data-header-look] .invitation-teaser .note-before{font-size:14px}
}
/* The selected background uses equally compact marks, including mobile rows. */
@media(max-width:700px){
  body[data-header-look="color"][data-header-palette="green"] .header-story{width:min(100%,340px);gap:14px}
  body[data-header-look="color"][data-header-palette="green"] :is(.story-formula,.story-poses){grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;align-items:center;justify-items:center}
  body[data-header-look="color"][data-header-palette="green"] .story-phone{grid-column:3}
  body[data-header-look="color"][data-header-palette="green"] .header-story img{width:100%;height:70px;max-width:100px;max-height:70px;object-fit:contain}
}
@media(max-width:380px){
  body[data-header-look="color"][data-header-palette="green"] .header-story img{height:63px;max-width:90px;max-height:63px}
}

.invitation-stage.is-staged {
  position: absolute;
  inset: 0 0 auto;
  visibility: hidden;
  pointer-events: none;
}

.invitation-card-frame {
  position: absolute;
  display: block;
  width: 100%;
  height: 0;
  border: 0;
}

body[data-header-look] .invitation-stage.is-custom {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.invitation-stage.is-custom .invitation-card-frame {
  position: static;
}

body[data-header-look] .invitation-stage.is-custom .proposal-link {
  margin-top: 12px;
}

/* Both card faces size the same slot before the animation starts. */
.board.has-invitation-sides {
  display: grid;
  perspective: 900px;
}

.board.has-invitation-sides > :is(.field-note, .invitation-stage) {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}

.board.has-invitation-sides > [inert],
.hero-action-row[inert] {
  visibility: hidden;
}
