@keyframes hirank-sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hirank-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hirank-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hirank-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes hirank-ring { 0% { opacity: 0; transform: scale(.5); } 40% { opacity: .9; } 100% { opacity: .35; transform: none; } }
@keyframes hirank-grow { from { opacity: 1; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes hirank-line { from { opacity: 1; transform: scaleX(0); } to { opacity: 1; transform: none; } }
@keyframes hirank-spin { from { opacity: 1; transform: rotate(0); } to { opacity: 1; transform: rotate(360deg); } }
@keyframes hirank-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hirank-reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hirank-intake { 0% { border-top-color: var(--teal); transform: rotate(0); } 85% { opacity: 1; border-top-color: var(--teal); transform: rotate(450deg); } 100% { opacity: 0; border-top-color: var(--teal); transform: rotate(540deg); } }
@keyframes hirank-check { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes hirank-drift { from { transform: translate3d(-4%, -3%, 0) scale(1); } to { transform: translate3d(5%, 4%, 0) scale(1.12); } }

@scope (#hirank-research) {
  :scope {
    --navy: #001a69;
    --night: #04123f;
    --night-2: #0a1d57;
    --night-line: #22356b;
    --mint: #48e5ce;
    --teal: #00776f;
    --cream: #fbf7ef;
    --ink: #344252;
    --muted: #5b6b7d;
    --line: #d9dfe4;
    --on-dark: #c9d6ea;
    --heading: "Bricolage Grotesque", Arial, sans-serif;
    --body: Manrope, Arial, sans-serif;
    /* Motion tokens: one entrance for every section (fade + rise), one hover speed, one stagger step. */
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur-reveal: .55s;
    --dur-hover: .16s;
    --stagger: 80ms;
    --gutter: clamp(12px, 2vw, 32px);
    margin: 0;
    padding-top: 12px;
    background: var(--cream);
    color: var(--ink);
    font: 400 16px/1.7 var(--body);
  }
  *, *::before, *::after { box-sizing: border-box; }
  a { color: inherit; text-underline-offset: .3em; }
  a:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
  img, svg { display: block; max-width: 100%; }
  figure, h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
  ul, ol { list-style: none; max-width: none; counter-reset: none; }
  .problem::before, .benefit-list li::before { content: none; }
  h1, h2, h3 { color: var(--navy); font-family: var(--heading); font-weight: 800; text-transform: none; text-wrap: balance; }
  p, li { text-wrap: pretty; }
  section[id] { scroll-margin-top: 96px; }

  .wrap { width: min(1240px, calc(100% - clamp(40px, 8vw, 96px))); margin-inline: auto; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nowrap { white-space: nowrap; }
  .line { display: block; }

  /* Highlighter pill: one per heading, always horizontal. It is drawn behind the text from the
     baseline, tall enough for the stacked tone marks above (ể, ấ, ề) and the dots below (ợ, ặ).
     The top margin adds the same amount of space above the pill's line, so a tall pill never
     reaches into the descenders (q, y, g, ợ) of the line above it. */
  /* Headings form their own stacking context, so the pill always stays behind every line of text. */
  h1, h2 { position: relative; z-index: 0; }
  .rs-mark { position: relative; display: inline-block; padding: .02em .32em .08em; margin: .24em -.06em 0; color: #07122d; white-space: nowrap; }
  .rs-mark::before { content: ""; position: absolute; inset: -.22em 0 -.02em; z-index: -1; border-radius: 999px; background: var(--mint); }
  /* Compact pill for text without tall tone marks (đơn đặt hàng, hợp tác với Hi-Rank): lower top edge, no extra top margin */
  .rs-mark-low { margin-top: 0; }
  .rs-mark-low::before { inset: .03em 0 -.02em; }
  .mark-sweep::before { transform-origin: left center; animation: hirank-sweep .6s cubic-bezier(.65, 0, .35, 1) .35s both; }

  .eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--muted); }
  .eyebrow span { color: var(--teal); font-variant-numeric: tabular-nums; }
  .eyebrow i { width: 40px; height: 1px; background: #abc0c5; }
  .section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .section-head h2, .contact-copy h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.16; letter-spacing: -.035em; }
  .section-intro { max-width: 60ch; font-size: 16px; line-height: 1.65; }

  .cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 26px; border-radius: 8px;
    background: var(--mint); color: #07122d;
    font-size: 15px; font-weight: 800; line-height: 1.3; text-decoration: none;
    transition: background-color var(--dur-hover) ease-out;
  }
  .cta:hover { background: #fff; color: #07122d; }
  .cta:focus-visible { outline-color: var(--mint); }
  .cta svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- 1. Hero ---------- */
  .rs-hero {
    position: relative; isolation: isolate; overflow: hidden;
    margin: 0 var(--gutter);
    padding-block: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 88px);
    border-radius: 20px;
    background: var(--night);
    color: #dbe5f3;
  }
  .hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgb(160 190 255 / 9%) 1px, transparent 1px), linear-gradient(90deg, rgb(160 190 255 / 9%) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 70% 80% at 78% 30%, #000 10%, transparent 72%);
  }
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
  .rs-hero h1 { color: #fff; font-size: clamp(28px, 7.4vw, 58px); line-height: 1.14; letter-spacing: -.035em; text-wrap: wrap; }
  .heading-line { display: block; }
  .hero-lead { max-width: 50ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--on-dark); }
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 4px; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: #4a5f8c; transition: color var(--dur-hover) ease-out; }
  .text-link:hover { color: var(--mint); }
  .text-link:focus-visible { outline-color: var(--mint); }

  .hero-visual { position: relative; min-width: 0; padding-bottom: 28px; }
  .hero-photo { aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: 16px; background: #1b3a8f; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; mix-blend-mode: luminosity; filter: contrast(1.08); }
  .hero-note {
    position: absolute; left: 14px; bottom: 0; width: min(300px, 80%);
    padding: 18px 20px; border-radius: 16px;
    background: var(--cream); color: var(--navy);
    box-shadow: 0 18px 40px rgb(0 8 40 / 35%);
  }
  .hero-note-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--teal); }
  .hero-note-label::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--teal); }
  .hero-note ul { display: grid; gap: 6px; margin-top: 10px; font: 700 18px/1.3 var(--heading); }
  /* Each intake line ends with a check. In motion mode a ring spins on one line at a time, then turns into the check. */
  .hero-note li { position: relative; padding: 0 0 0 28px; }
  .hero-note li::before, .hero-note li::after { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 999px; }
  .hero-note li::before { border: 2px solid transparent; opacity: 0; }
  .hero-note li::after { background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
  .hero-note li:nth-child(1) { --n: 0; }
  .hero-note li:nth-child(2) { --n: 1; }
  .hero-note li:nth-child(3) { --n: 2; }
  .hero-tag {
    position: absolute; top: 16px; right: 16px; padding: 8px 14px;
    border: 1px solid #4a5f8c; border-radius: 999px;
    background: rgb(4 18 63 / 72%); color: #fff;
    font-size: 13px; font-weight: 700; line-height: 1.3;
  }
  .rise { animation: hirank-rise .7s cubic-bezier(.16, 1, .3, 1) both; }
  .rise-1 { animation-delay: .75s; }
  .rise-2 { animation-delay: .87s; }

  /* Icon tile shared by the problem cards and the benefit columns */
  .icon-tile { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e1f1ee; transition: background-color var(--dur-hover) ease-out; }
  .icon-tile svg { width: 26px; height: 26px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--dur-hover) ease-out; }

  /* ---------- 2. Problems ---------- */
  .problems { padding-block: clamp(64px, 8vw, 120px); }
  .problem-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 64px); }
  .problem {
    display: grid; grid-template-columns: auto 1fr; align-content: start; align-items: start; gap: 22px 12px;
    min-width: 0; padding: 24px; border: 1px solid #e3dccb; border-radius: 20px; background: #fff;
    transition: border-color var(--dur-hover) ease-out, background-color var(--dur-hover) ease-out;
  }
  .problem-num { justify-self: end; font: 800 15px/1.4 var(--heading); color: #9aa9b5; font-variant-numeric: tabular-nums; }
  .problem p { grid-column: 1 / -1; font-size: 17px; line-height: 1.6; font-weight: 600; color: var(--navy); }
  .problem:hover { border-color: var(--teal); background: #f3faf8; }
  .problem:hover .icon-tile, .benefit:hover .icon-tile { background: var(--navy); }
  .problem:hover .icon-tile svg, .benefit:hover .icon-tile svg { stroke: var(--mint); }

  /* ---------- 3. Services ---------- */
  .services { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 120px); background: var(--night); color: var(--on-dark); }
  .services::before, .experts::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgb(160 190 255 / 6%) 1px, transparent 1px), linear-gradient(90deg, rgb(160 190 255 / 6%) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 15% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 15% 0%, #000 0%, transparent 70%);
  }
  .services .eyebrow { color: #9fb3d4; }
  .services .eyebrow span { color: var(--mint); }
  .services .eyebrow i { background: #4a5f8c; }
  .services h2 { color: #fff; }
  .service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
  .service {
    display: flex; flex-direction: column; gap: 14px; min-width: 0;
    padding: 14px; border: 1px solid var(--night-line); border-radius: 16px;
    color: var(--on-dark); text-decoration: none;
    transition: border-color var(--dur-hover) ease-out, background-color var(--dur-hover) ease-out;
  }
  .service:hover { border-color: var(--mint); background: var(--night-2); }
  .service-num { font: 800 15px/1.3 var(--heading); color: var(--mint); font-variant-numeric: tabular-nums; }
  .service h3 { font-size: 21px; line-height: 1.22; color: #fff; }
  .service p { font-size: 14.5px; line-height: 1.55; }
  .service-cta { background: var(--mint); border-color: var(--mint); color: #07122d; }
  a.service-cta:hover { background: #fff; border-color: #fff; }
  .service-cta:focus-visible { outline-color: #fff; }
  .service-cta .service-num, .service-cta h3, .service-cta p { color: #07122d; }
  .service-cta .service-num { font-family: var(--body); }
  .service-cta-link { margin-top: auto; font-weight: 800; }
  .service-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 0 6px 6px; }
  .scene { height: 140px; overflow: hidden; border-radius: 12px; background: var(--night-2); }
  .scene svg { width: 100%; height: 100%; }
  .scene svg * { transform-box: fill-box; }
  .service-cta .scene { background: rgb(0 26 105 / 10%); }

  /* Illustration motion. At rest every scene shows its finished drawing. A scene plays only while
     its card is hovered or focused; on touch screens the cards play once, one after another, when
     they scroll into view. Cards themselves fade in a few at a time (the only entrance effect). */
  @media (prefers-reduced-motion: no-preference) {
    :scope[data-motion] .service-grid:not([data-in-view]) .service { opacity: 0; transform: translateY(16px); }
    :scope[data-motion] .service-grid[data-in-view] .service { animation: hirank-reveal var(--dur-reveal) var(--ease-out) both; animation-delay: calc(var(--i, 0) * var(--stagger)); }
    .service[data-play] .a { animation: hirank-fade .4s ease-out both; animation-delay: var(--d, 0s); }
    .service[data-play] .a-pop { animation-name: hirank-pop; animation-duration: .4s; animation-timing-function: cubic-bezier(.34, 1.56, .64, 1); transform-origin: 50% 50%; }
    .service[data-play] .a-ring { animation-name: hirank-ring; animation-duration: .7s; animation-timing-function: ease-out; transform-origin: 50% 50%; }
    .service[data-play] .a-bar { animation-name: hirank-grow; animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); transform-origin: 50% 100%; }
    .service[data-play] .a-line { animation-name: hirank-line; animation-duration: .45s; animation-timing-function: cubic-bezier(.65, 0, .35, 1); transform-origin: 0 50%; }
    .service[data-play] .a-spin { animation-name: hirank-spin; animation-duration: 1.6s; animation-timing-function: linear; transform-box: view-box; transform-origin: 160px 90px; }
    .service[data-play] .a-draw { stroke-dasharray: 1; animation: hirank-draw .6s cubic-bezier(.65, 0, .35, 1) both; animation-delay: var(--d, 0s); }
  }

  /* ---------- 4. Process ---------- */
  .process { margin-top: 0; padding-block: clamp(64px, 8vw, 120px); background: #fff; }
  .process-head { display: flex; flex-direction: column; gap: 24px; }
  /* Process: a vertical timeline on small screens, a horizontal one from 1000px up.
     Each step draws the link from its own node to the next node, so the chain is continuous. */
  .rs-steps { --grow: scaleY(0); display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 720px; margin-top: clamp(40px, 6vw, 72px); }
  .step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; align-items: start; min-width: 0; padding: 0; }
  .step-head { grid-column: 1; grid-row: 1 / span 2; }
  .step-dot {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
    background: var(--navy); color: var(--mint); font: 800 16px/1 var(--heading); font-variant-numeric: tabular-nums;
  }
  .step h3 { grid-column: 2; grid-row: 1; margin-top: 9px; font-size: 22px; line-height: 1.28; }
  .step p { grid-column: 2; grid-row: 2; font-size: 15px; line-height: 1.6; }
  .step::before { content: none; }
  .step:not(:last-child)::before, .step:not(:last-child)::after {
    content: ""; position: absolute; left: 21px; top: 44px; bottom: -28px; width: 2px; border-radius: 2px;
  }
  .step:not(:last-child)::before { background: rgb(0 26 105 / 18%); }
  .step:not(:last-child)::after { background: var(--teal); transform-origin: 50% 0; }
  .step .step-out { grid-column: 2; grid-row: 3; margin-top: 6px; font: 800 13px/1.5 var(--body); letter-spacing: .02em; color: var(--teal); }
  .step .step-out span { margin-right: 4px; }

  /* ---------- 5. Benefits ---------- */
  .benefits { padding-block: clamp(64px, 8vw, 120px); }
  .benefit-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: clamp(36px, 5vw, 64px); }
  .benefit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; padding: 24px 0 0; border-top: 1px solid #d9d2c1; }
  .benefit-num { margin-top: 6px; font: 800 13px/1.3 var(--body); letter-spacing: .08em; color: var(--teal); font-variant-numeric: tabular-nums; }
  .benefit h3 { font-size: 21px; line-height: 1.3; }
  .benefit p { font-size: 15px; line-height: 1.6; }
  @media (prefers-reduced-motion: no-preference) {
  }

  /* ---------- 6. Experts ---------- */
  .experts { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 120px); background: radial-gradient(ellipse 50% 60% at 100% 100%, rgb(72 229 206 / 14%), transparent 70%), #061a52; color: var(--on-dark); }
  .experts::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 100% 100%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse 60% 70% at 100% 100%, #000 0%, transparent 70%); }
  .experts .eyebrow { color: #9fb3d4; }
  .experts .eyebrow span { color: var(--mint); }
  .experts .eyebrow i { background: #4a5f8c; }
  .experts h2 { color: #fff; }
  .expert-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
  .expert {
    display: grid; grid-template-columns: clamp(104px, 36%, 230px) minmax(0, 1fr); gap: 18px; align-items: start;
    min-width: 0; padding: 14px; border: 1px solid var(--night-line); border-radius: 20px; background: var(--night-2);
  }
  .expert-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #1b3a8f; }
  .expert-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
  .expert-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 6px 8px 6px 0; }
  .expert-rank { font: 800 12px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
  .expert h3 { color: #fff; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.25; }
  .expert-bio, .expert-facts li { font-size: 14.5px; line-height: 1.6; color: var(--on-dark); }
  .expert-facts { display: grid; gap: 8px; }
  .expert-facts li { position: relative; padding: 0 0 0 18px; }
  .expert-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 999px; background: var(--mint); }

  /* ---------- 7. Testimonials: paged carousel, three cards at a time on wide screens ---------- */
  .testimonials { padding-block: clamp(64px, 8vw, 120px); background: #e8f5f2; }
  .testimonial-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
  .slide-controls { display: flex; align-items: center; gap: 12px; }
  .slide-count { min-width: 3.4em; font: 800 14px/1 var(--heading); color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
  .slide-btn {
    display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid var(--navy); border-radius: 999px;
    background: transparent; color: var(--navy); cursor: pointer; transition: background-color var(--dur-hover) ease-out, color var(--dur-hover) ease-out;
  }
  .slide-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .slide-btn:hover { background: var(--navy); color: var(--mint); }
  .slide-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  .testimonial-track {
    position: relative; display: flex; gap: 16px; margin-top: clamp(32px, 4vw, 48px); padding-bottom: 6px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .testimonial-track::-webkit-scrollbar { display: none; }
  .testimonial-track:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 20px; }
  .testimonial { flex: 0 0 100%; min-width: 0; padding: 0; scroll-snap-align: start; }
  .testimonial figure {
    display: flex; flex-direction: column; gap: 20px; height: 100%; padding: 26px;
    border: 1px solid #cfe3df; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(0 26 105 / 5%);
  }
  .testimonial-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .testimonial blockquote { margin: 0; padding: 0; border: 0; }
  .testimonial blockquote p { font-size: 18px; line-height: 1.6; font-weight: 600; color: var(--navy); }
  .testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
  .testimonial figcaption strong { display: block; font-size: 16px; line-height: 1.3; color: var(--navy); }
  .testimonial figcaption span span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); }
  .initial { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: #e1f1ee; color: var(--teal); font: 800 16px/1 var(--heading); }
  /* Demo marks show only while the section holds placeholder content (data-demo on the section). */
  .demo-tag, .demo-banner { display: none; }
  .testimonials[data-demo] .demo-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #fff1bf; color: #6b4e00; font: 800 11px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; }
  .testimonials[data-demo] .demo-banner { display: block; padding: 6px 14px; border: 1px dashed #d8b84a; border-radius: 999px; background: #fff8dc; color: #6b4e00; font-size: 13px; font-weight: 700; line-height: 1.4; }
  @media (prefers-reduced-motion: no-preference) {
    .testimonial.is-entering figure { animation: hirank-reveal var(--dur-reveal) var(--ease-out) both; animation-delay: calc(var(--k, 0) * var(--stagger)); }
  }

  /* ---------- 8. Contact: the page's single vivid block (mint), so it reads as the climax ---------- */
  .contact { position: relative; isolation: isolate; overflow: hidden; margin: var(--gutter); border-radius: 24px; background: var(--mint); color: #07122d; }
  .contact-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 32px; padding-block: clamp(56px, 7vw, 96px); }
  .contact-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
  .contact .eyebrow, .contact .eyebrow span { color: #06324a; }
  .contact .eyebrow i { background: #06324a; opacity: .45; }
  .contact h2 { color: #04123f; font-size: clamp(30px, 4vw, 58px); }
  .contact .rs-mark { color: var(--mint); }
  .contact .rs-mark::before { background: #04123f; }
  .contact .section-intro { max-width: 48ch; font-size: 17px; color: #0b2a4a; }
  .contact-action { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact .cta { background: #04123f; color: #fff; }
  .contact .cta:hover { background: #fff; color: #04123f; }
  .contact .cta:focus-visible { outline-color: #04123f; }
  .cta-large { min-height: 60px; padding: 0 28px; font-size: 16px; white-space: nowrap; flex: none; }
  .contact-note { font-size: 14px; line-height: 1.5; color: #0b2a4a; }
  /* Right-hand art: dotted grid plus slow drifting colour blobs (static under reduced motion) */
  .contact-art { position: absolute; inset: 0 0 0 auto; z-index: -1; width: min(52%, 640px); pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
  .contact-art::before {
    content: ""; position: absolute; inset: -20%;
    background: radial-gradient(circle at 30% 35%, #fff 0, rgb(255 255 255 / 0%) 38%), radial-gradient(circle at 72% 62%, #00a99b 0, rgb(0 169 155 / 0%) 42%), radial-gradient(circle at 60% 15%, #7ff0de 0, rgb(127 240 222 / 0%) 36%);
    opacity: .85;
  }
  .contact-art::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgb(4 18 63 / 28%) 1.2px, transparent 1.4px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%);
  }
  @media (prefers-reduced-motion: no-preference) {
    .contact-art::before { animation: hirank-drift 14s ease-in-out infinite alternate; }
  }
  @media (max-width: 760px) { .contact-art { width: 100%; opacity: .45; } }

  /* ---------- Breakpoints ---------- */
  @media (min-width: 641px) {
    /* Asymmetric bento, two columns zig-zag: 5/7, 7/5, 5/7 of a 12-column grid */
    .service-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .service:nth-child(4n + 1), .service:nth-child(4n + 4) { grid-column: span 5; }
    .service:nth-child(4n + 2), .service:nth-child(4n + 3) { grid-column: span 7; }
    .problem-list, .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 761px) {
    .contact-inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  }
  @media (min-width: 901px) {
    .process-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px 64px; }
    .process-head .section-intro { flex: 0 1 460px; }
  }
  @media (min-width: 1000px) {
    .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
    .rs-hero h1 { font-size: clamp(38px, 3.7vw, 60px); }
    .hero-note { left: -28px; }
    /* Two rows, mirrored widths: 4 / 5 / 3 on top, 3 / 5 / 4 below */
    .service:nth-child(n) { grid-column: span 4; }
    .service:nth-child(2), .service:nth-child(5) { grid-column: span 5; }
    .service:nth-child(3), .service:nth-child(4) { grid-column: span 3; }
    .benefit-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 40px); }
    .rs-steps { --grow: scaleX(0); grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; max-width: none; }
    /* Horizontal timeline: nodes sit at the centre of each column, links run from node edge to node edge */
    .step { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
    .step h3 { margin-top: 6px; min-height: 2.56em; }
    .step:not(:last-child)::before, .step:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% - 10px); top: 21px; bottom: auto; width: auto; height: 2px; }
    .step:not(:last-child)::after { transform-origin: 0 50%; }
  }

  @media (min-width: 1100px) {
    .problem-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

  @media (min-width: 641px) {
    .testimonial { flex-basis: calc((100% - 16px) / 2); }
  }
  @media (min-width: 761px) {
    .expert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (min-width: 1000px) {
    .testimonial { flex-basis: calc((100% - 32px) / 3); }
  }

  @media (max-width: 360px) {
    .rs-hero h1 { font-size: 25px; }
  }

  /* Hero intake note: pending ring, then a spinner on each line in turn, then the check */
  @media (prefers-reduced-motion: no-preference) {
    .hero-note li::before { opacity: 1; border-color: #cfe0dd; animation: hirank-intake .6s linear calc(1.2s + var(--n) * .6s) forwards; }
    .hero-note li::after { transform: scale(0); animation: hirank-check .35s cubic-bezier(.34, 1.56, .64, 1) calc(1.8s + var(--n) * .6s) forwards; }
  }

  /* Process: the links fill in step by step, then each node appears as the line reaches it */
  @media (prefers-reduced-motion: no-preference) {
    .step:not(:last-child)::after { transition: transform .5s ease-out; transition-delay: calc(var(--i, 0) * .45s); }
    .step-dot { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease-out; transition-delay: calc(var(--i, 0) * .45s); }
    :scope[data-motion] .rs-steps:not([data-in-view]) .step:not(:last-child)::after { transform: var(--grow); }
    :scope[data-motion] .rs-steps:not([data-in-view]) .step-dot { transform: scale(.6); opacity: .3; }
  }

  /* ---------- CTA clusters: Zalo (primary) + email (secondary) ---------- */
  .cta-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #4a5f8c; }
  .cta-outline:hover { background: #fff; color: #07122d; box-shadow: inset 0 0 0 2px #fff; }
  .contact .cta.cta-outline { background: transparent; color: #04123f; box-shadow: inset 0 0 0 2px #04123f; }
  .contact .cta.cta-outline:hover { background: #04123f; color: #fff; }
  .contact-action { flex: none; max-width: 100%; }
  .contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
  .contact-note a { color: inherit; font-weight: 800; text-underline-offset: 4px; }
  .contact-note a:hover { text-decoration: underline; }
  .service-cta-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: auto; font-weight: 800; }
  .service-cta-links a { text-decoration: underline; text-underline-offset: 4px; }
  .service .service-cta-links { font-size: 15px; }
  .service-cta-links a:hover { text-decoration-thickness: 2px; }

  /* ---------- Experts carousel: same mechanism as the testimonials, vertical cards ---------- */
  .expert-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
  .experts .slide-btn { border-color: #4a5f8c; color: #fff; }
  .experts .slide-btn:hover { background: #fff; color: var(--night); }
  .experts .slide-btn:focus-visible { outline-color: var(--mint); }
  .experts .slide-count { color: #9fb3d4; }
  .slide-controls[hidden] { display: none; }
  .expert-track {
    position: relative; display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 4px;
  }
  .expert-track::-webkit-scrollbar { display: none; }
  .expert-track:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 20px; }
  .expert-track .expert {
    flex: 0 0 100%; grid-template-columns: minmax(0, 1fr); grid-auto-rows: min-content; align-content: start; gap: 16px;
    scroll-snap-align: start;
  }
  .expert-track .expert-photo { aspect-ratio: 4 / 4.6; }
  .expert-track .expert-body { padding: 2px 6px 8px; }
  .expert-track .expert-rank { min-height: 1.4em; }
  .expert.is-entering { animation: hirank-reveal var(--dur-reveal) var(--ease-out) both; animation-delay: calc(var(--k, 0) * var(--stagger)); }
  @media (min-width: 641px) { .expert-track .expert { flex-basis: calc((100% - 16px) / 2); } }
  @media (min-width: 900px) { .expert-track .expert { flex-basis: calc((100% - 32px) / 3); } }
  @media (min-width: 1100px) { .expert-track .expert { flex-basis: calc((100% - 48px) / 4); } }

  /* ---------- Services page: compact head instead of a hero ---------- */
  .page-head { padding-block: clamp(56px, 7vw, 104px) clamp(8px, 2vw, 24px); }
  .page-title { font-size: clamp(34px, 4.4vw, 62px); line-height: 1.12; letter-spacing: -.035em; }

  /* ---------- Hub page: link cards ---------- */
  a.service.service-link { text-decoration: none; color: inherit; }
  .service .service-more { margin-top: auto; font-weight: 800; color: var(--mint); }
  a.service.service-link:hover .service-more { text-decoration: underline; text-underline-offset: 4px; }
  .service-grid.cols-3 .service:nth-child(n) { grid-column: span 12; }
  @media (min-width: 1000px) {
    .service-grid.cols-3 .service:nth-child(n) { grid-column: span 4; }
  }
  /* ---------- Course page ---------- */
  .hero-kicker { margin: 0 0 14px; font: 800 13px/1.4 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
  .chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 10px 0 0; list-style: none; }
  .chip-list li { padding: 4px 10px; border: 1px solid var(--night-line); border-radius: 999px; font-size: 12.5px; line-height: 1.4; color: var(--on-dark); }
  .section-note { max-width: 62ch; margin-top: clamp(28px, 4vw, 48px); font-size: 17px; line-height: 1.6; font-weight: 700; color: var(--navy); }
  .step .step-weeks { grid-column: 2; grid-row: 1; margin-top: 4px; font: 800 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
  .step .step-weeks ~ h3 { grid-row: 2; margin-top: 0; }
  .step .step-weeks ~ p { grid-row: 3; }
  .step .step-weeks ~ .step-out { grid-row: 4; }
  .step-head:has(+ .step-weeks) { grid-row: 1 / span 3; }
  .expert-link { margin-top: 10px; font-size: 14.5px; }
  .expert-link a { color: var(--mint); font-weight: 800; text-underline-offset: 4px; }
  .expert-link a:hover { text-decoration: underline; }
  .course-info { padding-block: clamp(64px, 8vw, 120px); background: #e8f5f2; }
  .course-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; }
  .course-facts .fact { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  .course-facts dt { font: 800 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
  .course-facts dd { margin: 0; }
  .course-facts .fact-value { font: 700 clamp(22px, 2.4vw, 30px)/1.2 var(--heading); letter-spacing: -.02em; color: var(--navy); }
  .course-facts .fact-note { font-size: 15px; line-height: 1.5; color: var(--muted); }
  @media (min-width: 641px) { .course-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) { .course-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

  /* ---------- Research course page ---------- */
  .philosophy { max-width: 880px; display: flex; flex-direction: column; gap: 22px; }
  .philosophy-title { font-size: clamp(30px, 4.2vw, 56px); line-height: 1.15; letter-spacing: -.03em; }
  .philosophy-body { max-width: 62ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--ink); }
  .pair-list { display: grid; gap: 16px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
  .pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  .pair p { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; }
  .pair-problem { font: 700 clamp(19px, 1.9vw, 24px)/1.3 var(--heading); letter-spacing: -.02em; color: var(--navy); }
  .pair-answer { font-size: 16px; line-height: 1.6; color: var(--ink); background: #f3faf8; border-top: 1px solid var(--line); }
  .pair-arrow { font: 800 20px/1 var(--heading); color: var(--teal); }
  .pair-label { font: 800 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
  @media (min-width: 900px) {
    .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .pair p { padding: 26px 30px; }
    .pair-answer { border-top: 0; border-left: 1px solid var(--line); }
  }
  .stages { counter-reset: stage; display: grid; gap: 0; max-width: 980px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
  .stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding-bottom: 34px; }
  .stage:last-child { padding-bottom: 0; }
  .stage:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; width: 2px; background: rgb(0 26 105 / 16%); }
  .stage-weeks { grid-column: 2; grid-row: 1; font: 800 12px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
  .stage-weeks small { display: block; font: 600 12px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
  .stage-dot { grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--navy); color: var(--mint); font: 800 16px/1 var(--heading); font-variant-numeric: tabular-nums; }
  .stage-body { grid-column: 2; grid-row: 2; }
  .stage-body h3 { font-size: 22px; line-height: 1.28; }
  .stage-body p { margin-top: 6px; font-size: 16px; line-height: 1.6; max-width: 62ch; }
  .stage-wait .stage-dot { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); border-style: dashed; }
  .stage-wait .stage-body h3 { color: var(--muted); }
  @media (min-width: 900px) {
    .stage { grid-template-columns: 170px 44px minmax(0, 1fr); column-gap: 22px; padding-bottom: 38px; }
    .stage:not(:last-child)::before { left: calc(170px + 22px + 21px); }
    .stage-weeks { grid-column: 1; grid-row: 1; padding-top: 12px; text-align: right; }
    .stage-dot { grid-column: 2; grid-row: 1; }
    .stage-body { grid-column: 3; grid-row: 1; padding-top: 8px; }
  }
  .commit-list { display: grid; gap: 16px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; }
  @media (min-width: 800px) { .commit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .commit { display: flex; gap: 18px; align-items: flex-start; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  .commit-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--navy); }
  .commit-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .commit p { font: 600 clamp(17px, 1.5vw, 19px)/1.55 var(--body); color: var(--navy); }
  .pub-list { display: grid; gap: 16px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 700px) { .pub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .pub-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .pub { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 14px; }
  .pub-journal { font: 700 19px/1.3 var(--heading); letter-spacing: -.01em; color: var(--navy); }
  .pub-author { margin-top: auto; font-size: 15px; line-height: 1.5; color: var(--muted); }

  /* ---------- Services page: blog-style card grid on one light surface ---------- */
  .post-index { padding-block: clamp(24px, 3vw, 40px) clamp(72px, 9vw, 130px); }
  .post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
  @media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .post-card {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
    text-decoration: none; color: inherit;
    transition: transform var(--dur-hover) var(--ease-out), box-shadow var(--dur-hover) var(--ease-out), border-color var(--dur-hover);
  }
  .post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(4, 18, 63, .09); border-color: #b9c5cf; }
  .post-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  .post-thumb { aspect-ratio: 16 / 9; background: #e4f6f2; display: grid; place-items: center; }
  .post-thumb svg { width: 62%; height: auto; }
  .post-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2vw, 28px); flex: 1; }
  .post-tag { font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--teal); }
  .post-body h2 { margin: 0; font-family: var(--heading); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.22; letter-spacing: -.02em; color: var(--navy); }
  .post-body p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
  .post-more { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--teal); }
  .post-card:hover .post-more { text-decoration: underline; text-underline-offset: 4px; }

  .benefit p a { color: var(--teal); font-weight: 800; text-underline-offset: 4px; }
  .benefit p a:hover { text-decoration: underline; }

  /* ---------- Variants for pages with fewer items (training service page) ---------- */
  .hero-caption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #9fb3d4; }
  @media (min-width: 761px) {
    .problem-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 1000px) {
    .service-grid.cols-4 .service:nth-child(n) { grid-column: span 3; }
    .rs-steps.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
    .benefit-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
  @media (min-width: 761px) {
    .benefit-list.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
  }

  /* Entrance for every section: heads and groups fade in and rise once, children one after another.
     JS tags the elements (data-reveal / data-reveal-group), so without JS everything simply shows. */
  @media (prefers-reduced-motion: no-preference) {
    :scope[data-motion] [data-reveal]:not([data-in-view]),
    :scope[data-motion] [data-reveal-group]:not([data-in-view]) > * { opacity: 0; transform: translateY(16px); }
    :scope[data-motion] [data-reveal][data-in-view] { animation: hirank-reveal var(--dur-reveal) var(--ease-out) backwards; }
    :scope[data-motion] [data-reveal-group][data-in-view] > * { animation: hirank-reveal var(--dur-reveal) var(--ease-out) backwards; animation-delay: calc(var(--k, 0) * var(--stagger)); }
  }

  /* Course page 3 (Come & Write) */
  .tick-list { display: grid; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
  .tick-list li { position: relative; padding-left: 24px; font-size: 14.5px; line-height: 1.55; color: var(--on-dark); }
  .tick-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
  .tick-list.hero-usps { margin: 18px 0 0; }
  .tick-list.hero-usps li { font-size: 16px; color: #fff; }
  .tick-list.hero-usps strong { color: var(--mint); font-weight: 700; }
  .service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; min-height: 44px; color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: underline; text-decoration-color: #4a5f8c; }
  .service-link:hover { color: var(--mint); }
  .service-link:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
  .method-split { display: grid; gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
  .method-photo { margin: 0; }
  .method-photo img { display: block; width: 100%; height: auto; border-radius: 18px; }
  .method-photo figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
  .benefit-stack { margin-top: 0; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .benefit-stack .benefit { padding: 20px 0; }
  @media (min-width: 900px) { .method-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } .benefit-stack { grid-template-columns: minmax(0, 1fr); } }
  .focus-menu { max-width: 980px; margin-top: clamp(32px, 4vw, 56px); padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  .focus-menu h3 { font-size: 20px; line-height: 1.3; color: var(--navy); }
  .focus-menu p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--muted); }
  .focus-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
  .focus-list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 1.4; color: var(--navy); background: #f6f3ea; }
  .proof-grid { display: grid; gap: 20px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); align-items: start; }
  @media (min-width: 640px) { .proof-grid.proof-3, .proof-grid.proof-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) { .proof-grid.proof-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .proof-grid.proof-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .proof { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
  .proof h3 { margin-top: 6px; font: 700 19px/1.3 var(--heading); letter-spacing: -.01em; color: var(--navy); }
  .proof p { font-size: 15px; line-height: 1.5; color: var(--muted); }
  .proof-image { position: relative; display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
  .proof-image img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: #fff; }
  .proof-image > span { display: block; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--teal); }
  .proof-image:hover > span { color: var(--navy); }
  .proof-image:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  .faq { max-width: 980px; margin-top: clamp(40px, 5vw, 72px); }
  .faq h3 { font: 700 clamp(22px, 2.4vw, 28px)/1.25 var(--heading); letter-spacing: -.02em; color: var(--navy); }
  .faq-list { margin-top: 18px; border-top: 1px solid var(--line); }
  .faq-list details { border-bottom: 1px solid var(--line); }
  .faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; font-weight: 700; font-size: 17px; line-height: 1.4; color: var(--navy); cursor: pointer; list-style: none; }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after { content: "+"; flex: none; font: 700 22px/1 var(--heading); color: var(--teal); }
  .faq-list details[open] summary::after { content: "−"; }
  .faq-list summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
  .faq-list details p { padding: 0 0 18px; max-width: 70ch; font-size: 16px; line-height: 1.65; color: var(--muted); }
  @media (min-width: 1000px) {
    .course-facts.facts-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .course-facts.facts-wide .fact { grid-column: span 2; }
    .course-facts.facts-wide .fact:nth-child(-n+2) { grid-column: span 3; }
  }

  /* Come & Write: hero title in three lines, highlight band, bento, horizontal steps */
  .rs-hero h1.h1-3 { font-size: clamp(30px, 6vw, 52px); }
  .rs-hero h1.h1-3 .heading-line, .rs-hero h1.h1-3 .rs-mark { white-space: nowrap; }
  @media (max-width: 480px) { .rs-hero h1.h1-3 { font-size: 26px; } }
  @media (min-width: 1000px) { .rs-hero h1.h1-3 { font-size: clamp(34px, 3.3vw, 54px); } }
  .scene svg { shape-rendering: geometricPrecision; }
  .usp-band { padding-block: clamp(20px, 3vw, 36px) 0; }
  .usp-grid { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 900px) { .usp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .usp { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
  .usp p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
  .usp strong { color: var(--navy); font-weight: 800; }
  .usp-tick { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 999px; background: var(--navy); }
  .usp-tick svg { width: 14px; height: 14px; fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  .bento { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); }
  .bento-photo { position: relative; margin: 0; min-height: 260px; overflow: hidden; border-radius: 20px; background: #0a1d57; }
  .bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .bento-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; font-size: 14.5px; line-height: 1.5; color: #fff; background: linear-gradient(to top, rgb(4 18 63 / 90%), rgb(4 18 63 / 0%)); }
  .bento-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
  .bento-card h3 { font-size: 21px; line-height: 1.3; }
  .bento-card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
  .bento-card .benefit-num { margin: 0; }
  .bento-card.is-feature { background: var(--navy); border-color: var(--navy); }
  .bento-card.is-feature h3 { color: #fff; }
  .bento-card.is-feature p { color: var(--on-dark); }
  .bento-card.is-feature .benefit-num { color: var(--mint); }
  @media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-photo { grid-column: 1 / -1; min-height: 320px; } .bento-card.is-feature { grid-column: 1 / -1; } }
  @media (min-width: 1000px) {
    .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bento-photo { grid-column: 1; grid-row: 1 / span 2; min-height: 0; }
    .bento-card.is-feature { grid-column: span 2; }
  }
  /* The theme styles ol/ul items with its own markers: switch them off for the lists of this page */
  .steps-h > li, .usp-grid > li, .tick-list > li, .focus-list > li, .proof-grid > li, .faq-list > details { list-style: none; }
  .steps-h > li::marker, .usp-grid > li::marker, .tick-list > li::marker, .focus-list > li::marker, .proof-grid > li::marker { content: none; font-size: 0; }
  /* The theme adds its own number to every ol li (ol li::before { content: counter(item) }): remove it here */
  :scope ol > li::before { content: none; }
  .section-head.is-center { align-items: center; text-align: center; }
  .section-head.is-center .section-intro { margin-inline: auto; }
  .steps-h { display: grid; gap: 16px; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; list-style: none; grid-template-columns: minmax(0, 1fr); }
  .step-h { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
  .step-node { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--navy); color: var(--mint); font: 800 18px/1 var(--heading); font-variant-numeric: tabular-nums; }
  .step-moment { margin-top: 6px; font: 800 12px/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); }
  .step-h h3 { font-size: 20px; line-height: 1.3; }
  .step-h p { max-width: 30ch; font-size: 15px; line-height: 1.6; color: var(--muted); }
  @media (min-width: 640px) { .steps-h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1000px) {
    .steps-h { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .step-h { padding: 0 18px; background: none; border: 0; border-radius: 0; }
    .step-h:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: calc(50% + 40px); right: calc(-50% + 40px); height: 0; border-top: 2px dashed #b9c6d8; }
  }
  .focus-menu { margin-inline: auto; text-align: center; }
  .focus-list { justify-content: center; }
  .contact h2.h2-long { font-size: clamp(28px, 3.2vw, 46px); max-width: 22ch; }
  @media (prefers-reduced-motion: reduce) {
    .cta, .text-link, .problem, .service, .icon-tile, .icon-tile svg { transition: none; }
    .mark-sweep::before, .rise { animation: none; }
  }
}
