@font-face {
  font-family: "Unbounded";
  src: url("fonts/unbounded/Unbounded-wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope/manrope-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F, U+1C80-1C8F;
}

@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF;
}

:root {
  --paper: #f3ede3;
  --paper-soft: #faf6ef;
  --paper-deep: #e8ded0;
  --ink: #16191f;
  --ink-soft: #34383f;
  --muted: #61615f;
  --line: #c7bdae;
  --accent: #ff6138;
  --white: #fffdf8;
  --radius-xl: 2.5rem;
  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --shell: 80rem;
  --section-space: clamp(5.5rem, 10vw, 9rem);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  background: var(--paper);
  color: var(--ink);
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--accent);
  outline-offset: 0.25rem;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.06;
  text-wrap: balance;
}

figure {
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
}

h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(2.25rem, 5.2vw, 5rem);
  font-weight: 610;
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.shell {
  width: min(calc(100% - clamp(2rem, 6vw, 5rem)), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.65rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  display: grid;
  grid-template-columns: minmax(11rem, auto) 1fr auto;
  gap: 1.5rem;
  align-items: center;
  min-height: 6.5rem;
  padding-block: 1rem;
}

.identity {
  display: inline-flex;
  flex-direction: column;
  justify-self: start;
  text-decoration: none;
}

.identity__name {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.identity__role {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-0.15rem);
}

.button--small {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}

.button--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0.32rem 0.32rem 0 var(--accent);
}

.button--outline {
  background: transparent;
  color: var(--ink);
}

.button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.button--dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to right, transparent calc(100% - 1px), rgba(22, 25, 31, 0.06) 1px),
    linear-gradient(to bottom, transparent calc(100% - 1px), rgba(22, 25, 31, 0.06) 1px),
    var(--paper);
  background-size: clamp(4rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: clamp(4rem, 8vw, 7rem);
  right: clamp(-7rem, -3vw, -2rem);
  width: clamp(12rem, 25vw, 24rem);
  aspect-ratio: 1;
  border: clamp(2rem, 5vw, 5rem) solid var(--accent);
  border-radius: 50%;
  content: "";
  opacity: 0.96;
}

.hero__inner {
  padding-block: clamp(4.5rem, 7vw, 7rem) clamp(4.5rem, 8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.8rem;
  height: 0.18rem;
  background: var(--accent);
  content: "";
}

.eyebrow--light {
  color: var(--paper-deep);
}

.hero h1 {
  max-width: 62rem;
  margin-bottom: 2rem;
  font-size: clamp(3.2rem, 5.4vw, 5.8rem);
  font-weight: 650;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: inline;
}

.hero__support {
  display: grid;
  max-width: 70rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
}

.hero__lead {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem;
}

.hero__responsibility {
  display: flex;
  max-width: 44rem;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero__responsibility span {
  color: var(--accent);
}

.system-trace {
  display: grid;
  grid-template-columns: auto minmax(2rem, 1fr) auto minmax(2rem, 1fr) auto;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.system-trace__node {
  display: grid;
  gap: 0.15rem;
}

.system-trace__node span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.65rem;
}

.system-trace__node strong {
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.25vw, 1rem);
  letter-spacing: -0.02em;
}

.system-trace__line {
  position: relative;
  height: 1px;
  margin-inline: 1rem;
  background: var(--ink);
}

.system-trace__line::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.55rem;
  height: 0.55rem;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  content: "";
}

.projects {
  background: var(--paper-deep);
}

.projects__stage-head,
.projects__stage-hint {
  display: none;
}

.section-intro {
  max-width: 64rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.section-intro > p:last-child {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
  box-shadow: 0.8rem 0.8rem 0 var(--accent);
}

.case + .case {
  margin-top: clamp(3.5rem, 7vw, 6.5rem);
}

.case--autohome {
  background: var(--white);
  box-shadow: 0.8rem 0.8rem 0 var(--ink);
}

.case--proof {
  background: var(--paper);
}

.case__overview {
  display: grid;
  grid-template-columns: minmax(21rem, 0.86fr) minmax(0, 1.14fr);
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.case__lead {
  min-width: 0;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.case__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.case__title-row h3 {
  margin-bottom: 0;
  font-size: clamp(2.5rem, 4.2vw, 3.75rem);
}

.status {
  max-width: 24rem;
  margin-bottom: 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

.case__result {
  max-width: 54rem;
  margin: 0.8rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.15vw, 1.95rem);
  font-weight: 510;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.case__date {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-card {
  position: relative;
  min-width: 0;
  margin-bottom: 0;
}

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

.case--autohome .case__media-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
}

.case__media-grid--proof {
  grid-template-columns: minmax(0, 1.28fr) minmax(10rem, 0.72fr);
}

.case--vero .media-card--supporting,
.case--proof .media-card--supporting {
  width: min(100%, 14rem);
  justify-self: end;
}

.media-card__frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
}

.media-card__frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.media-card__frame--light {
  background: var(--white);
}

.media-card__frame--portrait {
  aspect-ratio: auto;
}

.media-card__frame:hover,
.media-card__frame:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.media-card__open {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: rgba(22, 25, 31, 0.88);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.media-card figcaption {
  padding: 0.8rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.media-card figcaption span {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case__snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  border-block: 1px solid var(--line);
}

.case-snapshot-item {
  min-width: 0;
  padding: 0.85rem 1rem;
  border-left: 1px solid var(--line);
}

.case-snapshot-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.case-snapshot-item:last-child {
  padding-right: 0;
}

.case-snapshot-item p {
  margin-bottom: 0;
}

.case-snapshot-item .case-step__label {
  margin-bottom: 0.45rem;
}

.case-step {
  display: grid;
  grid-template-columns: minmax(7rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line);
}

.case-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-step p {
  margin-bottom: 0;
}

.case-step__label {
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.case__actions-row {
  display: flex;
  justify-content: flex-end;
}

.case__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.case-details {
  display: none;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

html:not(.details-managed) .case-details:target,
.case-details.is-expanded {
  display: block;
}

.case-details__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-details__head .eyebrow {
  margin-bottom: 0.6rem;
}

.case-details__head h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.case-details__close {
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
}

.case-details__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2rem;
}

.case-details__grid .case-step:nth-child(2) {
  padding-top: 0;
  border-top: 0;
}

.approach {
  background: var(--ink);
  color: var(--white);
}

.approach__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.approach h2 {
  margin-bottom: 2.5rem;
}

.approach__intro > p:last-child {
  margin-bottom: 0;
  color: var(--paper-deep);
}

.approach__statement {
  max-width: 32rem;
  margin-bottom: 1.25rem;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

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

.principles li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(243, 237, 227, 0.28);
}

.principles li:last-child {
  border-bottom: 1px solid rgba(243, 237, 227, 0.28);
}

.principles__number {
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 650;
}

.principles__title {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

.principles p {
  margin-bottom: 0;
  color: var(--paper-deep);
}

.capabilities {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1rem;
}

.capabilities span {
  padding: 0.55rem 0.78rem;
  border: 1px solid rgba(243, 237, 227, 0.38);
  border-radius: 999px;
  color: var(--paper-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.approach__cta {
  grid-column: 1 / -1;
  justify-self: end;
}

.more-projects {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 97, 56, 0.08), transparent 34%),
    var(--paper);
}

.section-intro--compact {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.compact-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.compact-project {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.35rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
}

.compact-project--tg {
  background: var(--paper-soft);
  box-shadow: 0.55rem 0.55rem 0 var(--accent);
}

.compact-project--brain {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.compact-project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.compact-project h3 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
}

.compact-project .status {
  max-width: 19rem;
}

.compact-project--brain .status {
  border-color: rgba(243, 237, 227, 0.48);
  color: var(--paper-deep);
}

.compact-project__result {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.compact-media {
  min-width: 0;
}

.compact-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--ink);
  object-fit: contain;
}

.compact-project--brain .compact-media img {
  border-color: rgba(243, 237, 227, 0.38);
}

.compact-media figcaption {
  padding: 0.75rem 0.2rem 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-project--brain .compact-media figcaption {
  color: var(--paper-deep);
}

.compact-project__body {
  display: grid;
  gap: 1rem;
}

.compact-project__body p {
  margin-bottom: 0;
}

.compact-project__body strong {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.compact-project > .button {
  align-self: flex-start;
  margin-top: auto;
}

.more-projects__cta {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about {
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.about h2 {
  max-width: 72rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.portrait {
  margin-bottom: 0;
}

.portrait img {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--paper-deep);
  box-shadow: 0.7rem 0.7rem 0 var(--accent);
}

.portrait figcaption {
  padding: 0.9rem 0.3rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.about__copy {
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.about__copy p {
  margin-bottom: 1.5rem;
}

.about__copy .button {
  margin-top: 0.5rem;
}

.contact {
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: var(--accent);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
}

.contact .eyebrow {
  color: var(--ink);
}

.contact .eyebrow::before {
  background: var(--ink);
}

.contact h2 {
  max-width: 54rem;
}

.contact__copy > p:not(.eyebrow) {
  max-width: 44rem;
  font-size: 1.08rem;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  align-items: center;
  margin-top: 2rem;
}

.contact__actions > a:not(.button) {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-weight: 800;
}

.brief {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--white);
}

.brief__label {
  margin-bottom: 1.5rem !important;
  color: var(--accent);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brief p {
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

.brief p:last-child {
  margin-bottom: 0;
}

.brief span {
  display: block;
  color: var(--paper-deep);
  font-weight: 800;
}

.site-footer {
  padding-bottom: 2rem;
  background: var(--accent);
}

.contact__footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--ink);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

html.lightbox-open,
html.lightbox-open body {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 25, 31, 0.78);
  backdrop-filter: blur(0.35rem);
}

.lightbox__dialog {
  position: relative;
  display: grid;
  width: min(100%, 76rem);
  max-height: calc(100dvh - clamp(1.5rem, 4vw, 3rem));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--paper-soft);
  box-shadow: 0.75rem 0.75rem 0 var(--accent);
}

.lightbox__header,
.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.lightbox__header {
  border-bottom: 1px solid var(--line);
}

.lightbox__header h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.7vw, 2.1rem);
}

.lightbox__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lightbox__header-actions,
.lightbox__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.lightbox__count {
  min-width: 3.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 650;
  text-align: center;
}

.lightbox__close {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lightbox__stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 97, 56, 0.08), transparent 28%, transparent 72%, rgba(255, 97, 56, 0.08)),
    var(--ink);
}

.lightbox__image-button {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: min(54vh, 28rem);
  place-items: center;
  padding: 1rem;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.lightbox__image {
  width: 100%;
  height: 100%;
  max-height: min(58vh, 38rem);
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 150ms ease,
    transform 180ms ease;
}

.lightbox__stage.is-switching .lightbox__image {
  opacity: 0.18;
  transform: scale(0.985);
}

.lightbox__pointer-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  padding: 0.35rem 0.6rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 253, 248, 0.7);
  border-radius: 999px;
  background: rgba(22, 25, 31, 0.75);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  pointer-events: none;
}

.lightbox__footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
}

.lightbox__caption {
  max-width: 35rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.lightbox__nav {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.75rem;
}

.lightbox__original {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 64rem) {
  .site-header__inner {
    grid-template-columns: auto 1fr;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-header__inner > .button {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .case {
    gap: 1.75rem 2rem;
  }

  .case-step {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 55rem) {
  .case--vero .media-card--supporting,
  .case--proof .media-card--supporting {
    justify-self: start;
  }

  .site-header__inner,
  .hero__support,
  .case__overview,
  .case__media-grid,
  .case__snapshot,
  .case-details__grid,
  .approach__grid,
  .compact-projects,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__support {
    align-items: start;
    gap: 1.35rem;
  }

  .actions {
    justify-content: flex-start;
  }

  .site-header__inner {
    gap: 0.8rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-header__inner > .button {
    grid-column: auto;
    justify-self: start;
  }

  .hero::after {
    top: 7rem;
    right: -7rem;
    opacity: 0.65;
  }

  .case-snapshot-item {
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .case-snapshot-item:first-child {
    border-top: 0;
  }

  .case__lead {
    padding-right: 0;
    padding-bottom: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .case__actions {
    justify-content: flex-start;
  }

  .case--autohome .case__media-grid,
  .case__media-grid--proof {
    grid-template-columns: 1fr;
  }

  .case-details__grid .case-step:nth-child(2) {
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
  }

  .approach__cta {
    justify-self: start;
  }

  .about__grid {
    align-items: start;
  }

  .portrait {
    width: min(100%, 31rem);
  }

  .about__copy {
    max-width: 46rem;
  }
}

@media (max-width: 38rem) {
  :root {
    --radius-xl: 1.75rem;
    --radius-lg: 1.25rem;
    --section-space: 4.5rem;
  }

  .shell {
    width: min(calc(100% - 1.75rem), var(--shell));
  }

  .site-header__inner {
    min-height: 0;
    padding-block: 1.25rem;
  }

  .identity__name {
    font-size: 0.82rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 0.1rem 0.75rem;
  }

  .site-nav a {
    min-height: 2.75rem;
  }

  .site-header__inner > .button {
    width: 100%;
  }

  .hero__inner {
    padding-top: 4.5rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.15rem);
    letter-spacing: -0.055em;
  }

  .hero h1 span {
    display: inline;
  }

  .actions {
    display: grid;
  }

  .actions .button {
    width: 100%;
  }

  .hero__responsibility {
    align-items: flex-start;
  }

  .system-trace {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .system-trace__node {
    grid-template-columns: 2rem 1fr;
    align-items: center;
  }

  .system-trace__line {
    width: 1px;
    height: 1.4rem;
    margin-left: 0.9rem;
  }

  .system-trace__line::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .case {
    gap: 1.7rem;
    padding: 1.05rem;
    box-shadow: 0.42rem 0.42rem 0 var(--accent);
  }

  .media-card__frame {
    aspect-ratio: auto;
  }

  .media-card__frame--portrait {
    aspect-ratio: auto;
  }

  .case__title-row {
    align-items: flex-start;
  }

  .case__title-row h3 {
    font-size: 2.55rem;
  }

  .status {
    border-radius: 0.85rem;
  }

  .case-step {
    padding-block: 1rem;
  }

  .facts {
    display: flex;
  }

  .facts li {
    border-radius: 0.8rem;
  }

  .case__actions,
  .case__actions .button,
  .approach__cta,
  .about__copy .button {
    width: 100%;
  }

  .principles li {
    grid-template-columns: 2.4rem 1fr;
  }

  .portrait {
    width: 100%;
  }

  .portrait img {
    box-shadow: 0.42rem 0.42rem 0 var(--accent);
  }

  .contact__actions {
    display: grid;
    align-items: stretch;
  }

  .contact__actions .button,
  .contact__actions > a:not(.button) {
    width: 100%;
  }

  .contact__footer {
    flex-direction: column;
  }

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

  .lightbox {
    padding: 0.5rem;
  }

  .lightbox__dialog {
    max-height: calc(100dvh - 1rem);
    border-radius: 1.25rem;
    box-shadow: 0.35rem 0.35rem 0 var(--accent);
  }

  .lightbox__header,
  .lightbox__footer {
    align-items: stretch;
    padding: 0.8rem;
  }

  .lightbox__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .lightbox__header-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
  }

  .lightbox__header h2 {
    font-size: 1.05rem;
  }

  .lightbox__footer {
    flex-direction: column;
  }

  .lightbox__image-button {
    min-height: min(48vh, 24rem);
    padding: 0.55rem;
  }

  .lightbox__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .lightbox__nav,
  .lightbox__original {
    width: 100%;
  }

  .lightbox__original {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .lightbox__pointer-hint {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .lightbox__pointer-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .lightbox__stage.is-switching .lightbox__image {
    opacity: 1;
    transform: none;
  }
}
