/* Homepage "We know how it goes" (#week) and the section openers (.head--stage). Founder pick 2026-10-27: the flip.
   "Your week now" / "With Hypeman": the four moments deal in as the section enters, then flip one by one to what happens
   instead (assets/week.js); visitors can toggle back. Static (no JS, reduced motion): the "now" faces, finished. */

.wk { --wk-ease: cubic-bezier(.2, .8, .2, 1); --wk-io: cubic-bezier(.65, 0, .35, 1); --wk-red: #b8322b; --wk-blue: #4767e6; position: relative; }
.wk ol { list-style: none; margin: 0; padding: 0; }
.wk :where(p, b, small, em, i, s) { margin: 0; font-style: normal; }
.wk .h2 { max-width: 13ch; }
.wk__head .lede { margin-top: 26px; max-width: 40ch; }
.wk time { display: inline-block; padding: 6px 9px; border-radius: 7px; background: var(--ink); color: var(--volt); font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* headline: word by word, rising out of a mask */
.wk-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wk-w > span { display: inline-block; }
.wk.is-anim .wk-w > span { transform: translateY(108%); transition: transform 1s var(--wk-ease) calc(var(--wi) * 55ms); }
.wk.is-anim.is-in .wk-w > span { transform: none; }
.wk.is-anim .wk__head .lede, .wk.is-anim .wk__ctl, .wk.is-anim .wk__side .lede { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--wk-ease) .55s, transform .9s var(--wk-ease) .55s; }
.wk.is-anim.is-in .wk__head .lede, .wk.is-anim.is-in .wk__ctl, .wk.is-anim.is-in .wk__side .lede { opacity: 1; transform: none; }
.wk.is-anim .eyebrow { opacity: 0; transition: opacity .8s var(--wk-ease); }
.wk.is-anim.is-in .eyebrow { opacity: 1; }

/* the small artefact under each moment (a sideways photo, missed calls, the invoice line, the failed login) */
.wk-mo__art { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px -30px rgb(9 9 11 / .5); font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink); }
.wk-mo__art img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; transform: rotate(90deg); outline: 1.5px dashed var(--wk-blue); outline-offset: 3px; }
.wk-mo__art .wk-red { color: var(--wk-red); }
.wk-mo__art b { display: block; font: 600 15px/1.2 var(--display); letter-spacing: -.02em; }
.wk-mo__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: var(--ink); color: var(--fg); font: 600 16px/1 var(--display); }

/* ======================= C · Flip ======================= */
.wk--c { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
.wk--c .head--stage { display: contents; }
.wk--c .hs__top { grid-column: 1 / -1; grid-row: 1; }
.wk--c .hs__type { grid-column: 1 / 8; grid-row: 2; }
.wk__ctl { grid-column: 8 / 13; grid-row: 2; align-self: end; display: grid; gap: 22px; }
.wk__ctl .lede { margin: 0; }
.wk-tg { position: relative; justify-self: start; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; background: var(--ink); box-shadow: 0 20px 40px -24px rgb(9 9 11 / .6); }
.wk-tg button { position: relative; z-index: 1; min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: none; color: var(--dim); font: 560 14.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: color .35s ease; }
.wk-tg button[aria-pressed="true"] { color: var(--ink); }
.wk-tg__thumb { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--fg); transition: transform .55s cubic-bezier(.3, 1.3, .5, 1), background .4s ease; }
.wk.is-hm .wk-tg__thumb { transform: translateX(100%); background: var(--volt); box-shadow: 0 0 24px rgb(198 255 61 / .45); }
.wk .wk__cards { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 52px; perspective: 1400px; }
.wk-card { position: relative; min-height: 300px; }
.wk-card__in { position: relative; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.5, 0, .2, 1) calc(var(--i) * .12s); }
.wk.is-hm .wk-card__in { transform: rotateY(180deg); }
.wk-card__f { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 24px; border-radius: 22px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.wk-card__now { background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 40px 70px -50px rgb(9 9 11 / .45); }
.wk-card__hm { transform: rotateY(180deg); background: var(--ink); color: var(--fg); box-shadow: inset 0 0 0 1px rgb(198 255 61 / .35), 0 40px 70px -40px rgb(9 9 11 / .7); }
.wk-card__hm::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(70% 50% at 90% 0%, rgb(198 255 61 / .14), transparent 70%); }
.wk-card__f time { align-self: flex-start; }
.wk-card__f p { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.wk-card__now s { color: var(--muted); }
.wk-card__hm time { background: var(--volt); color: var(--ink); }
.wk-card__res { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.wk-card__res::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 10px rgb(198 255 61 / .8); }
.wk-card__art { margin-top: auto; }
.wk-card__art .wk-mo__art { margin: 0; }
.wk.is-anim .wk-card { opacity: 0; transform: translate3d(calc((1.5 - var(--i)) * 104%), 60px, 0) rotate(calc((var(--i) - 1.5) * 5deg)); transition: opacity .6s ease calc(.25s + var(--i) * .05s), transform 1.1s var(--wk-ease) calc(.45s + var(--i) * .1s); }
.wk.is-anim.is-in .wk-card { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .wk-card:hover .wk-card__in { transform: rotateY(-14deg) translateY(-6px); transition-delay: 0s; }
  .wk.is-hm .wk-card:hover .wk-card__in { transform: rotateY(194deg) translateY(-6px); }
}
@media (max-width: 1100px) {
  .wk--c .hs__type, .wk__ctl { grid-column: 1 / -1; }
  .wk__ctl { grid-row: 3; } .wk .wk__cards { grid-row: 4; }
  .wk__ctl { margin-top: 24px; }
  .wk .wk__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk.is-anim .wk-card { transform: translate3d(0, 60px, 0) rotate(calc((var(--i) - 1.5) * 3deg)); }
}
@media (max-width: 640px) {
  .wk--c { display: block; }
  .wk .wk__cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .wk-card { min-height: 236px; }
  .wk-tg { justify-self: stretch; } .wk-tg button { padding: 0 10px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .wk *, .wk *::before, .wk *::after { animation: none !important; transition: none !important; }
}

/* ======================= .head--stage: the section opener (week, seen, industries) =======================
   Replaces .head--split (giant H2 left, small lede far right, dead middle). One composition:
   a numbered eyebrow rule that draws across the full width, then display type with the lede set into the
   end of the headline (editorial inset), so the two read as one block. As it enters: the rule draws, the words
   rise, the lede slides in behind a volt bar, then the section's content follows (.is-in on the section). */
.head--stage { display: block; }
.head--stage .hs__top { display: flex; align-items: center; gap: 18px; }
.head--stage .hs__top .eyebrow { flex: none; }
.hs__rule { flex: 1; height: 1px; background: var(--line-2); transform-origin: 0 50%; }
.hs__n { flex: none; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec--ink .hs__rule { background: var(--line-d2); } .sec--ink .hs__n { color: var(--dim-2); }
.head--stage .hs__type { margin-top: clamp(26px, 3vw, 40px); }
.head--stage .h2 { display: inline; margin: 0; max-width: none; font-size: clamp(44px, 6.6vw, 104px); line-height: .98; letter-spacing: -.058em; text-wrap: initial; }
.head--stage .lede { position: relative; display: inline-block; width: min(34ch, 100%); margin: 0 0 0 clamp(16px, 2vw, 32px); padding-left: 18px; vertical-align: top; transform: translateY(clamp(6px, 1.2vw, 18px)); font-size: clamp(15.5px, 1.15vw, 17.5px); line-height: 1.55; text-wrap: pretty; }
.head--stage .lede::before { content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 2px; border-radius: 2px; background: var(--ink); transform-origin: 50% 0; }
/* the muted second line stays on its own line but inline, so the lede can sit at its end */
.head--stage .h2 .hl { display: inline; }
.head--stage .h2 .hl::before { content: "\A"; white-space: pre; }
.sec--ink .head--stage .lede::before { background: var(--volt); box-shadow: 0 0 12px rgb(198 255 61 / .5); }
/* motion (week.js adds .hs-anim, then .is-in on the section once it is in view) */
.hs-anim .hs__rule { transform: scaleX(0); transition: transform 1.4s var(--hs-io, cubic-bezier(.65, 0, .35, 1)) .1s; }
.hs-anim .hs__n, .hs-anim .hs__top .eyebrow { opacity: 0; transition: opacity .8s ease .2s; }
.hs-anim .hs__n { transition-delay: 1.1s; }
.hs-anim .wk-w > span { transform: translateY(108%); transition: transform 1.05s cubic-bezier(.2, .8, .2, 1) calc(.25s + var(--wi) * 50ms); }
.hs-anim .lede { opacity: 0; translate: 24px 0; transition: opacity .9s ease var(--hs-ld, .9s), translate 1s cubic-bezier(.2, .8, .2, 1) var(--hs-ld, .9s); }
.hs-anim .lede::before { transform: scaleY(0); transition: transform .8s cubic-bezier(.65, 0, .35, 1) var(--hs-ld, .9s); }
.is-in .hs-anim .hs__rule, .is-in.hs-anim .hs__rule { transform: none; }
.is-in .hs-anim .hs__n, .is-in .hs-anim .hs__top .eyebrow { opacity: 1; }
.is-in .hs-anim .wk-w > span { transform: none; }
.is-in .hs-anim .lede { opacity: 1; translate: 0 0; }
.is-in .hs-anim .lede::before { transform: none; }
/* the content after the opener waits for it */
.hs-sec.hs-wait .hs-next { opacity: 0; transform: translateY(40px); }
.hs-sec .hs-next { transition: opacity 1s ease 1.1s, transform 1.2s cubic-bezier(.2, .8, .2, 1) 1.1s; }
.hs-sec.hs-wait.is-in .hs-next { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .hs-sec .hs-next { transition-delay: .45s, .45s; }
  .head--stage .h2 { display: block; font-size: clamp(40px, 11.4vw, 54px); }
  .head--stage .h2 .hl { display: block; text-wrap: balance; } /* the grey phrase gets its own balanced lines, never one orphan word */
  .head--stage .h2 .hl::before { content: none; }
  .head--stage .lede { display: block; width: auto; margin: 22px 0 0; transform: none; font-size: 16px; }
  .head--stage .hs__top { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .hs-anim *, .hs-anim *::before, .hs-sec .hs-next { transition: none !important; } }
