:root {
  --paper: #f6f5f2;
  --ink: #000000;
  --muted: rgba(0, 0, 0, 0.6);
  --line: #000000;
  --soft-line: rgba(0, 0, 0, 0.16);
  --panel: #ffffff;
  --accent: #d8ff2f;
  --accent-mint: #aee8d9;
  --accent-cyan: #c9eef8;
  --accent-pink: #f5b6c9;
  --accent-yellow: #ffe8a8;
  --brand-green: #0c493a;
  --brand-blue: #1f48b1;
  --brand-red: #9d1233;
  --brand-orange: #f17d10;
  --max: 1720px;
}

@font-face {
  font-family: "Konstant";
  src: url("assets/neuekonstantgrotesk-book.otf") format("opentype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Outfit", Helvetica Neue, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.28;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--muted);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 16px;
  border-right: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(246, 245, 242, 0.94);
  z-index: 20;
}

.rail-kicker,
.rail-links,
.rail-contact {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.shell .rail-kicker {
  font-size: 26px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.bio {
  margin-top: 16px;
  max-width: 232px;
}

.bio h1 {
  font-size: 25px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  margin: 0 0 10px;
}

.bio p {
  margin: 0;
  font-size: 22px;
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.rail-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
}

.home-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.rail-links a::after {
  content: " ->";
  color: var(--muted);
}

.rail-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.work {
  max-width: var(--max);
  padding: 18px 18px 72px;
}

.topbar {
  min-height: 54vh;
  border-bottom: 2px solid var(--line);
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
}

.statement {
  max-width: 1180px;
  align-self: start;
}

.statement h2 {
  margin: 0;
  font-size: clamp(54px, 7.4vw, 138px);
  line-height: 0.86;
  letter-spacing: -0.087em;
  font-weight: 800;
}

.statement .lead {
  max-width: 880px;
  margin: 24px 0 0;
  font-size: clamp(21px, 2.15vw, 40px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.signal-strip span {
  display: inline-flex;
  border: 2px solid var(--line);
  padding: 7px 10px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  font-weight: 800;
}

.section-title {
  margin: 18px 0 12px;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

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

.tile {
  display: flex;
  min-height: 385px;
  background: var(--panel);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.tile:hover {
  border-color: var(--line);
}

.tile.large {
  grid-column: span 7;
}

.tile.medium {
  grid-column: span 5;
}

.tile.small {
  grid-column: span 4;
  min-height: 315px;
}

.tile-inner {
  width: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mark {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--soft-line);
  margin: -18px -18px 16px;
  padding: 22px;
  background: #efeee9;
  overflow: hidden;
}

.mark span {
  display: block;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 0.78;
  letter-spacing: -0.11em;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.tile.small .mark span {
  font-size: clamp(42px, 6vw, 82px);
}

.tile.small .mark.mcd span,
.tile.small .mark.ymaps span,
.tile.small .mark.azure span {
  font-size: clamp(22px, 2.7vw, 38px);
  letter-spacing: -0.06em;
}

.mark.two-gis {
  background: var(--accent-mint);
}

.mark.two-gis span {
  color: var(--brand-green);
}

.mark.windows {
  background: var(--accent-cyan);
}

.mark.windows span {
  color: var(--brand-blue);
  font-size: clamp(30px, 4vw, 66px);
}

.mark.mcd {
  background: var(--accent-yellow);
}

.mark.mcd span,
.mark.ymaps span,
.mark.azure span {
  font-size: clamp(22px, 2.55vw, 38px);
  letter-spacing: -0.06em;
}

.mark.ymaps {
  background: var(--accent-pink);
}

.mark.ymaps span {
  color: var(--brand-red);
}

.mark.xbox {
  background: var(--accent-mint);
}

.mark.xbox span {
  color: var(--brand-green);
}

.mark.azure {
  background: var(--accent-cyan);
}

.mark.azure span {
  color: var(--brand-blue);
}

.mark.ey {
  background: var(--accent-yellow);
}

.mark.ey span {
  color: var(--brand-orange);
}

.tile-title {
  margin: 0;
  font-size: 23px;
  line-height: 0.96;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.tile-meta {
  color: var(--muted);
  margin-top: 2px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tile-copy {
  margin: 12px 0 0;
  max-width: 540px;
  font-size: 16px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.proof {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 34px;
}

.proof-item {
  min-height: 152px;
  padding: 14px;
  border-top: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
}

.proof-brand {
  display: block;
  margin-bottom: 14px;
  color: rgba(16, 16, 16, 0.62);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.proof-item strong {
  display: block;
  font-size: clamp(22px, 1.75vw, 32px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  margin-bottom: 10px;
}

.proof-item p {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.proof-link {
  display: inline-flex;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.proof-link::after {
  content: " ->";
}

.proof-link:hover {
  color: var(--ink);
}

.case-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.case-main {
  padding: 18px;
  max-width: var(--max);
}

.case-hero {
  min-height: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: 18px;
  border-bottom: 2px solid var(--line);
}

.case-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.case-wordmark span {
  display: block;
  font-size: clamp(82px, 13vw, 230px);
  line-height: 0.74;
  letter-spacing: -0.12em;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.case-wordmark.mark.windows span,
.case-wordmark.mark.mcd span,
.case-wordmark.mark.ymaps span,
.case-wordmark.mark.azure span {
  font-size: clamp(44px, 5.4vw, 90px);
  letter-spacing: -0.08em;
}

.case-intro {
  align-self: start;
}

.case-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 4.35vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.case-intro p {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 800;
}

.case-intro p.case-intro-compact {
  font-size: clamp(19px, 1.45vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 28px;
}

.case-meta div {
  border-top: 2px solid var(--line);
  padding-top: 8px;
}

.case-meta span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.case-meta b {
  font-size: 18px;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.case-section {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 28px;
  border-top: 2px solid var(--line);
  padding: 18px 0 28px;
}

.case-section h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.case-section p,
.case-section li {
  max-width: 980px;
  font-size: clamp(17px, 1.22vw, 23px);
  line-height: 1.2;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.case-section p {
  margin: 0 0 14px;
}

.case-section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.case-section li {
  padding: 0 0 14px 28px;
  position: relative;
}

.case-section li::before {
  content: "->";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
}

.result-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  margin-bottom: 18px;
  border: 2px solid var(--line);
  background: var(--accent);
}

.result-item {
  min-height: 108px;
  padding: 14px 15px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.result-item:nth-child(2n) {
  border-right: 0;
}

.result-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.result-item span {
  display: block;
  margin-bottom: 14px;
  color: rgba(16, 16, 16, 0.62);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.result-item strong {
  display: block;
  max-width: 760px;
  font-size: clamp(21px, 1.9vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 900;
}

.result-note {
  max-width: 1120px;
  color: rgba(16, 16, 16, 0.72);
}

.result-cluster {
  margin-top: 30px;
}

.result-cluster:first-of-type {
  margin-top: 24px;
}

.result-cluster h3 {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(25px, 2.45vw, 46px);
  line-height: 0.92;
  letter-spacing: -0.068em;
}

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

.result-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-grid-compact {
  max-width: 780px;
}

.result-card {
  min-height: 178px;
  padding: 15px 16px 17px;
  border: 2px solid var(--line);
  background: var(--accent);
}

.result-card-wide {
  grid-column: 1 / -1;
}

.result-card span {
  display: block;
  margin-bottom: 18px;
  color: rgba(16, 16, 16, 0.62);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.result-card strong {
  display: block;
  max-width: 920px;
  font-size: clamp(22px, 1.75vw, 34px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 900;
}

.result-card p {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.method-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 18px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.method-map article {
  min-height: 150px;
  padding: 14px 15px 16px;
  border-right: 1px solid var(--line);
}

.method-map article:last-child {
  border-right: 0;
}

.method-map span,
.attribute-grid span {
  display: block;
  margin-bottom: 16px;
  color: rgba(16, 16, 16, 0.62);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.method-map strong {
  display: block;
  font-size: clamp(17px, 1.22vw, 24px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 900;
}

.method-map-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 960px;
}

.consulting-frame {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 0;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.consulting-frame article {
  min-height: 220px;
  padding: 14px 15px 16px;
  border-right: 1px solid var(--line);
}

.consulting-frame article:last-child {
  border-right: 0;
}

.consulting-frame span,
.consulting-recommendation span {
  display: block;
  margin-bottom: 14px;
  color: rgba(16, 16, 16, 0.62);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.consulting-frame strong,
.consulting-recommendation strong {
  display: block;
  font-size: clamp(21px, 1.6vw, 31px);
  line-height: 0.98;
  letter-spacing: -0.058em;
  font-weight: 900;
}

.consulting-frame p,
.consulting-recommendation p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(16, 16, 16, 0.78);
  font-size: clamp(15px, 0.96vw, 18px);
  line-height: 1.16;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.consulting-recommendation {
  margin: 14px 0 18px;
  padding: 15px 16px 17px;
  border: 2px solid var(--line);
  background: var(--accent);
}

.consulting-recommendation strong {
  max-width: 980px;
  font-size: clamp(24px, 2.2vw, 42px);
  line-height: 0.94;
}

.consulting-recommendation p {
  max-width: 860px;
  color: var(--ink);
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 18px 0;
  border: 2px solid var(--line);
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.attribute-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.attribute-grid article {
  min-height: 150px;
  padding: 14px 15px 16px;
  border-top: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.attribute-grid span {
  color: var(--ink);
  font-size: clamp(28px, 2.45vw, 46px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.attribute-grid p {
  max-width: 420px;
  margin: 0;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.15;
  letter-spacing: -0.028em;
}

.visual-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.visual-case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-top: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.46);
}

.visual-case-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}

.visual-case-card figure {
  margin: 0;
  background: #efeee9;
  border-bottom: 1px solid var(--soft-line);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.visual-case-card-wide figure {
  border-right: 0;
  border-bottom: 1px solid var(--soft-line);
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.visual-case-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.visual-case-card-wide img {
  object-fit: contain;
  background: #ffffff;
}

.visual-case-card-wide .visual-case-copy {
  display: block;
}

.visual-case-copy {
  padding: 15px 16px 18px;
}

.visual-case-copy span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.visual-case-copy h3 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(24px, 2.2vw, 42px);
  line-height: 0.93;
  letter-spacing: -0.065em;
}

.visual-case-copy p {
  max-width: 820px;
  margin: 0 0 12px;
  font-size: clamp(16px, 1.05vw, 20px);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 700;
}

.visual-case-copy p:last-child {
  margin-bottom: 0;
}

.pager {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--line);
  padding-top: 12px;
  margin-top: 32px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Typography roles from the Figma type specimen (node 2:546). */
.statement h2,
.proof-item strong,
.tile-title,
.case-intro h1,
.result-item strong,
.result-cluster h3,
.result-card strong,
.method-map strong,
.consulting-frame strong,
.consulting-recommendation strong,
.attribute-grid span,
.visual-case-copy h3 {
  font-family: "Boldonse", Helvetica Neue, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.16;
}

.statement .lead,
.section-title,
.proof-brand,
.proof-item p,
.proof-link,
.tile-meta,
.tile-copy,
.case-intro p,
.case-meta,
.case-section h2,
.case-section p,
.case-section li,
.result-item span,
.result-card span,
.result-card p,
.method-map span,
.consulting-frame span,
.consulting-frame p,
.consulting-recommendation span,
.consulting-recommendation p,
.attribute-grid p,
.visual-case-copy span,
.visual-case-copy p,
.pager {
  font-family: "Outfit", Helvetica Neue, Arial, sans-serif;
  letter-spacing: 0;
}

.shell .rail-kicker,
.bio p {
  font-family: "Outfit", Helvetica Neue, Arial, sans-serif;
  letter-spacing: 0;
}

.shell .rail-kicker {
  font-weight: 700;
}

.bio p {
  font-weight: 600;
}

.statement h2 {
  font-size: clamp(52px, 5vw, 76px);
}

.proof-item strong {
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.24;
}

.tile-title {
  font-size: clamp(19px, 1.4vw, 23px);
  line-height: 1.26;
}

.case-intro h1 {
  font-size: clamp(36px, 3.35vw, 58px);
}

.result-cluster h3 {
  font-size: clamp(24px, 2vw, 36px);
}

.result-item strong,
.result-card strong {
  font-size: clamp(19px, 1.45vw, 27px);
}

.method-map strong {
  font-size: clamp(16px, 1.05vw, 21px);
}

.consulting-frame strong {
  font-size: clamp(18px, 1.25vw, 24px);
}

.consulting-recommendation strong {
  font-size: clamp(22px, 1.8vw, 33px);
}

.attribute-grid span {
  font-size: clamp(24px, 2vw, 36px);
}

.visual-case-copy h3 {
  font-size: clamp(22px, 1.75vw, 32px);
}

.statement .lead {
  max-width: 900px;
  font-size: clamp(20px, 1.55vw, 22px);
  line-height: 1.5;
  font-weight: 400;
}

.proof-item p,
.tile-copy {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
}

.case-intro p,
.case-intro p.case-intro-compact {
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.42;
  font-weight: 400;
}

.case-section p,
.case-section li {
  font-size: clamp(17px, 1.05vw, 20px);
  line-height: 1.42;
  font-weight: 400;
}

.result-card p,
.consulting-frame p,
.consulting-recommendation p,
.attribute-grid p,
.visual-case-copy p {
  font-size: clamp(16px, 0.95vw, 18px);
  line-height: 1.38;
  font-weight: 400;
}

.section-title,
.case-section h2 {
  font-weight: 500;
}

.mark span,
.case-wordmark span {
  font-family: "Konstant", Helvetica Neue, Arial, sans-serif;
}

.mark.windows span,
.mark.azure span,
.case-wordmark.mark.windows span,
.case-wordmark.mark.azure span {
  line-height: 1.04;
  letter-spacing: -0.06em;
}

@media (min-width: 981px) and (max-width: 1180px) {
  .proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .shell,
  .case-shell {
    display: block;
  }

  .rail {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 2px solid var(--line);
    gap: 26px;
  }

  .bio p {
    max-width: 530px;
  }

  .topbar,
  .case-hero,
  .case-section,
  .visual-case-card-wide {
    grid-template-columns: 1fr;
  }

  .topbar {
    min-height: auto;
    padding-bottom: 30px;
  }

  .case-hero {
    min-height: 0;
    gap: 14px;
    padding-bottom: 18px;
  }

  .case-wordmark {
    min-height: 86px;
    margin: 0;
    padding: 14px 16px;
    justify-content: flex-start;
    border-bottom: 0;
  }

  .case-wordmark span {
    font-size: clamp(34px, 9vw, 48px);
    line-height: 1;
    letter-spacing: -0.08em;
    text-align: left;
  }

  .case-wordmark.mark.windows span,
  .case-wordmark.mark.mcd span,
  .case-wordmark.mark.ymaps span,
  .case-wordmark.mark.azure span {
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.04;
    letter-spacing: -0.06em;
  }

  .case-meta,
  .result-panel,
  .result-grid,
  .method-map,
  .attribute-grid,
  .consulting-frame,
  .visual-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  .consulting-frame article:nth-child(2n) {
    border-right: 0;
  }

  .consulting-frame article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .method-map article:nth-child(2n) {
    border-right: 0;
  }

  .method-map article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .visual-case-card-wide figure {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .visual-case-card-wide .visual-case-copy {
    display: block;
  }

  .tile.large,
  .tile.medium,
  .tile.small {
    grid-column: span 12;
  }
}

@media (max-width: 640px) {
  .work,
  .case-main {
    padding: 12px;
  }

  .case-meta,
  .proof,
  .method-map,
  .attribute-grid,
  .consulting-frame,
  .visual-case-grid {
    grid-template-columns: 1fr;
  }

  .proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 24px;
  }

  .proof-item {
    min-height: 0;
    padding: 10px 12px 12px;
  }

  .proof-brand {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .proof-item strong {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.2;
  }

  .proof-item p {
    font-size: 15px;
    line-height: 1.25;
  }

  .proof-link {
    padding-top: 12px;
  }

  .result-panel,
  .result-grid {
    margin-top: 10px;
    margin-bottom: 14px;
  }

  .result-grid {
    gap: 8px;
  }

  .result-item,
  .result-card {
    min-height: 0;
    padding: 11px 12px 12px;
  }

  .result-item span,
  .result-card span {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .result-item strong,
  .result-card strong {
    font-family: "Outfit", Helvetica Neue, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.22;
    letter-spacing: 0;
    font-weight: 600;
  }

  .result-card p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.3;
  }

  .consulting-frame article,
  .consulting-frame article:nth-child(2n),
  .consulting-frame article:nth-child(n + 3) {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .consulting-frame article:last-child {
    border-bottom: 0;
  }

  .method-map article,
  .method-map article:nth-child(2n),
  .method-map article:nth-child(n + 3) {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-map article:last-child {
    border-bottom: 0;
  }

  .tile {
    min-height: 300px;
  }

  .topbar {
    padding-bottom: 26px;
  }

  .case-wordmark {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 479px) {
  .result-panel,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-item,
  .result-item:nth-child(2n),
  .result-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .result-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 359px) {
  .proof {
    grid-template-columns: 1fr;
  }
}

@media print {
  :root {
    --paper: #ffffff;
  }

  body {
    background: #ffffff;
  }

  .rail,
  .pager,
  .section-title,
  .project-grid,
  .proof {
    display: none;
  }

  .shell,
  .case-shell {
    display: block;
  }

  .case-main,
  .work {
    padding: 0;
  }

  .case-hero {
    min-height: auto;
    display: block;
  }

  .case-wordmark {
    min-height: 120px;
    justify-content: flex-start;
  }

  .case-wordmark span {
    font-size: 72px;
    text-align: left;
  }

  .case-section {
    page-break-inside: avoid;
  }

  .case-section p,
  .case-section li {
    font-size: 18px;
    line-height: 1.08;
  }
}
