@font-face {
  font-family: Manrope;
  src: url(manrope-cyrillic.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope;
  src: url(manrope-latin.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --canvas: #201c20;
  --paper: #f4eceb;
  --muted: #c8b9bd;
  --accent: #dfa9b9;
  --line: #57444d;
  --folder: #2b252b;
  --folder-ink: #28191e;
  --gutter: max(.9rem, 1.64vw);
  --art-field: #64364b;
  --small: max(.875rem, .99vw);
  --copy: max(1rem, 1.28vw);
  --section-gap: max(3rem, 6vw);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--paper); font-size: var(--copy); line-height: 1.55; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h2 { font-size: max(2.35rem, 4.3vw); font-weight: 650; letter-spacing: -.057em; }
h3 { font-weight: 680; letter-spacing: -.035em; }
.tone { color: var(--accent); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--folder-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
.shell { padding-inline: var(--gutter); }
[id] { scroll-margin-top: 1.25rem; }
.skip-link:not(:focus-visible) { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link:focus-visible { position: absolute; top: .65rem; left: var(--gutter); background: var(--paper); color: var(--canvas); z-index: 2; padding: .5rem 1rem; }
.ink-link { color: var(--accent); font-weight: 670; text-decoration: underline; text-underline-offset: .26em; }

.case-file {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.28fr);
  align-items: center;
  gap: max(1.4rem, 4vw);
  padding-block: max(2rem, 4.1vw);
  background: var(--folder);
}
.case-copy { max-width: 50ch; min-width: 0; }
.case-meta, .case-detail, .case-facts dd, .service-name p, .pricing-note, .about-copy { color: var(--muted); }
.case-meta, .case-detail, .case-facts dd, .service-name p, .pricing-note, .footer { font-size: var(--small); }
.case-copy h3 { font-size: max(2.3rem, 3.95vw); margin: .27em 0 .38em; }
.case-copy .ink-link { display: inline-block; margin-top: .8em; }
.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75em;
  margin-block: 1em;
  padding-block: .62em;
  border-block: 1px solid var(--line);
}
.case-facts dt { font-size: max(1.9rem, 2.6vw); font-weight: 680; letter-spacing: -.045em; line-height: 1; }
.case-facts dd { margin-top: .3em; }
.case-shot { width: 100%; height: auto; background: var(--art-field); }

.section { margin-block-start: var(--section-gap); }
.section-title { margin-bottom: max(1.25rem, 1.85vw); }
h3.section-title { font-size: max(1.68rem, 2.8vw); }
.work { padding-block-start: max(1.75rem, 3.65vw); }
.examples, .ledger { display: grid; gap: max(.9rem, 1.5vw); }
.examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.concept-still { min-width: 0; background: var(--folder); }
.concept-still img { width: 100%; height: auto; }
.concept-still figcaption { padding: .64em .8em; font-weight: 650; }

.ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: max(1rem, 1.6vw);
  border-radius: .3rem;
  background: var(--folder);
}
.service-name h3 { font-size: max(1.32rem, 2.05vw); }
.service-name p { margin-top: .42em; }
.included { padding-inline-start: 1.12em; }
.included li + li { margin-top: .23em; }
.included li::marker { color: var(--accent); }
.service-quote { margin-top: auto; padding-top: .75em; border-top: 1px solid var(--line); }
.price { font-size: max(1.65rem, 2.65vw); font-weight: 650; letter-spacing: -.055em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font-size: .48em; color: var(--muted); letter-spacing: normal; }
.service-quote .ink-link { display: inline-block; margin-top: .42em; font-size: var(--small); }
.pricing-note { margin-top: .9em; }

.about { display: grid; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: max(1rem,2.8vw); padding-block: max(1.5rem,3.3vw); border-top: 1px solid var(--line); }
.about-copy { max-width: 59ch; }
.about-copy p + p { margin-top: .65em; }
.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .45rem 1rem; padding-block: .8em; border-top: 1px solid var(--line); }

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .window-title, .terminal-title { animation: title-in 1.3s cubic-bezier(.19,.65,.28,1) both; }
  .terminal-title { animation-delay: .14s; }
  .cover-aside, .cover-contact > * { animation: page-in 1.2s .19s cubic-bezier(.2,.55,.28,1) both; }
  .cover-contact > * { --entry-offset: min(1.2rem, 2svh); }
  .awaiting-reading-zone { opacity: .28; transform: translateY(1.2rem); }
  .in-reading-zone { animation: page-in 1.15s cubic-bezier(.22,.55,.27,1) both; }
  .awaiting-reading-zone:focus-within, .in-reading-zone:focus-within, .cover-link:focus-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }
  @keyframes title-in {
    from { opacity: .15; transform: translateY(.32em); clip-path: inset(0 -.1em 28% -.1em); }
    to { opacity: 1; transform: none; clip-path: inset(-.18em -.1em -.2em -.1em); }
  }
  @keyframes page-in {
    from { opacity: .28; transform: translateY(var(--entry-offset, 1.2rem)); }
    to { opacity: 1; transform: none; }
  }
}

@media (hover: hover) {
  .mast-nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
  .ink-link:hover { color: var(--paper); }
}
@media (max-width: 49.5rem) {
  .case-file, .about { grid-template-columns: minmax(0, 1fr); }
  .case-copy { max-width: 58ch; }
  .ledger { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .examples { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  :root { --canvas: white; --paper: black; --muted: #333; --accent: #633d2a; --folder: white; --line: #777; }
  .mast-nav, .footer a:last-child { display: none; }
  .case-file, .service, .concept-still { break-inside: avoid; }
}
