/* Shared polish, with an app-first gallery. All content works without scripts. */
:root { --experience-accent: #0071e3; --gallery-glow: 58, 112, 204; }
:root:not([data-theme="light"]) { --experience-accent: #a2c8ff; --gallery-glow: 104, 149, 238; }
body { overflow-wrap: break-word; }
::selection { background: #3665a1; color: #fff; }
main { min-height: 60vh; }
.nav { height: 72px; }
.nav-links a { transition: color .2s, background .2s, transform .2s; }
.nav-links a:hover { transform: translateY(-1px); }
.nav-links a.active { box-shadow: inset 0 0 0 1px var(--line); }
.button { gap: 12px; }
.button, .theme-toggle { transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:active, .theme-toggle:active { transform: scale(.97); }
.page-hero { padding-block: 78px 54px; }
.page-hero h1 { max-width: 920px; margin-inline: auto; font-size: clamp(36px, 5.5vw, 68px); text-wrap: balance; }
.page-hero p { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; letter-spacing: -.025em; text-wrap: pretty; }
.gradient-type { color: var(--experience-accent); background: linear-gradient(110deg, #589cff 5%, #a297f1 60%, #d996b7); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
:root[data-theme="light"] .gradient-type { background-image: linear-gradient(110deg, #1762bc, #7346ac 65%, #a14376); }
.home-hero { min-height: auto; padding-block: 96px 54px; }
.home-hero h1 { font-size: clamp(44px, 6.8vw, 88px); letter-spacing: -.055em; line-height: 1.07; }
.home-hero p { font-size: clamp(18px, 2vw, 23px); line-height: 1.5; letter-spacing: -.02em; }
.home-app-dock { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 34px; margin: 70px auto 0; max-width: 900px; }
.home-app-dock a { display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; color: var(--ink-soft); font-size: 13px; }
.home-app-dock img { width: 82px; height: 82px; border-radius: 23%; box-shadow: 0 18px 38px rgba(0,0,0,.2); }
.home-app-dock a:hover img { filter: drop-shadow(0 8px 16px rgba(var(--app-accent), .25)); }
.home-app-dock a:hover { color: var(--ink); }
.collection-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-block: 78px 54px; }
.collection-intro h1 { margin: 0; font-size: clamp(46px, 6.5vw, 82px); line-height: 1.08; font-weight: 580; letter-spacing: -.055em; }
.collection-intro-copy { padding-bottom: 7px; }
.collection-intro-copy p { margin: 0 0 24px; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; color: var(--ink-soft); letter-spacing: -.025em; }
.inline-link { display: inline-flex; align-items: center; gap: 20px; color: var(--experience-accent); text-decoration: none; font-weight: 600; font-size: 14px; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.collection-section { padding-block: 0; scroll-margin-top: 96px; }
.collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0; }
.collection-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-button, .motion-control { font: inherit; font-size: 13px; min-height: 42px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; color: var(--ink-soft); background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.filter-button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.filter-button span { margin-left: 8px; opacity: .65; }
.filter-button:hover:not([aria-pressed="true"]), .motion-control:hover { background: var(--nav-hover); }
.motion-control { border-color: var(--line); white-space: nowrap; padding-inline: 14px; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.app-card { --app-accent: 113, 163, 255; min-width: 0; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); overflow: hidden; transition: border-color .25s, box-shadow .25s, translate .25s; scroll-margin-top: 92px; }
.app-card:hover, .app-card:focus-within { border-color: rgba(var(--app-accent), .55); box-shadow: 0 18px 44px rgba(0,0,0,.14); }
.app-stage { position: relative; display: grid; place-items: center; height: 228px; overflow: hidden; text-decoration: none; background: radial-gradient(ellipse at 50% 70%, rgba(var(--app-accent), .22), transparent 72%), var(--surface-soft); }
.app-stage::after { content: ''; position: absolute; bottom: 22px; width: 94px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.25); filter: blur(10px); }
.app-orbit { position: absolute; width: 210px; height: 210px; border: 1px solid rgba(var(--app-accent), .15); border-radius: 50%; transform: rotateX(58deg) rotate(-18deg); }
.app-orbit::before { content: ''; position: absolute; inset: -36px; border: 1px solid rgba(var(--app-accent), .08); border-radius: 50%; }
.floating-app-icon { position: relative; z-index: 1; object-fit: cover; animation: app-float 7s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.app-stage img { width: 128px; height: 128px; border-radius: 23%; box-shadow: 0 16px 32px rgba(0,0,0,.25); transition: filter .3s; }
.app-stage:hover img { filter: drop-shadow(0 0 16px rgba(var(--app-accent), .28)); }
.stage-arrow { position: absolute; top: 18px; right: 20px; color: var(--muted); font-size: 22px; transition: transform .25s, color .25s; }
.app-stage:hover .stage-arrow { transform: translate(2px, -2px); color: var(--ink); }
.app-card-body { padding: 24px; }
.app-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .02em; }
.app-availability { display: flex; align-items: center; gap: 6px; }
.app-availability::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #59b992; }
.app-availability.upcoming::before { background: #d9a459; }
.app-card h2 { margin: 16px 0 8px; font-size: 27px; letter-spacing: -.04em; line-height: 1.15; font-weight: 600; }
.app-card h2 a { text-decoration: none; }
.app-tagline { color: var(--ink); font-size: 14px; font-weight: 550; margin: 0 0 10px; }
.app-description { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin: 0; min-height: 94px; }
.app-explore { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-bottom: 20px; color: var(--experience-accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.app-explore:hover { text-decoration: underline; text-underline-offset: 4px; }
.app-stores { display: flex; align-items: center; gap: 8px; min-height: 64px; padding-top: 16px; border-top: 1px solid var(--line); }
.app-stores .store-badge { flex: 1; min-width: 0; min-height: 43px; gap: 6px; padding: 7px 8px; border-width: 1px; border-radius: 9px; box-shadow: none; }
.app-stores .store-badge-icon { width: 22px; height: 25px; flex-shrink: 0; }
.app-stores .store-badge > span span { font-size: 9px; font-weight: 500; }
.app-stores .store-badge strong { font-size: 15px; font-weight: 650; }
.app-stores p { color: var(--muted); font-size: 12px; margin: 0; }
.invitation-panel { padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(ellipse at 0% 0%, rgba(var(--gallery-glow), .13), transparent 65%), var(--surface-soft); }
.invitation-panel h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 550; letter-spacing: -.04em; margin: 0 0 8px; }
.invitation-panel p { color: var(--ink-soft); margin: 0; font-size: 15px; }
.invitation-panel .button { flex-shrink: 0; }
.feature-card, .content-card, .contact-card, .product-info-panel, .resource-panel { transition: border-color .25s ease, box-shadow .25s ease; }
.feature-card:hover, .content-card:hover, .contact-card:hover, .product-info-panel:hover { border-color: rgba(var(--gallery-glow), .4); box-shadow: var(--shadow-soft); }
.contact-card { border: 1px solid var(--line); }
.feature-icon { border-radius: 16px; font-size: 18px; }
.footer-links a { text-underline-offset: 5px; transition: color .2s; }
.footer-links a:hover { color: var(--experience-accent); }
.screenshot-open { border: 0; padding: 0; width: 100%; cursor: zoom-in; background: transparent; border-radius: inherit; display: block; }
.screenshot-open img { transition: scale .3s ease; }
.screenshot-open:hover img { scale: 1.02; }
.screenshot-dialog { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); }
.screenshot-dialog::backdrop { background: rgba(5, 8, 15, .87); backdrop-filter: blur(12px); }
.screenshot-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.screenshot-dialog-bar h2 { margin: 0; font-size: 16px; font-weight: 550; }
.screenshot-dialog button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface-soft); font: inherit; cursor: pointer; }
.screenshot-dialog img { display: block; max-width: 100%; max-height: calc(100dvh - 205px); width: auto; height: auto; margin: auto; object-fit: contain; border-radius: 8px; }
.screenshot-dialog-footer { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 14px; }
.screenshot-caption { text-align: center; color: var(--ink-soft); font-size: 13px; margin: 12px 0 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.reveal-ready { animation: reveal-in .65s ease both; }
@keyframes app-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
:root[data-motion="paused"] *, :root[data-motion="paused"] *::before, :root[data-motion="paused"] *::after { animation-play-state: paused !important; }
:root[data-motion="paused"] .reveal-ready { animation: none; }
@media (min-width: 761px) and (hover: hover) and (prefers-reduced-motion: no-preference) { .app-card:hover { translate: 0 -4px; } }
@media (max-width: 1050px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .nav { height: 66px; }
  .nav-links { top: 76px; }
  .home-hero { padding-top: 62px; }
  .home-app-dock { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px 34px; margin-top: 50px; }
  .home-app-dock img { width: 68px; height: 68px; }
  .home-app-dock a { font-size: 11px; gap: 12px; }
  .collection-intro { grid-template-columns: 1fr; gap: 24px; padding-block: 48px 36px; }
  .collection-intro-copy p { margin-bottom: 18px; }
  .collection-toolbar { gap: 10px; align-items: flex-start; }
  .filter-button { padding-inline: 12px; }
  .motion-control { font-size: 11px; padding-inline: 10px; }
  .app-grid { gap: 18px; }
  .app-card-body { padding: 20px; }
  .invitation-panel { padding: 26px; align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .app-stage { height: 220px; }
  .app-card-body { padding: 24px; }
  .app-description { min-height: 0; }
  .app-stores .store-badge { flex: 0 1 150px; }
  .collection-toolbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .collection-toolbar, .home-app-dock, .screenshot-dialog { display: none; } .app-grid { display: block; } .app-card { break-inside: avoid; margin-bottom: 20px; } }
.store-badge-apple .store-badge-icon { fill: currentColor; }
.home-motion-control { position: relative; z-index: 2; margin-top: 28px; }
.product-hero-logo { animation: app-float 8s ease-in-out infinite; }
.motion-control:disabled { opacity: .6; cursor: default; }
@media (prefers-reduced-motion: reduce) { .product-hero-logo { animation: none; } }
.contact-questions { padding-top: 0; max-width: 900px; }
.contact-questions .section-title { margin-bottom: 24px; }
.contact-questions details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.contact-questions summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 550; }
.contact-questions summary::-webkit-details-marker { display: none; }
.contact-questions summary::after { content: '+'; color: var(--experience-accent); font-size: 24px; }
.contact-questions details[open] summary::after { content: '−'; }
.contact-questions details p { margin: 14px 32px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.contact-questions a { color: var(--experience-accent); text-underline-offset: 4px; }

/* Careers: an optional introduction and a required résumé. */
.careers-hero h1 { font-size: clamp(36px, 5vw, 62px); }
.careers-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 72px; padding-top: 24px; }
.careers-intro { padding-top: 20px; }
.careers-intro h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 36px); font-weight: 550; letter-spacing: -.04em; line-height: 1.2; }
.careers-intro p { color: var(--ink-soft); line-height: 1.75; font-size: 15px; }
.careers-next { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 22px; }
.careers-next h3 { font-size: 16px; font-weight: 600; }
.careers-panel { min-width: 0; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; }
.careers-panel h2 { margin: 0 0 10px; font-size: 26px; font-weight: 550; letter-spacing: -.03em; }
.form-intro { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.careers-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
.form-field { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label, .resume-field > label { font-size: 13px; font-weight: 600; }
.form-field label span { color: var(--muted); font-weight: 400; font-size: 11px; }
.form-field input, .form-field textarea { width: 100%; min-height: 46px; padding: 12px 14px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: inherit; font-size: 16px; transition: border-color .2s; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .8; }
.form-field input:hover, .form-field textarea:hover { border-color: var(--muted); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--experience-accent); outline-offset: 2px; }
.form-field textarea { resize: vertical; min-height: 112px; }
.resume-field { margin-top: 32px; }
.required-label { margin-left: 10px; font-size: 11px; color: var(--experience-accent); font-weight: 500; }
.resume-dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; padding: 28px 18px; border: 1px dashed var(--muted); border-radius: 16px; background: var(--surface-soft); text-align: center; transition: border-color .2s, background .2s; }
.resume-dropzone > span:not(.resume-upload-icon) { color: var(--muted); font-size: 13px; }
.resume-dropzone strong { font-size: 15px; font-weight: 550; }
.resume-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; font-size: 24px; color: var(--experience-accent); }
.resume-dropzone input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.resume-dropzone:focus-within { outline: 2px solid var(--experience-accent); outline-offset: 3px; }
.resume-dropzone:hover, .resume-dropzone.dragging, .resume-dropzone.has-file { border-color: var(--experience-accent); background: rgba(var(--gallery-glow), .08); }
.field-help, .resume-status { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.resume-status { overflow-wrap: anywhere; color: var(--experience-accent); }
.resume-status.invalid, .form-error { color: #ff9e9e; }
:root[data-theme="light"] .resume-status.invalid, :root[data-theme="light"] .form-error { color: #b42318; }
.resume-remove { font: inherit; font-size: 12px; color: var(--ink-soft); background: transparent; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.application-privacy { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 24px 0; }
.application-privacy a { color: var(--experience-accent); text-underline-offset: 3px; }
.form-error { font-size: 14px; line-height: 1.6; }
.application-submit { width: 100%; }
.application-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.application-success { text-align: center; padding: 36px 0; }
.application-success:focus { outline: none; }
.application-success p { color: var(--ink-soft); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.success-mark { display: grid; place-items: center; width: 60px; height: 60px; background: rgba(89,185,146,.12); color: #59b992; border-radius: 50%; font-size: 30px; margin: 0 auto 24px; }
@media (max-width: 900px) { .careers-layout { gap: 32px; grid-template-columns: 1fr; } .careers-intro { max-width: 640px; } .careers-intro h2 br { display: none; } }
@media (max-width: 600px) { .careers-panel { padding: 26px 20px; } .careers-fields { grid-template-columns: 1fr; } }

/* Two small, locally hosted Lottie accents; static art is always available. */
.lottie-accent { position: relative; width: 112px; height: 70px; flex-shrink: 0; }
.lottie-home { margin: -24px auto 18px; }
.lottie-careers { width: 112px; height: 88px; margin: -18px 0 20px; }
.lottie-player { position: absolute; inset: 0; display: block; }
.lottie-player svg, .lottie-fallback { display: block; width: 100%; height: 100%; }
.lottie-fallback { visibility: visible; }
.is-lottie-ready .lottie-fallback { visibility: hidden; }
@media (max-width: 760px) { .lottie-home { width: 96px; height: 60px; margin-top: -12px; } .lottie-careers { width: 96px; height: 75px; margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .lottie-player { display: none; } .is-lottie-ready .lottie-fallback { visibility: visible; } }
@media print { .lottie-accent { display: none; } }
