/*
 * Persiss — base (every page).
 * Hybrid design (preview 05): clean Apple-like skeleton, wide white space, scroll-driven
 * scenes; Persiss signatures = the arch (半円の窓), terracotta and Shippori Mincho.
 * Page styles live in assets/css/{home,works,birds-eye,pages}.css.
 */
/*
 * Size-adjusted local fallbacks, shown while the web fonts load (font-display: swap), so the
 * swap does not move text. Metrics measured against Shippori Mincho / Lora (2026-11).
 * CJK glyphs are 1em wide in every mincho, so only the vertical metrics need matching.
 */
@font-face { font-family: "Shippori Fallback"; font-weight: 100 500; src: local("Hiragino Mincho ProN W3"), local("HiraMinProN-W3"), local("Yu Mincho Regular"), local("YuMincho-Regular"), local("Yu Mincho"); size-adjust: 100%; ascent-override: 116%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Shippori Fallback"; font-weight: 600 900; src: local("Hiragino Mincho ProN W6"), local("HiraMinProN-W6"), local("Yu Mincho Demibold"), local("YuMincho-Demibold"), local("Yu Mincho"); size-adjust: 100%; ascent-override: 116%; descent-override: 29%; line-gap-override: 0%; }
@font-face { font-family: "Lora Fallback"; font-style: normal; src: local("Georgia"); size-adjust: 103.4%; ascent-override: 97.7%; descent-override: 26.1%; line-gap-override: 0%; }
@font-face { font-family: "Lora Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 98.3%; ascent-override: 102.7%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
	/* colours: assets/css/palette.css */
	/* Japanese gothic = the system's own (no web font): Hiragino on Apple, Noto Sans JP on Android, Yu Gothic on Windows. */
	--f-jp-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
	--f-latin: "Lora", "Lora Fallback", "Shippori Mincho", "Shippori Fallback", Georgia, serif;
	--f-ja: "Shippori Mincho", "Shippori Fallback", "Lora", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--f-ui: "Quicksand", var(--f-jp-sans);
	--f-body: var(--f-jp-sans);
	--f-fa: "Vazirmatn", system-ui, sans-serif; /* Vazirmatn is loaded by i18n.js only when فا is shown */

	--arch: 999px 999px 16px 16px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--nav-h: 56px;
	--gut-l: max(20px, env(safe-area-inset-left, 0px));
	--gut-r: max(20px, env(safe-area-inset-right, 0px));
	color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--f-body); font-size: 16px; line-height: 1.95; letter-spacing: .03em;
	-webkit-font-smoothing: antialiased;
}
.site { overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; word-break: auto-phrase; font-feature-settings: "palt"; line-height: 1.35; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 999px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.wrap--narrow { max-width: 860px; }
.eyebrow { font-family: var(--f-ui); font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.ja { font-family: var(--f-ja); }
.latin { font-family: var(--f-latin); }
.muted { color: var(--muted); }

/* ---------- languages: JA (default) · EN · FA (temporary) ---------- */
html[lang="en"] { --f-body: "Quicksand", var(--f-jp-sans); --f-ja: "Lora", "Lora Fallback", "Shippori Mincho", "Shippori Fallback", Georgia, serif; }
html[lang="en"] body { letter-spacing: 0; line-height: 1.75; }
html[lang="fa"] { --f-body: var(--f-fa); --f-ja: var(--f-fa); }
html[lang="fa"] body { letter-spacing: 0; line-height: 1.95; }
html[lang="fa"] :is(h1, h2, h3, h4) { font-weight: 700; letter-spacing: 0; }
html[lang="fa"] .more::after { content: " ←"; }
/* Persian text runs right-to-left even where the page layout stays left-to-right. */
html[lang="fa"] [data-tx], html[lang="fa"] [data-t] { unicode-bidi: plaintext; }
html[lang="fa"]:not([dir="rtl"]) :is(p, h1, h2, h3, h4, li, dd, blockquote, figcaption):has(> [data-tx], > [data-t]),
html[lang="fa"]:not([dir="rtl"]) :is(p, h1, h2, h3, h4, li, dd, blockquote, figcaption)[data-t] { direction: rtl; }
html[dir="rtl"] :is(.eyebrow, .latin, .num) { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- buttons & links ---------- */
.pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
	min-height: 44px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
	font-size: 14px; font-weight: 700; letter-spacing: .05em;
	transition: background-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.pill:active { transform: scale(.97); }
.pill--sm { min-height: 34px; padding: 0 16px; font-size: 12.5px; }
.pill--accent { background: var(--accent); color: var(--on-accent); }
.pill--accent:hover { background: var(--accent-dark); }
.pill--ink { background: var(--ink); color: var(--on-ink); }
.pill--ink:hover { background: var(--ink-hover); }
.pill--line { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill--light { background: var(--on-ink); color: var(--ink); }
.pill--light:hover { background: #fff; }
.more { font-size: 15px; font-weight: 500; color: var(--accent); }
.more::after { content: " →"; display: inline-block; transition: transform .25s var(--ease); }
.more:hover::after { transform: translateX(4px); }

/* ---------- header (navigation concept E: arch mega menu ≥ 900px, app tab bar < 900px) ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: rgba(var(--bg-rgb), .82); }
.nav {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: rgba(var(--bg-rgb), .8);
	-webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
	border-bottom: 1px solid rgba(var(--ink-rgb), .06);
}
.nav__in { display: flex; align-items: center; gap: 14px; height: var(--nav-h); }
.logo { display: inline-flex; align-items: center; flex: none; direction: ltr; line-height: 0; }
.logo__svg { display: block; height: 32px; width: auto; aspect-ratio: 862 / 250; overflow: visible; }
@media (max-width: 899.98px) { .logo__svg { height: 28px; } }
.nav__main { margin-inline-start: auto; display: none; }
.nav__links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__ti {
	display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
	font: 600 14px/1 var(--f-ja); letter-spacing: .05em; color: var(--ink);
	transition: background-color .2s ease, color .2s ease;
}
html[lang="en"] .nav__ti { font: 700 13.5px/1 var(--f-ui); letter-spacing: .02em; }
html[lang="fa"] .nav__ti { font: 600 14px/1 var(--f-fa); letter-spacing: 0; }
.nav__ti:hover, .nav__ti[aria-expanded="true"] { background: var(--paper); }
.nav__ti[aria-current] { color: var(--accent); }
.chev { display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
[aria-expanded="true"] > .chev { transform: translateY(1px) rotate(225deg); }
.nav__end { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.nav__cta { display: none; }
.nav__cta .nav__ar { display: inline-block; transition: transform .2s var(--ease); }
.nav__cta:hover .nav__ar { transform: translateX(3px); }
html[lang="fa"] .nav__ar { transform: scaleX(-1); }
html[lang="fa"] .nav__cta:hover .nav__ar { transform: scaleX(-1) translateX(3px); }

/* language: compact JA | EN | فا (phone bar, menu sheet) */
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(var(--ink-rgb), .06); direction: ltr; }
.lang button { position: relative; min-height: 34px; min-width: 38px; padding: 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft); font: 700 11.5px/1 "Quicksand", system-ui, sans-serif; letter-spacing: .08em; cursor: pointer; }
.lang button::after { content: ""; position: absolute; inset: -5px 0; }
.lang button[lang="fa"] { font-family: var(--f-fa); font-size: 13px; letter-spacing: 0; padding-top: 4px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }

/* language: 🌐 JA ▾ dropdown (desktop) */
.langdd { position: relative; display: none; }
.langdd__btn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 700 12px/1 var(--f-ui); letter-spacing: .06em; color: var(--ink-soft); direction: ltr; transition: background-color .2s ease; }
.langdd__btn:hover, .langdd__btn[aria-expanded="true"] { background: var(--paper); }
.langdd__btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.langdd__menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 5; min-width: 168px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 20px 40px -20px rgba(var(--ink-rgb), .35); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.langdd.is-open .langdd__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.langdd__menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font: 500 13.5px/1 var(--f-body); color: var(--ink); text-align: start; }
.langdd__menu button[lang="ja"] { font-family: var(--f-jp-sans); }
.langdd__menu button[lang="en"] { font-family: "Quicksand", system-ui, sans-serif; font-weight: 600; }
.langdd__menu button[lang="fa"] { font-family: var(--f-fa); }
.langdd__menu button:hover { background: var(--paper); }
.langdd__menu button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.langdd__code { font: 700 10px/1 var(--f-ui); letter-spacing: .14em; color: var(--muted); }

/* mega panels */
.mega { display: none; }
.scrim { position: fixed; inset: 0; z-index: 45; background: rgba(var(--ink-rgb), .18); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
html.mega-open .scrim { opacity: 1; visibility: visible; transition: opacity .3s ease; }
@media (min-width: 900px) {
	:root { --nav-h: 68px; }
	.nav__in { gap: 26px; }
	.nav__main { display: block; }
	.nav__end { margin-inline-start: 0; }
	.nav__cta { display: inline-flex; }
	.nav__cta.pill--sm { min-height: 40px; padding: 0 20px; font-size: 13px; }
	.nav__cta[aria-current] { background: var(--accent-dark); }
	.langdd { display: block; }
	.nav__lang-mb { display: none; }
	.mega {
		display: block; position: absolute; left: 0; right: 0; top: 100%;
		background: var(--bg); border-bottom: 1px solid var(--line); border-radius: 0 0 26px 26px;
		box-shadow: 0 30px 60px -30px rgba(var(--ink-rgb), .35);
		clip-path: inset(0 0 100% 0); visibility: hidden;
		transition: clip-path .45s var(--ease), visibility 0s .45s;
	}
	.mega.is-open { clip-path: inset(0 0 -40px 0); visibility: visible; transition: clip-path .45s var(--ease); }
}
.mega__in { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-block: 30px 34px; }
.mega__title { font: 600 22px/1.5 var(--f-ja); font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
html[lang="en"] .mega__title { font-weight: 500; }
html[lang="fa"] .mega__title { font-weight: 700; line-height: 1.7; }
.mega__p { margin: 10px 0 14px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.mega__links { list-style: none; margin: 14px 0 12px; padding: 0; display: grid; gap: 2px; }
.mega__links a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: color .2s ease; }
.mega__links a:hover { color: var(--accent); }
.mega__more { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 700; color: var(--accent); }
html[lang="fa"] :is(.mega__links, .mega__more, .mcard__t) [aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }

/* arch cards (mega panels + sheets) */
.mcards, .hscroll { list-style: none; margin: 0; padding: 0; }
.mcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mcard { display: block; }
.mcard__fr { display: block; overflow: hidden; border-radius: var(--arch); aspect-ratio: 5 / 4; background: var(--paper); transition: border-radius .45s var(--ease); }
.mcard:hover .mcard__fr { border-radius: 120px 120px 14px 14px; }
.mcard img { width: 100%; height: 100%; object-fit: cover; }
.mega .mcard img { clip-path: inset(100% 0 0 0); transform: scale(1.06); transition: clip-path .6s var(--ease), transform .9s var(--ease); }
.mega.is-open .mcard img { clip-path: inset(0); transform: none; }
.mega.is-open .mcards > li:nth-child(2) img { transition-delay: .07s; }
.mega.is-open .mcards > li:nth-child(3) img { transition-delay: .14s; }
.mcard__tag { display: inline-block; margin-top: 12px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 10.5px/1 var(--f-ui); letter-spacing: .08em; }
html[lang="fa"] .mcard__tag { font-family: var(--f-fa); letter-spacing: 0; }
.mcard__tag + .mcard__t { margin-top: 6px; }
.mcard__t { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font: 600 17px/1.4 var(--f-ja); font-feature-settings: "palt"; }
html[lang="fa"] .mcard__t { font-weight: 700; }
.mcard__ar { transition: transform .25s var(--ease); }
.mcard:hover .mcard__ar { transform: translateX(3px); }
.mcard__d { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.mcard__p { display: inline-block; margin-top: 8px; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font: 700 11px/1 var(--f-ui); letter-spacing: .04em; color: var(--accent); }
html[lang="ja"] .mcard__p, html:not([lang]) .mcard__p { font-family: var(--f-body); }
html[lang="fa"] .mcard__p { font-family: var(--f-fa); letter-spacing: 0; }
.mcard__p--q { color: var(--muted); }

/* back-to-top arch (desktop) */
.totop { display: none; }
@media (min-width: 900px) {
	.totop {
		position: fixed; right: calc(28px + env(safe-area-inset-right, 0px)); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); z-index: 40;
		display: grid; place-items: center; align-content: center; width: 54px; height: 66px; padding: 6px 0 0; border: 0; background: none; cursor: pointer; color: var(--ink);
		opacity: 0; visibility: hidden; transform: translateY(18px);
		transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s, color .25s ease;
	}
	html.scrolled .totop { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--ease), transform .5s var(--ease), color .25s ease; }
	body:has(.be .viewer:not([hidden])) .totop { display: none; }
}
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.totop__trk { fill: rgba(var(--bg-rgb), .88); stroke: var(--line); stroke-width: 1.5; transition: fill .25s ease; }
.totop__prg { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: var(--p, 1); }
.totop__ic { position: relative; font: 500 18px/1 var(--f-ui); transition: transform .3s var(--ease); }
.totop__lb { position: relative; margin-top: 5px; font: 700 8.5px/1 var(--f-ui); letter-spacing: .2em; }
.totop:hover { color: var(--on-ink); }
.totop:hover .totop__trk { fill: var(--ink); }
.totop:hover .totop__ic { transform: translateY(-3px); }

/* phone / tablet: app-style bottom tab bar + sheets */
.tabbar, .bsheet, .bscrim { display: none; }
@media (max-width: 899.98px) {
	.foot { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
	.tabbar {
		position: fixed; z-index: 80; left: calc(12px + env(safe-area-inset-left, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		display: grid; grid-template-columns: 1fr 1fr 1.25fr 1fr 1fr; align-items: end; height: 66px; padding: 0 6px 8px; border-radius: 24px;
		background: rgba(var(--bg-rgb), .86); -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
		box-shadow: 0 0 0 1px rgba(var(--ink-rgb), .07), 0 16px 36px -16px rgba(var(--ink-rgb), .45);
		direction: ltr;
	}
	.tabbar > button, .tabbar > a {
		display: grid; justify-items: center; align-content: end; gap: 4px; min-width: 0; min-height: 50px; padding: 0 2px; border: 0; background: none; cursor: pointer;
		font: 700 10px/1.15 var(--f-body); letter-spacing: .02em; color: var(--ink-soft); text-align: center; -webkit-tap-highlight-color: transparent;
	}
	.tabbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
	.tabbar [aria-current], .tabbar [aria-expanded="true"] { color: var(--accent); }
	.tabbar > .tabbar__cta {
		position: relative; top: -14px; justify-self: center; align-content: center; gap: 3px; width: 64px; height: 64px; border-radius: 999px 999px 18px 18px;
		background: var(--accent); color: #FFF; font-size: 9.5px; line-height: 1.2; letter-spacing: 0;
		box-shadow: 0 10px 20px -8px rgba(var(--accent-rgb), .6); transition: background-color .2s ease, transform .2s var(--ease);
	}
	.tabbar > .tabbar__cta svg { width: 18px; height: 18px; }
	.tabbar > .tabbar__cta[aria-current] { color: #FFF; background: var(--accent-dark); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--accent), 0 10px 20px -8px rgba(var(--accent-rgb), .6); }
	.tabbar > .tabbar__cta:active { transform: scale(.96); }
	.bscrim { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(var(--ink-rgb), .18); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
	html.sheet-open .bscrim { opacity: 1; visibility: visible; transition: opacity .3s ease; }
	.bsheet {
		display: block; position: fixed; z-index: 75; left: 0; right: 0; bottom: 0; max-height: 84svh; overflow: auto; overscroll-behavior: contain;
		padding: 6px max(20px, env(safe-area-inset-right, 0px)) calc(100px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
		border-radius: 28px 28px 0 0; background: var(--bg); box-shadow: 0 -20px 40px -20px rgba(var(--ink-rgb), .35);
		transform: translateY(105%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s;
	}
	.bsheet.is-open { transform: translateY(var(--drag, 0px)); visibility: visible; transition: transform .5s var(--ease); }
	.bsheet.is-dragging { transition: none; }
	html.sheet-open { overflow: hidden; }
	/* page UI pinned to the bottom of a full-height stage clears the tab bar (home burst, /birds-eye/ hero) */
	body :is(.burst__cta, .be .hero__foot, .be .hint, .be .hero__cap) { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
	@media (prefers-reduced-motion: no-preference) {
		/* /branding/ pinned build stage */
		body .build__stick { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
		body .build__stick .stage { width: max(200px, min(100%, 560px, calc(100svh - var(--nav-h) - 450px))); }
	}
}
.bsheet__grip { display: block; width: 100%; height: 28px; margin: 0 0 6px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; }
.bsheet__grip span { display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 9px; background: var(--line); }
.bsheet__h { margin: 0 0 12px; font: 600 22px/1.3 var(--f-ja); }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; overscroll-behavior-x: contain; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > li { scroll-snap-align: start; min-width: 0; }
.hscroll .mcard__fr { aspect-ratio: 4 / 5; }
.hscroll .mcard__t { font-size: 15px; }
@media (min-width: 600px) { .hscroll { grid-auto-columns: 38%; } }
.bsheet__lst { list-style: none; margin: 8px 0 0; padding: 0; }
.bsheet__lst a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--line); font: 600 19px/1.3 var(--f-ja); }
.bsheet__lst a[aria-current] { color: var(--accent); }
.bsheet__lst small { font: 700 10px/1 var(--f-ui); letter-spacing: .2em; color: var(--muted); }
.bsheet .lang { margin-top: 18px; }
.bsheet__mail { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.bsheet__mail a { display: inline-block; padding: 10px 0; }

/* ---------- page head (inner pages) ---------- */
.phead { padding-block: clamp(72px, 14svh, 150px) clamp(40px, 8svh, 80px); }
.phead__title { margin-top: 10px; font-family: var(--f-ja); font-size: clamp(36px, 8.4vw, 76px); line-height: 1.25; }
.phead__lead { margin-top: 20px; max-width: 34em; color: var(--ink-soft); font-size: clamp(15px, 3.8vw, 17px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- contact band (shared) ---------- */
.contact { position: relative; overflow: hidden; background: var(--panel); color: var(--on-panel); border-radius: 28px 28px 0 0; }
.contact__arches { position: absolute; inset: 0; pointer-events: none; }
.contact__arches svg { width: 100%; height: 100%; }
.contact__arches path { fill: none; stroke: var(--panel-arch); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.contact.in .contact__arches path { stroke-dashoffset: 0; }
.contact.in .contact__arches path:nth-child(2) { transition-delay: .25s; }
.contact.in .contact__arches path:nth-child(3) { transition-delay: .5s; }
.contact__in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 22px; padding-block: clamp(110px, 18svh, 190px) clamp(90px, 14svh, 150px); }
.contact .eyebrow { color: var(--on-panel-accent); }
.contact h2 { font-family: var(--f-ja); font-size: clamp(22px, 5.7vw, 56px); line-height: 1.55; }
.contact__lead { color: var(--on-panel-soft); max-width: 30em; font-size: 15px; }
.mail { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; direction: ltr; }
.mail__addr { font-family: var(--f-latin); font-size: clamp(19px, 5vw, 30px); border-bottom: 2px solid var(--accent); padding-bottom: 4px; user-select: all; overflow-wrap: anywhere; }
.copy { min-height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(var(--on-panel-rgb), .1); color: var(--on-panel); font: 600 12px/1 var(--f-ui); letter-spacing: .1em; cursor: pointer; }
.copy:hover { background: rgba(var(--on-panel-rgb), .18); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
@media (max-width: 520px) { .btns { width: 100%; flex-direction: column; } .btns .pill { width: 100%; } }

/* ---------- footer ---------- */
.foot { background: var(--panel); color: var(--on-panel-soft); font-size: 13px; }
.foot__grid { display: grid; gap: 28px; padding-block: 48px 28px; border-top: 1px solid var(--panel-line); }
.foot .logo { color: var(--on-panel); --logo-mark: currentColor; --logo-word: currentColor; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.foot__links a:hover { color: var(--on-panel); }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 18px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--panel-line); font-size: 12px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.2fr 2fr 1fr; align-items: start; } .foot__links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- reveal (visible at rest; animates when it enters) ---------- */
.rv.in { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- WordPress content ---------- */
.entry { max-width: 40em; }
.entry > * + * { margin-top: 1.2em; }
.entry h2 { font-family: var(--f-ja); font-size: clamp(24px, 5vw, 36px); margin-top: 2em; }
.entry h3 { font-family: var(--f-ja); font-size: clamp(20px, 4vw, 26px); margin-top: 1.6em; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 16px; }

@media (prefers-reduced-motion: reduce) {
	.rv.in { animation: none; }
	.contact__arches path { stroke-dashoffset: 0; transition: none; }
	/* navigation: no clip / translate, 150ms fades only */
	.chev, .mcard__fr, .mcard__ar, .totop__ic, .nav__ar, .langdd__menu { transition: none !important; }
	.mega, .mega.is-open { clip-path: none; opacity: 0; transition: opacity .15s linear, visibility 0s .15s; }
	.mega.is-open { opacity: 1; transition: opacity .15s linear; }
	.mega .mcard img, .mega.is-open .mcard img { clip-path: none; transform: none; transition: none; }
	.totop, html.scrolled .totop { transform: none; transition: opacity .15s linear, visibility 0s .15s; }
	html.scrolled .totop { transition: opacity .15s linear; }
	.langdd__menu { transform: none; }
	.bsheet, .bsheet.is-open { transform: none; opacity: 0; transition: opacity .15s linear, visibility 0s .15s; }
	.bsheet.is-open { opacity: 1; transition: opacity .15s linear; }
	.scrim, .bscrim { transition-duration: .15s; }
}
