/* Knapp Leadership — site styles
   Palette is drawn from the logo: its gray, white lettering and gold rule. */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
}

:root {
  --graphite-900: #1c1e21;
  --graphite-800: #24262a;
  --graphite-700: #2c2e33;
  --graphite-600: #3b3e44;
  --logo-gray: #7f7f7f;
  --ink: #1f2125;
  --body: #3d4046;
  --muted: #666a70;
  --line: #e1ddd4;
  --paper: #f7f5f0;
  --white: #ffffff;
  --gold: #ffc000;
  --gold-ink: #a47a00;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --taper: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

a {
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--graphite-900);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

/* The logo's tapered gold rule, reused as the site's signature mark */
.rule {
  width: 150px;
  height: 5px;
  margin: 28px 0;
  background: var(--gold);
  clip-path: var(--taper);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite-700);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.brand {
  display: block;
  flex: none;
}
.brand img {
  width: auto;
  height: 40px;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.1vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.97rem;
  font-weight: 500;
  letter-spacing: 0.012em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 4px;
  background: var(--gold);
  clip-path: var(--taper);
  transform: scaleX(0);
  transition: transform 0.28s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--white);
}
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.ext-icon {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  margin-left: 0.4em;
  vertical-align: 0.08em;
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 1199px) {
  :root {
    --header-h: 72px;
  }
  .brand img {
    height: 34px;
  }
  .js .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--graphite-800);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.28);
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .site-nav a {
    padding: 16px 0;
    font-size: 1.08rem;
    white-space: normal;
  }
  .site-nav a::after {
    display: none;
  }
  .site-nav a[aria-current="page"] {
    color: var(--gold);
  }
}

/* ---------- Dark bands (hero and page heads) ---------- */

.band {
  position: relative;
  color: var(--white);
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(255, 255, 255, 0.075), transparent 62%),
    var(--graphite-700);
  overflow: hidden;
}
.band h1 {
  color: var(--white);
}

.display {
  font-size: clamp(2.7rem, 6.1vw, 4.7rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.024em;
}
.display strong {
  display: block;
  font-weight: 600;
}
.display .display-sub {
  display: block;
  margin-top: 0.5em;
  font-size: 0.44em;
  font-style: italic;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.004em;
  color: rgba(255, 255, 255, 0.8);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 7.5vw, 112px);
}

.lede {
  max-width: 35em;
  margin: 0;
  font-size: clamp(1.08rem, 1.35vw, 1.2rem);
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.86);
}
.lede strong {
  font-weight: 600;
  color: var(--white);
}
.lede a {
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}
.lede a:hover {
  color: var(--gold);
}

.portrait {
  position: relative;
  width: min(100%, 420px);
  margin: 0;
  justify-self: end;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
}
.portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
}

.profile-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}
.profile-grid .portrait {
  justify-self: start;
}
.profile-grid h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  letter-spacing: -0.02em;
}
.profile-grid p {
  max-width: 38em;
  font-size: clamp(1.04rem, 1.25vw, 1.14rem);
  color: rgba(255, 255, 255, 0.86);
}
.profile-grid p:last-child {
  margin-bottom: 0;
}

.page-head {
  padding-block: clamp(52px, 6.5vw, 96px);
}
.page-head h1 {
  max-width: 17em;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
}
.page-head .rule {
  margin-bottom: 0;
}
.page-sub {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 7vw, 104px);
}
.section-white {
  background: var(--white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  width: 18px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.6.4 17.2 5l-4.6 4.6-.9-.9 3-3.05H0v-1.3h14.7l-3-3.05z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M12.6.4 17.2 5l-4.6 4.6-.9-.9 3-3.05H0v-1.3h14.7l-3-3.05z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s ease;
}
.link-arrow:hover::after {
  transform: translateX(5px);
}

/* Home: three areas of counsel */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-inline: clamp(22px, 3.2vw, 46px);
  border-left: 1px solid var(--line);
}
.svc-card:first-child {
  padding-left: 0;
  border-left: 0;
}
.svc-card:last-child {
  padding-right: 0;
}
.svc-card::before {
  content: "";
  width: 64px;
  height: 4px;
  margin-bottom: 26px;
  background: var(--gold);
  clip-path: var(--taper);
}
.svc-card h2 {
  margin-bottom: 0.75em;
  font-size: clamp(1.5rem, 2.25vw, 1.95rem);
  line-height: 1.18;
}
.svc-card p {
  margin-bottom: 1.6em;
}
.svc-card .link-arrow {
  margin-top: auto;
}

/* Services */
.svc-row {
  padding-block: clamp(52px, 6.5vw, 96px);
}
.svc-row:nth-of-type(even) {
  background: var(--white);
}
.svc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.svc-media {
  position: relative;
  grid-column: 1 / span 6;
  margin: 0;
}
.svc-media::before {
  content: "";
  position: absolute;
  inset: 16px 16px -16px -16px;
  border: 1px solid var(--gold);
}
.svc-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.svc-body {
  grid-column: 7 / span 6;
}
.svc-row:nth-of-type(even) .svc-media {
  grid-column: 7 / span 6;
  order: 2;
}
.svc-row:nth-of-type(even) .svc-media::before {
  inset: 16px -16px -16px 16px;
}
.svc-row:nth-of-type(even) .svc-body {
  grid-column: 1 / span 6;
  order: 1;
}
.svc-body h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  letter-spacing: -0.02em;
}
.svc-body .rule {
  margin: 22px 0 24px;
}
.svc-body h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2em 0 1em;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.035em;
}
.svc-body h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1.55em;
  break-inside: avoid;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 0.8em;
  height: 4px;
  background: var(--gold);
  clip-path: var(--taper);
}

/* John C. Knapp: expandable sections */
.acc-list {
  max-width: 980px;
  margin-inline: auto;
}
.acc {
  border-top: 1px solid var(--line);
}
.acc:last-child {
  border-bottom: 1px solid var(--line);
}
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 2.6vw, 32px) 4px;
  list-style: none;
  cursor: pointer;
}
.acc summary::-webkit-details-marker {
  display: none;
}
.acc summary h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  transition: color 0.2s ease;
}
.acc-icon {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid #cdc8bb;
  border-radius: 50%;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.acc-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.acc summary:hover .acc-icon,
.acc[open] .acc-icon {
  background: var(--gold);
  border-color: var(--gold);
}
.acc[open] .acc-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.acc-body {
  padding: 2px 4px clamp(28px, 3.4vw, 44px);
}
.acc-body > p {
  max-width: 46em;
}
.acc-body h3 {
  margin: 2.1em 0 1em;
  padding-bottom: 0.65em;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.acc-body > h3:first-child {
  margin-top: 0.4em;
}
.acc-body .ticks {
  margin-bottom: 1.5em;
}
.acc-body .ticks.cols-2 {
  columns: 2;
  column-gap: clamp(32px, 5vw, 64px);
}
.acc-body > :last-child {
  margin-bottom: 0;
}
@supports (interpolate-size: allow-keywords) {
  .acc {
    interpolate-size: allow-keywords;
  }
  .acc::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s ease, content-visibility 0.35s allow-discrete;
  }
  .acc[open]::details-content {
    block-size: auto;
  }
}

/* Case examples */
.cases {
  counter-reset: case;
}
.case {
  display: grid;
  grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(20px, 3.4vw, 56px);
  padding-block: clamp(30px, 3.8vw, 52px);
  border-top: 1px solid var(--line);
  counter-increment: case;
}
.case:first-child {
  padding-top: 0;
  border-top: 0;
}
.case:last-child {
  padding-bottom: 0;
}
.case::before {
  content: counter(case, decimal-leading-zero);
  padding-top: 0.42em;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold-ink);
}
.case h2 {
  font-size: clamp(1.3rem, 2.05vw, 1.68rem);
  line-height: 1.26;
}
.case p {
  margin: 0;
}

/* Clients */
.client-group {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  column-gap: clamp(24px, 4vw, 72px);
  padding-block: clamp(34px, 4.4vw, 60px);
  border-top: 1px solid var(--line);
}
.client-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.client-group:last-child {
  padding-bottom: 0;
}
.client-group h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}
.client-group h2::before {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--gold);
  clip-path: var(--taper);
}
.client-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(28px, 4vw, 56px);
}
.client-list li {
  padding: 0.62em 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
  color: var(--ink);
  break-inside: avoid;
}

/* The Oxford Conclave */
.hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(400px, 68vh, 700px);
  color: var(--white);
  background: var(--graphite-800);
  overflow: hidden;
}
.hero-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 30, 33, 0) 0%, rgba(28, 30, 33, 0.12) 48%, rgba(28, 30, 33, 0.92) 100%);
}
.hero-image .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(36px, 5vw, 64px);
}
.hero-image h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--white);
}
.hero-image .rule {
  margin: 22px 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(28px, 5vw, 88px);
  align-items: start;
}
.split .lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.35vw, 1.95rem);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.split .prose > :last-child {
  margin-bottom: 0;
}

.gallery {
  padding-bottom: clamp(56px, 7vw, 104px);
}
.mosaic {
  --row: clamp(150px, 19.5vw, 250px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: var(--row) var(--row) calc(var(--row) * 1.34);
  gap: clamp(8px, 1.2vw, 16px);
}
.mosaic a {
  position: relative;
  display: block;
  grid-column: span 2;
  overflow: hidden;
  background: var(--graphite-600);
  cursor: zoom-in;
}
.mosaic a:nth-child(1) {
  grid-row: span 2;
}
.mosaic a:nth-child(n + 6) {
  grid-column: span 3;
}
.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mosaic a:hover img {
  transform: scale(1.035);
}

.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 21, 24, 0.94);
}
.lightbox::backdrop {
  background: rgba(20, 21, 24, 0.94);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 86dvh;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(28, 30, 33, 0.6);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lightbox button:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--graphite-900);
}
.lightbox svg {
  width: 18px;
  height: 18px;
}
.lb-close {
  top: 20px;
  right: 20px;
}
.lb-prev {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}
.lb-next {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 36px;
  background: var(--graphite-800);
  color: rgba(255, 255, 255, 0.76);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  column-gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.footer-brand img {
  width: auto;
  height: 46px;
}
.site-footer address {
  font-style: normal;
  line-height: 1.75;
}
.site-footer address strong {
  display: inline-block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 500;
  color: var(--white);
}
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  padding: 15px 26px;
  background: var(--gold);
  color: var(--graphite-900);
  font-weight: 600;
  letter-spacing: 0.012em;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-gold:hover {
  background: #ffd044;
  transform: translateY(-1px);
}
.btn-gold svg {
  width: 18px;
  height: 18px;
}
.footer-nav {
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--gold);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 899px) {
  body {
    font-size: 1.03rem;
  }
  .hero-grid,
  .profile-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
  }
  .portrait,
  .profile-grid .portrait {
    width: min(100% - 18px, 360px);
    justify-self: start;
  }
  .profile-grid .portrait {
    order: 2;
  }
  .cards-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-card,
  .svc-card:first-child,
  .svc-card:last-child {
    padding: 36px 0 0;
    border: 0;
  }
  .svc-card + .svc-card {
    margin-top: 36px;
    border-top: 1px solid var(--line);
  }
  .svc-card:first-child {
    padding-top: 0;
  }
  .svc-grid {
    display: block;
  }
  .svc-media,
  .svc-row:nth-of-type(even) .svc-media {
    margin: 0 16px 44px 0;
  }
  .svc-media::before,
  .svc-row:nth-of-type(even) .svc-media::before {
    inset: 14px -14px -14px 14px;
  }
  .case {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }
  .case::before {
    padding-top: 0;
  }
  .client-group,
  .split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .acc-body .ticks.cols-2 {
    columns: 1;
  }
  .mosaic {
    --row: 42vw;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: var(--row);
  }
  .mosaic a,
  .mosaic a:nth-child(n + 6) {
    grid-column: span 1;
  }
  .mosaic a:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
    align-items: start;
  }
  .footer-brand img {
    height: 40px;
  }
  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
    transform: none;
  }
}

@media (max-width: 520px) {
  .client-list {
    columns: 1;
  }
  .display {
    font-size: clamp(2.5rem, 12.5vw, 3.2rem);
  }
  .display .display-sub {
    font-size: 0.5em;
  }
}

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

@media print {
  .site-header,
  .footer-nav,
  .nav-toggle {
    display: none;
  }
}
