/* =========================================================
   FanPro Films — 和モダン / Japanese editorial style
   ========================================================= */

:root {
  /* 和色 palette */
  --washi: #f3efe7;        /* 生成り — page background */
  --paper: #f9f7f2;        /* 白練 — raised panels */
  --kinari: #e8e1d3;       /* 砂色 — quiet blocks */
  --sumi: #1c1b19;         /* 墨 — text */
  --sumi-2: #45423c;       /* 消炭 — secondary text */
  --nezumi: #8b867b;       /* 利休鼠 — muted */
  --line: rgba(28, 27, 25, 0.12);
  --line-strong: rgba(28, 27, 25, 0.28);
  --shu: #b5412f;          /* 朱 — accent / 印 */
  --night: #141311;        /* footer + lightbox */

  --font-latin: "Cormorant Garamond", "Times New Roman", serif;
  --font-label: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-serif: var(--font-latin), "Shippori Mincho", "Noto Serif SC", serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --header-h: 84px;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1400px;
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --tracking: 0.04em;
  --body-lh: 1.95;
}

/* Language-specific type — Latin glyphs fall through to Cormorant/Jost first */
html[lang="ja"] {
  --font-serif: var(--font-latin), "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Jost", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --tracking: 0.08em;
}
html[lang="zh-Hans"] {
  --font-serif: var(--font-latin), "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Jost", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --tracking: 0.08em;
}
html[lang="zh-Hant"] {
  --font-serif: var(--font-latin), "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Jost", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --tracking: 0.08em;
}
html[lang="en"] {
  --body-lh: 1.75;
  --tracking: 0.01em;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--shu); outline-offset: 4px; }
::selection { background: var(--sumi); color: var(--washi); }

body {
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: var(--body-lh);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: opacity 0.7s var(--ease);
}
@media (min-width: 900px) { body { font-size: 16px; } }

/* Washi grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Page load / leave fades */
.js.is-loading body { opacity: 0; animation: failsafe 0s 2.5s forwards; }
.js.is-leaving body { opacity: 0; transition-duration: 0.35s; }
.js.is-switching main, .js.is-switching .site-footer { opacity: 0; transition: opacity 0.25s var(--ease); }
main, .site-footer { transition: opacity 0.5s var(--ease); }
@keyframes failsafe { to { opacity: 1; } }

[hidden] { display: none !important; }
.pt-0 { padding-top: 0 !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--nezumi);
  line-height: 1;
}
.eyebrow .num { color: var(--shu); letter-spacing: 0.12em; }
.eyebrow::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.no-line::after { display: none; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.38;
  letter-spacing: 0.06em;
}
html[lang="en"] .display { letter-spacing: 0; line-height: 1.12; font-size: clamp(36px, 5.6vw, 76px); font-weight: 300; }

.title-md {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
html[lang="en"] .title-md { font-weight: 500; letter-spacing: 0.01em; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.25; }

.lead { font-size: clamp(15px, 1.15vw, 17px); color: var(--sumi-2); max-width: 36em; }
.muted { color: var(--nezumi); }
.serif { font-family: var(--font-serif); }
.latin { font-family: var(--font-latin); letter-spacing: 0.02em; }

/* Text link with sliding underline */
.link-line {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding-block: 10px;
}
html:not([lang="en"]) .link-line { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.18em; }
.link-line::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(0.999);
  transition: transform 0.6s var(--ease-out);
}
.link-line:hover::before { transform: scaleX(0); }
.link-line .arrow { width: 34px; height: 1px; background: currentColor; position: relative; transition: width 0.5s var(--ease-out); }
.link-line .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg);
}
.link-line:hover .arrow { width: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  min-height: 56px; padding: 0 36px;
  background: var(--sumi); color: var(--washi);
  font-family: var(--font-label); font-size: 12px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid var(--sumi);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), color 0.5s var(--ease);
}
html:not([lang="en"]) .btn { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.2em; }
.btn:hover { background: var(--shu); border-color: var(--shu); }
.btn-ghost { background: transparent; color: var(--sumi); }
.btn-ghost:hover { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }

/* Seal (落款印) */
.seal {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  background: var(--shu); color: #f6eee6;
  font-family: var(--font-latin); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--shu), inset 0 0 0 3px rgba(246, 238, 230, 0.55);
  flex: none;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.12); transition: transform 2.2s var(--ease-out); }
.reveal-img.is-in img { transform: scale(1); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* Image frames */
.frame { position: relative; overflow: hidden; background: var(--kinari); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  transition: transform 0.6s var(--ease-out), background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .bar {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: none; padding-inline: var(--gutter);
}
.site-header.is-solid {
  background: rgba(243, 239, 231, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-light { color: #fff; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 14px; line-height: 1; position: relative; z-index: 2; }
.brand-name { font-family: var(--font-latin); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }
.brand-name em { font-style: italic; font-weight: 400; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav-link {
  position: relative; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; padding-block: 8px;
}
html[lang="en"] .nav-link { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.nav-link::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--shu); transform: scale(0); transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scale(1); }

.lang-switch { display: flex; align-items: center; gap: 2px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; }
.lang-switch button {
  min-width: 30px; height: 30px; padding: 0 4px; opacity: 0.5; transition: opacity 0.3s;
  font-family: var(--font-sans); font-size: 12px;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; font-weight: 500; }
.lang-switch .sep { width: 1px; height: 10px; background: currentColor; opacity: 0.25; }
.header-tools { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.header-tools .divider { width: 1px; height: 14px; background: currentColor; opacity: 0.25; }

.lang-current {
  display: none; align-items: center; gap: 6px; height: 44px; padding: 0 4px;
  font-size: 13px; letter-spacing: 0.08em;
}
.lang-current::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: 0.7; }
.menu-open .lang-current { visibility: hidden; }
.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-right: -10px;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out), opacity 0.3s;
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; right: 18px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(20deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; right: 10px; transform: rotate(-20deg); }

/* Mobile menu panel */
.menu-panel {
  position: fixed; inset: 0; z-index: 55;
  background: var(--washi); color: var(--sumi);
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 5vh) var(--gutter) max(32px, env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
  overflow-y: auto;
}
.menu-open .menu-panel { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.menu-open .site-header { color: var(--sumi); background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-panel .menu-links { display: grid; gap: 6px; }
.menu-panel .menu-links a {
  display: flex; align-items: baseline; gap: 18px; padding-block: 10px;
  font-family: var(--font-serif); font-size: clamp(28px, 8vw, 40px); letter-spacing: 0.08em; line-height: 1.3;
  opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.menu-panel .menu-links a .num { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; color: var(--shu); }
.menu-panel .menu-links a[aria-current="page"] { color: var(--nezumi); }
.menu-open .menu-panel .menu-links a { opacity: 1; transform: none; }
.menu-open .menu-panel .menu-links li:nth-child(2) a { transition-delay: 0.06s; }
.menu-open .menu-panel .menu-links li:nth-child(3) a { transition-delay: 0.12s; }
.menu-open .menu-panel .menu-links li:nth-child(4) a { transition-delay: 0.18s; }
.menu-panel .menu-foot { margin-top: auto; padding-top: 40px; display: grid; gap: 22px; }
.menu-panel .menu-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-panel .menu-langs button {
  height: 48px; border: 1px solid var(--line-strong); font-size: 14px; letter-spacing: 0.1em;
  transition: background 0.3s, color 0.3s;
}
.menu-panel .menu-langs button[aria-pressed="true"] { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.menu-panel .menu-mail { font-family: var(--font-latin); font-size: 20px; letter-spacing: 0.02em; word-break: break-all; }

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .nav, .header-tools .lang-switch, .header-tools .divider { display: none; }
  .menu-toggle { display: block; }
  .lang-current { display: inline-flex; }
  .header-tools { gap: 10px; }
  .brand-name { font-size: 20px; }
  .seal { width: 26px; height: 26px; font-size: 12px; }
}
@media (min-width: 900px) { .menu-panel { display: none; } }

/* =========================================================
   Hero (home)
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #0f0e0d; color: #fff;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 9s linear; }
.hero-slide.is-active img { transform: scale(1.01); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.5) 0%, rgba(10, 9, 8, 0) 26%, rgba(10, 9, 8, 0) 42%, rgba(10, 9, 8, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.32) 0%, rgba(10, 9, 8, 0) 45%, rgba(10, 9, 8, 0) 80%, rgba(10, 9, 8, 0.28) 100%);
}
.hero-inner { position: absolute; inset: 0; z-index: 2; pointer-events: none; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28); }
.hero-inner a, .hero-inner button { pointer-events: auto; }

.hero-copy { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(56px, 11vh, 120px); }
.hero-role {
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); opacity: 0.92;
}
html:not([lang="en"]) .hero-role { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.24em; }
.hero-role::before { content: ""; width: 40px; height: 1px; background: currentColor; }
.hero-title {
  font-family: var(--font-latin); font-weight: 300; line-height: 0.92; letter-spacing: -0.01em;
  font-size: clamp(56px, 11vw, 168px);
}
.hero-title em { font-style: italic; font-weight: 300; }
.hero-lead {
  margin-top: 26px; max-width: 30em; font-family: var(--font-serif); font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.1em; line-height: 1.9; opacity: 0.9;
}
html[lang="en"] .hero-lead { letter-spacing: 0.02em; font-style: italic; font-size: clamp(16px, 1.5vw, 21px); }

.hero-vertical {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 7vh);
  writing-mode: vertical-rl; font-family: var(--font-serif);
  font-size: clamp(17px, 1.7vw, 24px); letter-spacing: 0.42em; line-height: 2.2;
  display: flex; align-items: flex-start; gap: 16px;
}
html[lang="en"] .hero-vertical { font-family: var(--font-latin); font-style: italic; letter-spacing: 0.24em; font-size: clamp(16px, 1.5vw, 21px); }
.hero-vertical::after { content: ""; width: 1px; height: 64px; background: currentColor; opacity: 0.5; margin-top: 18px; }

.hero-meta {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  display: grid; justify-items: end; gap: 16px; text-align: right;
}
.hero-place { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; min-height: 1em; }
html:not([lang="en"]) .hero-place { font-family: var(--font-sans); letter-spacing: 0.2em; font-size: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { position: relative; width: 44px; height: 20px; }
.hero-dots button::before, .hero-dots button i {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, 0.35);
}
.hero-dots button i { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dots button.is-active i { animation: progress var(--slide-ms, 6500ms) linear forwards; }
.hero-dots button.is-done i { transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero-count { font-family: var(--font-latin); font-size: 15px; letter-spacing: 0.12em; }
.hero-count b { font-weight: 500; font-size: 22px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px;
  font-family: var(--font-label); font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 56px; background: linear-gradient(#fff, #fff) no-repeat;
  background-size: 1px 100%; animation: cue 2.4s var(--ease) infinite; opacity: 0.8;
}
@keyframes cue {
  0% { background-size: 1px 0; background-position: top; }
  50% { background-size: 1px 100%; background-position: top; }
  51% { background-position: bottom; }
  100% { background-size: 1px 0; background-position: bottom; }
}

@media (max-width: 899px) {
  .hero-copy { bottom: 104px; }
  .hero-meta { left: var(--gutter); right: var(--gutter); bottom: 40px; display: flex; align-items: center; gap: 16px; text-align: left; }
  .hero-meta .hero-count { order: 1; }
  .hero-meta .hero-place { order: 2; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-meta .hero-dots { order: 3; gap: 6px; }
  .hero-dots button { width: 26px; }
  .hero-vertical { top: calc(var(--header-h) + 4vh); }
  .scroll-cue { display: none; }
}

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(64px, 10vw, 150px)); padding-bottom: clamp(48px, 7vw, 100px);
  overflow: hidden;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-top: 28px; }
.page-hero .lead { margin-top: 28px; }
.page-decor {
  position: absolute; right: calc(var(--gutter) - 0.1em); top: calc(var(--header-h) + 24px);
  writing-mode: vertical-rl; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(120px, 22vw, 320px); line-height: 1; color: var(--sumi); opacity: 0.045;
  pointer-events: none; user-select: none;
}

/* =========================================================
   Home — About
   ========================================================= */
.about-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start;
}
.about-label {
  grid-column: 1 / 2; writing-mode: vertical-rl; font-family: var(--font-serif);
  font-size: 15px; letter-spacing: 0.5em; color: var(--nezumi); display: flex; align-items: center; gap: 18px;
}
.about-label::after { content: ""; width: 1px; height: 80px; background: var(--line-strong); }
.about-text { grid-column: 2 / 8; }
.about-text .display { margin-top: 30px; }
.about-text .lead + .lead { margin-top: 1.4em; }
.about-text .lead:first-of-type { margin-top: 44px; }
.about-figure { grid-column: 9 / 13; margin-top: 64px; }
.about-figure .frame { aspect-ratio: 4 / 5; }
.about-figure figcaption {
  margin-top: 16px; display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--nezumi); letter-spacing: 0.14em;
}

.services { margin-top: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { padding: 40px clamp(20px, 2.6vw, 40px) 8px 0; }
.service + .service { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.service .num { font-family: var(--font-latin); font-size: 20px; font-style: italic; color: var(--shu); letter-spacing: 0.06em; }
.service h3 { margin-top: 18px; }
.service p { margin-top: 14px; font-size: 14px; color: var(--sumi-2); }

@media (max-width: 899px) {
  .about-label { display: none; }
  .about-text { grid-column: 1 / -1; }
  .about-figure { grid-column: 3 / -1; margin-top: 24px; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 32px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
}

/* =========================================================
   Home — Featured works
   ========================================================= */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head h2 { margin-top: 26px; }
.section-head .lead { margin-top: 24px; }

.featured { margin-top: clamp(56px, 8vw, 110px); display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(16px, 2.6vw, 44px); row-gap: clamp(56px, 7vw, 110px); }
.featured .work-card:nth-child(1) { grid-column: 1 / 8; }
.featured .work-card:nth-child(2) { grid-column: 9 / 13; margin-top: 22%; }
.featured .work-card:nth-child(3) { grid-column: 2 / 6; }
.featured .work-card:nth-child(4) { grid-column: 7 / 13; margin-top: 14%; }
.featured .work-card:nth-child(5) { grid-column: 3 / 11; }
@media (max-width: 699px) {
  .featured { row-gap: 56px; }
  .featured .work-card:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .featured .work-card:nth-child(2), .featured .work-card:nth-child(4) { grid-column: 3 / -1; }
  .featured .work-card:nth-child(3) { grid-column: 1 / 11; }
}

/* Work card (shared by home + works) */
.work-card { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.work-card .frame { display: block; }
.work-card .frame img { transition: transform 1.6s var(--ease-out), filter 1s var(--ease); }
.work-card:hover .frame img { transform: scale(1.035); }
.work-card .meta {
  margin-top: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; align-items: baseline;
}
.work-card .no { font-family: var(--font-latin); font-style: italic; font-size: 15px; color: var(--shu); letter-spacing: 0.08em; grid-row: span 2; }
.work-card .w-title { font-family: var(--font-serif); font-size: 16px; font-weight: 500; letter-spacing: 0.08em; line-height: 1.6; }
html[lang="en"] .work-card .w-title { font-size: 19px; letter-spacing: 0.01em; }
.work-card .w-place { font-size: 12px; color: var(--nezumi); letter-spacing: 0.12em; line-height: 1.6; }

/* =========================================================
   Home — Quote band
   ========================================================= */
.quote-band { position: relative; min-height: 88vh; display: grid; place-items: center; overflow: hidden; color: #fff; background: #111; }
.quote-band .bg { position: absolute; inset: -12% 0; }
.quote-band .bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ""; position: absolute; inset: 0; background: rgba(12, 11, 10, 0.42); }
.quote-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(32px, 6vw, 96px); padding: 120px var(--gutter); }
.quote-kanji {
  writing-mode: vertical-rl; font-family: "Shippori Mincho", "Noto Serif TC", serif; font-size: clamp(40px, 6vw, 84px);
  letter-spacing: 0.3em; line-height: 1; font-weight: 500;
}
.quote-text { max-width: 26em; }
.quote-text .romaji { font-family: var(--font-latin); font-style: italic; font-size: 18px; letter-spacing: 0.1em; opacity: 0.85; }
.quote-text .body { margin-top: 24px; font-family: var(--font-serif); font-size: clamp(17px, 1.8vw, 24px); line-height: 2; letter-spacing: 0.12em; }
html[lang="en"] .quote-text .body { letter-spacing: 0.01em; line-height: 1.6; font-size: clamp(22px, 2.4vw, 32px); }
@media (max-width: 699px) {
  .quote-inner { flex-direction: row-reverse; align-items: flex-start; gap: 28px; }
  .quote-kanji { font-size: 40px; }
}

/* =========================================================
   Partner cards (home preview)
   ========================================================= */
.partner-row { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.partner-card { display: grid; gap: 18px; padding: 40px clamp(20px, 2.6vw, 40px) 40px 0; transition: background 0.5s; }
.partner-card + .partner-card { padding-left: clamp(20px, 2.6vw, 40px); border-left: 1px solid var(--line); }
.partner-card .p-top { display: flex; align-items: center; gap: 16px; }
.partner-card .p-name { font-family: var(--font-latin); font-size: 24px; font-weight: 500; letter-spacing: 0.02em; line-height: 1.2; }
.partner-card .p-cat { font-size: 12px; color: var(--nezumi); letter-spacing: 0.14em; }
.partner-card p { font-size: 14px; color: var(--sumi-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 899px) {
  .partner-row { grid-template-columns: 1fr; }
  .partner-card, .partner-card + .partner-card { padding: 32px 0; border-left: 0; }
  .partner-card + .partner-card { border-top: 1px solid var(--line); }
}

.app-icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none; overflow: hidden;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-latin); font-size: 26px; font-weight: 500;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.lg { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { text-align: center; background: var(--paper); border-top: 1px solid var(--line); }
.cta .seal { display: inline-grid; }
.cta h2 { margin-top: 28px; }
.cta .seal { width: 44px; height: 44px; font-size: 18px; margin-bottom: 40px; }
.cta h2 { margin-inline: auto; }
.cta .mail {
  display: inline-block; margin-top: 40px; font-family: var(--font-latin); font-size: clamp(22px, 3.2vw, 40px);
  letter-spacing: 0.02em; border-bottom: 1px solid var(--line-strong); padding-bottom: 6px; transition: color 0.4s, border-color 0.4s;
  word-break: break-all;
}
.cta .mail:hover { color: var(--shu); border-color: var(--shu); }
.cta .actions { margin-top: 48px; display: flex; justify-content: center; }

/* =========================================================
   Works page
   ========================================================= */
.filters {
  position: sticky; top: 0; z-index: 5;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 231, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: top 0.6s var(--ease-out);
}
.header-visible .filters { top: var(--header-h); }
.filters-wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.filter-btn { position: relative; font-size: 14px; letter-spacing: 0.14em; padding-block: 8px; color: var(--nezumi); transition: color 0.3s; white-space: nowrap; }
html[lang="en"] .filter-btn { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.filter-btn sup { font-family: var(--font-latin); font-size: 11px; margin-left: 4px; letter-spacing: 0.04em; }
.filter-btn:hover, .filter-btn[aria-pressed="true"] { color: var(--sumi); }
.filter-btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--shu);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out);
}
.filter-btn[aria-pressed="true"]::after { transform: scaleX(1); }
.works-count { font-size: 12px; color: var(--nezumi); letter-spacing: 0.14em; white-space: nowrap; }
@media (max-width: 699px) {
  .filters-wrap { padding-inline: 0; }
  .filter-list { flex-wrap: nowrap; gap: 4px 24px; overflow-x: auto; scrollbar-width: none; padding-inline: var(--gutter); }
  .filter-list::-webkit-scrollbar { display: none; }
  .works-count { display: none; }
}

.masonry { margin-top: clamp(40px, 5vw, 72px); columns: 3; column-gap: clamp(16px, 2.4vw, 40px); }
.masonry .work-card { break-inside: avoid; margin-bottom: clamp(40px, 5vw, 72px); }
.masonry .work-card.is-entering { animation: fadeUp 0.9s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 999px) { .masonry { columns: 2; } }
@media (max-width: 599px) { .masonry { columns: 1; } .masonry .work-card { margin-bottom: 48px; } }

.getty-band {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: clamp(40px, 5vw, 64px); background: var(--paper); border: 1px solid var(--line);
}
.getty-band p { margin-top: 12px; color: var(--sumi-2); font-size: 14px; }
@media (max-width: 699px) { .getty-band { grid-template-columns: 1fr; } }

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: #11100e; color: #ece8e0;
  display: grid; grid-template-rows: auto 1fr auto;
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
  padding-bottom: env(safe-area-inset-bottom);
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); }
.lb-count { font-family: var(--font-latin); font-size: 15px; letter-spacing: 0.14em; }
.lb-close { display: inline-flex; align-items: center; gap: 12px; height: 44px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; }
html:not([lang="en"]) .lb-close { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.16em; }
.lb-close i { position: relative; width: 22px; height: 22px; }
.lb-close i::before, .lb-close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-close i::after { transform: rotate(-45deg); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(16px, 8vw, 120px); touch-action: pan-y; }
.lb-stage img {
  max-width: 100%; max-height: calc(100svh - 190px); width: auto; height: auto; object-fit: contain;
  opacity: 0; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out); user-select: none; -webkit-user-drag: none;
}
.lb-stage img.is-loaded { opacity: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 96px; display: grid; place-items: center; opacity: 0.6; transition: opacity 0.3s; }
.lb-nav:hover { opacity: 1; }
.lb-nav.prev { left: clamp(4px, 2vw, 32px); }
.lb-nav.next { right: clamp(4px, 2vw, 32px); }
.lb-nav i { width: 14px; height: 14px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; }
.lb-nav.prev i { transform: rotate(-45deg); }
.lb-nav.next i { transform: rotate(135deg); }
.lb-caption { padding: 18px var(--gutter) 24px; display: flex; justify-content: center; align-items: baseline; gap: 20px; flex-wrap: wrap; text-align: center; }
.lb-caption .t { font-family: var(--font-serif); font-size: 17px; letter-spacing: 0.1em; }
html[lang="en"] .lb-caption .t { font-size: 20px; letter-spacing: 0.01em; }
.lb-caption .p { font-size: 12px; letter-spacing: 0.16em; opacity: 0.6; }
@media (max-width: 699px) {
  .lb-nav { display: none; }
  .lb-stage { padding: 0; }
  .lb-stage img { max-height: calc(100svh - 170px); }
}

/* =========================================================
   Partners page
   ========================================================= */
.partner-list { display: grid; gap: clamp(96px, 12vw, 180px); padding-top: clamp(32px, 5vw, 64px); }
.partner {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); align-items: center;
}
.partner .visual {
  grid-column: 1 / 7; position: relative; display: grid; place-items: center;
  padding: clamp(48px, 6vw, 88px) 24px; background: var(--kinari); overflow: hidden;
}
.partner .visual .big-no {
  position: absolute; left: 24px; top: 8px; font-family: var(--font-latin); font-weight: 300;
  font-size: clamp(90px, 12vw, 180px); line-height: 1; color: var(--washi); opacity: 0.9; pointer-events: none;
}
.partner .info { grid-column: 8 / 13; }
.partner:nth-child(even) .visual { grid-column: 7 / 13; order: 2; }
.partner:nth-child(even) .info { grid-column: 1 / 6; order: 1; }
.partner .info .head { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.partner .info h2 { font-family: var(--font-latin); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: 0.01em; line-height: 1.1; }
.partner .info .cat { margin-top: 6px; font-size: 12px; color: var(--nezumi); letter-spacing: 0.16em; }
.partner .info .desc { margin-top: 32px; color: var(--sumi-2); }
.partner .info dl { margin-top: 32px; display: grid; grid-template-columns: auto 1fr; gap: 12px 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.partner .info dt { color: var(--nezumi); letter-spacing: 0.14em; }
.partner .info dd { letter-spacing: 0.06em; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.platform {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
a.platform:hover { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.platform svg { width: 13px; height: 13px; fill: currentColor; }
.partner .info .actions { margin-top: 36px; }
@media (max-width: 899px) {
  .partner .visual, .partner:nth-child(even) .visual { grid-column: 1 / -1; order: 1; }
  .partner .info, .partner:nth-child(even) .info { grid-column: 1 / -1; order: 2; }
}

/* Phone mockup */
.phone {
  position: relative; width: min(260px, 62vw); aspect-ratio: 9 / 19.5;
  border-radius: 42px; background: #121110; padding: 9px;
  box-shadow: 0 50px 80px -40px rgba(20, 18, 14, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #d9d3c6; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.phone-screen::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 32%; height: 22px; border-radius: 999px; background: #0d0c0b;
}
.phone-ui {
  position: absolute; inset: auto 0 0 0; z-index: 1; padding: 64px 18px 22px; color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
}
.phone-ui .ui-name { font-family: var(--font-latin); font-size: 22px; font-weight: 500; line-height: 1.1; }
.phone-ui .ui-line { margin-top: 10px; height: 6px; width: 70%; border-radius: 3px; background: rgba(255, 255, 255, 0.55); }
.phone-ui .ui-line.short { width: 44%; margin-top: 7px; background: rgba(255, 255, 255, 0.35); }
.phone-ui .ui-bar { margin-top: 18px; display: flex; justify-content: space-around; }
.phone-ui .ui-bar span { width: 18px; height: 18px; border-radius: 5px; background: rgba(255, 255, 255, 0.4); }
.phone-ui .ui-bar span:first-child { background: #fff; }

.cta-band { background: var(--kinari); }
.cta-band .inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.cta-band h2 { margin-top: 26px; }
.cta-band .lead { margin-top: 24px; }
@media (max-width: 699px) { .cta-band .inner { grid-template-columns: 1fr; } }

/* =========================================================
   Contact page
   ========================================================= */
.contact-banner { aspect-ratio: 21 / 8; }
@media (max-width: 699px) { .contact-banner { aspect-ratio: 4 / 3; } }
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 48px); }
.contact-info { grid-column: 1 / 6; }
.contact-form { grid-column: 7 / 13; }
@media (max-width: 899px) {
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .contact-form { margin-top: 48px; }
}

.mail-block { padding-block: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px; }
.mail-block .label { font-size: 12px; color: var(--nezumi); letter-spacing: 0.2em; }
.mail-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mail-link { font-family: var(--font-latin); font-size: clamp(22px, 2.4vw, 30px); letter-spacing: 0.01em; word-break: break-all; transition: color 0.3s; }
.mail-link:hover { color: var(--shu); }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; letter-spacing: 0.14em;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.copy-btn:hover, .copy-btn.is-done { background: var(--sumi); color: var(--washi); border-color: var(--sumi); }
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.contact-info .note { margin-top: 18px; font-size: 13px; color: var(--nezumi); }
.topics-title { margin-top: 56px; }
.topics { margin-top: 20px; display: grid; gap: 0; }
.topics li { display: flex; gap: 18px; padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: 0.1em; }
.topics li span { font-family: var(--font-latin); font-style: italic; color: var(--shu); font-size: 17px; line-height: 1.5; }
.socials { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.socials .label { width: 100%; font-size: 12px; color: var(--nezumi); letter-spacing: 0.2em; }

.contact-form h2 { margin-bottom: 36px; }
.field { position: relative; display: grid; margin-bottom: 30px; }
.field label { font-size: 12px; letter-spacing: 0.18em; color: var(--nezumi); margin-bottom: 4px; }
.field label .req { color: var(--shu); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent;
  padding: 12px 0; font-size: 16px; letter-spacing: 0.04em; outline: none; transition: border-color 0.4s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.field select {
  cursor: pointer; padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 10px) 52%, calc(100% - 5px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--sumi);
  transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }
.form-foot .note { font-size: 12px; color: var(--nezumi); flex: 1 1 220px; }
.form-status { margin-top: 20px; font-size: 14px; min-height: 1.5em; }
.form-status.ok { color: #3f6b4a; }
.form-status.err { color: var(--shu); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--night); color: #d9d4c9; padding-top: clamp(80px, 10vw, 140px); padding-bottom: max(32px, env(safe-area-inset-bottom)); }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-brand .wordmark { font-family: var(--font-latin); font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: 0.95; color: #f3efe7; }
.footer-brand .wordmark em { font-style: italic; }
.footer-brand .tag { margin-top: 24px; font-family: var(--font-serif); letter-spacing: 0.14em; color: #a8a297; }
html[lang="en"] .footer-brand .tag { font-style: italic; letter-spacing: 0.02em; font-size: 18px; }
.footer-col h4 { font-family: var(--font-label); font-weight: 400; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: #7d786e; margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col .gap { margin-top: 40px; }
.footer-col a { font-size: 14px; letter-spacing: 0.1em; }
.footer-col .mail { font-family: var(--font-latin); font-size: 19px; letter-spacing: 0.01em; word-break: break-all; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-langs button { font-size: 13px; letter-spacing: 0.08em; opacity: 0.55; transition: opacity 0.3s; padding-block: 4px; }
.footer-langs button:hover, .footer-langs button[aria-pressed="true"] { opacity: 1; }
.footer-langs button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--shu); }
.footer-bottom {
  margin-top: clamp(64px, 8vw, 120px); padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  font-size: 12px; color: #7d786e; letter-spacing: 0.08em;
}
.footer-bottom .to-top { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-label); letter-spacing: 0.24em; text-transform: uppercase; font-size: 11px; }
html:not([lang="en"]) .footer-bottom .to-top { font-family: var(--font-sans); letter-spacing: 0.14em; font-size: 12px; }
.footer-bottom .to-top i { width: 9px; height: 9px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: rotate(45deg) translate(2px, 2px); }
@media (max-width: 899px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal, .reveal-img img { opacity: 1; transform: none; }
  .hero-slide img { transform: none !important; }
}

/* =========================================================
   404
   ========================================================= */
.notfound {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: calc(var(--header-h) + 48px) var(--gutter) 96px;
}
.notfound-inner { position: relative; display: grid; justify-items: center; }
.notfound .code {
  font-family: var(--font-latin); font-weight: 300; font-style: italic;
  font-size: clamp(88px, 16vw, 200px); line-height: 1; color: var(--shu); letter-spacing: 0.02em;
}
.notfound h1 { margin-top: 24px; }
.notfound .lead { margin-top: 24px; margin-inline: auto; }
.notfound .actions { margin-top: 44px; }
