@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500&family=Geist+Mono&family=Shippori+Mincho&family=Noto+Sans+JP:wght@300&display=swap");

:root {
  --bone: #ede8db;
  --stone: #ccc7ba;
  --ink: #121212;
  --muted: #807d78;
  --red: #c7291f;
  --line: rgba(18, 18, 18, 0.14);
  --serif: "Shippori Mincho", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --rail: 112px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--red); color: var(--bone); }

.mono { font: 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* Rail: vertical NICODA + ND seal, the core of the identity */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); display: flex; flex-direction: column; align-items: center; padding-top: 40px; gap: 72px; z-index: 5; }
.seal { width: 36px; height: 36px; display: block; line-height: 0; position: relative; z-index: 2; }
.seal svg { width: 100%; height: 100%; }
.vertical { font: 300 30px/1.32 "Noto Sans JP", var(--sans); display: flex; flex-direction: column; align-items: center; }

.nav { position: fixed; top: 40px; right: var(--pad); display: flex; gap: 48px; z-index: 5; mix-blend-mode: multiply; }
.nav a:hover { color: var(--red); }

main { margin-left: var(--rail); padding: 0 var(--pad); }
section { padding: clamp(96px, 14vw, 200px) 0 0; }
.label { display: flex; gap: 16px; align-items: baseline; margin-bottom: 40px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(36px, 5vw, 76px); line-height: 1.08; max-width: 16ch; }
h3 { font-size: 28px; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; max-width: 34em; }

/* Hero, as in the landing board */
.hero { padding-top: 140px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.hero figure { grid-column: 2 / 12; margin: 0; }
.hero img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; background: var(--stone); }
.hero .caption { grid-column: 2 / 12; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 22px; }
.cta { color: var(--red); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.cta:hover { border-color: var(--red); }

/* Manifesto */
.manifesto p { font: 400 clamp(28px, 3.6vw, 54px)/1.22 var(--serif); max-width: 30ch; text-wrap: balance; }
.manifesto p + p { margin-top: 0.5em; }
.manifesto .quiet { color: var(--muted); }

/* Work: editorial grid, sizes vary on purpose */
.work-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 24px; align-items: start; }
.grid figure { margin: 0; }
.grid img { width: 100%; height: auto; background: var(--stone); }
.grid figcaption { padding-top: 12px; display: flex; justify-content: space-between; }
.grid .w-a { grid-column: 1 / 8; }
.grid .w-b { grid-column: 9 / 13; margin-top: 6vw; }
.grid .w-c { grid-column: 2 / 6; }
.grid .w-d { grid-column: 7 / 13; margin-top: 4vw; }
.grid .w-e { grid-column: 1 / 5; margin-top: 2vw; }
.grid .w-f { grid-column: 6 / 13; }
.grid .w-g { grid-column: 3 / 8; margin-top: 2vw; }
.grid .w-h { grid-column: 9 / 12; margin-top: 4vw; }
.grid .w-i { grid-column: 1 / 7; }
.grid .w-j { grid-column: 8 / 13; margin-top: 3vw; }
.credit { margin-top: 48px; }

/* Process */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.steps { margin-top: 48px; border-top: 1px solid var(--line); }
.steps li { list-style: none; display: grid; grid-template-columns: 48px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps { padding: 0; }
.shot { border: 1px solid var(--line); }

/* Studio */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 96px; border-top: 1px solid var(--line); padding-top: 40px; }
.people p { margin-top: 14px; max-width: 30em; }
.people .mono { margin-top: 8px; }
.people a.mono:hover { color: var(--red); }

/* Contact */
.contact h2 { max-width: none; font-size: clamp(44px, 8vw, 132px); line-height: 1; }
.contact .lead { margin-top: 24px; }
.mail { display: inline-block; margin-top: 48px; font: 400 clamp(22px, 2.4vw, 32px) var(--serif); border-bottom: 1px solid var(--ink); }
.mail:hover { color: var(--red); border-color: var(--red); }

footer { margin: clamp(120px, 16vw, 220px) 0 0 var(--rail); padding: 28px var(--pad) 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 32px; }
footer a:hover { color: var(--red); }

/* Photos: a mask that lets the image settle and drift inside its frame */
.mask { display: block; overflow: hidden; background: var(--stone); }
.mask img { --drift: 0px; --zoom: 1.06; transform: translate3d(0, var(--drift), 0) scale(var(--zoom)); transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 1.4s ease; will-change: transform; }
.reveal .mask img { opacity: 0; --zoom: 1.14; }
.reveal.in .mask img { opacity: 1; --zoom: 1.06; }
.grid figure:hover .mask img { --zoom: 1.09; }
.hero .mask img { opacity: 0; --zoom: 1.16; transition: transform 2.6s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 1.6s ease; }
body.ready .hero .mask img { opacity: 1; --zoom: 1.06; }
.hero .caption, .rail, .nav { opacity: 0; transition: opacity 1.2s ease 0.6s; }
body.ready .hero .caption, body.ready .rail, body.ready .nav { opacity: 1; }

/* Quiet entrance on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal .mask img, .hero .mask img, .hero .caption, .rail, .nav { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail { position: absolute; inset: 0 auto auto 0; width: auto; flex-direction: row; padding: 24px 20px; gap: 16px; }
  .vertical { flex-direction: row; font-size: 18px; letter-spacing: 0.3em; }
  .nav { top: 30px; gap: 20px; }
  .nav a:not(:last-child) { display: none; }
  .hero { padding-top: 104px; }
  .hero figure, .hero .caption { grid-column: 1 / -1; }
  .hero img { aspect-ratio: 4 / 3; }
  .hero .caption { flex-direction: column; align-items: flex-start; }
  .work-head, .process, .people { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; gap: 32px 14px; }
  .grid figure { grid-column: auto !important; margin-top: 0 !important; }
  .grid figure:nth-child(3n + 1) { grid-column: 1 / -1 !important; }
  .people { gap: 40px; margin-top: 64px; }
}

/* Symbol: the lens slides into the corner on load and stops cut by the frame. */
.seal .lens { animation: toCorner 1.8s cubic-bezier(0.2, 0.7, 0.1, 1) 0.4s both; }
@keyframes toCorner { from { transform: translate(-28px, -28px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .seal .lens { animation: none; } }

/* The letters slide under the box, never over it. */
.rail .vertical span { display: block; will-change: transform, opacity; transform-origin: 50% 50%; }

/* ---------- Live product mock in the Process section (vector UI, real photos, scripted) */
.mock { position: relative; width: 100%; aspect-ratio: 1200 / 600; margin-top: 72px; }
.mock-in { position: absolute; top: 0; left: 0; width: 1200px; height: 600px; transform-origin: 0 0; transform: scale(var(--s, 1));
  background: #f6f2e8; border: 1px solid rgba(18, 18, 18, 0.1); border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(18, 18, 18, 0.35), 0 2px 6px rgba(18, 18, 18, 0.05); font: 15px/1.45 var(--sans); }
.mock-foot { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; }
.m-bar { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 20px; border-bottom: 1px solid rgba(18, 18, 18, 0.08); background: var(--bone); }
.m-sym { width: 20px; height: 20px; display: block; }
.m-sym svg { width: 100%; height: 100%; display: block; }
.m-who { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.m-dot { width: 7px; height: 7px; border-radius: 50%; background: #3c9a5f; box-shadow: 0 0 0 3px rgba(60, 154, 95, 0.15); }
.m-body { display: grid; grid-template-columns: 820px 380px; height: 548px; }
.m-stage { padding: 50px 32px 0; }
.m-img { position: relative; width: 756px; height: 370px; overflow: hidden; background: var(--stone); }
.m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-v2 { clip-path: inset(0 0 0 100%); }
.m-img.anim .m-v2 { transition: clip-path 1.6s cubic-bezier(0.65, 0, 0.2, 1); }
.m-handle { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; margin-left: -1px; background: var(--bone); opacity: 0; transition: opacity 0.4s; }
.m-img.anim .m-handle { transition: left 1.6s cubic-bezier(0.65, 0, 0.2, 1), opacity 0.4s; }
.m-handle span { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--bone); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.m-handle span::before, .m-handle span::after { content: ""; position: absolute; top: 11px; border: 4px solid transparent; }
.m-handle span::before { left: 5px; border-right: 5px solid var(--ink); }
.m-handle span::after { right: 5px; border-left: 5px solid var(--ink); }
.m-tag { position: absolute; top: 12px; padding: 5px 8px; background: rgba(18, 18, 18, 0.55); color: #fff; font-size: 11px; opacity: 0; transition: opacity 0.5s; backdrop-filter: blur(6px); }
.m-tag-l { left: 12px; } .m-tag-r { right: 12px; }
.m-scan { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.m-area { position: absolute; border: 2px solid var(--red); background: rgba(199, 41, 31, 0.1); opacity: 0; transition: opacity 0.5s, border-color 0.5s, background 0.5s; }
.m-area.done { border-color: rgba(237, 232, 219, 0.7); background: transparent; }
.m-pin { position: absolute; top: -13px; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--bone); font-size: 11px; line-height: 24px; text-align: center; box-shadow: 0 0 0 2px var(--bone); transform: scale(0); transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.4s; }
.m-area.numbered .m-pin { transform: scale(1); }
.m-area.done .m-pin { background: var(--ink); }
.m-cap { display: flex; justify-content: space-between; padding-top: 14px; font-size: 11px; }
.m-panel { border-left: 1px solid rgba(18, 18, 18, 0.08); background: #f2eee3; display: flex; flex-direction: column; }
.m-head { padding: 22px 24px 18px; border-bottom: 1px solid rgba(18, 18, 18, 0.08); display: grid; gap: 14px; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-title { font: 400 26px var(--serif); }
.m-chip { font-size: 10.5px; padding: 5px 7px; border: 1px solid rgba(18, 18, 18, 0.18); transition: all 0.4s; white-space: nowrap; }
.m-chip.red { border-color: var(--red); color: var(--red); }
.m-chip.ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.m-chip.stone { background: var(--stone); border-color: var(--stone); }
.m-chip.muted { color: var(--muted); }
.m-chip.pulse::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; vertical-align: 1px; animation: mpulse 1s ease-in-out infinite; }
@keyframes mpulse { 50% { opacity: 0.25; } }
.m-tabs { display: flex; gap: 4px; font-size: 12px; }
.m-tabs span { border: 1px solid rgba(18, 18, 18, 0.14); padding: 5px 10px; transition: all 0.4s; }
.m-tabs span.on { background: var(--ink); color: var(--bone); border-color: var(--ink); }
#mT2 { opacity: 0; transform: translateX(-6px); }
#mT2.in { opacity: 1; transform: none; }
.m-actions { display: flex; gap: 8px; }
.m-btn { font-size: 11px; padding: 9px 12px; border: 1px solid var(--ink); transition: all 0.25s; }
.m-btn.red { border-color: var(--red); color: var(--red); }
.m-btn.red.on { background: var(--red); color: var(--bone); }
.m-btn.solid { background: var(--ink); color: var(--bone); }
.m-btn.press { transform: scale(0.95); }
#mCmp, #mApprove { opacity: 0.25; }
#mCmp.in, #mApprove.in { opacity: 1; }
.m-list { flex: 1; padding: 14px 24px; overflow: hidden; }
.m-count { font-size: 11px; padding-bottom: 12px; }
.m-comment { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(18, 18, 18, 0.08); opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s; }
.m-comment.in { opacity: 1; transform: none; }
.m-comment .m-n { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: var(--bone); font-size: 11px; line-height: 24px; text-align: center; transition: background 0.4s; }
.m-comment.done .m-n { background: var(--ink); }
.m-comment.done .m-text { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(18, 18, 18, 0.35); }
.m-meta { font-size: 10.5px; }
.m-text { margin: 4px 0 10px; transition: color 0.4s; }
.m-composer { padding: 16px 24px 20px; border-top: 1px solid rgba(18, 18, 18, 0.08); display: grid; gap: 10px; }
.m-hint { font-size: 10.5px; transition: color 0.3s; }
.m-hint.red { color: var(--red); }
.m-input { min-height: 66px; padding: 12px; background: #f8f5ee; border: 1px solid rgba(18, 18, 18, 0.12); transition: border-color 0.3s; }
.m-input.focus { border-color: var(--ink); }
.m-caret { display: inline-block; width: 1px; height: 17px; background: var(--ink); vertical-align: -3px; opacity: 0; }
.m-input.focus .m-caret { opacity: 1; animation: mpulse 0.9s steps(1) infinite; }
.m-cursor { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2)); }
.m-cursor.fast { transition-duration: 0.12s; transition-timing-function: linear; }
.m-cursor.down path { transform: scale(0.88); transform-origin: 4px 2px; }
@media (max-width: 900px) { .mock { margin-top: 40px; } .mock-foot { flex-direction: column; } }

/* Manifesto words: from a whisper to full ink as you read. Quiet lines settle at grey. */
.manifesto.lit .w { --t: 0; display: inline-block; color: var(--ink); opacity: calc(0.12 + 0.88 * var(--t)); transform: translateY(calc((1 - var(--t)) * 0.18em)); filter: blur(calc((1 - var(--t)) * 2px)); }
.manifesto.lit .quiet .w { color: var(--muted); }

/* Portraits: 4:5 frames; a video replaces the still when there is one. */
.portrait { margin: 0 0 24px; }
.portrait .mask { aspect-ratio: 4 / 5; }
.portrait img, .portrait video { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait .pending { display: grid; place-items: center; background: #e4dfd1; }
.reveal .mask video { opacity: 0; --zoom: 1.14; }
.reveal.in .mask video { opacity: 1; --zoom: 1.06; }
.mask video { --drift: 0px; --zoom: 1.06; transform: translate3d(0, var(--drift), 0) scale(var(--zoom)); transition: transform 1.8s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 1.4s ease; }
.contact-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: end; }
.contact-grid .portrait { margin: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.people .portrait { max-width: 440px; }
.contact-grid .portrait { max-width: 480px; justify-self: end; width: 100%; }
