/* Shahriyor Sharifjonov — portfolio, v2: one grid, white ground, navy ink, blue accent. */

:root {
  --bg: #ffffff;
  --ink: #0e1822;
  --muted: #3d4c5c;
  --accent: #1f6fbf;
  --tint: #eaf2fb;
  --tint-2: #d9e8f7;
  --navy: #0e1822;
  --navy-soft: #b9d6ee;

  --font-display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-text: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: 0.9375rem;                                   /* 15 */
  --step-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);      /* 17–18 */
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);        /* 20–24 */
  --step-h3: 1.125rem;                                        /* 18 */
  --step-h2: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);            /* 32–52 */
  --step-h1: clamp(3.25rem, 2rem + 6vw, 7rem);                /* 52–112 */

  --container: 1180px;
  --margin: clamp(1rem, 4vw, 2.5rem);
  --gutter: clamp(1.25rem, 2.5vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}


/* Russian pages: the English faces have no Cyrillic, so these two take over */
html[lang="ru"] {
  --font-display: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ru"] h1, html[lang="ru"] h2 { letter-spacing: 0; line-height: 0.98; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: #ffffff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.92; text-wrap: balance; }
h1 { font-size: var(--step-h1); }
h2 { font-size: var(--step-h2); max-width: 22ch; }
h3 { font-size: var(--step-h3); font-weight: 600; line-height: 1.3; }
p { max-width: 64ch; text-wrap: pretty; }
p + p { margin-top: 0.9em; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 46ch; }
.small { font-size: var(--step-small); line-height: 1.5; }
.muted { color: var(--muted); }
strong { font-weight: 600; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #ffffff; }
.section__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head p { margin-top: 1rem; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }

/* ---------- controls ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.5rem; background: var(--navy); color: #ffffff; font-weight: 600; border-radius: var(--radius); text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.button--light { background: #ffffff; color: var(--navy); }
.button--small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step-small); }
.link { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; color: var(--accent); font-weight: 600; }
.section--navy .link { color: #ffffff; }
.link-plain { text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent); color: #ffffff; }
  .button--ghost:hover { background-color: var(--navy); color: #ffffff; }
  .button--light:hover { background-color: var(--accent); color: #ffffff; }
  .link:hover { color: var(--navy); }
  .section--navy .link:hover { color: var(--navy-soft); }
}

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; }
.wordmark { font-weight: 600; text-decoration: none; }
.top__links { display: flex; align-items: center; gap: 1.5rem; }
.top__links a:not(.button) { text-decoration: none; font-weight: 600; font-size: var(--step-small); }
.top__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 0.1em; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.hero__text { grid-column: 1 / 8; }
.hero__role { font-size: var(--step-lead); font-weight: 600; margin-top: 1.25rem; max-width: 30ch; }
.hero__lead { margin-top: 1rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__photo { grid-column: 9 / 13; background: var(--tint); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; }
.title { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.title .lead { margin-top: 1.25rem; }

/* ---------- before / after and screens ---------- */
.pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 1.5rem; margin-top: 2.5rem; }
.pair figure { margin: 0; min-width: 0; }
.pair figcaption { font-weight: 600; margin-bottom: 0.6rem; }
.pair img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; background: var(--tint-2); }
.pair img + img { margin-top: 1rem; }
.clip { margin-top: 2.5rem; }
.clip figcaption { font-weight: 600; margin-bottom: 0.6rem; }
.clip video { width: 100%; max-width: 1362px; aspect-ratio: 1362 / 676; background: var(--tint-2); }
.after { margin-top: 1.75rem; }

/* ---------- timeline ---------- */
.timeline { display: grid; row-gap: 1.75rem; }
.row { display: grid; grid-template-columns: 13rem minmax(0, 1fr); column-gap: var(--gutter); }
.row__when { color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.15rem; white-space: nowrap; }
.row__title { font-weight: 600; }
.row p { margin-top: 0.25rem; color: var(--muted); max-width: 60ch; }
.row ul { margin-top: 0.6rem; max-width: 64ch; list-style: none; padding: 0; }
.row li { padding-left: 1.1em; text-indent: -1.1em; }
.row li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; }
.row li + li { margin-top: 0.3em; }

/* ---------- skills, certificates, facts ---------- */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols h3 { margin-bottom: 0.6rem; }
.cols ul { list-style: none; padding: 0; }
.cols ul li { padding-left: 1.1em; text-indent: -1.1em; }
.cols ul li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; }
.cols ul li + li { margin-top: 0.3em; }
.cols p { margin-top: 0.35rem; }
.cols .small { display: block; margin-top: 0.35rem; color: var(--muted); }
.fact__k { color: var(--muted); font-size: var(--step-small); }
.fact__v { font-weight: 600; margin-top: 0.2rem; }
.fact p { font-weight: 400; margin-top: 0.3rem; color: var(--muted); }

/* ---------- cases (work page) ---------- */
.case { padding-block: var(--section); }
.case__meta { margin-top: 1rem; color: var(--muted); }
.case__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gutter); row-gap: 1.5rem; margin-top: 2rem; }
.case__cols h3 { margin-bottom: 0.5rem; }
.case__list { margin-top: 1.5rem; max-width: 60ch; }
.case__list li { padding-left: 1.1em; text-indent: -1.1em; }
.case__list li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; }
.case__list li + li { margin-top: 0.3em; }
.photo { margin-top: 2.5rem; background: var(--tint); }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo--square img { aspect-ratio: 1; }
.photo--portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.photo figcaption { font-size: var(--step-small); color: var(--muted); padding-top: 0.6rem; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
.about__photo { grid-column: 1 / 6; background: var(--tint); }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about__text { grid-column: 7 / 13; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2rem; align-items: start; }
.contact__main { grid-column: 1 / 8; }
.contact__main h2 { max-width: 16ch; }
.contact__main p { margin-top: 1.25rem; max-width: 48ch; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.contact__list { grid-column: 9 / 13; display: grid; row-gap: 0.9rem; align-self: end; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list span { display: block; color: var(--navy-soft); font-size: var(--step-small); }

/* ---------- footer ---------- */
.foot { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font-size: var(--step-small); color: var(--muted); }
.foot a { text-decoration: none; }
.foot__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot p { max-width: none; }

/* ---------- cv page ---------- */
.cv { max-width: 52rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--margin) 5rem; }
.cv__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.cv h1 { font-size: var(--step-h2); }
.cv__photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; margin-bottom: 1rem; }
.cv__contact { text-align: right; }
.cv__contact span { display: block; }
.cv h2 { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--step-lead); line-height: 1.2; margin-top: 2.5rem; margin-bottom: 0.75rem; max-width: none; }
.cv__summary { margin-top: 1.5rem; max-width: 70ch; }
.cv__role { display: grid; grid-template-columns: 11rem 1fr; gap: 0 1.5rem; margin-top: 1.25rem; }
.cv__role .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.cv__role h3 { font-size: var(--step-body); line-height: 1.4; }
.cv__role .where { color: var(--muted); }
.cv__role ul { margin-top: 0.4rem; max-width: 70ch; list-style: none; padding: 0; }
.cv__role li { padding-left: 1.1em; text-indent: -1.1em; }
.cv__role li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; }
.cv__two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.cv__two h2 { margin-top: 2.5rem; }
.cv__list { list-style: none; padding: 0; }
.cv__list li { padding-left: 1.1em; text-indent: -1.1em; }
.cv__list li::before { content: "·"; display: inline-block; width: 1.1em; text-indent: 0; }
.cv__list li + li { margin-top: 0.3em; }
.cv__print { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media print {
  @page { size: A4; margin: 14mm 16mm; }
  html, body { background: #ffffff !important; color: #000000 !important; }
  .top, .cv__print, .foot { display: none !important; }
  @page { margin: 11mm 13mm; }
  .cv { padding: 0; max-width: none; font-size: 9pt; line-height: 1.32; }
  .cv p, .cv li, .cv span, .cv a { font-size: 9pt; }
  .cv h1 { font-size: 22pt; }
  .cv .lead { font-size: 11.5pt; margin-top: 1pt; }
  .cv__photo { width: 54px; height: 54px; margin-bottom: 5pt; }
  .cv h2 { font-size: 11pt; margin-top: 9pt; margin-bottom: 2pt; }
  .cv__role { margin-top: 5pt; grid-template-columns: 30mm 1fr; }
  .cv__role h3 { font-size: 10pt; }
  .cv__role ul { margin-top: 1pt; }
  .cv__summary { margin-top: 7pt; max-width: none; }
  .cv__two h2 { margin-top: 9pt; }
  .cv__list li + li { margin-top: 0; }
  a { text-decoration: none; color: inherit; }
}

/* ---------- motion: quiet ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] [data-part] { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in [data-part] { opacity: 1; transform: none; }
  .js .row, .js .cols > * { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
  .js .is-in .row, .js .is-in .cols > * { opacity: 1; transform: none; }
  .hero__photo img, .photo img, .about__photo img { transition: transform 900ms var(--ease-out); }
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__text { grid-column: 1 / 8; }
  .hero__photo { grid-column: 8 / 13; }
  .contact__main { grid-column: 1 / 8; }
  .contact__list { grid-column: 8 / 13; }
}

/* ---------- phone ---------- */
@media (max-width: 680px) {
  :root { --section: 3.5rem; }
  .top { flex-wrap: wrap; row-gap: 0.75rem; }
  .top__links { gap: 1rem; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; row-gap: 2rem; padding-top: 1.5rem; }
  .hero__text, .hero__photo { grid-column: 1; }
  .hero__photo { max-width: 360px; }
  .hero__actions .button { width: 100%; }
  .pair, .case__cols, .cols, .cols--3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; row-gap: 0.25rem; }
  .about { grid-template-columns: 1fr; row-gap: 2rem; }
  .about__photo, .about__text { grid-column: 1; }
  .about__photo { max-width: 360px; }
  .contact { grid-template-columns: 1fr; }
  .contact__main, .contact__list { grid-column: 1; }
  .contact__actions .button { width: 100%; }
  .cv__top { flex-direction: column; align-items: flex-start; }
  .cv__contact { text-align: left; }
  .cv__role { grid-template-columns: 1fr; }
  .cv__two { grid-template-columns: 1fr; }
}

/* ---------- language switch ---------- */
.top__links a.lang { font-weight: 600; font-size: var(--step-small); text-decoration: none; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .top__links a.lang:hover { text-decoration: underline; text-underline-offset: 0.25em; } }

/* ---------- blog: list ---------- */
.post-list { display: grid; row-gap: 0.25rem; }
.post-list a { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: var(--gutter); row-gap: 0.3rem; padding-block: 1.1rem; text-decoration: none; }
.post-list__date { grid-row: 1 / 3; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.post-list__title { font-size: var(--step-lead); font-weight: 600; line-height: 1.3; max-width: 40ch; transition: color var(--t-hover) ease; }
.post-list__desc { color: var(--muted); max-width: 64ch; }
@media (hover: hover) and (pointer: fine) { .post-list a:hover .post-list__title { color: var(--accent); } }

/* ---------- blog: post ---------- */
.post { padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.post__inner { max-width: 46rem; }
.post__title { font-family: var(--font-text); text-transform: none; letter-spacing: -0.01em; font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.12; max-width: 24ch; }
.post__lead { margin-top: 1.25rem; }
.post__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.25rem; color: var(--muted); font-size: var(--step-small); max-width: none; }
.post__meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.post__cover { margin-top: 2rem; background: var(--tint); }
.post__cover img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.prose { margin-top: 2.5rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-text); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: var(--step-lead); line-height: 1.3; margin-top: 2.2em; max-width: none; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; max-width: 64ch; }
.prose li + li { margin-top: 0.45em; }
.prose figure { margin-block: 2em; }
.prose img { width: 100%; background: var(--tint); }
.prose figcaption { font-size: var(--step-small); color: var(--muted); margin-top: 0.5rem; }
.prose a { color: var(--accent); font-weight: 600; }
.prose blockquote { background: var(--tint); padding: 1rem 1.25rem; }
.author { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 1.25rem; align-items: start; margin-top: 3.5rem; padding: 1.5rem; background: var(--tint); }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.author p + p { margin-top: 0.35rem; }
@media (max-width: 680px) {
  .top__links .button { display: none; }
  .post__title { font-size: 1.625rem; line-height: 1.18; }
  .post-list a { grid-template-columns: 1fr; }
  .post-list__date { grid-row: auto; padding-top: 0; }
  .author { grid-template-columns: 1fr; row-gap: 1rem; }
}
@media print {
  .js [data-reveal] [data-part], .js .row, .js .cols > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- before / after slider ---------- */
.compare { margin-top: 2.5rem; }
.compare + .compare { margin-top: 3rem; }
.compare__title { font-weight: 600; margin-bottom: 0.75rem; }
.compare__frame { position: relative; aspect-ratio: 1550 / 920; overflow: hidden; background: var(--tint-2); cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; --pos: 50%; }
.compare__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #ffffff; pointer-events: none; }
.compare__knob { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--navy); color: #ffffff; display: grid; place-items: center; pointer-events: none; transition: transform var(--t-press) var(--ease-out); }
.compare__knob svg { width: 26px; height: 26px; }
.compare__frame.is-dragging .compare__knob { transform: scale(1.08); }
.compare__range { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare:focus-within .compare__frame { outline: 3px solid var(--accent); outline-offset: 3px; }
.compare__labels { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.75rem; font-weight: 600; }
.compare__hint { font-weight: 400; color: var(--muted); font-size: var(--step-small); }
.shot { margin-top: 3rem; }
.shot img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; background: var(--tint-2); }
.shot figcaption { margin-top: 0.75rem; font-weight: 600; }
@media (max-width: 680px) {
  .compare__hint { display: none; }
  .compare__knob { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
}

/* ---------- case page: summary and month-by-month roadmap ---------- */
.case-facts { margin-top: clamp(2rem, 4vw, 3rem); }
.results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.result__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.75rem, 1.6rem + 3.4vw, 4.5rem); line-height: 0.9; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result__l { margin-top: 0.75rem; max-width: 26ch; }
.todo { background: #ffe58a; color: var(--ink); padding: 0 0.15em; }
.result__n .todo { padding: 0 0.05em; }

.month { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-block: clamp(3rem, 6vw, 5rem); }
.month + .month { padding-top: 0; }
.month__when { grid-column: 1 / 4; align-self: start; position: sticky; top: 1.5rem; }
.month__name { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-h2); line-height: 0.92; }
.month__year { color: var(--muted); margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.month__body { grid-column: 4 / 13; display: grid; row-gap: clamp(2.5rem, 5vw, 3.5rem); }
.step h4 { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; max-width: 34ch; }
.psr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 1.25rem; margin-top: 1.25rem; }
.psr > div { padding-block: 1rem; }
.psr dt { font-weight: 600; }
.psr dd { margin: 0.3rem 0 0; }
.psr__result { background: var(--tint); padding-inline: 1.1rem; }
.section--tint .psr__result { background: #ffffff; }
.step .compare { margin-top: 1.75rem; }

.next-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); column-gap: var(--gutter); row-gap: 2rem; }
.next-steps h3 { margin-bottom: 0.5rem; }
.cases-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; margin-top: 2rem; }

@media (max-width: 960px) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .psr { grid-template-columns: 1fr; }
  .psr > div:not(.psr__result) { padding-block: 0; }
}
@media (max-width: 680px) {
  .month { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .month__when, .month__body { grid-column: 1; position: static; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result__n { font-size: 2.75rem; }
}
@media print {
  .todo { background: none; }
}

/* ---------- case page: weekly sales chart (indexed, colours checked with the dataviz validator) ---------- */
.chart { margin-top: 1.75rem; }
.chart svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-text); }
.chart__bar path { fill: #7aaeea; transition: opacity var(--t-hover) ease; }
.chart__bar--after path { fill: #1d4f91; }
.chart__hit { fill: transparent; }
@media (hover: hover) and (pointer: fine) {
  .chart svg:hover .chart__bar path { opacity: 0.55; }
  .chart svg .chart__bar:hover path { opacity: 1; }
}
.chart__ref, .chart__base { stroke: #c4d0dc; stroke-width: 1; }
.chart__release { stroke: var(--ink); stroke-width: 2; }
.chart__label { fill: var(--ink); font-weight: 600; font-size: 16px; }
.chart__ticks text { fill: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart figcaption { margin-top: 0.75rem; color: var(--muted); font-size: var(--step-small); max-width: 64ch; }
.step__note { margin-top: 1.25rem; max-width: 64ch; }
@media (max-width: 680px) {
  .chart__label { font-size: 26px; }
  .chart__ticks text { font-size: 23px; }
}

/* ---------- about: questions recruiters ask ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.faq h3 { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; margin-bottom: 0.6rem; }
@media (max-width: 680px) {
  .faq { grid-template-columns: 1fr; row-gap: 2rem; }
}

/* ---------- home: links for hiring managers, under the hero buttons ---------- */
.hero__more { margin-top: 1.75rem; max-width: 52ch; }
.hero__more p { font-weight: 600; }
.hero__more ul { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; row-gap: 0.45rem; }
.hero__more .link { font-weight: 400; }
