/* Iryna Yefremenko — site styles
   Palette: cool mist and sage with deep pine; the only warmth on the page is the portrait (and one copper sun). */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3F4F0;
  --mist: #E4E9E4;
  --white: #FBFBF9;
  --pine: #1B302C;
  --pine-2: #27443E;
  --ink: #1D2724;
  --muted: #55625E;
  --line: #CDD4CF;
  --line-mist: #C4CDC7;
  --lake: #6F8E88;
  --copper: #B0663F;
  --on-dark: #EEF2EE;
  --on-dark-muted: #AFBFB9;
  --line-dark: rgba(238, 242, 238, 0.16);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(84px, 11vw, 148px);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p, figure, blockquote { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
p, li, dd { text-wrap: pretty; }

::selection { background: #CFDCD7; color: var(--ink); }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--pine);
  color: var(--on-dark);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Inline text links */
.section-head p a,
.aside-note a,
.small-print a,
.faq-answer a,
.doc a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--lake);
  transition: text-decoration-color 0.2s;
}
.section-head p a:hover,
.aside-note a:hover,
.small-print a:hover,
.faq-answer a:hover,
.doc a:hover { text-decoration-color: currentColor; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--pine-2); }
.btn-outline {
  border-color: rgba(27, 48, 44, 0.32);
  color: var(--pine);
}
.btn-outline:hover { border-color: var(--pine); background: rgba(255, 255, 255, 0.5); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 0.94rem; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 240, 0.9);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled,
.site-header[data-open] { border-bottom-color: var(--line); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark-name {
  font-family: var(--serif);
  font-size: 1.32rem;
  letter-spacing: -0.008em;
}
.wordmark-role {
  font-size: 0.8rem;
  color: var(--muted);
}

.site-nav { display: flex; gap: clamp(20px, 2.4vw, 34px); }
.site-nav a {
  font-size: 0.97rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-lines {
  position: absolute;
  left: 12px; right: 12px; top: 50%;
}
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.menu-toggle-lines::before { top: -4px; }
.menu-toggle-lines::after { top: 3px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-3.5px) rotate(-45deg); }

.label-short { display: none; }

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

.hero { padding-top: clamp(32px, 6vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.5rem, 1.2rem + 3.8vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 28px;
  max-width: 33em;
  font-size: clamp(1.08rem, 1rem + 0.3vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
}

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

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 3px;
  background: var(--mist);
}

.hero-base { margin-top: clamp(24px, 4vw, 52px); }

.horizon {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 112;
  overflow: visible;
}
.horizon-line {
  fill: none;
  stroke: var(--lake);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.horizon-sun { fill: var(--copper); }

@media (prefers-reduced-motion: no-preference) {
  .horizon-line {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: horizon-draw 3s cubic-bezier(0.45, 0, 0.2, 1) 0.3s forwards;
  }
  .horizon-sun {
    opacity: 0;
    transform: translateY(6px);
    transform-box: fill-box;
    animation: horizon-rise 1.4s ease-out 2.2s forwards;
  }
}
@keyframes horizon-draw { to { stroke-dashoffset: 0; } }
@keyframes horizon-rise { to { opacity: 1; transform: none; } }

.hero-facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
  padding-top: 26px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}
.hero-facts strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

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

.section { padding-block: var(--section); }
.section-mist { background: var(--mist); }
.section-dark { background: var(--pine); color: var(--on-dark); }

.hero + .section { padding-top: clamp(96px, 12vw, 168px); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px clamp(40px, 6vw, 104px);
  align-items: start;
}

.section-head h2,
.formats-head h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2.15rem, 1.5rem + 2.1vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head p {
  margin-top: 22px;
  max-width: 26em;
  color: var(--muted);
}

@media (min-width: 901px) {
  .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
}

.h3-serif,
.about-columns h3,
.credentials h3,
.start h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* ---------- Issues ---------- */

.issue-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px clamp(32px, 4vw, 56px);
}
.issue-group h3 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pine);
}
.issue-list { list-style: none; }
.issue-list li {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.05rem + 0.4vw, 1.36rem);
  line-height: 1.32;
  letter-spacing: -0.006em;
}
.issue-list li:last-child { border-bottom: 1px solid var(--line); }

.aside-note {
  margin-top: 48px;
  color: var(--muted);
}

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

.prose-lead p {
  max-width: 31em;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.75vw, 1.65rem);
  line-height: 1.42;
  letter-spacing: -0.008em;
}
.prose-lead p + p { margin-top: 0.75em; }

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px clamp(32px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 80px);
}

.plain-list { list-style: none; }
.plain-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line-mist);
  line-height: 1.5;
}
.plain-list li:last-child { border-bottom: 1px solid var(--line-mist); }

.credentials { margin-top: clamp(80px, 10vw, 128px); }
.credentials-title {
  padding-top: 28px;
  border-top: 1px solid var(--line-mist);
}

.cred-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px clamp(16px, 2vw, 28px);
}
.cred {
  display: block;
  text-decoration: none;
  color: inherit;
}
.cred-thumb {
  display: block;
  aspect-ratio: 5 / 4;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line-mist);
  border-radius: 3px;
  transition: border-color 0.2s;
}
.cred-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cred:hover .cred-thumb { border-color: var(--lake); }
.cred-text { display: block; margin-top: 14px; }
.cred-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
}
.cred-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Approach ---------- */

.method {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px clamp(24px, 3vw, 40px);
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.method:last-child { border-bottom: 1px solid var(--line); }
.method dt {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.006em;
}
.method dd { color: var(--muted); }

.method-feature {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0 36px;
  border-top: 0;
}
.method-feature dt { font-size: clamp(1.55rem, 1.3rem + 0.8vw, 1.95rem); line-height: 1.2; }
.method-feature dd {
  max-width: 36em;
  font-size: 1.12rem;
  color: var(--ink);
}

.expect { margin-top: clamp(96px, 12vw, 152px); }
.h2-sub { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem) !important; }

.expect-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px clamp(32px, 4vw, 56px);
}
.expect-list li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.expect-list h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.36rem;
  line-height: 1.25;
  letter-spacing: -0.006em;
}
.expect-list p { color: var(--muted); }
.expect-list .expect-close p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1.1rem + 0.35vw, 1.36rem);
  line-height: 1.42;
  color: var(--ink);
}

/* ---------- Formats (dark) ---------- */

.section-dark :focus-visible { outline-color: var(--on-dark); }

.formats-head { max-width: 40rem; }
.formats-head p {
  margin-top: 22px;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.format {
  padding: 40px clamp(24px, 3vw, 44px) 0;
  border-left: 1px solid var(--line-dark);
}
.format:first-child { padding-left: 0; border-left: 0; }
.format:last-child { padding-right: 0; }

.format h3 {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.format-span {
  margin-top: 22px;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}
.format-num {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 2.4rem + 2.2vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--on-dark);
}
.format-desc {
  margin-top: 26px;
  color: var(--on-dark-muted);
}
.format h4 {
  margin-top: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--on-dark);
}
.format ul { list-style: none; margin-top: 10px; }
.format li {
  padding: 10px 0;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  line-height: 1.5;
}
.format-result {
  margin-top: 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.14rem;
  line-height: 1.45;
  color: var(--on-dark);
}

/* ---------- Fees ---------- */

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px clamp(24px, 4vw, 56px);
}
.price {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.price-amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 2.2rem + 2vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-label {
  margin-top: 12px;
  color: var(--muted);
}

.details { margin-top: 56px; }
.details > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.details > div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-weight: 600; font-size: 0.97rem; }

.small-print {
  margin-top: 20px;
  font-size: 0.94rem;
  color: var(--muted);
}

.start { margin-top: clamp(72px, 9vw, 112px); }
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px clamp(32px, 4vw, 56px);
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  margin-bottom: 18px;
  border: 1px solid var(--lake);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1;
  padding-top: 2px;
  color: var(--pine);
}
.steps h4 {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.25;
}
.steps p { color: var(--muted); }

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

.faq details { border-top: 1px solid var(--line-mist); }
.faq details:last-child { border-bottom: 1px solid var(--line-mist); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.18rem, 1.08rem + 0.35vw, 1.34rem);
  line-height: 1.3;
  letter-spacing: -0.006em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px; height: 14px;
  margin-top: 0.4em;
  color: var(--pine);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  transition: transform 0.3s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--pine); }

.faq-answer {
  max-width: 40em;
  padding-bottom: 28px;
  color: var(--muted);
}
.faq-answer p + p { margin-top: 0.8em; }

@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ---------- Closing ---------- */

.quote {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.quote blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px clamp(28px, 4vw, 56px);
  align-items: start;
  max-width: 62rem;
  margin: clamp(80px, 10vw, 128px) auto 0;
  padding: clamp(32px, 5vw, 64px);
  background: var(--mist);
  border-radius: 4px;
}
.cta-avatar {
  width: clamp(88px, 10vw, 128px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}
.cta h2 {
  font-family: var(--serif);
  font-weight: 340;
  font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-copy > p {
  margin-top: 16px;
  max-width: 34em;
  color: var(--muted);
}
.cta .actions { margin-top: 32px; }

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

.site-footer {
  padding: 72px 0 32px;
  background: var(--pine);
  color: var(--on-dark-muted);
  font-size: 0.97rem;
}
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: 40px;
}
.footer-name {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--on-dark);
}
.footer-brand p:not(.footer-name) { max-width: 24em; }
.footer-heading {
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-dark);
}
.footer-links { list-style: none; }
.footer-links li + li { margin-top: 6px; }
.footer-links a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--on-dark); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  max-width: min(92vw, 1100px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(16, 28, 26, 0.86);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
}
.lightbox-caption {
  max-width: 40em;
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--on-dark);
}
.lightbox-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox :focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lightbox-in 0.25s ease-out; }
}
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.98); } }

/* ---------- Documents (agreement, confidentiality) ---------- */

.doc { padding-block: clamp(48px, 8vw, 104px) var(--section); }
.doc-inner { max-width: 44rem; }
.doc-back {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--muted) !important;
  text-decoration: none !important;
}
.doc-back:hover { color: var(--ink) !important; }
.doc h1 {
  font-family: var(--serif);
  font-weight: 330;
  font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.doc-intro {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
}
.doc h2 {
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.25;
}
.doc p + p,
.doc p + ul,
.doc ul + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc ul li + li { margin-top: 6px; }
.doc ul li::marker { color: var(--lake); }
.clause { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; }
.clause + .clause { margin-top: 12px; }
.clause-no { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-sign {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-header[data-open] .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
  }
  .site-nav a:first-child { border-top: 0; }
  .menu-toggle { display: block; }
}

@media (max-width: 1060px) {
  .cred-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-portrait { order: -1; }
  .hero-portrait img { aspect-ratio: 5 / 4; object-position: 50% 26%; }
  .hero .actions { margin-top: 32px; }

  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; }
  .hero-facts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-facts li:last-child { border-bottom: 0; }
  .hero-facts strong { display: inline; font-size: 1.2rem; margin-right: 4px; }

  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .section-head p { max-width: 34em; }

  .formats { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .format,
  .format:first-child,
  .format:last-child {
    padding: 40px 0 48px;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }
  .format:last-child { padding-bottom: 0; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .issue-groups,
  .about-columns,
  .expect-list,
  .steps { grid-template-columns: minmax(0, 1fr); }
  .issue-groups { gap: 44px; }
  .expect-list { gap: 32px; }
  .steps { gap: 32px; }

  .cred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .cred-thumb { padding: 10px; }
  .cred-title { font-size: 1.02rem; }

  .method { grid-template-columns: minmax(0, 1fr); }
  .method-feature { padding-top: 0; }

  .details > div { grid-template-columns: minmax(0, 1fr); }

  .cta { grid-template-columns: minmax(0, 1fr); }
  .cta .actions { flex-direction: column; align-items: stretch; }

  .footer-base { flex-direction: column; }
}

@media (max-width: 560px) {
  .wordmark-role { display: none; }
  .wordmark-name { font-size: 1.22rem; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .horizon {
    aspect-ratio: auto;
    height: 72px;
  }
}

@media (max-width: 400px) {
  .label-long { display: none; }
  .label-short { display: inline; }
  .btn-small { padding: 0 16px; }
  .btn { white-space: normal; }
}
.doc-actions { margin-top: 36px; }
.hero-base { overflow: hidden; }
