:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #fff;
  --muted: #656565;
  --line: #c9c9c9;
  --soft: #f2f2f0;
  --max: 88rem;
  --page: clamp(1.25rem, 4vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .25em; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; z-index: 20; top: .75rem; left: .75rem; transform: translateY(-200%); padding: .75rem 1rem; background: var(--ink); color: var(--paper); }
.skip-link:focus { transform: none; }

.site-header, main, .site-footer { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--page); }
.site-header { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding-top: 1.5rem; }
.site-mark { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem 1.25rem; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.hero { min-height: min(48rem, 88svh); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(7rem, 15vw, 13rem) clamp(6rem, 10vw, 9rem); }
.eyebrow { margin: 0 0 1rem; font-size: .76rem; font-weight: 800; line-height: 1.4; letter-spacing: .14em; }
.hero h1 { max-width: 12ch; margin: 0; font-size: clamp(3rem, 8.4vw, 8.5rem); font-weight: 800; line-height: .98; letter-spacing: -.07em; }
.hero-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 50rem; margin-top: clamp(3rem, 7vw, 6rem); font-size: clamp(.9rem, 1.3vw, 1.05rem); line-height: 1.8; }
.hero-meta p { margin: 0; }
.hero-meta p[lang="en"] { color: var(--muted); }
.hero-intro { max-width: 30rem; margin: clamp(3rem, 6vw, 5rem) 0 0 auto; font-size: clamp(1.15rem, 2.1vw, 1.65rem); line-height: 1.9; }

.section-rule { display: grid; grid-template-columns: 4rem minmax(12rem, .85fr) minmax(16rem, 1.15fr); gap: clamp(1.5rem, 4vw, 5rem); padding-block: clamp(5rem, 9vw, 9rem); border-top: 1px solid var(--ink); scroll-margin-top: 2rem; }
.section-index { font-size: .76rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.section-heading h2 { max-width: 14ch; margin: 0; font-size: clamp(2rem, 4.2vw, 4.7rem); line-height: 1.08; letter-spacing: -.055em; }
.section-body { max-width: 38rem; }
.section-body > :first-child { margin-top: 0; }
.section-body p { margin-block: 0 1.5rem; }
.plain-list { margin: 0 0 2.5rem; padding: 0; list-style: none; font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 650; line-height: 1.65; }
.english { color: var(--muted); font-size: .9rem; line-height: 1.7; }

.tools { grid-template-rows: auto auto; }
.tool-gallery { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(2rem, 4vw, 4rem) clamp(1.25rem, 2.8vw, 3rem); margin-top: 2rem; }
.tool-shot { margin: 0; }
.tool-shot img { width: 100%; max-height: 42rem; object-fit: contain; object-position: left bottom; background: #f7f7f7; }
.tool-shot figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.tool-shot figcaption span { color: var(--muted); }

.research { position: relative; }
.research::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); background: var(--soft); }
.research-list { grid-column: 2 / -1; margin: 3rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.research-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; border-bottom: 1px solid var(--ink); }
.research-list span { font-size: clamp(1.25rem, 2.5vw, 2.5rem); font-weight: 750; letter-spacing: -.03em; }
.research-list small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-align: right; }
.research-visual { grid-column: 2 / -1; margin: clamp(3rem, 6vw, 6rem) 0 0; }
.research-visual img { width: 100%; border: 1px solid #263946; }
.research-visual figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.research-visual figcaption span { color: var(--muted); }
.about-copy strong { display: block; margin-block: 2.5rem; font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.5; }
.english-profile { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.contact { padding-bottom: clamp(6rem, 12vw, 12rem); }
.form-status, .form-errors { margin: 2.5rem 0; padding: 1rem 1.2rem; border-left: .3rem solid var(--ink); background: var(--soft); }
.form-status span, .form-errors span { color: var(--muted); font-size: .9rem; }
.form-errors p { margin: 0; }
.form-errors ul { margin-bottom: 0; padding-left: 1.2rem; }
.contact-form { margin-top: 4rem; }
.field { margin-bottom: 2rem; }
.field label { display: block; margin-bottom: .45rem; font-size: .88rem; font-weight: 700; }
.field label span { color: var(--muted); font-weight: 500; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.label-row output { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.field input, .field textarea { width: 100%; padding: .75rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; outline: 0; background: transparent; color: var(--ink); }
.field textarea { min-height: 12rem; resize: vertical; }
.field input:focus, .field textarea:focus { border-bottom-width: 3px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #b00020; }
.honey { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-form button { min-width: 12rem; margin-top: 1rem; padding: 1rem 1.5rem; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-weight: 750; cursor: pointer; }
.contact-form button:hover { background: var(--paper); color: var(--ink); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; padding-block: 1.5rem 3rem; border-top: 1px solid var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.site-footer p { margin: 0; }

:focus-visible { outline: 3px solid #1261ff; outline-offset: 4px; }

@media (max-width: 720px) {
  .site-header { display: block; padding-top: 1.1rem; }
  .site-nav { justify-content: flex-start; margin-top: 1rem; gap: .45rem 1rem; }
  .hero { min-height: auto; padding-top: 7rem; }
  .hero h1 { font-size: clamp(2.75rem, 15vw, 5rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-intro { margin-left: 0; }
  .section-rule { grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem; }
  .section-heading, .section-body { grid-column: 2; }
  .section-heading { margin-bottom: 2.5rem; }
  .tool-gallery, .research-list, .research-visual { grid-column: 2; }
  .tool-gallery { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 370px) {
  :root { --page: 1rem; }
  .site-nav { font-size: .65rem; gap-inline: .75rem; }
  .hero h1 { font-size: 2.65rem; }
  .section-rule { grid-template-columns: 1.75rem minmax(0, 1fr); gap: .75rem; }
  .plain-list { font-size: 1.08rem; }
  .research-list li { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .research-list small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-nav, .skip-link, .contact-form { display: none; }
  .hero { min-height: 0; }
  .section-rule { break-inside: avoid; }
}
