/* ==========================================================================
   CLOUD — pipeline rebuild 2026-09-09 (00 · 01 · 02 + pending chapters)
   New ck2-* layer. Old ck-* rules in cloud.css are kept but unused by this page.
   ========================================================================== */

/* ---------- 00 · HERO — clean thin black header, title card ---------- */
.ck2-hero {
  position: relative;
  z-index: 3;
  height: 92vh;
  background: #050505;
  color: #fff;
  overflow: visible; /* the lamp crosses the black band — its foot lands on the paper */
}
/* the lamp: as big as it can be while the whole body still fits — the
   dome sits just under the top edge, the terrazzo foot lands on the
   paper below the black band. The sketch itself never moves.
   Measured on the entrance frames: the lamp fills 70.9% of the frame
   height, 11.56% pad under the foot, 17.53% above the shade. */
.ck2-hero__stage {
  --lamp-h: min(135vh, 168vw);
  --foot: 102vh; /* where the terrazzo plate lands — 10vh under the band */
  position: absolute;
  top: calc(var(--foot) - 0.8844 * var(--lamp-h));
  right: clamp(16px, 3vw, 56px);
  height: var(--lamp-h);
  aspect-ratio: 2564 / 4558;
  z-index: 4;
  pointer-events: none;
}
.ck2-hero__stage img,
.ck2-hero__stage canvas.ck2-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* the light: soft radial glow anchored on the lamp's shade (--lx/--ly are
   set from JS so it stays on the shade at any viewport size). Rides on
   --light, which the pointer drives. No wash, no noise. */
.ck2-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: calc(var(--light, 0) * 1.05);
  transform: scale(calc(0.93 + var(--light, 0) * 0.07));
  transform-origin: var(--lx, 70%) var(--ly, 34%);
  background:
    radial-gradient(15% 19% at var(--lx, 70%) var(--ly, 34%),
      rgba(255, 247, 232, 0.62) 0%,
      rgba(255, 240, 214, 0) 72%),
    radial-gradient(46% 56% at var(--lx, 70%) var(--ly, 34%),
      rgba(255, 240, 214, 0.34) 0%,
      rgba(255, 236, 205, 0.11) 46%,
      rgba(255, 233, 200, 0) 78%);
}

/* simple breathing after the entrance, until the pointer takes over */
@keyframes ck2-breathe {
  0%, 100% { opacity: 0.34; }
  50%      { opacity: 0.52; }
}
.ck2-hero.is-idle {
  --light: 0.75;
}
.ck2-hero.is-idle .ck2-hero__glow {
  animation: ck2-breathe 7.5s ease-in-out infinite;
}
/* pointer control: the LAMP itself lights up (the entrance film is scrubbed
   by proximity in cloudfx.js) — the glow only adds a faint ambient on the
   black band, it is not the effect any more */
.ck2-hero.is-live .ck2-hero__glow {
  animation: none;
  opacity: calc(var(--light, 0) * 0.3);
}

.ck2-hero__content {
  position: absolute;
  z-index: 7;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(28px, 9vh, 96px);
  max-width: 40vw;
}
.ck2-hero__kicker { opacity: 0; transition: opacity 0.8s ease; }
.ck2-hero__title {
  margin: 0.14em 0 0.12em;
  font-size: clamp(72px, 12vw, 172px);
  font-weight: 350;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: transparent;
  transition: color 0.9s ease, opacity 0.9s ease;
}
.ck2-hero__sub {
  max-width: 34ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.ck2-hero__title.is-lit {
  color: #fff;
}
.ck2-hero__sub.is-lit,
.ck2-hero__kicker.is-lit { opacity: 0.92; }
.ck2-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 1.2s ease 1.4s;
}
.ck2-hero.is-idle .ck2-hero__scroll { opacity: 0.85; }

/* ---------- the sketch, big and clean ---------- */
.ck2-sketch {
  background: var(--ck-paper);
}
.ck2-sketch__stage {
  margin: 10vh auto 0;
  width: min(1240px, 90vw);
}
.ck2-sketch__stage img {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}
.ck2-sketch__cap {
  max-width: 720px;
  margin: 3vh auto 8vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck2-sketch__cap .ck-kicker { color: var(--ck-muted); }
.ck2-sketch__cap em {
  font-style: normal;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: #57534A;
  max-width: 46ch;
}

/* ---------- 01 · THE IDEA ---------- */
.ck2-intro {
  padding: 10vh clamp(24px, 5vw, 80px) 12vh;
  background: var(--ck-paper);
  border-top: 1px solid var(--ck-line);
}
.ck2-intro__head { max-width: 1180px; margin: 0 auto; }
.ck2-intro__head .ck-kicker { color: var(--ck-muted); }
.ck2-intro__head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.ck2-intro__lede {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 88px);
  max-width: 1180px;
  margin: 5vh auto 7vh;
}
.ck2-intro__lede p {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: #57534A;
  max-width: 52ch;
}
.ck2-intro__lede em { font-style: italic; color: var(--ck-ink); }
.ck2-intro__lede b { font-weight: 600; color: var(--ck-ink); }
.ck2-intro__contest { font-size: clamp(14px, 1.1vw, 16px) !important; }

/* bento of inspiration */
.ck2-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(130px, 17vw, 240px);
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
.ck2-bento__cell { margin: 0; overflow: hidden; border-radius: 10px; background: #E8E4DC; }
.ck2-bento__cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ck2-bento__c1 { grid-column: span 4; grid-row: span 2; }
.ck2-bento__c2 { grid-column: span 2; grid-row: span 2; }
.ck2-bento__c3, .ck2-bento__c4, .ck2-bento__c5 { grid-column: span 2; }
.ck2-bento__c6 { grid-column: span 6; }
.ck2-bento__cap {
  max-width: 1180px;
  margin: 18px auto 0;
  text-align: left;
}

/* ---------- 02 · INSTRUMENT (the button) ---------- */
.ck2-dim {
  position: relative;
  min-height: 100vh;
  background: var(--ck-paper);
  border-top: 1px solid var(--ck-line);
  color: #fff;
}
.ck2-dim__stage { margin: 0; position: absolute; inset: 0; background: #101010; }
.ck2-dim__img {
  position: absolute;
  inset: 4vh 4vw;
  width: calc(100% - 8vw);
  height: calc(100% - 8vh);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ck2-dim__img.is-on { opacity: 1; }

.ck2-btn {
  position: absolute;
  z-index: 2;
  top: clamp(20px, 7vh, 84px);
  left: clamp(20px, 4vw, 72px);
  width: min(300px, 34vw);
}
.ck2-btn__legend {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.ck2-btn__slug {
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(10, 10, 10, 0.55);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.ck2-btn__slug.is-on {
  border-color: #F7C77A;
  background: #F7C77A;
  color: #211A0E;
}
.ck2-btn__pad {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #0d0c0b;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  -webkit-tap-highlight-color: transparent;
}
.ck2-btn__pad:focus-visible { outline: 2px solid #F7C77A; outline-offset: 4px; }
.ck2-btn__pad:active { transform: scale(0.985); }
.ck2-btn__padbox {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.ck2-btn__padbox img,
.ck2-btn__padbox canvas.ck2-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ck2-btn__hint {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
}
.ck2-btn__legend-state { color: #F7C77A; font-weight: 600; }

.ck2-dim__cap {
  position: absolute;
  z-index: 2;
  left: clamp(20px, 4vw, 72px);
  bottom: clamp(96px, 16vh, 176px);
  max-width: 30ch;
}
.ck2-dim__cap .ck-kicker { color: rgba(255, 255, 255, 0.66); opacity: 1; }
.ck2-dim__cap h2 {
  margin-top: 10px;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5);
}

/* ---------- 03-06 · PENDING ---------- */
.ck2-next {
  padding: 14vh clamp(24px, 5vw, 80px) 10vh;
  background: var(--ck-paper);
  border-top: 1px solid var(--ck-line);
}
.ck2-next__head { max-width: 1180px; margin: 0 auto 5vh; }
.ck2-next__head .ck-kicker { color: var(--ck-muted); }
.ck2-next__head h2 {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.ck2-next__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  gap: 0;
}
.ck2-next__list li {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 2.2fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--ck-line);
}
.ck2-next__list b { font-weight: 550; font-size: clamp(14px, 1.2vw, 16px); letter-spacing: 0.02em; }
.ck2-next__list span { font-size: 14px; line-height: 1.6; color: #6B675F; max-width: 56ch; }
.ck2-next__list em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ck-muted);
  white-space: nowrap;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ck2-hero { height: 88vh; }
  .ck2-hero__stage {
    --lamp-h: min(112vh, 132vw);
    --foot: 96vh;
    right: 2vw;
  }
  .ck2-hero__content { max-width: 78vw; bottom: 10vh; }
  /* narrow screens: the lamp passes behind the title, so give the copy
     its own dark ground to stay readable */
  .ck2-hero__content::after {
    content: '';
    position: absolute;
    inset: -12% -16% -18% -18%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(125% 105% at 0% 62%,
      rgba(5, 5, 5, 0.76) 0%,
      rgba(5, 5, 5, 0.36) 55%,
      rgba(5, 5, 5, 0) 100%);
  }
  .ck2-hero__scroll { bottom: 18px; }
  .ck2-sketch__stage { width: min(680px, 92vw); margin-top: 8vh; }
  .ck2-intro__lede { grid-template-columns: 1fr; }
  .ck2-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .ck2-bento__c1, .ck2-bento__c2 { grid-column: span 2; }
  .ck2-bento__c3, .ck2-bento__c4, .ck2-bento__c5 { grid-column: span 1; }
  .ck2-bento__c6 { grid-column: span 2; }
  .ck2-btn { width: min(240px, 46vw); top: 4vh; left: 20px; }
  .ck2-dim__cap h2 { font-size: clamp(24px, 6vw, 36px); }
  .ck2-next__list li { grid-template-columns: 1fr; gap: 8px; }
  .ck2-next__list em { grid-column: 1; }
}

/* ==================================================================== 
   03 · MATERIALS — macro mini-sequences + collage
   ==================================================================== */
.ck2-mats {
  padding: 14vh 0 10vh;
  background: var(--ck-paper);
  border-top: 1px solid var(--ck-line);
}
.ck2-mats__head {
  max-width: 1180px;
  margin: 0 auto 6vh;
  padding: 0 clamp(24px, 5vw, 80px);
}
.ck2-mats__head .ck-kicker { color: var(--ck-muted); }
.ck2-mats__head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
/* three independent clips — square tiles, near full-bleed (v2: bigger in
   width AND height: 75% -> 100% of the page, 16/10 -> 1/1 tiles) */
.ck2-mats__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 24px);
  width: 100%;
  max-width: 2000px;
  margin: 0 auto;
  padding: 0 clamp(14px, 2.2vw, 36px);
}
.ck2-mat { margin: 0; }
.ck2-mat__box {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0c0b;
}
.ck2-mat__box img,
.ck2-mat__box canvas.ck2-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* stills fill the square tile by cropping, never by stretching */
.ck2-mat__box img { object-fit: cover; }
/* macro pan (Ken Burns) for the stills */
.ck2-mat--pan .ck2-mat__box img {
  animation: ck2-pan 9s ease-in-out infinite alternate;
}
@keyframes ck2-pan {
  0%   { transform: scale(1.06) translate(1.6%, 1%); }
  100% { transform: scale(1.14) translate(-1.6%, -1.2%); }
}
.ck2-mat figcaption {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ck2-mat figcaption b {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
}
.ck2-mat figcaption em {
  font-style: normal;
  font-size: 12px;
  color: var(--ck-muted);
}

/* full-width collage — two marquee tracks, different speeds/directions */
.ck2-collage {
  margin-top: 9vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ck2-collage__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: ck2-marquee 40s linear infinite;
}
.ck2-collage__track--b {
  animation: ck2-marquee 56s linear infinite reverse;
}
.ck2-collage__track img {
  height: clamp(180px, 24vw, 320px);
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
@keyframes ck2-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==================================================================== 
   05 · ENDING — orange page, reversed film
   ==================================================================== */
.ck2-endfilm {
  position: relative;
  background: linear-gradient(160deg, #F2A05C 0%, #E9853B 44%, #D96F2B 78%, #C9631F 100%);
}
.ck2-endfilm__pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
.ck2-endfilm__pin img,
.ck2-endfilm__pin video,
.ck2-endfilm__pin canvas.ck2-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the reversed assemble film bleeds the full page width */
.ck2-endfilm__pin video { object-fit: cover; }
.ck2-endfilm__label {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(40px, 9vh, 90px);
  max-width: min(620px, 52vw); /* was 30ch — resolved on the 16px label, not the 54px h2 */
  color: #241205;
  text-shadow: 0 2px 24px rgba(255, 224, 180, 0.35);
}
.ck2-endfilm__label .ck-kicker { color: rgba(36, 18, 5, 0.78); opacity: 1; }
/* v37: the rebuilt film is orange from the first frame to the last, so the dark
   ink no longer needs a white bed — the old radial smudge read as a rectangle
   on the flat orange and is gone. */
.ck2-endfilm__label h2 {
  margin-top: 10px;
  font-size: clamp(30px, 3.8vw, 54px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ck2-endfilm__label em { font-style: italic; }

/* ==================================================================== 
   06 · FINAL — the collage reel, seen FULL: title band above, no overlay
   ==================================================================== */
.ck2-final {
  background: #050404;
  padding: 12vh 0 0;
}
.ck2-final__head {
  max-width: 1180px;
  margin: 0 auto 5vh;
  padding: 0 clamp(24px, 5vw, 80px);
  color: #fff;
}
.ck2-final__head .ck-kicker { color: rgba(255, 255, 255, 0.62); opacity: 1; }
.ck2-final__title {
  margin: 12px 0 14px;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
.ck2-final__meta {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
/* the reel keeps its own 16:9 frame at full width — nothing is laid over it */
.ck2-final__reel-box {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050404;
}
.ck2-final__reel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.ck2-final.is-in .ck2-final__reel { opacity: 1; }

/* responsive for the new chapters */
@media (max-width: 900px) {
  .ck2-mats__row { grid-template-columns: 1fr; width: 88%; max-width: 560px; }
  .ck2-collage__track img { height: clamp(120px, 38vw, 200px); }
  .ck2-endfilm__label h2 { font-size: clamp(24px, 7vw, 34px); }
  .ck2-final__title { font-size: clamp(30px, 9vw, 44px); }
}

/* ==================================================================== 
   04.2 · HOVER — the parts float when you point at them
   ==================================================================== */
.ck2-hov {
  padding: 14vh 0 15vh;
  background: #EDE9E1;
}
.ck2-hov__head {
  max-width: 1440px;
  margin: 0 auto 6vh;
  padding: 0 clamp(24px, 4vw, 64px);
}
.ck2-hov__head .ck-kicker { color: var(--ck-muted); }
.ck2-hov__head h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.2vw, 58px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.ck2-hov__head em {
  display: block;
  margin-top: 14px;
  max-width: 46ch;
  font-size: 15px;
  color: #57534A;
}
/* the plate: full-bleed, the render runs the whole page width */
.ck2-hov__stage {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #F4F1EA;
  overflow: hidden;
  touch-action: manipulation;
}
/* zoom-focus on hover: the media wrapper scales toward the pointed part */
.ck2-hov__media {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.ck2-hov__base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.ck2-hov__layer {
  position: absolute;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 90ms linear;
  user-select: none;
  -webkit-user-drag: none;
}
.ck2-hov__hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.45s ease;
}
.ck2-hov__hint.is-off { opacity: 0; }
.ck2-hov__tag {
  position: absolute;
  right: clamp(24px, 6vw, 100px);
  top: 18vh;
  z-index: 3;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ck2-hov__tag .t {
  display: block;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ck-ink);
}
.ck2-hov__tag .d {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: #57534A;
  letter-spacing: 0;
}
.ck2-hov__tag.is-on { opacity: 1; }
@media (max-width: 900px) {
  .ck2-hov__hint { font-size: 10px; padding: 5px 10px; }
  .ck2-hov__tag { top: 12vh; right: 20px; max-width: 290px; }
}
