/* Loopmore.ai website styles, from the Loopmore design system (assets/Website/site.css).
   Every value comes from the design system tokens: load tokens.css (compiled from tokens.json),
   then components/bundle.css, then this file.
   Class prefixes: t- for type styles, w- for website layout and parts, m- for motion.
   Rules: dark Graphite heroes and bands, Paper and white sections, white cards with a line-paper border,
   one Coral button per page, sentence case, no gradients or glows. */

html, body { margin: 0; }
body {
  background: var(--surface-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }

/* ---------- Type: the website set from the design system ---------- */
.t-display, .t-h1, .t-h2, .t-h3, .t-h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); text-wrap: balance; }
.t-display { font-size: 64px; line-height: 68px; letter-spacing: -0.035em; }
.t-h1 { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; }
.t-h2 { font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
.t-h3 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
.t-h4 { font-size: 22px; line-height: 28px; letter-spacing: -0.015em; }
.t-body-lg, .t-body, .t-body-sm, .t-label, .t-caption { margin: 0; font-family: var(--font-sans); text-wrap: pretty; }
.t-body-lg { font-size: 18px; line-height: 28px; color: var(--ink-body); }
.t-body { font-size: 16px; line-height: 24px; color: var(--ink-body); }
.t-body-sm { font-size: 14px; line-height: 20px; color: var(--ink-body); }
.t-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.t-caption { font-size: 12px; line-height: 16px; letter-spacing: 0.01em; color: var(--ink-body); }
.t-overline { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-body); }
.t-data { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 400; }
.t-ink { color: var(--ink); }
.t-strong { font-weight: 600; color: var(--ink); }
/* The coral dot: the last period of a hero line. Never used for reading text. */
.w-dot { color: var(--accent); }

/* ---------- Layout ---------- */
.w-page { background: var(--surface-paper); color: var(--ink); font-family: var(--font-sans); }
.w-wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--content-max) + 64px); margin: 0 auto; padding: 0 32px; }
.w-section { padding: 96px 0; }
.w-section--sm { padding: 64px 0; }
.w-section--top0 { padding-top: 0; }
.w-white { background: var(--surface); }
.w-rule { border: 0; border-top: 1px solid var(--line-paper); margin: 0; }
.w-text-max { max-width: var(--text-max); }
.w-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.w-head--center { align-items: center; text-align: center; margin: 0 auto; }

/* ---------- Links ---------- */
a { color: var(--link); }
.w-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.w-link:hover { text-decoration-thickness: 2px; }
.w-link:focus-visible, .w-nav__link:focus-visible, .w-logo-link:focus-visible, .w-footer a:focus-visible { outline: none; border-radius: 4px; box-shadow: var(--focus-ring); }

/* ---------- Header ---------- */
.w-header { background: var(--surface-paper); border-bottom: 1px solid var(--line-paper); }
.w-header__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--site-header); }
.w-logo-link { display: inline-flex; align-items: center; padding: 8px 0; text-decoration: none; }
.w-nav { display: flex; align-items: center; gap: 32px; }
.w-nav__link { color: var(--ink); text-decoration: none; font-size: 15px; line-height: 20px; font-weight: 500; padding: 10px 0; text-underline-offset: 8px; }
.w-nav__link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.w-nav__link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.w-header__actions { display: flex; align-items: center; gap: 12px; }
.w-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); cursor: pointer; }
.w-menu-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Cards and media ---------- */
.w-card { box-sizing: border-box; background: var(--surface); border: 1px solid var(--line-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); }
.w-card--pad { padding: 32px; }
.w-card--flush { overflow: hidden; }
.w-media { display: block; width: 100%; height: auto; object-fit: cover; border-radius: var(--radius-xl); background: var(--surface-muted); }
.w-media--flush { border-radius: 0; }
.w-icon-tile { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--surface-paper); border: 1px solid var(--line-paper); color: var(--ink); }
.w-icon-tile--white { background: var(--surface); }
.w-fit-logo .lm-logo { max-width: 100%; height: auto; }

/* ---------- Lists ---------- */
.w-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.w-checklist li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 24px; color: var(--ink-body); }
.w-checklist .lm-icon { margin-top: 4px; color: var(--success-solid); }
.w-plainlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Facts row (turnaround, who checks, price) ---------- */
.w-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line-paper); }
.w-fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px 0 0; }

/* ---------- Steps ---------- */
.w-step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line-paper); }
.w-step__num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-body); }

/* ---------- Chips (checkboxes that look like small buttons) ---------- */
.w-chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.w-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; cursor: pointer; box-sizing: border-box; }
.w-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.w-chip:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--on-primary); }
.w-chip:has(input:focus-visible) { box-shadow: var(--focus-ring); }

/* ---------- Form parts the components do not cover ---------- */
.w-textarea-control { height: auto !important; align-items: stretch !important; padding: 10px 12px !important; }
.w-textarea-control textarea { min-height: 128px; resize: vertical; font-size: 15px !important; line-height: 22px !important; }
.w-legend { padding: 0; margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink); }

/* ---------- FAQ ---------- */
.w-faq { border-top: 1px solid var(--line-paper); }
.w-faq details { border-bottom: 1px solid var(--line-paper); }
.w-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
.w-faq details[open] summary .lm-icon { transform: rotate(180deg); }
.w-faq .w-faq__a { padding: 0 0 20px; max-width: var(--text-max); }

/* ---------- Dark band (closing call to action) ---------- */
.w-band {
  position: relative; overflow: hidden; background: var(--surface-band); color: var(--on-band);
  /* The band repeats the page's main action as a Paper button. */
  --primary: var(--brand-paper); --primary-hover: #FFFFFF; --on-primary: var(--brand-graphite); --focus-ring: var(--focus-ring-band);
}
.w-band__field { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; pointer-events: none; }
.w-band__inner { position: relative; }
.w-band .t-display, .w-band .t-h1, .w-band .t-h2, .w-band .t-h3, .w-band .t-h4 { color: var(--on-band); }
.w-band .t-body-lg, .w-band .t-body, .w-band .t-body-sm, .w-band .t-caption, .w-band .t-overline { color: var(--on-band-muted); }

/* ---------- Footer ---------- */
.w-footer { background: var(--surface-band); color: var(--on-band); border-top: 1px solid var(--band-line); }
.w-footer a { color: var(--on-band); text-decoration: none; font-size: 14px; line-height: 20px; }
.w-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.w-footer__col { display: flex; flex-direction: column; gap: 12px; }
.w-footer__title { margin: 0 0 4px; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-band-muted); }
.w-footer__muted { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-band-muted); }
.w-footer__fine { margin: 0; font-size: 12px; line-height: 16px; color: var(--on-band-muted); }

/* ---------- Sample data label ---------- */
.w-sample { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

/* ---------- Sample output cards (show the work, labeled as samples) ---------- */
.w-sample-card { box-sizing: border-box; background: var(--surface); border: 1px solid var(--line-paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px 20px 8px; display: flex; flex-direction: column; }
.w-sample-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.w-sample-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.w-media-stack { display: flex; flex-direction: column; }
.w-media-stack .w-sample-card { margin: -72px 24px 0; position: relative; }

/* ---------- On this page links ---------- */
.w-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.w-jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface); color: var(--ink); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; }
.w-jump a:hover { background: var(--surface-hover); }
.w-jump a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------- Media on the left on wide screens, text first on phones ---------- */
@media (min-width: 901px) {
  .w-media-first { order: -1; }
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 900px) {
  .w-nav { display: none; }
  .w-menu-btn { display: inline-flex; }
}
@media (max-width: 720px) {
  .w-wrap { padding: 0 16px; }
  .w-section { padding: 64px 0; }
  .w-section--sm { padding: 48px 0; }
  .t-display { font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
  .t-h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.025em; }
  .t-h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; }
  .t-h3 { font-size: 22px; line-height: 28px; letter-spacing: -0.015em; }
  .t-body-lg { font-size: 16px; line-height: 24px; }
  .w-card--pad { padding: 24px; }
  .w-header__row { height: 64px; }
  .w-hide-sm { display: none !important; }
  .w-stack-sm { flex-direction: column !important; align-items: stretch !important; }
  .w-faq summary { font-size: 16px; line-height: 24px; }
  .w-media-stack .w-sample-card { margin: -40px 12px 0; }
}

/* =====================================================================
   Website, second pass: dark sections, the hero, bento cards and motion.
   Motion: one signature move per page (the loop draws, then the coral dot
   lands), sections rise in as they scroll into view, most hover moves take 150 ms,
   and everything stops for reduced motion. Browsers without scroll-driven
   animations show every section in its final state.
   ===================================================================== */

/* ---------- Bigger type for the website ---------- */
.t-hero { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 96px; line-height: 96px; letter-spacing: -0.045em; color: var(--ink); text-wrap: balance; }
.t-statement { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 52px; line-height: 62px; letter-spacing: -0.03em; color: var(--ink); text-wrap: pretty; }
.t-figure { display: block; font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 60px; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.m-line { display: block; }
.w-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Sticky header and the dark header ---------- */
.w-sticky { position: sticky; top: 0; z-index: 50; }
.w-header--dark { background: var(--surface-band); border-bottom-color: var(--band-line-subtle);
  --primary: var(--brand-paper); --primary-hover: #FFFFFF; --on-primary: var(--brand-graphite); --focus-ring: var(--focus-ring-band); }
.w-header--dark .w-nav__link { color: var(--on-band); }
.w-header--dark .w-menu-btn { background: transparent; border-color: var(--band-line-strong); color: var(--on-band); }

/* ---------- Dark sections ---------- */
.w-dark { position: relative; background: var(--surface-band); color: var(--on-band);
  --primary: var(--brand-paper); --primary-hover: #FFFFFF; --on-primary: var(--brand-graphite); --focus-ring: var(--focus-ring-band); }
.w-dark .t-hero, .w-dark .t-display, .w-dark .t-h1, .w-dark .t-h2, .w-dark .t-h3, .w-dark .t-h4, .w-dark .t-label, .w-dark .t-statement, .w-dark .t-figure { color: var(--on-band); }
.w-dark .t-body-lg, .w-dark .t-body, .w-dark .t-body-sm, .w-dark .t-caption, .w-dark .t-overline { color: var(--on-band-muted); }
.w-dark .w-link { color: var(--on-band); }
.w-dark .lm-btn--secondary { background: transparent; border-color: var(--band-line-strong); color: var(--on-band); }
.w-dark .lm-btn--secondary:hover:not(:disabled) { background: var(--band-hover); color: var(--on-band); }
/* A white card inside a dark section keeps the light look */
.w-light { --primary: #111317; --primary-hover: #262930; --on-primary: #FFFFFF; --focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #111317; color: var(--ink); }
.w-dark .w-light .t-h4, .w-dark .w-light .t-label { color: var(--ink); }
.w-dark .w-light .t-body, .w-dark .w-light .t-body-sm, .w-dark .w-light .t-caption { color: var(--ink-body); }
.w-dark .w-light .t-overline { color: var(--ink-body); }

/* ---------- Bigger calls to action ---------- */
.w-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.w-cta .lm-btn { height: var(--control-xl); padding: 0 24px; font-size: 16px; line-height: 24px; border-radius: var(--radius-md); }
.w-cta .lm-btn .lm-icon { transition: transform .15s ease-out; }
.w-cta .lm-btn:hover .lm-icon { transform: translateX(3px); }

/* ---------- Section heads ---------- */
.w-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.w-link .lm-icon { transition: transform .15s ease-out; }
.w-link:hover .lm-icon { transform: translateX(3px); }

/* ---------- The loop field, drawn on the page ---------- */
.w-loop { display: block; overflow: visible; pointer-events: none; }
.w-loop__ring { fill: none; stroke: var(--band-line); stroke-width: 95; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 1; stroke-dashoffset: 0;
  animation: w-loop-draw 1.9s cubic-bezier(.65,0,.35,1) .25s both; }
.w-loop__dot { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 50%;
  animation: w-loop-land .8s cubic-bezier(.2,.8,.2,1) 2.05s both; }
@keyframes w-loop-draw { 0% { stroke-dashoffset: 1; opacity: 0; } 3% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes w-loop-land { 0% { transform: translateY(-90%) scale(.6); opacity: 0; } 30% { opacity: 1; } 62% { transform: translateY(5%) scale(1.04, .96); } 82% { transform: translateY(-3%) scale(1); } 100% { transform: none; opacity: 1; } }

/* ---------- Hero ---------- */
.w-hero { overflow: hidden; }
.w-hero__loop { position: absolute; z-index: 0; left: calc(100% - 869px); top: 24px; width: 860px; height: auto; }
.w-hero__inner { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 64px; }
.w-hero__head { display: flex; flex-direction: column; gap: 28px; }
.w-hero__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 48px 72px; align-items: start; }
.w-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; max-width: 520px; padding-top: 8px; }

/* ---------- Live work panel (sample data) ---------- */
.w-live { position: relative; box-sizing: border-box; background: var(--surface); border-radius: var(--radius-xl); padding: 24px 24px 20px; display: flex; flex-direction: column; }
.w-live__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; }
.w-live__now { position: relative; height: 84px; border-top: 1px solid var(--line); }
.w-live__row, .w-job { display: flex; align-items: center; gap: 14px; }
.w-live__row { padding: 14px 0; border-top: 1px solid var(--line); }
.w-live__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.w-live__icon { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--surface-paper); border: 1px solid var(--line-paper); color: var(--ink); }
.w-live__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w-live__bar { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.w-live__bar > span { display: block; height: 100%; background: var(--ink); transform-origin: left center; }
.w-live__state { position: relative; display: inline-flex; justify-content: flex-end; width: 92px; height: 22px; flex-shrink: 0; }
.w-live__run, .w-live__done { position: absolute; right: 0; top: 0; }
.w-live__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; padding: 16px 20px; border-radius: var(--radius-lg); background: var(--surface-paper); }
.w-live__hours { font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
/* Three jobs take turns in the top row: each runs for 2.8 s, then shows Done */
.w-job { position: absolute; inset: 0; opacity: 0; animation: w-job 12s linear infinite both; }
.w-job .w-live__bar > span { animation: w-bar 12s linear infinite both; }
.w-job .w-live__run { animation: w-run 12s linear infinite both; }
.w-job .w-live__done { animation: w-done 12s linear infinite both; }
.w-job .lm-icon--loop { animation: w-turn 12s linear infinite both; }
.w-job--2, .w-job--2 .w-live__bar > span, .w-job--2 .w-live__run, .w-job--2 .w-live__done, .w-job--2 .lm-icon--loop { animation-delay: 4s; }
.w-job--3, .w-job--3 .w-live__bar > span, .w-job--3 .w-live__run, .w-job--3 .w-live__done, .w-job--3 .lm-icon--loop { animation-delay: 8s; }
@keyframes w-job { 0% { opacity: 0; transform: translateY(12px); } 3% { opacity: 1; transform: none; } 30% { opacity: 1; transform: none; } 33.3% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes w-bar { 0% { transform: scaleX(0); } 23.3% { transform: scaleX(1); } 100% { transform: scaleX(1); } }
@keyframes w-run { 0%, 23% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes w-done { 0%, 23% { opacity: 0; transform: scale(.9); } 25% { opacity: 1; transform: scale(1.06); } 27%, 100% { opacity: 1; transform: none; } }
@keyframes w-turn { 0% { transform: rotate(0deg); } 23.3% { transform: rotate(720deg); } 100% { transform: rotate(720deg); } }
/* The hours count up once */
@property --w-hours { syntax: '<integer>'; inherits: false; initial-value: 126; }
.w-count { counter-reset: hours var(--w-hours); animation: w-count 2.6s cubic-bezier(.2,.7,.2,1) .9s both; }
.w-count::before { content: counter(hours); }
@keyframes w-count { from { --w-hours: 0; } to { --w-hours: 126; } }

/* ---------- Moving list of the work we take on ---------- */
.w-marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--band-line-subtle); }
.w-marquee__track { display: flex; width: max-content; animation: w-marquee 70s linear infinite; }
.w-marquee__list { display: flex; align-items: center; gap: 36px; margin: 0; padding: 22px 18px; list-style: none; }
.w-marquee__list li { display: flex; align-items: center; gap: 36px; font-family: var(--font-mono); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-band-muted); white-space: nowrap; }
.w-marquee__list li::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--band-line-strong); }
@keyframes w-marquee { to { transform: translateX(-50%); } }

/* ---------- Pillars ---------- */
.w-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px; }
.w-pillar { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink); }
.w-pillar__num { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em; color: var(--ink-body); }

/* ---------- Bento of services ---------- */
.w-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.w-bento > * { grid-column: span 6; }
.w-bento > .w-span-7 { grid-column: span 7; }
.w-bento > .w-span-5 { grid-column: span 5; }
.w-svc { box-sizing: border-box; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line-paper); border-radius: var(--radius-xl); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s ease-out; }
.w-svc:hover { border-color: var(--line-control); }
.w-svc:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.w-svc__media { position: relative; display: block; height: 340px; overflow: hidden; background: var(--surface-muted); }
.w-svc__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.w-svc:hover .w-svc__media img { transform: scale(1.04); }
.w-svc__chip { position: absolute; left: 20px; bottom: 20px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 40px); padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.w-svc:hover .w-svc__chip { transform: translateY(-4px); }
.w-svc__chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.w-svc__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 32px 32px; }
.w-svc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink); }
.w-svc__more .lm-icon { transition: transform .15s ease-out; }
.w-svc:hover .w-svc__more .lm-icon { transform: translateX(4px); }

/* ---------- Steps on a track: the coral dot moves along as you scroll ---------- */
.w-steps { display: flex; flex-direction: column; gap: 28px; }
.w-track { position: relative; height: 24px; }
.w-track__line, .w-track__fill { position: absolute; left: 0; top: 11px; height: 2px; }
.w-track__line { right: 0; background: var(--line-strong); }
.w-track__fill { width: calc(75% + 24px); background: var(--ink); transform-origin: left center; }
.w-track__node { position: absolute; top: 6px; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.w-track__dot { position: absolute; top: 2px; left: calc(75% + 20px); width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.w-track__dot--3 { left: calc(50% + 12px); }
@keyframes w-track-dot-3 { from { left: -4px; } to { left: calc(50% + 12px); } }
.w-steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.w-steps__list li { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Two columns: text and a picture or panel ---------- */
.w-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px 80px; align-items: center; }
.w-split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

/* ---------- A result, with its working ---------- */
.w-result { box-sizing: border-box; background: var(--surface); border: 1px solid var(--line-paper); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.w-result__step { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.w-result__ask { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; padding: 18px; border-radius: var(--radius-lg); background: var(--surface-paper); }

/* ---------- Microsoft products as rows ---------- */
.w-prods { list-style: none; margin: 0; padding: 0; width: 100%; display: flex; flex-direction: column; }
.w-prod { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--band-line); color: var(--on-band); text-decoration: none; }
.w-prods li:last-child .w-prod { border-bottom: 1px solid var(--band-line); }
.w-prod__icon { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md); background: var(--band-raised); border: 1px solid var(--band-line); color: var(--on-band); }
.w-prod__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.w-prod__name { font-size: 16px; line-height: 24px; font-weight: 500; color: var(--on-band); }
.w-prod__note { font-size: 14px; line-height: 20px; color: var(--on-band-muted); }
.w-prod__arrow { color: var(--on-band-muted); transition: transform .15s ease-out, color .15s ease-out; }
.w-prod:hover .w-prod__arrow { transform: translateX(4px); color: var(--on-band); }
.w-prod:focus-visible { outline: none; box-shadow: var(--focus-ring-band); border-radius: 4px; }

/* ---------- A photo with a card on it ---------- */
.w-photo { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--band-raised); }
.w-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.w-photo__card { position: absolute; left: 24px; right: 24px; bottom: 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--surface); }
.w-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.w-phase { display: flex; flex-direction: column; gap: 8px; }
.w-phase__bar { display: block; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.w-phase__bar > span { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left center; }
.w-phase__bar--now > span { width: 62%; }
.w-phase__bar--next > span { width: 0; }

/* ---------- Figures ---------- */
.w-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.w-figure { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 0 0; }
.w-figure + .w-figure { padding-left: 28px; border-left: 1px solid var(--line-paper); }

/* ---------- Team photo with a Paper panel ---------- */
.w-team { position: relative; }
.w-team__photo { overflow: hidden; border-radius: var(--radius-xl); }
.w-team__photo > img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.w-team__card { position: relative; box-sizing: border-box; max-width: 560px; margin: -136px 0 0 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px; border-radius: var(--radius-lg); background: var(--surface-paper); }

/* ---------- Closing band ---------- */
.w-closing__inner { padding-top: 144px; padding-bottom: 144px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.w-drop { display: inline-block; color: var(--accent); }

/* ---------- Footer mark ---------- */
.w-footer__mark { padding-top: 8px; }
.w-footer__mark .lm-logo { display: block; width: 100%; max-width: 640px; height: auto; }

/* ---------- Page hero (the inside pages) ---------- */
.w-hero--page .w-hero__inner { padding-top: 88px; padding-bottom: 104px; gap: 0; }
.w-hero--page .w-hero__loop { left: calc(100% - 760px); top: 40px; width: 760px; }
.t-hero--page { font-size: 80px; line-height: 84px; letter-spacing: -0.042em; }
.w-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px 72px; align-items: center; }
.w-hero__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
/* The picture or panel beside a page title starts below the loop's coral dot */
.w-hero__visual { margin-top: 184px; }
@media (max-width: 1055px) { .w-hero__visual { margin-top: 0; } }
.w-jump--dark a { background: transparent; border-color: var(--band-line-strong); color: var(--on-band); }
.w-jump--dark a:hover { background: var(--band-hover); }
.w-jump--dark a:focus-visible { box-shadow: var(--focus-ring-band); }

/* ---------- Photo that zooms out as it scrolls in ---------- */
.w-zoom { position: relative; overflow: hidden; border-radius: var(--radius-xl); background: var(--surface-muted); }
.w-zoom > img { display: block; width: 100%; height: auto; object-fit: cover; }
.w-banner { overflow: hidden; border-radius: var(--radius-xl); }
.w-banner > img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }

/* ---------- Cards that answer to the pointer ---------- */
.w-card--hover { transition: border-color .15s ease-out; }
.w-card--hover:hover { border-color: var(--line-control); }
.w-card .w-icon-tile, .w-pillar .w-icon-tile { margin-bottom: 4px; }
.w-panel { border-radius: var(--radius-xl); padding: 56px; overflow: hidden; }
.w-panel .w-icon-tile, .w-dark .w-icon-tile { background: var(--band-raised); border-color: var(--band-line); color: var(--on-band); }
.w-dark .w-light .w-icon-tile, .w-dark .w-light .w-live__icon { background: var(--surface-paper); border-color: var(--line-paper); color: var(--ink); }
.w-dark .w-checklist li { color: var(--on-band-muted); }
.w-dark .w-checklist .lm-icon { color: var(--on-band); }
.w-dark .w-rule { border-top-color: var(--band-line); }
.w-dark-card { box-sizing: border-box; background: var(--surface-band); color: var(--on-band); border: 1px solid var(--surface-band); border-radius: var(--radius-xl);
  --primary: var(--brand-paper); --primary-hover: #FFFFFF; --on-primary: var(--brand-graphite); --focus-ring: var(--focus-ring-band); }
.w-dark-card .t-h3, .w-dark-card .t-h4, .w-dark-card .t-label, .w-dark-card .t-figure { color: var(--on-band); }
.w-dark-card .t-body, .w-dark-card .t-body-sm, .w-dark-card .t-overline { color: var(--on-band-muted); }
.w-dark-card .w-link { color: var(--on-band); }
.w-dark-card .w-checklist li { color: var(--on-band-muted); }
.w-dark-card .w-checklist .lm-icon { color: var(--on-band); }
.w-dark-card .w-rule { border-top-color: var(--band-line); }
.w-dark-card .w-icon-tile { background: var(--band-raised); border-color: var(--band-line); color: var(--on-band); }

/* ---------- Rows that open a page (roles, links) ---------- */
.w-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-paper); }
.w-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 24px 8px; margin: 0 -8px; border-bottom: 1px solid var(--line-paper); color: var(--ink); text-decoration: none; border-radius: var(--radius-md); transition: background .15s ease-out; }
.w-row:hover { background: var(--surface-hover); }
.w-row:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.w-row__main { flex: 999 1 360px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-row__go { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; line-height: 24px; font-weight: 500; }
.w-row__go .lm-icon { transition: transform .15s ease-out; }
.w-row:hover .w-row__go .lm-icon { transform: translateX(4px); }

/* ---------- Steps down the page: each line fills as the next step scrolls in, the coral dot lands on the last ---------- */
.w-vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.w-vsteps > li { position: relative; display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 40px 0 40px 56px; border-top: 1px solid var(--line-paper); }
.w-vsteps > li:last-child { border-bottom: 1px solid var(--line-paper); }
.w-vsteps__seg, .w-vsteps__track { position: absolute; left: 11px; top: 52px; width: 2px; height: 100%; }
.w-vsteps__track { background: var(--line-strong); }
.w-vsteps__seg { background: var(--ink); transform-origin: center top; }
.w-vsteps > li:last-child .w-vsteps__seg, .w-vsteps > li:last-child .w-vsteps__track { display: none; }
.w-vsteps__node { position: absolute; left: 6px; top: 46px; box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-paper); border: 2px solid var(--ink); }
.w-vsteps__node--end { left: 2px; top: 42px; width: 20px; height: 20px; border: 0; background: var(--accent); }
@keyframes w-seg { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes w-node-land { 0% { transform: scale(0); } 70% { transform: scale(1.18); } 100% { transform: none; } }

/* ---------- The open o: the dot lands when the panel scrolls in ---------- */
.w-open-o .lm-logo__dot { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes w-o-land { 0% { transform: translateY(-160%); opacity: 0; } 40% { opacity: 1; } 70% { transform: translateY(8%); } 85% { transform: translateY(-4%); } 100% { transform: none; opacity: 1; } }

/* ---------- Contact on a dark ground ---------- */
.w-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px 72px; align-items: start; }
.w-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.w-contact__list li { display: flex; align-items: flex-start; gap: 14px; color: var(--on-band); }

/* ---------- Motion: page load ---------- */
@keyframes m-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.m-load { animation: m-rise 1s cubic-bezier(.2,.7,.2,1) both; }
.m-d1 { animation-delay: .1s; } .m-d2 { animation-delay: .2s; } .m-d3 { animation-delay: .45s; } .m-d4 { animation-delay: .7s; } .m-d5 { animation-delay: .9s; }

/* ---------- Motion: scroll ---------- */
.m-fill { background-image: linear-gradient(90deg, var(--ink) 50%, var(--statement-pending) 50%); background-size: 200% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes m-fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes m-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes w-track-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes w-track-dot { from { left: -4px; } to { left: calc(75% + 20px); } }
@keyframes w-phase-now { from { width: 0; } to { width: 62%; } }
@keyframes w-drop { 0% { transform: translateY(-1.2em); opacity: 0; } 50% { opacity: 1; } 80% { transform: translateY(.06em); } 100% { transform: none; opacity: 1; } }
@supports (animation-timeline: view()) {
  /* Every range ends when the element (or its section) has fully entered the view,
     so a page shown at full height, as on the canvas, is always in its final state. */
  .m-tl { view-timeline-name: --sec; }
  .w-photo { view-timeline-name: --photo; }
  .m-rv { animation: m-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
  .m-rv-2 { animation-range: entry 8% entry 83%; }
  .m-rv-3 { animation-range: entry 16% entry 91%; }
  .m-rv-4 { animation-range: entry 24% entry 99%; }
  .m-fill { animation: m-fill linear both; animation-timeline: --sec; animation-range: entry 25% entry 100%; }
  .m-zoom { animation: m-zoom linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .w-track__fill { animation: w-track-fill linear both; animation-timeline: --sec; animation-range: entry 35% entry 100%; }
  .w-track__dot { animation: w-track-dot linear both; animation-timeline: --sec; animation-range: entry 35% entry 100%; }
  .w-track__dot--3 { animation-name: w-track-dot-3; }
  .w-phase__bar--now > span { animation: w-phase-now linear both; animation-timeline: --photo; animation-range: entry 40% entry 100%; }
  .w-drop { animation: w-drop linear both; animation-timeline: --sec; animation-range: entry 55% entry 100%; }
  .w-vsteps__seg { animation: w-seg linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .w-vsteps__node--end { animation: w-node-land linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
  .w-open-o .lm-logo__dot { animation: w-o-land linear both; animation-timeline: --sec; animation-range: entry 40% entry 100%; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 1100px) {
  .t-hero { font-size: 72px; line-height: 74px; }
  .t-hero--page { font-size: 64px; line-height: 68px; }
  .w-hero--page .w-hero__loop { left: calc(100% - 560px); width: 560px; }
  .w-hero__loop { left: calc(100% - 662px); top: 24px; width: 640px; }
}
@media (max-width: 900px) {
  .w-bento > *, .w-bento > .w-span-7, .w-bento > .w-span-5 { grid-column: 1 / -1; }
  .w-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-track { display: none; }
  .w-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-figure:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .t-hero { font-size: 46px; line-height: 50px; letter-spacing: -0.035em; }
  .t-hero--page { font-size: 42px; line-height: 46px; }
  .w-hero--page .w-hero__inner { padding-top: 56px; padding-bottom: 64px; }
  .w-hero--page .w-hero__loop { left: calc(100% - 254px); top: 4px; width: 260px; }
  .w-panel { padding: 28px 20px; }
  .w-vsteps > li { padding-left: 40px; }
  .w-row { padding: 20px 8px; }
  .t-statement { font-size: 30px; line-height: 38px; letter-spacing: -0.02em; }
  .t-figure { font-size: 44px; line-height: 48px; }
  .w-hero__loop { left: calc(100% - 254px); top: 48px; width: 260px; }
  .w-hero__inner { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .w-live { padding: 18px 16px 16px; }
  .w-live__now { height: 108px; }
  .w-live__state { width: 84px; }
  .w-live__hours { font-size: 30px; line-height: 34px; }
  .w-svc__media { height: 220px; }
  .w-svc__body { padding: 22px 20px 24px; }
  .w-steps__list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .w-steps__list li { padding: 24px 0; border-top: 1px solid var(--line-paper); }
  .w-figures { grid-template-columns: minmax(0, 1fr); }
  .w-figure, .w-figure + .w-figure { padding: 24px 0; border-left: 0; }
  .w-figure + .w-figure { border-top: 1px solid var(--line-paper); }
  .w-team__photo > img { aspect-ratio: 4 / 3; }
  .w-team__card { max-width: none; margin: -40px 12px 0; padding: 24px; }
  .w-closing__inner { padding-top: 96px; padding-bottom: 96px; }
  .w-cta .lm-btn { height: 48px; padding: 0 20px; }
  .w-photo__card { left: 12px; right: 12px; bottom: 12px; }
}

/* ---------- Touch: on phones, tablets and touch screens nothing you tap is smaller than touch-min (44 px) ---------- */
@media (max-width: 900px), (pointer: coarse) {
  .lm-btn, .lm-field__control, .w-chip, .w-jump a { min-height: var(--touch-min); }
  .w-logo-link { padding: 9px 0; }
  .w-nav__link { padding: 12px 0; }
  .w-link { padding: 10px 0; margin: -10px 0; }
  .w-footer a:not(.w-logo-link) { padding: 12px 0; margin: -12px 0; }
  .w-footer .w-logo-link { padding: 9px 0 !important; margin: -9px 0; }
}

/* ---------- Reduced motion: show the end state at once ---------- */
@media (prefers-reduced-motion: reduce) {
  .w-loop__ring, .w-loop__dot, .m-load, .m-rv, .m-fill, .m-zoom, .w-count, .w-marquee__track,
  .w-track__fill, .w-track__dot, .w-phase__bar--now > span, .w-drop,
  .w-job, .w-job .w-live__bar > span, .w-job .w-live__run, .w-job .w-live__done, .w-job .lm-icon--loop { animation: none !important; }
  .w-vsteps__seg, .w-vsteps__node--end, .w-open-o .lm-logo__dot { animation: none !important; }
  .w-job--1 { opacity: 1; } .w-job .w-live__run { opacity: 0; }
}
