/* Sections after the stage: Nói thật, Một tuần, Chúng tôi làm gì, Từ phòng lab, Liên hệ.
   Separated by space, never rules. Ink colours repeat the story: yellow = you, blue = us, green = one team. */

/* Nói thật: one big sentence (tinted word by word on scroll), then claims struck through. */
.honest { position: relative; padding: var(--space-section) var(--gutter); }
.honest-big {
  max-width: 21ch; margin-top: 1.5rem; text-wrap: pretty;
  font: 700 clamp(2rem, 4.6vw, 4.5rem)/1.08 var(--font-display); letter-spacing: -0.025em;
}
.honest-body { display: grid; gap: 1.25rem; max-width: 62ch; margin-top: clamp(3rem, 7vw, 6rem); }
.pairs { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); margin-block: 1rem; }
.pairs li { display: grid; gap: 0.35rem; }
.claim {
  position: relative; justify-self: start; text-decoration: none; color: var(--ink-soft);
  font: 600 clamp(1.35rem, 2.4vw, 2.1rem)/1.15 var(--font-display); letter-spacing: -0.015em;
}
.strike {   /* two hand-drawn red ink strokes, slightly tilted; drawn by scroll (stroke-dashoffset) */
  position: absolute; left: -0.15em; right: -0.15em; top: 0.3em; width: calc(100% + 0.3em); height: 0.6em;
  overflow: visible; rotate: -2.5deg; fill: none; stroke: var(--red-ink); stroke-linecap: round;
}
.strike path { stroke-width: 2.6; stroke-dasharray: 1 2; stroke-dashoffset: 0; }  /* user units (non-scaling-stroke breaks pathLength dashes); gap 2 so no cap peeks at the end */
.strike path + path { stroke-width: 1.8; opacity: 0.75; }
.goal { font-weight: 500; font-size: clamp(1.125rem, 1.5vw, 1.4rem); line-height: 1.45; }
.pairs-note { font-size: 0.95rem; color: var(--ink-soft); }
@media (min-width: 960px) {
  .honest-body { margin-left: 33.333%; }
  .pairs li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: 2.5rem; align-items: baseline; }
}

/* Một tuần: days are the numbering. Static = a column (mobile) or three columns (desktop). */
.week { padding: 0 var(--gutter) var(--space-section); }
.week-head { display: grid; gap: 0.75rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.week-head p { color: var(--ink-soft); }
.week-track { display: grid; gap: clamp(3rem, 6vw, 4rem); }
.day { display: grid; gap: 0.75rem; align-content: start; max-width: 32rem; }
.day-mark { display: flex; align-items: flex-end; gap: 0.6rem; line-height: 1; }
.day-word { font: 700 clamp(1.1rem, 1.6vw, 1.5rem)/1 var(--font-display); padding-bottom: 0.4em; }
.day-num {
  display: inline-flex; gap: 0.04em; padding: 0.02em 0.16em 0.06em; border-radius: 0.18em; perspective: 600px;
  font: 800 clamp(4.5rem, 11vw, 9.5rem)/0.92 var(--font-display); letter-spacing: -0.045em;
}
/* Split-flap characters (js/flip-days.js): each one turns over on its own horizontal axis. */
.flap { display: inline-block; transform-origin: 50% 50%; backface-visibility: hidden; }
.day--start .day-num { background: var(--client); }
.day--mid .day-num { background: var(--studio); }
.day--end .day-num { background: var(--team); }
.day h3 { margin-top: 0.75rem; font-size: clamp(1.5rem, 2.2vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
.week-rail { display: none; }
@media (min-width: 960px) {
  .week-track { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 3rem; }
  /* Motion + desktop: pinned panel, the track slides sideways (js/section-motion.js sets the height). */
  .motion .week { padding: 0; }
  .motion .week-sticky {
    position: sticky; top: 0; height: 100svh; overflow: clip;
    display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 5vh, 3.5rem);
  }
  .motion .week-head { margin: 0; padding-inline: var(--gutter); }
  .motion .week-track {
    display: flex; gap: 8vw; width: max-content; padding-inline: var(--gutter) 30vw; will-change: transform;
  }
  .motion .day { width: min(34vw, 30rem); }
  .motion .week-rail {
    display: block; height: 3px; margin-inline: var(--gutter); background: #DADFE8; border-radius: 2px; overflow: hidden;
  }
  .week-rail i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
}

/* Chúng tôi làm gì: three big lines, each wipes in its ink from the left (CSS clip-path). */
.services { padding: 0 var(--gutter) var(--space-section); }
.service-list { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.service a {
  position: relative; display: grid; gap: 0.5rem; isolation: isolate; text-decoration: none;
  margin-inline: calc(-1 * var(--gutter)); padding: clamp(0.75rem, 1.6vw, 1.25rem) var(--gutter);
}
.service a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill);
  clip-path: inset(0 100% 0 0); transition: clip-path 520ms var(--ease-out);
}
.service--client { --fill: var(--client); }
.service--studio { --fill: var(--studio); }
.service--team { --fill: var(--team); }
.service--night { --fill: var(--ink); }
.service--night a:hover, .service--night a:focus-visible { color: var(--bg); }  /* paper on navy: 15.9:1 */
.service--night a:focus-visible { outline-color: var(--client); }
.service a:hover::before, .service a:focus-visible::before { clip-path: inset(0 0 0 0); }
.service a:focus-visible { outline-offset: -6px; border-radius: 0; }
.service-name {
  font: 800 clamp(2.4rem, 7.4vw, 7rem)/1.04 var(--font-display); letter-spacing: -0.035em;
}
.service-desc { max-width: 34ch; font-weight: 500; }
.service a { transition: color 0.3s; }
@media (hover: hover) and (pointer: fine) {
  .service a { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 2rem; }
  .service-desc { opacity: 0; translate: -0.75rem 0; transition: opacity 300ms, translate 420ms var(--ease-out); }
  .service a:hover .service-desc, .service a:focus-visible .service-desc { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .service a::before, .service-desc { transition: none; }
}
