/* Loupe site v2. World: the maker's own Teto MVs (pink / ink / cyan, the colours of 「うそつきのペルソナ」)
   seen through a loupe. Borrowed mechanisms, Loupe's own content: film strips cross the hero like speed lines
   (P4), timecode tapes cross like KEEP OUT tape (P4), giant vertical timecode (Mika Pikazo), a lens-shaped
   colour plane opens into the next section (Mika Pikazo, seamless), a sticky scroll story (Apple). */
:root {
  --ink: #140e11;
  --ink-2: #241a1f;
  --pink: #f2305c;
  --pink-deep: #b3123b;
  --cyan: #3ad8e6;
  --paper: #f2eff1;
  --white: #fffafc;
  --mute-d: #b9aab1;   /* secondary text on ink */
  --mute-l: #6c5b63;   /* secondary text on paper */
  --display: "Dela Gothic One", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --tc: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --wrap: min(1160px, 100% - 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.85 var(--jp); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--pink); color: var(--white); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.tc { font-family: var(--tc); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; text-wrap: balance; margin: 0; }
html { scrollbar-color: var(--pink) var(--ink); }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid #2c2026; }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 21px/1 var(--jp); }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { margin-left: auto; display: flex; gap: 22px; font-size: 14px; font-weight: 700; }
.top nav a { text-decoration: none; color: var(--mute-d); }
.top nav a:hover { color: var(--white); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 16px/1 var(--jp); text-decoration: none; transition: transform .2s var(--ease), background .2s; }
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink); color: var(--white); }
.btn-pink:hover { background: var(--pink-deep); }
.btn-line { border: 2px solid currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-2); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(900px, 100svh); overflow: hidden; padding: 64px 0 200px; isolation: isolate; }
.strips { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.strip { position: absolute; left: -10%; width: 120%; background: #000; padding: 14px 0; pointer-events: auto; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 12px, #3a2c33 12px 22px); }
.strip::before { top: 3px; } .strip::after { bottom: 3px; }
.strip-a { top: 76%; transform: rotate(-6deg); }
.strip-b { top: 8%; transform: rotate(6deg); opacity: .55; }
.reel { display: flex; gap: 8px; width: max-content; animation: reel 70s linear infinite; }
.strip-b .reel { animation-duration: 90s; animation-direction: reverse; }
.strip:hover .reel { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.cell { position: relative; margin: 0; width: 250px; aspect-ratio: 16 / 9; cursor: zoom-in; border-radius: 2px; overflow: hidden; background: var(--ink-2); }
.cell video, .cell img { width: 100%; height: 100%; object-fit: cover; }
.cell figcaption { position: absolute; left: 6px; bottom: 4px; font: 600 13px/1 var(--tc); color: var(--white); text-shadow: 0 1px 2px #000; letter-spacing: .05em; }
.cell.on { outline: 3px solid var(--pink); outline-offset: -3px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.12; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.hero h1 span { display: block; }
.hero h1 .pink { color: var(--pink); }
.lede { max-width: 30em; margin: 26px 0 30px; color: #e9dfe4; font-size: 18px; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.lede, .cta { position: relative; }
.copy { position: relative; padding: 28px 0; }
.copy::before { content: ""; position: absolute; inset: -20px -40px -20px -60px; background: radial-gradient(70% 60% at 30% 50%, rgba(20, 14, 17, .92), rgba(20, 14, 17, 0) 75%); z-index: -1; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta small { width: 100%; color: var(--mute-d); font-size: 13px; }

/* the loupe */
.lens-wrap { position: relative; justify-self: center; width: min(440px, 80vw); aspect-ratio: 1; }
.lens { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 14px #0b0709, 0 0 0 17px #47353d, 0 0 0 19px var(--pink), 0 40px 80px -10px rgba(0, 0, 0, .8), inset 0 0 50px rgba(0, 0, 0, .7); }
.lens video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: opacity .25s; }
.lens::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(55% 38% at 30% 20%, rgba(255, 255, 255, .25), transparent 62%); }
.handle { position: absolute; width: 34%; height: 9%; right: -22%; bottom: 6%; transform: rotate(45deg); transform-origin: left center; border-radius: 999px; background: linear-gradient(#2b2025, #0b0709); box-shadow: 0 0 0 3px var(--pink); z-index: -1; }
.lens-tag { position: absolute; left: 50%; bottom: -54px; transform: translateX(-50%); white-space: nowrap; background: var(--white); color: var(--ink); font: 600 16px/1 var(--tc); letter-spacing: .05em; padding: 9px 14px; border-radius: 999px; }
.lens-tag b { font-family: var(--jp); font-weight: 700; margin-right: 8px; }
.vtc { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); top: 70px; writing-mode: vertical-rl; font: 600 clamp(80px, 11vw, 168px)/0.9 var(--tc); color: transparent; -webkit-text-stroke: 2px var(--cyan); letter-spacing: .02em; z-index: 1; pointer-events: none; opacity: .9; }
.hint { margin-top: 70px; text-align: center; color: var(--mute-d); font-size: 13px; }

/* ---------- tapes ---------- */
.tapes { position: relative; height: 150px; margin: -70px 0 0; overflow: hidden; z-index: 2; }
.tape { position: absolute; left: -5%; width: 110%; height: 46px; display: flex; align-items: center; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); }
.tape-pink { top: 40px; background: var(--pink); color: var(--ink); transform: rotate(-3deg); }
.tape-cyan { top: 62px; background: var(--cyan); color: var(--ink); transform: rotate(2.5deg); }
.tape .run { display: flex; width: max-content; animation: reel 30s linear infinite; font: 600 22px/1 var(--tc); letter-spacing: .08em; white-space: nowrap; }
.tape-cyan .run { animation-direction: reverse; animation-duration: 36s; }
.tape .run span { padding: 0 18px; }
.tape .run span::after { content: ""; display: inline-block; width: 9px; height: 9px; margin-left: 36px; border-radius: 50%; background: currentColor; vertical-align: middle; }

/* ---------- story ---------- */
.story { padding: 110px 0 140px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.big { font: 400 clamp(84px, 13vw, 190px)/0.95 var(--display); color: var(--pink); }
.big small { font-size: .32em; color: var(--white); margin-left: .1em; }
.story h2 { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; margin: 28px 0 22px; }
.story p { color: #e5dbe0; max-width: 34em; margin: 0 0 18px; }
.memo { background: var(--paper); color: var(--ink); padding: 26px 28px 30px; border-radius: 4px; transform: rotate(1.6deg); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85); font-size: 16px; }
.memo h3 { margin: 0 0 12px; font: 700 15px/1.4 var(--jp); color: var(--mute-l); }
.memo ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.memo li { position: relative; display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; border-bottom: 1px dashed #c9bcc3; padding-bottom: 8px; }
.memo li .tc { color: var(--pink-deep); font-weight: 600; font-size: 17px; }
.memo li s { text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.memo .note { margin-top: 16px; font: 700 18px/1.4 var(--jp); color: var(--pink); transform: rotate(-2deg); }

/* ---------- how (sticky scroll story on the pink plane) ---------- */
.how { position: relative; isolation: isolate; color: var(--ink); background: var(--ink); }
.how::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pink); clip-path: circle(150% at 78% 0); }
@supports (animation-timeline: view()) {
  .how::before { animation: lens-open linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
  @keyframes lens-open { from { clip-path: circle(0% at 78% 0); } to { clip-path: circle(150% at 78% 0); } }
}
.how-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding: 130px 0 120px; }
.how h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.2; margin-bottom: 24px; }
.steps { display: grid; gap: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.step h3 { margin: 0 0 10px; font: 400 clamp(26px, 3vw, 36px)/1.3 var(--display); }
.step p { margin: 0; max-width: 26em; color: #3a1220; font-size: 17px; }
.step .tc { align-self: flex-start; display: inline-block; margin-bottom: 10px; background: var(--ink); color: var(--white); padding: 5px 10px; border-radius: 4px; font-size: 15px; }
.stage-col { position: relative; }
.stage { position: sticky; top: calc(58px + 7vh); aspect-ratio: 16 / 11; border-radius: 14px; background: var(--ink); box-shadow: 0 40px 80px -30px rgba(60, 0, 20, .7); overflow: hidden; }
.layer { position: absolute; inset: 0; opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease); display: grid; place-items: center; padding: 6%; }
.stage[data-step="1"] .l1, .stage[data-step="2"] .l2, .stage[data-step="3"] .l3, .stage[data-step="4"] .l4 { opacity: 1; transform: none; }
.l1 .one { width: 86%; }
.l1 .one video { width: 100%; border-radius: 6px; }
.l1 .io { position: relative; height: 10px; margin-top: 18px; background: #3a2c33; border-radius: 5px; }
.l1 .io i { position: absolute; left: 49.5%; width: 3%; top: -5px; bottom: -5px; background: var(--pink); border-radius: 3px; }
.l1 .io + .tc { margin-top: 12px; color: var(--mute-d); font-size: 16px; text-align: center; display: block; }
.l2 .cuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.l2 .cuts img { width: 100%; aspect-ratio: 2.35; object-fit: cover; border-radius: 3px; }
.l2 .cuts figure { margin: 0; }
.l2 .cuts figcaption { font: 600 13px/1.6 var(--tc); color: var(--mute-d); }
.l3 .tempo { width: 100%; }
.l3 .bars { height: 150px; display: flex; align-items: flex-end; gap: 3px; background: #22191e; border-radius: 6px; padding: 10px; }
.l3 .bars i { display: block; border-radius: 2px; }
.l3 .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; color: var(--white); font: 600 22px/1.2 var(--tc); }
.l3 .facts b { color: var(--cyan); font-weight: 600; }
.l4 .pages { position: relative; width: 82%; aspect-ratio: 1.414; }
.l4 .pages img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); }
.l4 .pages img:first-child { transform: rotate(-5deg) translate(-6%, 4%); }
.l4 .pages img:last-child { transform: rotate(3deg) translate(4%, -3%); }

/* ---------- MV ---------- */
.mv { padding: 130px 0 120px; }
.mv h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.25; margin-bottom: 18px; }
.mv .sub { color: var(--mute-d); max-width: 38em; margin: 0 0 48px; }
.works { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: end; }
.work { margin: 0; }
.work .tv { position: relative; border-radius: 10px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px #3a2c33, 0 30px 60px -24px rgba(0, 0, 0, .9); }
.work .tv video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.work .tv .rec { position: absolute; top: 12px; left: 14px; font: 600 14px/1 var(--tc); letter-spacing: .08em; color: var(--white); text-shadow: 0 1px 3px #000; }
.work .tv .rec::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); margin-right: 7px; vertical-align: 1px; }
.work figcaption { margin-top: 16px; }
.work h3 { margin: 0; font: 400 24px/1.3 var(--display); }
.work p { margin: 6px 0 0; color: var(--mute-d); font-size: 15px; }
.work-b { transform: translateY(-40px); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.thumbs img { border-radius: 4px; aspect-ratio: 16 / 9; object-fit: cover; }
.credit { margin-top: 26px; color: var(--mute-d); font-size: 13px; }

/* ---------- PV ---------- */
.pv { padding: 40px 0 130px; }
.pv h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 26px; }
.pv video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.pv .credit { margin-top: 12px; }

/* ---------- paper sections ---------- */
.paper { background: var(--paper); color: var(--ink); }
.paper section { padding: 110px 0; }
.paper h2 { font-size: clamp(30px, 4vw, 50px); line-height: 1.25; margin-bottom: 16px; }
.paper .sub { color: var(--mute-l); max-width: 38em; margin: 0 0 44px; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 0; }
.feat div { border-top: 3px solid var(--ink); padding-top: 14px; }
.feat dt { font: 400 22px/1.35 var(--display); margin-bottom: 6px; }
.feat dd { margin: 0; color: var(--mute-l); }
.duo { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
.duo > div { padding: 26px 28px; }
.duo > div + div { background: var(--ink); color: var(--white); }
.duo h3 { margin: 0 0 6px; font: 400 22px/1.3 var(--display); }
.duo p { margin: 0; }
.duo > div:first-child p { color: var(--mute-l); }
.plans { width: 100%; border-collapse: collapse; }
.plans th, .plans td { text-align: left; padding: 16px 18px; border-bottom: 1px solid #d8cdd3; vertical-align: top; }
.plans thead th { border-bottom: 3px solid var(--ink); font: 400 21px/1.3 var(--display); }
.plans .price { display: block; font: 600 40px/1.2 var(--tc); margin-top: 4px; }
.plans .price small { font: 500 15px/1 var(--jp); color: var(--mute-l); }
.plans .pro { background: var(--white); }
.plans .early { display: inline-block; margin-top: 8px; background: var(--pink); color: var(--white); font: 700 13px/1 var(--jp); padding: 6px 10px; border-radius: 999px; }
.plans tbody th { font-weight: 500; color: var(--mute-l); width: 32%; }
.req { margin-top: 20px; color: var(--mute-l); font-size: 14px; }
.faq details { border-top: 1px solid #d8cdd3; padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid #d8cdd3; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 26px/1 var(--tc); color: var(--pink-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--mute-l); max-width: 46em; }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; background: var(--pink); color: var(--ink); padding: 130px 0; text-align: center; }
.closing h2 { font-size: clamp(34px, 5.4vw, 72px); line-height: 1.2; margin-bottom: 34px; }
.closing .cta { justify-content: center; }
.closing .vtc-c { position: absolute; left: 3%; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; font: 600 clamp(90px, 12vw, 180px)/1 var(--tc); color: transparent; -webkit-text-stroke: 2px var(--ink); opacity: .22; pointer-events: none; }

footer { background: var(--ink); color: var(--mute-d); font-size: 13px; padding: 30px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer nav { margin-left: auto; display: flex; gap: 18px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel, .tape .run { animation: none; }
  .how::before { animation: none !important; clip-path: none; }
  .layer { transition: opacity .2s; transform: none; }
}

@media (max-width: 900px) {
  .top nav { display: none; }
  .hero { padding: 40px 0 100px; }
  .hero-grid, .story-grid, .how-grid, .works, .feat, .duo { grid-template-columns: 1fr; }
  .lens-wrap { width: min(320px, 78vw); margin-top: 10px; }
  .vtc { display: none; }
  .strip-b { top: 0; opacity: .35; }
  .strip-a { top: auto; bottom: 40px; } .cell { width: 170px; }
  .how-grid { padding: 110px 0 80px; gap: 24px; }
  .stage-col { order: -1; position: sticky; top: 58px; z-index: 1; }
  .stage { position: relative; top: 0; }
  .step { min-height: 62vh; }
  .work-b { transform: none; }
  .duo > div + div { border-top: 3px solid var(--ink); }
  .closing .vtc-c { display: none; }
}
@media (max-width: 520px) {
  .plans th, .plans td { padding: 12px 8px; font-size: 14px; }
  .plans .price { font-size: 30px; }
  .tape .run { font-size: 18px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
}
