/*
Theme Name: Leici Co.
Theme URI: https://leici-co.com
Author: Leici Co.
Author URI: https://leici-co.com
Description: Fixed-sidebar company introduction theme for Leici Creative Company.
Version: 1.3.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: leici-co
*/

:root {
  --leici-ink: #111316;
  --leici-muted: #5f665f;
  --leici-paper: #eff0eb;
  --leici-paper-strong: #f8f8f2;
  --leici-sidebar: #737c80;
  --leici-line: rgba(17, 19, 22, 0.24);
  --leici-line-soft: rgba(17, 19, 22, 0.11);
  --leici-accent: #ffc53d;
  --leici-steel: #587385;
  --leici-white: #ffffff;
  --leici-sidebar-width: clamp(320px, 28vw, 440px);
  --leici-heading-font: "Montserrat", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--leici-sidebar);
  color: var(--leici-ink);
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--leici-paper);
  color: var(--leici-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body::selection {
  background: var(--leici-accent);
  color: var(--leici-ink);
}

body.admin-bar .fixed-sidebar {
  height: calc(100vh - 32px);
  top: 32px;
}

body.admin-bar .mobile-header {
  top: 32px;
}

body.leici-menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  background: linear-gradient(90deg, var(--leici-sidebar) 0 var(--leici-sidebar-width), var(--leici-paper) var(--leici-sidebar-width));
}

.fixed-sidebar {
  background: var(--leici-sidebar);
  color: var(--leici-paper-strong);
  display: flex;
  flex-direction: column;
  height: 100vh;
  justify-content: flex-start;
  left: 0;
  padding: clamp(48px, 5vw, 76px) clamp(32px, 4vw, 58px) clamp(44px, 4vw, 62px);
  position: fixed;
  top: 0;
  width: var(--leici-sidebar-width);
  z-index: 40;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: 0;
  width: max-content;
}
.sidebar-logo {
  display: block;
  height: auto;
  max-height: clamp(38px, 3.4vw, 52px);
  width: auto;
}

.mobile-logo {
  display: block;
  height: auto;
  max-height: 34px;
  width: auto;
}

.brand-mark {
  background: linear-gradient(135deg, #ffda54 0%, #ffb931 78%);
  border-radius: 999px 999px 6px 999px;
  display: block;
  height: 52px;
  width: 52px;
}

.fixed-sidebar .brand-mark {
  height: clamp(54px, 4.55vw, 68px);
  width: clamp(54px, 4.55vw, 68px);
}

.brand-name {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  font-family: var(--leici-heading-font);
  gap: 0;
  line-height: 0.88;
  margin-left: -6px;
}

.brand-name strong {
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  letter-spacing: 0;
}

.fixed-sidebar .brand-name strong {
  color: var(--leici-paper-strong);
  font-size: clamp(32px, 3.25vw, 46px);
  font-weight: 800;
}

.brand-name small {
  color: #efbd34;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 2px;
  text-transform: lowercase;
}

.fixed-sidebar .brand-name small {
  color: var(--leici-accent);
  font-size: clamp(10px, 0.86vw, 12px);
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(38px, 6vh, 88px);
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
}

.side-nav a {
  align-items: center;
  color: var(--leici-paper-strong);
  display: flex;
  font-family: var(--leici-heading-font);
  font-size: clamp(19px, 1.42vw, 25px);
  font-weight: 600;
  justify-content: flex-start;
  line-height: 1;
  padding: 2px 0;
  transition: opacity 160ms ease;
  width: 100%;
}

.side-nav a:hover {
  opacity: 0.72;
}

.nav-label {
  display: inline-block;
}

.sidebar-foot {
  display: grid;
  align-items: start;
  gap: clamp(24px, 3vw, 56px);
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.script-label {
  color: var(--leici-paper-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(20px, 1.6vw, 28px);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 34px;
  white-space: nowrap;
}

.sidebar-note,
.mini-links {
  color: rgba(248, 248, 242, 0.84);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.55;
  margin: 0;
  max-width: 240px;
}

.mini-links {
  align-items: center;
  display: flex;
  gap: clamp(16px, 1.7vw, 28px);
  max-width: none;
}

.mini-links a {
  align-items: center;
  border-bottom: 0;
  color: var(--leici-paper-strong);
  display: inline-flex;
  height: 28px;
  opacity: 0.94;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 28px;
}

.mini-links a:hover {
  opacity: 0.68;
  transform: translateY(-2px);
}

.social-glyph {
  align-items: center;
  display: inline-flex;
}

.social-glyph svg {
  display: block;
  height: 20px;
  width: 20px;
}

.social-glyph path {
  fill: currentColor;
}

.social-glyph rect,
.social-glyph circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-glyph circle:last-child {
  fill: currentColor;
  stroke: none;
}

.sidebar-foot > div:last-child {
  text-align: right;
}

.sidebar-foot > div:last-child .script-label {
  margin-bottom: 16px;
}

.sidebar-note {
  color: rgba(248, 248, 242, 0.78);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(10px, 0.75vw, 12px);
  line-height: 1.45;
  margin: 0;
}

.mobile-header,
.mobile-menu {
  display: none;
}

.scroll-progress {
  background: rgba(17, 19, 22, 0.08);
  bottom: 0;
  height: 3px;
  left: var(--leici-sidebar-width);
  position: fixed;
  right: 0;
  z-index: 50;
}

.scroll-progress span {
  background: var(--leici-accent);
  display: block;
  height: 100%;
  transition: width 240ms ease;
}

.page-column {
  background: var(--leici-paper);
  margin-left: var(--leici-sidebar-width);
  min-height: 100vh;
  overflow: hidden;
}

.section-block {
  padding-left: clamp(28px, 5.6vw, 86px);
  padding-right: clamp(28px, 5.6vw, 86px);
}

.hero-section {
  min-height: 0;
  padding-top: clamp(50px, 5.8vw, 76px);
  position: relative;
}

.top-cta,
.outline-cta,
.division-overlay a,
.hero-media figcaption a,
.inline-heading a {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--leici-heading-font);
  font-size: 10px;
  font-weight: 700;
  gap: 6px;
  line-height: 1;
  min-height: 25px;
  padding: 7px 13px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.top-cta {
  background: var(--leici-steel);
  border-color: transparent;
  color: var(--leici-white);
  position: absolute;
  right: clamp(28px, 5.6vw, 86px);
  top: 42px;
}

.top-cta:hover,
.outline-cta:hover,
.division-overlay a:hover,
.hero-media figcaption a:hover,
.inline-heading a:hover {
  background: var(--leici-ink);
  border-color: var(--leici-ink);
  color: var(--leici-paper-strong);
  transform: translateY(-2px);
}

.hero-copy {
  max-width: 710px;
  padding-right: clamp(36px, 5vw, 76px);
}

.eyebrow {
  color: var(--leici-steel);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.hero-copy h1,
.site-footer h2,
.project-call h2,
.partners h2,
.section-heading h2,
.center-heading h2,
.inline-heading h2,
.large-statement,
.capability-card h3,
.division-overlay h3,
.footer-grid h3,
.leici-default-page h1 {
  font-family: var(--leici-heading-font);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(32px, 3.15vw, 52px);
  max-width: 560px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--leici-muted);
  font-size: clamp(13px, 0.94vw, 16px);
  line-height: 1.58;
  margin: 24px 0 0;
  max-width: 760px;
}

.service-tabs {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(38px, 4.8vw, 56px) 0 34px;
}

.service-tabs a {
  font-family: var(--leici-heading-font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  position: relative;
  transition: color 160ms ease;
}

.service-tabs a::after {
  background: var(--leici-ink);
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
  width: 100%;
}

.service-tabs a:hover::after {
  transform: scaleX(1);
}

.hero-media {
  aspect-ratio: 16 / 6.4;
  margin: 0 calc(clamp(28px, 5.6vw, 86px) * -1);
  min-height: 310px;
  overflow: hidden;
  position: relative;
}

.hero-media::after {
  background: rgba(17, 19, 22, 0.25);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms ease;
  width: 100%;
}

.hero-media:hover img {
  transform: scale(1.045);
}

.hero-media figcaption {
  bottom: 15%;
  display: flex;
  gap: 24px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-media figcaption a {
  color: var(--leici-white);
  min-width: 110px;
  white-space: nowrap;
}

.manifesto {
  display: grid;
  min-height: 340px;
  place-items: center;
  text-align: center;
}

.large-statement {
  font-size: clamp(27px, 3.4vw, 45px);
  font-weight: 800;
  line-height: 1.03;
  margin: 0 auto;
  max-width: 680px;
  text-transform: uppercase;
}

.large-statement.italic {
  font-size: clamp(22px, 2.7vw, 36px);
  font-style: italic;
  font-weight: 500;
  margin-top: 22px;
}

.capabilities {
  padding-bottom: clamp(72px, 8vw, 120px);
}

.section-heading {
  margin: 0 auto 40px;
  max-width: 1160px;
}

.section-heading h2,
.partners h2,
.project-call h2,
.center-heading h2,
.inline-heading h2 {
  font-size: clamp(24px, 2.55vw, 36px);
}

.section-heading h2 span {
  color: var(--leici-accent);
  display: inline-block;
  font-size: 0.72em;
  transform: translateY(-2px);
}

.section-heading p {
  color: var(--leici-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  margin: 26px 0 0;
  max-width: 1060px;
}

.capability-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-card {
  border: 1px solid var(--leici-line);
  border-radius: 8px;
  min-height: 144px;
  padding: 24px 18px 18px;
  text-align: center;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.capability-card:hover {
  background: var(--leici-paper-strong);
  border-color: rgba(17, 19, 22, 0.42);
  transform: translateY(-5px);
}

.capability-card h3 {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 18px;
}

.capability-card p {
  color: var(--leici-muted);
  font-size: 11px;
  line-height: 1.28;
  margin: 0 auto;
  max-width: 210px;
}

.capability-card small {
  color: rgba(17, 19, 22, 0.82);
  display: block;
  font-size: 10px;
  line-height: 1.25;
  margin-top: 18px;
}

.divisions {
  padding-bottom: clamp(86px, 10vw, 140px);
}

.center-heading {
  margin-bottom: clamp(52px, 6vw, 76px);
  text-align: center;
}

.division-grid {
  display: grid;
  gap: clamp(34px, 5vw, 74px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 820px;
}

.division-card {
  aspect-ratio: 0.82;
  background: var(--leici-ink);
  color: var(--leici-white);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.division-card img {
  filter: grayscale(0.18) saturate(0.8);
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease, filter 500ms ease;
  width: 100%;
}

.division-card::after {
  background: linear-gradient(180deg, rgba(17, 19, 22, 0.15), rgba(17, 19, 22, 0.7));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.division-card:hover img {
  filter: grayscale(0) saturate(0.94);
  transform: scale(1.06);
}

.division-overlay {
  align-items: center;
  display: flex;
  flex-direction: column;
  inset: 0;
  padding: 12%;
  position: absolute;
  text-align: center;
  z-index: 2;
}

.division-overlay h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  margin: 0 0 25px;
}

.division-overlay p {
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.25;
  margin: 0;
  max-width: 360px;
}

.division-overlay ul {
  font-size: clamp(11px, 1.05vw, 14px);
  line-height: 1.25;
  list-style-position: inside;
  margin: 18px 0 22px;
  padding: 0;
  text-align: left;
}

.division-overlay a {
  color: var(--leici-white);
  margin-top: auto;
}

.works {
  padding-bottom: clamp(70px, 8vw, 112px);
}

.inline-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: none;
}

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

.work-marquee span {
  border: 1px solid var(--leici-line-soft);
  border-radius: 8px;
  color: var(--leici-ink);
  display: flex;
  font-family: var(--leici-heading-font);
  font-size: clamp(12px, 0.92vw, 15px);
  font-weight: 700;
  line-height: 1.15;
  min-height: 58px;
  padding: 16px 18px;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.work-marquee span:hover {
  background: var(--leici-paper-strong);
  border-color: var(--leici-line);
  transform: translateY(-3px);
}

.partners {
  padding-bottom: clamp(90px, 10vw, 150px);
}

.partner-strip {
  align-items: center;
  display: grid;
  gap: clamp(14px, 3vw, 44px);
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin: clamp(50px, 6vw, 72px) auto 0;
  max-width: 980px;
}

.partner-strip span {
  color: rgba(17, 19, 22, 0.54);
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1.2vw, 20px);
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  transition: color 160ms ease, transform 160ms ease;
}

.partner-strip span:hover {
  color: var(--leici-ink);
  transform: translateY(-2px);
}

.project-call {
  min-height: 340px;
  padding-bottom: 96px;
}

.project-call h2 {
  max-width: 440px;
}

.project-call p {
  color: var(--leici-muted);
  font-size: 15px;
  line-height: 1.45;
  margin: 24px 0 20px;
  max-width: 670px;
}

.site-footer {
  border-top: 1px solid var(--leici-line);
  padding-bottom: 40px;
  padding-top: clamp(36px, 4vw, 56px);
}

.site-footer h2 {
  font-size: clamp(34px, 3.8vw, 56px);
  max-width: 560px;
  display: none;
}

.footer-grid {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(36px, 4vw, 56px);
}

.footer-grid h3 {
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid a {
  color: var(--leici-muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-grid a:hover {
  color: var(--leici-ink);
}

.social-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-stack a {
  align-items: center;
  color: var(--leici-ink);
  display: inline-flex;
  font-family: var(--leici-heading-font);
  font-size: 13px;
  font-weight: 900;
  gap: 9px;
  text-transform: uppercase;
}

.social-stack span {
  align-items: center;
  background: var(--leici-accent);
  border-radius: 999px;
  color: var(--leici-ink);
  display: inline-flex;
  font-size: 10px;
  height: 17px;
  width: 17px;
}

.footer-social-mobile {
  display: none;
}

.copyright {
  color: var(--leici-muted);
  font-size: 12px;
  margin: 40px 0 0;
  text-align: center;
}

.leici-default-page {
  background: var(--leici-paper);
  min-height: 100vh;
  padding: 80px 24px;
}

.leici-default-page .content {
  margin: 0 auto;
  max-width: 760px;
}

.leici-default-page h1 {
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 900;
  line-height: 0.96;
  margin: 0 0 28px;
  text-transform: uppercase;
}

.leici-default-page p {
  color: var(--leici-muted);
  font-size: 18px;
  line-height: 1.6;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-100% - 36px));
  }
}

@media (max-width: 1180px) {
  :root {
    --leici-sidebar-width: 340px;
  }

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

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

@media (min-width: 861px) and (max-height: 1200px) {
  .fixed-sidebar {
    padding-bottom: 54px;
    padding-top: 58px;
  }

  .fixed-sidebar .brand-mark {
    height: 52px;
    width: 52px;
  }

  .fixed-sidebar .brand-name strong {
    font-size: clamp(32px, 2.8vw, 40px);
  }

  .fixed-sidebar .brand-name small {
    font-size: 12px;
  }

  .side-nav {
    gap: clamp(28px, 4.8vh, 62px);
    margin-top: auto;
    margin-bottom: auto;
  }

  .side-nav a {
    font-size: clamp(18px, 1.35vw, 22px);
  }

  .script-label {
    font-size: 18px;
    margin-bottom: 18px;
  }

  .sidebar-note,
  .mini-links {
    font-size: 15px;
  }

  .mini-links {
    gap: 12px;
  }

  .mini-links a {
    height: 24px;
    width: 24px;
  }

  .sidebar-note {
    font-size: 15px;
    line-height: 1.45;
  }
}

@media (min-width: 861px) and (max-height: 840px) {
  .fixed-sidebar {
    padding-bottom: 34px;
    padding-top: 40px;
  }

  .fixed-sidebar .brand-mark {
    height: 42px;
    width: 42px;
  }

  .fixed-sidebar .brand-name strong {
    font-size: 30px;
  }

  .fixed-sidebar .brand-name small {
    font-size: 10px;
  }

  .side-nav {
    gap: 22px;
    margin-top: auto;
    margin-bottom: auto;
  }

  .side-nav a {
    font-size: 17px;
  }

  .sidebar-foot {
    gap: 22px;
  }

  .script-label {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .sidebar-note {
    font-size: 13px;
    line-height: 1.35;
  }

  .mini-links {
    gap: 10px;
  }

  .mini-links a {
    height: 20px;
    width: 20px;
  }

  .social-glyph svg {
    height: 16px;
    width: 16px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 92px;
  }

  body.admin-bar .mobile-header {
    top: auto;
  }

  body.admin-bar .mobile-menu {
    top: 46px;
  }

  body.admin-bar.leici-menu-open .mobile-header {
    top: 46px;
  }

  .site-shell {
    background: var(--leici-paper);
  }

  .fixed-sidebar,
  .scroll-progress {
    display: none;
  }

  .mobile-header {
    align-items: center;
    background: var(--leici-paper);
    border-bottom: 0;
    display: flex;
    height: 68px;
    justify-content: space-between;
    padding: 0 22px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 120;
  }

    body.leici-menu-open .mobile-header {
    background: var(--leici-paper);
  }

  .brand-lockup.compact {
    align-items: center;
    display: inline-flex;
  }

  .brand-lockup.compact .brand-mark {
    height: 38px;
    width: 38px;
  }

  .brand-lockup.compact .brand-name strong {
    font-size: 22px;
  }

  .menu-toggle {
    align-items: center;
    align-self: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    height: 36px;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    width: 36px;
    z-index: 130;
  }

  .menu-toggle span {
    background: var(--leici-ink);
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: transform 180ms ease;
    width: 26px;
  }

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

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

  body.leici-menu-open .menu-toggle span {
    background: var(--leici-ink);
  }

  .mobile-menu {
    background: var(--leici-paper);
    bottom: 0;
    color: var(--leici-ink);
    display: flex;
    flex-direction: column;
    gap: clamp(22px, 4vh, 40px);
    left: 0;
    opacity: 0;
    overflow: auto;
    padding: clamp(48px, 8vh, 80px) clamp(28px, 7vw, 64px) 52px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 68px;
    transition: opacity 260ms ease;
    will-change: opacity;
    z-index: 100;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu a {
    align-items: center;
    border-top: 0;
    color: var(--leici-ink);
    display: flex;
    font-family: var(--leici-heading-font);
    font-size: clamp(15px, 3.2vw, 22px);
    font-weight: 600;
    justify-content: flex-start;
    line-height: 1;
    padding: 0;
  }

  .page-column {
    margin-left: 0;
    padding-top: 0;
  }

  .section-block {
    padding-left: 22px;
    padding-right: 22px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 42px;
  }

  .top-cta {
    margin-bottom: 34px;
    position: static;
  }

  .hero-copy {
    padding-right: 0;
  }

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

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

  .hero-media {
    aspect-ratio: 1.25;
    margin-left: -22px;
    margin-right: -22px;
  }

  .hero-media figcaption {
    bottom: 26px;
    flex-wrap: wrap;
    gap: 10px;
    width: min(82%, 360px);
  }

  .hero-media figcaption a {
    flex: 1 1 140px;
  }

  .manifesto {
    min-height: 280px;
  }

  .division-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .division-grid {
    max-width: 460px;
  }

  .footer-grid {
    margin-top: 40px;
  }

  .footer-social-mobile {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-top: 36px;
  }

  .footer-social-mobile a {
    color: var(--leici-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    opacity: 0.85;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .footer-social-mobile a:hover {
    opacity: 1;
    transform: translateY(-2px);
  }

  .footer-social-mobile .social-glyph svg {
    width: 22px;
    height: 22px;
  }

  .footer-social-mobile .social-glyph path {
    fill: var(--leici-ink);
  }
}

@media (max-width: 620px) {
  .capability-grid,
  .service-tabs {
    grid-template-columns: 1fr;
  }

  .service-tabs {
    gap: 14px;
  }

  .large-statement {
    text-align: left;
  }

  .capability-card {
    min-height: 0;
    text-align: left;
  }

  .capability-card p {
    margin-left: 0;
    max-width: none;
  }

  .center-heading {
    text-align: left;
  }

  .division-card {
    aspect-ratio: 0.72;
  }

  .division-overlay {
    padding: 28px;
  }

  .inline-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

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

  .work-marquee {
    grid-template-columns: 1fr;
  }

  .project-call {
    min-height: 0;
  }
}

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