@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/yrsa-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/yrsa-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/yrsa-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/yrsa-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/yrsa-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/yrsa-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/yrsa-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/yrsa-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/yrsa-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'Yrsa'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/yrsa-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans Sinhala'; font-style: normal; font-weight: 900; font-display: swap; src: url("/assets/fonts/noto-sans-sinhala-latin-900-normal.woff2") format("woff2"); }
:root {
  --bg-dark-base: #170d1a;
  --fg-dark-base-body: #f7eef5;
  --fg-dark-base-heading: #f7eef5;
  --fg-dark-base-muted: #c4afc1;
  --fg-dark-base-link: #ee72e2;
  --fg-dark-base-inverse: #f7eef5;
  --bg-dark-card: #21132a;
  --fg-dark-card-body: #f7eef5;
  --fg-dark-card-heading: #f7eef5;
  --fg-dark-card-muted: #c4afc1;
  --fg-dark-card-link: #ee72e2;
  --fg-dark-card-inverse: #f7eef5;
  --bg-dark-elevated: #2c1b35;
  --fg-dark-elevated-body: #f7eef5;
  --fg-dark-elevated-heading: #f7eef5;
  --fg-dark-elevated-muted: #c4afc1;
  --fg-dark-elevated-link: #ee72e2;
  --fg-dark-elevated-inverse: #f7eef5;
  --brand-dark-accent: #ee72e2;
  --brand-dark-accent-hover: #fbb0f4;
  --brand-dark-on-accent: #170d1a;
  --focus-dark-ring: #ee72e2;
  --focus-ring: var(--focus-dark-ring);
  --border-dark-default: #9a7f96;
  --border-dark-subtle: #4a3350;
}
.bg-surface-base { background: var(--bg-dark-base); --fg-body: var(--fg-dark-base-body); --fg-heading: var(--fg-dark-base-heading); --fg-muted: var(--fg-dark-base-muted); --fg-link: var(--fg-dark-base-link); --fg-inverse: var(--fg-dark-base-inverse); }
.bg-surface-card { background: var(--bg-dark-card); --fg-body: var(--fg-dark-card-body); --fg-heading: var(--fg-dark-card-heading); --fg-muted: var(--fg-dark-card-muted); --fg-link: var(--fg-dark-card-link); --fg-inverse: var(--fg-dark-card-inverse); }
.bg-surface-elevated { background: var(--bg-dark-elevated); --fg-body: var(--fg-dark-elevated-body); --fg-heading: var(--fg-dark-elevated-heading); --fg-muted: var(--fg-dark-elevated-muted); --fg-link: var(--fg-dark-elevated-link); --fg-inverse: var(--fg-dark-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-ring); }

:root {
  --font-head: 'Yrsa', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Noto Sans Sinhala', 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 70rem;
  --measure: 40rem;
  --rail: 16.5rem;
  --ink: var(--fg-dark-card-heading);
  --accent: var(--brand-dark-accent);
  --glow: color-mix(in srgb, var(--brand-dark-accent) 26%, transparent);
  --hair: 1px solid var(--border-dark-subtle);
  --radius: 1rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); margin: 0 0 1.25rem; max-width: 17ch; }

h2[id], h3[id] { scroll-margin-top: 5.5rem; }

a.text-role-link { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a.text-role-link:hover { color: var(--brand-dark-accent-hover); text-decoration-thickness: 2px; }

/* ---------- drawing primitives: light ink, filled magenta zones ---------- */

svg .ink { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .ink.thin, svg .thin { stroke-width: 1; opacity: 0.75; }
svg .dash { stroke-dasharray: none; }
svg .zone { fill: var(--glow); stroke: var(--accent); stroke-width: 1.2; }
svg .zone ellipse, svg .zone circle { fill: var(--glow); }
svg .dot { fill: var(--accent); }
svg .beam { fill: none; stroke: var(--accent); stroke-width: 1; opacity: 0.8; }
svg .target { fill: var(--glow); stroke: none; }
svg .shaft { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
svg .skin-top { fill: none; stroke: var(--ink); stroke-width: 2.2; }
svg .fat circle { fill: color-mix(in srgb, var(--fg-dark-card-muted) 12%, transparent); stroke: none; }
svg .papilla { fill: var(--accent); }

/* ---------- header: phone top bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: var(--hair);
}

.rail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
}

.brand .site-logo { width: 2.4rem; height: 2.4rem; flex: none; }
.brand .wordmark { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.brand:hover .wordmark { color: var(--brand-dark-accent-hover); }

.site-menu { flex: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--brand-dark-on-accent);
  background: var(--brand-dark-accent);
}

.site-menu > summary:hover,
.site-menu[open] > summary { background: var(--brand-dark-accent-hover); color: var(--brand-dark-on-accent); }

.menu-icon {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px var(--brand-dark-accent), 0 0 0 3.5px currentColor;
}

.site-menu[open] > summary .menu-icon { box-shadow: 0 0 0 2px var(--brand-dark-accent-hover), 0 0 0 3.5px currentColor; }

.site-menu[open] > ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.75rem var(--gutter) 1.75rem;
  list-style: none;
  counter-reset: menu;
  background: var(--bg-dark-elevated);
  border-bottom: var(--hair);
}

.site-menu ul ul {
  list-style: none;
  margin: 0 0 0.5rem 2.4rem;
  padding: 0;
}

.site-menu > ul > li { counter-increment: menu; }

.site-menu > ul > li > a {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: var(--hair);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--fg-dark-elevated-heading);
}

.site-menu > ul > li > a::before {
  content: counter(menu, decimal-leading-zero);
  flex: none;
  width: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--fg-dark-elevated-muted);
}

.site-menu ul ul a { display: block; padding: 0.35rem 0; font-size: 0.95rem; text-decoration: none; color: var(--fg-dark-elevated-body); }
.site-menu li a:hover { color: var(--brand-dark-accent-hover); text-decoration: underline; }

.rail-nav, .rail-art { display: none; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }

/* ---------- desktop: side rail ---------- */

@media (min-width: 64rem) {
  html { scroll-padding-top: 1.5rem; }
  h2[id], h3[id] { scroll-margin-top: 1.5rem; }

  body {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    min-height: 100vh;
  }

  .site-header {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: var(--hair);
  }

  .page { grid-column: 2; grid-row: 1; }
  .site-footer { grid-column: 2; grid-row: 2; }

  .site-menu { display: none; }

  .rail-top { display: block; padding: 2rem 1.5rem 1.5rem; }

  .brand { flex-direction: column; align-items: flex-start; gap: 0.9rem; font-size: 1.3rem; line-height: 1.15; }
  .brand .site-logo { width: 3rem; height: 3rem; }

  .rail-nav { display: block; padding: 0 1rem; }

  .site-nav > ul { display: flex; flex-direction: column; counter-reset: rail; }

  .site-nav > ul > li { counter-increment: rail; border-top: var(--hair); }
  .site-nav > ul > li:last-child { border-bottom: var(--hair); }

  .site-nav > ul > li > a.text-role-link,
  .site-nav summary {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.3;
    white-space: nowrap;
    text-decoration: none;
    color: var(--fg-dark-card-heading);
    border-radius: 0.4rem;
  }

  .site-nav > ul > li > a.text-role-link::before,
  .site-nav > ul > li > details > summary::before {
    content: counter(rail, decimal-leading-zero);
    flex: none;
    font-size: 0.72rem;
    color: var(--fg-dark-card-muted);
  }

  .site-nav summary { cursor: pointer; list-style: none; }
  .site-nav summary::-webkit-details-marker { display: none; }

  .site-nav summary::after {
    content: "+";
    margin-left: auto;
    color: var(--brand-dark-accent);
  }

  .site-nav-group[open] > summary::after { content: "\2212"; }

  .site-nav summary:hover,
  .site-nav > ul > li > a.text-role-link:hover {
    color: var(--brand-dark-accent-hover);
    text-decoration: underline;
    background: var(--bg-dark-elevated);
  }

  .site-nav-group[open] > ul {
    margin: 0 0 0.6rem 2.1rem;
    padding: 0.25rem 0 0.25rem 0.75rem;
    border-left: 2px solid var(--brand-dark-accent);
    background: var(--bg-dark-card);
  }

  .site-nav-group > ul a.text-role-link {
    display: block;
    padding: 0.35rem 0.4rem;
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
    color: var(--fg-dark-card-body);
  }

  .site-nav-group > ul a.text-role-link:hover { color: var(--brand-dark-accent-hover); text-decoration: underline; }

  .rail-art { display: block; width: 8rem; height: auto; margin: auto 1.5rem 1.75rem; }
  .rail-art .ra-skin { fill: none; stroke: var(--fg-dark-card-muted); stroke-width: 1.4; }
  .rail-art .ra-skin.thin { stroke-width: 0.9; }
  .rail-art .ra-hair { fill: none; stroke: var(--fg-dark-card-heading); stroke-width: 1.6; stroke-linecap: round; }
  .rail-art .ra-bulb ellipse { fill: var(--brand-dark-accent); }
}

/* ---------- page frame ---------- */

.page { padding-bottom: 5rem; min-width: 0; }

.breadcrumbs {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "\203A"; margin-right: 0.6rem; color: var(--fg-muted); }

/* ---------- body copy ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 2.8rem 0 0.8rem; }
.prose h3 { font-size: 1.35rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1.15rem; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5rem; }
.prose ul > li::marker { color: var(--accent); }
.prose ol > li::marker { font-weight: 600; color: var(--accent); }
.prose strong { font-weight: 700; }

.prose blockquote {
  margin: 1.8rem 0;
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  background: var(--bg-dark-elevated);
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.45;
}

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: var(--hair); vertical-align: top; }
.prose thead th { font-weight: 700; border-bottom: 1px solid var(--border-dark-default); }

.photo-hero, .photo-inline { margin: 2rem 0; }
.photo-hero img, .photo-inline img { display: block; border-radius: var(--radius); }

section[data-section][style] {
  margin: 2.25rem 0;
  padding: clamp(6rem, 18vw, 12rem) clamp(0.75rem, 3vw, 1.5rem) clamp(0.75rem, 3vw, 1.5rem);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
}

section[data-section][style] > .bg-surface-card { padding: clamp(1rem, 3vw, 1.75rem); border-radius: calc(var(--radius) - 0.35rem); }

/* ---------- home: drawings left, copy right ---------- */

.home { max-width: var(--wide); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.5rem) var(--gutter) 0; }

.cover { display: grid; gap: 2rem; }

.cover-title h1 { margin-bottom: 1.5rem; }

.cover-lines { max-width: 32rem; font-size: 1.05rem; color: var(--fg-dark-base-muted); }
.cover-lines p { margin: 0 0 1rem; }
.cover-lines p:first-child { font-size: 1.15rem; color: var(--fg-dark-base-body); }

.cover-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 1.5rem;
}

.plate { margin: 0; padding: clamp(0.5rem, 2vw, 1rem); border-radius: var(--radius); background: var(--bg-dark-base); }
.plate svg { display: block; width: 100%; height: auto; max-height: 28rem; }

.entry { margin: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem); }

.entry-list { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: entry; }

.entry-item {
  counter-increment: entry;
  display: grid;
  grid-template-columns: 2.25rem 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: var(--hair);
}

.entry-item::before {
  content: counter(entry, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}

.entry-icon { width: 2.5rem; height: 2.5rem; }
.entry-icon .ei-line { fill: none; stroke: var(--fg-dark-base-heading); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.entry-icon .ei-hit { fill: var(--glow); stroke: var(--accent); stroke-width: 1.2; }

.entry-link { font-family: var(--font-head); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--fg-dark-base-heading); text-decoration: none; }
a.entry-link.text-role-link:hover { color: var(--brand-dark-accent-hover); text-decoration: underline; }

.home-body { margin-top: 1rem; }

@media (min-width: 44rem) {
  .entry-list { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

@media (min-width: 60rem) {
  .cover { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
  .cover-plates { order: -1; }
}

/* ---------- topic hub: stepped ---------- */

.hub { max-width: var(--wide); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0; }

.hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.hub-title h1 { margin: 0; }

.hub-glyph { width: 7rem; height: auto; flex: none; padding: 0.75rem; border-radius: var(--radius); background: var(--bg-dark-card); }
.hub-glyph .hg-ink, .hub-glyph .hg-skin { fill: none; stroke: var(--fg-dark-card-heading); stroke-width: 1.6; stroke-linecap: round; }
.hub-glyph .hg-zone { fill: var(--glow); stroke: var(--accent); stroke-width: 1.2; }

.steps { margin: 3rem 0 2rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; }

.steps-label { margin: 0 0 1.25rem; font-family: var(--font-head); font-weight: 500; font-size: 1.5rem; line-height: 1.2; }

.steps-items ul { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.steps-items li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  max-width: 34rem;
  margin: 0 0 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: 0.75rem;
  background: var(--bg-dark-base);
}

.steps-items li::before {
  content: counter(step, decimal-leading-zero);
  flex: none;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.steps-items li:nth-child(2) { margin-left: 1rem; }
.steps-items li:nth-child(3) { margin-left: 2rem; }
.steps-items li:nth-child(n+4) { margin-left: 3rem; }

.steps-items a.text-role-link { font-weight: 500; line-height: 1.35; }

.hub-key { margin: 2rem 0 0; padding: 1.1rem 1.25rem; border-radius: var(--radius); }
.hub-key-label { margin: 0 0 0.7rem; font-size: 0.9rem; }
.hub-key-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.hub-key-list li { display: flex; align-items: center; gap: 0.45rem; }
.hub-key-list a.text-role-link { font-weight: 500; }

.key-icon { width: 1.4rem; height: 1.4rem; flex: none; fill: none; stroke: var(--fg-dark-card-heading); stroke-width: 1.5; stroke-linecap: round; }
.key-icon .kz { fill: var(--glow); stroke: var(--accent); }

@media (min-width: 48rem) {
  .steps-items li:nth-child(2) { margin-left: 3rem; }
  .steps-items li:nth-child(3) { margin-left: 6rem; }
  .steps-items li:nth-child(n+4) { margin-left: 9rem; }
  .hub-glyph { width: 9rem; }
}

/* ---------- article: diagram panel beside text ---------- */

.article { max-width: var(--wide); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0; }

.article-title { margin-bottom: 2.25rem; }
.article-title h1 { max-width: 22ch; margin: 0; }

.article-split { display: grid; gap: 2rem; }

.zone-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: 1.25rem;
}

.zone-fig { margin: 0; padding: 0.5rem; border-radius: 0.75rem; background: var(--bg-dark-base); }
.zone-fig svg { display: block; width: 100%; height: auto; }
.zone-fig svg .ink { stroke: var(--fg-dark-base-heading); }

.zone-caption { grid-column: 1 / -1; margin: 0.25rem 0.25rem 0; font-size: 0.85rem; line-height: 1.45; }

@media (min-width: 60rem) {
  .article-split { grid-template-columns: minmax(0, 1fr) 14rem; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }
  .zone-panel { order: 2; grid-template-columns: 1fr; position: sticky; top: 1.5rem; }
}

/* ---------- about: one column ---------- */

.about { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.75rem, 4vw, 3.5rem) var(--gutter) 0; }
.handpiece { display: block; width: 100%; max-width: 16rem; height: auto; margin-bottom: 1.75rem; padding: 0.75rem; border-radius: var(--radius); background: var(--bg-dark-card); }
.handpiece .ink { stroke: var(--fg-dark-card-heading); }
.about-title { margin-bottom: 1.75rem; }
.about-title h1 { margin: 0; }

/* ---------- contact: grid ---------- */

.contact { max-width: var(--wide); margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 0; }

.contact-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.25rem; }
.contact-head h1 { margin: 0; }

.contact-icon { width: 3.25rem; height: 3.25rem; flex: none; padding: 0.4rem; border-radius: 50%; background: var(--bg-dark-card); }
.contact-icon .ci-line { fill: none; stroke: var(--fg-dark-card-heading); stroke-width: 1.8; stroke-linecap: round; }
.contact-icon .ci-line.thin { stroke-width: 1.1; }
.contact-icon .ci-bulb { fill: var(--glow); stroke: var(--accent); stroke-width: 1.4; }

.contact-grid { display: grid; gap: 2rem; }

.ask-form { padding: clamp(1.1rem, 3vw, 2rem); border-radius: 1.25rem; }

.form-grid { display: grid; gap: 1rem; }

.field { display: grid; gap: 0.35rem; }

.field label { font-weight: 600; font-size: 0.88rem; }

.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: inherit;
  background: var(--bg-dark-base);
  border: 1px solid var(--border-dark-default);
  border-radius: 0.6rem;
}

.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--brand-dark-accent); }

.ask-button {
  margin-top: 1.4rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--brand-dark-on-accent);
  background: var(--brand-dark-accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.ask-button:hover { background: var(--brand-dark-accent-hover); color: var(--brand-dark-on-accent); }

@media (min-width: 40rem) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
}

/* ---------- thank you: one column ---------- */

.thanks { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.75rem, 4vw, 3.5rem) var(--gutter) 0; }
.thanks-title h1 { margin-bottom: 1.25rem; }

.thanks-cards { display: grid; gap: 1rem; margin-top: 2.25rem; }

.tcard { padding: 1.25rem 1.35rem 1.4rem; border-radius: 1.25rem; }
.tcard-art { display: block; width: 6rem; height: auto; margin-bottom: 0.75rem; }
.tcard-art .ink { stroke: var(--fg-dark-card-heading); }
.tcard-label { margin: 0 0 0.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tcard-links { list-style: none; margin: 0; padding: 0; }
.tcard-links li { padding: 0.45rem 0; border-top: var(--hair); }
.tcard-links a.text-role-link { font-family: var(--font-head); font-size: 1.15rem; line-height: 1.3; }

@media (min-width: 40rem) {
  .thanks-cards { grid-template-columns: 1fr 1fr; }
}

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

.footer-inner {
  display: grid;
  gap: 1.25rem;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 2.25rem var(--gutter) 2.75rem;
}

.footer-name { margin: 0 0 0.35rem; font-family: var(--font-head); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.footer-line { margin: 0; max-width: 34rem; font-size: 0.9rem; }
.footer-client { margin: 0; font-size: 0.92rem; }

@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
