/* Investir.pt homepage animation in a coded macOS Safari window (Work page, Investir.pt slider).
   Generated by _sources/investir_build.py from the Figma prototype "investir.pt full page" (Investir.pt, 3313:1429):
   1 blank page (0.5s) → 2 layout grid slides in (1s ease-out) → 3 header fades in moving down 16pt while the page fades in moving up 16pt (1s ease-out)
   → 4 grid slides out (1s ease-out) → 5 page scrolls to the footer (3.125s Figma "Slow" spring) → dissolve back to 1 (1.25s spring).
   Units: 1u = 1pt of the 1440-wide window, so the whole window scales with the slide. */

/* Fonts used by investir.pt */
/* Hind (Investir.pt headings), self-hosted, Latin subset */
@font-face { font-family: "Hind"; src: url("/assets/fonts/Hind-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hind"; src: url("/assets/fonts/Hind-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@import url("https://api.fontshare.com/v2/css?f[]=amulya@500,700&display=swap");

.sfw { height: 100%; container-type: size; display: grid; place-items: center; }
.sf { width: min(86cqw, 86cqh * 1440 / 892); container-type: inline-size; }
.sf__in { --u: calc(100cqw / 1440);
  --bar: #f7f7f8; --bar-ink: #3c3c43; --bar-line: rgba(0, 0, 0, .1); --pill: rgba(255, 255, 255, .78); --pill-line: rgba(0, 0, 0, .08); --field: rgba(118, 118, 128, .1);
  position: relative; border-radius: calc(26 * var(--u)); overflow: hidden; background: #fafafa;
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(0, 0, 0, .14), 0 calc(24 * var(--u)) calc(70 * var(--u)) rgba(0, 0, 0, .22), 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(0, 0, 0, .1);
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; }
:root[data-theme="dark"] .sf__in { --bar: #2a2a2c; --bar-ink: #e5e5ea; --bar-line: rgba(255, 255, 255, .08); --pill: rgba(255, 255, 255, .09); --pill-line: rgba(255, 255, 255, .1); --field: rgba(255, 255, 255, .09);
  box-shadow: 0 0 0 calc(1 * var(--u)) rgba(255, 255, 255, .12), 0 calc(24 * var(--u)) calc(70 * var(--u)) rgba(0, 0, 0, .6); }

/* Toolbar: traffic lights, glass pills, compact address field */
.sf__bar { position: relative; height: calc(56 * var(--u)); display: flex; align-items: center; gap: calc(12 * var(--u)); padding: 0 calc(14 * var(--u)) 0 calc(20 * var(--u));
  background: var(--bar); box-shadow: inset 0 calc(-1 * var(--u)) 0 var(--bar-line); color: var(--bar-ink); }
.sf__bar svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sf__lights { display: flex; gap: calc(9 * var(--u)); margin-right: calc(10 * var(--u)); }
.sf__lights i { width: calc(13 * var(--u)); height: calc(13 * var(--u)); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 calc(.6 * var(--u)) rgba(0, 0, 0, .14); }
.sf__lights i:nth-child(2) { background: #febc2e; }
.sf__lights i:nth-child(3) { background: #28c840; }
.sf__pill { height: calc(36 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: 999px;
  background: var(--pill); box-shadow: 0 0 0 calc(.8 * var(--u)) var(--pill-line), 0 calc(1 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, .06); }
.sf__sep { width: calc(1 * var(--u)); height: calc(18 * var(--u)); background: var(--bar-line); margin: 0 calc(-4 * var(--u)); }
.sf__pill--tools { margin-left: auto; }
.sf__url { position: absolute; left: 50%; top: calc(10 * var(--u)); transform: translateX(-50%); width: calc(560 * var(--u)); height: calc(36 * var(--u));
  display: flex; align-items: center; justify-content: center; gap: calc(8 * var(--u)); border-radius: 999px; background: var(--field);
  font-size: calc(14 * var(--u)); font-weight: 500; letter-spacing: -.01em; }
.sf__url svg:last-child { position: absolute; right: calc(12 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); opacity: .7; }
.sf__url .sf__fav { width: calc(14 * var(--u)); height: calc(14 * var(--u)); stroke: none; }
:root[data-theme="dark"] .sf__url .sf__fav path { fill: #e5e5ea; }

/* Page viewport: 1440 x 840, the Figma frame */
.sf__view { position: relative; height: calc(840 * var(--u)); overflow: hidden; background: #ffffff; }
.sf__view > div { position: absolute; inset: 0; }
.ip__page { will-change: transform, opacity; }
.ip-r, .ip-i, .ip-v, .ip-t { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); margin: 0; }
.ip-r, .ip-i, .ip-v { height: calc(var(--h) * var(--u)); display: block; }
/* beat the slider's own img rule (.slider__slide img: 100% x 100%) */
.sf__view .ip-i { width: calc(var(--w) * var(--u)); height: calc(var(--h) * var(--u)); object-fit: cover; max-width: none; background: #e9eaec; }
.ip-t { overflow-wrap: break-word; }
.ip-t--nw { white-space: nowrap; }
.ip-t--mid { height: calc(var(--h) * var(--u)); display: flex; align-items: center; justify-content: center; }
.ipt1{font-family:"Amulya", system-ui, sans-serif;font-weight:700;font-size:calc(16 * var(--u));line-height:calc(22.4 * var(--u));color:#0ea1cd;text-align:center}
.ipt2{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(16 * var(--u));line-height:calc(22.4 * var(--u));color:#333333;text-align:center;text-decoration:underline;text-underline-offset:.18em;text-decoration-thickness:calc(1 * var(--u))}
.ipt3{font-family:"Hind", system-ui, sans-serif;font-weight:700;font-size:calc(40 * var(--u));line-height:calc(48 * var(--u));color:#1a1a1a;text-align:left;letter-spacing:-0.02em}
.ipt4{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(20 * var(--u));line-height:calc(28 * var(--u));color:#525252;text-align:left}
.ipt5{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(14 * var(--u));line-height:calc(20.3 * var(--u));color:#0ea1cd;text-align:left}
.ipt6{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(14 * var(--u));line-height:calc(20.3 * var(--u));color:#333333;text-align:left}
.ipt7{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(14 * var(--u));line-height:calc(20.3 * var(--u));color:#525252;text-align:left}
.ipt8{font-family:"Hind", system-ui, sans-serif;font-weight:700;font-size:calc(28 * var(--u));line-height:calc(33.6 * var(--u));color:#1a1a1a;text-align:left}
.ipt9{font-family:"Hind", system-ui, sans-serif;font-weight:700;font-size:calc(24 * var(--u));line-height:calc(28.8 * var(--u));color:#1a1a1a;text-align:left}
.ipt10{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(14 * var(--u));line-height:calc(20.3 * var(--u));color:#525252;text-align:center}
.ipt11{font-family:"Hind", system-ui, sans-serif;font-weight:500;font-size:calc(28 * var(--u));line-height:calc(33.6 * var(--u));color:#525252;text-align:center}
.ipt12{font-family:"Hind", system-ui, sans-serif;font-weight:700;font-size:calc(22 * var(--u));line-height:calc(24.2 * var(--u));color:#1a1a1a;text-align:left}
.ipt13{font-family:"Amulya", system-ui, sans-serif;font-weight:700;font-size:calc(16 * var(--u));line-height:calc(22.4 * var(--u));color:#111b43;text-align:right}
.ipt14{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(16 * var(--u));line-height:calc(22.4 * var(--u));color:#525252;text-align:left}
.ipt15{font-family:"Amulya", system-ui, sans-serif;font-weight:500;font-size:calc(14 * var(--u));line-height:calc(20.3 * var(--u));color:#878787;text-align:center}
.ipt16{font-family:"Amulya", system-ui, sans-serif;font-weight:700;font-size:calc(18 * var(--u));line-height:calc(18 * var(--u));color:#1a1a1a;text-align:center;text-transform:capitalize}

/* Layout grid overlay (#0ea1cd at 50%) */
.ip__grid { pointer-events: none; }
.ip-col, .ip-row { position: absolute; display: block; opacity: .5; box-sizing: border-box; }
.ip-col { left: calc(var(--x) * var(--u)); top: 0; width: calc(318 * var(--u)); height: calc(840 * var(--u));
  border-left: calc(2 * var(--u)) solid #0ea1cd; border-right: calc(2 * var(--u)) solid #0ea1cd; }
.ip-row { left: 0; top: 0; width: calc(1440 * var(--u)); height: calc(var(--h) * var(--u)); border-bottom: calc(2 * var(--u)) solid #0ea1cd; }

/* ---------- Timeline (one loop = 9.175s) ---------- */
.sf__view .ip__page { animation: ip-page 9.175s infinite; }
.sf__view .ip__nav { animation: ip-nav 9.175s infinite; }
.ip-col { animation: ip-col 9.175s infinite; }
.ip-row { animation: ip-row 9.175s infinite; }
.sf.is-paused .ip__page, .sf.is-paused .ip__nav, .sf.is-paused .ip-col, .sf.is-paused .ip-row { animation-play-state: paused; }
@keyframes ip-col {
  0%, 5.450% { transform: translateY(calc(-840 * var(--u))); opacity: .5; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  16.349%, 30.518% { transform: none; opacity: .5; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  41.417%, 100% { transform: translateY(calc(840 * var(--u))); opacity: 0; }
}
@keyframes ip-row {
  0%, 5.450% { transform: translateX(calc(-1440 * var(--u))); opacity: .5; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  16.349%, 30.518% { transform: none; opacity: .5; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  41.417%, 100% { transform: translateX(calc(1440 * var(--u))); opacity: 0; }
}
@keyframes ip-page {
  0%, 19.074% { transform: translateY(calc(16 * var(--u))); opacity: 0; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  29.973%, 46.866% { transform: none; opacity: 1; animation-timing-function: linear(-0.000 0.0%, 0.306 4.2%, 0.631 8.3%, 0.815 12.5%, 0.909 16.7%, 0.956 20.8%, 0.978 25.0%, 0.990 29.2%, 0.995 33.3%, 0.998 37.5%, 0.999 41.7%, 0.999 45.8%, 1.000 50.0%, 1.000 54.2%, 1.000 58.3%, 1.000 62.5%, 1.000 66.7%, 1.000 70.8%, 1.000 75.0%, 1.000 79.2%, 1.000 83.3%, 1.000 87.5%, 1.000 91.7%, 1.000 95.8%, 1.000 100.0%); }
  80.926%, 86.376% { transform: translateY(calc(-3258 * var(--u))); opacity: 1; animation-timing-function: linear(-0.000 0.0%, 0.078 4.2%, 0.227 8.3%, 0.382 12.5%, 0.519 16.7%, 0.631 20.8%, 0.719 25.0%, 0.788 29.2%, 0.840 33.3%, 0.879 37.5%, 0.909 41.7%, 0.932 45.8%, 0.949 50.0%, 0.962 54.2%, 0.971 58.3%, 0.978 62.5%, 0.984 66.7%, 0.988 70.8%, 0.991 75.0%, 0.993 79.2%, 0.995 83.3%, 0.996 87.5%, 0.997 91.7%, 0.998 95.8%, 1.000 100.0%); }
  100% { transform: translateY(calc(-3258 * var(--u))); opacity: 0; }
}
/* Website header: fades in moving down as the page fades in moving up; fades out with the page at the end */
@keyframes ip-nav {
  0%, 19.074% { transform: translateY(calc(-16 * var(--u))); opacity: 0; animation-timing-function: cubic-bezier(0, 0, .58, 1); }
  29.973%, 86.376% { transform: none; opacity: 1; animation-timing-function: linear(-0.000 0.0%, 0.078 4.2%, 0.227 8.3%, 0.382 12.5%, 0.519 16.7%, 0.631 20.8%, 0.719 25.0%, 0.788 29.2%, 0.840 33.3%, 0.879 37.5%, 0.909 41.7%, 0.932 45.8%, 0.949 50.0%, 0.962 54.2%, 0.971 58.3%, 0.978 62.5%, 0.984 66.7%, 0.988 70.8%, 0.991 75.0%, 0.993 79.2%, 0.995 83.3%, 0.996 87.5%, 0.997 91.7%, 0.998 95.8%, 1.000 100.0%); }
  100% { transform: none; opacity: 0; }
}
/* Reduced motion: the finished page at the top, no grid */
@media (prefers-reduced-motion: reduce) {
  .sf__view .ip__page, .sf__view .ip__nav, .ip-col, .ip-row { animation: none; }
  .ip-col, .ip-row { opacity: 0; }
}

/* Work page: the window sits in the right column (Following Flights structure), no panel behind it */
.ff-demo__stage .sf { width: 100%; }
/* Pause button ([data-sf-toggle], investir-safari.js) */
.sf.is-user-paused .ip__page, .sf.is-user-paused .ip__nav, .sf.is-user-paused .ip-col, .sf.is-user-paused .ip-row { animation-play-state: paused; }
