/*
 * Studio Linea premium motion layer
 * Interaction patterns adapted from Fancy Components (MIT):
 * https://github.com/danielpetho/fancy
 * Selected patterns: Animated Gradient, Box Carousel, Circling Elements,
 * Cursor Attractor, Media Between Text, Parallax Floating, Simple Marquee,
 * Stacking Cards, Text Highlighter and Text Rotate.
 */

:root {
  --fancy-ease: cubic-bezier(.22, 1, .36, 1);
  --fancy-spring: cubic-bezier(.16, 1, .3, 1);
  --fancy-blue: #27335f;
  --fancy-violet: #7779a9;
  --fancy-sage: #dfe5d4;
  --fancy-paper: #f7f7f3;
  --fancy-ink: #11120f;
}

html { scroll-padding-top: 104px; }
body { text-rendering: optimizeLegibility; }
body::before {
  content: "";
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #27335f, #7d80b4 60%, #b3bc9f);
  transform: scaleX(var(--fancy-scroll, 0));
  transform-origin: left;
  will-change: transform;
}

::selection { color: #fff; background: var(--fancy-blue); }
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid #5364a9;
  outline-offset: 4px;
}

/* Shared chrome and microinteractions */
.nav {
  isolation: isolate;
  transition: width .5s var(--fancy-ease), top .5s var(--fancy-ease),
    background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.nav::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 10%, rgba(255,255,255,.8) 45%, transparent 75%);
  opacity: 0;
  transform: translateX(-40%);
  transition: opacity .3s ease, transform .8s var(--fancy-ease);
  pointer-events: none;
}
.nav.is-scrolled {
  top: 10px;
  width: min(1120px, 92vw);
  background: rgba(250,249,246,.94);
  border-color: rgba(17,18,15,.16);
  box-shadow: 0 18px 50px rgba(18,20,25,.1);
}
.nav.is-scrolled::before { opacity: .42; transform: translateX(50%); }
.links a, footer a, .foot a {
  position: relative;
}
.links a::after, footer a:not(.navcta)::after, .foot a:not(.navcta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--fancy-ease);
}
.links a:hover::after, .links a:focus-visible::after,
footer a:hover::after, footer a:focus-visible::after,
.foot a:hover::after, .foot a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.navcta, .btn, .button, .cardcta, .subCTA a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s ease, background-color .35s ease,
    border-color .35s ease, box-shadow .35s ease, transform .2s ease;
}
.navcta::before, .btn::before, .button::before, .cardcta::before, .subCTA a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.24), transparent 80%);
  transform: translateX(-120%);
  transition: transform .7s var(--fancy-ease);
}
.navcta:hover::before, .btn:hover::before, .button:hover::before,
.cardcta:hover::before, .subCTA a:hover::before { transform: translateX(120%); }
.navcta:hover, .btn:hover, .button:hover, .cardcta:hover {
  box-shadow: 0 14px 34px rgba(17,18,15,.18);
}

/* Consistent reveal language */
.fancy-ready .reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(28px);
  transition: opacity .85s var(--fancy-ease), transform .85s var(--fancy-ease), filter .85s ease;
}
.fancy-ready .reveal.in,
.fancy-ready .reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

/* Animated Gradient + hero composition */
.hero {
  min-height: auto;
  padding-top: clamp(152px, 15vw, 210px);
  padding-bottom: 110px;
  background:
    radial-gradient(50% 40% at 50% 4%, rgba(129,134,191,.18), transparent 75%),
    radial-gradient(38% 25% at 8% 26%, rgba(223,229,212,.42), transparent 75%),
    radial-gradient(36% 28% at 96% 45%, rgba(225,222,239,.48), transparent 75%),
    var(--fancy-paper);
}
.hero::before {
  width: 62vw;
  height: 62vw;
  min-width: 680px;
  min-height: 680px;
  top: -35vw;
  background: conic-gradient(from 40deg, rgba(98,110,180,.14), rgba(216,221,196,.22), rgba(209,204,228,.18), rgba(98,110,180,.14));
  filter: blur(55px);
  animation: fancy-gradient-drift 22s ease-in-out infinite alternate;
}
.hero-kicker {
  margin: 0 0 24px;
  color: #696b66;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { max-width: 1180px; margin-top: 0; text-wrap: balance; }
.fancy-rotate {
  display: inline-grid;
  min-height: 1.02em;
  perspective: 800px;
}
.fancy-rotate.is-leaving { animation: fancy-text-out .34s var(--fancy-ease) both; }
.fancy-rotate.is-entering { animation: fancy-text-in .48s var(--fancy-spring) both; }
.hero .lead { max-width: 840px; }
.hero-output-map {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(850px, 100%);
  margin: 42px auto 0;
  padding: 13px 15px;
  border: 1px solid rgba(17,18,15,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  box-shadow: 0 18px 60px rgba(28,31,45,.06);
  backdrop-filter: blur(18px);
}
.hero-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 999px;
  background: #101827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.hero-source i { width: 7px; height: 7px; border-radius: 50%; background: #50c38b; box-shadow: 0 0 0 4px rgba(80,195,139,.14); }
.hero-flow { flex: 1 1 40px; height: 1px; background: linear-gradient(90deg, #7980ad, transparent); }
.hero-output-map ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-output-map li { padding: 8px 11px; border: 1px solid rgba(17,18,15,.1); border-radius: 999px; background: #fff; color: #4f514d; font-size: 11px; white-space: nowrap; }
.heroStage { height: min(640px, 48vw); min-height: 500px; margin-top: 72px; }
.appshot {
  left: 5%;
  right: 5%;
  padding: 9px;
  transform: perspective(1400px) rotateX(8deg) scale(.95);
  transform-origin: center top;
  box-shadow: 0 70px 140px rgba(23,27,42,.2), 0 10px 34px rgba(23,27,42,.08);
  will-change: transform;
}
.appshot img { aspect-ratio: 1.806/1; object-fit: cover; object-position: top; }
.floatCard {
  animation: none;
  will-change: transform;
  transition: transform .35s var(--fancy-ease), box-shadow .35s ease;
}
.floatCard:hover { box-shadow: 0 36px 80px rgba(0,0,0,.19); }
.fc1 { width: 176px; top: 80px; }
.fc1 img { object-position: top; }
.fc2 { bottom: 60px; }

/* Simple Marquee */
.fancy-marquee {
  overflow: hidden;
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: #171a1d;
  color: #d7d8d2;
}
.fancy-marquee-track {
  display: flex;
  width: max-content;
  animation: fancy-marquee 32s linear infinite;
  will-change: transform;
}
.fancy-marquee:hover .fancy-marquee-track { animation-play-state: paused; }
.fancy-marquee-set { display: flex; align-items: center; flex: none; gap: 28px; padding-right: 28px; }
.fancy-marquee span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.fancy-marquee i { width: 5px; height: 5px; border-radius: 50%; background: #aeb78f; }

/* Media Between Text + Box Carousel */
.fancy-output-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(110px, 11vw, 168px) 0;
  background: #eeedf7;
}
.fancy-output-showcase::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 76% 46%, rgba(95,107,170,.18), transparent 34%);
  pointer-events: none;
}
.fancy-output-grid { position: relative; display: grid; grid-template-columns: minmax(0,.82fr) minmax(480px,1.18fr); gap: clamp(58px,8vw,120px); align-items: center; }
.fancy-output-copy .display { max-width: 9.2ch; }
.fancy-media-heading > span { display: block; }
.fancy-inline-media {
  overflow: hidden;
  width: 0;
  height: clamp(54px,6vw,78px);
  margin: 9px 0 8px;
  border-radius: 999px;
  opacity: 0;
  transition: width .95s var(--fancy-spring), opacity .25s ease;
}
.fancy-inline-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 56%; }
.fancy-media-heading.in-view .fancy-inline-media { width: min(320px, 84%); opacity: 1; }
.fancy-carousel-controls { display: flex; align-items: center; gap: 15px; margin-top: 34px; }
.fancy-carousel-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(17,18,15,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.66);
  color: var(--fancy-ink);
  font: inherit;
  font-size: 18px;
  cursor: pointer;
  transition: color .25s ease, background .25s ease, transform .25s var(--fancy-ease);
}
.fancy-carousel-controls button:hover { color: #fff; background: var(--fancy-blue); transform: scale(1.06); }
.fancy-carousel-controls span { color: #777975; font-size: 12px; letter-spacing: .08em; }
.fancy-carousel-controls strong { color: var(--fancy-ink); font-weight: 600; }
.fancy-box-carousel { min-width: 0; perspective: 1600px; touch-action: pan-y; cursor: grab; }
.fancy-box-carousel.is-dragging { cursor: grabbing; }
.fancy-box-stage { position: relative; width: min(520px, 100%); aspect-ratio: 1/1; margin: auto; perspective: 1450px; }
.fancy-box {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(-260px) rotateY(var(--box-angle, 0deg));
  transition: transform .85s var(--fancy-spring);
  will-change: transform;
}
.fancy-box-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17,18,15,.15);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 38px 90px rgba(28,30,47,.18);
  backface-visibility: hidden;
}
.fancy-box-face > img { width: 100%; height: calc(100% - 78px); object-fit: cover; }
.face-1 > img { object-position: center 18%; }
.fancy-box-face > span { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.fancy-box-face b { font-size: 18px; font-weight: 600; }
.fancy-box-face small { color: #777975; font-size: 12px; }
.face-1 { transform: rotateY(0deg) translateZ(260px); }
.face-2 { transform: rotateY(90deg) translateZ(260px); }
.face-3 { transform: rotateY(180deg) translateZ(260px); }
.face-4 { transform: rotateY(270deg) translateZ(260px); }
.proposal-preview { flex: 1; display: flex; flex-direction: column; padding: 54px 46px 35px; background: linear-gradient(145deg,#fff,#f1efe7); }
.proposal-preview small { color: #777975; letter-spacing: .13em; }
.proposal-preview strong { margin: 20px 0 35px; font-family: 'Playfair Display',serif; font-size: 45px; font-style: italic; font-weight: 400; }
.proposal-preview i { display: block; width: 100%; height: 1px; margin: 9px 0; background: rgba(17,18,15,.18); }
.proposal-preview i:nth-of-type(2) { width: 78%; }.proposal-preview i:nth-of-type(3) { width: 56%; }
.proposal-preview em { margin-top: auto; color: #656660; font-size: 13px; font-style: normal; }
.fancy-drag-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: #6f716d; font-size: 12px; }
.fancy-drag-hint span { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(17,18,15,.16); border-radius: 50%; }

/* Text Highlighter */
.fancy-highlight {
  background-image: linear-gradient(rgba(206,213,186,.85), rgba(206,213,186,.85));
  background-position: 0 88%;
  background-repeat: no-repeat;
  background-size: 0 28%;
  transition: background-size .9s var(--fancy-ease);
}
.fancy-highlight.is-highlighted { background-size: 100% 28%; }

/* Stacking Cards */
@media (min-width: 901px) {
  [data-stacking-cards] { position: relative; gap: 0; padding-bottom: 18vh; }
  [data-stacking-cards] .processStep {
    position: sticky;
    top: calc(100px + var(--stack-index, 0) * 16px);
    z-index: calc(10 + var(--stack-index, 0));
    margin-bottom: 12vh;
    border: 1px solid rgba(17,18,15,.1);
    box-shadow: 0 26px 70px rgba(23,25,20,.1);
    transform: scale(var(--stack-scale, 1));
    transform-origin: center top;
    will-change: transform;
  }
}

/* Circling Elements adaptation */
.phoneWrap { isolation: isolate; }
.phoneWrap::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  z-index: -1;
  border: 1px dashed rgba(39,51,95,.18);
  border-radius: 50%;
  transform: rotate(-9deg);
}
.socialIcon { animation: fancy-orbit 8s ease-in-out infinite; }
.socialIcon.tt { animation-delay: -2.6s; }.socialIcon.fb { animation-delay: -5.2s; }

/* Cards, showcases and pricing details */
.task, .owCard, .priceCard, .roiCard, .knowledgeFeature, .knowledgeLinks article,
.processStep, .caseStory article, .caseStory figure, .pdRelatedList a, .demo, .calendar,
.edFrame, .proofItem, .trustGrid > div {
  transition: transform .45s var(--fancy-ease), box-shadow .45s ease,
    border-color .35s ease, background-color .35s ease;
}
@media (hover:hover) {
  .task:hover, .owCard:hover, .priceCard:hover, .roiCard:hover,
  .knowledgeLinks article:hover, .pdRelatedList a:hover, .proofItem:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 58px rgba(18,20,17,.1);
  }
  .edFrame:hover, .calendar:hover, .demo:hover { box-shadow: 0 44px 110px rgba(18,20,17,.15); }
}
.film .play {
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(18,18,20,.18);
  color: #fff;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

/* Footer depth without changing IA */
footer, .site-footer { position: relative; overflow: hidden; }
footer::before, .site-footer::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -360px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012);
  pointer-events: none;
}

@keyframes fancy-gradient-drift {
  to { transform: translate3d(8%,7%,0) rotate(22deg) scale(1.08); }
}
@keyframes fancy-text-out {
  to { opacity: 0; transform: translateY(-.35em) rotateX(55deg); filter: blur(5px); }
}
@keyframes fancy-text-in {
  from { opacity: 0; transform: translateY(.35em) rotateX(-55deg); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes fancy-marquee { to { transform: translateX(-50%); } }
@keyframes fancy-orbit {
  0%,100% { transform: translate3d(0,0,0) rotate(-3deg); }
  35% { transform: translate3d(12px,-18px,0) rotate(5deg); }
  70% { transform: translate3d(-10px,10px,0) rotate(-6deg); }
}

@media (max-width: 1000px) {
  .fancy-output-grid { grid-template-columns: 1fr; }
  .fancy-output-copy { max-width: 720px; }
  .fancy-output-copy .display { max-width: 11ch; }
  .hero-output-map { width: min(680px,100%); }
  .hero-output-map ul { overflow: hidden; }
}

@media (max-width: 800px) {
  body::before { height: 1px; }
  .nav.is-scrolled { top: 8px; width: 94vw; }
  .hero { padding-top: 132px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(42px,12vw,62px); line-height: .94; }
  .hero-kicker { font-size: 10px; letter-spacing: .1em; }
  .hero-output-map { display: grid; grid-template-columns: auto 1fr; border-radius: 18px; }
  .hero-output-map ul { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero-output-map li { text-align: center; }
  .heroStage { height: 400px; min-height: 0; margin-top: 48px; }
  .appshot { left: 0; right: 0; transform: none; }
  .fancy-marquee { padding-block: 14px; }
  .fancy-output-showcase { padding: 94px 0; }
  .fancy-output-grid { gap: 52px; }
  .fancy-box-stage { width: min(86vw,480px); }
  .fancy-box { transform: none !important; display: flex; gap: 14px; inset: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 5vw 28px; scrollbar-width: none; }
  .fancy-box::-webkit-scrollbar { display: none; }
  .fancy-box-face { position: relative; inset: auto; flex: 0 0 min(76vw,390px); aspect-ratio: .9/1; transform: none !important; scroll-snap-align: center; backface-visibility: visible; }
  .fancy-box-face > img { height: calc(100% - 72px); }
  .proposal-preview { padding: 38px 30px 28px; }
  .proposal-preview strong { font-size: 34px; }
  .fancy-drag-hint { margin-top: 8px; }
  [data-stacking-cards] .processStep { position: relative; top: auto; margin-bottom: 14px; transform: none !important; }
  .phoneWrap::before { inset: 12% 5%; }
}

@media (max-width: 520px) {
  .hero { padding-top: 118px; }
  .hero .lead { font-size: 17px; }
  .hero-output-map { gap: 10px; padding: 10px; }
  .hero-output-map ul { gap: 6px; }
  .hero-output-map li { padding-inline: 7px; font-size: 10px; }
  .heroStage { height: 290px; }
  .fancy-output-showcase { padding: 78px 0; }
  .fancy-inline-media { height: 48px; }
  .fancy-media-heading.in-view .fancy-inline-media { width: 220px; }
  .fancy-box-stage { width: 100vw; margin-left: -6vw; }
  .fancy-box { padding-inline: 12vw; }
  .fancy-box-face { flex-basis: 76vw; }
  .fancy-carousel-controls { margin-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
  .hero::before, .fancy-marquee-track, .socialIcon { animation: none !important; }
  .fancy-marquee-track { transform: none; }
  .fancy-marquee-set[aria-hidden="true"] { display: none; }
  .fancy-inline-media { width: min(320px,84%); opacity: 1; }
  .fancy-box { transition: none; }
  .fancy-box-carousel { cursor: default; }
  .fancy-ready .reveal { opacity: 1; filter: none; transform: none; }
  [data-stacking-cards] .processStep { position: relative; top: auto; margin-bottom: 18px; transform: none !important; }
  [data-fancy-attractor], .floatCard, .appshot { transform: none !important; }
}

/* Mobile quality recovery: native flow instead of scaled desktop choreography. */
@media (max-width: 800px) {
  html { scroll-padding-top: 82px; }
  .nav {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100vw - 24px);
    min-height: 58px;
    height: 58px;
    padding-inline: 14px;
    border-radius: 14px;
  }
  .nav.is-scrolled { top: max(8px, env(safe-area-inset-top)); width: calc(100vw - 24px); }
  .nav .logo { font-size: 17px; }
  .nav .navcta { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; }

  .hero { padding-top: 104px; padding-bottom: 44px; }
  .hero h1 { font-size: clamp(39px, 11.2vw, 50px); line-height: .96; }
  .hero .lead { margin-block: 24px; font-size: 16px; line-height: 1.5; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; }
  .hero-output-map {
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    margin-top: 28px;
    padding: 9px;
    border-radius: 15px;
    box-shadow: 0 12px 34px rgba(28,31,45,.05);
  }
  .hero-source { padding: 8px 11px; }
  .hero-output-map ul { gap: 5px; }
  .hero-output-map li { padding: 7px 5px; font-size: 9.5px; }
  .heroStage { height: 238px; margin-top: 30px; }
  .appshot { padding: 5px; border-radius: 14px; box-shadow: 0 28px 64px rgba(23,27,42,.14); }

  .fancy-marquee { padding-block: 11px; }
  .fancy-marquee-track { animation-duration: 42s; }

  .fancy-output-showcase { padding: 58px 0 54px; }
  .fancy-output-grid { gap: 30px; }
  .fancy-output-copy .kicker { font-size: 13px; }
  .fancy-output-copy .display { max-width: 10ch; margin-bottom: 20px; }
  .fancy-output-copy .copy { font-size: 16px; line-height: 1.5; }
  .fancy-inline-media { height: 42px; margin-block: 7px; }
  .fancy-media-heading.in-view .fancy-inline-media { width: 190px; }
  .fancy-carousel-controls { gap: 10px; margin-top: 22px; }
  .fancy-carousel-controls button { display: none; }
  .fancy-carousel-controls > span { display: none; }
  .fancy-carousel-dots { display: flex; align-items: center; gap: 7px; min-height: 20px; }
  .fancy-carousel-dots i {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(39,51,95,.25);
    transition: width .25s ease, background-color .25s ease;
  }
  .fancy-carousel-dots i.is-active { width: 22px; background: var(--fancy-blue); }
  .fancy-box-carousel { width: 100vw; margin-left: calc(50% - 50vw); cursor: default; touch-action: pan-x pan-y; }
  .fancy-box-stage { width: 100%; aspect-ratio: auto; }
  .fancy-box {
    position: relative;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    padding: 4px 20px 18px;
    -webkit-overflow-scrolling: touch;
  }
  .fancy-box-face {
    flex: 0 0 82vw;
    height: clamp(272px, 76vw, 326px);
    aspect-ratio: auto;
    border-radius: 16px;
    scroll-snap-align: start;
    box-shadow: 0 18px 42px rgba(28,30,47,.12);
  }
  .fancy-box-face > img { height: calc(100% - 62px); }
  .fancy-box-face > span { min-height: 62px; padding: 15px 17px; }
  .fancy-box-face b { font-size: 16px; }
  .fancy-box-face small { font-size: 11px; }
  .proposal-preview { padding: 28px 24px 20px; }
  .proposal-preview strong { margin: 13px 0 22px; font-size: 29px; }
  .fancy-drag-hint { margin-top: 4px; }
  .fancy-drag-hint span { width: 26px; height: 26px; }

  /* Mobile content must never depend on a tall element reaching a desktop reveal ratio. */
  .fancy-ready .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .dark.workday, .bespokeScale, .social, .knowledge, .faq { padding-block: 76px; }
  .objectWorkspace { padding-top: 72px; padding-bottom: 48px; }
  .editorShowcase { padding-top: 48px; padding-bottom: 76px; }
  .workdayGrid { gap: 38px; }
  .taskStack { min-height: 0; }
  .task { padding: 14px 16px; }
  .bespokeIntro { margin-bottom: 38px; }
  .processStep {
    min-height: 0;
    gap: 16px 12px;
    padding: 22px 18px;
    border-radius: 15px;
  }
  .processStep h3 { font-size: 23px; }
  .designBoard, .templateStack, .testObject, .scaleVisual { max-height: 145px; }
  .socialTop, .socialWorkspace { gap: 34px; }
  .socialWorkspace { margin-top: 36px; }
  .phoneWrap.calendarPhone { min-height: 540px; }
  .phone { width: min(270px, 74vw); height: 520px; }
  .socialIcon { width: 58px; height: 58px; border-radius: 18px; animation: none; }
  .socialIcon svg { width: 28px; height: 28px; }
  .calendar { padding: 14px; }
  .calDay { min-height: 250px; }
  .roiPricing { padding-block: 76px; }
  .roiCalculator { margin-top: 38px; }
  .roiInputs, .roiResults { padding: 24px; }
  .roiResults { min-height: 350px; }
  .roiBridge { margin-top: 64px; }
  .roiPlans { margin-top: 64px; }
  .roiCards { gap: 12px; margin-top: 30px; }
  .roiCard { padding: 24px; }
  .knowledgeEditorial { gap: 32px; margin-top: 32px; }
  .faqrow { padding-block: 20px; font-size: 17px; }
}

@media (max-width: 360px) {
  .nav { width: calc(100vw - 16px); padding-inline: 11px; }
  .nav.is-scrolled { width: calc(100vw - 16px); }
  .nav .logo { font-size: 15px; }
  .nav .navcta { padding-inline: 11px; font-size: 12px; }
  .hero { padding-top: 96px; }
  .hero h1 { font-size: 37px; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .heroStage { height: 210px; }
  .fancy-box-face { flex-basis: 82vw; height: 266px; }
}

/* Surgical pre-Fancy restore: workspace composition and mobile navigation. */
.heroStage {
  height: 680px;
  min-height: 0;
  margin-top: 90px;
  perspective: 1300px;
}
.appshot {
  left: 7%;
  right: 7%;
  top: 0;
  padding: 8px;
  border-radius: 18px;
  transform: rotateX(7deg) scale(.93);
  transform-origin: 50% 50%;
  box-shadow: 0 55px 120px rgba(0,0,0,.15);
  transition: .15s;
  will-change: auto;
}
.appshot img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 43%;
}
.floatCard { animation: float 4s ease-in-out infinite; will-change: auto; }
.fc1 { width: 180px; top: 100px; }
.fc2 { bottom: 90px; }

@media (max-width: 800px) {
  body.nav-open { overflow: hidden; }
  .nav, .nav.is-scrolled {
    top: 16px;
    width: min(1220px,92vw);
    height: auto;
    min-height: 66px;
    padding: 0 14px;
  }
  .nav::before { display: none; }
  .nav .logo { font-size: 20px; }
  .nav .navcta {
    display: inline-block;
    min-height: 0;
    padding: 12px 17px;
  }
  .nav .links a { min-height: 44px; line-height: 20px; }
  .nav .links a::after { display: none; }
  .heroStage { height: clamp(255px, 72vw, 310px); margin-top: 90px; }
  .appshot { left: 0; right: 0; padding: 8px; }
  .appshot img { aspect-ratio: 4 / 3; object-position: 46% 42%; }
}
