/* ==========================================================================
   Riyaj Shaikh — Design 3 · Analytics
   Deep navy console, KPI tiles, mono numerals, chart accents.
   ========================================================================== */

:root {
  --bg: #070d18;
  --panel: #0e1728;
  --panel-2: #131f36;
  --ink: #eaf1ff;
  --body: #a9b8d6;
  --muted: #7488ad;
  --line: rgba(120, 160, 255, 0.16);
  --line-strong: rgba(120, 160, 255, 0.34);
  --blue: #4f8cff;
  --accent: #3ddc97;
  --amber: #ffb454;
  --radius: 16px;
  --wrap: 1180px;
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(79, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
}

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

section[id],
.hero {
  scroll-margin-top: 4.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #04121b;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.link {
  color: var(--ink);
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
  transition: color 0.18s ease;
}

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

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 13, 24, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 13, 24, 0.96);
  box-shadow: 0 22px 46px -34px rgba(0, 0, 0, 1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.site-header__name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.site-header__name::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.site-nav a {
  color: var(--muted);
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--panel);
}

.site-nav a.is-active {
  color: var(--accent);
  background: rgba(61, 220, 151, 0.1);
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), #21c9b0);
  color: #04121b;
  box-shadow: 0 18px 36px -22px rgba(61, 220, 151, 0.9);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: var(--panel);
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.8125rem;
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3.5rem;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
  padding: 0.42rem 1rem;
  background: rgba(61, 220, 151, 0.08);
  border: 1px solid rgba(61, 220, 151, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.hero__role {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.7rem;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.hero__location::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--blue);
}

.hero__intro {
  font-size: 1.0625rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__media {
  width: min(100%, 400px);
  justify-self: end;
}

.photo-frame {
  position: relative;
  padding: 0.75rem;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 1);
}

.photo-frame::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: -0.75rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue), transparent);
}

.hero__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  will-change: transform;
}

.avatar,
.fallback-text {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--panel-2);
  color: var(--muted);
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 10px;
}

/* Sections ---------------------------------------------------------------- */
.section {
  padding: 4.5rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(19, 31, 54, 0.55), rgba(7, 13, 24, 0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__index {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.section__index::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.section__lead {
  font-size: 1.0625rem;
  max-width: 60ch;
  margin-bottom: 2.25rem;
}

/* Key facts — KPI tiles --------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.stat {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.stat:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.stat::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 54px;
  height: 26px;
  background: linear-gradient(
    to top,
    rgba(79, 140, 255, 0.5) 0 30%,
    transparent 30% 38%,
    rgba(79, 140, 255, 0.35) 38% 62%,
    transparent 62% 70%,
    rgba(61, 220, 151, 0.6) 70% 100%
  );
  border-radius: 4px;
  opacity: 0.85;
}

.stat__figure {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.stat__label {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 34ch;
}

/* Profile ----------------------------------------------------------------- */
.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
}

.prose p + p {
  margin-top: 1.15rem;
}

.prose--wide {
  max-width: 74ch;
}

.prose__link {
  margin-top: 1.75rem;
}

/* Timeline ---------------------------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-left: 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(79, 140, 255, 0.25), transparent);
  border-radius: 999px;
}

.role {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.6rem 1.6rem 1.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.role:hover {
  border-color: var(--line-strong);
  transform: translateX(3px);
}

.role::before {
  content: "";
  position: absolute;
}

.role__logo {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  padding: 0.65rem;
  background: #fff;
  border-radius: 12px;
}

.role__logo .logo-img {
  max-height: 40px;
  max-width: 54px;
  object-fit: contain;
}

.logo-tile,
.logo-text {
  display: grid;
  place-items: center;
  width: 100%;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #31405c;
  line-height: 1.2;
}

.role__content h3 {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.role__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.role__dates {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.6rem;
  background: rgba(79, 140, 255, 0.12);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: #9dc0ff;
}

.role__body {
  max-width: 68ch;
  font-size: 0.9688rem;
}

.role__link {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.18rem 0.6rem;
  background: rgba(61, 220, 151, 0.14);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* Brands ------------------------------------------------------------------ */
.brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand {
  width: 152px;
  height: 78px;
  display: grid;
  place-items: center;
  padding: 0.8rem;
  background: #fff;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -30px rgba(0, 0, 0, 1);
}

.brand .logo-img {
  max-height: 44px;
  max-width: 124px;
  object-fit: contain;
}

.brand__text {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #31405c;
  text-align: center;
}

/* Articles ---------------------------------------------------------------- */
.articles {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.85rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.article__mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(79, 140, 255, 0.22), rgba(61, 220, 151, 0.18));
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
}

.article__publisher {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.article__body {
  max-width: 62ch;
  margin-bottom: 1rem;
  font-size: 0.9688rem;
}

.article__meta {
  font-size: 0.9375rem;
}

/* Highlights -------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  position: relative;
  padding: 1.85rem 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.card__kicker {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.card p:last-child {
  font-size: 0.9688rem;
}

/* Awards ------------------------------------------------------------------ */
.awards {
  counter-reset: award;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 2rem;
  padding: 1.6rem 1.6rem 1.7rem 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.award__head {
  position: relative;
  padding-left: 2.75rem;
}

.award__head::before {
  counter-increment: award;
  content: "0" counter(award);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.award__head h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.award__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.award__body {
  font-size: 0.9688rem;
  max-width: 66ch;
}

/* Certificates ------------------------------------------------------------ */
.certs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.cert {
  display: block;
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.cert:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cert__logo {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(79, 140, 255, 0.14);
  margin-bottom: 1.1rem;
}

.cert__logo .logo-img {
  max-height: 42px;
  max-width: 42px;
  object-fit: contain;
}

.cert__content h3 {
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.cert__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Skills ------------------------------------------------------------------ */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skills__group {
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skills__group h3,
.meta-block h3 {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chips li {
  padding: 0.4rem 0.8rem;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--body);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.chips li:hover {
  border-color: var(--blue);
  color: var(--ink);
}

.chips--lead {
  gap: 0.5rem;
}

.chips--lead li {
  padding: 0.5rem 1rem;
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.18), rgba(79, 140, 255, 0.18));
  border-color: rgba(61, 220, 151, 0.4);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Languages and education ------------------------------------------------ */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.meta-block {
  padding: 1.6rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts {
  display: grid;
}

.fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

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

.fact__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent);
}

.fact__body {
  display: block;
}

.facts__main {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.facts__sub {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.fact__year {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: #9dc0ff;
  white-space: nowrap;
}

/* Contact and footer ------------------------------------------------------ */
.contact {
  position: relative;
  margin-top: 2rem;
  padding: 3.25rem 2rem;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background: radial-gradient(ellipse at 50% 0%, rgba(79, 140, 255, 0.28), transparent 62%);
  pointer-events: none;
}

.contact .hero__actions {
  position: relative;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Design switcher --------------------------------------------------------- */
.design-switch {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem;
  background: rgba(14, 23, 40, 0.95);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 26px 54px -32px rgba(0, 0, 0, 1);
  backdrop-filter: blur(14px);
}

.design-switch__label {
  padding: 0 0.6rem 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.design-switch__btn {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.design-switch__btn:hover {
  color: var(--ink);
  background: var(--panel-2);
}

.design-switch__btn.is-active {
  background: linear-gradient(120deg, var(--accent), #21c9b0);
  color: #04121b;
}

/* Motion ------------------------------------------------------------------ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 150;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 0.7, 0.24, 1),
    transform 0.7s cubic-bezier(0.22, 0.7, 0.24, 1);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .hero__media {
    justify-self: start;
    width: min(100%, 320px);
  }

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

  .award {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
  }

  .site-header__cta {
    margin-left: auto;
  }

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

  .article {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.25rem 0 3rem;
  }

  .section {
    padding: 3.25rem 0;
  }

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

  .timeline {
    padding-left: 1.1rem;
  }

  .role {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .brand {
    width: calc(50% - 0.5rem);
    height: 70px;
  }

  .fact {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.35rem;
  }

  .fact__year {
    grid-column: 2;
  }

  .design-switch {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .design-switch__label {
    display: none;
  }
}

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

  .pill::before {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Round 4 — profile lead quote and education logos
   ============================================================ */

.prose__lead {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1.75rem;
}

.fact__mark--logo {
  width: auto;
  min-width: 72px;
  height: 50px;
  padding: 0 0.6rem;
  border-radius: 10px;
  background: #fff;
  border-color: transparent;
}

.fact__mark--logo .logo-img {
  max-height: 32px;
  max-width: 94px;
  object-fit: contain;
}

.fact__mark-text {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #31405c;
}

/* ============================================================
   Round 6 — experience cards and a framed client grid
   ============================================================ */

:root {
  --wrap: 1200px;
}

#experience > .wrap,
#brands > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  column-gap: 3rem;
  align-items: end;
}

#experience > .wrap > .section__index,
#brands > .wrap > .section__index {
  grid-column: 1;
}

#experience > .wrap > .section__title,
#brands > .wrap > .section__title {
  grid-column: 1;
  margin-bottom: 0;
}

#experience > .wrap > .section__lead,
#brands > .wrap > .section__lead {
  grid-column: 2;
  grid-row: 2;
  margin-bottom: 0;
  font-size: 1rem;
}

#experience > .wrap > .timeline,
#brands > .wrap > .brands {
  grid-column: 1 / -1;
}

/* the old vertical rail is replaced by the card grid */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-left: 0;
}

.timeline::before {
  display: none;
}

.role {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 1.1rem 1rem;
  padding: 1.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.role:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.role__logo {
  grid-column: 1;
  grid-row: 1;
  width: auto;
  height: 46px;
  padding: 0.45rem 0.7rem;
  background: #fff;
  border-radius: 10px;
}

.role__logo .logo-img {
  max-height: 34px;
  max-width: 130px;
  object-fit: contain;
}

.role__dates {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.role__content {
  grid-column: 1 / -1;
  grid-row: 2;
}

.role__content h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.45rem;
}

.role__meta {
  font-size: 0.8125rem;
  margin-bottom: 0.7rem;
}

.role__body {
  font-size: 0.9375rem;
}

.role__dates .badge {
  margin-left: 0.5rem;
}

.brands {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.brand {
  width: auto;
  height: 150px;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0;
}

.brand:hover {
  transform: none;
  box-shadow: none;
}

.brand .logo-img {
  max-height: 54px;
  max-width: 150px;
}

@media (max-width: 1024px) {
  #experience > .wrap,
  #brands > .wrap {
    display: block;
  }

  #experience > .wrap > .section__title,
  #brands > .wrap > .section__title {
    margin-bottom: 0.75rem;
  }

  #experience > .wrap > .section__lead,
  #brands > .wrap > .section__lead {
    margin: 0 0 1.5rem;
  }

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

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

@media (max-width: 640px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

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

  .brand {
    height: 118px;
    padding: 1rem;
  }

  .brand .logo-img {
    max-height: 44px;
    max-width: 120px;
  }

  .role {
    padding: 1.4rem;
  }
}

/* ============================================================
   Round 7 — card header fixed, wider cards, cleaner logo row
   ============================================================ */

:root {
  --wrap: 1320px;
}

.timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.25rem;
}

.role {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "logo dates"
    "title title"
    "meta meta"
    "body body"
    "link link";
  gap: 0.55rem 1rem;
  padding: 2rem 2rem 2.1rem;
  align-content: start;
}

.role__content {
  display: contents;
}

.role__logo {
  grid-area: logo;
  justify-self: start;
  width: auto;
  height: 44px;
  padding: 0.4rem 0.65rem;
  background: #fff;
  border-radius: 10px;
}

.role__logo .logo-img {
  max-height: 30px;
  max-width: 120px;
  object-fit: contain;
}

.role__dates {
  grid-area: dates;
  justify-self: end;
  align-self: center;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.role__content h3 {
  grid-area: title;
  margin: 1.1rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.role__meta {
  grid-area: meta;
  margin: 0 0 0.5rem;
}

.role__body {
  grid-area: body;
  font-size: 1rem;
}

.role__link {
  grid-area: link;
  margin-top: 0.9rem;
}

.badge {
  margin-left: 0.45rem;
  padding: 0;
  background: none;
  border-radius: 0;
  color: var(--accent);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  height: 156px;
}

.brand .logo-img {
  max-height: 58px;
  max-width: 158px;
}

@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .role {
    padding: 1.5rem;
  }
}

/* ============================================================
   Round 8 — calmer scale, contact rows, footer strip
   ============================================================ */

:root {
  --wrap: 1240px;
}

html {
  font-size: 15px;
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.hero {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.hero__intro,
.section__lead {
  font-size: 0.9375rem;
}

.role {
  padding: 1.5rem 1.5rem 1.6rem;
}

.role__content h3 {
  font-size: 1.0625rem;
}

.role__body {
  font-size: 0.9375rem;
}

.role__dates {
  font-size: 0.625rem;
  letter-spacing: 0.1em;
}

.brand {
  height: 134px;
}

.brand .logo-img {
  max-height: 48px;
  max-width: 136px;
}

/* Contact rows */
#contact > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 4rem;
  align-items: center;
}

#contact .section__index {
  grid-column: 1;
}

#contact .section__title {
  grid-column: 1;
  margin-bottom: 0.75rem;
}

#contact .section__title em {
  font-style: italic;
  color: var(--accent);
}

#contact .section__lead {
  grid-column: 1;
  margin-bottom: 0;
}

.contact__list {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.contact__row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact__row:first-child {
  border-top: 1px solid var(--line);
}

.contact__label {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

a.contact__value:hover {
  color: var(--accent);
}

.contact__value--muted {
  color: var(--muted);
  font-weight: 500;
}

.contact__arrow::before {
  content: "\2197";
  font-size: 0.875rem;
  color: var(--accent);
}

.contact__row--plain .contact__arrow::before {
  content: "";
}

/* Footer strip */
.site-footer {
  padding: 1.75rem 0;
  font-size: 0.8125rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__name {
  font-weight: 600;
  color: var(--ink);
}

.site-footer__meta {
  color: var(--muted);
}

.site-footer__top {
  margin-left: auto;
}

@media (max-width: 1024px) {
  #contact > .wrap {
    display: block;
  }

  .contact__list {
    margin-top: 2rem;
  }
}

@media (max-width: 640px) {
  .contact__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.3rem;
  }

  .contact__label {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Round 9 — one more notch of zoom out, logo row fixed
   ============================================================ */

html {
  font-size: 14.5px;
}

.section {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
}

.hero {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
}

.role {
  padding: 1.4rem 1.4rem 1.5rem;
}

.role__logo {
  max-width: 44%;
  overflow: hidden;
  height: 42px;
  padding: 0.35rem 0.55rem;
}

.role__logo .logo-img {
  max-height: 28px;
  max-width: 100%;
}

.role__dates {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-align: right;
}

.role__content h3 {
  font-size: 1.0625rem;
}

.role__body {
  font-size: 0.9375rem;
}

.badge {
  margin-left: 0.45rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(61, 220, 151, 0.16);
  color: var(--accent);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand {
  height: 132px;
}

.brand .logo-img {
  max-height: 46px;
  max-width: 134px;
}

@media (max-width: 640px) {
  .role__logo {
    max-width: 50%;
  }

  .brand {
    height: 112px;
  }
}

/* ============================================================
   Round 10 - five key facts flow evenly across the row
   ============================================================ */

.stats {
  grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
}

/* ============================================================
   Round 11 - skills as category tabs: one panel at a time, so the
   section has no empty areas, and every group stays reachable
   ============================================================ */

.skills {
  display: block;
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.skill-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.skill-tab:hover {
  border-color: rgba(61, 220, 151, 0.5);
  color: #ffffff;
}

.skill-tab:focus-visible {
  outline: 2px solid #3ddc97;
  outline-offset: 2px;
}

.skill-tab.is-active {
  background: #3ddc97;
  border-color: #3ddc97;
  color: #04121b;
}

.skill-tab__count {
  font-size: 0.6875rem;
  font-weight: 700;
  opacity: 0.55;
}

.skill-panels {
  padding-top: 1.4rem;
}

.js .skill-panel {
  display: none;
}

.js .skill-panel.is-active {
  display: block;
}

.skill-panel .chips {
  margin: 0;
}

@media (max-width: 640px) {
  .skill-tab {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* ============================================================
   Round 13 - brands as a full 3 x 3 block: no empty cells, no
   rules or coloured fill behind the logos, white tiles only
   ============================================================ */

.brands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
}

.brand {
  border: 0;
}

.brand .logo-img {
  max-height: 56px;
  max-width: 160px;
}

@media (max-width: 900px) {
  .brand {
    height: 128px;
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand {
    height: 104px;
    padding: 0.6rem;
  }

  .brand .logo-img {
    max-height: 40px;
    max-width: 92px;
  }
}


/* ============================================================
   Round 14 - brands: equal cells separated by thin hairlines,
   as in the reference. Light designs keep white cells; the dark
   designs (Studio, Analytics) sit the logos straight on the page
   with faint hairlines, so there is no big white block.
   ============================================================ */

.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand {
  width: auto;
  height: 150px;
  padding: 1.5rem;
  background: transparent;
  border: 0;
}

.brand:hover {
  background: transparent;
}

.brand .logo-img {
  max-height: 56px;
  max-width: 160px;
}

@media (max-width: 900px) {
  .brand {
    height: 128px;
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand {
    height: 104px;
    padding: 0.6rem;
  }

  .brand .logo-img {
    max-height: 38px;
    max-width: 88px;
  }
}


/* ============================================================
   Round 16 - brands and clients use the Editorial frame in every
   design: white cells, one thin hairline, logos in full colour
   ============================================================ */

.brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  background: #e3d9c9;
  border: 1px solid #e3d9c9;
}

.brand {
  width: auto;
  height: 150px;
  padding: 1.5rem;
  background: #ffffff;
  border: 0;
}

.brand:hover {
  background: #ffffff;
  transform: none;
}

.brand .logo-img {
  max-height: 56px;
  max-width: 160px;
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

@media (max-width: 900px) {
  .brand {
    height: 128px;
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand {
    height: 104px;
    padding: 0.6rem;
  }

  .brand .logo-img {
    max-height: 38px;
    max-width: 88px;
  }
}


/* ============================================================
   Round 17 - Studio and Analytics: brands cells use the page
   background instead of white. Same cell size, same logo size,
   only the background changes; hairlines stay subtle.
   ============================================================ */

.brands {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.brand,
.brand:hover {
  background: transparent;
}

.brand:hover {
  background: rgba(255, 255, 255, 0.05);
}


/* ============================================================
   Round 19 - every award carries the company logo; the section
   names read Impact and Specialities
   ============================================================ */

.award {
  display: grid;
  grid-template-columns: 72px minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.award__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0.6rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.award__logo .logo-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.award__logo .logo-tile {
  font-size: 1.15rem;
}

@media (max-width: 900px) {
  .award {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
  }

  .award__logo {
    width: 56px;
    height: 56px;
    padding: 0.45rem;
    border-radius: 12px;
  }

  .award__body {
    grid-column: 2;
  }
}


/* ============================================================
   Round 22 - Analytics is the only design; Languages was removed,
   so the education block takes the full width.
   ============================================================ */

.meta-grid > .meta-block:only-child {
  grid-column: 1 / -1;
}


/* ============================================================
   Round 23 - brands and clients: one fixed logo box for every
   logo (160 x 64 on desktop), centred in a soft light tile, with
   even gaps and no leftover white frame.
   ============================================================ */

#brands > .wrap > .brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
}

#brands > .wrap > .brands > .brand,
#brands > .wrap > .brands > .brand:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  min-height: 96px;
  padding: 16px;
  background: #eef1f5;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  transform: none;
}

#brands > .wrap > .brands > .brand .logo-img {
  width: 160px;
  height: 64px;
  max-width: 100%;
  max-height: 64px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: none;
  box-shadow: none;
}

#brands > .wrap > .brands > .brand .brand__text {
  color: #16202e;
  font-weight: 600;
}

@media (max-width: 700px) {
  #brands > .wrap > .brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  #brands > .wrap > .brands > .brand,
  #brands > .wrap > .brands > .brand:hover {
    height: 84px;
    min-height: 84px;
    padding: 12px;
  }

  #brands > .wrap > .brands > .brand .logo-img {
    width: 130px;
    height: 48px;
    max-height: 48px;
  }
}


/* ============================================================
   Round 24 - brands: narrower strip, one logo box, even optical
   weight (wide wordmarks are capped so they do not overwhelm
   the square marks), light tile, equal gaps.
   ============================================================ */

#brands > .wrap > .brands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

#brands > .wrap > .brands > .brand,
#brands > .wrap > .brands > .brand:hover {
  height: 100px;
  min-height: 100px;
  padding: 16px;
  background: #eef1f5;
  border: 0;
  border-radius: 12px;
}

#brands > .wrap > .brands > .brand .logo-img {
  width: auto;
  height: auto;
  max-width: 150px;
  max-height: 64px;
  min-width: 0;
  object-fit: contain;
}

@media (max-width: 1024px) {
  #brands > .wrap > .brands {
    max-width: 760px;
  }
}

@media (max-width: 700px) {
  #brands > .wrap > .brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    max-width: none;
  }

  #brands > .wrap > .brands > .brand,
  #brands > .wrap > .brands > .brand:hover {
    height: 84px;
    min-height: 84px;
    padding: 12px;
  }

  #brands > .wrap > .brands > .brand .logo-img {
    max-width: 118px;
    max-height: 46px;
  }
}


/* ============================================================
   Round 25 - brands and clients: the grid uses the full content
   width, the tiles are taller and every logo fills about 70% of
   its tile while keeping its proportions.
   ============================================================ */

#brands > .wrap > .brands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#brands > .wrap > .brands > .brand,
#brands > .wrap > .brands > .brand:hover {
  height: 160px;
  min-height: 160px;
  padding: 20px;
  background: #eef1f5;
  border: 0;
  border-radius: 14px;
}

#brands > .wrap > .brands > .brand .logo-img {
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  #brands > .wrap > .brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
  }

  #brands > .wrap > .brands > .brand,
  #brands > .wrap > .brands > .brand:hover {
    height: 132px;
    min-height: 132px;
    padding: 16px;
  }
}

@media (max-width: 700px) {
  #brands > .wrap > .brands {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
  }

  #brands > .wrap > .brands > .brand,
  #brands > .wrap > .brands > .brand:hover {
    height: 124px;
    min-height: 124px;
    padding: 14px;
  }

  #brands > .wrap > .brands > .brand .logo-img {
    max-width: 84%;
    max-height: 74%;
  }
}


/* the e-Zest award tiles hold a wide wordmark, so give it a little more room */
.award__logo--word {
  padding: 0.35rem;
}


/* the university logo was too small to read, so give it a bigger tile */
.fact__mark--logo {
  min-width: 150px;
  height: 72px;
  padding: 0 0.8rem;
  border-radius: 12px;
}
.fact__mark--logo .logo-img {
  max-height: 56px;
  max-width: 134px;
}
