/* OctoSwap: what the protocol adds to the base. Same blues, same glass, same two typefaces. */

:root{
  --pearl:#fbf8f5;
  --deep:#1647a4;
  --sucker:#1f66e0;
  --out:cubic-bezier(.16,1,.3,1);
}

/* The page scrolls now: the stage is its first screen. */
html,body{height:auto;overflow:visible}
html{scroll-behavior:smooth}
.stage{width:100%}
[hidden]{display:none !important}
:focus-visible{outline:2px solid #fff;outline-offset:3px}
.stage :focus-visible{outline:calc(2 * var(--u)) solid #fff;outline-offset:calc(2 * var(--u))}

/* ---------- masthead: the octopus badge, four links in the glass pill, X and the way in on the right ---------- */
.logo .logo-mark{display:block;flex:none;width:calc(46 * var(--u));height:calc(46 * var(--u));margin-top:calc(1 * var(--u))}
.logo .wordmark{top:calc(8.4 * var(--u));margin-left:calc(9 * var(--u))}
.top-x{gap:calc(9 * var(--u))}
.top-x svg{display:block;flex:none;width:calc(16 * var(--u));height:calc(16 * var(--u));fill:currentColor}
@media (min-width:1100px){
  .masthead{--demo-w:50.5}
  .menu{display:flex;align-items:center;justify-content:space-between;padding:0 calc(22 * var(--u))}
  .menu a{position:static}
  .menu a[aria-current]{font-weight:700}
  .top-x{padding-top:0}
  .top-x span{display:none}
}
.menu a{transition:opacity .15s}
.menu a:hover{opacity:.7}

/* ---------- hero copy: the name on its own line, in the weight of the logo ---------- */
.copy h1 .name{font-weight:700}
@media (min-width:1100px){
  .copy p{width:calc(432 * var(--u))}
}
@media (max-width:599.98px) and (orientation:portrait){
  .bg::after{background:linear-gradient(to top, rgba(251,248,245,.95) 0, rgba(251,248,245,.86) 36%, transparent 60%)}
  .copy h1{font-size:calc(43 * var(--u));line-height:calc(46 * var(--u))}
}

/* ---------- shared by the sections under the stage ---------- */
.wrap{width:min(1180px, 100% - 48px);margin:0 auto}
.rule h2,.closing h2{margin:0;font-family:var(--display);font-weight:400;font-size:clamp(36px,5vw,64px);line-height:1.08;letter-spacing:.012em}
[data-reveal]{opacity:0;transform:translateY(18px);transition:opacity .7s var(--out),transform .7s var(--out);transition-delay:var(--stagger,0ms)}
[data-reveal].is-in{opacity:1;transform:none}

/* ---------- the rule: eight arms on the deep blue of the explore card ---------- */
.rule{background:var(--deep) radial-gradient(56% 64% at 73% 47%, #2a68da 0%, rgba(42,104,218,0) 72%);color:#fff;padding:clamp(72px,10vw,140px) 0}
.rule-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);align-items:center;gap:clamp(28px,6vw,96px)}
.rule-copy p{margin:clamp(18px,2.2vw,28px) 0 0;max-width:30em;font-size:clamp(17px,1.5vw,21px);line-height:1.5;color:rgba(255,255,255,.88)}
.rule-figs{list-style:none;margin:clamp(30px,4vw,54px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,2vw,28px)}
.rule-figs li{padding-top:16px;border-top:1px solid rgba(255,255,255,.3)}
.rule-figs b{display:block;font-family:var(--display);font-weight:400;font-size:clamp(38px,5vw,66px);line-height:1}
.rule-figs span{display:block;margin-top:10px;font-size:15px;line-height:1.4;color:rgba(255,255,255,.8)}
.plate{position:relative;width:100%;max-width:600px;margin:0 auto;aspect-ratio:1}
.rule-caption{margin:6px auto 0;min-height:3em;max-width:26em;text-align:center;font-size:clamp(16px,1.35vw,19px);line-height:1.45;color:rgba(255,255,255,.92)}

/* ---------- the plate itself ---------- */
.arms{display:block;width:100%;height:100%;overflow:visible}
.arms .arm{transform-box:view-box;transform-origin:300px 300px}
.arms .arm-skin{stroke:rgba(255,255,255,.6);stroke-width:1;transition:opacity .4s}
.arms .arm.is-buy .arm-skin{opacity:.62}
.arms .sucker{fill:rgba(23,73,168,.09);stroke:rgba(23,73,168,.3);stroke-width:1.2;transition:fill .35s,stroke .35s}
.arms .sucker.is-full{fill:var(--sucker);stroke:#0f3f9f}
.arms .arm-number{font:400 19px/1 "OF Display","OF Text",sans-serif;fill:rgba(255,255,255,.82)}
.arms .body{stroke:rgba(255,255,255,.7);stroke-width:1}
.arms .pool{transition:r .55s cubic-bezier(.4,0,.2,1)}
.arms .pool-text{font:700 15px/1 "OF Text",sans-serif;fill:#fff;letter-spacing:.2px}
.arms .drop{transform-box:fill-box;transform-origin:center}
.arms .drop.is-in{fill:var(--sucker);stroke:#fff;stroke-width:1.5}
.arms .drop.is-out{fill:#fff;stroke:var(--sucker);stroke-width:2.2}

/* On a light page the pearl needs an edge. */
.on-light .arms .arm-skin,.on-light .arms .body{stroke:rgba(26,48,88,.28);stroke-width:1.2}
.on-light .arms .arm-number{fill:rgba(26,48,88,.75)}
.on-light .arms{filter:drop-shadow(0 10px 24px rgba(23,73,168,.16))}

/* ---------- closing, on the white of the salt ---------- */
.closing{background:var(--pearl);color:var(--navy);padding:clamp(72px,10vw,140px) 0 clamp(52px,7vw,96px)}
.plain{list-style:none;margin:clamp(28px,4vw,52px) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,36px)}
.plain li{padding-top:18px;border-top:1px solid rgba(26,48,88,.24);font-size:clamp(17px,1.45vw,20px);line-height:1.45}
.closing-cta{display:flex;flex-wrap:wrap;gap:8px;margin-top:clamp(30px,4vw,54px)}
.closing-cta .btn,.page-cta .btn{height:52px;padding:2px 28px 0;border-radius:16px;font-size:17.4px}
.closing .btn--light,.page-cta .btn--light{background:#fff;box-shadow:inset 0 0 0 1px rgba(26,48,88,.75)}

/* ---------- footer ---------- */
.foot{background:var(--pearl);color:var(--navy);padding:0 0 clamp(36px,5vw,60px)}
.foot-grid{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:clamp(18px,4vw,56px);padding-top:28px;border-top:1px solid rgba(26,48,88,.16)}
.foot-logo{display:flex;align-items:flex-start;height:38px;font-family:var(--display);font-weight:700;font-size:25px;line-height:1;letter-spacing:.4px;white-space:nowrap}
.foot-logo .logo-mark{display:block;flex:none;width:36px;height:36px}
.foot-logo span{position:relative;top:7px;margin-left:9px}
.foot-nav{display:flex;flex-wrap:wrap;gap:2px;padding:5px;border-radius:16px;background:rgba(26,48,88,.07)}
.foot-nav a{padding:9px 14px 7px;border-radius:11px;font-size:16px;line-height:1.2;white-space:nowrap;transition:background-color .15s}
.foot-nav a:hover{background:#fff}
.foot-note{margin:0;justify-self:end;max-width:34em;text-align:right;font-size:14px;line-height:1.5;color:rgba(26,48,88,.78)}
.foot :focus-visible,.closing :focus-visible,.page :focus-visible{outline-color:var(--blue)}

@media (max-width:899.98px){
  .rule-grid{grid-template-columns:minmax(0,1fr);gap:36px}
  .plate{max-width:460px}
  .plain{grid-template-columns:minmax(0,1fr)}
  .foot-grid{grid-template-columns:minmax(0,1fr);justify-items:start;gap:20px}
  .foot-note{justify-self:start;text-align:left}
}
@media (max-width:479.98px){
  .rule-figs span{font-size:13.5px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  [data-reveal]{opacity:1;transform:none;transition:none}
  .arms .sucker,.arms .pool,.arms .arm-skin,.menu a,.foot-nav a{transition:none}
}
