@font-face {
  font-family: "Inter";
  src: url("assets/inter-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}

@font-face {
  font-family: "Inter";
  src: url("assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  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;
}

@property --portrait-away-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --portrait-return-progress {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  color-scheme: light;
  --canvas: #e8ebf2;
  --page: #fff;
  --surface: #f2f3f1;
  --surface-strong: #d7ddd8;
  --ink: #171a18;
  --muted: #515752;
  --line: #b9bfba;
  --accent: #176b4b;
  --accent-pressed: #10563b;
  --focus: #0b5bd3;
  --radius: 14px;
  --header-height: 100px;
  --hero-height: 100dvh;
  --rail: min(52vw, 1180px);
  --page-pad: clamp(24px, 4.5vw, 88px);
  --section-pad-y: clamp(88px, 10vw, 152px);
  --type-brand-size: clamp(108px, 11vw, 228px);
  --wordmark-end-scale: 0.16;
  --wordmark-end-shift: 0px;
  --portrait-away-y: clamp(42px, 6vh, 64px);
  --type-display-size: clamp(58px, 8vw, 160px);
  --type-monument-size: clamp(74px, 10vw, 220px);
  --type-section-size: clamp(48px, 6vw, 132px);
  --type-project-size: clamp(22px, calc(1.2vw + 8px), 38px);
  --type-hero-lead-size: clamp(22px, 2.25vw, 46px);
  --type-lead-size: clamp(20px, 1.85vw, 34px);
  --type-body-size: clamp(17px, calc(0.75vw + 10px), 28px);
  --type-nav-size: clamp(14px, calc(0.35vw + 10px), 18px);
  --type-button-size: clamp(15px, calc(0.35vw + 11px), 19px);
  --type-label-size: clamp(14px, calc(0.4vw + 10px), 19px);
  --type-small-size: clamp(13px, calc(0.3vw + 10px), 17px);
  --type-legal-size: clamp(12px, calc(0.25vw + 9.5px), 15px);
  --type-heading-tracking: -0.04em;
  --measure-copy: clamp(38ch, 40vw, 60ch);
  --measure-story: clamp(42ch, 44vw, 64ch);
  --measure-compact: clamp(28ch, 32vw, 46ch);
  --measure-legal: clamp(60ch, 42vw, 76ch);
  --font-display: "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-size: var(--type-body-size);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

main {
  position: relative;
  overflow-x: clip;
  background: var(--canvas);
  timeline-scope: --content-progress, --contact-progress;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-height);
  padding: 10px var(--page-pad);
  background: transparent;
  pointer-events: none;
}

.wordmark {
  position: relative;
  z-index: 2;
  display: block;
  width: min(42vw, 760px);
  height: calc(var(--type-brand-size) * 1.7);
  color: var(--accent);
  text-decoration: none;
  pointer-events: auto;
}

.wordmark-expanded {
  position: absolute;
  left: 0;
  margin: 0;
  transform-origin: top left;
}

.wordmark-expanded {
  top: 10px;
  font-family: var(--font-display);
  font-size: var(--type-brand-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 0.82;
}

.wordmark-expanded span {
  display: block;
}

.wordmark-expanded::before {
  content: "";
  position: absolute;
  top: -0.24em;
  left: -0.4em;
  width: 8.35em;
  height: 1.32em;
  background: var(--canvas);
  border-radius: 0.35em;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 30px);
  pointer-events: auto;
}

.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-size: var(--type-nav-size);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a {
  color: var(--accent);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  pointer-events: auto;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before {
  top: -7px;
}

.menu-icon::after {
  top: 7px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.portrait-stage {
  position: fixed;
  top: var(--header-height);
  right: min(0px, calc((100vw - 1760px) * 0.18));
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(72vw, 1600px);
  max-width: none;
  height: calc(var(--hero-height) - var(--header-height));
  pointer-events: none;
  transform:
    translateX(calc((var(--portrait-away-progress) - var(--portrait-return-progress)) * clamp(72px, 8vw, 144px)))
    translateY(calc((var(--portrait-away-progress) - var(--portrait-return-progress)) * var(--portrait-away-y)))
    scale(calc(1 - (var(--portrait-away-progress) - var(--portrait-return-progress)) * 0.06));
  transform-origin: right center;
  animation-name: portrait-away, portrait-return;
  animation-duration: 1ms, 1ms;
  animation-timing-function: linear, linear;
  animation-fill-mode: both, both;
  animation-timeline: --content-progress, --contact-progress;
  animation-range: entry 0% entry 65%, entry 0% entry 65%;
}

.portrait-stage img {
  align-self: flex-end;
  flex: none;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  transform: translateX(4vw) scale(1.04);
  transform-origin: right bottom;
}

.linka {
  view-timeline-name: --content-progress;
  view-timeline-axis: block;
}

#contacts {
  view-timeline-name: --contact-progress;
  view-timeline-axis: block;
}

.story-rail {
  position: relative;
  z-index: 2;
  width: var(--rail);
  margin-left: var(--page-pad);
}

.hero {
  display: flex;
  align-items: flex-end;
  height: var(--hero-height);
  padding: 0 0 clamp(68px, 8vh, 112px);
}

.hero-copy {
  width: 100%;
  max-width: 700px;
}

.hero-copy > p {
  max-width: var(--measure-compact);
  margin: 0;
  font-size: var(--type-hero-lead-size);
  font-weight: 540;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 34px;
}

.portrait-mobile {
  display: none;
}

.honors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(48px, 6vw, 88px) 0;
}

.honors-intro,
.honors-list {
  width: min(100%, var(--measure-compact));
}

.honors-intro h2 {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: var(--type-lead-size);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
}

.honors-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.honors-list li {
  border-top: 1px solid var(--line);
}

.honor-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  min-height: 0;
  padding: 14px 0 24px;
  color: var(--ink);
  font-size: var(--type-label-size);
  font-weight: 750;
  letter-spacing: normal;
  line-height: 1.25;
  text-decoration: none;
  transition: color 180ms ease, padding 180ms ease;
}

.honor-link:hover {
  padding-right: 8px;
  color: var(--accent);
}

.external-arrow {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.8;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section h2,
.site-footer h2 {
  max-width: 12ch;
  margin: 0;
  font-size: var(--type-section-size);
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 0.95;
}

.biography {
  display: grid;
  gap: 42px;
}

.biography-copy,
.section-intro,
.contact-lead {
  width: 100%;
  max-width: var(--measure-copy);
  margin: 0;
  color: var(--muted);
  font-size: var(--type-lead-size);
  line-height: 1.45;
}

.biography-copy {
  display: grid;
  gap: 22px;
}

.biography-copy p,
.section-intro p,
.speaking-story p,
.contact-lead {
  margin: 0;
}

.biography .text-link {
  width: fit-content;
}

.linka {
  display: grid;
  gap: 28px;
}

.section-kicker {
  max-width: 34ch;
  margin: 0 0 10px;
  color: var(--accent);
  font-size: var(--type-label-size);
  font-weight: 760;
}

.linka-kicker {
  max-width: 12ch;
  margin: 0;
  color: var(--page);
  font-family: var(--font-display);
  font-size: var(--type-monument-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 0.8;
  text-wrap: balance;
}

.linka h2 {
  color: var(--ink);
  font-size: var(--type-monument-size);
}

.media-frame,
.speaking-photo,
.memory,
.project {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.media-frame {
  background: var(--surface-strong);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 48px;
  color: var(--accent);
  font-size: var(--type-button-size);
  font-weight: 780;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: color 180ms ease, text-underline-offset 180ms ease, transform 180ms ease;
}

.text-link:hover {
  color: var(--accent-pressed);
  text-underline-offset: 8px;
}

.text-link:active {
  transform: translateY(1px);
}

.speaking {
  display: grid;
  gap: 28px;
}

.speaking-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.speaking-copy {
  display: grid;
  justify-items: start;
  gap: 28px;
}

.speaking-story {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: var(--measure-story);
  color: var(--muted);
  font-size: var(--type-body-size);
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
}

.formats article {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  gap: 24px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--page);
}

.formats h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-project-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 1.1;
}

.formats p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small-size);
  font-weight: 650;
  line-height: 1.4;
}

.life {
  display: grid;
  gap: 40px;
}

.life .section-intro {
  display: grid;
  gap: 18px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(280px, 28vw, 410px);
  gap: 14px;
}

.memory {
  position: relative;
  display: block;
  min-height: 0;
  background: var(--page);
}

.memory img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.memory-wide {
  transform: none;
}

.memory-tall img {
  min-height: 0;
}

.memory figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 1;
  padding: 0;
  color: var(--page);
  font-size: var(--type-label-size);
  font-weight: 720;
  text-shadow: 0 1px 12px rgb(0 0 0 / 55%);
}

.projects {
  display: grid;
  gap: 36px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project {
  display: grid;
  grid-template-rows: clamp(280px, 30vw, 400px) auto;
  align-self: start;
  background: var(--page);
}

.project-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  grid-template-rows: clamp(360px, 36vw, 500px);
}

.project img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.project-featured img {
  min-height: 0;
  object-position: center 38%;
}

.project-compact img {
  object-position: center 48%;
}

.project > div {
  padding: 20px;
}

.project h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-project-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 1.1;
}

.project p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: var(--type-small-size);
}

.project .text-link {
  margin-top: 16px;
  min-height: 40px;
  font-size: var(--type-small-size);
}

.site-footer {
  display: grid;
  gap: 36px;
  margin-top: 24px;
  padding: clamp(88px, 10vw, 150px) 0 48px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 40px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px clamp(28px, 3vw, 40px);
}

.footer-links a {
  color: var(--accent);
  font-size: var(--type-small-size);
  text-decoration: none;
}

.legal-notes {
  display: grid;
  gap: 8px;
  max-width: var(--measure-legal);
  padding-top: 28px;
  color: var(--muted);
  font-size: var(--type-legal-size);
  line-height: 1.45;
}

.legal-notes p {
  margin: 0;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes portrait-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes wordmark-scroll {
  to {
    transform: translateY(var(--wordmark-end-shift)) scale(var(--wordmark-end-scale));
  }
}

@keyframes surname-inline {
  to {
    transform: translate(2.71em, -0.82em);
  }
}

@keyframes portrait-away {
  to {
    --portrait-away-progress: 1;
  }
}

@keyframes portrait-return {
  to {
    --portrait-return-progress: 1;
  }
}

@keyframes wordmark-backdrop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@supports (animation-timeline: scroll()) {
  .wordmark-expanded,
  .wordmark-expanded span:last-child {
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
    animation-range: 0 560px;
  }

  .wordmark-expanded::before {
    animation-duration: 1ms;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: scroll(root block);
    animation-range: 560px 620px;
    animation-name: wordmark-backdrop;
  }

  .wordmark-expanded {
    animation-name: wordmark-scroll;
  }

  .wordmark-expanded span:last-child {
    animation-name: surname-inline;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: copy-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .portrait-stage img,
  .portrait-mobile img {
    animation: portrait-in 780ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-expanded,
  .wordmark-expanded span:last-child,
  .wordmark-expanded::before,
  .portrait-stage {
    animation: none;
  }
}

@media (max-width: 1120px) {
  :root {
    --rail: 50vw;
    --page-pad: clamp(24px, 3vw, 40px);
  }

  .site-nav {
    gap: 12px;
  }

}

@media (max-width: 899px) {
  :root {
    --header-height: 68px;
    --page-pad: clamp(18px, 5vw, 36px);
    --rail: auto;
    --section-pad-y: clamp(76px, 15vw, 120px);
    --type-brand-size: clamp(56px, 17vw, 104px);
    --wordmark-end-scale: 0.28;
    --wordmark-end-shift: 0px;
    --type-display-size: clamp(38px, 11vw, 76px);
    --type-monument-size: clamp(74px, 16vw, 120px);
    --type-section-size: clamp(42px, 10vw, 72px);
    --type-project-size: clamp(22px, 4vw, 28px);
    --type-hero-lead-size: clamp(20px, 4.8vw, 30px);
    --type-lead-size: clamp(18px, 3.4vw, 24px);
    --type-body-size: clamp(16px, 2.8vw, 19px);
    --type-nav-size: 16px;
    --type-button-size: 15px;
    --type-label-size: 14px;
    --type-small-size: 14px;
    --type-legal-size: 12px;
    --measure-copy: 100%;
    --measure-story: 100%;
    --measure-compact: 28ch;
    --measure-legal: 100%;
  }

  body,
  main {
    background: var(--page);
  }

  .site-header {
    background: transparent;
  }

  .wordmark {
    width: min(72vw, 520px);
  }

  .wordmark-expanded {
    top: 12px;
  }

  .wordmark-expanded::before {
    background: var(--page);
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-toggle:focus-visible {
    outline: none;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1;
    display: grid;
    align-content: start;
    align-items: stretch;
    gap: 0;
    padding: 148px var(--page-pad) 28px;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--page) 94%, transparent);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-16px);
    visibility: hidden;
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms step-end;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition: opacity 220ms ease, transform 220ms ease, visibility 0ms step-start;
  }

  .site-nav a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0;
    font-size: var(--type-nav-size);
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open main {
    filter: brightness(0.82);
  }

  .portrait-stage {
    display: none;
  }

  .story-rail {
    width: auto;
    margin: 0;
  }

  .hero {
    display: grid;
    align-items: start;
    height: auto;
    min-height: auto;
    padding: clamp(184px, 50vw, 228px) var(--page-pad) 0;
    background: var(--canvas);
    box-shadow: 0 0 0 100vmax var(--canvas);
    clip-path: inset(0 -100vmax);
  }

  .hero-copy > p {
    max-width: 23ch;
    margin-top: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 0;
    margin-top: 10px;
  }

  .hero-actions .text-link {
    min-height: 40px;
    font-size: 14px;
  }

  .portrait-mobile {
    display: grid;
    place-items: start center;
    min-height: 0;
    margin: -92px calc(var(--page-pad) * -1) 0;
    overflow: hidden;
    background: transparent;
    pointer-events: none;
  }

  .portrait-mobile img {
    width: min(900px, 126vw);
    max-width: none;
    transform: translateX(3vw);
  }

  .honors,
  .section,
  .site-footer {
    margin-right: var(--page-pad);
    margin-left: var(--page-pad);
  }

  .section {
    padding: var(--section-pad-y) 0;
  }

  .linka-kicker {
    color: var(--canvas);
  }

  .memory,
  .project {
    background: var(--canvas);
  }

  .site-footer {
    gap: 24px;
    padding-top: clamp(76px, 15vw, 120px);
  }

  .footer-links {
    row-gap: 0;
  }

  .footer-links a {
    min-height: 40px;
  }

  .formats {
    grid-template-columns: 1fr;
  }

  .formats article {
    min-height: 140px;
  }
}

@media (max-width: 620px) {
  .honors {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .honors-intro,
  .honors-list {
    width: 100%;
  }

  .honor-link {
    min-height: 64px;
  }

  .photo-strip,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .photo-strip {
    grid-auto-rows: clamp(260px, 92vw, 360px);
  }

  .memory-wide {
    transform: none;
  }

  .memory,
  .project,
  .project-featured {
    grid-row: auto;
  }

  .project-featured {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(260px, 72vw) auto;
  }

  .project:not(.project-featured) {
    grid-template-rows: minmax(260px, 78vw) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}

/* --- Внутренние страницы -------------------------------------------------- */

body.subpage {
  --rail: min(78vw, 1180px);
}

body.subpage .wordmark {
  width: min(42vw, 320px);
  height: calc(var(--type-brand-size) * var(--wordmark-end-scale) * 1.9);
  min-height: 48px;
}

body.subpage .wordmark-expanded,
body.subpage .wordmark-expanded span:last-child,
body.subpage .wordmark-expanded::before {
  animation: none;
}

body.subpage .wordmark-expanded::before,
body.is-scrolled .wordmark-expanded::before {
  opacity: 1;
}

body.subpage .wordmark-expanded {
  transform: scale(var(--wordmark-end-scale));
}

body.subpage .wordmark-expanded span:last-child {
  transform: translate(2.71em, -0.82em);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: calc(var(--header-height) + clamp(48px, 7vw, 110px)) 0 clamp(32px, 4vw, 56px);
}

.page-head h1 {
  max-width: 14ch;
  overflow-wrap: break-word;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-display-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 0.92;
}

.page-head .section-intro {
  max-width: var(--measure-story);
}

.page-head-contact {
  grid-template-columns: minmax(0, 1fr);
}

.page-head-copy {
  display: grid;
  align-content: start;
  gap: 22px;
}

.contact-photo {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-strong);
}

.contact-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

@media (min-width: 900px) {
  .page-head h1 {
    max-width: none;
    overflow-wrap: normal;
  }

  body.contacts-page {
    --contact-photo-width: clamp(280px, min(28vw, 51vh), 480px);
    --contact-photo-gap: clamp(32px, 4vw, 72px);
  }

  body.contacts-page .story-rail {
    width: min(860px, calc(100vw - var(--page-pad) * 2 - var(--contact-photo-width) - var(--contact-photo-gap)));
  }

  .contact-photo {
    position: fixed;
    top: calc(var(--header-height) + clamp(48px, 7vw, 110px));
    right: var(--page-pad);
    z-index: 1;
    width: var(--contact-photo-width);
    aspect-ratio: 3 / 4;
    pointer-events: none;
  }

  .contact-photo img {
    height: 100%;
  }
}

.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.topic {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--page);
}

.topic h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-project-size);
  font-weight: 900;
  letter-spacing: var(--type-heading-tracking);
  line-height: 1.1;
}

.topic-meta {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--accent);
  font-size: var(--type-small-size);
  font-weight: 700;
  line-height: 1.35;
}

.topic-meta dt {
  display: none;
}

.topic-meta dd {
  margin: 0;
}

.topic p {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-small-size);
  line-height: 1.45;
}

.formats-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.formats .text-link {
  min-height: 40px;
  font-size: var(--type-small-size);
}

.steps {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: var(--measure-story);
  margin: 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr);
  gap: 14px;
  color: var(--muted);
  font-size: var(--type-body-size);
  line-height: 1.45;
}

.steps li::before {
  color: var(--accent);
  content: counter(step);
  counter-increment: step;
  font-family: var(--font-display);
  font-size: var(--type-label-size);
  font-weight: 900;
  line-height: 1.8;
}

.steps strong {
  display: block;
  color: var(--ink);
  font-weight: 720;
}

.channels {
  display: grid;
  gap: 14px;
}

.prose {
  display: grid;
  gap: 22px;
  width: 100%;
  max-width: var(--measure-story);
  margin: 0;
  color: var(--muted);
  font-size: var(--type-body-size);
  line-height: 1.55;
}

.prose p {
  margin: 0;
}

@media (max-width: 899px) {
  body.subpage {
    --rail: auto;
  }

  body.subpage .wordmark {
    width: min(60vw, 260px);
  }

  .page-head {
    margin-right: var(--page-pad);
    margin-left: var(--page-pad);
    padding-top: calc(var(--header-height) + clamp(36px, 12vw, 72px));
    background: var(--canvas);
    box-shadow: 0 0 0 100vmax var(--canvas);
    clip-path: inset(0 -100vmax);
    padding-bottom: clamp(32px, 8vw, 56px);
  }

  .page-head-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-photo {
    width: min(100%, 620px);
  }

  .topic {
    background: var(--canvas);
  }
}

@media (max-width: 620px) {
  .topics,
  .formats-two {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
}

.site-footer h2.footer-title-quiet {
  max-width: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--type-label-size);
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
}

.honors-intro .contact-lead {
  margin-top: 16px;
  font-size: var(--type-body-size);
}
