/* Progressive visual effects. Content and normal navigation never depend on them. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }
html { scrollbar-gutter: stable; }
main, section, article, .wrap > *, .footer-top > *, .form-layout > *,
.hero-copy, .hero-art, .form-grid > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.icon-arrow { width: 16px; height: 16px; flex: none; vertical-align: middle; }
.btn-arrow { display: inline-flex; line-height: 1; }
.btn .icon-arrow, .text-link .icon-arrow, .nav-cta .icon-arrow {
  transition: transform .3s var(--ease-out);
}
.btn:hover .icon-arrow, .text-link:hover .icon-arrow,
.nav-cta:hover .icon-arrow { transform: translate(2px, -2px); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.nav-link { position: relative; padding-block: 12px; }
.nav-link::after {
  content: ''; position: absolute; inset: auto 0 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current=page]::after { transform: scaleX(1); }
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.is-scrolled { background: rgba(12,13,14,.96); box-shadow: 0 12px 30px #0003; }
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 220;
  background: linear-gradient(90deg, #777, #fff); pointer-events: none;
  transform: scaleX(0); transform-origin: left;
}
.hero h1 .outlined { -webkit-text-stroke-color: #939593; }
.hero-art { isolation: isolate; perspective: 900px; }
.hero-panel { transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transition: transform .65s var(--ease-out); }
.hero-panel::before { border-color: #ffffff24; }
.orbital-field { position: absolute; inset: -7%; width: 114%; height: 114%; max-width: none; overflow: visible; pointer-events: none; }
.orbital-field .orbit-track { fill: none; stroke: #ffffff12; stroke-width: .7; }
.orbital-field .orbit-tracer { fill: none; stroke: url(#orbit-light); stroke-width: 1.25; stroke-linecap: round; stroke-dasharray: 70 1250; }
.orbital-field .orbit-tracer.inner { stroke-dasharray: 45 970; }
.orbital-field .orbit-node { fill: #f4f4ef; filter: drop-shadow(0 0 5px #fff9); }
.hero-art::after {
  content: ''; position: absolute; inset: 22%; border-radius: 50%; z-index: -1;
  background: #ffffff0a; filter: blur(36px); pointer-events: none;
}
.hero-caption { display: flex; justify-content: center; gap: 16px; color: #aeb3b5; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; margin-top: 0; }
.hero-caption span { display: inline-flex; align-items: center; gap: 8px; }
.hero-caption span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #aeb3b5; }
.hero-visual { min-width: 0; width: 100%; }
.effect-controls { margin-top: 32px; }
.motion-control {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  border: 1px solid var(--line); background: transparent; color: #c2c5c5;
  padding: 8px 14px; border-radius: 100px; font-size: 11px;
}
.motion-control::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #dfe4df; }
.motion-control[aria-pressed=true]::before { background: #777; }
.motion-control:hover { border-color: #8f9494; color: white; }
.motion-control[hidden] { display: none; }
.service-card, .detail-card, .founder-card, .value-card { position: relative; isolation: isolate; }
.service-card::after, .detail-card::after, .founder-card::after, .value-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  opacity: 0; pointer-events: none; transition: opacity .4s;
  background: radial-gradient(350px circle at var(--pointer-x,50%) var(--pointer-y,0%), #ffffff10, transparent 75%);
}
@media (hover:hover) and (pointer:fine) {
  .service-card:hover::after, .detail-card:hover::after,
  .founder-card:hover::after, .value-card:hover::after { opacity: 1; }
  .work-card .app-window { transition: transform .75s var(--ease-out); }
  .work-card:hover .app-window { transform: rotate(-2deg) translateY(-9px); }
  .work-card .data-orb { transition: transform .8s var(--ease-out); }
  .work-card:hover .data-orb { transform: rotate(45deg) scale(1.06); }
}
.service-card .stretch { min-height: 44px; }
.detail-card h2 { margin-top: 20px; }
.section-header > .text-link { margin-top: 24px; }
.quote-block .btn { margin-top: 12px; }
.footer-top > :first-child { flex: 1; }
.footer-right { flex: none; }
.footer-email-list .text-link { min-height: 34px; }
.browser-ui { position: relative; }
.browser-main { min-width: 0; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; }
.demo-controls[hidden] { display: none; }
.demo-controls button {
  border: 1px solid #414545; border-radius: 100px; background: transparent;
  color: #aeb3b5; min-height: 44px; padding: 9px 17px; font-size: 12px;
  transition: background .2s, color .2s;
}
.demo-controls button[aria-pressed=true] { background: #e8ebe6; color: #121313; border-color: #e8ebe6; }
.demo-controls button:hover { border-color: #e8ebe6; }
.demo-caption { color: #aeb3b5; font-size: 12px; line-height: 1.6; margin: 18px 0 0; }
.demo-caption:empty { display: none; }
.chart-bar { transform-origin: bottom; transition: height .65s var(--ease-out), opacity .4s; }
.chart-area { position: relative; }
.browser-ui[data-demo-mode=focus] .chart-bar:nth-child(-n+4),
.browser-ui[data-demo-mode=activity] .chart-bar:nth-child(even) { opacity: .3; }
.browser-ui[data-demo-mode=focus] .metric:nth-child(2),
.browser-ui[data-demo-mode=activity] .metric:nth-child(3) { border-color: #aeb8b0; background: #272e2a; }
.founder-card { display: flex; flex-direction: column; }
.founder-signature { margin-top: auto; padding-top: 28px; }
.founder-signature img { display: block; width: min(100%, 270px); height: auto; max-height: 80px; object-fit: contain; object-position: left center; }
.founder-signature figcaption { margin-top: 13px; color: #969c9c; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.founder-signature { margin-inline: 0; margin-bottom: 0; display: grid; grid-template-rows: 110px auto; justify-items: center; align-items: center; }
.founder-signature img { object-position: center; }
.founder-signature figcaption { text-align: center; }
.faq summary { min-height: 44px; align-items: center; }
.faq[open] p { animation: answer-in .35s var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes core-float { 50% { translate: 0 -8px; } }
@keyframes hero-enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes page-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html:not([data-motion=paused]) .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: page-out .2s ease both; }
  ::view-transition-new(root) { animation: page-in .4s var(--ease-out) both; }
  ::view-transition-group(site-header) { animation-duration: .35s; }
  .hero-copy > *, .page-header .wrap > * { animation: hero-enter .85s var(--ease-out) backwards; }
  .hero-copy > :nth-child(2), .page-header .wrap > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3), .page-header .wrap > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(n+4) { animation-delay: .24s; }
  .orbital-field .orbit-tracer, .orbital-field .orbit-satellite { transform-origin: 250px 250px; animation: orbit-turn 32s linear infinite; }
  .orbital-field .orbit-tracer.inner { animation-duration: 23s; animation-direction: reverse; }
  .hero-icon { animation: core-float 7s ease-in-out infinite; }
  .service-card.will-reveal:nth-child(2), .founder-card.will-reveal:nth-child(2) { transition-delay: 60ms; }
  .service-card.will-reveal:nth-child(3) { transition-delay: 120ms; }
  .service-card.will-reveal:nth-child(4) { transition-delay: 180ms; }
  @supports (animation-timeline: scroll()) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(); }
  }
}
/* Content must fit independently of animation support or script availability. */
@media(max-width:1050px) and (min-width:761px) {
  .header-panda { width: 40px; }
  .header-company strong { font-size: 23px; }
  .header-company > span { font-size: 9px; }
  .desktop-nav { gap: 16px; }
  .hero .wrap { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
  .hero h1 { font-size: clamp(55px,7.7vw,80px); }
}
@media(max-width:760px) {
  html { scroll-padding-top: 100px; }
  .wrap { width: min(calc(100% - 32px),var(--container)); }
  .hero .wrap { padding-top: 60px; gap: 38px; }
  .hero h1 { font-size: clamp(42px,12.7vw,90px); }
  .hero-tag { font-size: 9px; letter-spacing: .12em; line-height: 1.8; gap: 10px; margin-bottom: 28px; }
  .hero-tag::before { display: none; }
  .hero-art { width: min(80%,360px); margin-inline: auto; }
  .hero-caption { margin-top: 18px; }
  .hero-panel { transform: none; }
  .hero p { margin-top: 26px; }
  .micro-copy { line-height: 1.9; }
  .actions .btn { min-height: 48px; font-size: 12px; padding-inline: 18px; gap: 16px; }
  .mobile-nav { overflow-y: auto; overscroll-behavior: contain; max-height: calc(100dvh - 90px); padding: 18px 22px 32px; }
  .mobile-nav a { min-height: 48px; padding: 14px 8px; }
  .mobile-nav .nav-cta { flex: none; }
  .mobile-nav.is-open { animation: answer-in .25s var(--ease-out); }
  .page-header h1 { font-size: clamp(37px,10.5vw,78px); }
  .section-header h2 { font-size: clamp(38px,9.8vw,66px); }
  .quote-block h2 { font-size: clamp(32px,9vw,44px); }
  .quote-block { padding: 30px 22px; }
  .footer-headline { font-size: clamp(38px,10vw,70px); }
  .contact-aside h2 { font-size: clamp(34px,9vw,42px); }
  .split-intro h2 { font-size: clamp(32px,8.7vw,55px); }
  .founders-intro h2 { font-size: clamp(36px,9vw,60px); }
  .large-statement { font-size: clamp(34px,9vw,64px); }
  .field input, .field select, .field textarea { font-size: 16px; }
  .contact-email { font-size: clamp(14px,4.2vw,18px); }
  .showcase h2 { font-size: clamp(42px,10vw,72px); }
  .showcase-foot { flex-wrap: wrap; }
  .form-panel .btn { width: 100%; }
  .form-actions { display: block; }
  .email-fallback { min-height: 44px; margin-top: 8px; }
  .footer-right a { min-height: 34px; }
  .footer-bottom { gap: 10px; }
  .footer-bottom > span { width: 100%; }
  .demo-controls button { padding-inline: 13px; }
  .work-foot h3 { font-size: clamp(20px,5vw,25px); }
  .detail-card { padding: 28px 22px; }
}
@media(max-width:360px) {
  .header-panda { width: 34px; }
  .header-company strong { font-size: 22px; }
  .header-company > span { font-size: 8px; }
  .header-identity { gap: 9px; }
  .header-inner { gap: 8px; }
  .hero-tag { font-size: 8px; }
  .browser-main { padding: 18px 14px; }
  .metric { padding: 10px 6px; }
  .metric span { font-size: 8px; }
  .form-panel { padding-inline: 16px; }
  .stack-row { grid-template-columns: 30px minmax(0,1fr); }
  .stack-row h3 { font-size: 26px; }
}
html[data-motion=paused] *, html[data-motion=paused] *::before, html[data-motion=paused] *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html[data-motion=paused] .reveal, html[data-motion=paused] .reveal.will-reveal { opacity: 1; transform: none; }
html[data-motion=paused] .hero-panel { transform: none; }
html[data-motion=paused] { view-transition-name: none; }
html[data-motion=paused]::view-transition-group(*), html[data-motion=paused]::view-transition-old(*), html[data-motion=paused]::view-transition-new(*) { animation: none !important; }
html[data-motion=paused] .scroll-progress { display: none; }
html[data-motion=paused] .orbital-field, html[data-motion=paused] .hero-art::after { opacity: .65; }
.hero-visual.is-offscreen *, .hero-visual.is-offscreen *::before,
.hero-visual.is-offscreen *::after, html.is-background * { animation-play-state: paused !important; }
@media(prefers-reduced-motion:reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal.will-reveal { opacity: 1; transform: none; }
  .hero-panel { transform: none; }
  .scroll-progress { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media print {
  .scroll-progress, .effect-controls, .orbital-field, .demo-controls { display: none; }
  .reveal, .reveal.will-reveal { opacity: 1; transform: none; }
}
