/* fujiposts.com — one stylesheet, no build step. Tokens follow the app (SPEC §1.3). */
:root {
  --bg: #E4E8EB;
  --text: #363C44;
  --meta: #505968;
  --line: #979CA4;
  --control-border: #7A808A;
  --btn: #363C44;
  --btn-text: #FFFFFF;
  --btn-hover: #181920;
  --paper: #F7F7F5;
  --paper-ink: #2A2A2E;
  --phone: #181920;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #363C44;
    --text: #FFFFFF;
    --meta: #ADB2B9;
    --line: #505968;
    --control-border: #8A919C;
    --btn: #E4E8EB;
    --btn-text: #363C44;
    --btn-hover: #FFFFFF;
    --phone: #181920;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Jost, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 300; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 7vw, 4.25rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 400; }
p { margin: 0; }
strong { font-weight: 400; }
.meta { color: var(--meta); }
.small { font-size: 0.9rem; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Header */
.top { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; gap: 18px; margin-left: auto; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--meta); }
.top nav a:hover, .top nav a[aria-current] { color: var(--text); }
.top nav .legal { display: none; }
@media (min-width: 640px) { .top nav .legal { display: inline; } }

/* Buttons: one solid pill, everything else text */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 999px;
  background: var(--btn); color: var(--btn-text);
  font-weight: 400; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
a.btn:hover { background: var(--btn-hover); }
.btn.store { background: #000; color: #fff; padding: 8px 20px 8px 16px; line-height: 1.1; text-align: left; }
a.btn.store:hover { background: #222; }
.btn.store small { display: block; font-size: 0.65rem; font-weight: 300; letter-spacing: 0.02em; }
.btn.store span { font-size: 1.1rem; }
.btn.store svg { width: 22px; height: 22px; flex: none; }
.top .btn { min-height: 38px; padding: 6px 16px; font-size: 0.9rem; }
.textlink { font-weight: 400; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 720px) { section { padding: 88px 0; } }
.hero { padding-top: 40px; text-align: center; }
.hero h1 { max-width: 16ch; margin: 0 auto 20px; }
.hero .lead { max-width: 38ch; margin: 0 auto 28px; font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--meta); }
.hero h1.lead { max-width: 30ch; font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.35; letter-spacing: 0; color: var(--text); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero .device { margin: 56px auto 0; max-width: 340px; }
.hero .note { margin-top: 10px; }

/* Devices: titanium rim, thin even bezel, Dynamic Island, side buttons (the screens carry no island of their own) */
.phone {
  position: relative; isolation: isolate; padding: 9px; border-radius: 16.2% / 7.4%;
  background: linear-gradient(150deg, #9a9da3 0%, #4a4d53 22%, #2b2d32 50%, #55585e 78%, #8d9096 100%);
  box-shadow: 0 1px 1px rgba(24,25,32,.18), 0 6px 12px -4px rgba(24,25,32,.22), 0 24px 40px -16px rgba(24,25,32,.35), 0 50px 80px -30px rgba(24,25,32,.45),
    inset 0 0 0 1px rgba(255,255,255,.28), inset 0 1px 1px rgba(255,255,255,.5);
}
.phone img { border-radius: 14% / 6.47%; width: 100%; box-shadow: 0 0 0 6px #050507; }
.phone::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(9px + 1.5%); width: 28%; aspect-ratio: 3.1; transform: translateX(-50%);
  border-radius: 99px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.phone::after { /* action + volume buttons left, power right */
  content: ""; position: absolute; z-index: -1; inset: 0 -3px; pointer-events: none;
  background:
    linear-gradient(#4a4d53, #25272b) left 0 top 12% / 3px 3.2% no-repeat,
    linear-gradient(#4a4d53, #25272b) left 0 top 18% / 3px 6% no-repeat,
    linear-gradient(#4a4d53, #25272b) left 0 top 26% / 3px 6% no-repeat,
    linear-gradient(#4a4d53, #25272b) right 0 top 23% / 3px 10% no-repeat;
}
.tablet { /* iPad Pro: aluminium edge ring, thin bezel */
  position: relative; padding: 15px; border-radius: 30px; background: #08080a;
  box-shadow: inset 0 0 0 5px #b4b7bc, inset 0 0 0 6px rgba(255,255,255,.6), inset 0 0 0 7px #2a2b30,
    0 1px 1px rgba(24,25,32,.18), 0 8px 16px -6px rgba(24,25,32,.25), 0 30px 50px -20px rgba(24,25,32,.4), 0 60px 90px -40px rgba(24,25,32,.45);
}
.tablet img { border-radius: 14px; width: 100%; }
.tablet::before { content: ""; position: absolute; z-index: 2; left: 50%; top: 9px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #23242a; }

.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--meta); margin-bottom: 14px; font-weight: 400; }
.intro { max-width: 52ch; }
.intro h2 { margin-bottom: 14px; }
.intro p { color: var(--meta); }

.steps { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.step .phone { max-width: 300px; margin: 0 auto 22px; }
.step .n { font-weight: 400; color: var(--meta); font-size: 0.9rem; margin-bottom: 6px; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--meta); font-size: 1rem; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.split .phone { max-width: 320px; margin: 0 auto; }
.split ul { padding-left: 1.1em; margin: 18px 0 0; color: var(--meta); }
.split li { margin-bottom: 6px; }
.split li::marker { color: var(--line); }

/* Framed prints: the app's output, on paper */
.prints { display: grid; gap: 36px; margin-top: 40px; align-items: end; }
@media (min-width: 720px) { .prints { grid-template-columns: 3fr 2fr; gap: 48px; } }
.print {
  background: var(--paper); color: var(--paper-ink); padding: 4.5%;
  box-shadow: 0 24px 48px -24px rgba(24,25,32,.5), 0 1px 0 rgba(0,0,0,.06);
}
.print img { width: 100%; }
.print figcaption {
  display: flex; flex-wrap: wrap; gap: 0 1.6em; justify-content: center;
  font-size: 0.78rem; letter-spacing: 0.02em; padding-top: 3.2%; font-weight: 400;
}
.print.polaroid { padding-bottom: 9%; }

.price { text-align: center; }
.price .big { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 10px 0 8px; }
.price p { max-width: 44ch; margin-left: auto; margin-right: auto; color: var(--meta); }
.price .cta { margin-top: 28px; }

.faq { max-width: 720px; }
.faq dl { margin: 28px 0 0; }
.faq dt { font-weight: 400; padding-top: 18px; border-top: 1px solid var(--line); }
.faq dd { margin: 6px 0 18px; color: var(--meta); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.9rem; color: var(--meta); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
footer a { color: inherit; text-decoration: none; }
footer a:hover { color: var(--text); }
footer p { max-width: 70ch; }

/* Text pages */
.prose { max-width: 700px; padding-top: 32px; padding-bottom: 64px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.prose .dateline { color: var(--meta); margin-bottom: 36px; }
.prose h2 { font-size: 1.45rem; margin: 44px 0 10px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 6px; }
.prose p, .prose li { margin-bottom: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 12px; }
.prose li::marker { color: var(--meta); }
.prose dt { font-weight: 400; margin-top: 20px; }
.prose dd { margin: 4px 0 0; color: var(--meta); }
.prose .toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; margin-bottom: 8px; }
.prose .toc a { color: var(--meta); }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .screens { display: grid; gap: 24px; margin: 24px 0 8px; }
@media (min-width: 560px) { .prose .screens { grid-template-columns: 1fr 1fr; } }
.prose .screens figcaption { font-size: 0.85rem; color: var(--meta); text-align: center; margin-top: 10px; }
.prose .phone { max-width: 260px; margin: 0 auto; }


/* ---------- Motion (transform / opacity / filter / clip-path only). Hidden-before-reveal only under .js; reduced motion shows everything. ---------- */
:root { --ease: cubic-bezier(.2,.7,.2,1); --spring: linear(0, .42 9%, .82 20%, 1.04 31%, 1.07 38%, 1.03 50%, .99 62%, 1 78%, 1); --glow: #d98a3d; }

/* Hero: headline lines rise from a mask, then the rest follows */
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln > span { display: inline-block; }
.js .ln > span { transform: translateY(105%); animation: rise 1s var(--ease) both; }
.js .ln:nth-child(2) > span { animation-delay: .12s; }
.js .hero .lead, .js .hero .cta, .js .hero .note { opacity: 0; animation: fade-up .9s var(--ease) both; }
.js .hero .lead { animation-delay: .35s; }
.js .hero .cta { animation-delay: .5s; }
.js .hero .note { animation-delay: 1.4s; }
@keyframes rise { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero { overflow-x: clip; }
.hero .device { position: relative; }
.hero .device .phone { position: relative; z-index: 2; transform: translate3d(calc(var(--mx, 0) * -6px), calc(var(--sy, 0) * -26px + var(--my, 0) * -4px), 0); }
.js .hero .device .phone { animation: phone-in 1.5s var(--spring) .55s both; }
@keyframes phone-in { from { opacity: 0; translate: 0 90px; scale: .94; } 25% { opacity: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
.hp {
  position: absolute; z-index: 1; margin: 0; background: var(--paper); padding: 3.5%; width: 52%; top: 12%;
  box-shadow: 0 1px 1px rgba(24,25,32,.1), 0 14px 24px -10px rgba(24,25,32,.4), 0 40px 60px -30px rgba(24,25,32,.45);
}
.hp img { width: 100%; object-fit: cover; }
.hp-l { left: -34%; transform: translate3d(calc(var(--mx, 0) * 16px), calc(var(--sy, 0) * -70px + var(--my, 0) * 8px), 0) rotate(-9deg); }
.hp-l img { aspect-ratio: 2/3; }
.hp-r { right: -38%; top: 34%; width: 60%; transform: translate3d(calc(var(--mx, 0) * 26px), calc(var(--sy, 0) * -120px + var(--my, 0) * 12px), 0) rotate(7deg); }
.hp-r img { aspect-ratio: 3/2; }
.js .hp { opacity: 0; animation: print-in 1.4s var(--ease) 1s both; }
.js .hp-r { animation-delay: 1.2s; }
@keyframes print-in { from { opacity: 0; translate: 0 50px; } to { opacity: 1; translate: 0 0; } }
@media (min-width: 720px) { .hp-l { left: -50%; } .hp-r { right: -58%; } }

/* Reveal on scroll: restrained fade + lift, staggered by position */
.js :is(#how .intro, .usb, .step, #recipes .split > *, .marquee, #prints .intro, .carousel-wrap, #ipad .intro, .tablet, .price > *, .faq > *, .faq dt) {
  opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 110ms);
}
.js .in { opacity: 1 !important; transform: none !important; }
.step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; }
#recipes .split > :nth-child(2) { --i: 1; }

/* USB-C path: the cable draws itself with scroll, then RAW and JPEG travel along it */
.usb { margin: 56px 0 0; }
.usb svg { width: 100%; height: auto; overflow: visible; color: var(--text); }
.usb .line > * { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .85; }
.usb .cable { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.usb .line .lens { fill: var(--glow); stroke: none; opacity: 0; }
.usb .pulse { fill: var(--glow); opacity: 0; filter: drop-shadow(0 0 5px var(--glow)); }
.usb .raw { offset-path: path("M816 100 C 690 100 660 168 520 168 S 380 128 254 128"); }
.usb .jpg { offset-path: path("M254 128 C 380 128 380 168 520 168 S 690 100 816 100"); }
.usb figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.js .usb .cable { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease); }
.js .usb.in .cable { stroke-dashoffset: 0; }
.js .usb.in .raw { animation: travel-raw 7s linear 2s infinite; }
.js .usb.in .jpg { animation: travel-jpg 7s linear 2s infinite; }
.js .usb.in .line .lens { animation: lens 7s linear 2s infinite; }
@keyframes travel-raw { 0% { offset-distance: 0%; opacity: 0; } 4% { opacity: 1; } 38% { offset-distance: 100%; opacity: 1; } 41%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes travel-jpg { 0%, 54% { offset-distance: 0%; opacity: 0; } 58% { opacity: 1; } 92% { offset-distance: 100%; opacity: 1; } 95%, 100% { offset-distance: 100%; opacity: 0; } }
@keyframes lens { 0%, 38% { opacity: 0; } 44%, 50% { opacity: 1; } 56%, 100% { opacity: 0; } }
@supports (animation-timeline: view()) {
  .js .usb .cable { transition: none; animation: draw linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  .js .usb.in .cable { stroke-dashoffset: 1; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Recipes: film-simulation marquee */
.marquee { display: flex; overflow: hidden; margin: 56px calc(50% - 50vw) 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee .track { display: flex; flex: none; gap: 12px; padding: 0 6px; margin: 0; list-style: none; min-width: 100%; justify-content: space-around; animation: marquee 60s linear infinite; }
.marquee.rev .track { animation-direction: reverse; animation-duration: 75s; }
.marquee li { white-space: nowrap; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; font-size: 1.05rem; color: var(--meta); transition: color .3s, border-color .3s; }
.marquee li:hover { color: var(--text); border-color: var(--text); }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Prints: dealt onto the table, one developing under your eyes */
.print { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.print:not(.slide):hover { transform: translateY(-8px) rotate(0deg) !important; box-shadow: 0 40px 60px -26px rgba(24,25,32,.55), 0 1px 0 rgba(0,0,0,.06); }
.js .prints .print { opacity: 0; transform: translate3d(0, 40px, 0); }
.js .prints .print.in { opacity: 1; transform: rotate(-.7deg) !important; transition: opacity .8s var(--ease), transform 1.1s var(--spring); }
.js .prints .print.second:not(.in) { transform: translate3d(-60%, 10px, 0) rotate(-6deg); }
.js .prints .print.second.in { transform: rotate(1.1deg) !important; transition-delay: .25s; }
.js .develop img { background: #8b8d8c; }
.js .develop:not(.in) img { filter: contrast(0) brightness(1.15); }
.js .develop.in img { animation: develop 3.4s ease-out .5s both; }
@keyframes develop {
  0% { filter: contrast(0) brightness(1.15) saturate(0); }
  30% { filter: contrast(.2) brightness(1.5) saturate(0) blur(4px); }
  65% { filter: contrast(.7) brightness(1.2) saturate(.35) blur(1.5px); }
  100% { filter: none; }
}
.develop figcaption span { display: inline-block; }
.js .develop figcaption span { clip-path: inset(0 100% 0 0); }
.js .develop.in figcaption span { animation: type .7s steps(14) both; animation-delay: calc(2.4s + var(--k, 0) * .5s); }
.develop figcaption span:nth-child(2) { --k: 1; } .develop figcaption span:nth-child(3) { --k: 2; } .develop figcaption span:nth-child(4) { --k: 3; }
@keyframes type { to { clip-path: inset(0 0 0 0); } }

/* Carousel: swipeable and keyboard-scrollable by default; auto-advances only with motion */
.carousel-wrap { margin: 72px 0 0; text-align: center; --sw: min(300px, 74vw); }
.carousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(50% - 50vw); padding: 10px calc(50vw - var(--sw) / 2) 44px; margin-bottom: -18px; text-align: left; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: none; width: var(--sw); scroll-snap-align: center; margin: 0; }
.slide img { aspect-ratio: 4/5; object-fit: cover; }
.slide figcaption { justify-content: space-between !important; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 0 0 12px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.dots i.on { background: var(--text); transform: scale(1.25); }
.js .prints .slide, .js .carousel-wrap .slide { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln > span, .hero .lead, .hero .cta, .hero .note, .hero .phone, .hp, .usb .cable, .usb .pulse, .usb .lens, .develop img, .develop figcaption span, .marquee .track { animation: none !important; transition: none !important; }
  .js .ln > span, .js .hero .lead, .js .hero .cta, .js .hero .note, .js .hp, .js .hero .phone { opacity: 1; transform: none; }
  .js :is(#how .intro, .usb, .step, #recipes .split > *, .marquee, #prints .intro, .carousel-wrap, #ipad .intro, .tablet, .price > *, .faq > *, .faq dt) { opacity: 1; transform: none; }
  .js .prints .print, .js .prints .print.second:not(.in) { opacity: 1; transform: none !important; }
  .js .usb .cable { stroke-dashoffset: 0; }
  .js .develop img { filter: none !important; }
  .js .develop figcaption span { clip-path: none; }
  .hero .device .phone { transform: none !important; }
  .hp-l { transform: rotate(-9deg) !important; } .hp-r { transform: rotate(7deg) !important; }
  .marquee { mask-image: none; }
  .marquee .track[aria-hidden] { display: none; }
  .marquee .track { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
  .marquee.rev { display: none; }
}
