/* ==========================================================================
   10 MINUTE SCHOOL — "Ten Minutes". The case study runs as one ten-minute
   class: 00:00 Class starts, Minute 01–10, 10:00 Class dismissed. The logo
   is a clock (12 to 2), so its red hand is the motif: every section number
   sits in a small clock whose wedge grows a minute at a time.
   Brand colours and type only: Red Pigment, Raisin Black, Spanish Gray and
   white; Poppins for English, Hind Siliguri for Bangla.
   ========================================================================== */

.tm-page {
  --red: #eb2026;
  --red-d: #c9151b;
  --red-tint: #fdecec;
  --black: #231f20;
  --dark: #141112;
  --gray: #999999;
  --paper: #f6f5f3;
  --white: #ffffff;
  --purple: #8757f3;
  --mustard: #ffda45;
  --line: rgba(35, 31, 32, 0.1);
  --line-2: rgba(35, 31, 32, 0.18);
  --ink-2: rgba(35, 31, 32, 0.72);
  --ink-3: rgba(35, 31, 32, 0.5);
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, 0.72);
  --on-dark-3: rgba(255, 255, 255, 0.48);
  --tm-sans: "Poppins", "Geist", system-ui, sans-serif;
  --tm-bn: "Hind Siliguri", "Poppins", sans-serif;
  --tm-gap: 136px;
  --tm-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hdr: 121px; /* .site-header's height (site.css) */
  background: var(--dark);
  color: var(--black);
}

.tm-page .brand {
  color: var(--on-dark);
}

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

.tm-page .pill-nav {
  color: var(--black);
}

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


/* the hero's ground runs up behind the header, so the top reads as one surface */
@media (max-width: 767px) {
  .tm-page {
    --hdr: 66px;
  }
}

.tm {
  position: relative;
  margin-top: calc(-1 * var(--hdr));
  overflow: clip;
  font-family: var(--tm-sans);
}

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

.tm figure {
  margin: 0;
}

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

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

/* ---------- Grounds: classroom white with the deck's faint column lines ---------- */
.tm-sec {
  position: relative;
  padding: var(--tm-gap) 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent 0 95px, rgba(35, 31, 32, 0.045) 95px 96px);
  background-position: center top;
}

.tm-sec:nth-of-type(even):not(.tm-dark) {
  background-color: var(--white);
}

.tm-dark {
  position: relative;
  background: var(--dark);
  color: var(--on-dark);
}

/* the deck's grained dark with a red glow */
.tm-grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 65% at 88% 0%, rgba(235, 32, 38, 0.42), transparent 72%),
    radial-gradient(45% 55% at 0% 100%, rgba(235, 32, 38, 0.16), transparent 70%),
    linear-gradient(180deg, #1b1718 0%, #121011 100%);
}

.tm-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Section heads ---------- */
.tm-head {
  max-width: 780px;
}

.tm-tag {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tm-min {
  color: var(--red);
  font-weight: 600;
}

.tm-tag-t {
  color: var(--ink-3);
}

.tm-tag-t::before {
  content: "/";
  margin-right: 10px;
  color: var(--line-2);
}

.tm-dark .tm-tag-t {
  color: var(--on-dark-3);
}

.tm-dark .tm-tag-t::before {
  color: rgba(255, 255, 255, 0.25);
}

.tm-chip {
  width: 30px;
  height: 30px;
  flex: none;
}

.tm-chip .c-f {
  fill: #fff;
  stroke: var(--black);
  stroke-width: 1.4;
}

.tm-chip .c-w {
  fill: var(--red);
}

.tm-chip .c-t line {
  stroke: var(--black);
  stroke-width: 1;
}

.tm-chip .c-h {
  stroke: var(--black);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.tm-chip .c-d {
  fill: var(--black);
}

.tm-dark .tm-chip .c-f {
  fill: transparent;
  stroke: rgba(255, 255, 255, 0.85);
}

.tm-dark .tm-chip .c-t line,
.tm-dark .tm-chip .c-h {
  stroke: #fff;
}

.tm-dark .tm-chip .c-d {
  fill: #fff;
}

.tm h2 {
  margin: 0;
  font-size: clamp(34px, 4.1vw, 58px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tm h2 em {
  font-style: normal;
  color: var(--red);
}

.tm-lead {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.tm-dark .tm-lead {
  color: var(--on-dark-2);
}

.tm-sub-k {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tm-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- The live logo (hero, dial result, finale) ---------- */
.tm-live {
  display: block;
  overflow: visible;
}

.tm-live .l-one,
.tm-live .l-zero,
.tm-live .l-ch {
  fill: var(--l-num, #fff);
}

.tm-live .l-hand {
  fill: var(--red);
}

/* the split hand only exists while it sweeps; at rest it's the single original path */
.tm-live.is-sweeping .l-full,
.tm-live:not(.is-sweeping) .l-split {
  display: none;
}

/* ---------- 00:00 Hero ---------- */
.tm-hero {
  min-height: calc(clamp(640px, 88svh, 940px) + var(--hdr));
  display: grid;
  align-items: center;
  padding: calc(72px + var(--hdr)) 0 120px;
}

.tm-hero-in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.tm-hero-k {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 56px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.tm-hero-logo {
  width: min(800px, 92%);
  margin: 0;
}

.tm-hero-t {
  max-width: 820px;
  margin: 64px 0 0;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.tm-hero-t em,
.tm-fin-t em {
  font-style: normal;
  color: var(--red);
}

.tm-hero-sub {
  max-width: 900px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--on-dark-2);
  text-wrap: pretty;
}

.tm-credits {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.8fr 0.7fr 1fr;
  width: 100%;
  max-width: 1120px;
  margin: 64px 0 0;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.tm-credits div {
  padding: 18px 20px 0 0;
}

.tm-credits dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.tm-credits dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--on-dark);
}

.tm-credits dd b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.tm-credits dd span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--on-dark-2);
}

.tm-credits dd a {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.3s, border-color 0.3s;
}

.tm-credits dd a + a {
  margin-top: 6px;
}

.tm-credits dd a svg {
  width: 9px;
  height: 9px;
}

.tm-credits dd a:hover {
  color: var(--red);
  border-color: var(--red);
}

.tm-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 2;
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.tm-scroll span {
  position: absolute;
  inset: 0;
  background: var(--red);
  animation: tm-drip 2.2s var(--tm-ease) infinite;
}

@keyframes tm-drip {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* ---------- 01 The school ---------- */
.tm-school-in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: end;
}

.tm-words-k {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tm-words ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: w;
  border-top: 1px solid var(--line);
}

.tm-words li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: w;
}

.tm-words li::before {
  content: "0" counter(w);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  transition: color 0.5s;
}

.tm-words span {
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: rgba(35, 31, 32, 0.14);
  transition: color 0.7s var(--tm-ease);
}

.tm-words li.is-on span {
  color: var(--black);
}

.tm-words li.is-on::before {
  color: var(--red);
}

/* ---------- 02 The mark: 10 + clock = 10 ---------- */
.tm-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 44px);
  margin-top: 72px;
}

.tm-eq-n {
  font-size: clamp(76px, 10vw, 150px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.tm-eq-op {
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 300;
  color: var(--gray);
}

.tm-dial-wrap {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.tm-dial {
  width: clamp(150px, 19vw, 250px);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: grab;
  touch-action: none;
  outline: none;
}

.tm-dial:focus-visible {
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--red);
}

.tm-dial.is-dragging {
  cursor: grabbing;
}

.tm-dial svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.tm-dial .d-face {
  fill: #fff;
}

.tm-dial .d-sector {
  fill: var(--red);
}

.tm-dial .d-ticks line {
  stroke: var(--black);
  stroke-width: 1.2;
}

.tm-dial .d-ticks line.t5 {
  stroke-width: 2.4;
}

.tm-dial .d-ring {
  fill: none;
  stroke: var(--black);
  stroke-width: 14;
}

.tm-dial .d-hand {
  stroke: var(--black);
  stroke-width: 5;
  stroke-linecap: round;
}

.tm-dial .d-hub {
  fill: var(--black);
}

.tm-dial .d-num,
.tm-dial .d-lab {
  fill: #fff;
  text-anchor: middle;
  font-family: var(--tm-sans);
}

.tm-dial .d-num {
  font-size: 17px;
  font-weight: 600;
}

.tm-dial .d-lab {
  font-size: 7px;
  letter-spacing: 0.04em;
}

.tm-dial .d-knob {
  fill: var(--red);
  stroke: #fff;
  stroke-width: 3;
  transition: r 0.3s var(--tm-ease);
}

.tm-dial.is-done .d-knob {
  r: 0;
}

.tm-dial-hint {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
  white-space: nowrap;
}

.tm-dial-min {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--red);
}

.tm-eq-res {
  width: clamp(80px, 11vw, 168px);
  --l-num: var(--black);
}

.tm-eq-res .tm-live {
  opacity: 0.14;
  transition: opacity 0.6s var(--tm-ease);
}

.tm-eq-res.is-on .tm-live {
  opacity: 1;
}

/* ---------- 03 The routine ---------- */
.tm-routine-card {
  margin-top: 64px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  box-shadow: 0 30px 60px -40px rgba(35, 31, 32, 0.35);
}

.tm-routine-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 28px;
  background: var(--black);
  color: #fff;
}

.tm-routine-top b {
  font-size: 20px;
  font-weight: 600;
}

.tm-routine-top span {
  font-size: 13px;
  color: var(--on-dark-3);
}

.tm-grid {
  display: grid;
  grid-template-columns: 76px repeat(5, 1fr);
}

.r-h,
.r-day,
.r-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.r-h {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: #fbfbfa;
}

.r-day {
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.r-cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--black);
  text-decoration: none;
  transition: background-color 0.3s;
}

.r-cell:hover {
  background: #faf6f6;
}

.r-cell i {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 50%;
  transition: background-color 0.4s var(--tm-ease), border-color 0.4s var(--tm-ease);
}

.r-cell i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.4s var(--tm-ease) 0.1s;
}

.r-cell.is-on i {
  background: var(--red);
  border-color: var(--red);
}

.r-cell.is-on i::after {
  transform: rotate(45deg) scale(1);
}

/* ---------- 04 Construction: chalk lines on the board ---------- */
.tm-board {
  padding: var(--tm-gap) 0;
  background-color: #1c191a;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}

.tm-cons {
  margin-top: 64px;
}

.tm-cons svg {
  display: block;
  width: 100%;
  overflow: visible;
}

.tm-cons .g {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  fill: none;
}

.tm-cons .g-c {
  stroke-dasharray: 4 5;
}

.tm-cons .g-45 {
  stroke: var(--red);
  stroke-opacity: 0.7;
  stroke-dasharray: 6 5;
}

.tm-cons .o {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}

.tm-cons .f path {
  fill: #fff;
}

.tm-cons .f .f-hand {
  fill: var(--red);
}

.tm-cons .dim line,
.tm-cons .dim path {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.tm-cons .dim-h line,
.tm-cons .dim-w line,
.tm-cons .dim .a-ref {
  stroke: rgba(255, 255, 255, 0.75);
}

.tm-cons .dim .a-ref {
  stroke-dasharray: 3 3;
}

.tm-cons .dim-a path {
  stroke: #fff;
}

.tm-cons text {
  fill: rgba(255, 255, 255, 0.82);
  font-family: var(--tm-sans);
  font-size: 15px;
  font-weight: 500;
  text-anchor: middle;
}

.tm-cons .dim-h text {
  text-anchor: start;
  font-size: 14px;
  fill: rgba(255, 255, 255, 0.7);
}

.tm-cons .dim-a text {
  text-anchor: start;
}

.tm-cons .safe rect {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  vector-effect: non-scaling-stroke;
}

.tm-cons .safe text {
  fill: var(--red);
  text-anchor: start;
  font-size: 15px;
}

/* the drawing builds in stages (JS adds s1–s4); without JS it's simply finished */
.js .tm-cons .guides,
.js .tm-cons .f,
.js .tm-cons .dims,
.js .tm-cons .safe {
  opacity: 0;
  transition: opacity 0.9s var(--tm-ease);
}

.js .tm-cons .o {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--tm-ease);
}

.js .tm-cons .safe {
  transform: scale(0.94);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.9s var(--tm-ease), transform 1.1s var(--tm-ease);
}

.js .tm-cons.s1 .guides { opacity: 1; }
.js .tm-cons.s2 .o { stroke-dashoffset: 0; }
.js .tm-cons.s3 .f { opacity: 1; }
.js .tm-cons.s3 .dims { opacity: 1; }
.js .tm-cons.s4 .safe { opacity: 1; transform: none; }

.tm-cons-credit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: var(--on-dark-2);
}

.tm-cons-credit b {
  font-weight: 600;
  color: #fff;
}

/* ---------- 05 Colour: rulers of tints ---------- */
.tm-rulers {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.tm-ruler {
  display: grid;
  grid-template-columns: 1fr 250px;
  grid-template-rows: 14px 76px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  text-align: left;
  color: var(--black);
  cursor: copy;
  transition: transform 0.35s var(--tm-ease), box-shadow 0.35s var(--tm-ease);
}

.tm-ruler:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -24px rgba(20, 17, 18, 0.5);
}

.r-ticks {
  grid-column: 1;
  border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, rgba(35, 31, 32, 0.5) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(35, 31, 32, 0.28) 0 1px, transparent 1px 12px);
  background-size: 100% 100%, 100% 50%;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0;
}

.r-segs {
  grid-column: 1;
  grid-row: 2;
  display: flex;
}

.r-segs span {
  position: relative;
  flex: 1;
  transform-origin: left;
}

.r-segs span[data-p="100"] {
  flex: 2.4;
}

.r-segs i {
  position: absolute;
  left: 10px;
  bottom: 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
  color: var(--black);
}

.r-red .r-segs [data-p="100"] i,
.r-red .r-segs [data-p="90"] i,
.r-red .r-segs [data-p="70"] i,
.r-black .r-segs [data-p="100"] i,
.r-black .r-segs [data-p="90"] i,
.r-black .r-segs [data-p="70"] i,
.r-black .r-segs [data-p="50"] i,
.r-purple .r-segs [data-p="100"] i,
.r-purple .r-segs [data-p="90"] i,
.r-purple .r-segs [data-p="70"] i {
  color: #fff;
}

.r-meta {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 10px 22px;
  border-left: 1px solid var(--line);
}

.r-meta b {
  font-size: 17px;
  font-weight: 600;
}

.r-meta code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--black);
}

.r-meta small {
  font-size: 11px;
  color: var(--ink-3);
}

.r-meta em {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-2);
}

.tm-ruler.is-copied .r-meta {
  background: var(--red-tint);
}

.tm-colour-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-top: 56px;
}

.tm-rulers-2 {
  margin-top: 0;
  gap: 12px;
}

.tm-rulers-2 .tm-sub-k,
.tm-grads .tm-sub-k {
  margin: 0 0 4px;
}

.tm-ruler.is-small {
  grid-template-columns: 1fr 190px;
  grid-template-rows: 12px 60px;
}

.tm-grads {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tm-grads span {
  position: relative;
  height: 50px;
  border-radius: 999px;
}

.tm-grads i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.92);
}

.tm-grads span:last-child i {
  color: var(--black);
}

.tm-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 50;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--tm-ease);
}

.tm-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- 06 Type & voice ---------- */
.tm-spec {
  margin-top: 56px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
}

.tm-spec-head,
.tm-spec-row {
  display: grid;
  grid-template-columns: 170px 1fr 1fr;
  gap: 32px;
  padding: 22px 30px;
}

.tm-spec-head {
  align-items: baseline;
  background: var(--black);
  color: #fff;
}

.tm-spec-head p {
  margin: 0;
  font-size: 13px;
  color: var(--on-dark-3);
}

.tm-spec-head b {
  margin-right: 8px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.tm-spec-head [lang="bn"] b {
  font-family: var(--tm-bn);
}

.tm-spec-row {
  align-items: center;
  border-top: 1px solid var(--line);
}

.tm-spec-row p {
  margin: 0;
}

.s-meta b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.s-meta span {
  font-size: 12px;
  color: var(--ink-3);
}

.t-h .s-en,
.t-h .s-bn {
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.t-s .s-en,
.t-s .s-bn {
  font-size: clamp(19px, 1.9vw, 26px);
  font-weight: 600;
  line-height: 1.25;
}

.t-b .s-en,
.t-b .s-bn {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.t-f .s-en,
.t-f .s-bn {
  font-size: 11px;
  color: var(--ink-2);
}

.t-c .s-en,
.t-c .s-bn {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--red);
}

.tm-spec-note {
  margin: 0;
  padding: 14px 30px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}

.tm-swap {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 72px;
}

.tm-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #111;
}

.tm-swap-line {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.tm-swap-line [lang="bn"] {
  color: var(--red);
}

.tm-swap-t > p:not(.tm-sub-k):not(.tm-swap-line) {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
}

.tm-t25 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px !important;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.tm-t25 img {
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
}

.tm-t25 figcaption {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* the campaign, rebuilt live so the Bangla line is set in Hind Siliguri */
.tm-camp {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: #3a2a24;
  container-type: inline-size;
}

.tm-camp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.tm-camp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 12, 10, 0.42) 0%, transparent 42%);
}

.c-line {
  position: absolute;
  left: 8%;
  top: 22%;
  z-index: 2;
  display: grid;
  color: #fff;
  font-size: 4.6cqw;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.c-line b {
  font-weight: 700;
}

.c-en {
  font-weight: 400;
}

.c-bn {
  font-family: var(--tm-bn);
  font-size: 5.2cqw;
  font-weight: 600;
  line-height: 1.12;
}

.c-bn b {
  font-weight: 700;
}

.c-logo {
  position: absolute;
  right: 5%;
  top: 7%;
  z-index: 2;
  width: 17%;
  height: auto;
  opacity: 0.8;
  --l-num: #fff;
  --l-word: #fff;
}

.c-bn {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .c-en {
    animation: tm-swap-en 8s var(--tm-ease) infinite;
  }

  .c-bn {
    animation: tm-swap-bn 8s var(--tm-ease) infinite;
  }
}

@keyframes tm-swap-en {
  0%, 42% { opacity: 1; transform: none; }
  50%, 92% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: none; }
}

@keyframes tm-swap-bn {
  0%, 42% { opacity: 0; transform: translateY(8px); }
  50%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* ---------- 07 Rules: the background picker ---------- */
.tm-bg {
  margin-top: 56px;
}

.tm-bg-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tm-bg-tabs button {
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.tm-bg-tabs button[aria-selected="true"] {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.tm-bg-stage {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #fff;
  transition: background-color 0.6s var(--tm-ease);
}

.tm-bg-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--tm-ease);
}

.bg-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: auto;
  transform: translate(-50%, -50%);
  transition: left 0.7s var(--tm-ease), top 0.7s var(--tm-ease), width 0.7s var(--tm-ease), opacity 0.5s;
  --l-hs: transparent;
  --l-hsw: 0;
}

.bg-play {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  opacity: 0;
  transition: opacity 0.5s;
}

.bg-play b {
  position: absolute;
  inset: 0 62% 0 0;
  border-radius: 2px;
  background: var(--red);
}

.bg-play i {
  position: absolute;
  left: 0;
  bottom: 16px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}

.tm-bg[data-bg="black"] .tm-bg-stage { background: var(--black); }
.tm-bg[data-bg="red"] .tm-bg-stage { background: var(--red); border-color: var(--red); }
.tm-bg[data-bg="mono"] .tm-bg-stage { background: #fff; }
.tm-bg[data-bg="photo"] .bg-photo,
.tm-bg[data-bg="video"] .bg-video,
.tm-bg[data-bg="video"] .bg-play { opacity: 1; }

.tm-bg[data-bg="black"] .bg-logo,
.tm-bg[data-bg="red"] .bg-logo,
.tm-bg[data-bg="photo"] .bg-logo,
.tm-bg[data-bg="video"] .bg-logo {
  --l-num: #fff;
  --l-word: #fff;
}

.tm-bg[data-bg="red"] .bg-logo {
  --l-hs: #fff;
  --l-hsw: 7;
}

.tm-bg[data-bg="mono"] .bg-logo {
  --l-num: #999;
  --l-word: #999;
  --l-hand: #999;
}

.tm-bg[data-bg="photo"] .bg-logo {
  left: 74%;
  top: 14%;
  width: 22%;
}

.tm-bg[data-bg="video"] .bg-logo {
  left: 84%;
  top: 11%;
  width: 17%;
  opacity: 0.5;
}

.tm-bg-note {
  min-height: 52px;
  margin-top: 18px;
}

.tm-bg-note p {
  max-width: 640px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.tm-bg-note p[hidden] {
  display: none;
}

/* ---------- 08 Don'ts: a marked exam paper ---------- */
.tm-paper {
  position: relative;
  margin-top: 56px;
  padding: 52px 56px 44px 104px;
  background-color: #fffdf8;
  background-image:
    linear-gradient(90deg, transparent 72px, rgba(235, 32, 38, 0.45) 72px 74px, transparent 74px),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(84, 132, 196, 0.16) 35px 36px);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(20, 17, 18, 0.06), 0 40px 70px -46px rgba(20, 17, 18, 0.55);
  transform: rotate(-0.35deg);
}

.tm-paper-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--black);
}

.tm-paper-t {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.1;
}

.tm-paper-t span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}

.tm-paper-name {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.tm-paper-name i {
  padding: 0 4px 2px;
  border-bottom: 1px solid var(--line-2);
  font-weight: 500;
}

.tm-score {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 0;
  border: 2.5px solid var(--red);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 600;
  color: var(--red);
  transform: rotate(-10deg);
}

.tm-score b {
  font-size: 36px;
  line-height: 1;
}

.tm-paper-q {
  margin: 22px 0 6px;
  font-size: 15px;
  font-weight: 500;
}

.tm-qs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tm-qs li {
  position: relative;
  padding: 18px 0 8px;
}

.q-n {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.x-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  margin-top: 4px;
}

.x-art svg {
  height: auto;
  overflow: visible;
}

.x-l {
  width: 86%;
}

.x-tiny .x-l {
  width: 18%;
}

.x-recolour {
  --l-num: #2f6fd6;
  --l-word: #2f6fd6;
  --l-hand: #ffb000;
}

.x-word,
.x-stack {
  gap: 10px;
}

.x-word .x-m,
.x-stack .x-m {
  width: 52px;
}

.x-word i {
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  text-transform: lowercase;
}

.x-stack {
  flex-direction: column;
  gap: 6px;
}

.x-stack .x-m {
  width: 44px;
}

.x-stack i {
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-align: center;
}

.x-unit {
  flex-direction: column;
  gap: 6px;
}

.x-unit .x-l {
  width: 74%;
}

.x-unit i {
  padding: 3px 12px;
  background: var(--black);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.x-outline svg,
.x-gradient svg {
  width: 86%;
}

.x-rotate .x-l {
  width: 78%;
  transform: rotate(-16deg);
}

.tm-qs p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.pen {
  position: absolute;
  left: -6%;
  top: 14px;
  width: 112%;
  height: 128px;
  overflow: visible;
  pointer-events: none;
}

.pen path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.js .pen path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .tm-qs li.is-marked .pen-o {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.55s cubic-bezier(0.6, 0, 0.3, 1);
}

.js .tm-qs li.is-marked .pen-x {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.35s ease 0.45s;
}

.tm-paper-foot {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.tm-paper-foot i {
  color: var(--red);
  font-weight: 500;
}

/* ---------- 09 The family ---------- */
.tm-segs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.tm-segs li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

.f-logo {
  width: 104px;
  height: auto;
  flex: none;
}

.tm-segs i {
  width: 1px;
  height: 30px;
  background: var(--line-2);
}

.tm-segs span {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.tm-fam-2 {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-top: 24px;
}

.tm-appicon,
.tm-partner {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 18px;
}

.tm-appicon > p:last-child,
.tm-partner > p:last-child {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.tm-icons {
  display: flex;
  gap: 20px;
}

.tm-icons span {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 26px;
  box-shadow: 0 18px 30px -20px rgba(20, 17, 18, 0.45);
}

.tm-icons svg {
  width: 62%;
}

.i-w {
  background: #fff;
  border: 1px solid var(--line-2);
}

.i-b {
  background: var(--black);
  --l-num: #fff;
}

.tm-canvas {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1;
  background: #fafafa;
  border: 1px solid var(--line-2);
  border-radius: 4px;
}

.p-art {
  position: absolute;
  inset: 26% 8% 8%;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 7px;
}

.p-art i {
  border-radius: 4px;
  background: linear-gradient(135deg, #ececea, #e1dfdc);
}

.p-art b {
  height: 9px;
  width: 72%;
  border-radius: 3px;
  background: #e4e2df;
}

.p-art b:last-child {
  width: 46%;
  background: var(--red);
  opacity: 0.85;
}

.p-partner {
  position: absolute;
  left: 8%;
  top: 8%;
  display: grid;
  place-items: center;
  width: 30%;
  height: 9%;
  border: 1.5px dashed var(--ink-3);
  font-size: 11px;
  color: var(--ink-2);
}

.p-logo {
  position: absolute;
  right: 8%;
  top: 8%;
  width: 32.5%;
  height: 9%;
}

.p-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 8%;
  height: 9%;
  border-top: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
  opacity: 0.6;
}

.p-dim {
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

.tm-partner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 32px;
  align-items: center;
}

.tm-partner .tm-sub-k {
  grid-column: 1 / -1;
}

.tm-partner .tm-canvas {
  width: 220px;
  margin-bottom: 26px;
}

.tm-partner > p:last-child {
  margin: 0;
}

.tm-motion {
  margin-top: 72px;
}

.tm-motion-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.tm-loop {
  grid-column: 1 / -1;
}

.tm-video figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
}

.tm-video figcaption b {
  font-weight: 600;
  color: var(--black);
}

.tm-loop video {
  border-radius: 12px;
}

.tm-motion-note {
  align-self: center;
  max-width: 420px;
  padding-left: 8px;
}

.tm-motion-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
}

.tm-motion-note .tm-motion-cred {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tm-motion-cred b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--black);
}

/* ---------- 10 Out in the world ---------- */
.tm-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 56px;
}

.tm-bento figure,
.tm-office figure {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #e9e7e4;
}

.tm-bento img,
.tm-office img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--tm-ease);
}

.tm-bento figure:hover img,
.tm-office figure:hover img {
  transform: scale(1.03);
}

.tm-bento figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  pointer-events: none;
}

.w-cine { grid-column: span 8; grid-row: span 3; }
.w-bb2 { grid-column: span 4; grid-row: span 3; }
.w-card, .w-id, .w-env { grid-column: span 4; grid-row: span 2; }
.w-cert { grid-column: span 5; grid-row: span 2; }
.w-diary { grid-column: span 2; grid-row: span 2; }
.w-note { grid-column: span 5; grid-row: span 2; }
.w-box, .w-tote, .w-badge { grid-column: span 4; grid-row: span 2; }
.w-tee1, .w-tee2 { grid-column: span 6; grid-row: span 2; }
.w-pin, .w-app, .w-web { grid-column: span 4; grid-row: span 2; }
.w-bb1, .w-bb3 { grid-column: span 6; grid-row: span 3; }

.tm-office {
  margin-top: 72px;
}

.tm-office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 14px;
}

.tm-office .o-0 {
  grid-column: span 2;
  grid-row: span 2;
}

/* ---------- 10:00 Finale ---------- */
/* ---------- Recap: the brand reel, before the bell ---------- */
.tm-recap .tm-head {
  margin: 0 auto;
  text-align: center;
}

.tm-recap .tm-lead {
  margin-left: auto;
  margin-right: auto;
}

.tm-recap h2 em {
  white-space: nowrap;
}

.tm .tm-reel {
  max-width: 940px;
  margin: 72px auto 0;
}

.tm-reel-screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dark);
  box-shadow: 0 40px 80px -40px rgba(35, 31, 32, 0.45), 0 0 0 1px var(--line);
}

.tm-reel video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1080 / 768;
}

.tm-reel-snd {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(20, 17, 18, 0.72);
  color: #fff;
  font: 500 13px/1 var(--tm-sans);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

/* reduced motion: the browser's own controls take over, mute included */
.tm-reel.is-native .tm-reel-snd,
.tm-reel.is-native .tm-reel-bar {
  display: none;
}

.tm-reel-snd:hover {
  background: rgba(20, 17, 18, 0.9);
}

.tm-reel-snd[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
}

.tm-reel-snd svg {
  width: 18px;
  height: 18px;
}

.tm-reel-snd .s-on,
.tm-reel-snd[aria-pressed="true"] .s-off {
  display: none;
}

.tm-reel-snd[aria-pressed="true"] .s-on {
  display: inline;
}

.tm-reel-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.tm-reel-t {
  color: var(--red);
}

.tm-reel-track {
  position: relative;
  height: 2px;
  background: var(--line-2);
}

.tm-reel-track i {
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
}

.tm-finale {
  padding: 128px 0 120px;
}

.tm-fin-in {
  display: grid;
  justify-items: center;
  text-align: center;
}

.tm-fin-in .tm-hero-k {
  margin-bottom: 48px;
}

.tm-fin-logo {
  width: min(620px, 86%);
}

.tm-fin-line {
  margin: 36px 0 0;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--on-dark-2);
}

.tm h2.tm-fin-t {
  max-width: 760px;
  margin-top: 56px;
  font-size: clamp(30px, 3.4vw, 48px);
}

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

.tm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s;
}

.tm-btn svg {
  width: 12px;
  height: 12px;
}

.tm-btn:hover {
  background: var(--red-d);
}

.tm-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.pre-motion .tm-hero-in > * {
  opacity: 0;
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .tm-credits {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .tm-qs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-segs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tm-fam-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .tm .tm-reel {
    margin-top: 44px;
  }

  .tm-reel-screen {
    border-radius: 12px;
  }

  .tm-reel-snd {
    right: 10px;
    bottom: 10px;
    height: 34px;
    padding: 0 12px 0 10px;
    font-size: 12px;
  }

  .tm-page {
    --tm-gap: 88px;
  }

  .tm-wrap {
    width: calc(100% - 32px);
  }

  .tm-sec {
    background-image: repeating-linear-gradient(90deg, transparent 0 63px, rgba(35, 31, 32, 0.045) 63px 64px);
  }

  .tm h2 {
    font-size: clamp(30px, 8.4vw, 40px);
    line-height: 1.12;
  }

  .tm-lead {
    font-size: 16px;
  }

  .tm-hero {
    min-height: 0;
    padding: calc(64px + var(--hdr)) 0 96px;
  }

  .tm-hero-k {
    margin-bottom: 40px;
  }

  .tm-hero-logo {
    width: 100%;
  }

  .tm-hero-t {
    margin-top: 44px;
    font-size: 26px;
    line-height: 1.18;
  }

  .tm-hero-sub {
    font-size: 16px;
  }

  .tm-credits {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .tm-credits div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .tm-credits dd {
    margin: 0;
  }

  .tm-scroll {
    display: none;
  }

  .tm-school-in {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tm-eq {
    gap: 8px;
    margin-top: 48px;
  }

  .tm-eq-n {
    font-size: 54px;
  }

  .tm-eq-op {
    font-size: 24px;
  }

  .tm-dial {
    width: 136px;
  }

  .tm-dial-hint {
    font-size: 12px;
  }

  .tm-eq-res {
    width: 60px;
  }

  /* the routine becomes one day after another */
  .tm-grid {
    grid-template-columns: 1fr 1fr;
  }

  .r-h {
    display: none;
  }

  .r-day {
    grid-column: 1 / -1;
    place-items: start;
    padding: 12px 16px;
    background: #fbfbfa;
  }

  .r-cell {
    min-height: 64px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .r-cell:nth-child(6n) {
    grid-column: 1 / -1;   /* each day's fifth period gets the whole row */
  }

  .tm-routine-top {
    flex-direction: column;
    gap: 2px;
    padding: 18px 20px;
  }

  .tm-cons {
    margin-top: 40px;
  }

  .tm-cons text {
    font-size: 26px;
  }

  .tm-cons .dim-h text,
  .tm-cons .safe text {
    font-size: 24px;
  }

  .tm-cons-credit {
    flex-direction: column;
    font-size: 13px;
  }

  .tm-ruler,
  .tm-ruler.is-small {
    grid-template-columns: 1fr;
    grid-template-rows: 12px 58px auto;
  }

  .r-meta {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    gap: 4px 10px;
    padding: 12px 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .r-meta em {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .r-segs span[data-p="100"] {
    flex: 1.6;
  }

  .r-segs i {
    left: 6px;
    font-size: 10px;
  }

  .tm-colour-2 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .tm-spec-head {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 20px;
  }

  .tm-spec-head > span {
    display: none;
  }

  .tm-spec-head b {
    display: block;
    font-size: 17px;
  }

  .tm-spec-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }

  .tm-spec-note {
    padding: 12px 20px;
  }

  .tm-swap {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 48px;
  }

  .tm-bg-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
  }

  .tm-bg-tabs::-webkit-scrollbar {
    display: none;
  }

  .tm-bg-tabs button {
    flex: none;
    height: 38px;
    padding: 0 16px;
  }

  .tm-bg-stage {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  .bg-logo {
    width: 68%;
  }

  .tm-bg[data-bg="photo"] .bg-logo {
    left: 62%;
    top: 10%;
    width: 34%;
  }

  .tm-bg[data-bg="video"] .bg-logo {
    left: 72%;
    top: 9%;
    width: 25%;
  }

  .tm-paper {
    padding: 32px 20px 28px 44px;
    background-image:
      linear-gradient(90deg, transparent 28px, rgba(235, 32, 38, 0.45) 28px 30px, transparent 30px),
      repeating-linear-gradient(180deg, transparent 0 35px, rgba(84, 132, 196, 0.16) 35px 36px);
    transform: none;
  }

  .tm-paper-top {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .tm-paper-t {
    font-size: 24px;
  }

  .tm-paper-name {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .tm-score {
    width: 72px;
    height: 72px;
    font-size: 15px;
  }

  .tm-score b {
    font-size: 28px;
  }

  .tm-qs {
    gap: 4px 16px;
  }

  .x-art {
    height: 84px;
  }

  .pen {
    height: 108px;
  }

  .tm-qs p {
    font-size: 12px;
  }

  .tm-segs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tm-segs li {
    padding: 18px;
  }

  .tm-appicon,
  .tm-partner {
    padding: 22px;
  }

  .tm-partner {
    grid-template-columns: 1fr;
  }

  .tm-partner .tm-canvas {
    width: 100%;
    max-width: 260px;
  }

  .tm-icons span {
    width: 96px;
    border-radius: 22px;
  }

  .tm-motion-row {
    grid-template-columns: 1fr;
  }

  .tm-motion-note {
    padding-left: 0;
  }

  .tm-motion-note p {
    font-size: 16px;
  }

  .tm-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
    gap: 8px;
    margin-top: 40px;
  }

  .tm-bento figure {
    grid-column: span 1;
    grid-row: span 2;
    border-radius: 10px;
  }

  .tm-bento .w-cine,
  .tm-bento .w-bb1,
  .tm-bento .w-bb3,
  .tm-bento .w-tee1,
  .tm-bento .w-tee2,
  .tm-bento .w-web,
  .tm-bento .w-cert,
  .tm-bento .w-card,
  .tm-bento .w-note,
  .tm-bento .w-env {
    grid-column: span 2;
  }

  .tm-bento figcaption {
    left: 8px;
    bottom: 8px;
    padding: 4px 9px;
    font-size: 11px;
  }

  .tm-office-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 8px;
  }

  .tm-office .o-5 {
    grid-column: span 2;
  }

  .tm-finale {
    padding: 96px 0 88px;
  }

  .tm-fin-logo {
    width: 100%;
  }

  .tm-fin-line {
    font-size: 17px;
  }
}

/* Reduced motion: every drawing is simply finished, nothing loops or sweeps */
@media (prefers-reduced-motion: reduce) {
  .tm-scroll span {
    animation: none;
  }

  .js .tm-cons .guides,
  .js .tm-cons .f,
  .js .tm-cons .dims,
  .js .tm-cons .safe {
    opacity: 1;
    transform: none;
  }

  .js .tm-cons .o,
  .js .pen path {
    stroke-dashoffset: 0;
  }

  .tm-words span {
    color: var(--black);
  }
}
