/* The public page: Rigatoon's brand (amber, ink, paper; Lilita One and IBM Plex). Light paper and dark ink bands, by design.
   Motion is added by site.js (html.js); without it, or with "reduce motion", everything is simply in place. */
@font-face { font-family: 'Lilita One'; src: url(/static/fonts/lilita-one.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/static/fonts/plex-sans-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/static/fonts/plex-sans-600.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(/static/fonts/plex-mono-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root { --paper: #EEF0F4; --white: #FFFFFF; --ink: #121316; --soft: #464B55; --mut: #5E6470; --line: #D9DCE3;
  --amber: #F0A23B; --amberdeep: #A8660F; --amberlight: #F6C27A; --night: #0E0F12; --night2: #17191E; --nightline: #2A2E36;
  --bone: #E6E8EC; --nightsoft: #B4BAC5; --ease: cubic-bezier(.2, .7, .2, 1); color-scheme: only light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 'IBM Plex Sans', system-ui, 'Segoe UI', sans-serif; overflow-x: hidden; }
a { color: var(--ink); } a:hover { color: var(--amberdeep); }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: 100%; max-width: 1208px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.d { font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif; font-weight: 400; letter-spacing: .005em; text-wrap: balance; }
.amber { color: var(--amberdeep); } .dark .amber, .worlds .amber { color: var(--amber); }
.kick { font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.kick.deep { color: var(--amberdeep); }
.small { font-size: 14px; color: var(--mut); } .c { text-align: center; }
h2.d { font-size: clamp(36px, 5vw, 56px); line-height: 1.03; }
h2.big { font-size: clamp(42px, 6.4vw, 80px); line-height: 1; max-width: 14ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font: inherit; font-weight: 600; padding: 14px 24px; border-radius: 12px; border: 2px solid var(--ink); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn.amber { background: var(--amber); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn.amber:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); color: var(--ink); }
.btn.amber:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.big { padding: 16px 28px; font-size: 18px; }
.btn.ink { background: var(--ink); color: var(--white); } .btn.ink:hover { color: var(--white); background: #2A2D34; }
.btn.ghost { border-color: transparent; background: transparent; } .btn.ghost:hover { color: var(--amberdeep); }
.btn.sm { padding: 9px 16px; font-size: 15px; border-radius: 10px; }
.btn.off { cursor: default; opacity: .9; box-shadow: none; transform: none; }
.end .btn.amber { border-color: var(--amber); box-shadow: 0 4px 0 #000; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--amberdeep); outline-offset: 3px; }

/* the bar: plain at the top, frosted once the page scrolls */
.top { position: sticky; top: 0; z-index: 20; transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(238, 240, 244, .8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(18, 19, 22, .06); }
.top.ondark { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); background: rgba(14, 15, 18, .78); border-bottom-color: #23262D; box-shadow: none; }
.top.ondark .word, .top.ondark nav a:not(.btn) { color: var(--bone); } .top.ondark nav a:not(.btn):hover { color: var(--amber); }
.top.ondark .btn.ink { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 34px; height: 34px; flex: none; }
.word { font-family: 'Lilita One', 'Arial Rounded MT Bold', sans-serif; font-size: 28px; line-height: 1; display: inline-flex; align-items: baseline; color: var(--ink); }
.oo { width: 1.07em; height: .57em; margin: 0 .02em; }
.top nav { position: relative; display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.top nav a:not(.btn) { text-decoration: none; padding: 6px 0; }
.top nav a.on { color: var(--ink); }
.ind { position: absolute; bottom: -2px; height: 2px; border-radius: 2px; background: var(--amber); width: 0; left: 0; opacity: 0; transition: left .35s var(--ease), width .35s var(--ease), opacity .2s; pointer-events: none; }
.fromapp { margin-top: 16px; background: #FDF1DF; border: 2px solid var(--amber); border-radius: 12px; padding-block: 14px; font-weight: 500; }

/* hero */
.hero { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.face { width: 112px; height: 112px; overflow: visible; filter: drop-shadow(0 12px 18px rgba(199, 128, 31, .28)); }
.face .eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.5s infinite; }
.face .pupils, .face .brow { transition: transform .18s ease-out; }
@keyframes blink { 0%, 95%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.08); } }
.pill { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(44px, 7.6vw, 88px); line-height: 1; max-width: 15ch; }
.hero h1 span { display: inline-block; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 52ch; }
.ctas { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding-top: 6px; }

/* the app, tilted back until it scrolls into view (site.js sets --t from 0 to 1) */
.shot { padding-bottom: 112px; display: flex; flex-direction: column; gap: 16px; perspective: 1600px; }
.tilt { --t: 1; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); background: var(--night); box-shadow: 0 40px 90px rgba(18, 19, 22, .22);
  transform-origin: 50% 0; transform: rotateX(calc((1 - var(--t)) * 16deg)) scale(calc(.92 + var(--t) * .08)); will-change: transform; }
.tilt video { aspect-ratio: 1280 / 768; }

/* clips: a looping video, its poster until it plays */
video.clip { display: block; width: 100%; height: 100%; object-fit: cover; background: #16171A; }
video.clip.fig { object-fit: contain; background: #1A1C20; }
.clip.none { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, #1B1D22, #23262D); }

/* draw, rig, animate: the steps scroll past one picture that changes */
.dark { background: var(--night); color: var(--bone); padding-block: 120px; }
.dark h2, .dark h3 { color: var(--white); }
.intro { display: flex; flex-direction: column; gap: 12px; max-width: 700px; }
.intro p { color: var(--nightsoft); font-size: 19px; max-width: 56ch; }
.story { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; padding-top: 56px; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 10px; border-left: 3px solid var(--nightline); padding-left: 28px; transition: border-color .4s, opacity .4s; }
.js .step { opacity: .38; } .js .step.on { opacity: 1; border-color: var(--amber); }
.step h3 { font-size: clamp(30px, 3.4vw, 42px); } .step p { color: var(--nightsoft); font-size: 18px; max-width: 40ch; }
.step .inline { display: none; }
.stage { position: relative; }
.frame { position: sticky; top: 14vh; height: 72vh; border-radius: 18px; overflow: hidden; border: 1px solid var(--nightline); background: #16171A; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pane { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.pane.on { opacity: 1; transform: none; }
.pane video.clip { object-fit: contain; }

/* worlds */
.worlds { background: var(--night); color: var(--bone); padding-block: 40px 120px; border-top: 1px solid var(--nightline); }
.worlds h2 { color: var(--white); }
.wide { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 20vw, 290px); gap: 14px; }
.shotc { position: relative; border-radius: 18px; overflow: hidden; background: var(--night2); }
.shotc video { transition: transform 1.2s var(--ease); }
.shotc:hover video { transform: scale(1.04); }
.shotc.street { grid-column: span 2; grid-row: span 2; } .shotc.citytour { grid-column: span 3; grid-row: span 2; }
.shotc figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; width: fit-content; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(11, 12, 15, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--amberlight); border: 1px solid rgba(255, 255, 255, .14); padding: 6px 11px; border-radius: 999px; }
.depth { padding-block: 120px; }
.depth .intro p { color: var(--soft); }
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.views { border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 30px 70px rgba(18, 19, 22, .2); }
.views video { aspect-ratio: 16 / 10; object-fit: contain; }

/* camera effects: before and after, a line to drag */
.camfx { padding-block: 120px 40px; }
.camfx .intro p { color: var(--soft); }
.bas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; max-width: 1100px; }
.ba { --p: 50%; position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 2px solid var(--ink); background: var(--night); box-shadow: 0 24px 60px rgba(18, 19, 22, .18); touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.ba img.on { clip-path: inset(0 0 0 var(--p)); }
.ba .line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); pointer-events: none; }
.ba .line::after { content: '⟷'; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.ba .tag { position: absolute; top: 12px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(11, 12, 15, .72); color: var(--white); padding: 5px 10px; border-radius: 999px; pointer-events: none; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; color: var(--amberlight); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba input:focus-visible + .line, .ba:focus-within .line { background: var(--amber); }

/* the strip of feature names */
.strip { background: var(--amber); border-block: 2px solid var(--ink); overflow: hidden; padding-block: 18px; }
.track { display: flex; width: max-content; animation: slide 48s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
.track span { font-size: clamp(22px, 2.6vw, 32px); white-space: nowrap; padding-right: 28px; display: flex; gap: 28px; align-items: center; }
.track i { font-style: normal; font-size: .6em; }
@keyframes slide { to { transform: translateX(-50%); } }

/* more */
.more { background: var(--night); color: var(--bone); }
.pad { padding-block: 112px; display: flex; flex-direction: column; gap: 40px; }
.more h2 { color: var(--white); }
.group { display: flex; flex-direction: column; gap: 16px; }
.gname { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); border-bottom: 1px solid var(--nightline); padding-bottom: 10px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cell { background: var(--night2); border: 1px solid var(--nightline); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.cell .clip { aspect-ratio: 16 / 10; height: auto; border-bottom: 1px solid var(--nightline); }
.cell:hover { transform: translateY(-4px); border-color: #4A4F5A; }
.ctext { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.cell b { color: var(--white); font-weight: 600; } .cell span { color: var(--nightsoft); font-size: 15px; }
.faqs { padding-block: 96px; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
details { border-top: 1px solid #C9CDD5; padding-block: 18px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--amberdeep); font-weight: 600; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--soft); padding-top: 8px; }
details[open] p { animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* the end */
.end { background: var(--night); color: var(--white); position: relative; overflow: hidden; }
.end::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(240, 162, 59, .22), transparent); pointer-events: none; }
.endin { position: relative; padding-block: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.endin img { width: 150px; border-radius: 30px; }
.endin h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; max-width: 14ch; } .endin p { color: var(--nightsoft); max-width: 46ch; }

footer { background: var(--night); border-top: 1px solid var(--nightline); }
.foot { padding-block: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #9AA1AD; }
.foot a { color: #9AA1AD; } .foot a:hover { color: var(--white); } .links { display: flex; gap: 18px; flex-wrap: wrap; }
.note { padding-block: 96px; display: flex; flex-direction: column; gap: 16px; } .note h1 { font-size: 48px; } .note p { color: var(--soft); max-width: 56ch; }

/* things arrive: the hero on load, the rest as it scrolls in */
@media (prefers-reduced-motion: no-preference) {
  .js .rise { opacity: 0; transform: translateY(22px); animation: rise .8s var(--ease) forwards; }
  .js .hero h1 .rise:nth-child(1) { animation-delay: .08s; } .js .hero h1 .rise:nth-child(2) { animation-delay: .2s; } .js .hero h1 .rise:nth-child(3) { animation-delay: .32s; }
  .js .pill.rise { animation-delay: 0s; } .js .lead.rise { animation-delay: .44s; } .js .ctas.rise { animation-delay: .56s; }
  .js .face { animation: pop .7s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .g3 .cell:nth-child(3n + 2), .js .bento .shotc:nth-child(2) { transition-delay: .08s; }
  .js .g3 .cell:nth-child(3n), .js .bento .shotc:nth-child(3) { transition-delay: .16s; }
  .js .cell.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) rotate(-8deg); } 60% { transform: scale(1.06) rotate(2deg); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .face .eyes, .track { animation: none; } .tilt { transform: none; }
  .pane { transition: none; }
}

@media (max-width: 960px) {
  .story, .two, .faq, .bas { grid-template-columns: minmax(0, 1fr); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { display: none; }
  .step { min-height: 0; padding-block: 8px; } .js .step { opacity: 1; border-color: var(--amber); }
  .step .inline { display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; margin-top: 10px; border: 1px solid var(--nightline); }
  .step .inline video.clip { object-fit: contain; }
  .story { gap: 40px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 32vw, 260px); }
  .shotc.street, .shotc.citytour { grid-column: span 2; grid-row: span 1; }
  .dark, .depth, .pad, .endin { padding-block: 72px; } .worlds { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  .wrap, .wide { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .top nav a:not(.btn), .ind { display: none; }
  .g3, .bento { grid-template-columns: minmax(0, 1fr); }
  .shotc.street, .shotc.citytour { grid-column: auto; }
  .bento { grid-auto-rows: 58vw; }
  .ctas { width: 100%; } .ctas .btn { width: 100%; }
  .hero { padding-top: 32px; } .face { width: 88px; height: 88px; }
}
