/* ==========================================================================
   WIN THE WORLD — "Pencil → Planet". One person, four hats, one poster.
   English Centre's own palette: black, white and one red, set in a light
   geometric sans like the logo's "MINUTE SCHOOL".
   ========================================================================== */

.ww-page {
  --ink-0: #0a0a0b;
  --ink-1: #131315;
  --ink-2: #1c1c1f;
  --red: #db262b;
  --red-2: #b81d22;
  --white: #ffffff;
  --text: #f5f5f4;
  --text-2: rgba(245, 245, 244, 0.68);
  --text-3: rgba(245, 245, 244, 0.42);
  --hair: rgba(245, 245, 244, 0.12);
  --ww-display: "Montserrat", var(--font-sans);
  --ww-bn: "Anek Bangla", var(--font-sans);
  --ww-gap: 150px;
  background: var(--ink-0);
  color: var(--text);
}

.ww-page .brand {
  color: var(--text);
}

.ww-page .pill-nav {
  color: var(--ink);
}

.ww-page .site-header .pill-chat {
  background: var(--red);
  color: #fff;
}

.ww-page .site-header {
  position: relative;
  z-index: 5;
}

.ww {
  position: relative;
  overflow: hidden;
}

.ww [lang="bn"] {
  font-family: var(--ww-bn);
}

.ww-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

figure {
  margin: 0;
}

.ww img[data-zoom] {
  cursor: zoom-in;
}

/* ---------- Section rhythm, each with its own slow swirl of light ---------- */
.ww-sec {
  position: relative;
  padding: var(--ww-gap) 0 0;
}

.ww-sec::before,
.ww-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: conic-gradient(from var(--a, 0deg), rgba(255, 255, 255, 0.07), transparent 25%, rgba(219, 38, 43, 0.1) 50%, transparent 75%, rgba(255, 255, 255, 0.07));
  filter: blur(110px);
  opacity: 0.8;
  pointer-events: none;
}

.ww-sec:nth-of-type(odd)::before {
  top: 0;
  right: -380px;
  --a: 120deg;
}

.ww-sec:nth-of-type(even)::before {
  top: 120px;
  left: -420px;
  --a: 240deg;
}

.ww-hat {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ww-hat span {
  padding: 6px 10px;
  border: 1px solid var(--red);
  color: var(--white);
  font-weight: 600;
}

.ww-hat span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--red);
  vertical-align: 1px;
}

.ww-head h2 {
  max-width: 15ch;
  margin-top: 22px;
  font-family: var(--ww-display);
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.ww-head-c {
  text-align: center;
}

.ww-head-c h2,
.ww-head-c .ww-lead {
  margin-inline: auto;
}

.ww-lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
}

.ww figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ==========================================================================
   HERO — the poster untwists out of its own vortex
   ========================================================================== */
.ww-hero {
  position: relative;
  margin-top: -121px;
  padding: 185px 0 0;
}

.ww-hero::before {
  top: -200px;
  left: 50%;
  width: 1300px;
  height: 1100px;
  margin-left: -650px;
  background: radial-gradient(closest-side, rgba(219, 38, 43, 0.22), transparent 70%);
  filter: blur(60px);
  opacity: 1;
}

.ww-hero-top {
  text-align: center;
}

.ww-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
}

.ww-title {
  margin-top: 18px;
  font-family: var(--ww-display);
  font-size: clamp(50px, 8.6vw, 128px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.ww-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ww-world {
  display: inline-block;
  white-space: nowrap;
}

.ww-l {
  display: inline-block;
}

/* the "o" of world: still the red letter, with the poster's planet turning inside */
.ww-o {
  position: relative;
  width: 0.6em;
  height: 0.6em;
  margin: 0 0.015em 0 0.02em;
  vertical-align: -0.02em;
}

.ww-o-ring {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 0.1em solid var(--red);
  border-radius: 50%;
  background: var(--red);
}

.ww-globe {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: ww-spin 26s linear infinite;
}

@keyframes ww-spin {
  to { transform: rotate(360deg); }
}

/* a little plane circling the world */
.ww-orbit {
  position: absolute;
  inset: -0.17em;
  pointer-events: none;
  animation: ww-spin 7s linear infinite;
}

.ww-plane {
  position: absolute;
  top: -0.03em;
  left: 50%;
  width: 0.15em;
  height: 0.15em;
  color: var(--white);
  transform: translateX(-50%) rotate(90deg);
  filter: drop-shadow(0 0 0.04em rgba(0, 0, 0, 0.6));
}

.ww-plane svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@media (prefers-reduced-motion: reduce) {
  .ww-globe,
  .ww-orbit {
    animation: none;
  }
}

/* the one red word, set bold like "ENGLISH CENTRE" */
.ww-title em,
.ww-head h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}

.ww-bn {
  margin: 14px 0 0;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}

.ww-poster-frame {
  position: relative;
  margin: 56px auto 0;
  padding: 14px;
  border-radius: 6px;
  background: var(--ink-1);
  box-shadow: 0 0 0 1px var(--hair), 0 50px 140px rgba(0, 0, 0, 0.7);
}

.ww-poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* the four hats, joined by arrows */
.ww-hats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ww-hats li {
  position: relative;
}

.ww-hats li:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -11px;
  z-index: 1;
  transform: translate(50%, -50%);
  font-size: 16px;
  color: var(--text-3);
}

.ww-hats a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px 20px;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 var(--hair);
  color: var(--text);
  font-family: var(--ww-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s var(--ease);
}

.ww-hats a:hover {
  box-shadow: inset 0 2px 0 var(--red);
}

.ww-hats a span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red);
}

.ww-credits {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 18px 32px;
  margin: 36px 0 0;
}

.ww-credits dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.ww-credits dd {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   01 IDEA · 02 SKETCH
   ========================================================================== */
.ww-brief {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-top: 48px;
}

.ww-quote {
  margin: 0;
  padding: 36px 38px;
  border-radius: 4px;
  background: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.ww-quote p {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
}

.ww-quote .ww-quote-bn {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
}

.ww-copyline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border-radius: 4px;
  background: var(--red);
}

.ww-copy-k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.ww-copy {
  margin: 14px 0 0;
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.ww-copy-en {
  margin: 8px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.ww-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 64px;
}

.ww-split-r {
  grid-template-columns: 1.35fr 0.85fr;
}

.ww-split-r .ww-head {
  order: 2;
}

.ww-paper {
  padding: 18px;
  border-radius: 6px;
  background: #fffaf3;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  transform: rotate(1.5deg);
}

.ww-paper img {
  display: block;
  width: 100%;
  height: auto;
}

.ww-paper figcaption {
  color: #8a6a55;
}

/* ==========================================================================
   03 AI DIRECTION — a contact sheet and the two keepers
   ========================================================================== */
/* the contact sheet runs full width; the two keepers sit side by side below it */
.ww-aigrid {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.ww-sheet {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-content: start;
  padding: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.ww-mj {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
}

.ww-mj img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.75) brightness(0.8);
  transition: filter 0.4s ease, transform 0.6s var(--ease);
}

.ww-mj:hover img {
  filter: none;
  transform: scale(1.05);
}

.ww-mj.is-picked {
  box-shadow: 0 0 0 2px var(--red);
}

.ww-mj.is-picked img {
  filter: none;
}

.ww-pick {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.ww-aiside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ww-big {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.ww-big img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ww-big figcaption,
.ww-wallfig figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text);
}

/* ==========================================================================
   04 MANIPULATION — one screen, seven layers
   ========================================================================== */
.ww-studio {
  margin-top: 56px;
}

.ww-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.ww-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.ww-shot.is-on {
  opacity: 1;
}

.ww-screen figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

.ww-cap-n {
  font-family: var(--ww-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

.ww-layers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ww-layer {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ww-layer img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  opacity: 0.55;
  transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.ww-layer span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ww-layer b {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

.ww-layer:hover img,
.ww-layer.is-on img {
  opacity: 1;
}

.ww-layer.is-on img {
  box-shadow: 0 0 0 2px var(--red);
}

.ww-layer.is-on {
  color: var(--text);
}

/* ==========================================================================
   05 ON THE WALL
   ========================================================================== */
.ww-wallfig {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.ww-wallfig img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   06 PLAY — paint the sketch away
   ========================================================================== */
.ww-stage {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  aspect-ratio: 2350 / 1650;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--hair);
  touch-action: none;
  cursor: crosshair;
}

.ww-stage-final,
.ww-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ww-stage-final {
  object-fit: cover;
}

.ww-canvas {
  transition: opacity 0.9s ease;
}

.ww-stage.is-final .ww-canvas {
  opacity: 0;
}

.ww-ring {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ww-ring.is-on {
  opacity: 1;
}

.ww-ring i {
  position: absolute;
  left: -46px;
  top: -46px;
  width: 92px;
  height: 92px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--red), 0 0 24px rgba(219, 38, 43, 0.6);
  animation: ww-pulse 1.4s ease-in-out infinite;
}

.ww-ring b {
  position: absolute;
  left: 50%;
  top: 56px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--ww-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translateX(-50%);
}

@keyframes ww-pulse {
  50% { transform: scale(1.12); }
}

.ww-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink-0);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.ww-stage.is-touched .ww-hint {
  opacity: 0;
}

.ww-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.ww-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ww-note {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hair);
  color: var(--text);
  font-family: var(--ww-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease;
}

.ww-note:hover,
.ww-note.is-on {
  background: var(--red);
  box-shadow: none;
}

.ww-modes {
  display: flex;
  gap: 8px;
}

.ww-btn-s {
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-0);
  font-family: var(--ww-display);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ww-btn-g {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text-3);
}

/* ==========================================================================
   FINALE
   ========================================================================== */
.ww-finale {
  position: relative;
  padding: var(--ww-gap) 0 140px;
  text-align: center;
}

.ww-fin-bn {
  margin: 0;
  font-size: clamp(56px, 9vw, 130px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.ww-fin-bn span {
  color: var(--red);
}

.ww-fin-t {
  max-width: 18ch;
  margin: 18px auto 0;
  font-family: var(--ww-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.3;
}

.ww-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.ww-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--ww-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.ww-btn svg {
  width: 11px;
  height: 11px;
}

.ww-btn:hover {
  transform: translateY(-2px);
  background: var(--red-2);
}

.ww-btn-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text-3);
}

.ww-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 64px;
  background: #fff;
  color: var(--ink);
}

.pre-motion .ww-hero-top > *,
.pre-motion .ww-poster-frame {
  opacity: 0;
}

/* ==========================================================================
   SMALLER SCREENS
   ========================================================================== */
@media (max-width: 900px) {
  .ww-page {
    --ww-gap: 96px;
  }

  .ww-hero {
    margin-top: -66px;
    padding-top: 118px;
  }

  .ww-poster-frame {
    margin-top: 36px;
    padding: 8px;
    border-radius: 6px;
  }

  .ww-poster {
    border-radius: 4px;
  }

  .ww-hats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ww-hats li::after {
    display: none;
  }

  .ww-hats a {
    padding: 14px;
    font-size: 14px;
  }

  .ww-credits {
    grid-template-columns: 1fr 1fr;
  }

  .ww-head h2 {
    font-size: clamp(32px, 9vw, 46px);
    line-height: 1.14;
  }

  .ww-lead {
    font-size: 16.5px;
  }

  .ww-brief,
  .ww-split,
  .ww-aigrid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ww-split-r .ww-head {
    order: 0;
  }

  .ww-quote,
  .ww-copyline {
    padding: 24px;
  }

  .ww-quote p {
    font-size: 18px;
  }

  .ww-paper {
    padding: 10px;
    transform: none;
  }

  .ww-sheet {
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .ww-mj {
    border-radius: 6px;
  }

  .ww-pick {
    font-size: 9px;
    padding: 2px 5px;
  }

  .ww-aiside {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ww-big {
    border-radius: 4px;
  }

  .ww-screen {
    border-radius: 6px;
  }

  .ww-screen figcaption {
    position: static;
    margin-top: 0;
    border-radius: 0;
    font-size: 14px;
  }

  .ww-screen {
    aspect-ratio: auto;
  }

  .ww-screen::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 9;
  }

  .ww-shot {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ww-layers {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px 8px;
  }

  .ww-layer span {
    font-size: 12px;
  }

  .ww-stage {
    margin-top: 32px;
    border-radius: 6px;
  }

  .ww-ring i {
    left: -30px;
    top: -30px;
    width: 60px;
    height: 60px;
  }

  .ww-ring b {
    top: 38px;
    font-size: 11px;
  }

  .ww-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ww-modes {
    justify-content: center;
  }

  .ww-finale {
    padding-bottom: 100px;
  }
}
