/* ========================================================
   IM INTERIOR — modern monotone editorial
   ======================================================== */

:root {
  /* color tokens (overridable via Tweaks) */
  --bg: #f6f5f1;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b67;
  --line: rgba(10, 10, 10, 0.12);
  --line-soft: rgba(10, 10, 10, 0.06);
  --paper: #ffffff;
  --inverse: #0a0a0a;
  --inverse-ink: #f6f5f1;
  --accent: #0a0a0a;

  /* typography */
  --font-jp-serif: "Shippori Mincho", "Noto Serif JP", "游明朝", "Yu Mincho", serif;
  --font-jp-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-en-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --font-display: var(--font-jp-serif);
  --font-body: var(--font-jp-sans);
  --font-mark: var(--font-en-sans);

  /* spacing */
  --col: clamp(16px, 4vw, 64px);
  --max: 1440px;
}

[data-theme="dark"] {
  --bg: #0d0d0d;
  --ink: #f3f1ec;
  --ink-soft: #d8d5cf;
  --muted: #8d8a83;
  --line: rgba(243, 241, 236, 0.16);
  --line-soft: rgba(243, 241, 236, 0.08);
  --paper: #161514;
  --inverse: #f3f1ec;
  --inverse-ink: #0d0d0d;
  --accent: #f3f1ec;
}

[data-theme="wa"] {
  --bg: #ebe5dc;
  --ink: #1c1c18;
  --ink-soft: #2c2c26;
  --muted: #6d685e;
  --line: rgba(28, 28, 24, 0.16);
  --line-soft: rgba(28, 28, 24, 0.07);
  --paper: #f3eee5;
  --inverse: #1c1c18;
  --inverse-ink: #ebe5dc;
  --accent: #6b1212;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--ink); color: var(--bg); }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 18px var(--col);
  gap: 32px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition: background .3s ease, border-color .3s ease;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-mark {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.18em;
  font-style: italic;
}

.brand-mark b {
  font-style: normal;
  font-weight: 600;
}

.brand-jp {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.4vw, 40px);
  font-family: var(--font-mark);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  padding: 6px 0;
  transition: color .2s;
}

.site-nav a:hover { color: var(--ink); }

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width .25s ease;
}

.site-nav a:hover::after { width: 100%; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-toggle {
  display: inline-flex;
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  padding: 7px 14px;
  color: var(--muted);
  transition: all .2s;
}

.lang-toggle button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  transition: all .25s;
}

.cta-pill:hover {
  background: var(--ink);
  color: var(--bg);
}

.cta-pill .arrow {
  display: inline-block;
  transition: transform .25s;
}

.cta-pill:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--col) 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  overflow: hidden;
}

.hero-eyebrow {
  position: absolute;
  top: 110px;
  left: var(--col);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 7.5vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.hero-title .accent {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.hero-title .dot-period {
  color: var(--accent);
}

.hero-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-meta dt {
  font-family: var(--font-mark);
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

.hero-right {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.05) contrast(1.02);
  transition: transform 1.2s ease;
}

.hero-frame:hover img { transform: scale(1.03); }

.hero-frame .frame-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bg);
  mix-blend-mode: difference;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  max-width: 38ch;
}

.hero-bottom {
  position: absolute;
  left: var(--col);
  right: var(--col);
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-bottom .scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-bottom .scroll-cue::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleX(1); opacity: 0.5; }
  50% { transform: scaleX(1.6); opacity: 1; }
}

/* ---------- section primitives ---------- */

.section {
  padding: clamp(80px, 10vw, 160px) var(--col);
  position: relative;
}

.section--paper { background: var(--paper); }

.section--ink {
  background: var(--inverse);
  color: var(--inverse-ink);
}

.section--ink {
  --ink: var(--inverse-ink);
  --ink-soft: var(--inverse-ink);
  --line: color-mix(in srgb, var(--inverse-ink) 18%, transparent);
  --line-soft: color-mix(in srgb, var(--inverse-ink) 8%, transparent);
  --muted: color-mix(in srgb, var(--inverse-ink) 55%, var(--inverse));
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px 48px;
  align-items: end;
  margin-bottom: clamp(48px, 5vw, 88px);
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.section-index {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-index::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0;
  grid-column: 1 / -1;
}

.section-title .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.36em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-style: italic;
}

.section-lede {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0;
  justify-self: end;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.about-prose {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.about-prose p { margin: 0 0 1.6em 0; }

.about-prose p:last-child { margin-bottom: 0; }

.about-prose .lift {
  font-size: 1.4em;
  display: block;
  margin-bottom: 1.2em;
  line-height: 1.5;
}

.about-figure {
  position: sticky;
  top: 100px;
}

.about-figure .frame {
  aspect-ratio: 5/6;
  overflow: hidden;
  background: var(--bg);
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-figure .caption {
  margin-top: 14px;
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.kpi-row {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-column: 1 / -1;
}

.kpi {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kpi:last-child { border-right: 0; }

.kpi .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.kpi .num .suffix {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.5em;
  margin-left: 4px;
  color: var(--muted);
}

.kpi .label {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- value/strengths band ---------- */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.value-card {
  padding: 56px 36px 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: transparent;
  transition: background .4s;
}

.value-card:nth-child(3n) { border-right: 0; }

.value-card:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }

.value-num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 28px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.value-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.4;
  margin: 0;
  font-weight: 400;
}

.value-body {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- products / categories ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px 24px;
}

.cat {
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cat-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--paper);
}

.cat-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: grayscale(0.05);
}

.cat:hover .cat-frame img { transform: scale(1.06); filter: grayscale(0); }

.cat-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.35));
  opacity: 0;
  transition: opacity .4s;
}

.cat:hover .cat-frame::after { opacity: 1; }

.cat-no {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.9);
  mix-blend-mode: difference;
  z-index: 2;
}

.cat-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cat-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.cat-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.cat-count {
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

/* span helpers */
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* ---------- editorial feature row ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 96px);
  margin-bottom: clamp(80px, 10vw, 160px);
  align-items: center;
}

.feature-row.reverse { grid-template-columns: 7fr 5fr; }

.feature-row.reverse .feature-text { order: 2; }

.feature-frame {
  position: relative;
  aspect-ratio: 6/5;
  overflow: hidden;
}

.feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-mark {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.feature-mark::before { content: "—"; }

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.12;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
  font-weight: 400;
}

.feature-body {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  margin: 0 0 32px;
  letter-spacing: 0.02em;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.feature-list .idx {
  font-family: var(--font-en);
  font-style: italic;
  color: var(--muted);
}

/* ---------- news ---------- */

.news-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 120px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s;
  cursor: pointer;
}

.news-item:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  padding-left: 18px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.news-tag {
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  justify-self: start;
  border-radius: 999px;
}

.news-tag.is-new {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.news-title {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--ink);
}

.news-arrow {
  font-family: var(--font-mark);
  font-size: 18px;
  color: var(--muted);
  transition: transform .25s, color .25s;
}

.news-item:hover .news-arrow { transform: translateX(4px); color: var(--ink); }

/* ---------- partners ---------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.partner {
  aspect-ratio: 1.6/1;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background .3s;
}

.partner:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

.partner-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.1vw, 17px);
  text-align: center;
  letter-spacing: 0.04em;
}

.partner-name .en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.7em;
  color: var(--muted);
  letter-spacing: 0.16em;
  margin-top: 4px;
}

/* ---------- access ---------- */

.access-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 80px);
}

.access-map {
  aspect-ratio: 5/4;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.map-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.map-pin .pin-label {
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 4px 10px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.map-pin .pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 20%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 16%, transparent); }
  50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--ink) 0%, transparent); }
}

.access-info dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.access-info dt, .access-info dd {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.access-info dt {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
}

.access-info dd { color: var(--ink); line-height: 1.7; }

.access-info dd .sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 100px);
}

.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.25;
  margin: 0 0 24px;
  font-weight: 400;
}

.contact-body {
  font-size: 14px;
  line-height: 2;
  color: var(--muted);
  margin: 0 0 32px;
}

.contact-tel {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-tel .label {
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-tel .num {
  font-family: var(--font-en);
  font-style: italic;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: 0.02em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field label .req {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 12px;
}

.field input,
.field textarea,
.field select {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
  font-family: var(--font-body);
  font-size: 15px;
}

.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--ink); }

.field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
}

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.consent {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform .25s, background .25s;
}

.submit-btn:hover {
  transform: translateY(-2px);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--inverse);
  color: var(--inverse-ink);
  padding: 96px var(--col) 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--inverse-ink) 18%, transparent);
}

.footer-mark {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 20px;
}

.footer-mark b { font-style: normal; font-weight: 600; }

.footer-tagline {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.9;
  opacity: 0.7;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--font-mark);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 18px;
  opacity: 0.5;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-family: var(--font-display);
  font-size: 14px;
  opacity: 0.9;
  transition: opacity .2s;
}

.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- detail modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--inverse) 60%, transparent);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-backdrop.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg);
  width: min(960px, 92vw);
  max-height: 86vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(20px);
  transition: transform .35s ease;
}

.modal-backdrop.open .modal { transform: translateY(0); }

.modal-frame {
  background: var(--paper);
  aspect-ratio: 4/5;
  overflow: hidden;
}

.modal-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

.modal-body {
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-eyebrow {
  font-family: var(--font-mark);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.2;
  margin: 12px 0 18px;
  font-weight: 400;
}

.modal-body p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0 0 22px;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.modal-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.modal-list li b { font-family: var(--font-display); font-weight: 400; }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .site-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }
  .hero-eyebrow { top: 90px; }
  .about-grid,
  .access-grid,
  .contact-grid,
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-text { order: 0; }
  .cat-grid { grid-template-columns: repeat(6, 1fr); }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 3; }
  .span-6 { grid-column: span 6; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .kpi-row, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2n), .value-card:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(odd), .value-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 100px 1fr; gap: 8px 16px; }
  .news-item .news-tag { grid-column: 1; }
  .news-item .news-title { grid-column: 1 / -1; }
  .news-item .news-arrow { display: none; }
  .about-figure { position: static; }
  .modal { grid-template-columns: 1fr; }
}
