/* The homepage story, the company block, and the contact and sign-up blocks. */
.work, .numb, .us { --story-h: clamp(40px, 4.3vw, 64px); }
:is(.work, .numb, .us) h2 { margin: 0; font-size: var(--story-h); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }

/* air, fuel and spark */
.work { position: relative; overflow: hidden; padding: 108px 0 92px; border-top: 3px solid #FBB600; border-radius: 50% 50% 0 0 / 60px 60px 0 0; background: var(--navy); color: #fff; }
.work :focus-visible { outline-color: #FBB600; }
.work-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; align-items: center; }
.work-say > p { margin: 20px 0 0; max-width: 34ch; color: var(--on-navy); font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.w-list { margin: 36px 0 0; padding: 0; list-style: none; }
.w-item { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.w-item h3 { margin: 0; font: inherit; }
.w-item h3 button { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0 16px; border: 0; background: none; color: var(--on-navy); font: inherit; text-align: left; cursor: pointer; transition: color .25s ease; }
.w-item h3 button b { font-size: 32px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.w-item h3 button span { font-size: 15px; }
.w-item h3 button:hover, .w-item.is-on h3 button { color: #fff; }
.w-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .46s var(--ease-out), opacity .25s linear; }
.w-more > div { min-height: 0; overflow: hidden; }
.w-item.is-on .w-more { grid-template-rows: 1fr; opacity: 1; }
.w-more p { margin: 0; max-width: 40ch; color: var(--on-navy); font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.w-more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 4px 0 8px; color: #FBB600; font-size: 15px; font-weight: 600; text-decoration: none; }
.w-more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.w-more a .ico { width: 17px; height: 17px; }
.w-time { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #FBB600; transform: scaleX(0); transform-origin: 0 50%; }
.w-item.is-on .w-time { transform: scaleX(1); }
.engine { position: relative; min-width: 0; }
.engine > svg { display: block; width: 100%; height: auto; max-height: min(74vh, 640px); overflow: visible; }
.e-line path, .e-line circle, .e-piston path, .e-piston circle { fill: none; stroke: #7f9cc8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.e-line .thin { stroke-width: 1.3; }
.e-piston path:first-child { fill: rgba(127, 156, 200, .16); }
.e-piston { transition: transform 1.3s cubic-bezier(.45, 0, .25, 1); }
.engine[data-on="air"] .e-piston { transform: translateY(50px); }
.engine[data-on="fuel"] .e-piston { transform: translateY(28px); }
.e-lit { opacity: .3; transition: opacity .6s ease; }
.e-flow, .e-spray path { fill: none; stroke-linecap: round; }
.e-air { stroke: #b9d6ff; stroke-width: 5; stroke-dasharray: 2 17; opacity: .22; transition: opacity .5s ease; }
.e-out { stroke: #7f9cc8; stroke-width: 4; stroke-dasharray: 2 17; opacity: .25; }
.e-spray path { stroke: #FBB600; stroke-width: 4; stroke-dasharray: 2 11; }
.e-spray, .e-burn, .e-bolt { opacity: 0; transition: opacity .4s ease; }
.e-bolt { fill: #fff6cf; }
.e-part { opacity: .8; cursor: pointer; transform-box: fill-box; transform-origin: 50% 70%; transition: opacity .45s ease, transform .6s var(--ease-out); }
.e-part:hover { opacity: .94; }
.e-part text { fill: #fff; font: 500 17px var(--font); }
.engine[data-on="air"] :is(.e-part.air, .e-lit.air, .e-air), .engine[data-on="fuel"] :is(.e-part.fuel, .e-lit.fuel, .e-spray), .engine[data-on="spark"] :is(.e-part.spark, .e-lit.spark, .e-bolt, .e-burn) { opacity: 1; }
.engine[data-on="air"] .e-part.air, .engine[data-on="fuel"] .e-part.fuel, .engine[data-on="spark"] .e-part.spark { transform: scale(1.06); }
.engine[data-on="spark"] .e-out { opacity: .7; }
.e-burn { transform-box: fill-box; transform-origin: center; }
.e-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-height: 44px; color: var(--on-navy); font-size: 13px; }
.e-foot button { min-height: 44px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; color: #fff; font: 500 13px/1 var(--font); cursor: pointer; }
.e-foot button:hover { border-color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .work.is-auto .w-item.is-on .w-time { animation: w-time 4.6s linear both; }
  .work.is-live .engine[data-on="air"] .e-air, .work.is-live .engine[data-on="spark"] .e-out { animation: e-run 1s linear infinite; }
  .work.is-live .engine[data-on="fuel"] .e-spray path { animation: e-run .55s linear infinite; }
  .work.is-live .engine[data-on="spark"] .e-bolt { animation: e-fire 1.15s steps(1) infinite; }
  .work.is-live .engine[data-on="spark"] .e-burn { animation: e-burn 1.15s var(--ease-out) infinite; }
}
@keyframes w-time { from { transform: scaleX(0); } }
@keyframes e-run { from { stroke-dashoffset: 57; } to { stroke-dashoffset: 0; } }
@keyframes e-fire { 0%, 24% { opacity: 1; } 30%, 100% { opacity: .12; } }
@keyframes e-burn { 0% { transform: scale(.3); opacity: 1; } 70%, 100% { transform: scale(1.15); opacity: .08; } }

/* the number on the old part */
.numb { padding: 112px 0; background: var(--surface); }
.numb-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px 88px; align-items: center; }
.lens { position: relative; margin: 0; width: 100%; max-width: 580px; aspect-ratio: 1; border-radius: 32px; overflow: hidden; background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 43, 110, .1); isolation: isolate; }
.lens-cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.65, 0, .25, 1), opacity .3s ease; }
.lens.is-swap .lens-cam { opacity: 0; }
.lens-cam img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lens-box { position: absolute; translate: -50% -50%; border: 1.2px solid #FBB600; border-radius: 5px; box-shadow: 0 0 0 1px rgba(10, 43, 110, .25), 0 0 0 999px rgba(10, 43, 110, 0); opacity: 0; transition: opacity .3s ease, box-shadow .5s ease; }
.lens.is-near .lens-box { opacity: 1; box-shadow: 0 0 0 1px rgba(10, 43, 110, .25), 0 0 0 999px rgba(10, 43, 110, .2); transition: opacity .3s ease .75s, box-shadow .6s ease .75s; }
.lens figcaption { position: absolute; left: 14px; bottom: 14px; display: grid; gap: 5px; padding: 12px 18px; border-radius: 18px; background: var(--navy); color: var(--on-navy); }
.lens figcaption span { font-size: 12.5px; }
.lens figcaption b { color: #fff; font-size: 22px; font-weight: 600; line-height: 1; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.lens-toggle { position: absolute; right: 14px; top: 14px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--ink); font: 500 14px/1 var(--font); cursor: pointer; }
.lens-toggle:hover { background: #fff; }
.numb h2 { color: var(--navy); }
.numb-say > p { margin: 20px 0 0; max-width: 38ch; color: var(--ink-2); font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.numb-list { display: grid; gap: 8px; margin: 30px 0; padding: 0; list-style: none; }
.numb-list button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px 20px 8px 8px; border: 0; border-radius: 22px; background: var(--cyc); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.numb-list button:hover { background: #e9ecf2; }
.numb-list button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.numb-list img { width: 68px; height: 68px; border-radius: 14px; background: #fff; object-fit: cover; }
.numb-list button > span { display: grid; gap: 4px; }
.numb-list b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.numb-list small { color: var(--ink-2); font-size: 14px; }
.numb-list [aria-pressed="true"] small { color: var(--on-navy); }
.numb-list .ico { width: 20px; height: 20px; margin-left: auto; opacity: 0; transition: opacity .25s ease; }
.numb-list [aria-pressed="true"] .ico { opacity: 1; color: #FBB600; }

/* the company */
.us { padding: 112px 0 104px; background: var(--cyc); }
.us h2 { color: var(--navy); }
.us-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: center; }
.us-lead { margin: 22px 0 0; max-width: 40ch; color: var(--ink); font-size: 19px; line-height: 1.45; text-wrap: pretty; }
.us-facts { display: grid; gap: 18px; margin: 30px 0 0; }
.us-facts dt { color: var(--navy); font-size: 16.5px; font-weight: 600; }
.us-facts dd { margin: 5px 0 0; max-width: 50ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }
.us-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 30px; }
.us-go .text-btn .ico { width: 17px; height: 17px; }
.us-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.us-tile { position: relative; grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: 250px; padding: 30px; border-radius: 30px; overflow: hidden; background: var(--navy); color: #fff; }
.us-arc { position: absolute; right: -44px; bottom: -6px; width: 72%; height: auto; opacity: .95; pointer-events: none; }
.us-logo { position: relative; width: 196px; height: auto; }
.us-tile p { position: relative; display: flex; align-items: center; gap: 16px; margin: 0; font-size: 19px; font-weight: 500; line-height: 1.28; }
.us-flag { flex: none; width: 84px; height: auto; border-radius: 4px; overflow: hidden; }
.us-ph { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 30px; background: #fff; object-fit: cover; }
.us-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 80px 0 0; padding: 0; list-style: none; }
.us-steps::before, .us-steps::after { content: ""; position: absolute; left: 28px; right: calc(33.333% - 48px); top: 27px; height: 2px; background: rgba(10, 43, 110, .16); }
.us-steps::after { background: #FBB600; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.5s cubic-bezier(.5, 0, .3, 1); }
.us-steps.is-seen::after { transform: scaleX(1); }
.us-steps li { position: relative; z-index: 1; display: grid; justify-items: start; }
.us-steps i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e7eaf0; color: var(--navy); transition: background-color .4s ease; }
.us-steps i .ico { width: 24px; height: 24px; }
.us-steps.is-seen i { background: #FBB600; }
.us-steps.is-seen li:nth-child(2) i { transition-delay: .65s; }
.us-steps.is-seen li:nth-child(3) i { transition-delay: 1.3s; }
.us-steps b { margin-top: 18px; color: var(--navy); font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.us-steps span { margin-top: 7px; max-width: 32ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; text-wrap: pretty; }
.about .us { padding-top: 88px; }

/* contact and sign-up, on top of every footer */
.join { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 96px; padding: 24px 0 52px; margin-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.join h2 { margin: 0; color: #fff; font-size: clamp(30px, 2.9vw, 42px); font-weight: 600; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.join h2 + p { margin: 12px 0 22px; max-width: 42ch; color: var(--on-navy); font-size: 16.5px; line-height: 1.45; text-wrap: pretty; }
.join-row { display: flex; gap: 6px; max-width: 500px; padding: 6px; border-radius: 999px; background: #fff; }
.join-row:focus-within { outline: 2px solid #FBB600; outline-offset: 3px; }
.join-row input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 400 16px var(--font); outline: 0; }
.join-row input::placeholder { color: var(--ink-2); }
.join .tick { color: var(--on-navy); }
.join-err { margin: 2px 0 0; color: #ffd166; font-size: 14px; }
.join-err:empty, .join-done:empty { display: none; }
.join-done { margin: 0; max-width: 500px; padding: 20px 24px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 28px; color: #fff; font-size: 15.5px; line-height: 1.45; }
.join-form.is-done :is(.join-row, .tick, .join-err) { display: none; }
.tick { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.35; cursor: pointer; }
.tick input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: #FBB600; cursor: pointer; }
.ask { width: min(620px, calc(100vw - 24px)); max-width: none; max-height: calc(100% - 24px); margin: auto; padding: 0; border-radius: 32px; overflow: auto; overscroll-behavior: contain; background: var(--surface); }
.ask-head { position: relative; overflow: hidden; padding: 30px 72px 28px 30px; background: var(--navy); color: #fff; }
.ask-head h2 { position: relative; margin: 0; font-size: 32px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; outline: 0; }
.ask-head p { position: relative; margin: 9px 0 0; color: var(--on-navy); font-size: 16px; }
.ask-arc { position: absolute; right: -24px; top: 28px; width: 260px; height: auto; pointer-events: none; }
.ask-head .x { position: absolute; right: 12px; top: 12px; color: #fff; }
.ask-head .x:hover { background: rgba(255, 255, 255, .12); }
.ask-head :focus-visible { outline-color: #FBB600; }
.ask form, .ask-sum { padding: 22px 22px 24px; }
.ask-kind { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; }
.ask-kind label { position: relative; }
.ask-kind input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.ask-kind span { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--cyc); color: var(--ink); font-size: 14.5px; font-weight: 500; pointer-events: none; transition: background-color .2s ease, color .2s ease; }
.ask-kind :checked + span { background: var(--navy); color: #fff; }
.ask-kind :focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.ask-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.af { position: relative; }
.af.wide { grid-column: 1 / -1; }
.af input, .af textarea { display: block; width: 100%; height: 62px; padding: 25px 16px 7px; border: 1px solid var(--edge); border-radius: 16px; background: #fff; color: var(--ink); font: 400 16px/1.35 var(--font); }
.af textarea { height: 96px; resize: vertical; }
.af label { position: absolute; left: 17px; top: 21px; color: var(--ink-2); font-size: 15px; line-height: 20px; transform-origin: 0 0; pointer-events: none; transition: transform .18s var(--ease-out); }
.af :is(input, textarea):focus + label, .af :is(input, textarea):not(:placeholder-shown) + label { transform: translateY(-14px) scale(.8); }
.af :is(input, textarea):focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.af [aria-invalid="true"] { border-color: var(--err); }
.ask-err { margin: 6px 0 0; color: var(--err); font-size: 14px; }
.ask-err:empty { display: none; }
.ask-go { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ask-sum h3 { margin: 0 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; outline: 0; }
.ask-sum dl { margin: 0; }
.ask-sum dl div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.ask-sum dt { color: var(--ink-2); }
.ask-sum dd { margin: 0; overflow-wrap: anywhere; }
.ask-note { margin: 16px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.ask [hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .ask[open] { animation: ask-in .38s var(--ease-out); }
  .ask.closing { animation: ask-out .2s ease-in forwards; }
}
@keyframes ask-in { from { opacity: 0; transform: translateY(26px) scale(.975); } }
@keyframes ask-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@media (prefers-reduced-motion: reduce) {
  .w-more, .e-piston, .e-part, .lens-cam, .lens.is-near .lens-box, .us-steps::after, .us-steps i, .af label { transition: none; }
}
@media (max-width: 860px) {
  .work-in, .numb-in, .us-top, .join { grid-template-columns: minmax(0, 1fr); }
  .us-steps { grid-template-columns: minmax(0, 1fr); }
  .us-steps::before, .us-steps::after { display: none; }
  .ask-fields { grid-template-columns: minmax(0, 1fr); }
  .join-row { flex-wrap: wrap; border-radius: 28px; }
}
