/* Category standard comp-4 (round 5): styles. Loads after ../../_shared/brand/tokens.css. Motion idea: the framed product comes alive. */
@font-face{font-family:"Neue Haas Grotesk Display";font-weight:400;font-display:swap;src:url(fonts/NeueHaasDisplayRoman.woff2) format("woff2")}
@font-face{font-family:"Neue Haas Grotesk Display";font-weight:500;font-display:swap;src:url(fonts/NeueHaasDisplayMediu.woff2) format("woff2")}
@font-face{font-family:"Neue Haas Grotesk Display";font-weight:700;font-display:swap;src:url(fonts/NeueHaasDisplayBold.woff2) format("woff2")}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
/* --hb is the header's real bottom (sketch-v2.js); every jump lands its target 28px below it */
html{scroll-padding-top:calc(var(--hb,88px) + 28px);scrollbar-color:var(--line-strong) var(--surface);accent-color:var(--navy)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
html:has(dialog[open]){overflow:hidden}
body{margin:0;background:var(--surface);color:var(--ink);font:400 18px/1.5 var(--font-brand);-webkit-font-smoothing:antialiased;transition:background-color .3s}
/* browser surfaces from the palette: selection, caret, scrollbar, focus ring */
::selection{background:var(--accent);color:var(--on-accent)}
input,textarea{caret-color:var(--accent-text)}
a,button{-webkit-tap-highlight-color:transparent}
.band ::selection,.close-panel ::selection{background:var(--cyan);color:var(--navy)}
.brief :is(input,textarea){caret-color:var(--cyan)}
.brief textarea{scrollbar-color:color-mix(in srgb,var(--paper) 40%,transparent) transparent}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:.2em}
h1,h2,h3,p,figure,dl,dd{margin:0}
ul{margin:0;padding:0;list-style:none}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
/* on navy the ocean/cyan-ink ring is under 3:1, so switch to cyan (7.7:1) */
.band :focus-visible,.close-panel :focus-visible{outline-color:var(--cyan)}
.wrap{max-width:1440px;margin:0 auto;padding:0 40px}
.skip{position:fixed;left:16px;top:-80px;z-index:100;background:var(--navy);color:var(--paper);padding:12px 20px;border-radius:999px;text-decoration:none}
.skip:focus{top:12px}

/* header: fixed; it fills once the page scrolls */
.hdr{position:fixed;top:0;left:0;right:0;z-index:50;transition:background-color .2s,box-shadow .2s}
.hdr.filled,.hdr.open{background:var(--surface);box-shadow:0 1px 0 var(--line)}
/* D1: the header pill shows once the hero actions have scrolled away; hidden, it keeps its width and leaves the tab order */
.hdr-cta{min-height:44px;font-size:17px;opacity:0;visibility:hidden;transition:background-color .15s,transform .1s,opacity .2s,visibility 0s .2s}
.hdr.cta-on .hdr-cta{opacity:1;visibility:visible;transition-delay:0s}
.hdr .in{position:relative;height:88px;display:flex;align-items:center;gap:28px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none;font-weight:500;font-size:26px;letter-spacing:-.02em;white-space:nowrap}
.brand img{height:40px;width:auto}
nav{flex:1}
.nav{display:flex;justify-content:center;gap:44px}
.nav a{display:block;text-decoration:none;font-size:18px;padding:8px 0;transition:color .15s}
.nav a:hover{color:var(--navy-600);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.lang{display:flex;align-items:center;font-size:16px;color:var(--line-strong)}
.lang button{background:none;border:0;padding:8px 7px;min-height:44px;cursor:pointer;color:var(--ink-muted);font-weight:500;border-radius:8px;transition:color .15s}
.lang button:hover{color:var(--ink)}
.lang button[aria-pressed=true]{color:var(--ink);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:2px}
.menu-btn{display:none;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;border:0;box-shadow:inset 0 0 0 1px var(--line-strong);background:transparent;cursor:pointer;font-size:16px;font-weight:500;transition:background-color .15s}
.menu-btn:hover{background:var(--navy-100)}

/* buttons: plain feedback. Hover changes the fill, press moves the button 1px. */
.pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border-radius:999px;background:var(--cta-fill);color:var(--cta-ink);font-weight:500;font-size:18px;line-height:1;text-decoration:none;white-space:nowrap;border:0;cursor:pointer;transition:background-color .15s,transform .1s}
.pill:hover{background:var(--cta-fill-hover)}
.pill:active{transform:translateY(1px)}
.pill.lg{min-height:64px;padding:0 36px;font-size:20px}
.pill.ocean{background:var(--accent);color:var(--on-accent)}
.pill.ocean:hover{background:color-mix(in srgb,var(--accent) 72%,var(--navy))}
.pill svg{width:22px;height:22px}
.link{display:inline-flex;align-items:center;gap:8px;color:var(--accent-text);font-weight:500;font-size:20px;text-decoration:none;padding:12px 0}
.link svg{width:20px;height:20px;transition:transform .2s}
.link:hover svg{transform:translateX(4px)}
.link:hover span{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.cta-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 32px}

/* type */
h1{font-weight:700;letter-spacing:-.03em;line-height:.96;text-wrap:balance}
.lede{color:var(--ink-muted);font-size:clamp(18px,1.6vw,23px);line-height:1.45}
.h2{font-size:clamp(34px,3.6vw,54px);font-weight:700;letter-spacing:-.025em;word-spacing:.04em;line-height:1.04;text-wrap:balance}
h3,.lede,.sub{text-wrap:balance}
p{text-wrap:pretty}

/* product media */
.frame{background:var(--surface-raised);padding:8px;border-radius:24px;box-shadow:0 0 0 1px color-mix(in srgb,var(--navy) 6%,transparent),0 1px 2px color-mix(in srgb,var(--navy) 6%,transparent),0 16px 32px -12px color-mix(in srgb,var(--navy) 16%,transparent)}
.shot{position:relative;overflow:hidden;border-radius:16px;background:var(--surface-sunken)}
.shot>img{width:100%}
.ph{border-radius:13.05%/6.22%;box-shadow:0 1px 2px color-mix(in srgb,var(--navy) 10%,transparent),0 14px 28px -12px color-mix(in srgb,var(--navy) 24%,transparent)}
.row{display:flex;align-items:center;justify-content:center}
.row .frame{width:62%;position:relative;z-index:1}
.row .side{width:17.5%;position:relative;z-index:2}

/* the live detail: a trip row lights and its pin answers. Percentages of the 16:10 console screenshot (row 2 of the trip
   list, and the car on the map). Resting style is the end state, so reduced motion and no-JS show it finished. */
.live{position:absolute;left:0;top:0;width:100%;aspect-ratio:16/10;pointer-events:none}
.live i{position:absolute;display:block}
.l-row{left:.4%;top:31.9%;width:24.2%;height:11%;border-radius:8px;background:color-mix(in srgb,var(--navy-600) 9%,transparent);box-shadow:inset 0 0 0 2px var(--navy-600)}
.l-pin{left:41.1%;top:35.7%;width:3.2%;aspect-ratio:1;translate:-50% -50%;border-radius:50%;box-shadow:0 0 0 2px var(--navy-600),0 0 0 4px var(--surface-raised)}
.l-pin::after{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid var(--navy-600);opacity:0}
@keyframes arrive{from{opacity:0;transform:translateY(14px)}}
@keyframes fade{from{opacity:0}}
@keyframes navy-in{from{background-color:var(--plate)}}
@keyframes lit{from{opacity:0}}
@keyframes pin-in{from{opacity:0;scale:.5}}
@keyframes ping{from{opacity:.7;transform:scale(1)}to{opacity:0;transform:scale(3)}}
/* Opening. html.intro is set in <head> (not for reduced motion). The plate, the navy strip, the console and the band are one
   unit: hidden together until the console has decoded (html.go), then they arrive together. Phones follow; the detail plays
   when it is on screen (html.live-go). Text is never gated. */
.intro:not(.go) :is(.frame,.side,.band){opacity:0}
/* the stage box is reserved in the plate colour from the first paint; the navy strip starts as plate and turns navy */
.intro:not(.go) .stage-navy{background:var(--plate)}
.intro.go .stage-navy{animation:navy-in .6s ease-out backwards}
.intro.go .band{animation:fade .6s ease-out backwards}
.intro.go .frame{animation:arrive .7s cubic-bezier(.16,1,.3,1) backwards}
.intro.go .side{animation:arrive .6s cubic-bezier(.16,1,.3,1) .3s backwards}
.live-wait:not(.live-go) .live i{opacity:0}
.live-go .l-row{animation:lit .5s ease-out backwards}
.live-go .l-pin{animation:pin-in .4s cubic-bezier(.16,1,.3,1) .3s backwards}
.live-go .l-pin::after{animation:ping 1.1s ease-out .55s 1 backwards}

/* navy band */
.band{background:var(--navy);color:var(--paper);padding:72px 0 104px}
.band .h2{color:var(--paper)}
.band-head{margin-bottom:32px}
/* five system cards: each opens its project view. The title is the real button; its ::after stretches over the card. */
.sys{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.sys-card{position:relative;background:var(--surface-raised);color:var(--ink);border-radius:24px;padding:20px;display:flex;flex-direction:column;cursor:pointer;transition:background-color .15s}
.sys-card:hover{background:var(--navy-100)}
.sys-card:has(.sys-open:focus-visible){outline:2px solid var(--cyan);outline-offset:3px}
.sys-card h3{margin:0 4px 16px;font-size:20px;font-weight:500;letter-spacing:-.01em}
.sys-open{all:unset;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;cursor:pointer}
.sys-open::after{content:"";position:absolute;inset:0;border-radius:24px}
.sys-open svg{flex:none;width:18px;height:18px;color:var(--navy-600);transition:transform .2s}
.sys-card:hover .sys-open svg{transform:translateX(4px)}
.sys-card:hover .t{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
.sys-media{aspect-ratio:16/11;flex:1 0 auto;border-radius:16px;overflow:hidden;background:var(--surface-sunken)}
.sys-media img{width:100%;height:100%;object-fit:cover;object-position:top left}
.sys-card p{font-size:16px;line-height:1.4;color:var(--ink-muted);margin:16px 4px 0}
.sys-card .platforms{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);font-size:14px}
@media (max-width:1080px){.sys{grid-template-columns:repeat(6,minmax(0,1fr))}.sys-card{grid-column:span 2}.sys-card:nth-child(n+4){grid-column:span 3}}
@media (max-width:720px){.sys{grid-template-columns:1fr}.sys-card,.sys-card:nth-child(n+4){grid-column:auto}}

/* project view (ROUND4 rule 3): the clicked card's screen first, details beside it from 900px */
.pv{width:min(1200px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:24px;background:var(--surface);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.pv::backdrop{background:color-mix(in srgb,var(--navy-950) 72%,transparent)}
.pv-x{position:sticky;top:12px;z-index:3;display:grid;place-items:center;width:44px;height:44px;margin:12px 12px -56px auto;padding:0;border:0;border-radius:50%;background:var(--surface-raised);box-shadow:0 0 0 1px var(--line);color:var(--ink);cursor:pointer;transition:background-color .15s}
.pv-x:hover{background:var(--navy-100)}
.pv-x svg{width:20px;height:20px}
.pv-body{display:grid;gap:24px 40px;padding:64px 20px 24px}
.pv-info>*+*{margin-top:12px}
.pv-info .sector{color:var(--ink-muted);font-size:16px;margin-top:4px}
.pv-info h2{font-size:clamp(32px,3.4vw,44px);font-weight:700;letter-spacing:-.03em;line-height:1.04}
.pv-info h3{margin-top:24px;font-size:16px;font-weight:700;letter-spacing:.01em}
.pv-info p{font-size:18px}
.pv-info li{font-size:16px;padding:8px 0;border-top:1px solid var(--line)}
.pv-info li:last-child{border-bottom:1px solid var(--line)}
.pv-info ul{margin-top:8px}
.pv-rest{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.pv figure{min-width:0}
.pv figure img{width:100%;border-radius:16px;background:var(--surface-sunken);box-shadow:0 0 0 1px var(--line)}
.pv figure.mobile img{max-width:300px}
.pv-rest figure.wide{grid-column:1/-1}
.pv figcaption{margin-top:10px;font-size:16px;color:var(--ink-muted)}
@media (min-width:900px){
  .pv-body{grid-template-columns:minmax(280px,360px) minmax(0,1fr);grid-template-areas:"info first" "info rest";padding:40px;align-items:start}
  .pv-info{grid-area:info;position:sticky;top:0;max-height:calc(100dvh - 32px - 80px);overflow:auto;padding-right:8px}
  .pv-first{grid-area:first}.pv-rest{grid-area:rest}
  .pv-x{margin-bottom:-56px}
}
@media (max-width:560px){.pv{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.pv-rest{grid-template-columns:1fr}.pv figure.mobile img{max-width:70%}}

/* sections after the systems */
.sec{padding:clamp(72px,8vw,112px) 0}
.sec+.sec{padding-top:0}
.card{background:var(--surface-raised);border-radius:24px;padding:28px}
.muted{color:var(--ink-muted)}
.g12,.why-grid,.faq-grid,.how-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:16px}
.why-grid>div:first-child,.g12>.h2,.faq-grid>.h2{grid-column:1/5}
.why-items{grid-column:5/13;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 16px;align-items:start}
.srv-list,.faq{grid-column:5/13}
.srv{padding:20px 0;border-top:1px solid var(--line)}
.srv h3{margin-bottom:6px}
.srv p{font-size:16px}
.srv-list .addons{padding-top:20px;border-top:1px solid var(--line);font-size:16px}
.why h3,.how-grid h3,.srv h3{font-size:20px;font-weight:500;letter-spacing:-.01em;margin-bottom:12px;line-height:1.2}
/* Why RYD icons: one family drawn from the merge node (brand README), lanes and nodes only. Each says its RYD line:
   a lane that loops back and keeps going (we stay on), two lanes taking the same bend (built around your way),
   two nodes on one line (you talk to the builder), two lanes joining into one like the mark's Y (one system).
   24px tall on the 24px grid, stroke-mark weight (0.125em of 24px = 3px), round caps and joins. */
.mn{display:block;width:32px;height:24px;font-size:24px;margin-bottom:16px;fill:none;stroke:var(--navy-600);stroke-width:var(--stroke-mark);stroke-linecap:round;stroke-linejoin:round}
.why .muted{font-size:18px;line-height:1.45;margin-bottom:20px}
.why .ryd{font-size:18px;line-height:1.45;font-weight:500;padding-top:16px;border-top:1px solid var(--line)}
.sec-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px 32px}
.sec-head p{font-size:20px}
.how-grid{row-gap:16px;margin-top:40px}
.how-grid p{font-size:18px}
.how-grid .card{grid-column:span 4}
.how-grid .card{display:flex;flex-direction:column}.how-grid .card p{margin-top:auto}
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:16px;padding:20px 0;font-size:20px;font-weight:500}
.faq summary:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.faq summary:focus-visible{outline-offset:-2px;border-radius:8px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";flex:none;width:20px;height:20px;margin-top:4px;color:var(--navy);background:linear-gradient(currentColor,currentColor) center/14px 2px no-repeat,linear-gradient(currentColor,currentColor) center/2px 14px no-repeat;transition:transform .25s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{padding:0 0 22px;color:var(--ink-muted);max-width:40em}
.close-panel{--danger-on-navy:#FF8A7A;background:var(--navy);color:var(--paper);border-radius:32px;padding:64px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;align-items:center}
.close-panel>div:first-child{grid-column:1/7;padding-right:32px}
.close-panel>:is(.brief,.sent){grid-column:7/13}
.close-panel .h2{color:var(--paper);margin-bottom:16px}
.close-panel .sub{color:var(--navy-200);font-size:20px;margin-bottom:32px}
.pill.inv{background:var(--paper);color:var(--navy)}
.pill.inv:hover{background:var(--navy-100)}
.pill.ghost{background:transparent;color:var(--paper);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--paper) 45%,transparent)}
.pill.ghost:hover{background:color-mix(in srgb,var(--paper) 12%,transparent)}
.alt{margin-top:28px;color:var(--navy-200);display:flex;flex-wrap:wrap;gap:8px 24px}
.alt a{color:var(--paper);display:inline-block;padding:12px 0}
.brief,.sent{display:grid;gap:12px;background:color-mix(in srgb,var(--paper) 6%,transparent);border-radius:24px;padding:24px}
.brief label{display:grid;gap:6px;font-size:16px;color:var(--navy-200)}
.brief input,.brief textarea{font-size:16px;color:var(--paper);background:color-mix(in srgb,var(--navy-950) 35%,transparent);border:1px solid color-mix(in srgb,var(--paper) 25%,transparent);border-radius:12px;padding:12px 14px;width:100%}
.brief textarea{min-height:110px;resize:vertical}
.brief .pill{justify-self:start}
.brief [aria-invalid=true]{border-color:var(--danger-on-navy)}
.err{color:var(--danger-on-navy);font-size:16px}
.hint{font-size:14px;color:var(--navy-200)}
.brief :is(input,textarea):hover{border-color:color-mix(in srgb,var(--paper) 45%,transparent)}
.brief :is(input,textarea):focus-visible{border-color:var(--cyan)}
.pill:disabled,.pill[aria-busy=true]{opacity:.6;cursor:not-allowed}
@media (min-width:1081px){.brief{grid-template-columns:1fr 1fr}.brief>:is(label:has(textarea),.pill){grid-column:1/-1}}
/* sent state: echoes what was sent, then what happens next; focus lands on it */
.sent:focus{outline:none}
.sent:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
.sent-h{font-size:20px;font-weight:500;line-height:1.25;color:var(--paper)}
.sent dl{display:grid;gap:12px;margin-top:8px}
.sent dt{font-size:16px;color:var(--navy-200)}
.sent dd{font-size:17px;color:var(--paper);overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5;overflow:hidden}
#contact.sec{padding-bottom:96px}
.ftr{padding:0 0 40px;color:var(--ink-muted);font-size:16px}
.ftr .wrap{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.ftr a{display:inline-block;padding:6px 0;min-height:24px}

/* sketch chrome: palette A/B, a labelled footer row until one palette wins */
.ctl{display:flex;align-items:center;gap:4px;font-size:16px;color:var(--ink-muted)}
.ctl span{margin-right:8px}
.ctl button{width:44px;height:44px;border-radius:999px;border:0;background:transparent;cursor:pointer;font-weight:500;color:var(--ink);transition:background-color .15s}
.ctl button:hover{background:var(--navy-100)}
.ctl button[aria-pressed=true]{background:var(--navy);color:var(--paper)}
/* phones: a plain bottom action once the hero actions have scrolled away (P10) */
.bar{display:none}
@media (max-width:1080px){.why-grid>div:first-child,.g12>.h2,.faq-grid>.h2,.srv-list,.faq,.why-items{grid-column:1/-1}.g12>.h2,.faq-grid>.h2{margin-bottom:24px}.why-grid>div:first-child{margin-bottom:24px}.how-grid .card{grid-column:span 6}.how-grid .card:last-child{grid-column:1/-1}}
@media (max-width:1080px){
  nav{display:none;position:absolute;top:100%;left:16px;right:16px}
  .hdr.open nav{display:block}
  .nav{flex-direction:column;gap:0;background:var(--surface-raised);border-radius:24px;padding:10px;box-shadow:var(--shadow-raise)}
  .nav a{padding:12px 16px;font-size:20px}
  .menu-btn{display:inline-flex}
  .lang{margin-left:auto}
  .close-panel{grid-template-columns:1fr;padding:48px}
  .close-panel>div:first-child{padding-right:0}
  .close-panel>div:first-child,.close-panel>:is(.brief,.sent){grid-column:auto}
}
@media (max-width:720px){
  .wrap{padding:0 16px}
  .hdr .in{height:68px;gap:10px}
  .brand{font-size:20px;gap:10px}
  .brand img{height:30px}
  .hdr-cta{display:none}
  .pill.lg{min-height:58px;padding:0 28px;font-size:18px}
  .sec{padding:72px 0}
  .band{padding:56px 0 72px}
  .why-grid,.how-grid,.faq-grid,.g12{grid-template-columns:1fr}
  .why-items{grid-template-columns:1fr}
  .how-grid .card,.how-grid .card:last-child{grid-column:auto}
  #contact.sec{padding-bottom:48px}
  .ftr{padding-bottom:88px}
  .bar{display:block;position:fixed;left:16px;right:16px;bottom:max(16px,env(safe-area-inset-bottom));z-index:45;opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s .2s}
  .bar.on{opacity:1;visibility:visible;transition-delay:0s}
  .bar .pill{width:100%;min-height:56px}
  .close-panel{padding:32px 20px}
  .row{flex-wrap:wrap;gap:16px 4%}
  .row .frame{width:100%;order:-1}
  .row .side{width:46%;margin:0!important}
}
@media (max-width:359px){.brand span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.01ms!important;transition-delay:0s!important;animation:none!important;scroll-behavior:auto!important}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
