/* SKYLARK — Motion design showcase. Concept by Libra Intelligence. Midnight, white, greys. */
:root {
  --mid: #0B1A2E; --mid2: #13253D; --mid3: #1C3150; --deep: #07111F;
  --ink: #0E1116; --steel: #5E6773; --steel2: #8A929C; --cloud: #C9CED5; --line: #E3E6EA; --mist: #EEF0F2; --paper: #F6F7F8;
  --t1: #FFFFFF; --t2: rgba(255, 255, 255, .72); --t3: rgba(255, 255, 255, .5); --hair: rgba(255, 255, 255, .12);
  --ok: #2F7D55;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --disp: "Archivo", "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1); --expo: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4.4vw, 64px);
}
html[lang=he] { --sans: "Heebo", -apple-system, Arial, sans-serif; --disp: "Heebo", Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; background: var(--mid); }
html.motion { scroll-behavior: smooth; }
body { margin: 0; background: var(--mid); color: var(--t1); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: var(--mid); border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: 1440px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 var(--pad); background: rgba(11, 26, 46, .82); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); border-bottom: 1px solid var(--hair); }
.top__logo img { width: 124px; }
.top__tag { font-size: 13px; color: var(--t3); padding-inline-start: 20px; border-inline-start: 1px solid var(--hair); white-space: nowrap; }
.top__nav { display: flex; gap: 24px; margin-inline-start: auto; }
.top__nav a { font-size: 14px; color: var(--t2); text-decoration: none; transition: color .25s var(--ease); }
.top__nav a:hover { color: #fff; }
.lang { display: flex; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; }
.lang button { min-width: 36px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 12px; font-weight: 600; color: var(--t3); transition: background .25s var(--ease), color .25s var(--ease); }
.lang button[lang=he] { font-family: "Heebo", sans-serif; }
.lang button[aria-pressed=true] { background: #fff; color: var(--mid); }

.motion [data-r] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--expo), transform 1s var(--expo); }
.motion [data-r].is-in { opacity: 1; transform: none; }

/* hero */
.hero { padding: clamp(64px, 9vw, 130px) 0 clamp(64px, 8vw, 110px); background: radial-gradient(90% 60% at 70% 0%, #16304F 0%, transparent 70%); }
.kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); margin-bottom: 22px; }
[lang=he] .kicker { letter-spacing: .02em; }
.hero__t { max-width: 15ch; font: 500 clamp(44px, 7vw, 104px)/.98 var(--disp); font-stretch: 112%; letter-spacing: -.035em; }
[lang=he] .hero__t { letter-spacing: -.01em; line-height: 1.08; }
.hero__l { max-width: 58ch; margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); color: var(--t2); }
.player { position: relative; margin-top: clamp(48px, 6vw, 80px); border-radius: clamp(14px, 2vw, 24px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--hair), 0 60px 120px -40px rgba(0, 0, 0, .8); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; inset-inline-start: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--mid); font-size: 14px; font-weight: 600; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.player__btn:hover { transform: translateY(-2px); }
.player.has-controls .player__btn { opacity: 0; pointer-events: none; }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--hair); }
.specs dt { font-size: 12px; color: var(--t3); margin-bottom: 4px; letter-spacing: .08em; text-transform: uppercase; }
[lang=he] .specs dt { letter-spacing: 0; }
.specs dd { font-size: 15px; color: var(--t2); }

/* sections */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec--alt { background: var(--deep); }
.sh { display: grid; grid-template-columns: 25% minmax(0, 1fr); align-items: baseline; row-gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); padding-top: 20px; border-top: 1px solid var(--hair); }
.sh__n { font: 500 14px/1 var(--mono); color: var(--t3); }
.sh h2 { font: 500 clamp(34px, 4.4vw, 60px)/1.02 var(--disp); font-stretch: 110%; letter-spacing: -.03em; }
[lang=he] .sh h2 { letter-spacing: -.01em; line-height: 1.12; }
.sh__l { grid-column: 2; max-width: 58ch; font-size: 17px; color: var(--t2); }

/* logo */
.lg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lg__stage { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 24px; background: radial-gradient(80% 80% at 50% 30%, #173356 0%, #0B1A2E 70%); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.lg__stage::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent); }
.lg__svg { position: relative; width: 72%; }
.lg__svg .lk { width: 100%; height: auto; display: block; overflow: visible; }
.ghost { position: absolute; bottom: 16px; inset-inline-end: 16px; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; font-size: 13px; font-weight: 500; transition: background .25s var(--ease); }
.ghost:hover { background: rgba(255, 255, 255, .14); }
.beats { border-top: 1px solid var(--hair); }
.beats li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.beats li > .num { grid-row: span 2; font: 500 13px/1.6 var(--mono); color: var(--t3); direction: ltr; text-align: start; }
.beats b { font-weight: 500; font-size: 17px; }
.beats li > span:last-child { font-size: 14px; color: var(--t3); }
.dlrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dl { display: inline-grid; gap: 2px; padding: 12px 18px; border: 1px solid var(--hair); border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 500; transition: background .25s var(--ease), border-color .25s var(--ease); }
.dl small { font: 400 12px/1.4 var(--mono); color: var(--t3); }
.dl:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); }

/* storyboard */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px); counter-reset: sb; }
.board img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--hair); }
.board figcaption { display: grid; gap: 4px; margin-top: 14px; }
.board figcaption .num { font: 500 12px/1 var(--mono); color: var(--t3); }
.board figcaption b { font-size: 16px; font-weight: 500; }
.board figcaption span:last-child { font-size: 13.5px; color: var(--t3); line-height: 1.5; }

/* social */
.so { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: clamp(24px, 3.4vw, 48px); align-items: end; }
.so__f { border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--hair), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.so__i--v .so__f { aspect-ratio: 9 / 16; }
.so__i--s .so__f { aspect-ratio: 1; }
.so__f video { width: 100%; height: 100%; object-fit: cover; }
.so__i figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 14px; font-size: 14px; color: var(--t3); }
.so__i figcaption b { color: #fff; font: 500 14px var(--mono); }
.so__txt { align-self: center; }
.so__txt h3 { font: 500 22px/1.25 var(--disp); font-stretch: 108%; margin-bottom: 18px; }
.so__txt li { position: relative; padding: 12px 0 12px 0; padding-inline-start: 22px; border-top: 1px solid var(--hair); font-size: 15px; color: var(--t2); }
.so__txt li::before { content: ""; position: absolute; inset-inline-start: 0; top: 22px; width: 8px; height: 1px; background: #fff; }

/* micro-interactions */
.mi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mi__i { display: flex; flex-direction: column; border-radius: 22px; background: var(--mid); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.mi__s { position: relative; display: grid; place-items: center; min-height: 230px; margin: 10px; border-radius: 16px; background: var(--paper); color: var(--ink); padding: 24px; }
.mi__i h3 { padding: 16px 22px 0; font-size: 16px; font-weight: 500; }
.mi__sp { padding: 4px 22px 20px; font: 400 12px/1.5 var(--mono); color: var(--t3); }
[lang=he] .mi__sp { font-family: var(--sans); font-size: 13px; }

.u-btn { position: relative; display: grid; place-items: center; width: 200px; height: 52px; border: 0; border-radius: 12px; background: var(--mid); color: #fff; font-size: 15px; font-weight: 600; overflow: hidden; transition: width .32s var(--expo), border-radius .32s var(--expo), background .2s var(--ease); }
.u-btn > * { grid-area: 1 / 1; }
.u-btn__t { transition: opacity .12s var(--ease), transform .2s var(--ease); }
.u-btn__sp { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; opacity: 0; animation: spin .7s linear infinite; }
.u-btn__ck { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.u-btn.is-load .u-btn__t, .u-btn.is-done .u-btn__t { opacity: 0; transform: translateY(-8px); }
.u-btn.is-load .u-btn__sp { opacity: 1; }
.u-btn.is-done { width: 52px; border-radius: 26px; background: var(--ok); }
.u-btn.is-done .u-btn__ck { stroke-dashoffset: 0; transition: stroke-dashoffset .32s var(--expo) .12s; }
@keyframes spin { to { transform: rotate(360deg); } }

.u-swap { position: relative; display: grid; width: 100%; max-width: 280px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.u-swap__f { display: grid; gap: 2px; padding: 12px 16px; height: 68px; overflow: hidden; }
.u-swap__f + .u-swap__b + .u-swap__f { border-top: 1px solid var(--line); }
.u-swap__f small { font-size: 12px; color: var(--steel); }
.u-swap__v { font: 500 18px/1.2 var(--disp); font-stretch: 108%; color: var(--mid); white-space: nowrap; }
.u-swap__v i { font-style: normal; font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--steel); }
.u-swap__b { position: absolute; top: 50%; inset-inline-end: 16px; z-index: 1; width: 40px; height: 40px; margin-top: -20px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--mid); transition: transform .32s var(--expo), box-shadow .2s var(--ease); }
.u-swap__b:hover { box-shadow: 0 4px 14px rgba(11, 26, 46, .14); }
.u-swap__b svg { width: 16px; height: 16px; }

.u-step { display: grid; grid-template-columns: 48px 72px 48px; align-items: center; justify-items: center; row-gap: 8px; }
.u-step button { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 22px; color: var(--mid); transition: transform .12s var(--ease), background .2s var(--ease); }
.u-step button:active { transform: scale(.94); }
.u-step button:disabled { opacity: .35; cursor: not-allowed; }
.u-step__n { position: relative; height: 56px; width: 72px; overflow: hidden; display: grid; place-items: center; }
.u-step__n span { position: absolute; font: 500 44px/56px var(--disp); font-stretch: 108%; color: var(--mid); }
.u-step small { grid-column: 1 / -1; font-size: 13px; color: var(--steel); }

.u-seg { display: grid; justify-items: center; gap: 18px; width: 100%; }
.u-seg__l { position: relative; display: flex; padding: 4px; border-radius: 12px; background: var(--mist); }
.u-seg__l button { position: relative; z-index: 1; height: 36px; padding: 0 12px; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--steel); transition: color .2s var(--ease); white-space: nowrap; }
.u-seg__l button[aria-checked=true] { color: var(--mid); }
.u-seg__ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: #fff; box-shadow: 0 1px 3px rgba(11, 26, 46, .12); transition: left .32s var(--expo), width .32s var(--expo); }
.u-seg__p { text-align: center; }
.u-seg__p b { display: block; font: 500 34px/1 var(--disp); font-stretch: 108%; color: var(--mid); }
.u-seg__p small { font-size: 12px; color: var(--steel); }

.u-book { position: relative; display: grid; place-items: center; width: 250px; height: 56px; border: 0; border-radius: 14px; background: var(--mid); color: #fff; font-size: 15px; font-weight: 600; overflow: hidden; transition: width .5s var(--expo), border-radius .5s var(--expo), background .3s var(--ease); }
.u-book > * { grid-area: 1 / 1; }
.u-book__t { white-space: nowrap; transition: opacity .12s var(--ease); }
.u-book__ck { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.u-book.is-done { width: 56px; border-radius: 28px; background: var(--ok); }
.u-book.is-done .u-book__t { opacity: 0; }
.u-book.is-done .u-book__ck { stroke-dashoffset: 0; transition: stroke-dashoffset .32s var(--expo) .28s; }

.mi__s--note { place-items: stretch; align-content: start; gap: 12px; padding: 16px 16px 60px; }
.u-notes { display: grid; gap: 8px; }
.u-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 13px; }
.u-note b { font: 500 12px var(--mono); color: var(--steel); }
.u-note > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-note i { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #E6F2EC; color: var(--ok); }
.u-note.is-new i { animation: pulse 1s var(--ease) 1; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 85, .5); } 100% { box-shadow: 0 0 0 10px rgba(47, 125, 85, 0); } }
.ghost--dark { color: var(--mid); border-color: var(--line); background: #fff; }
.ghost--dark:hover { background: var(--mist); }

/* rules */
.ru { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ru article { padding: 26px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--hair); }
.ru svg { width: 120px; height: 80px; margin-bottom: 20px; }
.ru__c { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.ru__b rect { fill: rgba(255, 255, 255, .8); }
.ru__d { fill: #fff; }
.ru h3 { font: 500 20px/1.25 var(--disp); font-stretch: 108%; }
.ru p { margin-top: 10px; font-size: 15px; color: var(--t2); }
.more { margin-top: 32px; font-size: 15px; color: var(--t2); }
.more a { color: #fff; }

.foot { padding: 56px 0 110px; border-top: 1px solid var(--hair); }
.foot__in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; align-items: start; font-size: 13px; color: var(--t3); }
.foot__m { width: 32px; }
.foot__links { display: flex; gap: 18px; }

/* responsive */
@media (max-width: 1080px) {
  .top__nav { display: none; }
  .lang { margin-inline-start: auto; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .so { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
  .so__txt { grid-column: 1 / -1; }
  .mi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sh { grid-template-columns: 1fr; }
  .sh__l { grid-column: 1; }
  .lg { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ru { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .top { gap: 12px; }
  .top__logo img { width: 104px; }
  .top__tag { padding-inline-start: 12px; font-size: 12px; }
  .board { grid-template-columns: 1fr; }
  .so { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
  .so__f { border-radius: 14px; }
  .so__i figcaption { display: grid; gap: 2px; font-size: 12px; }
  .mi { grid-template-columns: 1fr; }
  .player__btn { inset-inline-start: 10px; bottom: 10px; height: 36px; padding: 0 12px; font-size: 12px; }
  .lg__stage { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
