/* Datum Defence Group: every page except the homepage. Loaded after home.css, which brings the
   tokens, the Fixel faces, the frame, the menu, buttons, links and the footer, so a page here and
   the homepage share one stylesheet in the visitor's cache.

   The plan, in short:
   - The studio is the page. No full-width colour bands: content sits on the contour studio,
     grouped by space and by light plates (the homepage's service cards).
   - At most one ink plate per page, for the thing that page most needs you to see, as the
     homepage has one dark scene.
   - Orange marks only: the datum mark at the foot of every page, and Datum's corrections.
   - Lists take a dash. Numbers only where the content really is a sequence.
   - One moment of motion: the page head rises in as the page opens. The menu wipes as on the
     homepage. Nothing else moves by itself.
   Class names all start with pg- so the homepage's own rules can never reach in. */

:root {
  --pg-max: 1560px;                          /* content measure on very wide screens */
  --plate: rgba(239, 237, 230, 0.5);         /* light plate: the homepage's service card */
  --plate-line: rgba(21, 24, 27, 0.07);
  --hair: rgba(21, 24, 27, 0.2);             /* rules between rows of a list */
  --paper: #fbfaf7;                          /* a page of a document (the datasheet's paper) */
  --radius: 20px;
  --radius-l: 24px;
  --pad: clamp(18px, 1.8vw, 28px);           /* inside a plate */
  --sticky-top: calc(var(--frame-top) + 108px); /* clear of the veil's fade */
  --mark-h: clamp(112px, 15vw, 220px);       /* the datum mark at the foot of the page */
}

html { scroll-padding-top: calc(var(--frame-top) + 112px); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.pg { position: relative; z-index: 1; font-size: 1rem; line-height: 1.6; }
:where(.pg) p { margin: 0 0 1em; max-width: 40rem; }
:where(.pg) p:where(:last-child) { margin-bottom: 0; }
:where(.pg) :where(h1, h2, h3) { -webkit-hyphens: manual; hyphens: manual; text-wrap: balance; }
.pg b, .pg strong { font-weight: 500; }
em[lang="uk"] { font-style: normal; color: var(--graphite); } /* a Ukrainian term quoted in English text */
:where(.pg) a:where(:not(.btn)) { text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:where(.pg) a:where(:not(.btn)):hover { text-decoration-thickness: 2px; }
.pg a[href^="mailto:"], .pg-prose a { overflow-wrap: anywhere; }
button.btn { border: 0; cursor: pointer; }
.btn { text-align: center; }

/* ------------------------------------------------------------------ type */

:where(.pg) h2 { margin: 0; max-width: 12em; font: 300 clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
:where(.pg) h3 { margin: 0 0 10px; font: 400 clamp(1.15rem, 0.95rem + 0.6vw, 1.5rem)/1.15 var(--font-display); letter-spacing: -0.015em; }
:where(.pg) h4, .pg-label { margin: 0 0 10px; font: 500 var(--step--1)/1.3 var(--font-text); color: var(--graphite); }
.pg-lede { font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.pg-small { font-size: var(--step-0); line-height: 1.5; }
.pg-muted { color: var(--graphite); }
.pg-mt-s { margin-top: 16px !important; }
.pg-mt-m { margin-top: 32px !important; }
.pg-mt-l { margin-top: 56px !important; }
.pg-mb-m { margin-bottom: 32px !important; }

/* a list takes a dash, as on the homepage */
.pg-list, .pg-prose ul { list-style: none; margin: 0 0 1.2em; padding: 0; }
.pg-list:last-child { margin-bottom: 0; }
.pg-list li, .pg-prose ul li { position: relative; padding-left: 20px; max-width: 40rem; }
.pg-list li + li, .pg-prose ul li + li { margin-top: 8px; }
.pg-list li::before, .pg-prose ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 9px; height: 1px; background: currentColor; }
.pg-plain { list-style: none; margin: 0; padding: 0; }
.pg-plain li + li { margin-top: 4px; }

.pg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin: 32px 0 0; }
.pg-actions:first-child { margin-top: 0; }

/* ------------------------------------------------------------- page head */

.pg-head { position: relative; display: grid; gap: 40px clamp(32px, 5vw, 88px); align-items: end;
  max-width: calc(var(--pg-max) + var(--gutter-l) + var(--gutter-r));
  padding: calc(var(--frame-top) + clamp(96px, 16vh, 168px)) var(--gutter-r) clamp(48px, 8vh, 96px) var(--gutter-l); }
.pg-crumb { margin: 0 0 18px; font-size: var(--step--1); font-weight: 500; color: var(--graphite); }
.pg-crumb a { color: inherit; }
.pg-title { margin: 0; max-width: 13em; font: 300 clamp(2.5rem, 1.25rem + 4.1vw, 5.6rem)/1 var(--font-display); letter-spacing: -0.03em; }
/* Ukrainian titles have longer words («Конфіденційність»), so on the narrowest phones they start smaller */
html[lang="uk"] .pg-title { font-size: clamp(2.1rem, 1.1rem + 4.3vw, 5.6rem); }
.pg-head__lede { margin: clamp(20px, 3vh, 32px) 0 0; max-width: 34em; font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.pg-head .pg-actions { margin-top: clamp(26px, 4vh, 36px); }

/* A service's own page opens with the drawing from its card on the homepage, on the ink plate
   that card turns into when it is chosen there. */
.pg-head__plate { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: var(--radius-l); background: var(--ink); color: var(--bone); overflow: hidden; }
.pg-head__art { position: absolute; left: 17%; top: 13%; width: 66%; aspect-ratio: 240 / 168; }
.pg-head__art svg, .pg-ref__art svg, .pg-art svg { width: 100%; height: 100%; overflow: visible; }
.pg-head__tag { position: absolute; left: var(--pad); bottom: calc(var(--pad) - 4px); margin: 0; font-size: var(--step-0); color: rgba(239, 237, 230, 0.62); }
@media (min-width: 1000px) {
  .pg-head--plate { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pg-head--plate .pg-title { font-size: clamp(2.5rem, 1.1rem + 3.4vw, 4.8rem); }
}
@media (max-width: 999px) {
  .pg-head__plate { aspect-ratio: 16 / 11; max-width: 34rem; }
}

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

.pg-section { position: relative; padding: clamp(40px, 6.5vh, 84px) var(--gutter-r) clamp(40px, 6.5vh, 84px) var(--gutter-l); }
.pg-section--tight { padding-block: clamp(28px, 4.5vh, 56px); }
.pg-wrap { max-width: var(--pg-max); }

.pg-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px clamp(32px, 6vw, 112px); align-items: start; }
.pg-sticky { position: sticky; top: var(--sticky-top); }
.pg-split > * > h2 + p, .pg-sticky > h2 + p { margin-top: 16px; }

.pg-sechead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 6vw, 112px); align-items: end; margin-bottom: clamp(28px, 4.5vh, 52px); }
.pg-sechead p { margin: 0; max-width: 34em; font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }

/* light plates: one per item in a group */
.pg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.pg-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-card, .pg-note, .pg-figure, .pg-formplate, .pg-table, .pg-plan, .pg-ref__art, .pg-art {
  border-radius: var(--radius); background: var(--plate); box-shadow: inset 0 0 0 1px var(--plate-line); }
.pg-card { padding: var(--pad); }
.pg-card h3 { margin-bottom: 10px; }
.pg-card p { font-size: var(--step-0); line-height: 1.5; }
.pg-note { padding: var(--pad); max-width: 46rem; }
.pg-note p { font-size: var(--step-0); line-height: 1.55; }

/* a section set apart on a light plate (where the page's ink plate is already used) */
.pg-section--plate > .pg-wrap { padding: clamp(24px, 3.6vw, 56px); border-radius: var(--radius-l); background: var(--plate); box-shadow: inset 0 0 0 1px var(--plate-line); }

/* The one ink plate on a page */
.pg-section--ink > .pg-wrap { padding: clamp(28px, 4.5vw, 72px); border-radius: var(--radius-l); background: var(--ink); color: var(--bone); }
.pg-section--ink .pg-muted, .pg-section--ink .pg-label, .pg-section--ink h4 { color: rgba(239, 237, 230, 0.66); }
.pg-section--ink .pg-card { background: rgba(239, 237, 230, 0.06); box-shadow: inset 0 0 0 1px rgba(239, 237, 230, 0.1); }
.pg-section--ink .btn { background: var(--bone); color: var(--ink); }
.pg-section--ink .btn:hover { background: #fff; }
.pg-section--ink .text-link { color: var(--bone); }
.pg-section--ink :focus-visible { outline-color: var(--bone); }

/* ------------------------------------------------------- figures, tables */

.pg-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.pg-figure { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: clamp(140px, 15vw, 210px); padding: var(--pad); }
/* proportional figures: Fixel's tabular zero is slashed */
.pg-figure__num { display: block; font: 300 clamp(2.6rem, 1.5rem + 3.2vw, 4.6rem)/0.95 var(--font-display); letter-spacing: -0.03em; }
.pg-figure__num small { margin-left: 6px; font-size: 0.36em; font-weight: 400; letter-spacing: -0.005em; }
.pg-figure__label { display: block; max-width: 22em; font-size: var(--step-0); line-height: 1.45; color: var(--graphite); }

.pg-table { overflow-x: auto; padding: 4px var(--pad) 8px; }
.pg-table table { width: 100%; border-collapse: collapse; font-size: var(--step-0); line-height: 1.5; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 16px 22px 16px 0; border-bottom: 1px solid var(--hair); }
.pg-table th:last-child, .pg-table td:last-child { padding-right: 0; }
.pg-table tbody tr:last-child td { border-bottom: 0; }
.pg-table th { font-weight: 500; font-size: var(--step--1); color: var(--graphite); }
.pg-table td:first-child { width: 20%; font-weight: 500; }
/* phones: each row becomes a short block, its column names written in */
@media (max-width: 719px) {
  .pg-table { padding-block: 2px; }
  .pg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair); }
  .pg-table tbody tr:last-child { border-bottom: 0; }
  .pg-table td, .pg-table td:first-child { display: block; width: auto; padding: 0; border: 0; }
  .pg-table td + td { margin-top: 10px; }
  .pg-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: var(--step--1); font-weight: 500; color: var(--graphite); }
  .pg-table td:first-child { font: 400 1.15rem/1.2 var(--font-display); }
  .pg-table td:first-child::before { display: none; }
}

/* A priority in a teardown is Datum's markup, so it takes the datasheet's note mark */
.pg-flag { display: inline-flex; align-items: center; gap: 7px; font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.pg-flag::before { content: ""; width: 9px; height: 8px; background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

/* ------------------------------------------- the sample report (work.html) */

/* The sample teardown is shown as the report itself: paper pages laid out like Datum's real
   teardown PDFs (running header with the mark, sections, findings with their priority, page
   numbers), on an ink plate like a document open in a viewer. It is the page's one ink plate. */
.pg-report { max-width: 1100px; padding: clamp(12px, 2.6vw, 40px); border-radius: var(--radius-l); background: var(--ink); color: var(--bone); }
.pg-report__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; max-width: 880px; margin: 4px auto clamp(14px, 2vw, 26px); padding: 0 4px; }
.pg-report__label { margin: 0 !important; font-size: var(--step-0); font-weight: 500; white-space: nowrap; }
.pg-report__label::before { content: ""; display: inline-block; width: 10px; height: 9px; margin-right: 10px; vertical-align: 0.04em;
  background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pg-report__note { flex: 1 1 24rem; margin: 0 !important; max-width: 46rem; font-size: var(--step--1); line-height: 1.5; color: rgba(239, 237, 230, 0.66); }
.pg-report__note strong { color: var(--bone); }
.pg-report__pages { display: grid; gap: clamp(12px, 2vw, 28px); justify-items: center; }
.pg-page { position: relative; width: 100%; max-width: 880px; padding: clamp(16px, 3.4vw, 56px) clamp(16px, 4.4vw, 68px) clamp(14px, 2.4vw, 32px); border-radius: 2px;
  background: var(--paper); color: var(--ink); font-size: var(--step-0); line-height: 1.55;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 20px 44px -14px rgba(0, 0, 0, 0.55); }
.pg-page p { max-width: 44rem; }
.pg-page__head, .pg-page__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.75rem; line-height: 1.3; color: var(--graphite); }
.pg-page__head { padding-bottom: 12px; margin-bottom: clamp(24px, 3.6vw, 48px); border-bottom: 1px solid var(--ink); }
.pg-page__head > span:last-child { text-align: right; }
.pg-page__foot { padding-top: 12px; margin-top: clamp(28px, 3.6vw, 48px); border-top: 1px solid #e3e1da; }
.pg-page__brand { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--ink); }
.pg-page__brand svg { width: auto; height: 22px; }
.pg-page__brand span { font: 400 11px/1 var(--font-display); letter-spacing: 0.42em; margin-right: -0.42em; }
.pg-page__kind { margin: 0 0 10px !important; font-size: var(--step--1); font-weight: 500; color: var(--graphite); }
.pg-page__title { margin: 0; max-width: none; font: 300 clamp(2.6rem, 1.4rem + 4vw, 4.8rem)/1 var(--font-display); letter-spacing: -0.03em; }
.pg-page__sub { margin: 14px 0 0 !important; max-width: 36rem; color: var(--graphite); }
.pg-page__figs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: clamp(22px, 3vw, 32px) 0 0; padding: 0; }
.pg-page__fig { padding: 14px 16px 13px; border: 1px solid #e3e1da; border-radius: 4px; }
.pg-page__fig b { display: block; font: 300 clamp(2rem, 1.4rem + 2vw, 3rem)/1 var(--font-display); letter-spacing: -0.02em; }
.pg-page__fig span { display: block; margin-top: 8px; font-size: var(--step--1); line-height: 1.35; color: var(--graphite); }
.pg-page__fig--high span::before { content: ""; display: inline-block; width: 9px; height: 8px; margin-right: 7px; vertical-align: 0.04em;
  background: var(--signal); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pg-page__h { display: flex; align-items: baseline; gap: 14px; margin: clamp(32px, 4.4vw, 56px) 0 6px; max-width: none;
  font: 400 clamp(1.35rem, 1rem + 1.1vw, 2rem)/1.15 var(--font-display); letter-spacing: -0.015em; }
.pg-page__head + .pg-page__h { margin-top: 0; }
.pg-page__h span { min-width: 0.9em; font-weight: 300; color: var(--graphite); }
.pg-page__dek { margin: 0 0 20px !important; color: var(--graphite); }
.pg-page__lede { font-size: var(--step-1); line-height: 1.5; }
.pg-findings { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3e1da; }
.pg-finding { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid #e3e1da; }
.pg-finding:last-child { border-bottom: 0; padding-bottom: 0; }
.pg-finding__flag { margin: 2px 0 0 !important; }
.pg-finding h4 { margin: 0 0 6px; font: 500 var(--step-0)/1.35 var(--font-text); color: var(--ink); }
.pg-finding p { margin: 0; }
.pg-finding .pg-finding__why { margin-top: 8px; color: var(--graphite); }
.pg-finding__why b { color: var(--ink); }
.pg-rewrites { border-top: 1px solid #e3e1da; padding-top: clamp(18px, 2.4vh, 26px); }
@media (max-width: 639px) {
  .pg-page__head > span:last-child { max-width: 11em; }
  .pg-page__figs { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .pg-page__fig { display: flex; align-items: center; gap: 16px; padding: 10px 14px; }
  .pg-page__fig b { min-width: 2.6rem; font-size: 2rem; }
  .pg-page__fig span { margin: 0; }
  .pg-finding { grid-template-columns: minmax(0, 1fr); padding: 16px 0; }
}

/* before and after: the client's sentence struck through in Datum's orange (as on the datasheet),
   the rewrite marked in the margin */
.pg-rewrite { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(24px, 3.4vw, 56px); padding: clamp(18px, 2.4vh, 26px) 0; }
.pg-rewrite + .pg-rewrite { border-top: 1px solid #e6e4dd; }
.pg-rewrite:first-child { padding-top: 0; }
.pg-rewrite:last-child { padding-bottom: 0; }
.pg-rewrite blockquote { margin: 0; font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.pg-rewrite .pg-label { margin-bottom: 8px; }
/* before: the client's sentence, struck through in Datum's orange (as on the datasheet) */
.pg-rewrite__before blockquote { color: var(--graphite); }
.pg-rewrite__before blockquote span { background-image: linear-gradient(var(--signal), var(--signal)); background-repeat: no-repeat; background-position: 0 58%; background-size: 100% 1.5px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* after: the rewrite, marked in the margin */
.pg-rewrite__after { position: relative; }
.pg-rewrite__after::before { content: ""; position: absolute; left: calc(clamp(12px, 1.6vw, 26px) * -1); top: 2px; bottom: 2px; width: 2px; background: var(--signal); }
@media (max-width: 719px) {
  .pg-rewrite { grid-template-columns: minmax(0, 1fr); }
  .pg-rewrite__after { padding-left: 14px; }
  .pg-rewrite__after::before { left: 0; }
}

/* ------------------------------------------------------- services list */

.pg-refs { border-top: 1px solid var(--hair); }
.pg-ref { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3.4fr) minmax(0, 5.6fr); gap: 20px clamp(24px, 3.2vw, 56px); align-items: start;
  padding: clamp(24px, 3.6vh, 40px) 0; border-bottom: 1px solid var(--hair); }
.pg-ref__art, .pg-art { display: block; aspect-ratio: 240 / 168; padding: 6% 9%; }
.pg-ref__name { margin: 0 0 8px; max-width: 9em; font: 300 clamp(1.7rem, 1.15rem + 1.5vw, 2.6rem)/1.05 var(--font-display); letter-spacing: -0.02em; }
.pg-ref__tag { margin: 0; color: var(--graphite); }
.pg-ref__body .pg-list { margin-top: 18px; }
.pg-ref__more { margin-top: 18px; }
.pg-art { max-width: 22rem; margin-top: 28px; }

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

/* only for real sequences: the eight steps of every engagement, what happens after you write */
.pg-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--hair); }
.pg-steps > li { counter-increment: step; display: grid; grid-template-columns: clamp(48px, 7vw, 120px) minmax(0, 4fr) minmax(0, 6fr); gap: 8px clamp(20px, 3vw, 48px);
  padding: clamp(20px, 3vh, 30px) 0; border-bottom: 1px solid var(--hair); }
.pg-steps > li::before { content: counter(step); font: 300 clamp(1.7rem, 1.2rem + 1.4vw, 2.6rem)/1 var(--font-display); letter-spacing: -0.02em; color: var(--graphite); }
.pg-steps h3 { margin: 4px 0 0; }
.pg-steps p { font-size: var(--step-0); line-height: 1.55; }
.pg-steps--compact > li { grid-template-columns: 44px minmax(0, 1fr); padding: 18px 0; }
.pg-steps--compact > li::before { font-size: 1.7rem; }
.pg-steps--compact h3 { margin-bottom: 6px; }
@media (max-width: 899px) {
  .pg-steps > li { grid-template-columns: 44px minmax(0, 1fr); }
  .pg-steps > li > div:last-child { grid-column: 2; }
  .pg-steps > li::before { font-size: 1.7rem; }
}

/* ----------------------------------------------------------------- people */

.pg-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(24px, 3.4vw, 56px); align-items: start; max-width: 1080px; }
@media (max-width: 1199px) {
  .pg-split--people { grid-template-columns: minmax(0, 1fr); }
  .pg-split--people .pg-sticky { position: static; }
}
.pg-person__frame { position: relative; margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--studio-photo); }
/* one treatment for both photos, as on the homepage */
.pg-person__frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.pg-person--elliot img { object-position: 61% 26%; transform: scale(1.5); transform-origin: 61% 26%; }
.pg-person--denis img { object-position: 50% 32%; }
.pg-person h3 { margin: 0; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); }
.pg-person__role { margin: 6px 0 16px; font-size: var(--step--1); font-weight: 500; line-height: 1.35; color: var(--graphite); }
.pg-person p { font-size: var(--step-0); line-height: 1.55; }
.pg-person .pg-list { margin-top: 18px; font-size: var(--step-0); line-height: 1.5; }
@media (min-width: 900px) {
  .pg-person + .pg-person { margin-top: clamp(48px, 9vw, 140px); } /* staggered, as on the homepage */
}

/* ---------------------------------------------------------------- sectors */

.pg-index ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px clamp(24px, 4vw, 72px); max-width: 1180px; }
.pg-index a { display: inline-block; padding: 4px 0; font: 300 clamp(1.5rem, 1.05rem + 1.6vw, 2.6rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.pg-index a:hover, .pg-index a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.14em; }

.pg-sector { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 112px); align-items: start;
  padding: clamp(28px, 5vh, 56px) 0; border-top: 1px solid var(--hair); }
.pg-sector:first-child { border-top: 0; padding-top: 0; }
.pg-sector__photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--studio-photo); }
.pg-sector__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.pg-sector h2 { margin-bottom: 14px; font-size: clamp(1.7rem, 1.15rem + 1.5vw, 2.6rem); }
.pg-sector .pg-label { margin-top: 26px; }

/* ------------------------------------------------------------------ plans */

.pg-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); align-items: stretch; }
.pg-plan { position: relative; display: flex; flex-direction: column; padding: var(--pad); }
.pg-plan__flag { position: absolute; top: calc(var(--pad) + 4px); right: var(--pad); margin: 0; font-size: var(--step--1); font-weight: 500; color: var(--ink); }
.pg-plan h3 { margin: 0; font-size: clamp(1.3rem, 1rem + 0.8vw, 1.75rem); }
.pg-plan__price { margin: 14px 0 6px; }
.pg-plan__price span:first-child { font: 300 clamp(2.2rem, 1.5rem + 2vw, 3.3rem)/1 var(--font-display); letter-spacing: -0.03em; }
.pg-plan__price .pg-muted { font-size: var(--step-0); }
.pg-plan__fit { min-height: 3em; margin-bottom: 18px; font-size: var(--step-0); line-height: 1.45; color: var(--graphite); }
.pg-plan .pg-list { font-size: var(--step-0); line-height: 1.5; }
/* the plan most clients choose: ringed in ink (the page head already has the ink plate) */
.pg-plan--main { box-shadow: inset 0 0 0 1.5px var(--ink); }

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

.pg-faq { border-top: 1px solid var(--hair); }
.pg-faq details { border-bottom: 1px solid var(--hair); }
.pg-faq summary { position: relative; list-style: none; cursor: pointer; padding: 22px 60px 22px 0;
  font: 400 clamp(1.1rem, 0.96rem + 0.45vw, 1.35rem)/1.3 var(--font-display); letter-spacing: -0.01em; -webkit-tap-highlight-color: transparent; }
.pg-faq summary::-webkit-details-marker { display: none; }
/* the plus in a ring, from the homepage's service cards */
.pg-faq summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--rule);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform 0.3s cubic-bezier(.6, 0, .2, 1), background-color 0.2s ease; }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) { .pg-faq summary:hover::after { background-color: rgba(21, 24, 27, 0.06); } }
.pg-faq summary:focus-visible { outline-offset: 4px; }
.pg-faq__answer { padding: 0 60px 24px 0; }
.pg-faq__answer p { max-width: 38rem; }
.pg-faqgroup + .pg-faqgroup { margin-top: clamp(48px, 8vh, 88px); }

/* ------------------------------------------------------------------ forms */

.pg-formplate { padding: clamp(20px, 3vw, 40px); border-radius: var(--radius-l); }
.pg-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.pg-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pg-field--full { grid-column: 1 / -1; }
.pg-field label { font-size: var(--step-0); font-weight: 500; }
.pg-field input, .pg-field select, .pg-field textarea { width: 100%; min-height: 50px; padding: 12px 14px;
  font: 400 1rem/1.4 var(--font-text); color: var(--ink); background: var(--paper); border: 1px solid rgba(21, 24, 27, 0.22); border-radius: 12px;
  -webkit-appearance: none; appearance: none; transition: border-color 0.2s ease; }
.pg-field select { padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2315181b' stroke-width='1.4'/%3E%3C/svg%3E");
  background-position: calc(100% - 17px) 50%; background-size: 12px 8px; background-repeat: no-repeat; }
.pg-field textarea { min-height: 150px; resize: vertical; }
.pg-field input:hover, .pg-field select:hover, .pg-field textarea:hover { border-color: rgba(21, 24, 27, 0.45); }
.pg-field input:focus-visible, .pg-field select:focus-visible, .pg-field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.pg-hint { font-size: var(--step--1); line-height: 1.45; color: var(--graphite); }
.pg-field .pg-check { display: flex; gap: 12px; align-items: flex-start; font-size: var(--step-0); line-height: 1.5; font-weight: 400; }
.pg-check input { flex-shrink: 0; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--ink); -webkit-appearance: auto; appearance: auto; }
.pg-form .btn { min-width: 12rem; }
.form-note { grid-column: 1 / -1; display: none; margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--paper); font-size: var(--step-0); }
.form-note.is-visible { display: block; }

/* ----------------------------------------------------- articles, policies */

.pg-prose { max-width: 42rem; font-size: 1.0625rem; line-height: 1.65; }
.pg-prose p { max-width: none; }
.pg-prose h2 { margin: 2.1em 0 0.6em; max-width: none; font: 400 clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem)/1.2 var(--font-display); letter-spacing: -0.015em; }
.pg-prose h2:first-child { margin-top: 0; }
.pg-prose h3 { margin: 1.8em 0 0.5em; }
.pg-prose ul, .pg-prose ol { margin: 0 0 1.2em; }
.pg-prose ol { padding-left: 1.3em; }
.pg-prose li { margin-bottom: 0.35em; }
.pg-prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 1px solid var(--ink); }
.pg-prose .pg-lede { font-size: var(--step-1); }

.pg-toc { display: grid; font-size: var(--step-0); line-height: 1.4; border-top: 1px solid var(--hair); }
.pg-toc a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair); }
.pg-toc a:hover { text-decoration: underline; }

.pg-posts { border-top: 1px solid var(--hair); }
.pg-post { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 7fr) auto; gap: 12px clamp(24px, 3vw, 48px); align-items: baseline;
  padding: clamp(24px, 3.6vh, 40px) 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; }
.pg-post h2 { margin: 0 0 10px; max-width: 18em; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.4rem); }
.pg-post p { color: var(--ink); }
.pg-post__meta { font-size: var(--step-0); color: var(--graphite); }
.pg-post .text-link { font-weight: 500; }
@media (hover: hover) { .pg-post:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; } }

/* --------------------------------------------------- the foot of the page */

/* Every page ends as the homepage does: the datum mark stands on a hairline across the page
   (the footer's top edge), its orange triangle on the surface it defines. */
.pg-end { position: relative; z-index: 1; padding: clamp(72px, 13vh, 150px) var(--gutter-r) clamp(56px, 9vh, 96px) var(--gutter-l); }
.pg-end__copy { position: relative; z-index: 1; max-width: 40rem; }
.pg-end h2 { margin: 0 0 22px; max-width: 11em; font: 300 clamp(2.3rem, 1.2rem + 3.3vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.03em; }
.pg-end__lede { margin: 0; max-width: 32em; font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.pg-end__mark { position: absolute; right: calc(var(--gutter-r) + 3vw); bottom: 0; height: var(--mark-h); aspect-ratio: 80 / 121; color: var(--ink); pointer-events: none; }
.pg-end__mark svg { width: 100%; height: 100%; overflow: visible; }
.pg-end__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.pg-end--bare { height: calc(var(--mark-h) + clamp(56px, 10vh, 112px)); padding: 0; }
@media (max-width: 899px) {
  .pg-end:not(.pg-end--bare) { padding-bottom: calc(var(--mark-h) + 40px); }
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 899px) {
  .pg-split, .pg-sechead, .pg-sector { grid-template-columns: minmax(0, 1fr); }
  .pg-sticky { position: static; }
  .pg-sechead { align-items: start; }
  .pg-cards, .pg-plans { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pg-ref { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .pg-ref__body { grid-column: 1 / -1; }
  .pg-post { grid-template-columns: minmax(0, 1fr); }
  .pg-sector__photo { max-width: 34rem; }
  .pg-split > .pg-formplate { order: -1; } /* on a phone the form comes first; what happens next follows it */
}
@media (max-width: 639px) {
  .pg-cards, .pg-cards--2, .pg-plans, .pg-figures, .pg-people, .pg-index ul { grid-template-columns: minmax(0, 1fr); }
  .pg-figures { gap: 8px; }
  .pg-figure { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; min-height: 0; padding-block: 16px; }
  .pg-figure__num { flex: 0 0 auto; min-width: 4.4rem; font-size: 2.5rem; }
  .pg-figure__label { flex: 1 1 0; }
  .pg-form { grid-template-columns: minmax(0, 1fr); }
  .pg-ref { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); gap: 16px 18px; }
  .pg-ref__art { padding: 4% 6%; }
  .pg-ref__name { font-size: 1.55rem; }
  .pg-faq summary { padding-right: 52px; }
  .pg-faq__answer { padding-right: 0; }
  .pg-person__frame { max-width: 26rem; }
  .pg-art { max-width: 15rem; margin-top: 20px; }
}

/* ------------------------------------------------------------------ motion */

/* The menu: an ink panel that wipes down from the top, its links rising into place (the homepage
   does this with its animation library; here the browser does it). pages.js sets --i on each. */
@media (prefers-reduced-motion: no-preference) {
  .menu { clip-path: inset(0 0 100% 0); transition: clip-path 0.55s cubic-bezier(.65, 0, .35, 1); }
  .is-menu-open .menu { clip-path: inset(0 0 0 0); transition-duration: 0.6s; }
  .menu__primary li, .menu__group, .menu .btn { opacity: 0; transform: translateY(28px); transition: opacity 0s linear 0.55s, transform 0s linear 0.55s; }
  .is-menu-open .menu__primary li, .is-menu-open .menu__group, .is-menu-open .menu .btn {
    opacity: 1; transform: none;
    transition: opacity 0.6s ease calc(0.2s + var(--i, 0) * 0.035s), transform 0.7s cubic-bezier(.2, .7, .2, 1) calc(0.2s + var(--i, 0) * 0.035s); }

  /* the one page-load moment: the head rises in */
  .pg-head__copy > * { animation: pg-rise 0.9s cubic-bezier(.2, .7, .2, 1) both; }
  .pg-head__copy > :nth-child(2) { animation-delay: 0.07s; }
  .pg-head__copy > :nth-child(3) { animation-delay: 0.14s; }
  .pg-head__copy > :nth-child(4) { animation-delay: 0.21s; }
  .pg-head__plate { animation: pg-open 1.1s cubic-bezier(.6, 0, .2, 1) 0.12s both; }
}
@keyframes pg-rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes pg-open { from { clip-path: inset(100% 0 0 0 round var(--radius-l)); } to { clip-path: inset(0 0 0 0 round var(--radius-l)); } }
