/* Studio iteration: preserve Flota's palette, type and wave motif. */
:root { --muted: #a1adc2; }
/* Original .8s reveal; visible at once when opening, so the first link can take focus. */
.menu-open .menu { transition-duration: .8s, 0s; }
.menu nav a { font-size: clamp(30px,8vw,72px); }
.hero.hero--studio { min-height: 820px; justify-content: center; padding-block: 150px 70px; }
.hero__layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr); gap: 50px; align-items: center; }
.hero__copy { min-width: 0; }
.hero--studio .hero__title { font-size: clamp(58px,7.6vw,114px); }
.hero--studio .hero__handle { color: #b0c0d8; margin-bottom: 28px; font-size: 17px; }
.hero--studio .hero__text { max-width: 540px; margin-top: 32px; color: #c1ccdf; font-size: 19px; }
.hero--studio .hero__btns { margin-top: 30px; }
.hero__note { max-width: 400px; font-size: 14px; color: var(--muted); margin-top: 24px; }
.hero-demo { margin: 0; min-width: 0; width: 100%; max-width: 420px; justify-self: center; }
.demo-tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; }
.demo-tabs button { cursor: pointer; border: 1px solid transparent; background: transparent; padding: 10px 20px; border-radius: 30px; color: var(--muted); font-size: 14px; }
.demo-tabs button[aria-selected="true"] { border-color: #a8cfff4d; background: #9ac6ff12; color: var(--fg); }
.demo-panel { display: grid; justify-items: center; }
.demo-frame { position: relative; width: 254px; aspect-ratio: 9/15; border-radius: 28px; overflow: hidden; border: 7px solid #18243a; outline: 1px solid #bad6ff38; background: #172b45; box-shadow: 0 32px 100px #02050d88; }
.demo-scene { position: absolute; width: 100%; height: 100%; inset: 0; }
.demo-video-top { position: absolute; z-index: 1; inset: 14px 16px auto; display: flex; justify-content: space-between; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 10px #000; }
.demo-video-top__mark { letter-spacing: 2px; }
.demo-author { display: flex; gap: 8px; align-items: center; position: absolute; left: 15px; bottom: 18px; font-size: 12px; line-height: 1.25; text-shadow: 0 1px 8px #000; }
.demo-author small { display: block; font-size: 10px; margin-top: 3px; color: #dce6f6; }
.demo-author__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#9cbbd4,#395b87); border: 1px solid #ffffff80; }
.demo-banner { position: absolute; z-index: 2; left: 12px; right: 12px; top: 72%; padding: 11px 10px; border-radius: 9px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; background: #f3f6fc; color: #11203b; box-shadow: 0 6px 24px #040c2280; font-size: 14px; font-weight: 700; transition: top .3s ease; }
.demo-banner small { display: block; font-size: 9px; font-weight: 500; color: #425471; margin-top: 2px; }
.demo-banner img { border-radius: 6px; }
.demo-frame[data-banner-position="top"] .demo-banner { top: 15%; }
.demo-position-line { position: absolute; inset: 12% 8px auto; height: 1px; background: #ffffff35; }
.demo-frame[data-banner-position="bottom"] .demo-position-line { top: 89%; }
.demo-panel[data-platform="reels"] .demo-scene { filter: hue-rotate(27deg); }
.demo-panel[data-platform="shorts"] .demo-scene { filter: hue-rotate(-15deg) saturate(.7); }
.demo-options { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; font-size: 12px; color: var(--muted); }
.demo-options > div { display: flex; background: #101b2e; padding: 3px; border-radius: 8px; }
.demo-options button { border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--muted); }
.demo-options button[aria-pressed="true"] { color: var(--fg); background: #293e61; }
.hero-demo figcaption { text-align: center; margin: 14px auto 0; font-size: 12px; color: var(--muted); max-width: 290px; }
.platform-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 36px; border-block: 1px solid var(--line); }
.platform-strip p { color: var(--muted); font-size: 14px; line-height: 1.4; }
.platform-strip > div { display: flex; align-items: center; gap: clamp(20px,3.5vw,58px); flex-wrap: wrap; }
.platform-strip span { font-size: clamp(18px,2vw,26px); font-weight: 650; letter-spacing: -.025em; }
.platform-strip .platform-strip__more { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.paths { padding-block: 100px; }
.path { min-height: 600px; }
.ambassador { padding-bottom: 100px; }
.ambassador .h2 { font-size: clamp(36px,5.1vw,82px); }
.fit { padding-block: 80px 100px; }
.fit__list { border-top: 1px solid var(--line); }
.fit article { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 50px; align-items: center; padding-block: 32px; border-bottom: 1px solid var(--line); }
.fit h3 { font-size: 26px; line-height: 1.18; letter-spacing: -.025em; font-weight: 600; max-width: 650px; }
.fit p { color: var(--muted); margin-top: 12px; max-width: 650px; }
.fit article > a { justify-self: end; color: var(--blue-1); font-size: 18px; display: flex; gap: 18px; align-items: center; }
.fit article > a:hover { text-decoration: underline; text-underline-offset: 5px; }
.process__stack { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.process .step { position: relative; top: auto; min-height: 250px; margin: 0; padding: 32px; gap: 24px; align-items: start; }
.process .step__n { font-size: 48px; line-height: 1; color: var(--blue-1); }
.step h3 { font-size: 30px; margin-top: 4px; }
.process .step:nth-child(4) .step__n { color: #fff; }
.process__guar { margin-top: 44px; }
.footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer__col h3 { font-size: 15px; }
.footer__bottom button { background: transparent; border: 0; padding: 0; cursor: pointer; font-size: 14px; }
.cookie { width: min(440px,calc(100vw - 32px)); visibility: hidden; transition: transform .7s var(--ease), visibility 0s linear .7s; }
/* A dismissed banner leaves the tab order; an open menu is never covered by it. */
.cookie.is-on { visibility: visible; transition-delay: 0s; }
.menu-open .cookie { visibility: hidden; }
.cookie__title { font-size: 20px; margin-bottom: 8px; }
.cookie__btns .btn { padding: 13px 18px; }
.cookie-dialog { color: var(--fg); background: var(--bg-2); border: 1px solid #ffffff30; border-radius: 24px; padding: 28px; width: min(540px,calc(100vw - 32px)); max-height: calc(100svh - 48px); overflow: auto; }
html.dialog-open { overflow: hidden; scrollbar-gutter: stable; }
.cookie-dialog { overscroll-behavior: contain; }
.cookie-dialog::backdrop { background: #030712b8; backdrop-filter: blur(5px); }
.cookie-dialog h2 { font-size: 30px; letter-spacing: -.03em; margin-right: 30px; }
.cookie-dialog > p { color: var(--muted); margin-top: 16px; }
.cookie-dialog__close { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; color: var(--fg); font-size: 24px; cursor: pointer; }
.cookie-category { display: flex; gap: 24px; justify-content: space-between; margin-block: 24px; padding-block: 20px; border-block: 1px solid var(--line); }
.cookie-category h3 { font-size: 18px; }
.cookie-category p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.cookie-category > span { flex-shrink: 0; color: var(--blue-1); font-size: 13px; padding-top: 4px; }
.cookie-dialog .btn { margin-top: 24px; }
.legal-draft { max-width: 780px; color: #c4cad8; border-left: 2px solid var(--blue); padding: 14px 20px; margin-top: 28px; background: #3c8cf010; font-size: 15px; }
.legal .legal__body section { scroll-margin-top: 110px; }
/* Let the cookie table scroll inside its box instead of widening the column on phones. */
.legal > * { min-width: 0; }
.legal__body h3 { font-size: 20px; margin-bottom: 12px; }
.page-hero .page-title { overflow-wrap: anywhere; }
@media (max-width: 1200px) {
  .hero__layout { gap: 30px; }
  .hero--studio .hero__title { font-size: 7.3vw; }
  .path { min-height: 0; }
  .path h3 { margin-top: 60px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1/-1; }
}
@media (max-width: 1000px) {
  .hero.hero--studio { min-height: 0; padding-top: 130px; }
  .hero__layout { grid-template-columns: 1fr; gap: 50px; }
  .hero--studio .hero__title { font-size: clamp(52px,10vw,96px); }
  .hero-demo { max-width: 460px; }
  .demo-frame { width: 230px; }
  .platform-strip { align-items: start; }
  .platform-strip > div { gap: 15px 28px; }
  .ambassador .h2 { font-size: clamp(36px,7vw,72px); }
  .fit article { gap: 25px; }
  .fit article > a { font-size: 16px; }
  .process .step { display: block; padding: 26px; }
  .process .step__n { display: block; margin-bottom: 24px; }
  .step h3 { font-size: 26px; }
}
@media (max-width: 600px) {
  .hero.hero--studio { padding-block: 125px 50px; }
  .hero--studio .hero__title { font-size: clamp(34px,10.2vw,62px); letter-spacing: -.05em; }
  .hero--studio .hero__handle { font-size: 14px; margin-bottom: 24px; }
  .hero--studio .hero__text { font-size: 18px; margin-top: 26px; }
  .hero__note { font-size: 13px; }
  .hero__layout { gap: 42px; }
  .demo-frame { width: 214px; }
  .demo-tabs { margin-bottom: 20px; }
  .demo-tabs button { padding-inline: 18px; }
  .demo-options { gap: 8px; }
  .demo-banner { padding: 9px 8px; font-size: 12px; }
  .demo-banner small { font-size: 8px; }
  .platform-strip { display: block; padding-block: 26px; }
  .platform-strip p { margin-bottom: 20px; }
  .platform-strip p br { display: none; }
  .platform-strip > div { gap: 12px 24px; }
  .platform-strip span { font-size: 20px; }
  .paths,.ambassador,.formats,.fit,.process,.faq { padding-block: 60px; }
  .fit article { grid-template-columns: 1fr; gap: 20px; padding-block: 26px; }
  .fit h3 { font-size: 23px; }
  .fit article > a { justify-self: start; font-size: 15px; }
  .process__stack { grid-template-columns: 1fr; gap: 14px; }
  .process .step { min-height: 0; }
  .process .step__n { font-size: 40px; margin-bottom: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cookie { left: 16px; right: 16px; }
  .cookie-dialog { padding: 24px 20px; }
  .cookie-category { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .demo-banner { transition: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cookie-dialog a { color: var(--blue-1); text-decoration: underline; text-underline-offset: 3px; }
.hero--studio .hero__title .line { overflow: hidden; }
.motion-rot > span:not(:first-child) { visibility: hidden; }
.motion-enabled .marquee__track { animation: none; }
/* Lenis owns smooth scrolling; native smoothing would turn its instant jumps and focus scrolls into competing animations. */
html.lenis { scroll-behavior: auto; }
.motion-enabled .process__stack { display: block; }
.motion-enabled .process .step { position: sticky; top: 110px; min-height: 320px; margin-bottom: 24px; display: grid; grid-template-columns: auto minmax(0,1fr); gap: 45px; align-items: end; }
.motion-enabled .process .step:nth-child(2) { top: 130px; }
.motion-enabled .process .step:nth-child(3) { top: 150px; }
.motion-enabled .process .step:nth-child(4) { top: 170px; }
.motion-enabled .process .step__n { font-size: clamp(80px,12vw,180px); margin: 0; }
.formats--scroll .formats__pin { min-height: 100svh; padding-block: 100px 50px; overflow: hidden; }
.formats--scroll .format-grid { display: flex; width: max-content; gap: 28px; }
.formats--scroll .format { width: min(70vw,620px); flex-shrink: 0; }
.formats--scroll .format-art { height: clamp(150px,34svh,290px); }
.formats--scroll .format p { max-width: 530px; min-height: 78px; }
.formats--scroll .formats__more { margin-top: 28px; }
@media (max-width: 1000px) {
  .formats--scroll .formats__pin { padding-block: 90px 36px; }
  .formats--scroll .format-grid { gap: 20px; }
  .formats--scroll .format { display: block; width: min(80vw,520px); }
  .formats--scroll .format h3 { margin-top: 18px; }
  .formats--scroll .format p { min-height: 0; }
}
.cta { min-height: 100svh; }
.page-title { overflow: hidden; }
.footer__word { font-size: 30vw; }
@media (max-width: 600px) {
  .motion-enabled .process .step { top: 95px; grid-template-columns: 1fr; min-height: 320px; gap: 30px; align-content: space-between; }
  .motion-enabled .process .step:nth-child(2) { top: 105px; }
  .motion-enabled .process .step:nth-child(3) { top: 115px; }
  .motion-enabled .process .step:nth-child(4) { top: 125px; }
  .motion-enabled .process .step__n { font-size: 72px; }
}

/* Studio location, supplied by the owner. */
.hero__location { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; letter-spacing: .02em; color: var(--muted); }
.footer__brand .footer__location { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-size: 14px; }
.footer__location svg { flex-shrink: 0; color: var(--blue-1); }

/* Telegram programme example in the hero, using Flota's existing palette. */
.amb-chat { border: 1px solid #bad6ff38; border-radius: 24px; overflow: hidden; background: #101b2e; box-shadow: 0 28px 90px #02050d66; }
.amb-chat__head { display: flex; align-items: center; gap: 13px; padding: 22px; border-bottom: 1px solid var(--line); }
.amb-chat__avatar { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; color: #11203b; background: var(--blue-1); }
.amb-chat__head h2 { font-size: 18px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; }
.amb-chat__head p { color: var(--muted); font-size: 12px; margin-top: 5px; }
.amb-chat__body { display: grid; gap: 14px; padding: 20px; }
.amb-chat__pin, .amb-chat__message { border: 1px solid var(--line); background: #16253d; padding: 17px; border-radius: 5px 17px 17px; }
.amb-chat__pin > span { display: block; font-size: 11px; color: var(--blue-1); margin-bottom: 10px; }
.amb-chat h3 { font-size: 15px; line-height: 1.35; font-weight: 600; }
.amb-chat__pin ul { list-style: none; display: grid; gap: 8px; padding: 0; margin-top: 15px; font-size: 13px; color: #c1ccdf; }
.amb-chat__pin li { border-left: 2px solid #63c0fb60; padding-left: 10px; }
.amb-chat__message p, .amb-chat__reply p { font-size: 13px; line-height: 1.6; color: #c1ccdf; }
.amb-chat__message p { margin-top: 8px; }
.amb-chat__reply { justify-self: end; max-width: 85%; padding: 12px 15px; border-radius: 16px 5px 16px 16px; background: #244369; }
.amb-chat__foot { border-top: 1px solid var(--line); padding: 15px; text-align: center; color: var(--muted); font-size: 11px; }
.path--primary { border-color: #63c0fb80; }
@media (max-width: 600px) { .amb-chat__head { padding: 18px; } .amb-chat__body { padding: 15px; } .amb-chat__head h2 { font-size: 16px; } }

.hero__note a { color: var(--blue-1); text-decoration: underline; text-underline-offset: 3px; }

/* Motion geometry from the original Flota sources and process sections. */
.formats--scroll { max-width: none; padding-inline: 0; }
.formats--scroll .formats__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 48px; padding-block: 100px; }
.formats--scroll .sec-head { margin-inline: var(--gutter); margin-bottom: 0; }
.formats--scroll .format-grid { gap: 20px; padding-inline: var(--gutter); }
.formats--scroll .format { width: min(80vw,500px); }
.formats--scroll .formats__more { margin: 0 var(--gutter); }
.motion-enabled .process .step { min-height: 360px; gap: 0 clamp(24px,5vw,80px); padding: clamp(28px,4vw,56px); }
.motion-enabled .process .step__n { font-size: clamp(96px,17vw,250px); line-height: .8; }
.motion-enabled .process .step h3 { font-size: clamp(30px,3.6vw,58px); line-height: 1; }
@media (max-width: 600px) {
  .motion-enabled .process .step { top: 110px; min-height: 300px; }
  .motion-enabled .process .step:nth-child(2) { top: 130px; }
  .motion-enabled .process .step:nth-child(3) { top: 150px; }
  .motion-enabled .process .step:nth-child(4) { top: 170px; }
}
