@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800;900&family=Barlow+Semi+Condensed:wght@400;500;600;700;800;900&family=Bebas+Neue&family=Oswald:wght@500;600;700&display=swap");

:root {
  --dark: #202020;
  --charcoal: #333333;
  --ink: #222222;
  --muted: #6f6f6f;
  --paper: #fbfbf8;
  --soft: #f2f3ef;
  --line: #dedede;
  --red: #e11f22;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(25, 25, 25, 0.1);
  --shadow-soft: 0 12px 28px rgba(25, 25, 25, 0.08);
  --shadow-lift: 0 22px 56px rgba(25, 25, 25, 0.14);
  --max: 1220px;
  --narrow: 980px;
}

* {
  box-sizing: border-box;
}

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

#main-content {
  scroll-margin-top: 120px;
}

section[id] {
  scroll-margin-top: 128px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7f8f4 0, var(--soft) 420px);
  font-family: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
}

::selection {
  color: var(--white);
  background: var(--red);
}

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

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

p {
  margin: 0;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Oswald", "Barlow Condensed", Arial, Helvetica, sans-serif;
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  max-width: 840px;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 4.4rem);
  font-weight: 700;
}

h3 {
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.1;
}

strong {
  font-weight: 900;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 14px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(225, 31, 34, 0.38);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(32, 32, 32, 0.98);
  color: var(--white);
  border-bottom: 6px solid var(--red);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  min-height: 94px;
  margin: 0 auto;
  padding: 0 38px;
}

.brand {
  display: block;
  width: 96px;
  line-height: 0;
  transition: transform 160ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-small {
  width: 92px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.primary-nav a {
  display: block;
  padding: 13px 12px;
  border-radius: 3px;
  opacity: 0.92;
  transition: background 160ms ease, color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--red);
  opacity: 1;
}

.primary-nav .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--red);
  opacity: 1;
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta[aria-current="page"] {
  background: var(--white);
  color: var(--dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.page-panel {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-right: 38px;
  padding-left: 38px;
  background: var(--white);
  box-shadow: 1px 0 0 rgba(32, 32, 32, 0.04), -1px 0 0 rgba(32, 32, 32, 0.04);
}

.content-narrow {
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.content-wide {
  width: 100%;
}

.intro-copy {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.35;
}

.bang-hero {
  position: relative;
  width: min(100%, var(--max));
  min-height: 620px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.bang-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.bang-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.36) 58%, rgba(0, 0, 0, 0.08));
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100%, 870px);
  min-height: 620px;
  padding: 88px 48px;
}

.hero-copy h1 {
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(5.4rem, 15vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
}

.hero-copy .intro-copy {
  max-width: 640px;
  margin-top: 24px;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.section-block {
  padding-top: 92px;
  padding-bottom: 92px;
}

.section-block + .section-block {
  border-top: 1px solid rgba(32, 32, 32, 0.08);
}

.section-block h2 + * {
  margin-top: 42px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--red);
}

.breadcrumb a:hover {
  color: var(--dark);
}

.breadcrumb a::after {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  content: "/";
}

.breadcrumb + .about-hero,
.breadcrumb + .media-lead,
.breadcrumb + .product-detail {
  margin-top: 30px;
}

.breadcrumb + h1 {
  margin-top: 22px;
}

.breadcrumb-dark {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.breadcrumb-dark a {
  color: var(--white);
}

.breadcrumb-dark a:hover {
  color: var(--red);
}

.breadcrumb-dark a::after {
  color: rgba(255, 255, 255, 0.5);
}

.section-nav-panel {
  position: relative;
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid rgba(32, 32, 32, 0.08);
  border-bottom: 1px solid rgba(32, 32, 32, 0.08);
  background: var(--paper);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 4px;
  border-left: 4px solid var(--red);
  background: var(--white);
  color: var(--dark);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-1px);
}

.text-grid {
  display: grid;
  gap: 52px;
}

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

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

.project-grid {
  align-items: start;
  padding-top: 0;
}

.text-grid p,
.stacked-list p,
.article-header p,
.article-body p,
.product-copy p,
.image-card small,
.featured-programme span,
.featured-programme small,
.contact-page p {
  color: var(--muted);
  font-weight: 500;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 34px;
}

.value-grid article {
  min-height: 210px;
  padding: 24px;
  border-top: 6px solid var(--red);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.value-grid article:hover {
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transform: translateY(-2px);
}

.value-grid h3 {
  margin-bottom: 12px;
}

.value-grid p {
  color: var(--muted);
  font-weight: 600;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.brand-panel {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.brand-panel:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-panel img {
  aspect-ratio: 3 / 1.15;
  object-fit: contain;
}

.brand-panel p {
  color: var(--muted);
  font-weight: 600;
}

.section-block h2 {
  position: relative;
  display: inline-block;
}

.section-block h2::before,
.related-section h2::before {
  display: inline-block;
  width: 38px;
  height: 18px;
  margin-right: 16px;
  background: var(--red);
  clip-path: polygon(0 24%, 100% 0, 100% 100%, 0 78%);
  content: "";
  vertical-align: 0.18em;
}

.text-grid h3,
.stacked-list h3 {
  margin-bottom: 8px;
}

.stacked-list {
  display: grid;
  max-width: 560px;
  gap: 30px;
  margin-top: 34px;
}

.mission-section {
  padding-top: 92px;
}

.mission-section .text-grid {
  gap: 72px;
  padding-top: 0;
}

.reviews-section {
  padding-top: 92px;
  padding-bottom: 108px;
  overflow: hidden;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1fr);
  align-items: center;
  gap: 70px;
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.about-split p,
.section-lede {
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.about-split p {
  margin-top: 24px;
}

.about-split .button {
  margin-top: 28px;
}

.about-split img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.section-lede {
  max-width: 820px;
  margin-top: 24px;
}

.compact-lede {
  max-width: 560px;
  margin-top: 12px;
  font-size: 1.08rem;
}

.section-kicker {
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-projects {
  padding-top: clamp(48px, 5vw, 72px);
  padding-bottom: clamp(56px, 6vw, 80px);
}

.project-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(38px, 5vw, 72px);
  width: min(100%, 1060px);
  margin: 0 auto;
}

.project-band img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.project-band h2 {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 560px;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: 0.9;
}

.project-band h2::before {
  flex: 0 0 56px;
  width: 56px;
  height: 22px;
  margin-top: 0.16em;
  margin-right: 0;
}

.project-band p {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.38;
}

.project-band .eyebrow,
.media-lead .eyebrow {
  margin-top: 0;
}

.berkeley-home-section {
  background: var(--paper);
}

.berkeley-home-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: 60px;
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.berkeley-home-copy {
  display: grid;
  gap: 22px;
  align-content: start;
}

.berkeley-home-copy .eyebrow {
  margin-bottom: 0;
}

.berkeley-home-copy img {
  width: min(100%, 420px);
  height: auto;
}

.berkeley-home-copy p {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.36;
}

.berkeley-home-copy .button {
  width: fit-content;
}

.berkeley-home-feature > img {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(32, 32, 32, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
}

.impact-strip article {
  min-height: 138px;
  padding: 24px 22px;
  background: var(--dark);
  color: var(--white);
  transition: background 160ms ease, transform 160ms ease;
}

.impact-strip article:hover {
  background: #111111;
  transform: translateY(-2px);
}

.impact-strip strong {
  display: block;
  color: var(--red);
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 0.85;
}

.impact-strip span {
  display: block;
  margin-top: 10px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.news-grid,
.what-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}

.news-work-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: start;
  gap: 56px;
  margin-top: 42px;
}

.home-news-list {
  display: grid;
  gap: 26px;
  margin-top: 22px;
}

.home-news-list .news-card {
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 10px 20px;
}

.home-news-list .news-card img {
  grid-row: span 3;
  aspect-ratio: 4 / 3;
}

.home-work-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.news-card,
.what-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border-radius: 8px;
  transition: transform 160ms ease, color 160ms ease;
}

.news-card img,
.what-card img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  transition: box-shadow 160ms ease, filter 160ms ease, transform 160ms ease;
}

.news-card:hover,
.what-card:hover,
.image-card:hover {
  transform: translateY(-3px);
}

.news-card:hover img,
.what-card:hover img,
.image-card:hover img {
  box-shadow: var(--shadow-lift);
  filter: saturate(1.04) contrast(1.02);
}

.news-card h3,
.what-card h3 {
  color: var(--red);
}

.news-card p,
.what-card p {
  color: var(--muted);
  font-weight: 600;
}

.news-meta {
  display: inline-flex;
  width: fit-content;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 3px;
  background: var(--paper);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.partner-section {
  padding-top: 82px;
}

.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.partner-logo-card {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.partner-logo-card:hover {
  border-color: rgba(225, 31, 34, 0.28);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.partner-logo-card img {
  width: min(100%, 275px);
  max-height: 128px;
  object-fit: contain;
}

.partner-logo-tall img {
  width: auto;
  max-width: min(100%, 170px);
  max-height: 150px;
}

.partner-bang img {
  width: min(100%, 270px);
  height: auto;
}

.partner-bbc img {
  width: min(100%, 245px);
  max-height: 132px;
}

.partner-berkeley {
  align-content: center;
  gap: 0;
}

.berkeley-mark {
  position: relative;
  width: 44px;
  height: 26px;
  margin-bottom: 2px;
}

.berkeley-mark::before,
.berkeley-mark::after {
  position: absolute;
  content: "";
}

.berkeley-mark::before {
  left: 6px;
  bottom: 5px;
  width: 28px;
  height: 8px;
  border-radius: 999px 999px 0 999px;
  background: #78a64b;
  transform: rotate(-20deg);
}

.berkeley-mark::after {
  right: 5px;
  bottom: 1px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: #8c8c8c;
  transform: rotate(18deg);
}

.berkeley-name {
  color: #c71935;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.berkeley-foundation {
  color: #6b6b6b;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1;
}

.partner-john-lyon {
  gap: 8px;
  color: #0f3761;
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.05;
  text-transform: uppercase;
}

.partner-john-lyon strong {
  font: inherit;
}

.john-lyon-crest {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 3px solid #a88d45;
  color: #a88d45;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.partner-stacks span {
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-style: italic;
  font-weight: 900;
  line-height: 0.9;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.review-card {
  display: flex;
  min-height: 224px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  border-radius: 0;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
}

.review-card p {
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer strong,
.reviewer small {
  display: block;
  line-height: 1.1;
}

.reviewer small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
}

.avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.red-avatar {
  background: radial-gradient(circle at 35% 35%, #ffefef 0 16%, #141414 17% 42%, var(--red) 43%);
}

.dark-avatar {
  background: radial-gradient(circle at 38% 32%, #f9d2b3 0 17%, #101010 18% 40%, #0f332d 41%);
}

.blue-avatar {
  background: radial-gradient(circle at 35% 35%, #c9f2ff 0 18%, #142238 19% 43%, #376ca8 44%);
}

.testimonial-slider {
  position: relative;
  margin-top: 42px;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 8px;
  background: var(--red);
  box-shadow: var(--shadow);
}

.testimonial-track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.testimonial-slide {
  display: grid;
  min-width: 100%;
  min-height: 300px;
  padding: 58px 72px;
  align-content: center;
  gap: 28px;
  color: var(--white);
}

.testimonial-slide p {
  max-width: 900px;
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  text-transform: uppercase;
}

.testimonial-slide span {
  color: var(--dark);
  font-family: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.slider-button,
.slider-dot {
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.slider-button {
  min-width: 42px;
  min-height: 38px;
  color: var(--white);
  background: var(--dark);
  font-size: 1.05rem;
}

.slider-button:hover,
.slider-button:focus-visible {
  background: var(--red);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: var(--line);
}

.slider-dot.is-active {
  background: var(--red);
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  border-top: 6px solid var(--red);
}

.footer-berkeley {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 620px);
  align-items: center;
  justify-content: center;
  gap: clamp(34px, 6vw, 92px);
  width: 100%;
  margin: 0 auto;
  padding: 34px max(38px, calc((100vw - var(--max)) / 2 + 38px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #202020;
  color: var(--white);
}

.footer-berkeley div {
  display: grid;
  gap: 10px;
}

.footer-berkeley span {
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.footer-berkeley img {
  width: min(100%, 310px);
  height: auto;
  padding: 12px 14px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.footer-berkeley p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 0.9fr 0.75fr 100px;
  align-items: start;
  gap: 40px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 58px 38px 44px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.footer-inner address {
  font-style: normal;
}

.footer-inner strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.footer-brand {
  display: grid;
  gap: 22px;
  align-items: start;
}

.footer-links {
  display: grid;
  gap: 7px;
}

.footer-links a {
  width: fit-content;
  color: #dddddd;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--red);
}

.social-dots {
  display: flex;
  gap: 10px;
}

.social-dots a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #000000;
  background: #f74f2f;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.social-dots a:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.social-dots a:nth-child(1)::before {
  content: "f";
}

.social-dots a:nth-child(2)::before {
  content: "ig";
}

.footer-badge {
  justify-self: end;
}

.footer-badge img {
  width: 86px;
  height: auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 38px 24px;
  color: #cccccc;
  background: #1b1b1b;
  font-size: 0.82rem;
}

.footer-bottom a {
  color: var(--red);
  font-weight: 800;
}

.article-page,
.product-page,
.about-page,
.contact-page {
  padding-top: 54px;
  padding-bottom: 72px;
}

.article-wrap {
  width: min(100%, 1000px);
  margin: 0 auto;
}

.article-header p {
  max-width: 560px;
  margin-top: 18px;
}

.feature-image {
  height: min(42vw, 510px);
  min-height: 300px;
  margin-top: 42px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.article-body {
  display: grid;
  gap: 20px;
  width: min(100%, 610px);
  margin: 42px auto;
  font-weight: 700;
}

.article-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.article-media-grid img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.media-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 54px;
}

.media-lead h1 {
  font-size: clamp(3rem, 5.6vw, 5.3rem);
}

.media-lead img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.media-lead p {
  max-width: 620px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.36;
}

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

.gallery-grid img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--soft);
}

.related-section {
  margin-top: 58px;
}

.related-section h2 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.card-grid {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.image-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  background: var(--white);
  transition: transform 160ms ease;
}

.image-card img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  background: var(--soft);
}

.image-card span,
.image-card small {
  display: block;
}

.image-card span {
  margin-top: 4px;
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
}

.image-card small {
  font-size: 0.84rem;
  line-height: 1.25;
}

.case-study-page {
  background: var(--white);
}

.case-study-hero {
  position: relative;
  display: grid;
  align-items: end;
  width: min(100%, var(--max));
  min-height: 680px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
  box-shadow: var(--shadow);
}

.case-study-hero > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.case-study-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.82));
}

.case-study-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  padding: 90px 48px 76px;
}

.case-study-hero-copy h1 {
  color: var(--white);
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(4.2rem, 9vw, 7.8rem);
  font-weight: 400;
  line-height: 0.86;
}

.case-study-hero-copy .intro-copy {
  max-width: 650px;
  margin-top: 24px;
  color: var(--white);
}

.case-study-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 64px;
  align-items: start;
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.case-study-overview p,
.case-study-text-grid p,
.case-study-step-grid p,
.case-study-outcome p {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.42;
}

.case-study-overview p {
  margin-top: 24px;
}

.case-study-overview p + p,
.case-study-text-grid p + p {
  margin-top: 16px;
}

.case-study-facts {
  display: grid;
  gap: 16px;
}

.case-study-facts article {
  display: grid;
  gap: 5px;
  padding: 24px;
  border-top: 6px solid var(--red);
  background: var(--soft);
}

.case-study-facts span,
.case-study-step-grid span {
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.case-study-facts strong {
  color: var(--dark);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  text-transform: uppercase;
}

.case-study-screen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  margin-top: 38px;
}

.case-study-screen {
  display: grid;
  gap: 12px;
  margin: 0;
}

.case-study-screen-wide {
  grid-column: 1 / -1;
}

.case-study-screen img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  object-position: top center;
  background: var(--soft);
}

.case-study-screen-phone {
  justify-self: center;
  width: min(100%, 360px);
}

.case-study-screen-phone img {
  aspect-ratio: 9 / 16;
  border: 8px solid var(--dark);
}

.case-study-screen figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.case-study-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.case-study-process-section {
  background: var(--paper);
}

.case-study-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.case-study-step-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 24px;
  border-top: 6px solid var(--red);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.case-study-developers-section {
  background: var(--paper);
}

.case-study-developer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.case-study-developer {
  display: grid;
  overflow: hidden;
  border-top: 6px solid var(--red);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
}

.case-study-developer img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--soft);
}

.case-study-developer div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px 24px 24px;
}

.case-study-developer h3 {
  font-size: 1.62rem;
}

.case-study-developer span,
.case-study-developer a {
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.case-study-developer span {
  color: var(--muted);
}

.case-study-developer a {
  width: fit-content;
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.case-study-developer a:hover {
  color: var(--dark);
}

.case-study-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 600;
}

.case-study-list + p {
  margin-top: 24px;
}

.case-study-list code {
  color: var(--dark);
  font-weight: 800;
}

.case-study-outcome-section {
  padding-bottom: 104px;
}

.case-study-outcome {
  display: grid;
  gap: 22px;
  width: min(100%, var(--narrow));
  margin: 0 auto;
  padding: 48px;
  border-radius: 8px;
  background: var(--dark);
  color: var(--white);
}

.case-study-outcome h2 {
  color: var(--white);
}

.case-study-outcome p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.case-study-outcome .button {
  width: fit-content;
}

.programmes-page {
  background: var(--white);
}

.programme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(410px, 0.9fr);
  width: min(100%, var(--max));
  min-height: 520px;
  margin: 0 auto;
  background: var(--dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.programme-hero > img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.programme-hero-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 64px 42px;
}

.programme-hero-copy h1 {
  max-width: none;
  color: var(--white);
  font-family: "Bebas Neue", "Oswald", sans-serif;
  font-size: clamp(4.4rem, 7vw, 6.1rem);
  font-weight: 400;
  line-height: 0.86;
}

.programme-hero-copy p:not(.eyebrow) {
  max-width: 430px;
  margin-top: 22px;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.32;
}

.programme-hero-copy .button {
  width: fit-content;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: "Barlow Semi Condensed", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(25, 25, 25, 0.08);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  box-shadow: 0 16px 30px rgba(25, 25, 25, 0.14);
  transform: translateY(-1px);
}

.button-red,
.button-dark {
  color: var(--white);
}

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

.button-red:hover {
  background: var(--dark);
  border-color: var(--dark);
}

.button-dark {
  background: #000000;
  border-color: #000000;
}

.button-light,
.button-outline {
  color: var(--dark);
  background: #eeeeee;
  border-color: #eeeeee;
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: var(--white);
  box-shadow: none;
}

.button-outline:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 64px;
  width: min(100%, var(--narrow));
  margin: 0 auto;
}

.project-feature img {
  aspect-ratio: 16 / 11;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.project-feature p:not(.eyebrow) {
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.36;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 28px;
  margin-top: 42px;
}

.project-card {
  border-top: 6px solid var(--red);
  padding-top: 14px;
}

.project-card img {
  aspect-ratio: 4 / 3;
}

.project-outcomes-section {
  padding-top: 24px;
}

.project-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.project-outcome-card {
  min-width: 0;
}

.project-outcome-card img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.project-outcome-card h3 {
  margin-top: 16px;
  color: var(--red);
}

.project-outcome-card p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.project-gallery-row {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
  margin-top: 34px;
}

.project-gallery-row img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.project-gallery-row img:first-child {
  aspect-ratio: 16 / 9;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(340px, 1fr);
  align-items: center;
  gap: 96px;
  width: min(100%, 980px);
  margin: 0 auto 64px;
}

.split-row-reverse {
  grid-template-columns: minmax(340px, 1fr) minmax(250px, 0.9fr);
}

.split-row p {
  max-width: 430px;
  margin-top: 18px;
  color: var(--muted);
}

.split-row img {
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.featured-programme-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  margin-top: 26px;
}

.featured-programme {
  display: grid;
  align-content: start;
  gap: 7px;
}

.featured-programme img {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.featured-programme strong {
  margin-top: 10px;
  color: var(--red);
  font-family: "Barlow Condensed", Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.side-programmes {
  display: grid;
  gap: 28px;
}

.side-programmes .image-card img {
  aspect-ratio: 16 / 8.5;
}

.impact-grid-section {
  padding-top: 6px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  align-items: start;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.product-detail > img {
  height: min(46vw, 480px);
  min-height: 360px;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.product-copy {
  display: grid;
  gap: 13px;
}

.product-copy h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.subdued {
  color: var(--muted);
}

.wide-button {
  width: min(100%, 330px);
  margin-top: 6px;
}

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

.detail-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.detail-points article {
  padding: 26px 24px;
  border-radius: 8px;
  background: var(--soft);
  border-top: 6px solid var(--red);
}

.detail-points p {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.about-page {
  min-height: 0;
  padding-top: 76px;
  padding-bottom: 88px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 68px;
  align-items: center;
  width: min(100%, 1060px);
  margin: 0 auto;
}

.about-title {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--red);
}

.about-title h1 {
  max-width: none;
  color: var(--red);
  font-size: clamp(3rem, 7vw, 6.4rem);
}

.red-marker {
  flex: 0 0 auto;
  width: 45px;
  height: 26px;
  background: var(--red);
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 82%);
}

.about-copy p {
  max-width: 630px;
  margin-top: 34px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.36;
}

.about-copy p + p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.1rem;
}

.portrait-block {
  padding: 0;
  background: transparent;
}

.portrait-block img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.contact-page {
  min-height: 660px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 84px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.contact-image {
  margin-top: 34px;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.contact-layout .intro-copy {
  max-width: 560px;
  margin-top: 24px;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border-radius: 8px;
  border-top: 6px solid var(--red);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 13px 12px;
  font: inherit;
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(25, 25, 25, 0.03);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(225, 31, 34, 0.12);
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 140px;
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 78px;
    padding: 0 24px;
  }

  .brand {
    width: 80px;
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .primary-nav {
    position: absolute;
    z-index: 10;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100svh - 86px);
    padding: 12px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 8px 8px;
    background: var(--dark);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.95rem;
  }

  .primary-nav a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
  }

  .primary-nav .nav-cta {
    justify-content: center;
    margin-top: 8px;
    margin-left: 0;
    text-align: center;
  }

  .primary-nav.is-open {
    display: flex;
  }

  section[id] {
    scroll-margin-top: 108px;
  }

  .page-panel {
    padding-right: 24px;
    padding-left: 24px;
  }

  .section-block {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-block h2 + * {
    margin-top: 32px;
  }

  .text-grid {
    gap: 34px;
  }

  .home-hero {
    min-height: 500px;
  }

  .hero-copy {
    min-height: 500px;
    padding: 68px 28px;
  }

  .case-study-hero {
    min-height: 560px;
  }

  .case-study-hero-copy {
    padding: 72px 28px 58px;
  }

  .case-study-screen-wide {
    grid-column: auto;
  }

  .case-study-step-grid article {
    min-height: 0;
  }

  .case-study-developer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }

  .about-split p,
  .section-lede,
  .project-band p,
  .project-feature p:not(.eyebrow),
  .media-lead p {
    font-size: 1.15rem;
  }

  .two-up,
  .three-up,
  .review-grid,
  .about-split,
  .project-band,
  .berkeley-home-feature,
  .programme-hero,
  .project-feature,
  .impact-strip,
  .news-work-layout,
  .article-media-grid,
  .media-lead,
  .gallery-grid,
  .project-gallery-row,
  .featured-programme-grid,
  .value-grid,
  .brand-grid,
  .case-study-overview,
  .case-study-screen-grid,
  .case-study-text-grid,
  .case-study-step-grid,
  .detail-points,
  .product-detail,
  .product-grid,
  .about-hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .mission-section .text-grid {
    padding-top: 0;
  }

  .mission-section {
    padding-top: 30px;
  }

  .split-row,
  .split-row-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .gallery-grid,
  .impact-strip,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .programme-hero > img {
    min-height: 360px;
  }

  .programme-hero-copy {
    padding: 48px 28px 56px;
  }

  .product-copy {
    order: 1;
  }

  .product-detail > img {
    order: 2;
  }

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

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

  .home-news-list .news-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .brand-panel {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .about-hero {
    gap: 44px;
  }

  .about-copy p {
    margin-top: 38px;
  }

  .about-copy p + p {
    margin-top: 14px;
  }

  .portrait-block {
    max-width: 420px;
  }

  .contact-details {
    margin-top: 28px;
  }

  .contact-layout {
    gap: 44px;
  }

  .footer-berkeley {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-inner,
  .footer-bottom,
  .contact-details,
  .product-copy {
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-badge {
    justify-self: start;
  }

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

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  h2 {
    font-size: 1.75rem;
    line-height: 1.04;
  }

  h3 {
    font-size: 1.12rem;
  }

  .media-lead h1 {
    font-size: 2.35rem;
  }

  .about-title h1,
  .product-copy h1,
  .related-section h2 {
    font-size: 2.35rem;
    line-height: 1;
  }

  .header-inner {
    min-height: 70px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    width: 72px;
  }

  .primary-nav {
    right: 10px;
    left: 10px;
    max-height: calc(100svh - 76px);
  }

  .page-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-block {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .section-block h2 + * {
    margin-top: 26px;
  }

  .section-block h2::before,
  .related-section h2::before {
    width: 28px;
    height: 13px;
    margin-right: 10px;
  }

  .home-hero {
    min-height: 460px;
    padding-top: 0;
  }

  .case-study-hero {
    min-height: 500px;
  }

  .bang-hero::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.82));
  }

  .hero-copy {
    min-height: 460px;
    padding: 52px 18px 40px;
    align-content: end;
  }

  .hero-copy h1 {
    font-size: 4.6rem;
  }

  .case-study-hero-copy {
    padding: 52px 18px 42px;
  }

  .case-study-hero-copy h1 {
    font-size: 4rem;
  }

  .hero-copy .intro-copy,
  .intro-copy,
  .case-study-hero-copy .intro-copy {
    font-size: 1.04rem;
  }

  .about-split,
  .project-band,
  .berkeley-home-feature,
  .project-feature,
  .news-work-layout,
  .media-lead,
  .product-detail,
  .contact-layout {
    gap: 30px;
  }

  .about-split p,
  .section-lede,
  .project-band p,
  .project-feature p:not(.eyebrow),
  .media-lead p {
    font-size: 1.03rem;
  }

  .project-band h2 {
    gap: 12px;
    font-size: 2.55rem;
  }

  .project-band h2::before {
    flex-basis: 34px;
    width: 34px;
    height: 16px;
  }

  .berkeley-home-copy p,
  .footer-berkeley p {
    font-size: 1rem;
  }

  .case-study-overview p,
  .case-study-text-grid p,
  .case-study-step-grid p,
  .case-study-outcome p {
    font-size: 1rem;
  }

  .compact-lede {
    font-size: 1rem;
  }

  .button {
    width: 100%;
    min-height: 48px;
    padding-right: 16px;
    padding-left: 16px;
    text-align: center;
    white-space: normal;
  }

  .review-card {
    min-height: 190px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .testimonial-slide {
    min-height: 320px;
    padding: 34px 24px;
  }

  .testimonial-slide p {
    font-size: 1.75rem;
    line-height: 1.05;
  }

  .testimonial-slide span {
    font-size: 0.92rem;
  }

  .news-grid,
  .what-grid,
  .impact-strip,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo-grid {
    grid-template-columns: 1fr;
  }

  .partner-logo-card {
    min-height: 148px;
    padding: 22px;
  }

  .partner-logo-card img {
    max-height: 112px;
  }

  .partner-logo-tall img {
    max-height: 132px;
  }

  .partner-bbc img {
    width: min(100%, 220px);
    max-height: 120px;
  }

  .home-news-list .news-card,
  .home-work-list {
    grid-template-columns: 1fr;
  }

  .home-news-list .news-card img {
    grid-row: auto;
  }

  .project-card-grid,
  .project-outcome-grid {
    grid-template-columns: 1fr;
  }

  .programme-hero > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .programme-hero-copy {
    padding: 36px 18px 44px;
  }

  .programme-hero-copy h1 {
    font-size: 4rem;
  }

  .programme-hero-copy p:not(.eyebrow) {
    font-size: 1.04rem;
  }

  .programme-hero-copy .button,
  .wide-button,
  .contact-form .button {
    width: 100%;
  }

  .project-gallery-row img:first-child {
    aspect-ratio: 4 / 3;
  }

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

  .brand-panel {
    grid-template-columns: 1fr;
  }

  .case-study-facts article,
  .case-study-step-grid article {
    padding: 22px;
  }

  .case-study-screen-grid {
    gap: 24px;
  }

  .case-study-screen-phone {
    width: min(100%, 300px);
  }

  .case-study-developer-grid {
    grid-template-columns: 1fr;
  }

  .case-study-developer div {
    padding: 20px;
  }

  .about-page,
  .contact-page,
  .product-page,
  .article-page {
    padding-top: 42px;
    padding-bottom: 54px;
  }

  .about-title {
    gap: 12px;
  }

  .red-marker {
    width: 32px;
    height: 20px;
  }

  .about-copy p,
  .about-copy p + p {
    font-size: 1.04rem;
  }

  .contact-image {
    margin-top: 24px;
    aspect-ratio: 4 / 3;
  }

  .berkeley-home-copy img {
    width: min(100%, 330px);
  }

  .berkeley-home-copy .button {
    width: 100%;
  }

  .contact-form {
    gap: 14px;
    padding: 22px;
  }

  .contact-form input,
  .contact-form textarea {
    min-height: 46px;
    font-size: 1rem;
  }

  .section-nav-panel {
    position: static;
  }

  .section-nav {
    gap: 8px;
  }

  .section-nav a {
    width: 100%;
  }

  .value-grid article {
    min-height: 0;
    padding: 22px;
  }

  .impact-strip article {
    min-height: 110px;
    padding: 20px;
  }

  .impact-strip strong {
    font-size: 2.7rem;
  }

  .feature-image,
  .product-detail > img {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button-row .button {
    width: 100%;
  }

  .footer-badge img {
    width: 84px;
  }

  .footer-inner {
    padding: 42px 18px 30px;
  }

  .footer-berkeley {
    padding: 28px 18px;
  }

  .footer-berkeley img {
    width: min(100%, 260px);
    padding: 10px 12px;
  }

  .footer-bottom {
    gap: 10px;
    padding: 16px 18px 22px;
  }

  .case-study-outcome-section {
    padding-bottom: 58px;
  }

  .case-study-outcome {
    padding: 30px 22px;
  }

  .case-study-outcome .button {
    width: 100%;
  }
}

@media (max-width: 380px) {
  h1,
  .media-lead h1,
  .about-title h1,
  .product-copy h1,
  .related-section h2 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .page-panel {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy h1 {
    font-size: 4rem;
  }

  .programme-hero-copy h1 {
    font-size: 3.5rem;
  }

  .case-study-hero-copy h1 {
    font-size: 3.45rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .footer-berkeley,
  .footer-bottom {
    padding-right: 16px;
    padding-left: 16px;
  }
}

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

  .brand:hover,
  .button:hover,
  .news-card:hover,
  .what-card:hover,
  .image-card:hover,
  .impact-strip article:hover,
  .value-grid article:hover,
  .brand-panel:hover,
  .partner-logo-card:hover,
  .section-nav a:hover,
  .section-nav a:focus-visible,
  .social-dots a:hover {
    transform: none;
  }
}
