/* ============================================================
   Keynotes: a scrolled experience, scene by scene.
   Words arrive, one stage holds four themes and changes
   colour with each, the page closes in the dark.
   ============================================================ */
.kn { --kn-paper: #f8f7f5; --kn-stone: #e9e5db; --kn-ink: #0d0c0a; --kn-ease: cubic-bezier(0.2, 0.7, 0.2, 1); }
.kn .arrow { color: inherit; }

.kn-label { font-family: var(--sans); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-52); }

/* a thin cue at the foot of the opening screen */
.kn .page-head { position: relative; }
.kn-cue { position: absolute; left: var(--pad); bottom: 0; width: 1px; height: 72px; background: linear-gradient(180deg, var(--ink-52), transparent); transform-origin: top; animation: knCue 3.2s ease-in-out infinite; }
@keyframes knCue { 0%, 100% { transform: scaleY(0.3); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- words: the sentence is read by scrolling ---------- */
.kn-words { border-top: 1px solid var(--rule); background: var(--kn-paper); }
.kn-words__stick { display: flex; align-items: center; padding: clamp(80px, 16vh, 180px) var(--pad); }
.kn-words__text { max-width: 22em; font-family: var(--sans); font-weight: 300; font-size: clamp(1.9rem, 4.4vw, 4.2rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.kn-pinned .kn-words { height: 280svh; }
.kn-pinned .kn-words__stick { position: sticky; top: 0; height: 100svh; padding-top: 0; padding-bottom: 0; }
.kn-pinned .kn-words .w { opacity: 0.14; }

.kn-about { border-top: 1px solid var(--rule); padding: clamp(56px, 11vh, 130px) var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); }
.kn-about__in { grid-column: 5 / 12; }
.kn-about__p { font-weight: 300; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.75; color: var(--ink); }
.kn-about__m { margin-top: 1.6rem; font-weight: 300; color: var(--ink-72); }
.kn a.inline { color: var(--ink); border-bottom: 1px solid var(--ink-38); }

/* ---------- theatre: one stage, four themes ---------- */
.kn-theatre { border-top: 1px solid var(--rule); }
.kn-theatre__stick { position: relative; background: var(--kn-paper); color: var(--ink); transition: background-color 1.6s ease, color 1.6s ease; }
.kn-theatre__label { position: absolute; left: var(--pad); top: clamp(28px, 5vh, 56px); z-index: 3; color: inherit; opacity: 0.55; font-family: var(--sans); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; }
.kn-slide { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; padding: clamp(72px, 14vh, 150px) var(--pad); border-top: 1px solid var(--rule); }
.kn-slide:first-of-type { border-top: 0; }
.kn-slide__no { grid-column: 1 / 5; font-family: var(--display); font-size: clamp(5rem, 15vw, 14rem); line-height: 1; letter-spacing: 0.02em; opacity: 0.13; }
.kn-slide__text { grid-column: 5 / 12; }
.kn-slide__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 3.2rem); line-height: 1.1; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.kn-slide__body { margin-top: clamp(20px, 3.5vh, 36px); max-width: 36rem; font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.75; opacity: 0.82; }
.kn-theatre__rail { display: none; }

.kn-pinned .kn-theatre { height: calc((var(--n, 4) + 1) * 100svh + 20svh); }
.kn-pinned .kn-theatre__stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.kn-pinned .kn-slide { position: absolute; inset: 0; border: 0; opacity: 0; transform: translateY(24px); transition: opacity 1.1s ease, transform 1.4s var(--kn-ease); pointer-events: none; }
.kn-pinned .kn-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.kn-pinned .kn-slide.is-past { transform: translateY(-24px); }
.kn-pinned .kn-theatre__rail { display: flex; align-items: center; gap: 24px; position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(24px, 5vh, 52px); z-index: 3; }
.kn-theatre__bar { flex: 1; height: 1px; background: currentColor; opacity: 0.5; transform: scaleX(0); transform-origin: left; }
.kn-theatre__count { font-family: var(--sans); font-weight: 500; font-size: 0.64rem; letter-spacing: 0.22em; opacity: 0.6; font-variant-numeric: tabular-nums; }
/* the colour of the room changes with each theme */
.kn-pinned .kn-theatre[data-tone="1"] .kn-theatre__stick { background: var(--kn-stone); }
.kn-pinned .kn-theatre[data-tone="2"] .kn-theatre__stick { background: var(--kn-ink); color: #fff; }
.kn-pinned .kn-theatre[data-tone="3"] .kn-theatre__stick { background: #f1ede4; }

/* ---------- formats ---------- */
.kn-formats { border-top: 1px solid var(--rule); padding: clamp(56px, 10vh, 120px) var(--pad) 0; }
.kn-formats__grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--rule); }
.kn-format { padding: clamp(28px, 5vh, 56px) clamp(18px, 2.6vw, 40px) clamp(40px, 7vh, 80px) 0; }
.kn-format + .kn-format { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2.6vw, 40px); }
.kn-format__no { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.22em; color: var(--ink-52); }
.kn-format__title { margin-top: 16px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.3rem, 2.2vw, 2rem); letter-spacing: 0.05em; line-height: 1.15; }
.kn-format__body { margin-top: 16px; font-weight: 300; line-height: 1.75; color: var(--ink-72); }

/* ---------- dive: who it is for ---------- */
.kn-dive { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: #0d0c0a; color: #fff; }
.kn-dive__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.kn-dive::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 12, 10, 0.1), rgba(13, 12, 10, 0.55) 55%, rgba(13, 12, 10, 0.88)); }
.kn-dive__in { padding: clamp(64px, 12vh, 140px) var(--pad); max-width: 1500px; margin: 0 auto; width: 100%; }
.kn-dive .kn-label { color: #fff; }
.kn-dive__p { margin-top: clamp(24px, 4vh, 40px); max-width: 44rem; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1.28; letter-spacing: -0.015em; color: #fff; }

/* ---------- voices and questions ---------- */
.kn-voices { padding: clamp(72px, 13vh, 160px) var(--pad); text-align: center; border-top: 1px solid var(--rule); }
.kn-voices .rotator { margin: 0 auto; max-width: 44rem; background: none; padding: 0; }
.kn-voices .quote { text-align: center; margin: 0 auto; }
.kn-voices .quote__text { font-size: clamp(0.95rem, 1.15vw, 1.08rem); line-height: 1.75; max-width: 34rem; margin: 0 auto; }
.kn-voices .quote__cite { justify-content: center; font-size: 0.58rem; }

.kn-faq { border-top: 1px solid var(--rule); padding: clamp(56px, 10vh, 120px) var(--pad); }
.kn-faq__list { margin-top: clamp(28px, 5vh, 56px); border-top: 1px solid var(--rule); }
.kn-faq__row { display: grid; grid-template-columns: 4fr 7fr; column-gap: clamp(16px, 2vw, 32px); padding: clamp(24px, 4vh, 44px) 0; border-bottom: 1px solid var(--rule); }
.kn-faq__row dt { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.25; }
.kn-faq__row dd { font-weight: 300; line-height: 1.75; color: var(--ink-72); max-width: 40rem; }

/* ---------- close: paper turns to ink ---------- */
.kn-close { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: var(--kn-ink); color: #fff; border-top: 1px solid var(--rule); }
.kn-close__dots { position: absolute; z-index: -1; top: 50%; right: -3vw; width: min(58vw, 880px); aspect-ratio: 360 / 210; transform: translateY(-50%); opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 60% 64% at 62% 50%, #000 26%, transparent 100%); mask-image: radial-gradient(ellipse 60% 64% at 62% 50%, #000 26%, transparent 100%); }
.kn-close__dots canvas { display: block; width: 100%; height: 100%; filter: invert(1); }
.kn-close__in { padding: clamp(72px, 14vh, 160px) var(--pad); width: 100%; max-width: 1500px; margin: 0 auto; }
.kn-close__p { max-width: 22em; font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 3.4rem); line-height: 1.22; letter-spacing: -0.015em; }
.kn-close__cta { display: inline-flex; gap: 0.7em; margin-top: clamp(32px, 6vh, 64px); padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.5); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #fff; transition: border-color 0.4s ease; }
.kn-close__cta:hover { border-color: #fff; }
.kn-close__cta .arrow { transition: transform 0.4s ease; }
.kn-close__cta:hover .arrow { transform: translateX(5px); }
.kn-pinned .kn-close { background: var(--kn-paper); color: var(--ink); transition: background-color 1.8s ease, color 1.8s ease; }
.kn-pinned .kn-close.is-in { background: var(--kn-ink); color: #fff; }
.kn-pinned .kn-close:not(.is-in) .kn-close__dots { opacity: 0; }
.kn-close__dots { transition: opacity 2s ease; }
.kn-pinned .kn-close:not(.is-in) .kn-close__cta { color: var(--ink); border-bottom-color: var(--ink-38); }

/* soft fades for ordinary blocks */
.kn-js .kn-fade { opacity: 0; transform: translateY(12px); transition: opacity 1.4s ease, transform 1.6s var(--kn-ease); }
.kn-js .kn-fade.is-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .kn-about__in, .kn-slide__text, .kn-slide__no { grid-column: 1 / -1; }
  .kn-slide { align-content: center; row-gap: 12px; }
  .kn-slide__no { font-size: clamp(3.5rem, 18vw, 6rem); }
  .kn-formats__grid { grid-template-columns: 1fr; }
  .kn-format + .kn-format { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .kn-faq__row { grid-template-columns: 1fr; row-gap: 12px; }
  .kn-close__dots { width: 130vw; right: -20vw; opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) { .kn-cue { animation: none; } }


/* writing: titles are links, the closing scene holds the newsletter */
.kn-slide__title a { color: inherit; }
.kn-slide__labels { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: clamp(16px, 2.6vh, 26px); font-family: var(--sans); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; }
.kn-slide__go { display: inline-flex; gap: 0.6em; margin-top: clamp(24px, 4vh, 40px); padding-bottom: 6px; border-bottom: 1px solid currentColor; font-weight: 600; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: inherit; opacity: 0.85; transition: opacity 0.3s ease; }
.kn-slide__go:hover { opacity: 1; }
.kn-slide__go .arrow { transition: transform 0.4s ease; }
.kn-slide__go:hover .arrow { transform: translateX(5px); }
.kn-close__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 1.08; }
.kn-close__body { margin-top: clamp(18px, 3vh, 30px); max-width: 30rem; font-weight: 300; font-size: 1.1rem; line-height: 1.7; opacity: 0.85; }
.kn-close .newsletter__form { display: flex; gap: 12px; max-width: 30rem; margin: clamp(28px, 5vh, 48px) 0 0; }
.kn-close .field-line { flex: 1; background: transparent; border: 0; border-bottom: 1px solid currentColor; color: inherit; padding: 10px 2px; font-family: var(--sans); font-size: 1rem; outline: none; }
.kn-close .field-line::placeholder { color: inherit; opacity: 0.55; }
.kn-close .btn--solid { background: transparent; color: inherit; border-color: currentColor; }
.kn-close .btn--solid:hover { background: #fff; color: var(--kn-ink); border-color: #fff; }
.kn-close .form-note { margin-top: 14px; opacity: 0.8; }
@media (max-width: 560px) { .kn-close .newsletter__form { flex-direction: column; } }


/* ---------- writing: all topics in one view ---------- */
.wr-list { border-top: 1px solid var(--rule); }
.wr-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); align-items: center; min-height: 28svh; padding: clamp(32px, 6vh, 64px) var(--pad); border-bottom: 1px solid var(--rule); color: var(--ink); transition: background-color 1s ease, color 1s ease, opacity 1s ease; }
.wr-row__labels { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 6px; font-family: var(--sans); font-weight: 600; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; }
.wr-row__main { grid-column: 4 / 11; }
.wr-row__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.5rem, 3vw, 2.8rem); line-height: 1.1; }
.wr-row__sum { margin-top: 14px; max-width: 38rem; font-weight: 300; line-height: 1.7; opacity: 0.75; }
.wr-row__go { grid-column: 11 / 13; justify-self: end; display: inline-flex; gap: 0.6em; font-weight: 600; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.6; transition: opacity 0.4s ease; }
.wr-row__go .arrow { transition: transform 0.4s ease; }
.wr-list:hover .wr-row:not(:hover) { opacity: 0.45; }
.wr-row:hover { background: #3b3935; color: #f3f1ec; }
.wr-row:hover .wr-row__go { opacity: 1; }
.wr-row:hover .wr-row__go .arrow { transform: translateX(6px); }
@media (max-width: 900px) {
  .wr-row { grid-template-columns: 1fr; row-gap: 14px; min-height: 0; }
  .wr-row__labels, .wr-row__main, .wr-row__go { grid-column: 1; justify-self: start; }
  .wr-row__labels { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
}

/* closing heading: soft and elegant, not dramatic */
.kn-close__title { font-family: var(--sans); font-weight: 300; text-transform: none; letter-spacing: -0.005em; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.25; }


/* writing close: the brush stroke, white on ink */
.kn-close__art { position: absolute; z-index: -1; top: 50%; right: clamp(24px, 8vw, 140px); height: min(78svh, 760px); aspect-ratio: 600 / 847; transform: translateY(-50%); margin: 0; pointer-events: none; opacity: 0; mix-blend-mode: lighten; transition: opacity 2.4s ease 0.3s; }
.kn-close.is-in .kn-close__art, .kn-close:not([data-close-js]) .kn-close__art { opacity: 0.9; }
.kn-close__art img { display: block; width: 100%; height: 100%; object-fit: contain; filter: invert(1) contrast(1.15); }
@media (max-width: 900px) { .kn-close__art { right: -8vw; height: 60svh; opacity: 0.45 !important; } }

/* writing close: centred */
.kn-close .newsletter { text-align: center; }
.kn-close .kn-close__in.newsletter { display: flex; flex-direction: column; align-items: center; }
.kn-close .kn-close__body { margin-left: auto; margin-right: auto; }
.kn-close .newsletter__form { margin-left: auto; margin-right: auto; width: 100%; }
.kn-close .kn-close__art { right: clamp(0px, 2vw, 40px); height: min(72svh, 700px); }
@media (max-width: 900px) { .kn-close .kn-close__art { right: -14vw; } }
.kn-close .newsletter, .reveal-on .kn-close .newsletter { opacity: 1 !important; transform: none !important; }

/* writing: the closing text sits high in the dark block */
.kn-close--top { min-height: 72svh; align-items: flex-start; }
.kn-close--top .kn-close__in { padding-top: clamp(56px, 11vh, 120px); padding-bottom: clamp(56px, 9vh, 96px); }
.kn-close--top .kn-close__art { top: 0; transform: none; height: min(78svh, 720px); }


/* ---------- signature themes: compact overview ---------- */
.kn-themes { border-top: 1px solid var(--rule); padding: clamp(48px, 8vh, 96px) var(--pad) 0; }
.kn-themes__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--rule); }
.kn-theme { padding: clamp(24px, 4vh, 44px) clamp(18px, 2.6vw, 40px) clamp(28px, 5vh, 52px) 0; border-bottom: 1px solid var(--rule); transition: background-color 1s ease, color 1s ease, opacity 1s ease; }
.kn-theme:nth-child(even) { border-left: 1px solid var(--rule); padding-left: clamp(18px, 2.6vw, 40px); padding-right: 0; }
.kn-theme__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(1.15rem, 1.8vw, 1.6rem); line-height: 1.2; overflow-wrap: anywhere; }
.kn-theme__body { margin-top: 14px; max-width: 34rem; font-weight: 300; font-size: 0.98rem; line-height: 1.7; opacity: 0.75; }
.kn-themes__grid:hover .kn-theme:not(:hover) { opacity: 0.5; }
@media (max-width: 900px) {
  .kn-themes__grid { grid-template-columns: 1fr; }
  .kn-theme:nth-child(even) { border-left: 0; padding-left: 0; }
}


/* ---------- common questions: an elegant drop-down list ---------- */
.kn-acc { margin-top: clamp(28px, 5vh, 48px); border-top: 1px solid var(--rule); max-width: 62rem; }
.kn-acc__row { border-bottom: 1px solid var(--rule); transition: opacity 0.6s ease; }
.kn-acc:hover .kn-acc__row:not(:hover):not(.is-open) { opacity: 0.55; }
.kn-acc__head { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: clamp(22px, 3.6vh, 34px) 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.kn-acc__q { font-family: var(--sans); font-weight: 300; font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.4; letter-spacing: -0.01em; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kn-acc__head:hover .kn-acc__q { transform: translateX(6px); }
.kn-acc__icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 0.65em; }
.kn-acc__icon::before, .kn-acc__icon::after { content: ''; position: absolute; top: 50%; left: 50%; width: 14px; height: 1px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease; }
.kn-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.kn-acc__row.is-open .kn-acc__icon::after { transform: translate(-50%, -50%) rotate(0); opacity: 0; }
.kn-acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.kn-acc__row.is-open .kn-acc__panel { grid-template-rows: 1fr; }
.kn-acc__inner { overflow: hidden; }
.kn-acc__inner p { padding: 0 0 clamp(22px, 3.6vh, 34px); max-width: 40rem; font-weight: 300; line-height: 1.8; color: var(--ink-72); opacity: 0; transition: opacity 0.7s ease 0.1s; }
.kn-acc__row.is-open .kn-acc__inner p { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .kn-acc__panel, .kn-acc__inner p, .kn-acc__q { transition: none; } }
