/* ==========================================================================
   CLOUD — industrial-design keynote
   Rhythm: one idea per chapter, rest between chapters, no stacked scrubs.
   Sun field = abstract dusk (header). Same field, vertical, on the plywood band.
   ========================================================================== */

.cl {
  --ck-ink: #23201C;
  --ck-muted: #8A8378;
  --ck-paper: #FAF7F2;
  --ck-card: #FDFBF7;
  --ck-line: rgba(35, 32, 28, 0.12);
  --ck-scarlet: #E86A5A;
  --ck-orange: #F0975A;
  --ck-amber: #F7C77A;
  --ck-lav: #8B7EC8;
  --ck-blue: #A8BAD6;
  --ck-night: #0F0D1A;
  --ck-grad: linear-gradient(90deg, var(--ck-lav), var(--ck-scarlet) 48%, var(--ck-orange) 78%, var(--ck-amber));
  background: var(--ck-paper);
  color: var(--ck-ink);
}

.ck-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.ck-pad { padding-left: clamp(24px, 5vw, 80px); padding-right: clamp(24px, 5vw, 80px); }
.ck-sechead { max-width: 1180px; margin: 0 auto 5vh; }
.ck-sechead .ck-kicker { color: var(--ck-muted); }
.ck-sechead h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4.2vw, 58px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ck-body {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
  color: #57534A;
  max-width: 46ch;
}

/* ---- 01 HERO: sun-shaped dusk field ---- */
.ck-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background:
    url("../images/cloud/keynote/header_sun.webp") center bottom / cover no-repeat,
    url("../images/cloud/keynote/header_sun.jpg") center bottom / cover no-repeat,
    radial-gradient(70% 55% at 50% 112%, #FFE48C 0%, #F48030 18%, #E2483A 38%, #6C5CBA 72%, #8EA8D2 100%);
}
.ck-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 clamp(24px, 5vw, 80px) 11vh;
}
.ck-hero .ck-kicker { opacity: 0.92; }
.ck-hero__title {
  font-size: clamp(72px, 13vw, 176px);
  font-weight: 350;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 0.08em 0 0.12em;
}
.ck-hero__sub {
  max-width: 38ch;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.5;
  opacity: 0.96;
}
.ck-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}
.ck-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("../images/cloud/hero/grad_grain_texture.jpg");
  background-size: cover;
}

/* ---- INTRO SKETCH: hand storyboard on paper ---- */
.ck-sketch {
  padding: 12vh clamp(24px, 5vw, 80px) 14vh;
  background: var(--ck-paper);
}
.ck-sketch__stage {
  margin: 0;
  max-width: none; /* the sketch is the opener — go big */
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.ck-sketch__stage img {
  width: 100%;
  max-width: min(1440px, 96vw); /* big — the sketch opens the story */
  height: auto;
  display: block;
  background: transparent; /* alpha webp — paper shows through, no box */
}
.ck-sketch__cap {
  max-width: 1180px;
  margin: 4vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ck-sketch__cap .ck-kicker { color: var(--ck-muted); }
.ck-sketch__cap em {
  font-style: normal;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  color: #57534A;
  max-width: 46ch;
}

.ck-wide--hands { min-height: 88vh; background: #1a1814; }
.ck-wide--hands img { height: 88vh; }

.ck-line {
  padding: 16vh 0 4vh;
  max-width: 1180px;
  margin: 0 auto;
}
.ck-line h2 {
  margin-top: 12px;
  font-size: clamp(32px, 4.6vw, 64px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 16ch;
}

/* ---- DIMMER (instrument, ref: neutone panel) ---- */
.ck-dim {
  --gain: 0.72;
  display: grid;
  grid-template-columns: minmax(240px, 32vw) 1fr;
  min-height: 100vh;
  background: var(--ck-paper);
  border-top: 1px solid var(--ck-line);
}
.ck-dim__panel {
  padding: clamp(100px, 16vh, 160px) clamp(24px, 3vw, 48px) 8vh;
  background: #F3F1EC;
  border-right: 1px solid var(--ck-line);
}
.ck-dim__title {
  margin: 10px 0 28px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.ck-dim__io {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ck-muted);
  margin-bottom: 7vh;
}
.ck-dim__io b {
  width: 28px; height: 1px;
  background: #3D7A3A;
  position: relative;
}
.ck-dim__io b::after {
  content: "";
  position: absolute;
  right: -1px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #3D7A3A;
  transform: translateY(-50%);
}
.ck-dim__row {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ck-meter {
  display: flex;
  flex-direction: column-reverse;
  gap: 7px;
}
.ck-meter i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #C9C4BA;
}
.ck-meter i.is-on { background: #3D7A3A; }
.ck-knob {
  width: 108px; height: 108px;
  border-radius: 50%;
  border: 0;
  background: #3A3936;
  position: relative;
  cursor: grab;
  touch-action: none;
}
.ck-knob:active { cursor: grabbing; }
.ck-knob__mark {
  position: absolute;
  left: 50%; top: 12px;
  width: 2px; height: 22px;
  margin-left: -1px;
  background: #E8E4DC;
  border-radius: 1px;
  transform-origin: 50% 42px;
  transform: rotate(var(--ang, 59deg));
}
.ck-knob:focus-visible { outline: 2px solid #3D7A3A; outline-offset: 4px; }
.ck-dim__gain {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ck-muted);
  letter-spacing: 0.04em;
}
.ck-dim__readout {
  margin-top: 4px;
  font-size: 42px;
  font-weight: 350;
  letter-spacing: -0.03em;
}
.ck-dim__readout small { font-size: 0.45em; color: var(--ck-muted); }
.ck-dim__note {
  margin-top: 5vh;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ck-muted);
}
.ck-dim__stage {
  position: relative;
  background: var(--ck-paper);
}
.ck-dim__stage img {
  position: absolute;
  inset: 8vh 4vw;
  width: calc(100% - 8vw);
  height: calc(100% - 16vh);
  object-fit: contain;
}
.ck-dim__on { opacity: var(--gain); }

.ck-bandbleed {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #1c120e;
}
.ck-bandbleed img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ck-bandbleed__txt {
  position: relative;
  z-index: 2;
  padding-top: 18vh;
  color: #fff;
}
.ck-bandbleed__txt h2 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.ck-hero--end {
  align-items: flex-end;
  background: var(--ck-night);
}
.ck-hero--end img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ck-endhero__title {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.06;
  max-width: 12ch;
  margin: 10px 0 0;
}

/* ---- 02 INSTRUMENT: today's sunset ---- */
.ck-dash {
  background: #fff;
  padding: 8vh 0 10vh;
  border-bottom: 1px solid var(--ck-line);
}
.ck-dash__bar {
  max-width: 1180px;
  margin: 0 auto 5vh;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.ck-dash__bar-l { display: flex; flex-direction: column; gap: 6px; }
.ck-dash__title {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
.ck-dash__shades {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ck-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ck-dash__shades i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ck-dash__date { font-size: 12px; color: var(--ck-muted); letter-spacing: 0.08em; }
.ck-dash__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
}
.ck-stat__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ck-muted);
}
.ck-stat__value {
  margin-top: 8px;
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.ck-stat__value small { font-size: 0.34em; color: var(--ck-muted); letter-spacing: 0; }
.ck-stat__note { margin-top: 8px; font-size: 13px; color: var(--ck-muted); }
.ck-slider {
  margin-top: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--ck-grad);
  position: relative;
}
.ck-slider i {
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ck-ink);
  transform: translate(-50%, -50%);
  left: var(--p, 50%);
}

/* ---- 03 WIDE OBJECT ---- */
.ck-wide {
  position: relative;
  min-height: 100vh;
  background: #E8E4DC;
  overflow: hidden;
}
.ck-wide img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}
.ck-wide figcaption {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: 28px;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}

/* one KeyShot plate per chapter — not a gallery */
.ck-proof {
  background: #EDE9E1;
}
.ck-proof figure { margin: 0; }
.ck-proof img {
  width: 100%;
  height: min(92vh, 140vw);
  object-fit: contain;
  display: block;
  background: #EDE9E1;
}
.ck-proof figcaption {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px clamp(24px, 5vw, 80px) 10vh;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ck-proof figcaption .ck-kicker { color: var(--ck-muted); }
.ck-proof figcaption strong {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.ck-proof figcaption em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ck-muted);
  max-width: 46ch;
}

/* ---- 04 FEATURE ROWS ---- */
.ck-feat {
  padding: 14vh 0;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.ck-feat--flip { grid-template-columns: 1.12fr 1fr; }
.ck-feat--flip .ck-feat__txt { order: 2; }
.ck-feat--flip .ck-feat__img { order: 1; }
.ck-feat__txt .ck-kicker { color: var(--ck-muted); }
.ck-feat__txt h2 {
  margin: 14px 0 18px;
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.ck-pills { margin-top: 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.ck-pills span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 1px solid var(--ck-line);
  border-radius: 999px;
  background: var(--ck-card);
}
.ck-feat__img { margin: 0; }
.ck-feat__img img {
  width: 100%;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--ck-line);
}
.ck-feat__img figcaption {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ck-muted);
}

/* ---- still stage (one idea, holds) ---- */
.ck-still {
  padding: 8vh 0 12vh;
}
.ck-still__frame {
  max-width: 1320px;
  margin: 0 auto;
}
.ck-still__frame img {
  width: 100%;
  display: block;
  border-radius: 24px;
  background: #EDE9E1;
  border: 1px solid var(--ck-line);
}
.ck-still__meta {
  max-width: 1320px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ck-muted);
  letter-spacing: 0.06em;
}

/* ---- PINNED SEQUENCE ---- */
.ck-seq {
  background: var(--ck-paper);
}
.ck-seq__pin {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.ck-seq__canvas {
  position: relative;
  height: min(84vh, 58vw);
  aspect-ratio: 16 / 9;
  background: transparent; /* alpha frames: paper/section bg shows through */
}
.ck-seq__canvas img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* full frames, never cropped */
}
/* canvas film — drawn over the poster once the first bitmap is ready */
.ck-seq__canvas canvas.ck-seq__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
/* the last assemble frames ARE a sunset bloom that fills the 16/9 box on
   its own (KeyShot bloom expands to full-bleed by f240) — no CSS layer needed */
.ck-still__frame img {
  width: 100%;
  display: block;
  background: var(--ck-paper);
  border: 0;
  border-radius: 0;
}
.ck-seq__label {
  position: absolute;
  top: clamp(88px, 12vh, 128px);
  left: clamp(24px, 5vw, 80px);
  z-index: 2;
}
.ck-seq__label .ck-kicker { color: var(--ck-muted); }
.ck-seq__label p {
  margin-top: 8px;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.ck-seq__note {
  position: absolute;
  right: clamp(24px, 5vw, 80px);
  bottom: 8vh;
  max-width: 28ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ck-muted);
  z-index: 2;
}

/* ---- quote bleed ---- */
.ck-quote {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: var(--ck-night);
}
.ck-quote img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ck-quote blockquote {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  bottom: clamp(40px, 9vh, 110px);
  margin: 0;
  z-index: 2;
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 350;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: #FFF7EC;
  max-width: 14ch;
  text-shadow: 0 4px 40px rgba(20,10,25,.55);
}

/* ---- NIGHT ---- */
.ck-night {
  background: var(--ck-night);
  color: #F2EDE4;
  padding: 16vh 0 14vh;
}
.ck-night .ck-kicker { color: rgba(242,237,228,.55); }
.ck-night h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.06;
  max-width: 14ch;
}
.ck-night h2 em { font-style: italic; color: var(--ck-amber); }
.ck-night__grid {
  margin-top: 8vh;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(16px, 2.5vw, 32px);
}
.ck-night__grid figure { margin: 0; border-radius: 20px; overflow: hidden; background: #191527; }
.ck-night__grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ck-night__grid figcaption { padding: 14px 18px; font-size: 12px; letter-spacing: 0.06em; color: rgba(242,237,228,.65); }
.ck-night__foot {
  margin-top: 7vh;
  max-width: 52ch;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.6;
  color: rgba(242,237,228,.8);
}

/* ---- LIFE / KIT ---- */
.ck-life { padding: 14vh 0; }
.ck-life__grid {
  margin-top: 6vh;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.ck-life__grid figure { margin: 0; }
.ck-life__grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--ck-line);
  display: block;
}
.ck-life__grid figcaption { margin-top: 10px; font-size: 12px; color: var(--ck-muted); letter-spacing: 0.04em; }

.ck-kit { padding: 0 0 14vh; }
.ck-kit__row {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(14px, 2vw, 28px);
}
.ck-kit img {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--ck-line);
}

/* ---- END ---- */
.ck-end { padding: 0 0 12vh; }
.ck-end__card {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  padding: clamp(36px, 6vw, 80px);
  color: #fff;
  background:
    url("../images/cloud/keynote/header_sun_ai.webp") center / cover no-repeat,
    var(--ck-grad);
}
.ck-end__title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.ck-end__meta {
  margin-top: 18px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.cl-next { padding: 0 clamp(24px, 5vw, 80px) 12vh; background: var(--ck-paper); }
.cl-next__link {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 32px;
  border: 1px solid var(--ck-line);
  border-radius: 20px;
  color: var(--ck-ink);
  transition: border-color .25s ease, transform .25s ease;
}
.cl-next__link:hover { border-color: var(--ck-scarlet); transform: translateY(-2px); }
.cl-next__link .t-utility { color: var(--ck-muted); }
.cl-next__link strong { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; }
.cl-next__link em { color: var(--ck-muted); font-style: italic; }

/* ---- 03 FILM: full-bleed scroll-synced KeyShot film ---- */
.ck-film {
  position: relative;
}
.ck-film__pin {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #CFCECC; /* sampled from the film's own studio gray */
}
.ck-film__pin video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ck-film__intro {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  bottom: 16vh;
  z-index: 3;
  color: var(--ck-ink);
  max-width: 560px;
}
.ck-film__intro h2 {
  margin: 10px 0 14px;
  font-size: clamp(40px, 6.4vw, 92px);
  font-weight: 350;
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.ck-film__intro em {
  font-style: normal;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.5;
  color: #57534A;
  max-width: 40ch;
  display: block;
}
.ck-film__intro .ck-kicker { color: var(--ck-muted); }
.ck-film__beat {
  position: absolute;
  top: 18vh;
  max-width: 380px;
  z-index: 3;
  opacity: 0; /* JS fades beats over film-progress windows */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ck-film__beat--r { right: clamp(24px, 6vw, 100px); }
.ck-film__beat--l { left: clamp(24px, 6vw, 100px); }
.ck-film__beat .ck-kicker { color: var(--ck-muted); }
.ck-film__beat strong {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.ck-film__beat em {
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: #57534A;
}
.ck-film__progress {
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  bottom: 5vh;
  width: 180px;
  height: 2px;
  background: rgba(35, 32, 28, 0.15);
  z-index: 3;
}
.ck-film__progress i {
  display: block;
  height: 100%;
  background: var(--ck-ink);
  transform-origin: left;
  transform: scaleX(0);
}

@media (max-width: 860px) {
  .ck-proof img { height: auto; max-height: 70vh; }
  .ck-film__beat { max-width: 290px; top: 12vh; }
  .ck-film__intro { bottom: 12vh; }
  .ck-dash__grid, .ck-feat, .ck-feat--flip, .ck-night__grid, .ck-life__grid, .ck-kit__row, .ck-dim {
    grid-template-columns: 1fr;
  }
  .ck-feat--flip .ck-feat__txt { order: 1; }
  .ck-feat--flip .ck-feat__img { order: 2; }
  .ck-wide img, .ck-wide--hands img { height: 70vh; }
  .ck-seq__canvas { height: 58vh; }
  .ck-seq__note { display: none; }
  .ck-dim { min-height: auto; }
  .ck-dim__panel { border-right: 0; padding-top: 10vh; }
  .ck-dim__stage { height: 70vh; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-seq__pin { height: auto; padding: 8vh 0; }
}
