/* replacements.jp — design system
   Palette: PAPER / INK / RUST(field) / SLATE(analysis)
   Type: mono labels, Hiragino Sans headings/body */

:root {
  --paper: #ece7d9;
  --surface: #f5f2e8;
  --surface-2: #e2dcc9;
  --ink: #1c1e1a;
  --ink-soft: rgba(28, 30, 26, 0.64);
  --ink-faint: rgba(28, 30, 26, 0.4);
  --rust: #b8592a;
  --rust-deep: #92431e;
  --rust-ink: #ffffff;
  --slate: #3f5a63;
  --slate-ink: #ffffff;
  --line: rgba(28, 30, 26, 0.16);
  --line-strong: rgba(28, 30, 26, 0.32);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.mono {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.eyebrow {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--rust-deep);
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.35em;
}

.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--rust);
  display: inline-block;
  flex: none;
}

.eyebrow.center {
  justify-content: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
}

.nav-toggle {
  display: none;
}

.nav-list {
  display: flex;
  gap: clamp(16px, 2.4vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

.nav-list a.lang-switch {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  padding: 0.35em 0.8em;
  border-bottom: none;
}

.nav-list a.lang-switch:hover {
  border-color: var(--slate);
  color: var(--slate);
}

.nav-list a.nav-cta {
  background: var(--rust);
  color: var(--rust-ink);
  padding: 0.55em 1.1em;
  border-bottom: none;
  font-weight: 700;
}

.nav-list a.nav-cta:hover {
  background: var(--rust-deep);
  color: var(--rust-ink);
}

.nav-toggle-label {
  display: none;
}

@media (max-width: 860px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line-strong);
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }

  .nav-toggle-label span::before { top: -6px; position: absolute; }
  .nav-toggle-label span::after { top: 6px; position: absolute; }

  .nav-list {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 40px) 24px;
    gap: 4px;
    display: none;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle:checked ~ .nav-list {
    display: flex;
  }
}

/* ---------- buttons ---------- */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.9em 1.5em;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}

.btn:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

.btn.primary {
  background: var(--rust);
  color: var(--rust-ink);
}

.btn.primary:hover {
  background: var(--rust-deep);
}

.btn.ghost {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}

.btn.ghost:hover {
  background: color-mix(in srgb, var(--slate) 10%, transparent);
}

.btn.outline-ink {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.outline-ink:hover {
  border-color: var(--ink);
}

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

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
  color: #ece7d8;
}

.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 90%, color-mix(in srgb, var(--rust) 55%, #000) 0%, transparent 50%),
    radial-gradient(ellipse 60% 55% at 85% 10%, color-mix(in srgb, var(--slate) 45%, #000) 0%, transparent 50%),
    rgba(10, 9, 7, 0.32);
  box-shadow: inset 0 0 120px 20px rgba(0, 0, 0, 0.4);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin-bottom: 1.3em;
}

.hero-logo-img {
  display: block;
  height: clamp(38px, 6vw, 60px);
  width: auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.38;
  margin: 0 0 0.6em;
  text-wrap: balance;
  max-width: 20em;
}

.hero-en-line {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.82rem;
  color: rgba(236, 231, 216, 0.6);
  margin: 0 0 1.3em;
}

.hero .sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(236, 231, 216, 0.8);
  max-width: 34em;
  margin: 0 0 1.6em;
}

.hero-en {
  margin-top: 2em;
  padding-top: 1.8em;
  border-top: 1px solid rgba(236, 231, 216, 0.2);
  max-width: 36em;
}

.hero-en h2 {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: #ece7d8;
}

.hero-en p {
  font-size: 0.9rem;
  color: rgba(236, 231, 216, 0.68);
  margin: 0 0 1.6em;
}

.hero .btn-row {
  margin-top: 1.8em;
}

.hero .btn.primary {
  background: var(--rust);
}

.hero .btn.ghost {
  border-color: rgba(236, 231, 216, 0.5);
  color: #ece7d8;
}

.hero .btn.ghost:hover {
  background: rgba(236, 231, 216, 0.1);
}

.hero .btn.cta-final {
  background: transparent;
  border: 1px solid #e6a172;
  color: #e6a172;
}

/* ---------- sections ---------- */

section {
  padding: clamp(56px, 8vw, 96px) 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 42em;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* ---------- intro / about strip ---------- */

.intro {
  background: var(--surface);
}

.intro p {
  max-width: 46em;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.intro .en {
  margin-top: 1.2em;
  font-size: 0.86rem;
  color: var(--ink-faint);
}

/* ---------- track record ---------- */

.record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.bracket {
  position: relative;
  padding: 1.6rem 1.7rem;
  background: var(--surface);
}

.corner {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid var(--rust);
}

.corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.record-card .tag-row {
  margin-bottom: 1em;
}

.record-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.5em;
}

.record-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.8em;
}

.record-card .en {
  font-size: 0.8rem;
  color: var(--ink-faint);
  border-top: 1px dashed var(--line-strong);
  padding-top: 0.8em;
  margin: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 0.72rem;
  padding: 0.32em 0.75em;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-weight: 600;
  white-space: nowrap;
}

.tag.rust { border-color: var(--rust); color: var(--rust-deep); }
.tag.slate { border-color: var(--slate); color: var(--slate); }

.center-cta {
  text-align: center;
  margin-top: clamp(32px, 5vw, 48px);
}

/* ---------- services summary ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  padding: 1.8rem 1.8rem 1.6rem;
  border-top: 3px solid var(--slate);
}

.service-card .num {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.08em;
}

.service-card h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0.5em 0 0.2em;
  line-height: 1.5;
}

.service-card .en-name {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0 0 1em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 1em;
}

.service-card .en {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0 0 1.2em;
}

.service-card .learn {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rust-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.service-card .learn::after {
  content: "→";
}

.service-note {
  max-width: 42em;
  margin: clamp(28px, 4vw, 40px) auto 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.service-note .en {
  display: block;
  margin-top: 0.5em;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- why replacements (accordion) ---------- */

.why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46em;
  margin: 0 auto;
}

details.why-item {
  background: var(--surface);
  border-left: 3px solid var(--rust);
  padding: 1.1rem 1.4rem;
}

details.why-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.9em;
  font-weight: 700;
  font-size: 0.98rem;
}

details.why-item summary::-webkit-details-marker {
  display: none;
}

details.why-item summary .idx {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  color: var(--rust-deep);
  font-size: 0.85rem;
}

details.why-item summary .plus {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  color: var(--ink-faint);
}

details.why-item[open] summary .plus::before {
  content: "−";
}

details.why-item summary .plus::before {
  content: "+";
}

.why-item .en-label {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin: 0.3em 0 0 1.6em;
}

.why-item .detail {
  margin: 1em 0 0 1.6em;
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 40em;
}

.why-item .detail .en {
  margin-top: 0.8em;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- final cta ---------- */

.final-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.final-cta .eyebrow {
  justify-content: center;
  color: #e6a172;
}

.final-cta .eyebrow::before {
  background: #e6a172;
}

.final-cta h2 {
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 0.9em;
}

.final-cta p {
  max-width: 38em;
  margin: 0 auto 0.6em;
  color: rgba(236, 231, 216, 0.78);
  font-size: 0.96rem;
}

.final-cta .en {
  font-size: 0.84rem;
  color: rgba(236, 231, 216, 0.55);
}

.final-cta .btn-row {
  justify-content: center;
  margin-top: 1.8em;
}

.final-cta .btn.ghost {
  border-color: rgba(236, 231, 216, 0.5);
  color: var(--paper);
}

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

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.84rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

.site-footer .copyright {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- sub-page header ---------- */

.page-header {
  background: var(--surface);
  padding: clamp(48px, 8vw, 84px) 0 clamp(40px, 6vw, 64px);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.9em;
  text-wrap: balance;
}

.page-header .lead {
  max-width: 42em;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.page-header .lead + .lead {
  margin-top: 0.8em;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.page-header.split {
  text-align: left;
}

.page-header.split .split-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-header.split h1 {
  text-align: left;
  margin-left: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--ink);
}

.page-header.split .lead {
  margin: 0 0 1.6em;
  text-align: left;
}

@media (max-width: 760px) {
  .page-header.split .split-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- anchor sub-nav ---------- */

.subnav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6em;
}

.subnav a {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 0.5em 1em;
}

.subnav a:hover {
  border-color: var(--rust);
  color: var(--rust-deep);
}

/* ---------- image placeholder (to be filled with real photography) ---------- */

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo .photo {
  object-position: 50% 78%;
}

@media (max-width: 640px) {
  .hero-photo .photo {
    object-position: 50% 82%;
  }

  .hero {
    padding: clamp(48px, 10vw, 72px) 0 40px;
  }

  .hero-logo-img {
    height: 30px;
  }

  .hero h1 {
    font-size: 1.5rem;
    line-height: 1.34;
  }

  .hero .sub {
    font-size: 0.9rem;
  }

  .hero .btn-row .btn {
    padding: 0.7em 1.1em;
    font-size: 0.84rem;
  }

  .hero-en {
    margin-top: 1.4em;
    padding-top: 1.2em;
  }

  .hero-en h2 {
    font-size: 0.95rem;
  }

  .hero-en p {
    font-size: 0.82rem;
  }
}

.image-slot {
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--ink-faint);
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 1.5em;
}

/* ---------- engagement model comparison table ---------- */

.compare-wrap {
  overflow-x: auto;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.86rem;
}

table.compare th,
table.compare td {
  border: 1px solid var(--line);
  padding: 0.9em 1em;
  text-align: left;
  vertical-align: top;
}

table.compare thead th {
  background: var(--surface);
  font-weight: 700;
  font-size: 0.82rem;
}

table.compare tbody th {
  font-weight: 700;
  background: var(--surface);
  white-space: nowrap;
}

.model-card {
  background: var(--surface);
  padding: 1.6rem 1.7rem;
  margin-top: 20px;
}

.model-card h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.6em;
}

.model-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
}

.model-note {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 24px;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 50em;
  margin: 0 auto;
}

details.faq-item {
  background: var(--surface);
  border-left: 3px solid var(--slate);
  padding: 1.1rem 1.4rem;
}

details.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  gap: 0.8em;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary .plus {
  margin-left: auto;
  font-family: ui-monospace, monospace;
  color: var(--ink-faint);
  flex: none;
}

details.faq-item[open] summary .plus::before { content: "−"; }
details.faq-item summary .plus::before { content: "+"; }

.faq-item .a {
  margin: 0.9em 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- case study cards ---------- */

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.case-card {
  background: var(--surface);
  padding: 1.7rem 1.8rem;
}

.case-card.featured {
  grid-column: 1 / -1;
  border-top: 3px solid var(--rust);
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0.8em 0 1em;
}

.case-card dl {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.case-card dt {
  font-weight: 700;
  color: var(--ink);
  margin-top: 0.9em;
}

.case-card dt:first-child {
  margin-top: 0;
}

.case-card dd {
  margin: 0.3em 0 0;
}

/* ---------- challenge list ---------- */

.challenge-list {
  max-width: 42em;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-list li {
  padding-left: 1.6em;
  position: relative;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.challenge-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
}

/* ---------- timeline (About) ---------- */

.timeline {
  max-width: 42em;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 1.2em;
  padding: 1em 0;
  border-top: 1px solid var(--line);
}

.timeline-item:first-child {
  border-top: none;
}

.timeline-item .year {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  color: var(--rust-deep);
  font-size: 0.86rem;
}

.timeline-item .desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- process steps ---------- */

.step-list {
  max-width: 46em;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 1em;
  padding: 1em 0;
  border-top: 1px solid var(--line);
}

.step-item:first-child { border-top: none; }

.step-item .step-num {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  font-weight: 700;
  color: var(--slate);
}

.step-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

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

.fact-grid {
  max-width: 42em;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 0.7em 1.2em;
  font-size: 0.9rem;
}

.fact-grid dt {
  color: var(--ink-faint);
  font-weight: 700;
}

.fact-grid dd {
  margin: 0;
  color: var(--ink-soft);
}

.quote-block {
  max-width: 42em;
  margin: 0 auto;
  border-left: 3px solid var(--rust);
  padding: 0.2em 0 0.2em 1.4em;
}

.quote-block p {
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.9;
}

.quote-block .en {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-top: 1em;
}

.expertise-list {
  max-width: 42em;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.expertise-list li {
  padding: 0.7em 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.expertise-list li:first-child { border-top: none; }

.small-print {
  max-width: 42em;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.small-print .eyebrow {
  justify-content: center;
}

.small-print ol {
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding-left: 1.2em;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

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

.contact-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-step {
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  display: flex;
  gap: 1em;
  align-items: baseline;
}

.contact-step .n {
  font-family: "Courier Prime", ui-monospace, "SF Mono", "Roboto Mono", "Courier New", monospace;
  color: var(--rust-deep);
  font-weight: 700;
}

.contact-step h3 {
  font-size: 0.98rem;
  margin: 0 0 0.3em;
}

.contact-step p {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.req {
  color: var(--rust-deep);
}

form.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.reassure {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
