/* 비상IP — Layout concept: a patent specification sheet.
   Section names sit in the left margin in 【】 brackets, as headings do in a Korean
   patent specification; content runs in the wide right column. Warm near-neutral
   palette (walnut, taupe, ivory), light Korean serif for headlines, IBM Plex Sans KR for reading text. */

:root {
  /* Color: walnut, taupe and warm ivory — near-neutral with a restrained brown cast */
  --paper: #F8F5F0;
  --surface: #FFFDFA;
  --ink: #2B221C;
  --graphite: #3A2D24;
  --stone: #6F6358;
  --rule: #E0D7CC;
  --mist: #EDE5DA;
  --accent: #7D5D43;
  --on-dark: #F5EFE7;
  --on-dark-muted: #C2B4A5;
  --rule-dark: #554437;

  /* Type */
  --serif: "Noto Serif KR", "Nanum Myeongjo", "AppleMyungjo", "Batang", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.75rem, 3vw, 2.25rem);
  --fs-3xl: clamp(1.875rem, 4.4vw, 3.625rem);

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 2px;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--paper);
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

.wrap {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: 136px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("logo-wordmark.png") left center / contain no-repeat;
  mask: url("logo-wordmark.png") left center / contain no-repeat;
}

.brand-ko {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  color: var(--stone);
  padding-left: 14px;
  border-left: 1px solid var(--rule);
  line-height: 1.2;
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { border-bottom-color: var(--accent); }

.menu-toggle {
  display: none;
  font: inherit;
  font-size: var(--fs-sm);
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

@media (max-width: 960px) {
  .brand-ko { display: none; }
  .menu-toggle { display: inline-block; }
  .nav .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
    padding-block: 8px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--rule); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a { display: block; padding-block: 14px; border-bottom: 0; font-size: var(--fs-md); }
  .nav-links a[aria-current="page"] { font-weight: 600; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--graphite); border-color: var(--graphite); }
.btn-sm { padding: 9px 16px; }

.on-dark .btn { border-color: var(--on-dark); color: var(--on-dark); }
.on-dark .btn:hover { background: var(--on-dark); color: var(--graphite); }
.on-dark .btn-solid { background: var(--on-dark); color: var(--graphite); }

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

.text-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: underline;
}

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--rule); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-top: clamp(48px, 7vw, 96px);
}

.hero-copy { padding-bottom: clamp(40px, 6vw, 88px); min-width: 0; }

.hero-tag {
  font-family: var(--serif);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: var(--fs-3xl);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: var(--fs-lg);
  line-height: 1.8;
  color: var(--stone);
  font-weight: 300;
}

.hero .actions { margin-top: 40px; }

.hero-portrait {
  margin: 0;
  position: relative;
  background: var(--mist);
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-portrait img {
  width: 84%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.hero-portrait figcaption {
  position: absolute;
  left: 20px;
  top: 18px;
  font-family: var(--serif);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.hero-portrait figcaption span { color: var(--stone); margin-left: 6px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-portrait { max-width: 380px; aspect-ratio: 5 / 5.4; }
}

/* ---------- Facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--rule);
}
.facts > div {
  padding: 24px 24px 26px 0;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.facts > div + div { padding-left: 24px; }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: var(--fs-xs); color: var(--stone); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: var(--fs-md); line-height: 1.5; }

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { padding: 18px 16px 20px 0; border-right: 0; border-top: 1px solid var(--rule); }
  .facts > div + div { padding-left: 0; }
  .facts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--rule); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 9vw, 120px); }
.section + .section { border-top: 1px solid var(--rule); }
.section.tint { background: var(--surface); }

.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 4vw, 56px);
}
.sec-grid > * { min-width: 0; }

.sec-label {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--accent);
  margin: 0;
  padding-top: 0.35em;
  white-space: nowrap;
}

.sec-head h2 { font-size: var(--fs-2xl); font-weight: 400; }
.sec-head p { margin-top: 16px; color: var(--stone); max-width: 40em; }
.sec-head + * { margin-top: clamp(32px, 4vw, 52px); }

@media (max-width: 860px) {
  .sec-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* Principles */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--ink);
}
.principles article { padding: 28px 28px 8px 0; min-width: 0; }
.principles article + article { padding-left: 28px; border-left: 1px solid var(--rule); }
.principles h3 { font-size: var(--fs-lg); font-weight: 500; margin-bottom: 14px; }
.principles p { color: var(--stone); font-size: var(--fs-sm); line-height: 1.85; }

@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr; }
  .principles article { padding: 24px 0; }
  .principles article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* Index list (services, columns) */
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px;
  padding-block: 22px;
  text-decoration: none;
}
.index-list .t { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.45; }
.index-list .d { color: var(--stone); font-size: var(--fs-sm); line-height: 1.8; }
.index-list a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

@media (max-width: 720px) {
  .index-list a { grid-template-columns: 1fr; gap: 6px; }
}

/* Dark band */
.band-dark {
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: clamp(64px, 9vw, 120px);
}
.band-dark .sec-label { color: var(--on-dark-muted); }
.band-dark .sec-head p { color: var(--on-dark-muted); }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--on-dark-muted);
}
.pkg-grid article {
  padding: 28px 32px 32px 0;
  border-bottom: 1px solid var(--rule-dark);
  min-width: 0;
}
.pkg-grid article:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--rule-dark); }
.pkg-grid h3 { font-size: var(--fs-xl); font-weight: 400; }
.pkg-grid .for { margin-top: 10px; font-size: var(--fs-xs); color: var(--on-dark-muted); }
.pkg-grid p.desc { margin-top: 14px; font-size: var(--fs-sm); color: var(--on-dark); line-height: 1.85; opacity: 0.92; }
.band-dark .after { margin-top: 36px; }

@media (max-width: 760px) {
  .pkg-grid { grid-template-columns: 1fr; }
  .pkg-grid article, .pkg-grid article:nth-child(even) { padding: 24px 0; border-left: 0; }
}

/* Process (a real sequence) */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  counter-reset: step;
}
.process li { padding: 22px 20px 8px 0; counter-increment: step; min-width: 0; }
.process li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.process li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 18px;
  color: var(--accent);
}
.process h3 { font-size: var(--fs-md); font-weight: 600; font-family: var(--sans); margin-bottom: 8px; }
.process p { font-size: var(--fs-sm); color: var(--stone); line-height: 1.8; }

@media (max-width: 1180px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 20px 0; border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .process li:first-child { border-top: 0; }
  .process li::before { margin: 0; grid-row: span 2; font-size: var(--fs-xl); }
}

/* Column teaser cards */
.col-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.col-list li { min-width: 0; }
.col-list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px 24px 28px 0; text-decoration: none; }
.col-list li + li a { padding-left: 24px; border-left: 1px solid var(--rule); }
.col-list .cat { font-size: var(--fs-xs); color: var(--stone); }
.col-list .t { font-family: var(--serif); font-size: var(--fs-lg); line-height: 1.5; }
.col-list .meta { margin-top: auto; padding-top: 8px; font-size: var(--fs-xs); color: var(--stone); }
.col-list a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }

@media (max-width: 860px) {
  .col-list { grid-template-columns: 1fr; }
  .col-list a, .col-list li + li a { padding: 20px 0; border-left: 0; }
  .col-list li + li { border-top: 1px solid var(--rule); }
}

/* CTA band */
.cta-band { background: var(--mist); padding-block: clamp(56px, 8vw, 96px); }
.cta-band .sec-head h2 { font-size: var(--fs-2xl); }
.cta-band .sec-head p { color: var(--stone); }
.cta-band .actions { margin-top: 32px; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 24px; font-size: var(--fs-sm); color: var(--stone); }
.contact-lines b { font-weight: 500; color: var(--ink); margin-right: 8px; }

/* ---------- Sub-page header ---------- */

.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head .crumb { font-size: var(--fs-xs); color: var(--stone); margin-bottom: 18px; }
.page-head .crumb a { text-decoration: none; }
.page-head .crumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: var(--fs-3xl); font-weight: 300; }
.page-head .lead { margin-top: 20px; max-width: 38em; font-size: var(--fs-lg); line-height: 1.8; color: var(--stone); font-weight: 300; }

/* Detailed service blocks */
.detail + .detail { margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--rule); }
.detail h2 { font-size: var(--fs-2xl); }
.detail > p { margin-top: 16px; color: var(--stone); max-width: 40em; }

.checklist { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.checklist li {
  padding: 14px 0 14px 28px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.75;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.45em;
  width: 10px;
  height: 1px;
  background: var(--accent);
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.tags li { font-size: var(--fs-xs); border: 1px solid var(--rule); padding: 5px 12px; border-radius: 999px; background: var(--surface); }

.note {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
  font-size: var(--fs-sm);
  color: var(--stone);
  line-height: 1.8;
  max-width: 46em;
}

/* Package detail */
.pkg-detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--rule);
}
.pkg-detail:first-of-type { border-top: 1px solid var(--ink); }
.pkg-detail > * { min-width: 0; }
.pkg-detail h2 { font-size: var(--fs-2xl); }
.pkg-detail .for { margin-top: 14px; font-size: var(--fs-sm); color: var(--stone); line-height: 1.8; }
.pkg-detail h3 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; color: var(--stone); margin-bottom: 4px; }
.pkg-detail h3 + .checklist { margin-top: 10px; }
.pkg-detail .out { margin-top: 24px; font-size: var(--fs-sm); line-height: 1.8; }
.pkg-detail .out b { font-weight: 600; }

@media (max-width: 860px) {
  .pkg-detail { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.profile > * { min-width: 0; }
.profile-photo { margin: 0; background: var(--mist); aspect-ratio: 4 / 5; max-width: 100%; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.profile-photo img { width: 84%; }
.profile h2 { font-size: var(--fs-2xl); }
.profile .role { margin-top: 6px; color: var(--stone); font-size: var(--fs-sm); }
.profile .message { margin-top: 28px; display: grid; gap: 16px; max-width: 36em; }
.profile .message p { line-height: 1.95; }

@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; }
  .profile-photo { max-width: 360px; }
}

.timeline { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); border-top: 1px solid var(--ink); }
.timeline th, .timeline td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.timeline th { width: 9.5em; font-weight: 400; color: var(--stone); font-variant-numeric: tabular-nums; padding-right: 16px; }
.timeline td b { font-weight: 600; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-grid > * { min-width: 0; }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field label, .field legend { font-size: var(--fs-sm); font-weight: 500; }
.field .req { color: var(--stone); font-weight: 400; margin-left: 4px; font-size: var(--fs-xs); }
.field .hint { font-size: var(--fs-xs); color: var(--stone); line-height: 1.6; }

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-md);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  line-height: 1.5;
}
.form textarea { min-height: 168px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: var(--ink); border-width: 2px; }

fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  font-size: var(--fs-sm);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 9px 14px;
  background: var(--surface);
}
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.consent {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  font-size: var(--fs-xs);
  color: var(--stone);
  line-height: 1.75;
}
.consent dl { margin: 0 0 12px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 2px 14px; }
.consent dt { color: var(--ink); }
.consent dd { margin: 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
.consent input { margin-top: 0.3em; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }

.form-error { font-size: var(--fs-sm); color: var(--ink); font-weight: 500; border-left: 2px solid var(--ink); padding-left: 12px; }

.form-done {
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.form-done h2 { font-size: var(--fs-xl); }
.form-done p { margin-top: 12px; color: var(--stone); }
.form-done textarea { width: 100%; margin-top: 16px; min-height: 180px; font: inherit; font-size: var(--fs-sm); border: 1px solid var(--rule); background: var(--surface); padding: 12px; color: var(--ink); }
.form-done .actions { margin-top: 16px; }

.aside-block + .aside-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--rule); }
.aside-block h2 { font-size: var(--fs-lg); margin-bottom: 14px; }
.aside-block p { font-size: var(--fs-sm); color: var(--stone); line-height: 1.85; }

.contact-card { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contact-card li { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.contact-card .k { color: var(--stone); }
.contact-card .v { font-family: var(--serif); font-size: var(--fs-md); overflow-wrap: anywhere; user-select: all; }
.copy-btn { font: inherit; font-size: var(--fs-xs); background: none; border: 1px solid var(--rule); border-radius: var(--radius); padding: 5px 10px; color: var(--ink); cursor: pointer; }
.copy-btn:hover { border-color: var(--ink); }

/* ---------- Article ---------- */

.article { padding-block: clamp(48px, 7vw, 88px); }
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: clamp(24px, 4vw, 56px);
}
.article-grid > * { min-width: 0; }
.article-meta { font-size: var(--fs-xs); color: var(--stone); line-height: 1.9; }
.article-meta b { display: block; color: var(--ink); font-weight: 500; font-size: var(--fs-sm); }

.prose { max-width: 40em; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2.2em; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.8em; }
.prose p, .prose li { line-height: 1.95; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose strong { font-weight: 600; }
.prose .lede { font-size: var(--fs-lg); line-height: 1.85; color: var(--stone); font-weight: 300; }
.prose .callout { background: var(--surface); border-left: 2px solid var(--accent); padding: 16px 20px; font-size: var(--fs-sm); }
.prose .src { font-size: var(--fs-xs); color: var(--stone); border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 2.4em; }

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

.article-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.article-foot p { font-size: var(--fs-sm); color: var(--stone); max-width: 32em; }

/* Column index groups */
.col-group + .col-group { margin-top: clamp(40px, 5vw, 64px); }
.col-group h2 { font-size: var(--fs-lg); margin-bottom: 16px; }

/* Policy page */
.policy { max-width: 46em; }
.policy h2 { font-size: var(--fs-lg); margin-top: 2.2em; margin-bottom: 0.8em; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { font-size: var(--fs-sm); line-height: 1.9; }
.policy ul { padding-left: 1.2em; margin: 0.6em 0 0; }
.policy p + p { margin-top: 0.8em; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--graphite);
  color: var(--on-dark);
  padding-block: 64px 40px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 0px));
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: 40px;
}
.footer-grid > * { min-width: 0; }
.footer-mark {
  width: 200px;
  height: 88px;
  background: var(--on-dark);
  -webkit-mask: url("logo-lockup.png") left top / contain no-repeat;
  mask: url("logo-lockup.png") left top / contain no-repeat;
}
.footer-info { font-size: var(--fs-xs); line-height: 2; color: var(--on-dark-muted); }
.footer-info b { color: var(--on-dark); font-weight: 500; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--fs-sm); }
.footer-nav a { text-decoration: none; color: var(--on-dark); }
.footer-nav a:hover { text-decoration: underline; }
.footer-base {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}
.footer-base a { color: var(--on-dark); }

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band { display: none; }
  body { background: #fff; }
}

/* ---------- Small utilities and page-specific pieces ---------- */

.more { margin-top: 28px; }
.checklist.flush { margin-top: 0; }
.consent-text { margin-bottom: 12px; }
.spaced { margin-top: 12px; }
.map-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

.nav-links .nav-cta-mobile { display: none; }
@media (max-width: 960px) {
  .nav-links .nav-cta-mobile { display: block; }
}

.side-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 104px);
  display: grid;
  gap: 2px;
}
.side-index a {
  display: block;
  font-family: var(--serif);
  font-size: var(--fs-sm);
  color: var(--stone);
  text-decoration: none;
  padding: 6px 0 6px 14px;
  border-left: 1px solid var(--rule);
}
.side-index a:hover { color: var(--ink); border-left-color: var(--ink); }
@media (max-width: 860px) {
  .side-index ul { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .side-index a { border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; font-family: var(--sans); font-size: var(--fs-xs); background: var(--surface); }
}

.col-index .cat { display: flex; gap: 12px; font-size: var(--fs-xs); color: var(--stone); margin-bottom: 4px; }
.col-index .d { display: block; }


/* ---------- Portrait link (home) ---------- */

.portrait-link { display: block; color: inherit; text-decoration: none; min-width: 0; }
.portrait-link .hero-portrait img { transition: transform 0.35s ease; transform-origin: bottom center; }
.portrait-link:hover .hero-portrait img { transform: scale(1.02); }
.portrait-cue {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-size: var(--fs-xs);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 6px 12px;
}
.portrait-link:hover .portrait-cue { border-color: var(--accent); color: var(--accent); }
.portrait-link:focus-visible { outline-offset: 4px; }

/* ---------- Profile page ---------- */

.profile-head { padding-bottom: 0; }
.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.profile-name { padding-bottom: clamp(32px, 5vw, 64px); min-width: 0; }
.profile-name h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: 0.08em; }
.profile-name .role { margin-top: 12px; font-size: var(--fs-lg); color: var(--stone); font-family: var(--serif); }
.profile-head .profile-photo { margin: 0; aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .profile-hero { grid-template-columns: 1fr; }
  .profile-name { padding-bottom: 8px; }
  .profile-head .profile-photo { max-width: 320px; }
}

.profile-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
}
.profile-cols > * { min-width: 0; }
.profile-col .sec-label { margin-bottom: 18px; }
.timeline .era {
  display: inline-block;
  width: 1.6em;
  font-family: var(--serif);
  color: var(--accent);
}
.credentials { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.credentials li { font-family: var(--serif); font-size: var(--fs-md); }
@media (max-width: 860px) {
  .profile-cols { grid-template-columns: 1fr; }
}
