/* rc25-003: compact-trust-lockup. */
/* wordmark faces: Zen Kaku Gothic New (chosen) + Spectral (second option) */
@font-face{font-family:'Zen Kaku Gothic New';src:url('../../../postcard-lab/fonts/zenkakugothicnew-400-normal-latin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Spectral';src:url('../../../postcard-lab/fonts/spectral-300-normal-latin.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
/* chosen English display face — Noto Sans JP, self-hosted Latin subsets (photo titles + location) */
@font-face{font-family:'Noto Sans JP';src:url('../../../postcard-lab/fonts/notosansjp-400-normal-latin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Noto Sans JP';src:url('../../../postcard-lab/fonts/notosansjp-400-normal-latin-ext.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
/* extra faces used only by the dev wordmark-comparison bar (rc25-003-wm-switch.js) */
@font-face{font-family:'Jost';src:url('../../../postcard-lab/fonts/jost-300-normal-latin.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Source Sans 3';src:url('../../../postcard-lab/fonts/sourcesans3-300-normal-latin.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Inter';src:url('../../../postcard-lab/fonts/inter-300-normal-latin.woff2') format('woff2');font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:'Playfair Display';src:url('../../../postcard-lab/fonts/playfairdisplay-400-normal-latin.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
:root {
  --identity-mark: 22px;
  --identity-gap: 8px;
  --identity-direction: row;
  --identity-align: center;
  --identity-word-size: 16px;
  --identity-nav-word-size: 16px;
  --identity-word-weight: 400;
  --identity-word-tracking: -0.06em;
  --identity-word-font: 'Zen Kaku Gothic New', sans-serif;
  --identity-dot-shift: 0.08em;

  /* type roles — decided 2026-09-06:
       English display (photo titles + location) = Noto Sans JP  [rc6-022 reference face;
         currently DEV-loaded from Google Fonts — MUST be self-hosted before prod]
       small text = Spectral
       mujō sentence has its own faces (see .return-ja / .return-en below):
         Japanese = Zen Old Mincho, English = EB Garamond */
  --font-display: 'Noto Sans JP', sans-serif;
  --font-text: 'Spectral', serif;
  --font-ja: 'Zen Old Mincho', serif;
}
:root {
  color-scheme: dark;
  --ground: #171518;
  --ink: #e7e7e7;
  --quiet: #aaa6a8;
  --line: rgba(231, 231, 231, .18);
  --veil: rgba(19, 25, 36, .72);
}
* { box-sizing: border-box; }
html { background: var(--ground); scrollbar-gutter: stable; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
img { display: block; max-width: 100%; height: auto; }

.opening {
  min-height: 100svh;
  display: grid;
  place-items: center;
}
.shape-mark {
  display: block;
  width: clamp(52px, 7vw, 86px);
  height: clamp(52px, 7vw, 86px);
  color: #e7e7e7;
}
.shape-mark svg { display: block; width: 100%; height: 100%; }
/* The home opening mark comes into focus — starts slightly soft, resolves sharp. */
.opening .shape-mark { animation: qvi-mark-in 1200ms cubic-bezier(.4,0,.2,1) both; }
@keyframes qvi-mark-in {
  from { opacity: .6; filter: blur(2px); }
  to { opacity: 1; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .opening .shape-mark { animation: none; } }

.home-sequence {
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: 10vh 0 18vh;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2.4vw, 36px);
  align-items: start;
}
.home-sequence > li {
  grid-column: var(--start) / span var(--span);
  margin-top: var(--pause);
}
.encounter { width: 100%; position: relative; }
.encounter summary {
  position: relative;
  display: grid;
  /* Shrink-wrap to the photo so the reveal (::before/::after, inset on this box)
     always matches the actual image — for any photo aspect/size — instead of the
     full-width column that letterboxed and spilled the reveal past the photo. */
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
  cursor: pointer;
  list-style: none;
  isolation: isolate;
}
.encounter summary::-webkit-details-marker { display: none; }
.encounter summary::before,
.encounter summary::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
  transition-property: opacity, transform;
  /* Eased like a window opening — slow to start, glide, settle. */
  transition-duration: 1400ms, 1800ms;
  transition-timing-function: cubic-bezier(.76,0,.24,1), cubic-bezier(.76,0,.24,1);
}
.encounter summary::before {
  inset: -1px 50% -1px -1px;
  background: linear-gradient(105deg, rgba(10,13,18,.87), var(--veil) 68%, rgba(25,32,44,.45));
  border-right: 1px solid rgba(238,234,228,.18);
  transition-delay: 0ms, 0ms;
}
.encounter summary::after {
  inset: -1px -1px -1px 50%;
  background: linear-gradient(110deg, rgba(28,36,48,.38), rgba(10,13,18,.72));
  border-left: 1px solid rgba(238,234,228,.08);
  transition-delay: 70ms, 90ms;
}
.encounter[open] summary::before { opacity: 0; transform: translateX(-102%); }
.encounter[open] summary::after { opacity: 0; transform: translateX(102%); }
.encounter img {
  z-index: 0;
  /* Intrinsic sizing (no forced width:100% + object-fit letterbox): the image
     box equals the rendered photo, so the shrink-wrapped summary and the reveal
     bars fit it exactly at any size. Landscape fills the column width; portrait
     is capped by height — both without letterbox. */
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 68svh;
  filter: saturate(.55) brightness(.62);
  transition: filter 1800ms cubic-bezier(.76,0,.24,1);
}
.encounter[open] img { filter: none; }
.action {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: clamp(14px, 3vw, 36px);
  padding: .7rem 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transform: translateY(-50%);
  transition: opacity 800ms cubic-bezier(.16,.72,.18,1);
}
.encounter[open] .action { opacity: 0; }
.recognition {
  position: absolute;   /* on the SIDE of the photograph (right edge), not beneath it */
  z-index: 4;
  top: 50%;
  right: clamp(14px, 3vw, 36px);
  transform: translateY(-50%);
  max-width: min(48%, 15rem);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: .85rem;
  padding: .85rem 1rem;
  background: rgba(8, 11, 15, .52);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: .08em;
}
.encounter:not([open]) .recognition { display: none; }
.open-detail {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 0 0 .2rem;
  cursor: pointer;
}

.viewer[hidden], .return[hidden] { display: none; }
.viewer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 6vh 6vw;
}
.viewer-ground {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--ground);
  cursor: pointer;
}
.viewer-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}
.viewer-frame img { max-width: 86vw; max-height: 78vh; width: auto; object-fit: contain; }
.viewer-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.5rem;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: .1em;
}
.viewer-title { color: var(--ink); flex-basis: 100%; text-align: center; font-size: 15px; }
/* Keep place · year centred when optional fields (detail/story) are empty:
   an empty caption span otherwise leaves a phantom slot + gap. */
.viewer-frame figcaption span:empty { display: none; }
.viewer-close {
  position: fixed;
  z-index: 2;
  top: 28px;
  right: 32px;
  padding: .3rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  letter-spacing: .16em;
  cursor: pointer;
}

.return {
  min-height: 100svh;
  padding: 8vh 8vw;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 2400ms cubic-bezier(.16,.72,.18,1),
    transform 2400ms cubic-bezier(.16,.72,.18,1);
}
.return.is-visible { opacity: 1; transform: translateY(0); }
/* Leaving for the Gallery: a slow, cinematic drift up + gentle defocus, as if
   the words lift away and reveal what's next — not an abrupt cut. */
.return.is-leaving {
  opacity: 0;
  transform: translateY(-40px) scale(1.02);
  filter: blur(5px);
  transition: opacity 800ms cubic-bezier(.4,0,.2,1),
    transform 800ms cubic-bezier(.4,0,.2,1),
    filter 800ms cubic-bezier(.4,0,.2,1);
}
.return-ja, .return-en {
  max-width: 38rem;
  margin: 0;
  font-size: 15px;
  line-height: 2;
  font-weight: 400;
}
.return-ja { font-family: var(--font-ja); letter-spacing: .12em; }        /* Zen Old Mincho */
.return-en { margin-top: 1.4em; font-family: 'EB Garamond', serif; }      /* mujō gloss */
.return-source {                                                          /* 方丈記 attribution */
  margin-top: 2.2em;
  font-family: var(--font-ja);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--quiet);
}
.return-guide { margin-top: 4.5em; }
.return-gallery {
  color: var(--quiet);
  font-size: 14px;
  letter-spacing: .14em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
body.is-returned .opening,
body.is-returned .home-sequence { display: none; }

/* Leaving home for the Gallery is sequential (NOT overlapping): the mūjō
   sentence fades/drifts out first (.return.is-leaving + qvi-home.js), then the
   gallery fades up on load. */
@keyframes qvi-page-in { from { opacity: 0; } to { opacity: 1; } }
.page-gallery main { animation: qvi-page-in 850ms cubic-bezier(.22,.61,.20,1) both; }
@media (prefers-reduced-motion: reduce) { .page-gallery main { animation: none; } }

/* -- identity system: the only part of this stylesheet that varies across
   the five candidates. Mark path/colors are fixed everywhere; only scale,
   spacing, alignment and wordmark typography change. -- */
.identity {
  display: inline-flex;
  align-items: var(--identity-align);
  gap: var(--identity-gap);
  text-decoration: none;
  color: var(--ink);
}
.identity--lockup { flex-direction: var(--identity-direction); }
.identity--wordmark { align-items: center; }
.identity .shape-mark {
  display: block;
  width: var(--identity-mark);
  height: var(--identity-mark);
  color: #e7e7e7;
  flex: none;
}
.identity .shape-mark svg { display: block; width: 100%; height: 100%; }
.identity .wordmark {
  font-family: var(--identity-word-font);
  font-weight: var(--identity-word-weight);
  letter-spacing: var(--identity-word-tracking);
}
.identity--lockup .wordmark { font-size: var(--identity-word-size); }
.identity--wordmark .wordmark { font-size: var(--identity-nav-word-size); }
/* canonical wordmark construction (trademark-lab V12): dotless i + round green dot */
.wordmark { display: inline-flex; align-items: baseline; line-height: .76; color: currentColor; white-space: nowrap; }
.wordmark .i { position: relative; display: inline-block; margin-left: .01em; letter-spacing: 0; }
.wordmark .dot {
  position: absolute;
  left: calc(50% + var(--identity-dot-shift, .1em));
  top: -.025em;
  width: .09em;
  height: .09em;
  margin-left: -.045em;
  border-radius: 50%;
  background: #0F9C86;
}

/* --- dev wordmark-comparison bar (rc25-003-wm-switch.js); remove before finalizing --- */
.wm-switch { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-wrap: wrap;
  align-items: center; gap: 14px 20px; padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(14, 15, 17, .94); backdrop-filter: blur(8px); border-top: 1px solid #26262a; }
.wm-switch .lbl { font-family: 'Spectral', serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #8f8d86; }
.wm-switch .preview { display: inline-flex; align-items: baseline; min-width: 120px; }
.wm-switch .preview .wordmark { font-size: 46px; color: #e9e7e0;
  font-family: var(--identity-word-font); font-weight: var(--identity-word-weight); letter-spacing: var(--identity-word-tracking); }
.wm-switch .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.wm-switch button { font-family: 'Spectral', serif; font-size: 13px; color: #8f8d86; background: transparent;
  border: 1px solid #333; border-radius: 2px; padding: 7px 12px; cursor: pointer; transition: color .15s, border-color .15s; }
.wm-switch button:hover { color: #e9e7e0; border-color: #555; }
.wm-switch button[aria-pressed="true"] { color: #e9e7e0; border-color: #0F9C86; }
/* type-voice toggle: its own full-width row at the top of the dev bar */
.voice-row { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding-bottom: 12px; margin-bottom: 2px; border-bottom: 1px solid #1e1f22; }
.voice-row .btns { margin-left: auto; }

.site-nav {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: 1.2rem 4vw;
  border-bottom: 1px solid rgba(231,231,231,.12);
  background: rgba(23,21,24,.9);
  backdrop-filter: blur(12px);
}
.site-nav-links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
}
.site-nav-links a {
  color: var(--quiet);
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}
.chooser {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  padding: 8vh 4vw 5vh;
}
.family {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: .75rem;
  align-items: center;
}
.family-name {
  display: block;
  grid-column: 1 / -1;
  color: rgba(231,231,231,.48);
  font-family: var(--font-text);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.choice {
  padding: .52rem .82rem;
  border: 1px solid rgba(231,231,231,.24);
  border-radius: 999px;
  background: rgba(231,231,231,.055);
  color: rgba(231,231,231,.72);
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: .08em;
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease;
}
.choice:hover {
  color: var(--ink);
  border-color: rgba(231,231,231,.52);
}
.choice[aria-pressed="true"] {
  color: var(--ground);
  border-color: var(--ink);
  background: var(--ink);
}
.field {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12vh 2vw;
  padding: 4vh 2vw 10vh;
}
.field .plate { margin: 0; }
.field .plate[hidden] { display: none; }
/* Project cover tile: a small badge marks it as a set, and the image gets a
   subtle stacked-edge so it reads as "more behind". */
.field .plate.is-project { position: relative; }
.field .plate.is-project img { box-shadow: 6px 6px 0 -1px rgba(20,25,34,.55), 12px 12px 0 -2px rgba(20,25,34,.3); }
.field .plate-project {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  padding: 3px 8px; border-radius: 2px;
  background: rgba(12,15,20,.78); color: #d7ded9;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; letter-spacing: .06em; line-height: 1.4;
  backdrop-filter: blur(2px);
}
.field figcaption {
  margin-top: .8rem;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: .1em;
}
.field figcaption span { display: block; }

.trust-head, .confirmation {
  padding: 8vh 4vw 2vh;
  max-width: 52rem;
}
.trust-head .eyebrow, .confirmation .eyebrow {
  color: var(--quiet);
  font-family: var(--font-text);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.trust-head h1, .confirmation h1 {
  margin: .4em 0 0;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
}
.trust-head .lead, .confirmation .lead {
  margin-top: .8em;
  color: var(--quiet);
  font-size: 16px;
}
.product-grid {
  list-style: none;
  margin: 0;
  padding: 2vh 4vw 10vh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6vh 2vw;
}
.product { margin: 0; }
.product-title {
  margin: .8rem 0 0;
  font-size: 15px;
}
.product-place {
  margin: .2rem 0 0;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: .08em;
}
.product-price {
  margin: .6rem 0 0;
  font-size: 14px;
  letter-spacing: .06em;
}

/* --- rc6-022 photo-label format (dev experiment; toggled via body.fmt-rc6022) ---
   index numeral + title·place on one baseline line, hierarchy by size/colour not weight */
body.fmt-rc6022 .product img { display: block; }
body.fmt-rc6022 .product-title {
  display: inline-block;
  margin: .9rem 0 0;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .08em;
}
body.fmt-rc6022 .product-place {
  display: inline-block;
  margin: .9rem 0 0 12px;
  color: var(--quiet);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
body.fmt-rc6022 .product-price {
  margin: .5rem 0 0;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--quiet);
}
/* rc6-022 format — Gallery field captions (title · location on one line) */
body.fmt-rc6022 .field figcaption {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .08em;
}
body.fmt-rc6022 .field figcaption span {
  display: inline-block;
  margin-left: 12px;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--quiet);
}
/* rc6-022 format — Home recognition (title + location surfaced from data-place) */
.recognition-place { display: none; }
body.fmt-rc6022 .recognition .title {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .08em;
}
body.fmt-rc6022 .recognition-place {
  display: inline-block;
  margin-left: 12px;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--quiet);
}
.add-to-cart {
  margin-top: .9rem;
  padding: .55rem 1.1rem;
  border: 1px solid rgba(231,231,231,.32);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 12px;
  letter-spacing: .1em;
  transition: color 240ms ease, background 240ms ease, border-color 240ms ease;
}
.add-to-cart[aria-pressed="true"] {
  color: var(--ground);
  background: #0F9C86;
  border-color: #0F9C86;
}
.confirmation { padding-bottom: 12vh; }
.order-summary {
  margin: 3em 0 0;
  display: grid;
  gap: 1em;
}
.order-summary > div { display: flex; justify-content: space-between; gap: 2em; max-width: 34rem; }
.order-summary dt {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.order-summary dd {
  margin: 0;
  font-size: 15px;
  text-align: right;
}
.next-action { margin-top: 3.5em; }
.next-action .return-gallery {
  color: var(--quiet);
  font-size: 14px;
  letter-spacing: .14em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

@media (max-width: 700px) {
  .home-sequence { display: block; width: calc(100% - 32px); }
  .home-sequence > li { margin-top: 12vh; }
  .home-sequence > li:first-child { margin-top: 0; }
  .field { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .viewer-frame img { max-width: 90vw; }
  .viewer-frame figcaption { max-width: 90vw; }
  .site-nav { flex-wrap: wrap; gap: .8rem; }
  .site-nav-links { gap: .8rem; flex-wrap: wrap; }
  .site-nav-links a { font-size: 10px; letter-spacing: .1em; }
  .chooser { display: grid; gap: 2rem; }
  .family { grid-template-columns: repeat(3, minmax(0, max-content)); }
  .product-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .trust-head, .confirmation { padding-left: 16px; padding-right: 16px; }
  .order-summary > div { max-width: none; }
}

/* Wall — a dense gathering of every photograph (small cropped preview tiles;
   grid-preview crop is the one allowed exception to the no-crop rule). */
.wall-field { list-style: none; margin: 0; padding: 4vh 4vw 10vh; display: flex; flex-wrap: wrap; gap: 14px; }
.wall-field .tile { width: 82px; transition: opacity 600ms ease; }
.wall-field .tile.is-dimmed { opacity: .3; }
.wall-field img { max-height: 104px; object-fit: cover; }
@media (max-width: 700px) { .wall-field { padding-left: 16px; padding-right: 16px; } .wall-field .tile { width: 72px; } }
