/* §1.0 About — three statements as big as the page allows, then a brand-manual reading guide for the resting face. */

.about .sheet { overflow: hidden; }

/* sub-section rule: number left, name right */
.sub {
  display: flex; justify-content: space-between;
  border-top: 2px solid var(--char); padding-top: 10px; margin-bottom: 8vh;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}

/* ═════ 1.1 Three things ═════ */
.three { list-style: none; margin-bottom: 20vh; }
.three__item {
  position: relative;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw;
  align-items: center;
  min-height: 92vh;
}
/* the numeral: outlined, enormous, half off the page */
.three__no {
  grid-column: 1 / span 6; grid-row: 1;
  font-weight: 500; letter-spacing: -.08em; line-height: .72;
  font-size: clamp(340px, 62vw, 1100px);
  color: var(--red);
  margin-left: -16vw;
  user-select: none; pointer-events: none;
}
.three__item--flip .three__no { grid-column: 7 / -1; margin: 0 -20vw 0 0; text-align: right; }
.three__body { grid-column: 6 / -1; grid-row: 1; position: relative; z-index: 1; }
.three__item--flip .three__body { grid-column: 1 / span 7; }

.three__line {
  font-weight: 500; letter-spacing: -.055em; line-height: .86;
  font-size: clamp(60px, 8.4vw, 150px);
  margin: 0 0 4vh -.04em;
}
.three__note { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.35; max-width: 32ch; margin-bottom: 28px; }
.three__spec { font-family: var(--f-mono); font-size: 13px; max-width: 520px; }
.three__spec div { display: flex; justify-content: space-between; gap: 24px; padding: 8px 0 6px; border-top: 1px solid rgba(31,31,26,.3); }
.three__spec div:last-child { border-bottom: 1px solid rgba(31,31,26,.3); }
.three__spec dt { text-transform: uppercase; letter-spacing: .06em; opacity: .6; white-space: nowrap; }
.three__spec dd { text-align: right; }
.three__spec a { border-bottom: 1px solid currentColor; color: var(--red); }

/* line-by-line reveal: each word group rises out of its own slot */
[data-reveal] > span { display: inline-block; }
.js [data-reveal] > span { clip-path: inset(-10% -5% -18% -5%); }

/* ═════ 1.2 Reading guide ═════ */
.reading { margin-bottom: 16vh; }
.reading__intro {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw; align-items: end;
  margin-bottom: 12vh;
}
.reading__title {
  grid-column: 1 / span 7;
  font-weight: 500; letter-spacing: -.055em; line-height: .82;
  font-size: clamp(80px, 12vw, 220px); margin-left: -.04em;
}
.reading__note { grid-column: 9 / span 4; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.4; max-width: 32ch; }

.proofs { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw; margin-bottom: 14vh; }
.proof {
  position: relative; background: #FBF4E8;
  padding: 26px 28px 22px; min-height: 46vh;
  display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px rgba(31,31,26,.12);
}
.proof--wrong { grid-column: 1 / span 6; rotate: -1.2deg; margin-top: 8vh; }
.proof--right { grid-column: 7 / span 6; rotate: .8deg; }
.proof__label {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid rgba(31,31,26,.3); padding-bottom: 8px;
}
.proof__label span:first-child { font-weight: 500; }
.proof__quote {
  flex: 1; display: flex; align-items: center;
  font-weight: 500; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(34px, 3.9vw, 68px);
  padding: 5vh 0;
}
.proof--wrong .proof__quote { opacity: .55; }
.proof figcaption { font-family: var(--f-mono); font-size: 12px; border-top: 1px solid rgba(31,31,26,.3); padding-top: 8px; }
.proof--right figcaption { color: var(--red); }

/* the proofreader's marks, drawn on as you arrive */
.proof__x { position: absolute; inset: 44px 18px 40px; width: calc(100% - 36px); height: calc(100% - 84px); overflow: visible; pointer-events: none; }
.proof__x path { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.proof__tick { position: absolute; right: 28px; top: 54px; width: 72px; height: auto; overflow: visible; }
.proof__tick path { fill: none; stroke: var(--red); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .proof__x path, .js .proof__tick path { stroke-dashoffset: 1; }

/* operating instructions */
.howto { list-style: none; border-top: 2px solid var(--char); }
.howto li {
  display: grid; grid-template-columns: 1fr 11fr; column-gap: 1.6vw; align-items: baseline;
  padding: 18px 0 14px; border-bottom: 1px solid rgba(31,31,26,.3);
  font-weight: 500; letter-spacing: -.045em; line-height: .95;
  font-size: clamp(34px, 4.6vw, 80px);
  transition: color .2s, transform .35s cubic-bezier(.2,.8,.1,1);
}
.howto li span { font-family: var(--f-mono); font-weight: 400; font-size: 13px; letter-spacing: .04em; }
@media (hover: hover) { .howto li:hover { color: var(--red); transform: translateX(14px); } }

@media (max-width: 800px) {
  .three__item { min-height: 0; padding: 6vh 0 10vh; align-items: start; }
  .three__no, .three__item--flip .three__no { grid-column: 1 / -1; font-size: 78vw; margin: 0 0 -14vw -8vw; text-align: left; }
  .three__item--flip .three__no { text-align: right; margin: 0 -8vw -14vw 0; }
  .three__body, .three__item--flip .three__body { grid-column: 1 / -1; grid-row: 2; }
  .three__line { font-size: 15vw; }
  .reading__title { grid-column: 1 / -1; font-size: 22vw; margin-bottom: 4vh; }
  .reading__note { grid-column: 1 / -1; }
  .proof--wrong, .proof--right { grid-column: 1 / -1; margin: 0 0 6vh; min-height: 0; }
  .howto li { grid-template-columns: 2.4em 1fr; font-size: 9vw; }
  .proof__tick { width: 44px; top: 18px; right: 70px; }
}

/* ═════ 1.3 The long version ═════ */
.long { border-top: 2px solid var(--char); border-bottom: 1px solid rgba(31,31,26,.3); margin-bottom: 12vh; }
.long__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 1fr 10fr 1fr; column-gap: 1.6vw; align-items: center;
  padding: 3.2vh 0 2.6vh;
}
.long__no { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; }
.long__name {
  font-weight: 500; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(44px, 6.4vw, 116px);
  transition: color .2s, transform .35s cubic-bezier(.2,.8,.1,1);
}
.long__name em { font-style: normal; font-weight: 400; opacity: .4; transition: opacity .2s; }
.long__sign { justify-self: end; position: relative; width: clamp(28px, 3vw, 48px); aspect-ratio: 1; }
.long__sign::before, .long__sign::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: currentColor;
  transition: rotate .45s cubic-bezier(.2,.8,.1,1);
}
.long__sign::after { rotate: 90deg; }
.long__btn[aria-expanded="true"] .long__sign::after { rotate: 0deg; }
.long__btn:hover .long__name, .long__btn:focus-visible .long__name { color: var(--red); transform: translateX(14px); }
.long__btn:hover .long__name em { opacity: .8; }
.long__btn:hover .long__sign, .long__btn[aria-expanded="true"] .long__sign { color: var(--red); }
.long__btn:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

.long__body { overflow: hidden; }
.long__inner {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 1.6vw;
  padding: 4vh 0 8vh;
}
.long__text {
  grid-column: 2 / span 7;
  font-size: clamp(22px, 2.1vw, 34px); line-height: 1.32; letter-spacing: -.015em;
  text-wrap: pretty;
}
.long__kicker { grid-column: 2 / span 7; margin-bottom: 3vh; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.long__text p + p { margin-top: 1.1em; }
.long__close { font-weight: 500; color: var(--red); }
.long__sig { grid-column: 2 / span 7; margin-top: 3vh; font-family: var(--f-mono); font-size: 13px; color: var(--red); }
@media (max-width: 800px) {
  .long__btn { grid-template-columns: 2.6em 1fr auto; }
  .long__name { font-size: 10vw; }
  .long__kicker, .long__text, .long__sig { grid-column: 1 / -1; }
}

/* ═════ 1.2 specimen: him, standing, measured ═════ */
.reading__intro { grid-template-rows: auto auto; row-gap: 5vh; align-items: start; }
.reading__intro .reading__title { grid-column: 1 / span 6; grid-row: 1; align-self: end; }
.reading__intro .reading__note { grid-column: 1 / span 4; grid-row: 2; }
.specimen { --h: min(108vh, 1000px); grid-column: 8 / -1; grid-row: 1 / span 2; position: relative; margin: 0 0 0 auto; width: fit-content; }
.specimen__frame img { display: block; height: var(--h); width: auto; }
/* the dimension line: arrowheads, tick ends, height reading */
.specimen__dim {
  position: absolute; top: 0; bottom: var(--cap, 29px); left: -64px; width: 1px; background: var(--char);
}
.specimen__dim::before, .specimen__dim::after { content: ""; position: absolute; left: -10px; width: 21px; height: 1px; background: var(--char); }
.specimen__dim::before { top: 0; } .specimen__dim::after { bottom: 0; }
.specimen__dim span {
  position: absolute; top: 50%; left: -14px; translate: -100% -50%;
  font-family: var(--f-mono); font-size: 13px; background: var(--cream); padding: 6px 0;
  writing-mode: vertical-rl; rotate: 180deg; letter-spacing: .08em;
}
/* the callout: a leader from the face out to the label */
.specimen__call {
  position: absolute; top: 8.6%; right: calc(100% + 90px); width: max-content; max-width: 22ch;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.4; text-align: right;
}
.specimen__call b { color: var(--red); font-weight: 500; margin-right: 6px; }
.specimen__lead { position: absolute; top: .7em; left: 100%; width: calc(80px + var(--h) * .306 * .33); height: 1px; background: var(--red); margin-left: 10px; transform-origin: 0 50%; }
.specimen__lead::after { content: ""; position: absolute; right: -4px; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.specimen figcaption { font-family: var(--f-mono); font-size: 12px; border-top: 1px solid rgba(31,31,26,.3); padding-top: 8px; }
@media (max-width: 800px) {
  .reading__intro .reading__title, .reading__intro .reading__note { grid-column: 1 / -1; }
  .reading__intro .reading__note { grid-row: 3; }
  .specimen { grid-column: 1 / -1; grid-row: 2; margin: 0 auto; }
  .specimen__frame img { height: 78vh; }
  .specimen__dim { left: -22px; }
  .specimen__dim span { left: 8px; translate: 0 -50%; padding: 6px 2px; }
  .specimen__call { right: auto; left: 56%; top: 4%; max-width: 15ch; text-align: left; }
  .specimen__lead { display: none; }
}
