/* ============================================================
   INFRAYO — Global stylesheet
   Design tokens + base typography + shared components
   ============================================================ */

:root {
  /* Color */
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #F4F6F8;
  --color-text:          #111827;
  --color-text-muted:    #6B7280;
  --color-rule:          #E5E7EB;
  --color-primary:       #0B2545;
  --color-primary-soft:  #13315C;
  --color-accent:        #2563EB;
  --color-success:       #047857;

  /* Type */
  --font-sans-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
                  "Yu Gothic Medium", "YuGothic", "Meiryo", sans-serif;
  --font-sans-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif-ja: "Noto Serif JP", "Hiragino Mincho ProN", "YuMincho",
                   "Yu Mincho", serif;

  /* Layout */
  --container-max: 1100px;
  --gutter: 24px;

  /* Rhythm */
  --section-y-desktop: 96px;
  --section-y-tablet:  64px;
  --section-y-mobile:  48px;
}

/* ---- Reset (minimal) ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ja"] body {
  font-family: var(--font-sans-ja);
  line-height: 1.75;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-soft); }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---- Skip link ------------------------------------------------------ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* ---- Container ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Typography ----------------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(28px, 3.6vw, 36px); line-height: 1.25; }
h2 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.3; }
h3 { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.4; }
h4 { font-size: 16px; line-height: 1.4; font-weight: 500; }

p { margin: 0 0 1em; max-width: 70ch; }
html[lang="ja"] p { max-width: 42em; }

.overline {
  font-family: var(--font-sans-en);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}
html[lang="ja"] .overline { letter-spacing: 0.08em; }

.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 14px; }

.hairline {
  height: 1px;
  background: var(--color-rule);
  border: 0;
  margin: 0;
}

/* ---- Section -------------------------------------------------------- */
.section {
  padding-block: var(--section-y-desktop);
}
.section--alt { background: var(--color-bg-alt); }
.section--tight { padding-block: 56px; }
.section + .section:not(.section--alt) {
  border-top: 1px solid var(--color-rule);
}
@media (max-width: 960px) {
  .section { padding-block: var(--section-y-tablet); }
}
@media (max-width: 640px) {
  .section { padding-block: var(--section-y-mobile); }
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 { margin: 0; }
.section-head .meta { color: var(--color-text-muted); font-size: 14px; }

/* ---- Header --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--color-rule);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-primary);
}
.brand .mark {
  font-family: var(--font-sans-en);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.brand .brand-tag {
  font-family: var(--font-sans-en);
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
  /* explicit reset — guard against future utility-class bleed */
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}
.header-right {
  display: flex;
  align-items: center;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover { color: var(--color-primary); }
.primary-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-left: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--color-rule);
  color: var(--color-text-muted);
}
.lang-toggle a { color: var(--color-text-muted); }
.lang-toggle a:hover { color: var(--color-primary); text-decoration: underline; text-underline-offset: 4px; }
.lang-toggle a[aria-current="true"] {
  color: var(--color-primary);
  font-weight: 700;
}
.lang-toggle .sep { color: var(--color-rule); }

/* ---- Mobile nav (no JavaScript) -------------------------------------
   A <details> disclosure. The strict CSP in _headers forbids inline
   script, so the menu is built from <details>/<summary> + CSS only.
   The language toggle deliberately stays outside the disclosure so it
   is reachable on phones without opening the menu.
   -------------------------------------------------------------------- */
.nav-toggle { display: none; }
.nav-toggle > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  list-style: none;
  cursor: pointer;
}
.nav-toggle > summary::-webkit-details-marker { display: none; }
.nav-toggle > summary::marker { content: ""; }
.nav-toggle .bars {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 140ms ease, top 140ms ease;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after  { top: 6px; }
.nav-toggle[open] .bars { background: transparent; }
.nav-toggle[open] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[open] .bars::after  { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-rule);
  box-shadow: 0 8px 24px rgba(11, 37, 69, 0.06);
  padding: 8px var(--gutter) 16px;
}
.mobile-nav a {
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-rule);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a[aria-current="page"] { color: var(--color-primary); }

@media (max-width: 820px) {
  .site-header .container { height: 64px; }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
  .lang-toggle { margin-left: 0; padding-left: 16px; }
}
@media (max-width: 480px) {
  /* The wordmark, the language toggle and the menu button all have to fit a
     360px viewport — the sub-tagline is the one that can go. */
  .brand .brand-tag { display: none; }
  .lang-toggle { padding-left: 12px; gap: 6px; }
}

/* ---- Footer --------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-rule);
  background: var(--color-bg);
  padding-block: 56px 40px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.site-footer h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--color-text); }
.site-footer a:hover { color: var(--color-primary); }
.site-footer .name-block .romaji {
  font-family: var(--font-sans-en);
  font-weight: 500;
  color: var(--color-text);
  font-size: 16px;
}
.site-footer .name-block .kana {
  display: block;
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 2px;
}
.site-footer .positioning { margin-top: 12px; max-width: 36ch; }
.site-footer .copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
@media (max-width: 820px) {
  .site-footer .grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  border-radius: 2px;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  white-space: nowrap;
}
.btn:hover { background: var(--color-primary-soft); border-color: var(--color-primary-soft); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
}
.btn--ghost:hover { background: var(--color-primary); color: #fff; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.btn-link:hover { border-bottom-color: var(--color-primary); }
.btn-link .arrow { transition: transform 160ms ease; }
.btn-link:hover .arrow { transform: translateX(3px); }

/* ---- Hero ----------------------------------------------------------- */
.hero {
  padding-block: 88px 96px;
  border-bottom: 1px solid var(--color-rule);
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .overline { margin-bottom: 24px; display: inline-block; }
.hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin-bottom: 4px;
}
.hero .kana {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero .tagline {
  font-family: var(--font-serif-ja);
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--color-primary);
  margin: 0 0 24px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
html[lang="en"] .hero .tagline { font-family: var(--font-sans-en); font-style: italic; font-weight: 400; }
.hero .lede {
  font-size: 16px;
  color: var(--color-text);
  max-width: 38em;
  margin-bottom: 36px;
}
.hero .cta-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-photo {
  aspect-ratio: 4 / 5;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-rule);
  position: relative;
  overflow: hidden;
}
.hero-photo[hidden] { display: none; }
/* hero without a photo: the copy takes the full width instead of leaving a gap */
.hero--no-photo .grid { grid-template-columns: 1fr; }
.hero-photo .placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--color-text-muted);
  font-family: "SF Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(11,37,69,0.03) 0 8px,
      rgba(11,37,69,0.06) 8px 16px);
}
@media (max-width: 820px) {
  .hero { padding-block: 56px 64px; }
  .hero .grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 280px; }
}

/* ---- Specialty grid ------------------------------------------------- */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-rule);
  border-left: 1px solid var(--color-rule);
}
.specialty-item {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  background: var(--color-bg);
}
.specialty-item .icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.specialty-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}
.specialty-item p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 960px) {
  .specialty-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .specialty-grid { grid-template-columns: 1fr; }
}

/* ---- Timeline (experience) ----------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--color-rule);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 1px solid var(--color-rule); }
.timeline .year {
  font-family: var(--font-sans-en);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  font-size: 14px;
}
.timeline .body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: baseline; }
.timeline .role { font-weight: 700; color: var(--color-text); }
.timeline .org { color: var(--color-text-muted); font-size: 14px; margin-top: 4px; }
.timeline .summary { color: var(--color-text); font-size: 14px; line-height: 1.7; margin: 0; }
@media (max-width: 720px) {
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .timeline .body { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- Certifications table ------------------------------------------ */
.cert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.cert-table th, .cert-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid var(--color-rule);
  vertical-align: top;
}
.cert-table thead th {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 12px;
}
.cert-table tbody tr:hover td { background: var(--color-bg-alt); }
.cert-table .cert-name { font-weight: 500; color: var(--color-text); }
.cert-table .cert-issuer { color: var(--color-text-muted); }
.cert-table .cert-year { font-family: var(--font-sans-en); color: var(--color-text-muted); }

/* ---- Publications / talks ------------------------------------------ */
.pub-list { list-style: none; padding: 0; margin: 0; }
.pub-list li {
  display: grid;
  grid-template-columns: 110px 200px 1fr auto;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-rule);
  align-items: baseline;
}
.pub-list li:last-child { border-bottom: 1px solid var(--color-rule); }
.pub-list .date {
  font-family: var(--font-sans-en);
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.pub-list .venue {
  font-size: 13px;
  color: var(--color-text-muted);
}
.pub-list .title {
  color: var(--color-text);
  font-weight: 500;
  text-wrap: balance;
}
.pub-list .links {
  display: inline-flex;
  gap: 16px;
  font-size: 13px;
}
.pub-list .links a { color: var(--color-primary); }
@media (max-width: 820px) {
  .pub-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- Pill tags ------------------------------------------------------ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li, .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--color-rule);
  border-radius: 999px;
  color: var(--color-text);
  background: var(--color-bg);
  letter-spacing: 0.02em;
}

/* ---- CTA band ------------------------------------------------------- */
.cta-band {
  background: var(--color-bg-alt);
  padding-block: 72px;
  text-align: center;
}
.cta-band .lede {
  max-width: 30em;
  margin: 0 auto 28px;
  color: var(--color-text);
  font-size: 16px;
}
html[lang="ja"] .cta-band .lede { max-width: 26em; }
.cta-band .row {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-band .secondary {
  font-size: 14px;
  color: var(--color-text-muted);
}
.cta-band .secondary a { color: var(--color-primary); }

/* ---- Service blocks ------------------------------------------------- */
.service-block {
  padding: 40px 0;
  border-top: 1px solid var(--color-rule);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
}
.service-block:last-child { border-bottom: 1px solid var(--color-rule); }
.service-block .num {
  font-family: var(--font-sans-en);
  font-size: 13px;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.service-block h2 { margin: 4px 0 0; max-width: 9em; }
.service-block .body dl { margin: 0; }
.service-block dt {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  margin-top: 20px;
}
.service-block dt:first-child { margin-top: 0; }
.service-block dd { margin: 0 0 4px; max-width: 60ch; }
.service-block ul.phases {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phase;
  display: grid;
  gap: 6px;
}
.service-block ul.phases li {
  counter-increment: phase;
  padding-left: 32px;
  position: relative;
  font-size: 14px;
}
.service-block ul.phases li::before {
  content: counter(phase, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-sans-en);
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 500;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .service-block { grid-template-columns: 1fr; gap: 16px; }
}

/* ---- Case study ----------------------------------------------------- */
.case-study {
  padding: 40px 0;
  border-top: 1px solid var(--color-rule);
}
.case-study:last-child { border-bottom: 1px solid var(--color-rule); }
.case-study .sector {
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.case-study .sector strong { color: var(--color-primary); font-weight: 500; }
.case-study h3 { font-size: 20px; margin-bottom: 20px; }
.case-study .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-study .col h4 {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.case-study .col p { font-size: 14px; margin: 0; }
.case-study .col ul { margin: 0; padding-left: 18px; font-size: 14px; }
.case-study .col ul li { margin-bottom: 4px; }
.case-study .frameworks { margin-top: 20px; }
@media (max-width: 820px) {
  .case-study .grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---- Filter tabs ---------------------------------------------------- */
.filter-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-rule);
}
.filter-tabs button {
  background: none;
  border: 0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.filter-tabs button[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
.filter-tabs button:hover { color: var(--color-primary); }

.year-header {
  font-family: var(--font-sans-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 40px 0 12px;
}
.year-header:first-child { margin-top: 0; }

/* ---- Form ----------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}
.field label .req { color: var(--color-accent); margin-left: 4px; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-rule);
  border-radius: 2px;
  background: var(--color-bg);
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--color-text-muted); }
.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
}
.checkbox input { margin-top: 3px; }
.checkbox a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ---- Two-column page layout (profile etc) -------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Misc ----------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Six-cell specialty grid: 3 across instead of 4, so it fills two even rows. */
.specialty-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) {
  .specialty-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .specialty-grid--3 { grid-template-columns: 1fr; }
}

/* Pull-quote for the one or two lines that carry the argument. */
.pull-quote {
  border-left: 2px solid var(--color-primary);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--font-serif-ja);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.6;
  color: var(--color-primary);
  max-width: 34em;
}
html[lang="en"] .pull-quote {
  font-family: var(--font-sans-en);
  font-style: italic;
  font-weight: 400;
}

/* Caption under a table or list — used for the "in progress" credential note. */
.table-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.cert-table .cert-year .is-pending {
  color: var(--color-text-muted);
  font-style: italic;
}

/* Footer non-solicitation notice. */
.site-footer .footer-disclaimer {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-rule);
  font-size: 12px;
  color: var(--color-text-muted);
  max-width: none;
}
.site-footer .footer-disclaimer + .copyright {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.eyebrow-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.def-list { margin: 0; padding: 0; }
.def-list .row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-rule);
  font-size: 14px;
  align-items: baseline;
}
.def-list .row:last-child { border-bottom: 1px solid var(--color-rule); }
.def-list dt {
  color: var(--color-text-muted);
  font-size: 13px;
}
.def-list dd { margin: 0; color: var(--color-text); }
@media (max-width: 720px) {
  .def-list .row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---- Prose (legal pages) ------------------------------------------- */
.prose { max-width: 70ch; }
html[lang="ja"] .prose { max-width: 42em; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }

/* ---- Reduced motion ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Icon stroke defaults ------------------------------------------ */
.lucide {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
