/* Components for index.html, linked after tokens.css. Each block styles one .c-* component; the page
   places it. Type comes from the role classes (.h .l .b) and #fos-type, so components set no type.
   Media queries spell out the breakpoint names listed in tokens.css. */

/* ============ c-nav: header navigation ============ */
nav.c-nav{grid-column:8/15;display:flex;gap:calc(130 * var(--u));color:var(--ink)}
nav.c-nav>*{white-space:nowrap}
nav.c-nav a{position:relative;text-wrap:balance}
nav.c-nav a:hover,nav.c-nav a[aria-current="page"]{color:var(--ink)!important}
nav.c-nav a:focus,nav.c-nav a:focus-visible{outline:none!important;box-shadow:none!important}
nav.c-nav .soon{cursor:default;color:var(--soon)!important}
nav.c-nav .gs{margin-left:auto}
header.top nav.c-nav{align-self:center!important;margin-top:calc(var(--fs-b) * .14)!important}@supports (text-box:trim-both cap alphabetic){header.top nav.c-nav>:not(.gs){position:relative;top:calc(var(--fs-b) * -.07);padding-top:calc((var(--tl-b) - 1cap) / 2);text-box:trim-both cap alphabetic}}
@media (max-width:1023px){nav.c-nav{display:none}}
@media (min-width:768px){header.top nav.c-nav{grid-column:var(--c-body)/-1!important}}
@media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px){header.top nav.c-nav{grid-column:10/-1!important}}
/* entrance: the links rise one after another, after the mark */
header.top nav.c-nav.l-rv,body.ready header.top nav.c-nav.l-rv{opacity:1;transform:none;transition:none}
header.top nav.c-nav>*{opacity:0;transform:translateY(var(--lift));--nav-i:0}
header.top nav.c-nav>:nth-child(2){--nav-i:1}
header.top nav.c-nav>:nth-child(3){--nav-i:2}
header.top nav.c-nav>:nth-child(4){--nav-i:3}
header.top nav.c-nav>:nth-child(5){--nav-i:4}
body.ready header.top nav.c-nav>*{opacity:1;transform:none;transition:opacity var(--t-text) var(--ease),transform var(--t-text) var(--ease);transition-delay:calc(var(--enter-delay) + var(--nav-i) * var(--enter-step))}
@media (prefers-reduced-motion:reduce){header.top nav.c-nav>*{transform:none!important;transition-delay:0ms!important}}

/* ============ c-btn: call to action ============
   A text link on the body role (with .b); its colour and hover underline are tokens.css's text colour roles. .soon marks one not open yet.
   c-btn--primary is the page's main call to action: it fades in with its headline instead of rising. */
.c-btn{display:inline-block}
.c-btn:not(.soon){position:relative}
/* a.c-btn colour and hover underline: tokens.css text colour roles */
a.c-btn:hover{color:var(--ink)!important}
.c-btn.soon{cursor:default;color:var(--soon)!important}

/* ============ c-heading: section heading ============
   On the lead role (with .l). Above its section on phones; from 768 in the title column beside it. */
.c-heading{grid-column:1/-1}
@media (min-width:768px){.sec>.c-heading{grid-column:var(--c-title)/var(--c-body)!important;grid-row:2!important;padding-inline-end:var(--gut)}}

/* ============ c-logo-text: names set in the site type where logos would go ============ */
.c-logo-text{display:block;color:var(--text)}

/* ============ c-card: artwork, title, text and link, three up in .cards2 ============ */
.cards2{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--gut)}
.c-card .img{aspect-ratio:1858/1045}
.c-card .img [data-fg]{aspect-ratio:auto;width:100%;height:100%}
.c-card .meta{display:grid;grid-template-columns:minmax(0,1fr);gap:calc(var(--line) * .5) var(--gut);margin-top:calc(var(--line) * .75)}
.c-card .meta .l,.c-card .meta .bc{grid-column:1/-1;max-width:none}
/* the copy keeps an inset; the artwork fills the card */
.c-card .meta .bc{padding-inline-end:var(--line)}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  .cards2{grid-template-columns:1fr;row-gap:calc(var(--line) * 2)}
  .c-card .img{aspect-ratio:366/195}
  .c-card .meta{margin-top:calc(var(--line) * .5)}
}
@media (max-width:767px){
  .c-card .meta .bc{padding-inline-end:calc(var(--line) * .5)}
}
@media (min-width:768px){
  .c-card .meta .l{padding-inline-end:var(--line)}
  .cards2{grid-column:var(--c-body)/var(--c-wide-end)!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .c-card{grid-column:auto!important}
}

/* ============ c-case: case-study slideshow ============
   Photos in .frame, 16:9 and cropped to fill; one caption unit per case (.cs: result and logo) in
   .cap. /os lays the units out in the os-handoff layer below. */
.c-case{grid-column:1/-1}
.frame{position:relative;aspect-ratio:16/9;overflow:hidden;background:var(--ph);cursor:pointer}
.frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity var(--dur-fade) var(--ease-fade)}
.frame img.on{opacity:1}
/* the page reveal delays the photo's entrance zoom; its crossfade starts with the caption */
@media (prefers-reduced-motion:no-preference){.go .c-case .frame img{transition-delay:var(--d,0ms),0ms!important}}
.cap{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));column-gap:var(--gut);row-gap:calc(var(--line) * .5);margin-top:calc(var(--line) * .75);align-items:start}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){
  .cap{margin-top:calc(var(--line) * .5)}
}
.c-case .cap,.c-case .cap *{line-height:1.25!important}

/* ============ c-gui-stage: the app as a window on the page ============
   Live's window. It crops the capture to its top 600 rows. The stage pads for the shadow.
   os-gui.png is the video's last frame, so it is the poster and all that
   shows under reduced motion. */
.c-gui-stage{--bleed:var(--gui-bleed);grid-column:1/-1;margin:calc(var(--section-gap) - var(--bleed)) calc(var(--bleed) * -1) 0;padding:var(--bleed) var(--bleed) 0}
.gui{position:relative;width:100%;max-width:var(--gui-max);margin-inline:auto;aspect-ratio:1440/600;overflow:hidden;border:var(--gui-hair) solid var(--rule);border-radius:var(--gui-r);background:var(--paper);box-shadow:var(--gui-shadow)}
.gui img,.gui video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:left top}
@media (prefers-reduced-motion:reduce){.gui video{display:none}}

.c-gui-stage--story{
  --g0:calc(2 * var(--section-gap));
  --cw:calc(100cqw - 2 * var(--gui-line)); --sr:calc(var(--gui-r) - var(--gui-line));
  position:relative; width:var(--cw); height:calc(var(--cw) * var(--gui-a));
  margin:var(--g0) auto 0; padding:0; -webkit-mask-image:none; mask-image:none; pointer-events:none; visibility:hidden}
@media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px){.c-gui-stage--story{--g0:calc(var(--os-gap,-2) * -1vh + 2 * var(--section-gap))}}
html.still-in .c-gui-stage--story{visibility:visible}
.c-gui-stage--story::after{content:""; position:absolute; inset:0; outline:var(--gui-hair) solid var(--rule); border-radius:var(--sr); box-shadow:var(--gui-shadow)}
.c-gui-stage--story .gui{position:absolute; inset:0; width:auto; max-width:none; aspect-ratio:auto; border:0; border-radius:var(--sr); box-shadow:none}
.c-gui-stage--story .gui video{bottom:auto; height:auto}
/* WEB-85: the capture paints a tight OS; the page lockup covers those letters */
.c-gui-stage--story .gui > .gui-lockup{position:absolute;inset:0;width:100%;height:100%;display:block;pointer-events:none;z-index:1}

@layer os-handoff {
  [data-page="os"]:not([data-start-line]) :is(.op1,.os-window),

  [data-page="os"]:not([data-start-line]) :is(.how-sec,.origin-sec,.acc-sec),
  html:has([data-page="os"].on:not([data-start-line])) :is(header.top, footer) {
    padding-inline:var(--gutter)!important;
  }
  [data-page="os"]:not([data-start-line]) .op1 {
    padding-top:calc(var(--navH) + 4 * var(--line))!important;
    grid-template-columns:repeat(24,minmax(0,1fr))!important;
  }
  [data-page="os"]:not([data-start-line]) .op1 :is(.os-lockup,.op-lead,.op-copy) {
    justify-self:stretch!important;
    margin-inline:0!important;
    text-align:left!important;
  }
  [data-page="os"]:not([data-start-line]) .op1 .os-lockup {
    grid-column:1/-1!important;
    width:calc(var(--fs-l) * 12)!important;
  }
  /* the OS type scale (tokens.css) for /os, /about and /careers (heading, body and small, small on its 13/17 line (WEB-135); the subheading reads --os-fs-sub), their footers and the phone menu on all four (Linear's menu size, WEB-197); spacing keeps :root's --line. The footer's row keeps the --os-tl-s it was laid out on: a grid row, so the phone footer's flex row is untouched. Home's footer text takes the scale on its own lines while the row keeps the site's one line, so the one-screen home keeps its footer box and headline (WEB-197) */
  :is([data-page="os"]:not([data-start-line]),[data-page="about"],[data-page="careers"]),html:has(:is([data-page="os"]:not([data-start-line]),[data-page="about"],[data-page="careers"]).on) footer,html:has([data-page="home"].on) footer .fgrid > * {
    --fs-h:var(--os-fs-head); --tl-h:var(--os-tl-head); --fs-b:var(--os-fs-b); --fs-m:var(--os-fs-b); --tl-b:var(--os-tl-b); --fs-s:var(--os-fs-s); --tl-s:var(--os-tl-s-ui); --tl-s-ui:var(--os-tl-s-ui); } html:has(:is([data-page="os"]:not([data-start-line]),[data-page="about"],[data-page="careers"]).on) footer .fgrid { grid-auto-rows:minmax(var(--os-tl-s),auto); } html:has([data-page="home"].on) footer .fgrid { height:1lh; }
  html:has(:is([data-page="os"]:not([data-start-line]),[data-page="home"],[data-page="about"],[data-page="careers"]).on) .sheet .links a { font-size:var(--os-fs-menu)!important; line-height:var(--os-tl-menu)!important; }
  [data-page="os"]:not([data-start-line]) .op-lead,
  [data-page="os"]:not([data-start-line]) :is(.how-sec > h2,.origin-h),[data-page="about"] .sec > h2.c-heading {
    font-size:var(--os-fs-head)!important; line-height:var(--os-tl-head)!important;
    letter-spacing:var(--h-tr)!important; font-weight:var(--h-w)!important; text-wrap:balance;
  }
  [data-page="os"]:not([data-start-line]) .op1 .op-lead {
    grid-column:1/21!important;
    max-width:calc(var(--em-d) * 16)!important;
    margin-top:var(--line)!important;
  }
  [data-page="os"]:not([data-start-line]) .op1 .op-copy {
    grid-column:1/-1!important;
    grid-row:3!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:var(--line)!important;
    max-width:none!important;
    width:100%!important;
    margin-top:calc(var(--line) * 1.5)!important;
  }
  [data-page="os"]:not([data-start-line]) .op-runs {
    display:flex!important;
    flex-wrap:wrap;
    align-items:center;
    gap:var(--em-b);
    color:var(--text);
  }
  [data-page="os"]:not([data-start-line]) .op-runs .rl.has {
    margin:0!important;
    gap:calc(var(--em-b) * .4);
    color:var(--text);
  }
  [data-page="os"]:not([data-start-line]) .op-runs .rl.has .nm {
    position:static!important;
    width:auto!important;
    height:auto!important;
    overflow:visible!important;
    clip:auto!important;
  }
  [data-page="os"]:not([data-start-line]) .op-copy .c-btn {
    margin:0!important;
    color:var(--ink)!important;
    padding:.8em calc(var(--em-b) * 1.1);
    border:var(--stroke) solid var(--ink);
    white-space:nowrap;
  }
  [data-page="os"]:not([data-start-line]) .op-copy .c-btn:hover {
    background:var(--ink);
    color:var(--paper)!important;
  }
  [data-page="os"]:not([data-start-line]) .op-copy .c-btn:focus-visible {
    outline:var(--focus-w) solid var(--ink);
    outline-offset:var(--focus-off);
  }
  [data-page="os"]:not([data-start-line]) .os-window {
    --win-lead:calc(var(--line) * 2);
    --win-fade:.62;
    --win-half:.76;
    --win-gone:.92;
    position:relative;
    margin-top:0!important;
    /* masked here, not on the stage, because a mask clips to its own box and the stage's outline and shadow paint outside it */
    mask-image:linear-gradient(to bottom,var(--ink) calc(var(--win-fade) * 100% + (1 - var(--win-fade)) * var(--win-lead)),color-mix(in srgb,var(--ink) 45%,transparent) calc(var(--win-half) * 100% + (1 - var(--win-half)) * var(--win-lead)),transparent calc(var(--win-gone) * 100% + (1 - var(--win-gone)) * var(--win-lead)));
    -webkit-mask-image:linear-gradient(to bottom,var(--ink) calc(var(--win-fade) * 100% + (1 - var(--win-fade)) * var(--win-lead)),color-mix(in srgb,var(--ink) 45%,transparent) calc(var(--win-half) * 100% + (1 - var(--win-half)) * var(--win-lead)),transparent calc(var(--win-gone) * 100% + (1 - var(--win-gone)) * var(--win-lead)));
  }
  [data-page="os"]:not([data-start-line]) .c-gui-stage--story {
    margin-top:var(--win-lead)!important;
  }
  [data-page="os"]:not([data-start-line]) .c-gui-stage--story .gui::after {
    content:"";
    position:absolute;
    inset:calc(var(--win-fade) * 100%) 0 0;
    pointer-events:none;
    backdrop-filter:blur(var(--blur-glass));
    -webkit-backdrop-filter:blur(var(--blur-glass));
    mask-image:linear-gradient(to bottom,transparent,var(--ink) 45%);
    -webkit-mask-image:linear-gradient(to bottom,transparent,var(--ink) 45%);
  }
  /* WEB-144: the section after the hero window starts one section gap below the window's half-faded line; .76 and .9
     are the window's --win-half (wide, compact), which this sibling cannot read */

  @media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px) {
    [data-page="os"]:not([data-start-line]) .os-window + .wrap.sec {
      margin-top:calc(var(--hm-sec-gap) - (1 - .76) * (100vw - 2 * var(--gutter) - 2 * var(--gui-line)) * var(--gui-a))!important;
    }
  }
  @media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px) {
    [data-page="os"]:not([data-start-line]) .os-window + .wrap.sec {
      margin-top:calc(var(--sec) - (1 - .9) * (100vw - 2 * var(--v4-gutter) - 2 * var(--gui-line)) * var(--gui-a))!important;
    }
  }











































  @media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px) {
    [data-page="os"]:not([data-start-line]) .op1 {
      padding-top:calc(var(--navH) + var(--line) * 2)!important;
      grid-template-columns:repeat(8,minmax(0,1fr))!important;
    }
    [data-page="os"]:not([data-start-line]) .op1 .os-lockup { width:calc(var(--fs-l) * 11)!important; }
    [data-page="os"]:not([data-start-line]) .op1 .op-lead { grid-column:1/-1!important; }
    [data-page="os"]:not([data-start-line]) .op1 .op-copy {
      flex-direction:column!important;
      align-items:stretch!important;
      gap:var(--line)!important;
    }
    [data-page="os"]:not([data-start-line]) .op-runs { justify-content:space-between; gap:calc(var(--em-b) * .5); }
    [data-page="os"]:not([data-start-line]) .op-copy .c-btn { text-align:center; }





























  }

  /* How it works and Built by operators (WEB-19) join the column and heading rules above and take the shared
     section spacing; How it works keeps its three columns.
     Nothing here sizes .how-stage itself: its box is WEB-11/12's. */
  [data-page="os"]:not([data-start-line]) :is(.how-sec,.origin-sec) > .rule { display:none!important; }
  [data-page="os"]:not([data-start-line]) :is(.how-sec > h2,.origin-h) {
    grid-column:1/-1!important;
    grid-row:1!important;
    margin:0!important;
    padding:var(--line) 0!important;
  }
  [data-page="os"]:not([data-start-line]) .how-sec > h2 { position:static!important; background:none!important; }

  [data-page="os"]:not([data-start-line]) .how-sec .how-layers { grid-row:2!important; margin-top:0!important; }
  [data-page="os"]:not([data-start-line]) .how-sec .how-layers h3,
  [data-page="os"]:not([data-start-line]) .origin-case .cs span {
    font-size:var(--fs-b)!important;
    line-height:var(--tl-b)!important;
    letter-spacing:var(--b-tr)!important;
    font-weight:var(--b-w)!important;
  }
  [data-page="os"]:not([data-start-line]) .how-sec .how-layers h3 { margin:0!important; }
  /* row 1, so the section's gap (::after, auto-placed) still lands below it now that the rule is gone */
  [data-page="os"]:not([data-start-line]) .origin-sec > .origin-case { grid-row:1!important; }
  /* one track, so the case reaches the page gutters even where :is(.how-sec,.origin-sec) rebuilds the tracks (WEB-35); :has() outranks it */
  [data-page="os"]:not([data-start-line]) .origin-sec:has(> .origin-case) { grid-template-columns:minmax(0,1fr)!important; }
  [data-page="os"]:not([data-start-line]) .origin-case .origin { margin-top:0!important; }
  /* clicks pass through the caption, so the whole photo advances the slideshow; the photo is 16:9 unless the caption needs more height */
  [data-page="os"]:not([data-start-line]) .origin-case .origin-rail { display:contents!important; }
  [data-page="os"]:not([data-start-line]) .origin-case > .frame { grid-row:2!important; margin:0!important; place-self:stretch!important; }
  [data-page="os"]:not([data-start-line]) .origin-case > .cap {
    position:relative;
    z-index:var(--z-raise);
    grid-row:2!important;
    align-self:end!important;
    grid-template-columns:minmax(0,1fr)!important;
    margin:0!important;
    padding:calc(var(--line) * 2.5) var(--line) var(--line)!important;
    background:linear-gradient(to top,color-mix(in srgb,var(--ink) 78%,transparent),color-mix(in srgb,var(--ink) 60%,transparent) 50%,color-mix(in srgb,var(--ink) 28%,transparent) 78%,transparent);
    pointer-events:none;
  }
  /* one unit per case, all in one cell, so the caption keeps the tallest one's height; each rests on the bottom edge.
     The result and the logo share one row, result left, logo right, aligned to the bottom. */
  [data-page="os"]:not([data-start-line]) .origin-case .cs {
    grid-area:1/1;
    align-self:end;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:end;
    column-gap:var(--line);
    opacity:0;
    transition:opacity calc(var(--dur-fade) / 2) var(--ease-fade);
  }
  [data-page="os"]:not([data-start-line]) .origin-case .cs.on { opacity:1; transition-delay:calc(var(--dur-fade) / 2); }
  [data-page="os"]:not([data-start-line]) .origin-case .cs span { display:block; color:var(--paper)!important; }
  [data-page="os"]:not([data-start-line]) .origin-case .cs span { white-space:pre-line; text-wrap:balance; }
  /* each mark carries the TLBG mark's ink, so its height factor is the square root of the ink ratio */
  [data-page="os"]:not([data-start-line]) .origin-case .cs > img { width:auto; height:calc(var(--line) * 2 * var(--logo-k, 1)); }
  [data-page="os"]:not([data-start-line]) .origin-case .cs > img[src$="/tanjong-beach-club-white.png"] { --logo-k:.25; }
  [data-page="os"]:not([data-start-line]) .origin-case .cs > img[src$="/fico-white.png"] { --logo-k:.44; }
  [data-page="os"]:not([data-start-line]) .origin-case > .dots { grid-column:1/-1!important; display:flex; justify-content:center; }
  [data-page="os"]:not([data-start-line]) .origin-case .dots > button {
    box-sizing:border-box;
    width:24px;
    height:24px;
    margin:0;
    padding:8px;
    border:0;
    border-radius:50%;
    background:var(--grey) content-box;
    cursor:pointer;
    -webkit-appearance:none;
    appearance:none;
  }
  [data-page="os"]:not([data-start-line]) .origin-case .dots > [aria-current="true"] { background-color:var(--ink); }
  [data-page="os"]:not([data-start-line]) .origin-case .dots > button:focus-visible { outline:var(--focus-w) solid var(--ink)!important; }
  /* the photo, its caption and the dots sit on the paragraph column at every width; .origin-sec outranks the art margins of WEB-35 */
  [data-page="os"]:not([data-start-line]) .origin-sec > .origin-case > :is(.frame,.cap,.dots) { margin-inline:0!important; }
  @media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px) {
    [data-page="os"]:not([data-start-line]) .how-sec > h2 { grid-column:1/17!important; }
    [data-page="os"]:not([data-start-line]) .how-sec .how-layers {
      grid-column:1/-1!important;
      column-gap:calc(var(--gut) * 4)!important;
    }
    [data-page="os"]:not([data-start-line]) .origin-case {
      grid-template-columns:repeat(var(--cols),minmax(0,1fr))!important;
      column-gap:var(--gut)!important;
    }
    [data-page="os"]:not([data-start-line]) .origin-case .origin-h { grid-column:var(--c-title)/var(--c-body)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case :is(.bc.origin,.frame,.cap,.dots) { grid-column:var(--c-body)/var(--c-wide-end)!important; }
    /* the heading is padded a line at the top, so the story is too and their first lines start level */
    [data-page="os"]:not([data-start-line]) .origin-case .bc.origin { grid-row:1!important; padding-top:var(--line)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .frame { margin-top:var(--line)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .dots { grid-row:3!important; margin-top:calc(var(--line) * .5); }
  }
  @media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px) {
    [data-page="os"]:not([data-start-line]) .origin-case :is(.frame,.cap,.bc.origin) { grid-column:1/-1!important; }
    [data-page="os"]:not([data-start-line]) .origin-case .bc.origin { grid-row:2!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > :is(.frame,.cap) { grid-row:3!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .frame { margin-top:var(--line)!important; }
    /* no ratio rule here: phones keep the component's 16:9 frame; the wide photos keep about 80% of their area,
       the others about 90% */
    [data-page="os"]:not([data-start-line]) .origin-case > .cap { padding:calc(var(--line) * 2) calc(var(--line) * .75) calc(var(--line) * .75)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case .cs span { font-size:calc(var(--fs-b) * .9)!important; line-height:calc(var(--tl-b) * .9)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case .cs > img { height:calc(var(--line) * 1.6 * var(--logo-k, 1)); }
    [data-page="os"]:not([data-start-line]) .origin-case > .dots { grid-row:4!important; margin-top:calc(var(--line) * .25); }
  }
}

/* ============ WEB-82: the operators heading stacks on top of the story and stays pinned ============
   On wide screens the heading, story, photo and dots share the page gutter as one left edge. From 500 tall
   the heading stays pinned under the nav until the case ends. */
@layer os-handoff {
  @media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px) {
    [data-page="os"]:not([data-start-line]) .origin-case {
      grid-template-columns:repeat(var(--cols),minmax(0,1fr))!important;
      grid-template-rows:none!important;
      column-gap:var(--gut)!important;
    }
    /* lines 1 to 16: the 15 tracks from --c-body to --c-wide-end, moved to start on the title column */
    [data-page="os"]:not([data-start-line]) .origin-case :is(.origin-h,.bc.origin,.frame,.cap,.dots) { grid-column:1/16!important; }
    [data-page="os"]:not([data-start-line]) .origin-case .bc.origin { grid-row:2!important; padding-top:0!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > :is(.frame,.cap) { grid-row:3!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .frame { aspect-ratio:16/9!important; margin-top:var(--line)!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .dots { grid-row:4!important; }
  }

  @media (min-height:500px) {













    /* !important because index.html's unlayered reveal and reduced-motion rules set clip-path:none!important here */
    [data-page="os"]:not([data-start-line]) .origin-case :is(.bc.origin,.frame,.cap,.dots) {
      clip-path:inset(var(--origin-cut) 0 0 0)!important;
    }
  }
}

/* ============ WEB-42 v4 prototype: a calmer phone /os hero ============
   Compact screens: "Works with" and the three logos close into one left-aligned cluster with smaller marks, and
   "Schedule a conversation" keeps the wide screens' bordered button: beside the cluster when the row has room
   (portrait tablets), under it on phones. The row has no rule above it, and its label, names and logos are --grey,
   at every width. The window's fade is shorter. The hero's copy takes WEB-30's
   phone body type and WEB-35's phone gutter (tokens.css, --v4-*); its headline is /os's one heading size, as on wide
   screens (WEB-64).
   Appended as a second os-handoff block so no line above moves (ds-check pins this file by line). */
@layer os-handoff {
  .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-copy {
    padding-top:0!important;
    border-top:0!important;
  }
  /* the marks are currentColor SVGs, so the colour greys the label, the names and the logos together */
  .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-runs :is(.rl.has,.rl-svg),
  .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-runs { color:var(--text)!important; }
  @media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px) {
    .page[data-page="os"]:not([data-start-line]) :is(.wrap.op1,.os-window) { padding-inline:var(--v4-gutter)!important; }
    /* body type for the label, the names and the button; --line stays :root's, so the hero's spacing does not move */
    .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-copy {
      --fs-b:var(--v4-fs-b);
      --tl-b:var(--v4-tl-b);
      flex-direction:row!important;
      flex-wrap:wrap!important;
      align-items:center!important;
      justify-content:space-between!important;
      --op-gap:calc(var(--line) * .75);   /* the button's border needs more room under the cluster than the link's text did */
      gap:var(--op-gap) var(--line)!important;
      margin-top:var(--op-gap)!important;   /* no rule above the row, so it sits as far under the heading as the button sits under it */
    }
    .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-runs {
      justify-content:flex-start!important;
      gap:calc(var(--line) * .25) .7em!important;
    }
    .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-runs .rl.has { gap:.3em!important; }
    .page[data-page="os"]:not([data-start-line]) .wrap.op1 .op-runs .rl-svg { height:.9em!important; }
    .page[data-page="os"]:not([data-start-line]) .os-window {
      --win-lead:calc(var(--line) * 1.5);
      --win-fade:.8;
      --win-half:.9;
      --win-gone:1;
    }
  }
}

/* ============ WEB-84: the phone hero fills the first screen and the window keeps its rail ============
   Compact screens follow Linear's phone hero. The hero, from the page top to the Works-with row, is --os-hero-fill of
   the first screen with its copy centred in it, so the window peeks in over the screen's last quarter. The window is laid
   out at --gui-desk, wider than a phone, and shows the whole capture as wide screens do, rail included. It starts on
   the gutter and .os-window clips its right side, so the page never scrolls sideways. Phones keep no fold veil, which
   would fade the peek. This replaces WEB-43, which folded the rail away on phones. */
@layer os-handoff {
  @media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px) {
    [data-page="os"]:not([data-start-line]) .op1 {
      min-height:calc(var(--os-hero-fill) * 100svh)!important;
      align-content:center!important;
    }
    [data-page="os"]:not([data-start-line]) .os-window { overflow-x:clip; }
    /* the outline, drawn outside the box, keeps to the gutter as the copy does */
    [data-page="os"]:not([data-start-line]) .c-gui-stage--story {
      --cw:max(100cqw - 2 * var(--gui-line),var(--gui-desk))!important;
      margin-left:var(--gui-line)!important;
    }
    html.os-on .os-lf { display:none!important; }
  }
}

/* ============ WEB-35: /os art keeps its size on the page gutter ============
   The sections pad to --gutter (tokens.css). Art on the column keeps the box it had on the /os column before WEB-35
   (--edge-was), so its height and everything below it stay where they were: How it works' pictures, the grid bus
   stage and the J curve's jenga. --dE is how far the gutter moved from that column, per side;
   an item spanning k of N tracks gives back k / N of both sides. Only widths, horizontal margins and alignment are set
   here, and nothing inside these components changes. The grid bus stage already sat on 24/36 px on compact screens, so
   it keeps its size without a rule here. The hero window spans the hero's content box, so it moves with the gutter.
   The operators photo's margins below lose to its own block, which keeps the photo on its paragraph column. */
@layer os-handoff {
  [data-page="os"] {
    --edge-was:max(var(--edge),calc((100vw - var(--gui-max)) / 2));
    --dE:calc(var(--gutter) - var(--edge-was));
  }
  [data-page="os"]:not([data-start-line]) .how-sec .how-layers { margin-inline:calc(-1 * var(--dE))!important; }
  [data-page="os"]:not([data-start-line]) .origin-case > :is(.frame,.cap) { margin-inline:calc(-1 * var(--dE))!important; }

  @media (min-width:1024px),(min-width:768px) and (min-aspect-ratio:1/1) and (min-height:500px) {

    .nolock-sec > .nolock-stage { width:calc(100% + 4 / 3 * var(--dE))!important; justify-self:end!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > :is(.frame,.cap) { margin-inline:calc(-1.25 * var(--dE)) 0!important; }
    [data-page="os"]:not([data-start-line]) .origin-case > .dots { margin-inline:calc(-1.25 * var(--dE)) 0!important; }
    /* the J curve's jenga is .4 of its frame's width (os-jcurve.js reads clientWidth), so that frame keeps its old width
       and pads its callouts back onto the gutter where the column narrowed */
    #os-jcurve .jc-zart { margin-inline:calc(-1 * var(--dE)); padding-inline:max(0%, var(--dE)); }
  }
  @media (min-width:768px) and (max-width:1023px) and (max-aspect-ratio:9999/10000),(min-width:768px) and (max-width:1023px) and (max-height:499px) {
    [data-page="os"]:not([data-start-line]) .how-sec .how-layers { margin-inline:calc(-1.5 * var(--dE)) 0!important; }
  }





}

/* ============ Header CTA and menu icon ============
   --logo-h is the logo mark's height: .mark foundational-logo in index.html reads it, so the mark and this box share one size.
   It is 31.1px, the 390 phone mark, from 390 to 1920; wider screens scale it with --u like the rest of the page (62.2u is 31.1px
   at 1920), and phones under 390 scale it down. The box is the diamond pose's height (1.12 is K in foundational-logo.js). Its
   label keeps the 390 ratio (14 to 31.1) and never drops below the nav links' --fs-b, which is what phones get. Margins cancel
   the box to the nav's line, so the row keeps the mark's height. The menu icon's box is --logo-h; both keep a 44px tap (--tap). */
header.top{--logo-h:max(31.1px,calc(62.2 * var(--u)));--hd-h:calc(var(--logo-h) * 1.12);--hd-fs:max(calc(var(--logo-h) * 14 / 31.1),var(--fs-b));--hd-pad:calc(.9 * var(--hd-fs));--hd-fg:var(--ink);--hd-bg:var(--paper)}
.hd-act{display:none}
header.top a.gs{position:relative;box-sizing:border-box;display:flex;align-items:center;height:var(--hd-h);padding:0 var(--hd-pad);border:var(--stroke) solid var(--hd-fg);background:var(--hd-bg);color:var(--hd-fg)!important;white-space:nowrap}header.top a.gs::after{content:"";position:absolute;left:50%;top:50%;width:100%;height:max(100%,var(--tap));translate:-50% -50%}
header.top nav.c-nav a.gs{margin-block:calc((var(--tl-b) - var(--hd-h)) / 2);top:calc(var(--fs-b) * -.07);padding-top:calc(var(--fs-b) * .14)}html:not(#_ta) body:not(#_tb):not(#_tc):not(#_td):not(#_te) header.top nav.c-nav a.gs{font-size:var(--hd-fs)!important}
body.ready header.top nav.c-nav>a.gs{transition:opacity var(--t-text) var(--ease) calc(var(--enter-delay) + var(--nav-i) * var(--enter-step)),transform var(--t-text) var(--ease) calc(var(--enter-delay) + var(--nav-i) * var(--enter-step)),background-color var(--dur-1) var(--soft),color var(--dur-1) var(--soft)}
header.top nav.c-nav a.gs:hover{background:var(--hd-fg);color:var(--hd-bg)!important}
header.top :is(a.gs,.menu-btn):focus-visible{outline:var(--focus-w) solid var(--hd-fg)!important;outline-offset:var(--focus-off)}
@media (max-width:767px),(max-width:1023px) and (max-aspect-ratio:9999/10000),(max-width:1023px) and (max-height:499px){header.top{--logo-h:min(calc(31.1 * var(--u)),31.1px)}}
@media (max-width:1023px){body.menu-open header.top{--hd-fg:var(--sheet-hi);--hd-bg:var(--sheet)}
  header.top .hd-act{display:flex;align-items:center;gap:var(--hd-pad);grid-column:3/-1;grid-row:1;justify-self:end;align-self:center;box-sizing:content-box;height:var(--tl-b);padding-block:calc(14.625 * var(--u));margin-block:calc(-7.5 * var(--u))}
  body.page-home header.top .hd-act{padding-block:calc(14.625 * var(--home-u));margin-block:calc(-7.5 * var(--home-u))}
  header.top .hd-cta{--d:var(--enter-delay)!important;font-size:var(--hd-fs);line-height:var(--tl-b);letter-spacing:var(--b-tr);font-weight:var(--b-w)}
  header.top .menu-btn{position:relative;box-sizing:border-box;display:grid;place-items:center;width:var(--logo-h);height:var(--logo-h);margin-right:calc((var(--fs-b) - var(--logo-h)) / 2);border:0;background:none;color:var(--hd-fg);cursor:pointer}header.top .menu-btn::before{content:"";position:absolute;left:50%;top:50%;width:max(100%,var(--tap));height:max(100%,var(--tap));translate:-50% -50%}
  header.top .hd-act>a:active{background:var(--hd-fg);color:var(--hd-bg)!important}header.top .menu-btn:active>span{opacity:.45}
  body.ready header.top .hd-act>.l-rv{transition:opacity var(--t-text) var(--ease) var(--d,0ms),transform var(--t-text) var(--ease) var(--d,0ms),color var(--dur-1) var(--soft),background-color var(--dur-1) var(--soft),border-color var(--dur-1) var(--soft)}
  header.top .menu-btn>span{grid-area:1/1;width:var(--fs-b);height:calc(2 * var(--stroke));background:currentColor;transform:translateY(calc(-.25 * var(--fs-b))) rotate(0deg);transition:transform var(--dur-2) var(--ease)}
  header.top .menu-btn>span+span{transform:translateY(calc(.25 * var(--fs-b))) rotate(0deg)}
  header.top .menu-btn[aria-expanded="true"]>span{transform:translateY(0) rotate(45deg)}
  header.top .menu-btn[aria-expanded="true"]>span+span{transform:translateY(0) rotate(-45deg)}
}
@media (prefers-reduced-motion:reduce){header.top .menu-btn>span{transition:none}}
