/* metr-site */
:root {
  --ink: #142033;
  --muted: #5c6572;
  --accent: #0c4cb3;
  --accent-deep: #0a3d8f;
  --accent-bright: #1557c0;
  --taupe: var(--accent);
  --line: #d5dee8;
  --paper: #f4f7fb;
  --mist: #e8eef6;
  --navy: #0c4cb3;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
  --header: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(16, 42, 84, 0.08);
  --radius: 22px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: #d4e4f8; color: #122033; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 10px;
}
.skip:focus { top: 12px; }
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 70;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--navy);
}
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
}
.eyebrow.light { color: rgba(255, 255, 255, 0.7); }
h1, .display, .serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.5rem, 4.6vw, 4.15rem);
  line-height: 1.06;
  color: var(--ink);
}
.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46ch;
  text-wrap: pretty;
}
.display + .lede, h1 + .lede, .lede + .text-link { margin-top: 16px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link span { transition: transform 0.35s var(--ease); }
.text-link:hover span { transform: translateX(4px); }
.fine a, .legal a, .contact-list a, .work a, .client a { color: var(--accent); }
.fine a:hover, .legal a:hover, .contact-list a:hover, .work a:hover, .client a:hover { color: var(--accent-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}
.btn:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.88rem; white-space: nowrap; }
.btn-light { background: #fff; color: var(--accent-deep); }
.btn-light:hover { background: #e7f0fb; color: var(--accent-deep); }

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  background: color-mix(in srgb, white 88%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.header.scrolled, .header.nav-open {
  background: color-mix(in srgb, white 92%, transparent);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06);
}
.home .header:not(.scrolled):not(.nav-open) {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.header-inner {
  height: var(--header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.logo {
  justify-self: start;
  display: inline-grid;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #1e5cbb;
  transition: transform 0.35s var(--ease);
}
.logo:hover { transform: scale(1.04); }
.logo-mark {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
  box-shadow: none;
  transform: scale(1.035);
}
.nav { justify-self: center; }
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #3a4250; padding: 8px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.header-cta { justify-self: end; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border-radius: 50%; }
.burger, .burger::before, .burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), background 0.3s;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-open .burger { background: transparent; }
.nav-open .burger::before { top: 0; transform: rotate(45deg); }
.nav-open .burger::after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 12px) 0 72px;
  overflow: hidden;
  background: linear-gradient(105deg, #f8fafc 0%, #eef3f9 38%, #e4eef8 72%, #d7e6f5 100%);
}
.hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(70vw, 980px);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
  mask-image: linear-gradient(90deg, transparent, #000 28%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 62%;
  filter: saturate(0.86) contrast(1.04);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; }
.hero-copy { max-width: 560px; }
.hero h1 { font-size: clamp(3.3rem, 6.3vw, 5.35rem); line-height: 1.02; max-width: 11ch; }
.hero-copy .lede { margin-top: 22px; color: #3e4653; }
.scroll-hint {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  padding-top: 6px;
}
.mouse span {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--accent);
  animation: wheel 1.4s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

.section { padding: 108px 0; }
.stories-layout {
  display: grid;
  grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
  gap: 36px 32px;
  align-items: center;
}
.story-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.story-card { border-radius: 18px; overflow: hidden; background: #1b2430; min-height: 430px; }
.story-card a { position: relative; display: block; min-height: 430px; height: 100%; color: #fff; }
.story-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.story-card a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.05) 25%, rgba(8, 12, 18, 0.78) 100%);
}
.story-card div { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.story-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.story-card p { margin-top: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); }
.story-card:hover img { transform: scale(1.06); }

.products { background: var(--mist); }
.section-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px 48px;
  align-items: end;
  margin-bottom: 34px;
}
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-card {
  container-type: inline-size;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(20, 28, 45, 0.04);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(16, 42, 84, 0.12); }
.product-card a { display: flex; flex-direction: column; height: 100%; }
.product-media { aspect-ratio: 4 / 3; overflow: hidden; background: #e7ebf0; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product-card:hover img { transform: scale(1.05); }
.product-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 20px 18px; }
.product-card h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -0.02em; }
.product-card p { color: var(--muted); font-size: 0.92rem; }
.product-go { margin-top: auto; align-self: end; padding-top: 12px; transition: transform 0.3s var(--ease); }
.product-card:hover .product-go { transform: translateX(4px); }
@container (max-width: 220px) {
  .product-body { padding: 14px; }
  .product-card h3 { font-size: 1rem; }
}

.experience-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy media" "steps media";
  column-gap: 64px;
  row-gap: 36px;
}
.experience-copy { grid-area: copy; }
.steps {
  grid-area: steps;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.step-kicker { display: block; font-weight: 700; margin-bottom: 4px; }
.step-title { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.experience-media {
  grid-area: media;
  position: relative;
  min-height: 620px;
  border-radius: 28px;
  overflow: hidden;
  background: #dfe6ee;
}
.experience-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 18% center;
}

.impact {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 78% 50%, rgba(21, 87, 192, 0.42), transparent 36%), #071833;
  color: #fff;
}
.impact .container { position: relative; z-index: 1; }
.impact-copy { max-width: 540px; }
.impact .display, .finale .display { color: #fff; }
.impact .lede { color: rgba(255, 255, 255, 0.78); }
.impact .text-link { color: #fff; }
.impact-art {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(720px, 58vw);
  transform: translateY(-50%);
  pointer-events: none;
}

.quotes { padding: 120px 0; text-align: center; }
.quote-layout {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}
.quote-btn { display: none; }
.js .quote-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.js .quote-btn:hover { background: var(--accent); color: #fff; }
.quote p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  max-width: 18em;
  margin-inline: auto;
}
.quote figcaption { margin-top: 18px; color: var(--muted); font-size: 0.95rem; }
.js .quote:not(.is-active) { display: none; }
.js .quote.is-active { animation: quote-in 0.5s var(--ease); }
@keyframes quote-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.finale {
  color: #fff;
  background-color: #071833;
  background-image:
    linear-gradient(180deg, rgba(10, 45, 102, 0.42) 0%, rgba(8, 32, 78, 0.64) 36%, rgba(6, 22, 56, 0.93) 78%),
    url("../assets/images/mountains.jpg");
  background-size: cover;
  background-position: center 42%;
}
.finale-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 32px 40px;
  align-items: end;
  padding: 124px 0 72px;
}
.finale .display { font-size: clamp(2.8rem, 5vw, 4.5rem); }
.finale-aside p { color: rgba(255, 255, 255, 0.86); max-width: 34ch; margin-bottom: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.footer-brand p, .footer a { color: rgba(255, 255, 255, 0.8); }
.footer-brand p + p { margin-top: 4px; }
.footer .logo { width: 60px; height: 60px; margin-bottom: 14px; }
.footer-nav, .footer-contact { display: grid; gap: 8px; align-content: start; }
.footer a:hover { color: #fff; }
.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 0 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}
.footer-legal { display: flex; gap: 8px; }
.finale > .footer:first-child { padding-top: 64px; }

.page-hero {
  padding: calc(var(--header) + 72px) 0 20px;
  background:
    radial-gradient(900px 280px at 90% -20%, rgba(12, 76, 179, 0.12), transparent 70%),
    linear-gradient(#eef3f9, #f4f7fb 72%);
}
.page-hero h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1.02; max-width: 14ch; }
.page-hero .lede { margin-top: 18px; font-size: 1.08rem; }
.band { padding: 28px 0 80px; }
.story-band, .service, .case, .contact-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}
.story-band img, .frame img, .service-media img, .case-media img { width: 100%; height: 100%; object-fit: cover; }
.story-band img, .frame {
  border-radius: 24px;
  min-height: 360px;
  height: 420px;
  object-fit: cover;
  background: #e7ebf0;
}
.frame { overflow: hidden; }
.principles, .method { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.method { grid-template-columns: 1fr 1fr; }
.principle, .method article { background: var(--mist); border-radius: 20px; padding: 26px; }
.principle h3, .method h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.principle p, .method p { color: var(--muted); }
.num { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 2rem; color: var(--navy); }
.timeline { margin-top: 8px; }
.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline b { color: var(--navy); }
.timeline p { color: var(--muted); }
.subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  margin: 10px 0 22px;
}
.chip-row {
  position: sticky;
  top: var(--header);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 18px;
  background: color-mix(in srgb, white 90%, transparent);
  backdrop-filter: blur(12px);
}
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3c4350;
  background: #fff;
}
.chip:hover { border-color: var(--accent-bright); color: var(--accent); }
.chip.is-active, .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.is-active:hover, .chip[aria-pressed="true"]:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.case-list { padding-bottom: 40px; }
#stories, #products, #experience, #impact, #how-we-work, #form,
#websites, #apps, #marketing, #software, .service, .case {
  scroll-margin-top: calc(var(--header) + 18px);
}
.case { padding: 28px 0; border-top: 1px solid var(--line); }
.case:target { background: linear-gradient(#f4f7fb, transparent 80%); }
.case-media, .service-media { border-radius: 22px; overflow: hidden; min-height: 280px; background: #e7ebf0; }
.case-media img, .service-media img { min-height: 280px; height: 340px; }
.case-tag {
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}
.case h2, .service h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; margin-bottom: 10px; }
.case > div > p, .service > div > p { color: var(--muted); }
.case-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.case-points dt { font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.case-points dd { margin: 0; color: var(--muted); font-size: 0.92rem; }
.case-list .case:nth-child(even) .case-media, .service:nth-of-type(even) .service-media { order: 2; }
.service { padding: 48px 0; border-top: 1px solid var(--line); }
.ticks { display: grid; gap: 8px; margin-top: 16px; }
.ticks li { position: relative; padding-left: 16px; color: var(--muted); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}
.fit { margin-top: 16px; color: var(--ink); font-weight: 600; }
.contact-layout { align-items: start; padding-bottom: 72px; }
.contact-list { display: grid; gap: 6px; margin: 22px 0; }
.contact-list a { font-weight: 700; }
.map { height: 230px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.85) contrast(1.05); }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.82rem; font-weight: 700; }
.field:has(input:focus) label, .field:has(textarea:focus) label, .field:has(select:focus) label { color: var(--navy); }
.optional { font-weight: 500; color: var(--muted); }
input, textarea, select {
  width: 100%;
  background-color: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
textarea { min-height: 140px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%233a4250' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--navy);
  background-color: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 16%, transparent);
}
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #9f2d2d; }
.field-error { color: #9f2d2d; font-size: 0.8rem; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.display-sm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.form-success .btn { margin-top: 18px; }
.fine { margin-top: 14px; font-size: 0.9rem; }
.fine a { text-decoration: underline; }
.contact-photo { height: 240px; min-height: 240px; margin-bottom: 22px; }
.legal { max-width: 70ch; padding-bottom: 72px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-bottom: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.15rem; display: grid; gap: 0.35rem; margin: 0.4rem 0 1rem; }

.js .reveal.is-inview { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-media img {
      animation: hero-drift linear both;
      animation-timeline: scroll();
      animation-range: 0 120vh;
    }
  }
}
@keyframes hero-drift { to { transform: scale(1.1) translateY(3%); } }
@view-transition { navigation: auto; }

@media (max-width: 1040px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .nav { justify-self: end; }
  .nav-toggle { display: inline-grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.14);
  }
  .header.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 12px; border-radius: 10px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--mist); }
  .stories-layout, .section-head, .finale-grid, .footer-grid, .story-band, .service, .case, .contact-layout, .principles { grid-template-columns: 1fr; }
  .product-grid, .method { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "steps"; }
  .experience-media { min-height: 380px; }
  .case-list .case:nth-child(even) .case-media, .service:nth-of-type(even) .service-media { order: 0; }
  .impact-art { opacity: 0.28; width: 130%; right: -30%; }
}
@media (max-width: 860px) {
  .container { width: min(1160px, calc(100% - 32px)); }
  .hero { display: block; min-height: 0; padding: calc(var(--header) + 8px) 0 56px; }
  .hero-media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 58vw;
    min-height: 230px;
    margin-bottom: 28px;
    -webkit-mask-image: linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(#000 60%, transparent);
  }
  .hero h1 { max-width: none; }
  .story-row, .case-points, .form-row { grid-template-columns: 1fr; }
  .story-card, .story-card a { min-height: 300px; }
  .quote-layout { grid-template-columns: 48px 48px; justify-content: center; }
  .quote-viewport { grid-column: 1 / -1; grid-row: 1; }
  .quote-btn.prev, .quote-btn.next { grid-row: 2; }
}
@media (max-width: 680px) {
  .product-grid, .method, .steps, .timeline li { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .page-hero { padding-top: calc(var(--header) + 42px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; }
}
.archive { padding-bottom: 72px; }
.archive .chip-row { position: static; background: transparent; backdrop-filter: none; }
.archive-note {
  max-width: 68ch;
  margin: 0 0 36px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #e7eef6;
  color: var(--muted);
}
.solution-grid, .work-grid, .sector-grid {
  display: grid;
  gap: 12px;
}
.solution-grid, .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 12px; }
.solution, .work, .sector {
  background: #fff;
  border: 1px solid rgba(16, 48, 96, 0.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.solution h3, .work h2, .sector h2 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-top: 6px;
}
.solution h3 { font-size: 1.2rem; }
.solution h3 + p { margin-top: 8px; }
.work h2, .sector h2 { font-size: 1.05rem; }
.solution p, .work p, .sector p { color: var(--muted); }
.work a { display: inline-flex; gap: 6px; margin-top: 12px; font-weight: 700; text-decoration: none; }
.work-type, .sector-count {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip span { font-weight: 500; opacity: 0.72; }
.archive-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin: 4px 0 16px;
}
.search-field, .filter-field { flex: 1 1 220px; min-width: 180px; }
.search-field input, .filter-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 12px 16px;
}
.work-country { margin-top: 8px; font-weight: 600; color: var(--ink); }
.work .work-country { color: var(--ink); }
.dir-status { color: var(--muted); font-size: 0.92rem; }
.archive-empty { color: var(--muted); padding: 8px 0 24px; }
.work[hidden], .sector[hidden], .client[hidden] { display: none; }
.client-list { display: grid; gap: 8px; margin-bottom: 56px; }
.client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 6px 18px;
  align-items: baseline;
  background: #fff;
  border: 1px solid rgba(16, 48, 96, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
}
.client h2 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.client a, .work a { word-break: break-word; }
.client .work-type { margin: 0; }
@media (max-width: 800px) {
  .client { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .solution-grid, .work-grid, .sector-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .solution-grid, .work-grid, .sector-grid { grid-template-columns: 1fr; }
}

@media print {
  .header, .progress, .scroll-hint, .quote-btn, .finale { display: none; }
  body { color: #000; }
  a { text-decoration: underline; }
}

/* Solutions catalogue — scoped so other pages keep their own cards and chips. */
body[data-page="solutions"] {
  background: #f4f7fb;
  --catalogue: #0c4cb3;
  --catalogue-bright: #1557c0;
}
body[data-page="solutions"] .page-hero {
  padding: calc(var(--header) + 64px) 0 52px;
  background:
    radial-gradient(680px 320px at 100% -8%, rgba(12, 76, 179, 0.12), transparent 64%),
    linear-gradient(180deg, #e7eef8 0%, #f4f7fb 80%);
}
body[data-page="solutions"] .solutions-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 300px);
  gap: 36px 56px;
  align-items: end;
}
body[data-page="solutions"] .page-hero .eyebrow { color: var(--catalogue); }
body[data-page="solutions"] .page-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.15rem, 6vw, 5.35rem);
}
body[data-page="solutions"] .page-hero .lede {
  max-width: 42ch;
  color: #3e4653;
}
body[data-page="solutions"] .solutions-plate {
  position: relative;
  width: 100%;
  padding: 26px 22px 20px;
  border: 1px solid rgba(12, 76, 179, 0.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 42, 84, 0.06);
}
body[data-page="solutions"] .solutions-plate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--catalogue), var(--catalogue-bright));
}
body[data-page="solutions"] .solutions-plate-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--catalogue);
}
body[data-page="solutions"] .solutions-plate-num {
  margin-top: 6px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(4.6rem, 7vw, 6.1rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--catalogue);
  font-variant-numeric: tabular-nums;
}
body[data-page="solutions"] .solutions-plate-label {
  margin-top: 14px;
  max-width: 24ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
body[data-page="solutions"] .archive { padding-top: 8px; }
body[data-page="solutions"] #solutions { scroll-margin-top: calc(var(--header) + 12px); }
body[data-page="solutions"] .subhead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 18px;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
body[data-page="solutions"] .subhead::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--catalogue);
}
body[data-page="solutions"] .solutions-controls { margin-bottom: 22px; }
body[data-page="solutions"] .archive .chip-row {
  position: static;
  gap: 8px;
  margin: 0;
  padding: 0 0 12px;
  background: transparent;
  backdrop-filter: none;
}
body[data-page="solutions"] .chip {
  border-color: rgba(16, 48, 96, 0.14);
  background: #fff;
  color: #2c3441;
  padding: 9px 14px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
body[data-page="solutions"] .chip span {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
body[data-page="solutions"] .chip:hover {
  border-color: var(--catalogue-bright);
  color: var(--catalogue);
}
body[data-page="solutions"] .chip.is-active,
body[data-page="solutions"] .chip[aria-pressed="true"] {
  background: var(--catalogue);
  border-color: var(--catalogue);
  color: #fff;
}
body[data-page="solutions"] .chip.is-active:hover,
body[data-page="solutions"] .chip[aria-pressed="true"]:hover {
  background: var(--catalogue-bright);
  border-color: var(--catalogue-bright);
  color: #fff;
}
body[data-page="solutions"] .chip.is-active span,
body[data-page="solutions"] .chip[aria-pressed="true"] span { opacity: 0.82; }
body[data-page="solutions"] .archive-tools { margin: 0; }
body[data-page="solutions"] .search-field { flex: 1 1 280px; max-width: 460px; }
body[data-page="solutions"] .search-field input {
  min-height: 48px;
  border-radius: 14px;
  border-color: rgba(16, 48, 96, 0.14);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 18 18'%3E%3Ccircle cx='8' cy='8' r='5.2' stroke='%235c6572' stroke-width='1.6'/%3E%3Cpath stroke='%235c6572' stroke-linecap='round' stroke-width='1.6' d='m12.2 12.2 3.4 3.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px 50%;
  background-size: 18px;
  padding: 12px 16px 12px 44px;
}
body[data-page="solutions"] .dir-status {
  margin-left: auto;
  color: #2c3441;
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
body[data-page="solutions"] .solution-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
body[data-page="solutions"] .solution {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 10px;
  align-items: start;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 18px 20px 18px;
  border: 1px solid rgba(16, 48, 96, 0.1);
  border-top: 3px solid var(--catalogue-bright);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 84, 0.05);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
body[data-page="solutions"] .solution:hover {
  border-color: rgba(12, 76, 179, 0.28);
  border-top-color: var(--catalogue);
  box-shadow: 0 16px 36px rgba(16, 48, 96, 0.1);
  transform: translateY(-3px);
}
body[data-page="solutions"] .solution .work-type {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--catalogue);
  letter-spacing: 0.14em;
}
body[data-page="solutions"] .solution-no {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 2.5vw, 2.7rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--catalogue);
  font-variant-numeric: tabular-nums;
}
body[data-page="solutions"] .solution-main {
  grid-column: 2;
  min-width: 0;
  overflow: visible;
}
body[data-page="solutions"] .solution h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.28rem, 1.6vw, 1.55rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  overflow: visible;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body[data-page="solutions"] .solution-summary {
  margin-top: 8px;
  color: #3e4653;
  font-size: 0.98rem;
  line-height: 1.55;
  overflow: visible;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body[data-page="solutions"] .archive-empty {
  margin: 4px 0 28px;
  padding: 28px 22px;
  border: 1px dashed rgba(12, 76, 179, 0.35);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
}
@media (min-width: 781px) {
  body[data-page="solutions"] .solutions-controls {
    position: sticky;
    top: var(--header);
    z-index: 8;
    padding: 12px 0 14px;
    background: #f4f7fb;
    border-bottom: 1px solid rgba(16, 48, 96, 0.1);
  }
}
@media (max-width: 860px) {
  body[data-page="solutions"] .solutions-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  body[data-page="solutions"] .solutions-plate {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "kicker kicker"
      "num label";
    column-gap: 18px;
    row-gap: 4px;
    align-items: center;
    max-width: 520px;
  }
  body[data-page="solutions"] .solutions-plate-kicker { grid-area: kicker; }
  body[data-page="solutions"] .solutions-plate-num {
    grid-area: num;
    margin-top: 0;
    font-size: 3.7rem;
  }
  body[data-page="solutions"] .solutions-plate-label {
    grid-area: label;
    margin-top: 0;
    max-width: none;
  }
}
@media (max-width: 780px) {
  body[data-page="solutions"] .page-hero { padding: calc(var(--header) + 36px) 0 28px; }
  body[data-page="solutions"] .page-hero h1 { font-size: clamp(2.55rem, 12vw, 3.5rem); }
  body[data-page="solutions"] .solution-grid { grid-template-columns: 1fr; }
  body[data-page="solutions"] .solution {
    grid-template-columns: 3.5rem minmax(0, 1fr);
    padding: 16px;
  }
  body[data-page="solutions"] .solution-no { font-size: 1.9rem; }
  body[data-page="solutions"] .archive-tools { align-items: stretch; }
  body[data-page="solutions"] .search-field { flex-basis: 100%; max-width: none; min-width: 0; }
  body[data-page="solutions"] .dir-status { margin-left: 0; }
}
