/* palette: white, ink, shiba red */
:root {
  --paper: #ffffff;
  --paper-2: #f2f2f2;
  --ink: #17110c;
  --ink-2: #5b4a3a;
  --shiba: #c4622d;
  --sesame: #8a6a4b;
  --line: rgba(23, 17, 12, .12);
  --ok: #1f8a4c;
  --no: #c23a22;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--shiba); color: #fff; }
img, svg, canvas, video { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* top bar */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 3vw, 36px);
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.top.scrolled { border-bottom-color: var(--line); }
.mark { display: flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; }
.mark b { font-weight: 900; letter-spacing: -.02em; font-size: 18px; }
.mark span { font: 13px var(--mono); color: var(--ink-2); }
.links { display: flex; gap: 22px; }
.links a { font: 500 13px var(--mono); color: var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.links a:hover { color: var(--shiba); }

.ca-pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0;
  padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 12px var(--mono); color: var(--ink); cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ca-pill:hover { border-color: var(--ink); }
.ca-pill:active { transform: scale(.98); }
.ca-k { flex: none; background: var(--ink); color: var(--paper); font-weight: 500; padding: 3px 8px; border-radius: 999px; font-size: 11px; }
.ca-v { color: #5f5852; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch; }
.ca-c { flex: none; color: var(--ink-2); }

/* hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: 84px 16px 40px; overflow: hidden;
  background: var(--paper);
}
.giant {
  position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding-top: 11svh; gap: .5vw;
  font: 900 clamp(150px, 30vw, 470px)/.8 var(--sans); letter-spacing: -.05em;
  color: #efefef;
  pointer-events: none; z-index: 0;
}
.giant span { display: inline-block; transform: translateY(30px); opacity: 0; animation: up 1.4s var(--ease) forwards; }
.giant span:nth-child(2) { animation-delay: .08s; }
.giant span:nth-child(3) { animation-delay: .16s; }

.side {
  position: absolute; top: 50%; z-index: 2; margin: 0;
  font: 800 clamp(22px, 3vw, 44px)/1 var(--sans); letter-spacing: -.03em; text-transform: lowercase;
  opacity: 0; animation: fade 1.2s .5s var(--ease) forwards;
}
.side em { color: var(--shiba); font-size: 1.15em; }
.side-l { left: calc(clamp(16px, 5vw, 80px) + 50px); }
.side-r { right: calc(clamp(16px, 5vw, 80px) + 50px); }

.stage {
  position: relative; z-index: 1; margin: 0;
  width: min(70svh, 82vw); aspect-ratio: 1; margin-top: -6svh;
  cursor: none;
  opacity: 0; transform: scale(1.04); animation: land 1.3s .1s var(--ease) forwards;
}
.stage img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 36px 44px rgba(0, 0, 0, .10)); }
.lens {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6);
  transition: opacity .25s var(--ease), transform .35s var(--ease);
  background-image: url(/assets/inu-v1.jpg); background-color: #fff; background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(23,17,12,.25), 0 30px 60px -20px rgba(23,17,12,.45), inset 0 0 0 6px rgba(255,255,255,.6);
}
.stage.zoom .lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hint {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  transition: opacity .4s; white-space: nowrap;
}
.stage.zoom .hint { opacity: 0; }

.cta {
  position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 4svh, 44px); transform: translateX(-50%);
  display: flex; gap: 10px; opacity: 0; animation: fade 1s .8s var(--ease) forwards;
}
.buy, .ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s, color .3s, box-shadow .35s var(--ease);
}
.buy { background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -14px rgba(23,17,12,.35); }
.buy:hover { transform: translateY(-2px); background: var(--shiba); }
.ghost { color: var(--ink); border: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ghost:hover { border-color: var(--ink); }
.buy.small { height: 44px; padding: 0 22px; font-size: 14px; }

/* how */
.how { padding: clamp(64px, 9.6vw, 128px) clamp(16px, 5vw, 80px) 60px; max-width: 1320px; margin: 0 auto; }
.kicker { margin: 0 0 14px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--shiba); }
.how-head h2 { margin: 0 0 clamp(40px, 6vw, 72px); font: 800 clamp(40px, 6.4vw, 96px)/1.02 var(--sans); letter-spacing: -.045em; }
.how-head h2 em { color: var(--shiba); }

.tries { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 28px); }
.try .shot { position: relative; aspect-ratio: 1; }
.try .shot img { width: 100%; height: 100%; display: block; object-fit: contain; transition: transform .8s var(--ease), filter .5s; }
.try:hover .shot img { transform: scale(1.04); }
.try.no .shot img { opacity: .4; }
.try.no .why, .try.no .who { opacity: .6; }
.try.no .shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--no) calc(50% - 1.5px), var(--no) calc(50% + 1.5px), transparent calc(50% + 1.5px));
}
.try.yes { transform: translateY(-10px); }
.try.yes .shot::before { content: "kept"; position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--ink); color: var(--paper); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.try.yes .why { font-weight: 700; }
.who { margin: 16px 0 2px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.who::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--no); }
.try.yes .who::before { background: var(--ok); }
.why { margin: 0; font: 600 clamp(17px, 1.6vw, 22px)/1.3 var(--sans); letter-spacing: -.01em; }
.try.no .why { color: var(--ink-2); }

.film { position: relative; margin: clamp(48px, 7vw, 96px) 0 0; border-radius: 22px; overflow: hidden; background: #0b0c10; aspect-ratio: 16 / 9; box-shadow: 0 50px 100px -50px rgba(23,17,12,.3); }
.film video { width: 100%; height: 100%; display: block; object-fit: cover; }
.film-tag { position: absolute; left: 18px; bottom: 18px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 999px; }

.recipe { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(48px, 7vw, 96px); align-items: start; }
.recipe-l p:last-child { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.prompt {
  margin: 0; padding: 26px 28px; border-radius: 18px; background: var(--ink); color: #f1dcc0;
  font: 14px/1.7 var(--mono); white-space: pre-wrap; word-break: break-word;
}

/* footer */
.foot { padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 80px) 48px; border-top: 1px solid var(--line); text-align: center; }
.foot-big { margin: 0 0 32px; font: 900 clamp(44px, 9vw, 140px)/.95 var(--sans); letter-spacing: -.055em; }
.foot-row { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); font: 13px var(--mono); padding: 12px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@keyframes up { to { transform: none; opacity: 1; } }
@keyframes fade { to { opacity: 1; } }
@keyframes land { to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .top { padding: 12px 14px; }
  .top .ca-pill { display: none; }
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 76px 16px 28px; }
  .side { position: static; font-size: 26px; }
  .side-l { align-self: flex-start; order: 1; }
  .stage { order: 2; width: 92vw; margin-top: 0; cursor: default; }
  .side-r { align-self: flex-end; order: 3; }
  .hint { position: static; transform: none; display: block; text-align: center; margin-top: 8px; }
  .cta { position: static; transform: none; order: 4; margin-top: 18px; width: 100%; }
  .tries { grid-template-columns: 1fr; gap: 28px; }
  .recipe { grid-template-columns: 1fr; }
  .cta a { flex: 1; padding: 0 12px; }
  .ca-v { max-width: 18ch; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .giant span, .side, .stage, .cta, [data-reveal] { opacity: 1 !important; transform: none !important; }
}
