/* GinzaOS site. Za identity tokens: ../../branding/source/brand-tokens.json
   Radius rule: frames and panels 12px, buttons 8px. No other radii. */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ink: #121417;
  --ink-soft: #2e3238;
  --tile: #1c1f24;
  --paper: #f6f5f2;
  --shu: #d2462e;
  --gin: #b9bfc7;
  --mist: #e7e9ec;
  --slate: #5e6570;

  --bg: var(--paper);
  --surface: #ffffff;
  --text: var(--ink);
  --muted: var(--slate);
  --line: #dcddd9;
  --button-bg: var(--ink);
  --button-text: var(--paper);
  --button-hover: var(--ink-soft);
  --band: var(--ink);
  --band-text: var(--paper);
  --band-muted: var(--gin);
  --frame-shadow: 0 30px 80px -30px rgba(18, 20, 23, 0.28), 0 2px 6px rgba(18, 20, 23, 0.06);

  --wrap: min(1200px, 100% - 96px);
  --radius: 12px;
  --radius-button: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --surface: #1c1f24;
    --text: #f6f5f2;
    --muted: #b9bfc7;
    --line: #2e3238;
    --button-bg: #f6f5f2;
    --button-text: #121417;
    --button-hover: #e7e9ec;
    --band: #1c1f24;
    --band-text: #f6f5f2;
    --band-muted: #b9bfc7;
    --frame-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px #2e3238;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }

:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 14px; border-radius: var(--radius-button); background: var(--button-bg); color: var(--button-text); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; }
.header-inner { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand-link { display: block; flex: none; }
.brand-link img { width: 136px; height: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--muted); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }

.lang-link { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lang-link:hover { color: var(--text); }
.site-nav + .lang-link { margin-left: 4px; }
.brand-link + .lang-link { margin-left: auto; }
.button {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-button);
  background: var(--button-bg); color: var(--button-text);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .2s ease, transform .2s var(--ease);
}
.button:hover { background: var(--button-hover); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; transition: text-decoration-color .2s ease; }
.text-link:hover { text-decoration-color: currentColor; }

.eyebrow { margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-weight: 600; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.06; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.lead { max-width: 56ch; color: var(--muted); font-size: 19px; line-height: 1.6; }
.body { max-width: 52ch; color: var(--muted); font-size: 16px; line-height: 1.65; }

/* Hero: copy left, the real preview bleeding off the right edge */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-block: 72px 96px; width: min(1200px, 100% - 96px); margin-left: max(48px, calc((100% - 1200px) / 2)); }
.hero h1 { font-size: clamp(46px, 6vw, 80px); line-height: 1.02; max-width: 9ch; }
/* Spanish runs longer: smaller display size so the headline stays on two lines. */
.hero h1:lang(es) { font-size: clamp(40px, 4.3vw, 62px); max-width: 14ch; text-wrap: balance; }
.hero .lead { margin-top: 26px; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }
.hero-shot { margin: 0; width: calc(100% + max(48px, (100vw - 1200px) / 2) + 40px); }
.hero-shot img { width: 100%; border-radius: var(--radius); box-shadow: var(--frame-shadow); }
figcaption { margin-top: 14px; color: var(--muted); font-size: 13px; }

/* The questions: typographic, no cards */
.questions { padding-block: 120px 112px; border-top: 1px solid var(--line); }
.questions h2 { max-width: 22ch; }
.questions .lead { margin-top: 24px; }
.question-list { list-style: none; margin: 64px 0 0; padding: 0; display: grid; gap: 0; }
.question-list li { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: baseline; padding-block: 28px; border-top: 1px solid var(--line); }
.question-list li:last-child { border-bottom: 1px solid var(--line); }
.question-list strong { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.question-list span { color: var(--muted); font-size: 16px; }

/* Product: asymmetric bento of real screens */
.product { padding-block: 120px; }
.bento { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto; gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tile-large { grid-row: span 2; background: var(--mist); border-color: transparent; }
.tile-copy { display: grid; gap: 10px; }
.tile-copy p { color: var(--muted); font-size: 16px; max-width: 46ch; }
.tile img { border-radius: 8px; border: 1px solid var(--line); margin-top: auto; }
.tile-large img { flex: 1 1 0; min-height: 320px; width: calc(100% + 32px); max-width: none; margin-top: 8px; object-fit: cover; object-position: left top; border-top-right-radius: 0; border-bottom-right-radius: 0; }
@media (prefers-color-scheme: dark) { .tile-large { background: #262a30; } }

/* Za story: the one deliberate ink band */
.za { background: var(--band); color: var(--band-text); }
.za-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; padding-block: 120px; }
.za-mark { width: min(340px, 80%); aspect-ratio: 1; }
.za h2 { color: var(--band-text); }
.za .body { margin-top: 24px; color: var(--band-muted); font-size: 18px; max-width: 48ch; }
.za .body + .body { margin-top: 16px; }
.za .kanji { font-family: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', sans-serif; font-weight: 500; color: var(--band-text); }

/* Foundations: 2 by 2, hairline tops */
.foundations { padding-block: 120px; }
.foundation-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.foundation-grid li { padding-top: 24px; border-top: 1px solid var(--line); }
.foundation-grid p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 44ch; }

/* Status: grouped two-column split */
.status { padding-block: 112px; background: var(--surface); border-block: 1px solid var(--line); }
.status .lead { margin-top: 24px; }
.status-columns { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.status-group { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.status-group h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.status-group ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.status-group li { font-size: 17px; font-weight: 500; }

/* Closing */
.closing { padding-block: 128px 136px; text-align: center; }
.closing h2 { margin-inline: auto; max-width: 16ch; }
.closing .lead { margin: 24px auto 0; max-width: 46ch; }
.closing .hero-actions { justify-content: center; }
.closing .email { color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px 56px; color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.footer-brand img { width: 120px; }
.footer-brand p { margin-top: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Plain document pages (privacy, 404) */
.doc { padding-block: 96px 120px; max-width: 720px; }
.doc h1 { font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.doc .lead { margin-top: 20px; }
.doc section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc section p { margin-top: 10px; color: var(--muted); }
.doc .hero-actions { margin-top: 40px; }

/* Motion: entrance for the hero, reveal on scroll. Transform and opacity only. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-shot { animation: rise 1s var(--ease) .2s both; }
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; width: var(--wrap); margin-inline: auto; padding-block: 48px 80px; gap: 48px; }
  .hero h1 { max-width: 12ch; }
  .hero-shot { width: 100%; }
  .za-inner { grid-template-columns: 1fr; gap: 40px; }
  .za-mark { width: 160px; }
}

/* Phone: strict single column */
@media (max-width: 767px) {
  :root { --wrap: calc(100% - 32px); }
  body { font-size: 16px; }
  .header-inner { height: 64px; gap: 16px; }
  .brand-link img { width: 118px; }
  .site-nav { display: none; }
  .lang-link { margin-left: auto; }
  .hero { padding-block: 32px 64px; }
  .hero .lead { font-size: 17px; }
  .questions, .product, .foundations { padding-block: 80px; }
  .question-list li { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; }
  .bento { grid-template-columns: 1fr; }
  .tile-large { grid-row: auto; }
  .tile { padding: 24px; }
  .tile-large img { flex: none; min-height: 0; width: calc(100% + 24px); }
  .za-inner { padding-block: 80px; }
  .foundation-grid { grid-template-columns: 1fr; gap: 32px; }
  .status { padding-block: 80px; }
  .status-columns { grid-template-columns: 1fr; }
  .status-group { padding: 24px; }
  .closing { padding-block: 88px 96px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
.doc h2.h3-like { font-size: 20px; letter-spacing: -0.015em; max-width: none; }
