/* Home 3 — loud and flat.
   A street poster for the price: flat chapters at full strength, Rokh at its heaviest, and the
   toman figure set on a green block inside the sentence. The corner header takes each chapter's ink. */

/* defaults on :root, because pc.js swaps these two on <html> as each chapter passes under the header */
:root { --header-ink: #0f0f0f; --header-ground: #ed4b44; }
.chap { position: relative; }
.chap--coral { background: var(--field-1); color: var(--field-1-ink); --text: currentColor; --heading: currentColor; }
.chap--black { background: var(--field-2); color: var(--field-2-ink); --text: currentColor; --heading: currentColor; }
.chap--green { background: var(--field-3); color: var(--field-3-ink); --text: currentColor; --heading: currentColor; }
.chap--yellow { background: var(--field-4); color: var(--field-4-ink); --text: currentColor; --heading: currentColor; }
.chap--bone { background: var(--bg); color: var(--ink); }

/* ---------- the button: square, flat, chunky ---------- */
.pbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 56px; padding: 0 1.75rem; background: var(--accent); color: var(--accent-ink); --text: currentColor; --heading: currentColor;
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.pbtn:active { transform: scale(0.97); }
.pbtn--ink { background: var(--ink); color: var(--bg); --text: currentColor; --heading: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .pbtn:hover { background: var(--ink); color: var(--bg); --text: currentColor; --heading: currentColor; }
  .pbtn--ink:hover { background: var(--accent); color: var(--accent-ink); --text: currentColor; --heading: currentColor; }
}

/* ---------- corner header (fixed, takes the chapter ink) ---------- */
.corners { position: fixed; inset-inline: 0; top: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, 3%); color: var(--header-ink); transition: color 300ms ease; pointer-events: none; }
.corners > * { pointer-events: auto; }
@media (max-width: 63.99em) { .corners { background: var(--header-ground); transition: color 300ms ease, background-color 300ms ease; } }
.corners .wordmark { font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); }
.corners__end { display: flex; align-items: center; gap: 0.75rem; }
.corners__end .icon-btn { color: inherit; }
.corners .pbtn { min-height: 44px; padding: 0 1.1rem; background: var(--header-ink); color: var(--header-ground); transition: background-color 300ms ease, color 300ms ease, transform var(--t-press) var(--ease-out); }
.corners .count { background: var(--header-ink); color: var(--header-ground); }

/* ---------- hero: colour field, two-ink statement ---------- */
.poster { min-height: min(100svh, 980px); padding: 0 max(16px, 3%); display: grid; grid-template-rows: 15svh auto 1fr; }
.poster h1 { grid-row: 2; font-weight: 900; line-height: 1.08; font-size: clamp(4rem, 13vw, 15rem); }
.line { display: block; white-space: nowrap; }
.poster h1 .pale { color: #ffffff; }
.poster__line { grid-row: 3; align-self: end; justify-self: end; width: min(24vw, 26rem); padding-bottom: 5svh; font-size: var(--step-lead); line-height: 1.6; }
@media (max-width: 48em) {
  .poster { padding: 0 16px; grid-template-rows: 16svh auto 1fr; }
  .poster__line { justify-self: start; width: 90%; padding-bottom: 24px; font-size: var(--step-body); }
}

/* ---------- pricing: one plan as a sentence ---------- */
.offer { min-height: 82svh; padding: clamp(5rem, 10vw, 8rem) max(16px, 3%) clamp(5rem, 9vw, 7rem); display: grid; align-content: space-between; gap: 3rem; }
.offer h2 { font-weight: 900; font-size: clamp(3rem, 1rem + 7.4vw, 9rem); line-height: 1.3; }
.offer h2 > span { display: block; }
.offer__price { display: inline-block; background: var(--accent); color: var(--accent-ink); --text: currentColor; --heading: currentColor; padding-inline: 0.15em; }
.offer__switch { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-top: 2rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); }
.offer__switch button { min-height: 44px; text-decoration-thickness: 4px; text-underline-offset: 0.3em; }
.offer__switch button[aria-pressed="true"] { text-decoration-line: underline; }
.offer__switch button:hover { text-decoration-line: underline; }
.offer__foot { display: grid; gap: 1.5rem var(--gutter); align-items: end; }
.offer__foot p { font-size: var(--step-lead); line-height: 1.65; max-width: 30ch; }
.offer__actions { display: grid; gap: 0.75rem; justify-items: end; }
.offer__actions a:not(.pbtn) { font-size: var(--step-body); text-decoration: underline; text-underline-offset: 0.2em; }
@media (min-width: 64em) {
  .offer__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .offer__foot p { grid-column: 1 / span 6; }
  .offer__actions { grid-column: 10 / span 3; }
}
@media (max-width: 48em) {
  .offer { padding-inline: 16px; }
  .offer h2 { font-size: 11vw; }
  .offer__actions { justify-items: stretch; }
  .offer__actions .pbtn { width: 100%; }
}

/* ---------- list: giant word, filled bar rows ---------- */
.board { padding: clamp(5rem, 10vw, 9rem) 16px; }
.board__col { width: min(100%, 620px); margin-inline: auto; container-type: inline-size; }
.board h2 { font-weight: 900; font-size: 8rem; line-height: 1.3; text-align: center; white-space: nowrap; }
.bars { display: grid; gap: 6px; margin-top: 20px; }
.bars details { background: var(--surface); }
.bars summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; font-family: var(--font-display); font-weight: 700; font-size: var(--step-body); }
.bars summary::-webkit-details-marker { display: none; }
.bars summary .ph-bold { transition: transform var(--t-ui) var(--ease-out); }
.bars details[open] summary .ph-bold { transform: rotate(45deg); }
.bars summary:hover { background: var(--surface-2); }
.bars ul { list-style: none; margin: 0; padding: 4px 18px 20px; display: grid; gap: 14px; }
.bars li a { display: flex; justify-content: space-between; gap: 1rem; text-decoration: none; font-size: var(--step-body); }
.bars li a:hover span:first-child { text-decoration: underline; }
.bars li small { display: block; color: var(--muted); font-size: var(--step-small); }

/* ---------- about: pinned title, people pass ---------- */
.people { position: relative; overflow-x: clip; }
.people__title { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.people__title h2 { font-weight: 900; font-size: clamp(4rem, 1rem + 6vw, 8rem); line-height: 1.2; color: var(--field-3-ink); }
ul.people__list { position: relative; z-index: 1; margin-top: -100svh; padding: 30svh max(16px, 3%) 20svh; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6svh; list-style: none; margin-bottom: 0; }
.person { width: clamp(14rem, 23vw, 21rem); }
.person:nth-child(odd) { justify-self: start; margin-inline-start: 5%; }
.person:nth-child(even) { justify-self: end; margin-inline-end: 5%; }
.person img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.person h3 { margin-top: 0.9rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-body); }
.person b { display: block; font-size: var(--step-small); font-weight: 400; }
.person p { margin-top: 0.4rem; max-width: 28ch; font-size: var(--step-body); line-height: 1.65; }
.person:nth-child(odd) { rotate: -3deg; }
.person:nth-child(4n+2) { rotate: 2deg; }
@media (max-width: 63.99em) {
  .poster { min-height: 0; grid-template-rows: 16svh auto auto; }
  .poster__line { margin-top: 3rem; }
}
@media (max-width: 48em) {
  .people__title { height: auto; top: 64px; padding-block: 16px; place-items: start; padding-inline: 16px; }
  .people__title h2 { font-size: 17vw; }
  ul.people__list { margin-top: 0; padding: 32px 24px 96px; gap: 48px; }
  .person { width: 72%; rotate: 0deg !important; }
  .person:nth-child(odd), .person:nth-child(even) { margin-inline: 0; }
}

/* ---------- cta: the idea again, inverted ---------- */
.close { min-height: 90svh; padding: clamp(6rem, 12vw, 9rem) max(16px, 3%) 40px; display: grid; grid-template-rows: auto 1fr auto; gap: 2rem; }
.close h2 { font-weight: 900; font-size: clamp(3.5rem, 1rem + 9vw, 11rem); line-height: 1.15; }
.close__foot { display: grid; gap: 1.5rem var(--gutter); align-items: end; grid-row: 3; }
.close__foot p { font-size: var(--step-lead); line-height: 1.65; max-width: 30ch; }
@media (min-width: 64em) {
  .close__foot { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .close__foot p { grid-column: 1 / span 5; }
  .close__foot .pbtn { grid-column: 10 / span 3; }
}
@media (max-width: 48em) {
  .close { min-height: 80svh; padding-inline: 16px; }
  .close__foot .pbtn { width: 100%; }
}

/* ---------- footer: photograph half, menu half ---------- */
.pfoot { display: grid; min-height: 100svh; }
.pfoot__photo { overflow: hidden; }
.pfoot__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.pfoot__menu { padding: 32px max(16px, 3%) 24px; display: flex; flex-direction: column; gap: 3rem; }
.pfoot__menu .wordmark { font-family: var(--font-display); font-weight: 900; font-size: var(--step-body); }
.pfoot__links { display: grid; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pfoot__links a { display: inline-block; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 1.2rem + 2.4vw, 3.5rem); line-height: 1.35; text-decoration: none; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-hover) ease; }
.pfoot__links:hover a:not(:hover) { opacity: 0.55; }
.pfoot__links a:hover { transform: translateX(-12px); }
.pfoot__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; font-size: var(--step-small); }
.pfoot__blocks h3 { font-family: var(--font-display); font-weight: 800; font-size: var(--step-small); margin-bottom: 0.4rem; }
.pfoot__blocks a { text-decoration: none; display: block; }
.pfoot__blocks a:hover { text-decoration: underline; }
.pfoot__legal { margin-top: auto; font-size: var(--step-small); }
.pfoot__legal a { text-decoration: underline; }
@media (min-width: 64em) {
  .pfoot { grid-template-columns: 1fr 1fr; }
  .pfoot__menu { padding-top: 80px; padding-inline-start: 8%; }
}
@media (max-width: 63.99em) {
  .pfoot__photo { height: 50svh; }
}
