/* =====================================================================
   AFI CONSULT — White theme + Dark Mode toggle
   Brand palette: Navy #26326F · Red #DC2527 · Charcoal #404042
                  Gold #F8BE1C · Green #0BAE5D · White #FFFFFF
   Rounded corners (12-16px), no pill shapes anywhere.
   ===================================================================== */

:root {
  /* AFI brand palette */
  --navy:        #26326F;
  --navy-2:      #1c2657;
  --navy-3:      #3a4892;
  --red:         #DC2527;
  --red-2:       #b81d1f;
  --charcoal:    #404042;
  --gold:        #F8BE1C;
  --green:       #0BAE5D;
  --white:       #FFFFFF;

  /* surfaces (light by default) — neutral, minimal */
  --bg:          #FFFFFF;
  --bg-soft:     #f5f5f6;
  --bg-card:     #FFFFFF;
  --ink:         #303033;       /* softened dark charcoal headings */
  --body:        #525257;
  --muted:       #5a5a5e;  /* darker for AA contrast (4.5:1+) */
  --border:      rgba(15,15,17,0.10);
  --border-strong: rgba(15,15,17,0.22);
  --hero-bg:     #FFFFFF;
  --footer-bg:   #FFFFFF;
  --nav-bg-rest: #FFFFFF;
  --nav-bg-scrolled: #FFFFFF;
  --nav-text:    #303033;
  --filled-bg:   #303033;
  --filled-text: #ffffff;
  --control-hover-bg: #DC2527;
  --control-hover-text: #ffffff;
  --draft-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cdefs%3E%3Cpattern id='grid' width='72' height='72' patternUnits='userSpaceOnUse'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%2326326F' stroke-opacity='0.012' stroke-width='1'/%3E%3C/pattern%3E%3Cpattern id='dots' width='18' height='18' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%2326326F' fill-opacity='0.04'/%3E%3C/pattern%3E%3Cpattern id='crosses' width='72' height='72' patternUnits='userSpaceOnUse'%3E%3Cpath d='M36 28v16M28 36h16' fill='none' stroke='%23404042' stroke-opacity='0.055' stroke-width='1.2' stroke-linecap='square'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='144' height='144' fill='url(%23grid)'/%3E%3Crect width='144' height='144' fill='url(%23dots)'/%3E%3Crect width='144' height='144' fill='url(%23crosses)'/%3E%3C/svg%3E");
  --shadow-sm:   0 1px 2px rgba(15,15,17,0.04);
  --shadow:      0 4px 16px rgba(15,15,17,0.06);
  --shadow-lg:   0 18px 40px rgba(15,15,17,0.08);
  --stack-shadow: 0 12px 28px rgba(15,15,17,0.06);

  --font:        "Heebo", "Inter", system-ui, -apple-system, sans-serif;

  --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px;

  --max-w:        1200px;
  --section-py:   96px;
  --easing:       cubic-bezier(0.44, 0, 0.56, 1);
}

/* Development-only scroll-stack controls, mounted by ?config=true. */
.stack-config-shell {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2600;
  font-family: var(--font);
}
.scroll-stack-hold,
.scroll-stack-end,
.scroll-stack-release {
  display: none;
}
.stack-config-trigger,
.stack-config-copy,
.stack-config-reset,
.stack-config-close {
  font: inherit;
  cursor: pointer;
}
.stack-config-trigger {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: #fff;
  background: #202023;
  box-shadow: 0 10px 28px rgba(0,0,0,.2);
  font-size: 13px;
  font-weight: 700;
}
.stack-config-trigger[aria-expanded="true"] {
  background: var(--red);
}
.stack-config-popover {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(720px, calc(100vh - 88px));
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  color: var(--body);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  cursor: default;
}
.stack-config-popover[hidden] { display: none; }
.stack-config-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.stack-config-head > div {
  display: grid;
  gap: 2px;
}
.stack-config-head span {
  color: var(--red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stack-config-head strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 24px;
}
.stack-config-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
  background: var(--bg-soft);
  font-size: 20px;
  line-height: 1;
}
.stack-config-select-label,
.stack-config-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stack-config-select,
.stack-config-field input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--ink);
  background: var(--bg);
  font: inherit;
  font-size: 14px;
}
.stack-config-select {
  padding: 0 10px;
  margin: 6px 0 14px;
}
.stack-config-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.stack-config-field {
  display: grid;
  gap: 5px;
}
.stack-config-field input {
  padding: 0 10px;
}
.stack-config-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.stack-config-check input {
  accent-color: var(--red);
}
.stack-config-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.stack-config-status {
  color: var(--muted);
  font-size: 12px;
}
.stack-config-actions {
  display: flex;
  gap: 8px;
}
.stack-config-copy,
.stack-config-reset {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--ink);
  background: var(--bg-soft);
  font-size: 12px;
  font-weight: 750;
}
.stack-config-trigger:focus-visible,
.stack-config-close:focus-visible,
.stack-config-copy:focus-visible,
.stack-config-reset:focus-visible,
.stack-config-select:focus-visible,
.stack-config-field input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 420px) {
  .stack-config-shell {
    right: 12px;
    bottom: 12px;
  }
  .stack-config-popover {
    padding: 16px;
  }
  .stack-config-fields {
    grid-template-columns: 1fr;
  }
}

/* AFI ALUMNI */
.alumni-hero {
  min-height: calc(100vh - 32px);
  display: grid;
  align-items: center;
  padding: 170px 0 110px;
}
.alumni-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: center;
  gap: clamp(56px, 8vw, 112px);
}
.alumni-copy h1 {
  max-width: 760px;
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(48px, 5.4vw, 78px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}
.alumni-copy h1 em {
  color: var(--red);
  font-weight: 800;
}
.alumni-copy > p {
  max-width: 650px;
  margin-top: 30px;
  font-size: 20px;
  line-height: 31px;
}
.alumni-confirm-card {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: transform .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing);
}
.alumni-confirm-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--red) 38%, var(--border-strong));
  box-shadow: 0 22px 48px rgba(15,15,17,.11);
}
html[data-theme="dark"] .alumni-confirm-card:hover {
  box-shadow: 0 24px 52px rgba(0,0,0,.38);
}
.alumni-community-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
  text-align: left;
}
.alumni-community-intro > div:last-child { display: grid; }
.alumni-community-intro strong {
  color: var(--ink);
  font-size: 17px;
  line-height: 22px;
}
.alumni-community-intro > div:last-child span {
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}
.alumni-people {
  display: flex;
  padding-left: 10px;
}
.alumni-people > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border: 2px solid var(--bg-card);
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
}
.alumni-people > span:nth-child(2) { background: var(--red); }
.alumni-people > span:nth-child(3) { background: var(--green); }
.alumni-people svg { width: 23px; height: 23px; }
.alumni-people circle,
.alumni-people path {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.alumni-live-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.alumni-live-label > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(11,174,93,.12);
  animation: alumniLivePulse 2.2s ease-in-out infinite;
}
.alumni-counter-wrap {
  display: grid;
  justify-items: center;
  margin: 26px 0 38px;
}
.alumni-count {
  min-width: 3ch;
  color: var(--ink);
  font-size: clamp(82px, 10vw, 132px);
  line-height: .9;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.alumni-counter-wrap > span {
  margin-top: 18px;
  color: var(--body);
  font-size: 18px;
}
.alumni-confirm-button .alumni-button-icon svg {
  width: 25px;
  height: 25px;
  color: var(--ink);
}
.alumni-confirm-button:hover .alumni-button-icon svg { color: #fff; }
.alumni-feedback {
  margin-top: 20px;
  color: var(--green);
  font-weight: 600;
}
.alumni-feedback:empty { display: none; }
.has-submit-error .alumni-feedback { color: var(--red); }
.alumni-privacy {
  max-width: 360px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.alumni-test-tools {
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.alumni-test-tools[hidden],
.alumni-test-tools button[hidden] { display: none; }
.alumni-test-tools > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 700;
  text-transform: uppercase;
}
.alumni-test-tools > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
}
.alumni-test-tools a,
.alumni-test-tools button {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.alumni-test-tools button:disabled { opacity: .55; }
.alumni-hero.is-submitting .alumni-confirm-button { opacity: .72; pointer-events: none; }
.alumni-hero.is-confirmed .alumni-confirm-button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  cursor: default;
}
.alumni-hero.is-confirmed .alumni-confirm-button .icn { background: rgba(255,255,255,.16); }
.alumni-hero.is-confirmed .alumni-button-icon svg { color: #fff; }
body.is-scroll-locked,
.alumni-modal-open { overflow: hidden; }
.alumni-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.alumni-modal[hidden] { display: none; }
.alumni-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 15, .34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity .24s var(--easing);
}
.alumni-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 28px));
  max-height: min(92vh, 820px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scrollbar-gutter: stable both-edges;
  padding: 22px 28px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--bg-card);
  box-shadow: 0 34px 90px rgba(15,15,17,.18);
  transform: translateY(18px) scale(.98);
  opacity: 0;
  transition: transform .26s var(--easing), opacity .26s var(--easing);
}
.alumni-modal-dialog::-webkit-scrollbar {
  width: 0;
  height: 0;
}
html[data-theme="dark"] .alumni-modal-dialog {
  box-shadow: 0 34px 90px rgba(0,0,0,.45);
}
.alumni-modal.is-open .alumni-modal-backdrop,
.alumni-modal.is-open .alumni-modal-dialog,
.alumni-modal.is-open .alumni-modal-copy {
  opacity: 1;
}
.alumni-modal.is-open .alumni-modal-dialog {
  transform: translateY(0) scale(1);
}
.alumni-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
  transition: border-color .2s var(--easing), color .2s var(--easing), background .2s var(--easing);
}
.alumni-modal-close:hover {
  border-color: var(--red);
  color: var(--red);
}
.alumni-modal-copy h2 {
  max-width: 840px;
  margin-top: 10px;
  font-size: clamp(34px, 3.25vw, 50px);
  line-height: 1;
  letter-spacing: 0;
}
.alumni-modal-copy p {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15px;
  line-height: 23px;
}
.alumni-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.alumni-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.alumni-form label {
  display: grid;
  gap: 6px;
}
.alumni-form label > span {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.alumni-form label > span small {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.alumni-form input,
.alumni-form select,
.alumni-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg-card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing);
}
.alumni-form textarea {
  min-height: 76px;
  padding: 12px 14px;
  resize: vertical;
}
.alumni-form input:focus,
.alumni-form select:focus,
.alumni-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--red) 44%, var(--border-strong));
  box-shadow: 0 0 0 4px rgba(230, 42, 42, .09);
}
.alumni-form-privacy {
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
.alumni-form-feedback {
  min-height: 18px;
  color: var(--red);
  font-weight: 600;
  font-size: 13px;
}
.alumni-form-feedback:empty {
  display: none;
}
.alumni-form-actions {
  --alumni-action-width: clamp(206px, 16vw, 238px);
  display: grid;
  grid-template-columns: var(--alumni-action-width) var(--alumni-action-width);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.alumni-form-actions .btn,
.alumni-modal-success-actions .btn {
  min-width: min(100%, 260px);
}
.alumni-form .btn-submit {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  min-height: 50px;
}
.alumni-form .btn-submit .lbl,
.alumni-modal-success-actions .btn-submit .lbl {
  flex: 1 1 auto;
  justify-content: flex-start;
}
.alumni-form .btn-submit .icn,
.alumni-modal-success-actions .btn-submit .icn {
  margin-left: auto;
  width: 54px;
  min-width: 54px;
}
.alumni-form .custom-select,
.alumni-form .custom-select-trigger,
.alumni-form .custom-select-menu {
  width: 100%;
}
.alumni-form .custom-select-trigger {
  min-height: 56px;
  border-radius: var(--r-sm);
  font-size: 15px;
}
.alumni-form .custom-select-trigger-label {
  padding: 12px 14px;
}
.alumni-form .custom-select-trigger-icon {
  width: 56px;
  min-width: 56px;
}
.alumni-form .custom-select-menu {
  border-radius: var(--r-sm);
}
.alumni-form-brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  min-height: 50px;
  width: 100%;
}
.alumni-form-brand .site-logo {
  display: block;
  object-fit: contain;
}
.alumni-form-brand img {
  width: var(--alumni-action-width);
  height: auto;
}
.alumni-form-brand .site-logo-dark {
  display: none;
}
html[data-theme="dark"] .alumni-form-brand .site-logo-light {
  display: none;
}
html[data-theme="dark"] .alumni-form-brand .site-logo-dark {
  display: block;
  filter: brightness(1.08) contrast(1.06);
}
.alumni-project-field[hidden] {
  display: none !important;
}
.alumni-form input.hp {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}
.alumni-modal-success {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 28px 8px 8px;
  text-align: center;
  position: relative;
}
.alumni-modal-success[hidden] { display: none; }
.alumni-modal-success-mark {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
}
.alumni-modal-success-mark svg { width: 110px; height: 110px; }
.alumni-modal-success-mark circle,
.alumni-modal-success-mark path {
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: alumniCheckDraw .7s cubic-bezier(.65,0,.35,1) forwards;
}
.alumni-modal-success-mark path { animation-delay: .35s; }
.alumni-modal-success h3 {
  max-width: 620px;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
}
.alumni-modal-success p {
  max-width: 560px;
  color: var(--body);
  font-size: 17px;
  line-height: 28px;
}
.alumni-modal-success-actions {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}
.alumni-modal-success-actions .btn-submit {
  width: min(100%, 460px);
  justify-content: space-between;
  text-align: left;
}
.alumni-modal-success-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  transition: border-color .2s var(--easing), color .2s var(--easing), background .2s var(--easing);
}
.alumni-modal-success-close:hover {
  border-color: var(--red);
  color: var(--red);
}
@keyframes alumniCheckDraw { to { stroke-dashoffset: 0; } }
@keyframes alumniLivePulse { 50% { transform: scale(.78); box-shadow: 0 0 0 9px rgba(11,174,93,.04); } }

@media (max-width: 900px) {
  .alumni-hero { min-height: auto; padding: 136px 0 88px; }
  .alumni-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .alumni-copy { text-align: center; }
  .alumni-copy h1,
  .alumni-copy > p { margin-left: auto; margin-right: auto; }
  .alumni-confirm-card { min-height: 480px; }
  .alumni-modal-dialog {
    width: min(760px, 100%);
    max-height: 94vh;
    padding: 22px 22px 18px;
  }
  .alumni-modal-copy h2 { font-size: clamp(32px, 4.5vw, 44px); }
  .alumni-form-actions { --alumni-action-width: clamp(170px, 24vw, 210px); }
}
@media (max-width: 600px) {
  .alumni-hero { padding: 112px 0 64px; }
  .alumni-copy h1 { margin-top: 18px; font-size: 42px; line-height: 1.04; }
  .alumni-copy > p { margin-top: 22px; font-size: 17px; line-height: 27px; }
  .alumni-confirm-card { min-height: 440px; padding: 36px 20px 28px; border-radius: 18px; }
  .alumni-count { font-size: 84px; }
  .alumni-counter-wrap { margin: 22px 0 30px; }
  .alumni-counter-wrap > span { font-size: 16px; }
  .alumni-community-intro { margin-bottom: 26px; }
  .alumni-modal { padding: 14px; }
  .alumni-modal-dialog {
    max-height: 94vh;
    padding: 68px 18px 20px;
    border-radius: 22px;
  }
  .alumni-modal-close {
    top: 12px;
    right: 12px;
    width: 48px;
    height: 48px;
    font-size: 34px;
  }
  .alumni-modal-copy p {
    font-size: 16px;
    line-height: 25px;
  }
  .alumni-modal-copy h2 {
    font-size: 32px;
    line-height: 1.04;
  }
  .alumni-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .alumni-form input,
  .alumni-form select { min-height: 54px; }
  .alumni-form textarea { min-height: 112px; }
  .alumni-form-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .alumni-form-actions .btn,
  .alumni-modal-success-actions .btn { width: 100%; }
  .alumni-form .btn-submit { width: 100%; }
  .alumni-form-brand {
    width: 100%;
    justify-content: flex-end;
  }
  .alumni-form-brand img {
    width: 126px;
  }
  .alumni-modal-success {
    padding-top: 18px;
  }
  .alumni-modal-success h3 {
    font-size: 30px;
  }
  .alumni-modal-success p {
    font-size: 16px;
    line-height: 25px;
  }
}

/* LOADING SCREEN */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--ink);
  transition: opacity .35s var(--easing), visibility .35s var(--easing);
}
.site-loader.is-hiding {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.site-loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.site-loader-logo {
  width: min(220px, 56vw);
  height: auto;
  content: url("../img/afi-logo.png");
}
html[data-theme="dark"] .site-loader-logo { content: url("../img/afi-logo-dark.png"); }
.site-loader-bar {
  width: min(220px, 56vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border);
}
.site-loader-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transform: translateX(-100%);
  animation: loaderProgress 1s cubic-bezier(.22, 1, .36, 1) forwards;
}
@keyframes loaderProgress {
  to { transform: translateX(0); }
}

/* DARK MODE — charcoal grey */
html[data-theme="dark"] {
  --bg:          #141416;
  --bg-soft:     #1c1c1f;
  --bg-card:     #1f1f22;
  --ink:         #f3f3f5;
  --body:        #c9c9cd;
  --muted:       #8a8a90;
  --border:      rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.22);
  --hero-bg:     #141416;
  --footer-bg:   #0f0f11;
  --nav-bg-rest: #141416;
  --nav-bg-scrolled: #141416;
  --nav-text:    #f3f3f5;
  --filled-bg:   #f3f3f5;
  --filled-text: #303033;
  --control-hover-bg: #DC2527;
  --control-hover-text: #ffffff;
  --draft-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='144' height='144' viewBox='0 0 144 144'%3E%3Cdefs%3E%3Cpattern id='grid' width='72' height='72' patternUnits='userSpaceOnUse'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23B8C8FF' stroke-opacity='0.008' stroke-width='1'/%3E%3C/pattern%3E%3Cpattern id='dots' width='18' height='18' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23DDE6FF' fill-opacity='0.022'/%3E%3C/pattern%3E%3Cpattern id='crosses' width='72' height='72' patternUnits='userSpaceOnUse'%3E%3Cpath d='M36 28v16M28 36h16' fill='none' stroke='%23DDE6FF' stroke-opacity='0.024' stroke-width='1.2' stroke-linecap='square'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='144' height='144' fill='url(%23grid)'/%3E%3Crect width='144' height='144' fill='url(%23dots)'/%3E%3Crect width='144' height='144' fill='url(%23crosses)'/%3E%3C/svg%3E");
  --shadow:      0 4px 16px rgba(0,0,0,0.40);
  --shadow-lg:   0 18px 40px rgba(0,0,0,0.50);
  --stack-shadow: 0 14px 30px rgba(0,0,0,0.24);
  color-scheme: dark;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px; line-height: 26px;
  color: var(--body);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
  transition: background .3s var(--easing), color .3s var(--easing);
  cursor: crosshair;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--draft-pattern);
  background-size: 144px 144px;
  background-position: center top;
  background-repeat: repeat;
  transform: translateZ(0);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }
input, textarea, select, label { cursor: auto; }

/* A11Y — focus visible (WCAG 2.4.7, 2.4.11) */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
.btn:focus-visible, .theme-toggle:focus-visible, .hamburger:focus-visible,
.nav-links a:focus-visible, .mobile-menu a:focus-visible,
.faq-q:focus-visible, .form-field input:focus-visible,
.form-field textarea:focus-visible, .form-field select:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Skip link (WCAG 2.4.1) */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 14px;
  z-index: 1000;
  transition: top .2s var(--easing);
}
.skip-link:focus { top: 16px; }

.draft-line-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.is-drafting-line,
body.is-drafting-line * {
  user-select: none;
  -webkit-user-select: none;
}
.nav, .mobile-menu, main, .footer-shell { position: relative; z-index: 3; }

/* Honor prefers-reduced-motion (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-bg-video { display: none; }
}

/* Visually-hidden helper (for sr-only text) */
.sr-only {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

/* LAYOUT */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: var(--section-py) 0; background: transparent; }
.section-gray { background: transparent; }
.centered  { text-align: center; max-width: 720px; margin: 0 auto; }

/* TYPE */
h1, .h1, h2, .h2, h3, .h3, h4, h5 { color: var(--ink); }
h1, .h1 { font-size: 60px; line-height: 68px; font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: 44px; line-height: 52px; font-weight: 700; letter-spacing: -0.02em; }
h3, .h3 { font-size: 22px; line-height: 30px; font-weight: 600; }
.section-title { font-size: 44px; line-height: 52px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.section-title em, h1 em, h2 em, h3 em { font-style: italic; color: var(--red); }
.section-sub { font-size: 17px; line-height: 26px; color: var(--body); margin-top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--r-sm);
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  margin-bottom: 20px; color: var(--ink);
}
.eyebrow[href] {
  transition: background .25s var(--easing), border-color .25s var(--easing), color .25s var(--easing), transform .25s var(--easing);
}
.eyebrow[href]:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
}
.eyebrow-light { border-color: var(--border-strong); color: var(--ink); background: var(--bg-card); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: stretch;
  height: 48px;
  border-radius: 16px;
  font-size: 15px; font-weight: 600;
  overflow: hidden;
  transition: transform .25s var(--easing), background .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing);
  white-space: nowrap;
  box-shadow: none;
}
.btn .lbl, .btn .label { display: inline-flex; align-items: center; padding: 0 20px; }
.btn .icn { display: inline-flex; align-items: center; justify-content: center; width: 52px; min-width: 52px; padding: 0 14px; align-self: stretch; transition: background .25s var(--easing); }
.btn .icn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 34px rgba(0,0,0,0.10); }
.icn-small { display: inline-flex; align-items: center; justify-content: center; width: 52px; min-width: 52px; margin-left: 0; align-self: stretch; transition: background .25s var(--easing); }
.icn-small svg { width: 16px; height: 16px; }

.btn-lg { height: 56px; font-size: 16px; border-radius: 16px; }
.btn-lg .lbl, .btn-lg .label { padding: 0 24px; }
.btn-lg .icn,
.btn-lg .icn-small { width: 56px; min-width: 56px; padding: 0 16px; }

.btn-glass,
.btn-primary,
.btn-dark,
.btn-ghost {
  background: #fff;
  color: #303033;
  border: 1px solid rgba(15,15,17,0.10);
}
.btn-glass .icn,
.btn-primary .icn,
.btn-dark .icn,
.btn-ghost .icn,
.btn-glass .icn-small,
.btn-primary .icn-small,
.btn-dark .icn-small,
.btn-ghost .icn-small {
  background: rgba(0,0,0,0.08);
}
.btn-glass:hover,
.btn-primary:hover,
.btn-dark:hover,
.btn-ghost:hover {
  background: #fff;
  color: #303033;
  border-color: rgba(15,15,17,0.16);
}
.btn-glass:hover .icn,
.btn-primary:hover .icn,
.btn-dark:hover .icn,
.btn-ghost:hover .icn,
.btn-glass:hover .icn-small,
.btn-primary:hover .icn-small,
.btn-dark:hover .icn-small,
.btn-ghost:hover .icn-small {
  background: rgba(0,0,0,0.12);
}
.btn:not(:has(.icn)):not(:has(.icn-small))::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 52px;
  min-width: 52px;
  background: rgba(0,0,0,0.08);
  font-size: 24px;
  line-height: 1;
  transition: background .25s var(--easing);
}
.btn-lg:not(:has(.icn)):not(:has(.icn-small))::after {
  width: 56px;
  min-width: 56px;
}
.btn:not(:has(.icn)):not(:has(.icn-small)):hover::after {
  background: rgba(0,0,0,0.12);
}

.btn-light { background: #fff; color: #303033; border: 1px solid rgba(15,15,17,0.10); }
.btn-light:hover { background: #fff; border-color: rgba(15,15,17,0.16); }

/* Force button icons to inherit text colour for SVG strokes/fills */
.btn .icn svg, .btn .icn-small svg { color: currentColor; }
.btn .icn svg path[stroke], .btn .icn-small svg path[stroke] { stroke: currentColor; }
.btn .icn svg path[fill]:not([fill="none"]), .btn .icn-small svg path[fill]:not([fill="none"]) { fill: currentColor; }

/* Shared button behaviour: Get-in-Touch style everywhere except CTA cards. */
.btn,
a.btn,
button.btn,
.btn:focus-visible,
a.btn:focus-visible,
button.btn:focus-visible,
.btn:active,
a.btn:active,
button.btn:active,
html[data-theme="dark"] .btn,
html[data-theme="dark"] a.btn,
html[data-theme="dark"] button.btn {
  background-color: #fff !important;
  color: #303033 !important;
  opacity: 1;
}
.btn:hover,
a.btn:hover,
button.btn:hover,
html[data-theme="dark"] .btn:hover,
html[data-theme="dark"] a.btn:hover,
html[data-theme="dark"] button.btn:hover {
  background-color: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  opacity: 1;
}
.btn .lbl,
.btn .label,
html[data-theme="dark"] .btn .lbl,
html[data-theme="dark"] .btn .label {
  color: #303033 !important;
  opacity: 1;
}
.btn:hover .lbl,
.btn:hover .label,
html[data-theme="dark"] .btn:hover .lbl,
html[data-theme="dark"] .btn:hover .label {
  color: #fff !important;
  opacity: 1;
}
.btn .icn,
.btn .icn-small,
.btn:not(:has(.icn)):not(:has(.icn-small))::after {
  color: #303033 !important;
  background: rgba(0,0,0,0.08) !important;
}
.btn:hover .icn,
.btn:hover .icn-small,
.btn:hover:not(:has(.icn)):not(:has(.icn-small))::after,
html[data-theme="dark"] .btn:hover .icn,
html[data-theme="dark"] .btn:hover .icn-small,
html[data-theme="dark"] .btn:hover:not(:has(.icn)):not(:has(.icn-small))::after {
  color: #fff !important;
  background: rgba(255,255,255,0.18) !important;
}
.btn svg path,
.btn svg circle,
.btn svg line,
.btn svg rect,
.btn:hover svg path,
.btn:hover svg circle,
.btn:hover svg line,
.btn:hover svg rect {
  stroke: currentColor !important;
}

.btn-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* LOGO */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.site-logo {
  width: 174px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  transition: opacity .2s var(--easing), transform .25s var(--easing);
}
.nav-logo:hover .site-logo { transform: translateY(-1px); }
.site-logo-dark { display: none; }
html[data-theme="dark"] .nav-logo:not(.footer-logo) .site-logo-light {
  display: none;
}
html[data-theme="dark"] .nav-logo:not(.footer-logo) .site-logo-dark {
  display: block;
}
.footer-logo .site-logo {
  width: 210px;
  max-height: 64px;
}
.footer-logo .site-logo-dark {
  display: block;
}

/* NAV — floating, rounded, scroll-hide */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 32px);
  max-width: 1160px;
  height: 64px;
  z-index: 1000;
  background: var(--nav-bg-rest);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 360ms var(--easing), opacity 280ms var(--easing), background .25s var(--easing);
  will-change: transform;
}
.nav.is-hidden {
  transform: translateX(-50%) translateY(-160%);
  opacity: 0;
  pointer-events: none;
}
.nav.drawer-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav.is-scrolled, .nav.scrolled { background: var(--nav-bg-scrolled); }
html[data-theme="dark"] .nav { background-color: #141416; }
html[data-theme="dark"] .nav.is-scrolled,
html[data-theme="dark"] .nav.scrolled { background-color: #141416; }
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 18px;
}

/* push content below floating nav */
body { padding-top: 96px; }
body.home-page { padding-top: 0; }

.theme-toggle:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
.hamburger:hover { border-color: var(--red) !important; }
.hamburger:hover span,
.hamburger:hover span::before,
.hamburger:hover span::after { background: var(--red) !important; }

.nav-links a:hover {
  color: var(--red) !important;
  background: transparent !important;
  opacity: 1;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  min-height: 40px;
  font-size: 14px; font-weight: 500;
  color: var(--ink); opacity: 0.85;
  border-radius: var(--r-sm);
  transition: color .2s var(--easing), background .2s var(--easing), opacity .2s var(--easing);
}
.nav-links a:hover { opacity: 1; background: var(--bg-soft); }
.nav-links a.active {
  opacity: 1;
  color: var(--ink);
}
.nav-dropdown { position: static; }
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--ink);
  opacity: 0.85;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s var(--easing), background .2s var(--easing), opacity .2s var(--easing);
}
.nav-drop-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--easing);
}
.nav.company-menu-open .nav-drop-toggle,
.nav-drop-toggle.active {
  opacity: 1;
  color: var(--red);
}
.nav.company-menu-open .nav-drop-toggle::after {
  transform: rotate(225deg) translateY(-1px);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(360px, 1.45fr) minmax(210px, .8fr);
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0 round 14px);
  transform: translateY(-24px);
  transform-origin: top center;
  transition: opacity .28s var(--easing), transform .36s var(--easing), clip-path .36s var(--easing), visibility .36s;
}
.nav.company-menu-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0 round 14px);
  transform: translateY(0);
}
.company-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(20, 20, 22, .12);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s var(--easing), visibility .3s;
}
[data-theme="dark"] .company-menu-backdrop {
  background: rgba(0, 0, 0, .24);
}
body.company-menu-active .company-menu-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.company-panel-section {
  min-width: 0;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .3s var(--easing), transform .36s var(--easing);
}
.nav.company-menu-open > .nav-dropdown-menu .company-panel-section {
  opacity: 1;
  transform: none;
}
.nav.company-menu-open > .nav-dropdown-menu .company-panel-nav { transition-delay: 60ms; }
.nav.company-menu-open > .nav-dropdown-menu .company-panel-resources { transition-delay: 120ms; }
.company-panel-brand {
  padding: 18px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.company-panel-logo {
  display: inline-flex;
  margin-bottom: 18px;
}
.company-panel-logo .site-logo {
  width: 176px;
  max-height: 46px;
}
.company-panel-brand p {
  color: var(--body);
  font-size: 13px;
  line-height: 20px;
}
.company-panel-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.company-panel-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nav-dropdown-menu .company-panel-link,
.nav-dropdown-menu .company-panel-resource {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing), transform .2s var(--easing);
}
.nav-dropdown-menu .company-panel-link::after,
.nav-dropdown-menu .company-panel-resource::after {
  content: "+";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}
.nav-dropdown-menu .company-panel-link:hover,
.nav-dropdown-menu .company-panel-link:focus-visible,
.nav-dropdown-menu .company-panel-link.active,
.nav-dropdown-menu .company-panel-resource:hover,
.nav-dropdown-menu .company-panel-resource:focus-visible {
  color: #fff !important;
  border-color: var(--red);
  background: var(--red) !important;
  transform: translateY(-1px);
  outline: none;
}
.company-panel-resources {
  display: flex;
  flex-direction: column;
}
.company-panel-resources-list {
  display: grid;
  gap: 8px;
}
.company-panel-resources .company-panel-cta {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  justify-content: space-between;
}
.company-panel-resources .company-panel-cta .lbl {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}
.company-panel-resources .company-panel-cta .icn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 52px;
  min-width: 52px;
  padding: 0 14px;
  margin: -1px -1px -1px 0;
  border-radius: 0 15px 15px 0;
}
.company-panel-resources .company-panel-cta .icn-small svg {
  width: 18px;
  height: 18px;
  display: block;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta {
  background: #3d3d42 !important;
  color: #fff !important;
  border-color: #3d3d42 !important;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta .lbl {
  color: #fff !important;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta .icn-small {
  color: #fff !important;
  background: rgba(255,255,255,0.10) !important;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:hover,
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:focus-visible {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:hover .lbl,
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:focus-visible .lbl {
  color: #fff !important;
}
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:hover .icn-small,
html:not([data-theme="dark"]) .company-panel-resources .company-panel-cta:focus-visible .icn-small {
  color: #fff !important;
  background: rgba(255,255,255,0.18) !important;
}

/* AFI Gallery */
.gallery-hero {
  padding-top: 96px;
  padding-bottom: 72px;
  text-align: center;
}
.gallery-hero .container { max-width: 980px; }
.gallery-hero h1 { margin-inline: auto; }
.gallery-hero p {
  max-width: 720px;
  margin: 22px auto 0;
}
.gallery-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-card) 94%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.gallery-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery-filters::-webkit-scrollbar { display: none; }
.gallery-filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--body);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s var(--easing), background .2s var(--easing);
}
.gallery-filter:hover,
.gallery-filter.active {
  color: #fff;
  background: var(--red);
}
.gallery-count {
  flex: 0 0 auto;
  padding-right: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .project-group-toolbar {
    justify-content: center;
    margin-bottom: 22px;
    padding: 8px 10px;
    min-height: auto;
  }
  .project-group-toolbar .gallery-count {
    display: none;
  }
  .project-group-toolbar .gallery-filters {
    width: 100%;
    justify-content: center;
    gap: 4px;
    overflow: visible;
  }
  .project-group-toolbar .gallery-filter {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
    text-align: center;
  }
}
.afi-gallery-grid {
  columns: 3 320px;
  column-gap: 0;
  line-height: 0;
}
.afi-gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  break-inside: avoid;
  vertical-align: top;
  line-height: normal;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 320px 220px;
}
.afi-gallery-item:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .afi-gallery-item:hover,
  .afi-gallery-item:focus-visible {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='17' fill='%23dc2527'/%3E%3Cpath d='M7 18c2.6-4.2 6.7-6.8 11-6.8s8.4 2.6 11 6.8c-2.6 4.2-6.7 6.8-11 6.8S9.6 22.2 7 18Z' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='18' r='3.7' fill='white'/%3E%3C/svg%3E") 18 18, pointer;
  }
}
.afi-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-card);
  filter: grayscale(1);
  transition: filter .18s ease, transform .35s var(--easing);
  backface-visibility: hidden;
  transform: translateZ(0);
}
.afi-gallery-item:hover img,
.afi-gallery-item:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.025);
}
.afi-gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(12, 12, 14, .76);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.afi-gallery-item[hidden] { display: none; }
.afi-gallery-item.is-mobile-collapsed { display: none !important; }

.gallery-mobile-actions {
  display: none;
  justify-content: center;
  margin-top: 20px;
}
.gallery-mobile-toggle {
  min-width: 188px;
}

@media (max-width: 900px) {
  .afi-gallery-grid { columns: 2; }
}
@media (max-width: 600px) {
  .gallery-hero { padding: 64px 0 48px; }
  .gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .gallery-count { padding: 0 4px 2px; }
  .project-group-toolbar {
    padding: 8px;
    border-radius: 10px;
  }
  .project-group-toolbar .gallery-filters {
    flex-wrap: nowrap;
    align-items: center;
  }
  .project-group-toolbar .gallery-filter {
    flex: 1 1 0;
    min-width: 0;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .afi-gallery-grid {
    columns: 2 140px;
    column-gap: 0;
    line-height: 0;
  }
  .afi-gallery-item {
    display: inline-block;
    width: 100%;
    padding: 4px;
    break-inside: avoid;
    contain: none;
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
  .afi-gallery-item.is-mobile-collapsed {
    display: none !important;
  }
  .afi-gallery-item img {
    filter: none;
    border-radius: 10px;
    object-fit: contain;
    transition: none;
  }
  .afi-gallery-item span {
    display: none;
  }
  .gallery-mobile-actions {
    display: flex;
  }
}
@media (min-width: 481px) and (max-width: 600px) {
  .afi-gallery-grid {
    columns: 3 140px;
  }
}
.company-panel-social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.company-panel-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  overflow: visible;
  transition: transform .25s var(--easing), opacity .25s var(--easing);
}
.company-panel-social a:hover,
.company-panel-social a:focus-visible {
  transform: translateY(-1px);
  opacity: 1;
}
.company-panel-social img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: filter .25s var(--easing), opacity .25s var(--easing);
}
html:not([data-theme="dark"]) .company-panel-social a:hover img,
html:not([data-theme="dark"]) .company-panel-social a:focus-visible img {
  filter: brightness(0) saturate(0%) opacity(.76);
}
html[data-theme="dark"] .company-panel-social a:hover img,
html[data-theme="dark"] .company-panel-social a:focus-visible img {
  filter: brightness(0) invert(1);
}
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta .btn { height: 40px; }
.nav-cta .btn .lbl, .nav-cta .btn .label { padding: 0 14px; font-size: 14px; }
.nav-cta .btn .icn { width: 40px; min-width: 40px; padding: 0 10px; }

/* THEME TOGGLE */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: inline-grid; place-items: center;
  color: var(--ink);
  transition: background .2s var(--easing), border-color .2s var(--easing), transform .2s var(--easing);
}
.theme-toggle:hover { background: var(--bg-soft); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* HAMBURGER */
.hamburger {
  display: none; width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hamburger span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink);
  transition: transform .3s var(--easing), top .3s var(--easing);
}
.hamburger span::before { top: -5px; }
.hamburger span::after  { top:  5px; }
.hamburger.open span { background: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after  { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  width: min(420px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 70px rgba(0,0,0,0.18);
  padding: 86px 24px 32px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s var(--easing), box-shadow .45s var(--easing);
  color: var(--ink);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  transition: background .2s var(--easing), color .2s var(--easing), border-color .2s var(--easing), transform .2s var(--easing);
}
.mobile-menu-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-1px);
}
.mobile-menu a { font-size: 26px; font-weight: 600; padding: 22px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.mobile-menu a.mobile-sub-link {
  padding: 14px 0 14px 18px;
  font-size: 21px;
  font-weight: 600;
}
.mobile-menu-bottom {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-menu-brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.mobile-menu-brand img {
  width: clamp(120px, 38vw, 146px);
  height: auto;
}
.mobile-menu-docs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-docs a {
  padding: 0;
  border-bottom: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--body);
}
.mobile-menu-docs a:hover {
  color: var(--red);
}
.mobile-menu .btn {
  margin-top: auto;
  background: #fff;
  border-color: rgba(15,15,17,0.08);
  color: #303033;
}
.mobile-menu .btn .lbl { color: inherit; }
html[data-theme="dark"] .mobile-menu .btn {
  background: #fff;
  border-color: #fff;
  color: #303033;
}

/* HERO (white) */
.hero {
  position: relative; overflow: hidden;
  padding: 160px 0 120px;
  background: var(--hero-bg);
  color: var(--ink);
}
.hero-inner { position: relative; z-index: 3; max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--ink); font-size: 58px; line-height: 66px; font-weight: 650; letter-spacing: 0; }
.hero h1 em { font-style: italic; font-weight: 700; color: var(--red); }
.hero p.lead { margin: 24px auto 0; max-width: 620px; color: var(--body); font-size: 18px; line-height: 28px; }
.hero p.hero-tagline {
  max-width: none;
  font-size: 22px;
  line-height: 32px;
  font-weight: 500;
}
.hero p.hero-tagline .hero-tagline-accent {
  color: var(--red);
  font-weight: 800;
}
.hero p.hero-tagline em {
  color: var(--red);
  font-style: italic;
  font-weight: 800;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.42),
    0 0 1px rgba(255,255,255,0.35);
}
.hero-cta { display: inline-flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

/* HERO VIDEO — dark overlay, white text */
.hero.hero-video {
  background: #0b0b0d;
  color: #fff;
  min-height: 720px;
  display: flex; align-items: center;
  padding: 160px 0 140px;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  transform: translate3d(var(--hero-video-x, 0px), var(--hero-video-y, 0px), 0) scale(1.015) rotateX(var(--hero-video-tilt-y, 0deg)) rotateY(var(--hero-video-tilt-x, 0deg));
  transform-origin: center;
  transition: transform .16s linear;
  will-change: transform;
  backface-visibility: hidden;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.65) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.55) 100%);
}
.hero.hero-video::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: clamp(110px, 13vw, 180px);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in srgb, var(--bg) 18%, transparent) 36%,
    color-mix(in srgb, var(--bg) 72%, transparent) 76%,
    var(--bg) 100%
  );
}
html[data-theme="light"] .hero.hero-video::after {
  height: clamp(110px, 13vw, 180px);
  background: linear-gradient(
    to bottom,
    rgba(20,20,22,0) 0%,
    rgba(20,20,22,0.18) 36%,
    rgba(20,20,22,0.72) 76%,
    #141416 100%
  );
  -webkit-mask-image: none;
  mask-image: none;
}
.hero.hero-video .hero-inner { width: 100%; }
.hero.hero-video h1 { color: #fff; }
.hero.hero-video h1 em { color: #fff; font-style: italic; position: relative; }
.hero.hero-video h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 6px; background: var(--red); opacity: 0.6; border-radius: 2px; z-index: -1;
}
.hero.hero-video p.lead { color: rgba(255,255,255,0.88); }
.hero.hero-video .eyebrow {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero.hero-video .btn-glass { background: #fff; color: #303033; }
.hero.hero-video .btn-glass .icn { background: rgba(0,0,0,0.08); }
.hero.hero-video .btn-glass:hover { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.hero.hero-video .btn-glass:hover .lbl,
.hero.hero-video .btn-glass:hover .label { color: #fff !important; }
.hero.hero-video .btn-glass:hover .icn { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
.hero.hero-video .btn-glass .icn svg path { stroke: currentColor; }
.hero.hero-video .btn-ghost {
  background: #fff !important;
  color: #303033 !important;
  border-color: rgba(15,15,17,0.10) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hero.hero-video .btn-ghost .lbl,
.hero.hero-video .btn-ghost .label { color: #303033 !important; }
.hero.hero-video .btn-ghost .icn-small {
  color: #303033 !important;
  background: rgba(0,0,0,0.08) !important;
}
.hero.hero-video .btn-ghost:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
.hero.hero-video .btn-ghost:hover .lbl,
.hero.hero-video .btn-ghost:hover .label { color: #fff !important; }
.hero.hero-video .btn-ghost:hover .icn-small { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
.hero.hero-video .btn-ghost .icn-small svg path { stroke: currentColor; }
/* override the dot-grid backdrop for the video hero */
.hero.hero-video { background-image: none; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .hero-bg-video {
    transform: scale(1.01);
    transition: none;
    will-change: auto;
  }
}
@media (max-width: 640px) {
  .hero.hero-video::after {
    height: 104px;
  }
  html[data-theme="light"] .hero.hero-video::after {
    height: 104px;
  }
}

/* BLOBS — disabled (replaced by minimal grid pattern) */
.blobs { display: none; }
.blob { display: none; }

@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
.blob-1 { animation: float-y 9s ease-in-out infinite; }
.blob-2 { animation: float-y 11s ease-in-out infinite reverse; }
.blob-3 { animation: float-y 8s ease-in-out infinite; }
.blob-4 { animation: float-y 13s ease-in-out infinite reverse; }
.blob-5 { animation: float-y 10s ease-in-out infinite; }

/* CARDS */

/* ICON COLOR INHERITANCE — overrides hardcoded #1A1A1A / #1a1a1a / #fff in inline SVGs */
.icon-wrap svg, .faq-icon svg, .info-card .icon-wrap svg, .perks svg {
  color: currentColor;
}
.icon-wrap svg path[stroke="#1A1A1A"],
.icon-wrap svg path[stroke="#1a1a1a"],
.icon-wrap svg circle[stroke="#1A1A1A"],
.icon-wrap svg circle[stroke="#1a1a1a"],
.icon-wrap svg rect[stroke="#1A1A1A"],
.icon-wrap svg rect[stroke="#1a1a1a"] { stroke: currentColor; }
.icon-wrap svg path[fill="#1A1A1A"],
.icon-wrap svg path[fill="#1a1a1a"],
.icon-wrap svg circle[fill="#1A1A1A"],
.icon-wrap svg circle[fill="#1a1a1a"],
.icon-wrap svg rect[fill="#1A1A1A"],
.icon-wrap svg rect[fill="#1a1a1a"] { fill: currentColor; }
/* white-on-dark cards (like .why-card.dark) */
.icon-wrap svg path[stroke="#fff"],
.icon-wrap svg path[stroke="#FFFFFF"],
.icon-wrap svg circle[stroke="#fff"],
.icon-wrap svg circle[stroke="#FFFFFF"] { stroke: currentColor; }
.icon-wrap svg path[fill="#fff"]:not([fill-opacity]),
.icon-wrap svg path[fill="#FFFFFF"]:not([fill-opacity]) { fill: currentColor; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.cap-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 32px; transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing); }
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.cap-card .icon-wrap { width: 56px; height: 56px; margin-bottom: 20px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid var(--border); color: var(--ink); transition: border-color .3s var(--easing); }
.cap-card:hover .icon-wrap { border-color: var(--ink); }
.cap-card .icon-wrap svg { width: 32px; height: 32px; }
.cap-card h3 { font-size: 20px; line-height: 28px; margin-bottom: 8px; color: var(--ink); }
.cap-card p { color: var(--body); font-size: 15px; line-height: 24px; }
.contact-location-card {
  width: 100%;
  text-align: left;
}
.contact-inline-map {
  display: none;
}
.contact-location-card.active,
.contact-location-card[aria-pressed="true"] {
  border-color: rgba(220,37,39,.45);
  box-shadow: 0 18px 45px rgba(220,37,39,.12);
}
.contact-location-card.active .icon-wrap,
.contact-location-card[aria-pressed="true"] .icon-wrap {
  border-color: rgba(220,37,39,.45);
  background: rgba(220,37,39,.08);
}
@media (hover: hover) and (pointer: fine) {
  .contact-location-card:hover {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 2.5c-4.7 0-8.5 3.8-8.5 8.5 0 6.5 8.5 14.5 8.5 14.5s8.5-8 8.5-14.5c0-4.7-3.8-8.5-8.5-8.5Z' fill='%23dc2527'/%3E%3Ccircle cx='14' cy='11' r='3.1' fill='white'/%3E%3C/svg%3E") 14 24, pointer;
  }
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.value-card .icon-wrap {
  width: 56px;
  height: 56px;
  font-size: 20px;
  font-weight: 800;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
}
html[data-theme="dark"] .value-card .icon-wrap {
  background: var(--bg-soft);
  color: var(--ink);
}
.value-card:hover .icon-wrap { border-color: var(--ink); }
.value-card h3 {
  margin-bottom: 8px;
}
.value-card p {
  font-size: 15px;
  line-height: 24px;
}

/* SERVICES */
.services-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.services-sticky { position: sticky; top: 96px; }
.services-sticky h2 { margin-bottom: 18px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.services-sticky em { font-style: italic; color: var(--red); }
.services-sticky .section-sub { margin-bottom: 24px; }
.services-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-item {
  position: relative;
  display: block;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .3s var(--easing), box-shadow .3s var(--easing), transform .3s var(--easing);
}
.svc-item.open { padding-bottom: 0; }
.svc-item.bounce-open {
  animation: none;
}
.svc-item:hover,
.svc-item.open {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.svc-item .num {
  position: absolute;
  top: 21px;
  right: 24px;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--red);
  display: inline-grid;
  place-items: center;
  box-shadow: none;
  transition: background .25s var(--easing), color .25s var(--easing), border-color .25s var(--easing);
}
.svc-item .num:hover { transform: none; }
.svc-item .num:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.svc-item .num::before {
  content: "+";
  position: static;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  transform: none;
}
.svc-item.open .num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.svc-item.open .num::before {
  content: "−";
}
html[data-theme="dark"] .svc-item .num {
  background: transparent;
}
html[data-theme="dark"] .svc-item.open .num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
html[data-theme="dark"] .svc-item h3 {
  color: var(--ink);
}
.svc-item h3 {
  min-height: 0;
  display: block;
  padding: 24px 74px 24px 24px;
  margin: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 28px;
  color: var(--ink);
  cursor: pointer;
}
.svc-item p {
  max-height: 0;
  overflow: hidden;
  margin-left: 24px;
  margin-right: 24px;
  color: var(--body);
  font-size: 15px;
  line-height: 24px;
  padding: 0;
  opacity: 1;
  transform: none;
  transition: max-height .4s var(--easing), padding .4s var(--easing);
}
.svc-item.open p {
  max-height: 500px;
  padding: 0 0 18px;
}
.svc-media {
  position: relative;
  max-height: 0;
  overflow: hidden;
  margin: 0 24px;
  background: transparent;
  border: 0;
  border-radius: 12px;
  line-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    max-height .42s var(--easing),
    margin-bottom .42s var(--easing),
    opacity .32s var(--easing),
    transform .32s var(--easing);
}
.svc-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 2px solid var(--red);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .25s var(--easing);
}
.svc-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: inherit;
  transform: scale(1);
  transform-origin: center;
  transition: transform .35s var(--easing);
}
.svc-item.open .svc-media {
  max-height: 280px;
  margin-bottom: 24px;
  opacity: 1;
  transform: translateY(0);
}
.svc-media:hover::after {
  opacity: 1;
}
.svc-media:hover img {
  transform: scale(1.025);
}
.services-cta {
  align-self: flex-start;
  margin-top: 12px;
}
.services-cta-desktop {
  margin-top: 0;
}
.services-cta-mobile {
  display: none;
}

/* PROJECT CARDS */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.proj-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing); }
.proj-card.is-filter-hidden { display: none !important; }
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.proj-card:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='17' fill='%23dc2527'/%3E%3Cpath d='M7 18c2.6-4.2 6.7-6.8 11-6.8s8.4 2.6 11 6.8c-2.6 4.2-6.7 6.8-11 6.8S9.6 22.2 7 18Z' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='18' r='3.7' fill='white'/%3E%3C/svg%3E") 18 18, pointer;
}
.proj-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0) contrast(1.04);
  transition: transform .6s var(--easing), filter .45s var(--easing);
}
.proj-card:hover .proj-img img,
.proj-card:focus-visible .proj-img img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1) contrast(1);
}
.proj-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj-body h3 { font-size: 22px; line-height: 28px; color: var(--ink); }
.proj-body p { font-size: 14px; line-height: 22px; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.badge {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  border-radius: var(--r-xs);
  padding: 4px 10px;
  font-size: 12px; font-weight: 500;
  color: var(--ink);
}
.proj-card .badge-row > .badge:first-child {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.proj-card--all { display: none; }
.proj-all-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 36px;
  background:
    radial-gradient(circle at 10% 8%, rgba(220, 37, 39, .98), transparent 52%),
    radial-gradient(circle at 88% 16%, rgba(88, 88, 92, .55), transparent 44%),
    linear-gradient(150deg, var(--red) 0%, var(--charcoal) 48%, #141416 100%);
}
.proj-all-title {
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}
.proj-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
}
/* Light mode ends on white, so its copy switches to charcoal for reliable contrast. */
html[data-theme="light"] .proj-all-panel {
  background:
    radial-gradient(circle at 10% 8%, rgba(220, 37, 39, .98), transparent 54%),
    linear-gradient(150deg, var(--red) 0%, #f4b4b5 46%, var(--white) 100%);
}
html[data-theme="light"] .proj-all-title,
html[data-theme="light"] .proj-all-link { color: var(--charcoal); }
.proj-all-link svg {
  width: 18px;
  height: 18px;
  transition: transform .3s var(--easing);
}
.proj-card--all:hover .proj-all-link svg,
.proj-card--all:focus-visible .proj-all-link svg { transform: translate(3px, -3px); }
.badge.orange { background: var(--filled-bg); border-color: var(--filled-bg); color: var(--filled-text); }
.badge.dark { background: var(--filled-bg); border-color: var(--filled-bg); color: var(--filled-text); }

/* STATS — minimal divider grid with hover bar */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.about-stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: min(1480px, calc(100vw - 56px));
  margin: 0 auto;
}
.stat {
  padding: 44px 28px;
  border-left: 1px solid var(--border);
  position: relative;
  background: var(--bg-card);
  transition: background .3s var(--easing);
}
.stat:first-child { border-left: 0; }
.stat::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 0; height: 2px; background: var(--red);
  transition: width .5s var(--easing);
}
.stat:hover,
.stat.is-scroll-active { background: var(--bg-soft); }
.stat:hover::after,
.stat.is-scroll-active::after { width: 100%; }
.stat .num {
  font-size: 64px; font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
  display: block;
  transition: transform .3s var(--easing);
}
.stat:hover .num,
.stat.is-scroll-active .num {
  transform: translateY(-2px);
  color: var(--red);
}
html[data-theme="dark"] .stat .num { color: var(--white); }
html[data-theme="dark"] .stat:hover .num,
html[data-theme="dark"] .stat.is-scroll-active .num { color: var(--red); }
.stat .lbl {
  color: var(--muted); font-size: 12px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
button.stat-link {
  font: inherit;
  border: 0;
}
.trust-stats button.stat-link {
  border-radius: 0;
  background: inherit;
  border-left: 1px solid var(--border);
}
.trust-stats button.stat-link:first-child {
  border-left: 0;
}
@media (hover: hover) and (pointer: fine) {
  .trust-stats .stat-link:hover,
  .trust-stats .stat-link:focus-visible {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M7 3.5h9l5 5V21a2 2 0 0 1-2 2H7A2 2 0 0 1 5 21V5.5a2 2 0 0 1 2-2Z' fill='%23e62929'/%3E%3Cpath d='M16 3.5v5h5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 13h6M10 17h6' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 6 4, pointer;
  }
}

/* TESTIMONIALS */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.test-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 280px;
  transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing);
}
.test-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.test-card .stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.test-card .quote { font-size: 18px; line-height: 26px; font-weight: 500; color: var(--ink); }
.test-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.test-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: center / cover no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'%3E%3Ccircle cx='64' cy='64' r='64' fill='%23ffc20e'/%3E%3Ccircle cx='64' cy='43' r='17' fill='none' stroke='white' stroke-width='10'/%3E%3Cpath d='M30 113c0-21.7 15.2-38 34-38s34 16.3 34 38' fill='none' stroke='white' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E");
  flex-shrink: 0;
}
.test-card .name { font-weight: 600; font-size: 14px; color: var(--ink); }
.test-card .role { color: var(--muted); font-size: 12px; }
.project-actions { display: flex; justify-content: center; }
.project-actions,
.test-actions { margin-top: 56px; }
.test-actions { display: flex; justify-content: center; }
@media (min-width: 1025px) {
  .proj-card--all { display: flex; }
  .project-actions { display: none; }
}

/* WHY-US */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing);
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.why-card.dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.why-card.dark h3, .why-card.dark > p { color: var(--white); }
.why-card .icon-wrap { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--bg-soft); border: 1px solid var(--border); color: var(--ink); transition: border-color .3s var(--easing); }
.why-card:hover .icon-wrap { border-color: var(--ink); }
.why-card.dark .icon-wrap { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); color: #fff; }
.why-card .icon-wrap svg { width: 32px; height: 32px; }
.why-card h3 { font-size: 20px; line-height: 28px; margin-bottom: 0; color: var(--ink); }
.why-card > p { color: var(--body); font-size: 15px; line-height: 24px; }
.badge-pop { position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--charcoal); padding: 4px 10px; border-radius: var(--r-xs); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ticks { display: flex; flex-direction: column; }
.ticks li { padding: 10px 0; font-size: 14px; color: var(--body); border-top: 1px solid var(--border); position: relative; padding-left: 24px; }
.ticks li:first-child { border-top: 0; }
.ticks li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 13px;
  width: auto;
  height: auto;
  color: var(--green);
  background: transparent;
  border-radius: 0;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}
.why-card.dark .ticks li { color: rgba(255,255,255,0.85); border-top-color: rgba(255,255,255,0.10); }

/* FAQ */
.faq-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq-copy {
  position: sticky;
  top: 96px;
}
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .3s var(--easing), box-shadow .3s var(--easing), transform .3s var(--easing);
}
.faq-item:hover,
.faq-item.open {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 24px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  background: transparent;
}
.faq-q::after {
  content: "+";
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  transition: background .25s var(--easing), color .25s var(--easing), border-color .25s var(--easing), transform .25s var(--easing);
}
.faq-item.open .faq-q::after {
  content: "−";
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.faq-icon {
  display: none;
}
.faq-label {
  display: block;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  margin-left: 24px;
  margin-right: 24px;
  color: var(--body);
  font-size: 15px;
  line-height: 24px;
  transition: max-height .4s var(--easing), padding .4s var(--easing);
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 0 24px;
}

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; transition: transform .3s var(--easing), box-shadow .3s var(--easing); }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.team-photo { aspect-ratio: 1/1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-soft); margin-bottom: 14px; display: grid; place-items: center; color: var(--muted); }
.team-photo img { width:100%; height:100%; object-fit: cover; }
.team-photo svg { width: 56px; height: 56px; opacity: 0.4; }
.team-card h4 { font-size: 16px; font-weight: 600; padding: 0 6px; color: var(--ink); }
.team-card .role { padding: 0 6px; color: var(--muted); font-size: 13px; margin-top: 2px; display: block; }

/* CTA BLOCK (minimal soft card) */
.cta-block { background: var(--bg-card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 80px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255,255,255,0.62);
  pointer-events: none;
}
.cta-bg-video {
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 0;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  max-width: none;
  max-height: none;
  object-fit: cover;
  opacity: 0.40;
  pointer-events: none;
}
.cta-block > :not(.cta-bg-video) {
  position: relative;
  z-index: 2;
}
.cta-block h2 { color: var(--ink); font-size: 48px; line-height: 56px; }
.cta-block h2 em { font-style: italic; color: var(--red); }
.cta-block p { color: var(--body); margin: 16px auto 32px; max-width: 540px; }
.cta-block .btn-glass {
  background: var(--ink) !important;
  color: #fff !important;
  border-color: var(--ink) !important;
}
.cta-block .btn-glass .lbl,
.cta-block .btn-glass .label { color: #fff !important; }
.cta-block .btn-glass .icn,
.cta-block .btn-glass .icn-small { color: #fff !important; background: rgba(255,255,255,0.10) !important; }
.cta-block .btn-glass:hover {
  background: #2a2a2d !important;
  color: #fff !important;
  border-color: #2a2a2d !important;
}
.cta-block .btn-ghost {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--border-strong) !important;
}
.cta-block .btn-ghost .lbl,
.cta-block .btn-ghost .label { color: var(--ink) !important; }
.cta-block .btn-ghost .icn,
.cta-block .btn-ghost .icn-small { color: var(--ink) !important; background: transparent !important; }
.cta-block .btn-ghost:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
.cta-block .btn-ghost:hover .lbl,
.cta-block .btn-ghost:hover .label { color: #fff !important; }
.cta-block .btn-ghost:hover .icn,
.cta-block .btn-ghost:hover .icn-small { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
.cta-block .btn:not(:has(.icn)):not(:has(.icn-small))::after,
.cta-block .btn:hover:not(:has(.icn)):not(:has(.icn-small))::after {
  content: none !important;
}
html[data-theme="dark"] .cta-block { background: var(--bg-card); border-color: var(--border); }
html[data-theme="dark"] .cta-block::before { background: rgba(31,31,34,0.66); }
html[data-theme="dark"] .cta-bg-video { opacity: 0.32; }
html[data-theme="dark"] .cta-block .btn-glass {
  background: #fff !important;
  color: #303033 !important;
  border-color: #fff !important;
}
html[data-theme="dark"] .cta-block .btn-glass .lbl,
html[data-theme="dark"] .cta-block .btn-glass .label { color: #303033 !important; }
html[data-theme="dark"] .cta-block .btn-glass .icn,
html[data-theme="dark"] .cta-block .btn-glass .icn-small { color: #303033 !important; background: rgba(0,0,0,0.08) !important; }
html[data-theme="dark"] .cta-block .btn-glass:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
html[data-theme="dark"] .cta-block .btn-glass:hover .lbl,
html[data-theme="dark"] .cta-block .btn-glass:hover .label { color: #fff !important; }
html[data-theme="dark"] .cta-block .btn-glass:hover .icn,
html[data-theme="dark"] .cta-block .btn-glass:hover .icn-small { color: #fff !important; background: rgba(255,255,255,0.18) !important; }
html[data-theme="dark"] .cta-block .btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.28) !important;
}
html[data-theme="dark"] .cta-block .btn-ghost .lbl,
html[data-theme="dark"] .cta-block .btn-ghost .label { color: #fff !important; }
html[data-theme="dark"] .cta-block .btn-ghost .icn,
html[data-theme="dark"] .cta-block .btn-ghost .icn-small { color: #fff !important; background: transparent !important; }
html[data-theme="dark"] .cta-block .btn-ghost:hover {
  background: var(--red) !important;
  color: #fff !important;
  border-color: var(--red) !important;
}
html[data-theme="dark"] .cta-block .btn-ghost:hover .lbl,
html[data-theme="dark"] .cta-block .btn-ghost:hover .label { color: #fff !important; }
html[data-theme="dark"] .cta-block .btn-ghost:hover .icn,
html[data-theme="dark"] .cta-block .btn-ghost:hover .icn-small { color: #fff !important; background: rgba(255,255,255,0.18) !important; }

/* FOOTER */
.footer-shell { padding: 48px 0 0; background: var(--bg); }
.footer {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #1f1f22;
  color: #fff;
  border-radius: 18px 18px 0 0;
  padding: 72px 0 34px;
  margin-bottom: -1px;
  position: relative;
}
html[data-theme="dark"] .footer { background: #0f0f11; }
.footer .nav-logo { color: var(--white); padding: 0; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .9fr 1.1fr 1fr 1.1fr; gap: 36px; }
.footer h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; color: var(--white); }
.footer a, .footer p { color: rgba(255,255,255,0.72); font-size: 14px; padding: 4px 0; display: block; transition: color .2s var(--easing); }
.footer a:hover { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,0.72); padding-top: 16px; max-width: 320px; }
.footer-cert {
  margin-top: 18px;
  max-width: 230px;
}
.footer-cert img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .9;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.social-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  overflow: visible;
  transition: transform .25s var(--easing), opacity .25s var(--easing);
}
.footer .social-link {
  padding: 0;
  line-height: 1;
}
.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
}
.social-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
  transition: filter .25s var(--easing), opacity .25s var(--easing);
}
.social-link:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.social-link:hover img {
  filter: brightness(0) invert(1);
}
.mobile-social {
  display: flex;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
}
.mobile-menu .mobile-social a {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 1;
  color: inherit;
  background: transparent;
  overflow: visible;
  transition: transform .25s var(--easing), opacity .25s var(--easing);
}
.mobile-menu .mobile-social a:hover {
  transform: translateY(-1px);
  opacity: 1;
}
.mobile-social svg {
  width: 19px;
  height: 19px;
  display: block;
  margin: 0;
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
}
.mobile-social img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  flex: 0 0 auto;
  transition: filter .25s var(--easing), opacity .25s var(--easing);
}
.mobile-social a:hover img {
  filter: brightness(0) invert(1);
}
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: rgba(255,255,255,0.6); font-size: 12px; }
.footer-bottom a { display: inline; padding: 0; color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--white); }
.footer-credit-separator { margin: 0 8px; }
.footer-credit { white-space: nowrap; }

/* PAGE HERO (white) */
.page-hero { position: relative; overflow: hidden; padding: 160px 0 80px; background: transparent; color: var(--ink); text-align: center; }
.page-hero h1 { color: var(--ink); font-size: 60px; line-height: 68px; }
.page-hero h1 em { font-style: italic; color: var(--red); }
.page-hero p { color: var(--body); font-size: 17px; margin: 16px auto 0; max-width: 620px; }
.page-hero .container { position: relative; z-index: 2; }

/* CONTACT */
.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.info-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-card); transition: transform .3s var(--easing), box-shadow .3s var(--easing), border-color .3s var(--easing); }
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.info-card .icon-wrap {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color .3s var(--easing);
}
.info-card:hover .icon-wrap { border-color: var(--ink); }
.info-card .icon-wrap svg { width: 32px; height: 32px; }
.info-card .icon-wrap svg path[stroke] { stroke: currentColor; }
.info-card .icon-wrap svg path[fill]:not([fill="none"]) { fill: currentColor; }
.info-card h3 { font-size: 18px; color: var(--ink); }
.info-card p, .info-card a { color: var(--body); font-size: 15px; line-height: 23px; }
.info-card a:hover { color: var(--red); }

/* CLIENTS */
.clients-hero p { max-width: 720px; }
.clients-heading-tail { display: inline-block; }
@media (min-width: 641px) {
  .clients-heading-tail { white-space: nowrap; }
}
.clients-intro { padding-top: 72px; }
.clients-intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.clients-intro-copy {
  color: var(--body);
  font-size: 16px;
  line-height: 26px;
}
.clients-intro-copy p + p { margin-top: 16px; }
.client-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
}
.client-stats div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
}
.client-stats strong {
  display: block;
  color: var(--ink);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 10px;
}
.client-stats span {
  display: block;
  color: var(--body);
  font-size: 14px;
  line-height: 22px;
}
.clients-logo-section { padding-top: 28px; }
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 8px 4px 4px;
  overflow: hidden;
  transition: max-height .55s var(--easing);
  will-change: max-height;
}
.clients-logo-section.clients-collapsed .clients-logo-grid {
  max-height: var(--clients-collapsed-height, 552px);
}
.clients-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.clients-toggle {
  min-width: 160px;
  justify-content: center;
}
.clients-toggle .lbl {
  justify-content: center;
  min-width: 118px;
}
.client-logo-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  cursor: zoom-in;
  transition: transform .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing);
}
.client-logo-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.client-logo-card:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.client-logo-card img {
  width: 100%;
  max-width: 150px;
  height: 78px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}
.client-logo-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  font-weight: 500;
}
html[data-theme="dark"] .client-logo-card {
  background: #fff;
  border-color: rgba(255,255,255,0.18);
}
html[data-theme="dark"] .client-logo-card:hover {
  border-color: rgba(255,255,255,0.36);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
}
html[data-theme="dark"] .client-logo-card span {
  color: #404042;
}

.contact-form-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-copy {
  position: sticky;
  top: clamp(112px, 14vh, 152px);
  max-width: 560px;
  align-self: start;
  will-change: transform;
}
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 12px 14px; font: inherit; font-size: 15px;
  background: var(--bg-card); color: var(--ink);
  transition: border-color .2s var(--easing);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31,31,33,0.06); }
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field select#topic {
  height: 56px;
  min-height: 56px;
  appearance: none;
  -webkit-appearance: none;
  border-color: var(--ink);
  background-color: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 0 72px 0 22px;
  background-image:
    linear-gradient(to right, transparent calc(100% - 56px), rgba(255,255,255,0.10) calc(100% - 56px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 256 256' fill='none'%3E%3Cpath d='M64 96l64 64 64-64' stroke='%23ffffff' stroke-width='22' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 22px 22px;
  background-position: center, right 17px center;
  cursor: pointer;
}
.form-field select#topic:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,37,39,0.14);
}
.form-field select#topic option {
  background: #fff;
  color: #303033;
}
html[data-theme="dark"] .form-field select#topic {
  border-color: #fff;
  background-color: #fff;
  color: #303033;
  background-image:
    linear-gradient(to right, transparent calc(100% - 56px), rgba(0,0,0,0.08) calc(100% - 56px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 256 256' fill='none'%3E%3Cpath d='M64 96l64 64 64-64' stroke='%23141416' stroke-width='22' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Reusable enhanced select: retains the native field for form submission. */
.custom-select {
  position: relative;
  width: 100%;
}
.custom-select.custom-select-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.custom-select-trigger {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing), background .2s var(--easing);
}
.custom-select-trigger-label {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 13px 22px;
}
.custom-select-trigger-icon {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.1);
}
.custom-select-trigger-icon::before {
  content: "";
  width: 11px;
  height: 11px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .24s var(--easing);
}
.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,37,39,.14);
  outline: none;
}
.custom-select.open .custom-select-trigger-icon::before {
  transform: translateY(3px) rotate(225deg);
}
.custom-select-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(380px, 58vh);
  overflow: auto;
  scrollbar-width: none;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.985);
  transform-origin: top center;
  transition: opacity .2s var(--easing), transform .2s var(--easing), visibility .2s;
}
.custom-select-menu::-webkit-scrollbar { display: none; }
.custom-select.open .custom-select-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.custom-select-option {
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
  font-size: 15px;
  transition: background .16s var(--easing), color .16s var(--easing);
}
.custom-select-option:hover,
.custom-select-option:focus-visible {
  outline: none;
  background: var(--bg-soft);
}
.custom-select-option[aria-selected="true"] {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
html[data-theme="dark"] .custom-select-trigger {
  border-color: #fff;
  background: #fff;
  color: #303033;
}
html[data-theme="dark"] .custom-select-trigger-icon {
  border-left-color: rgba(0,0,0,.1);
  background: rgba(0,0,0,.08);
}
.form-success { padding: 14px; background: rgba(11,174,93,0.12); color: var(--green); border-radius: var(--r-sm); font-size: 14px; }
.form-success.error { background: rgba(220,37,39,0.12); color: var(--red); }
.perks li { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; font-size: 15px; color: var(--body); }
.perks li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green); margin-top: 4px; }
.contact-form .btn-submit {
  width: 100%;
  justify-content: space-between;
  text-align: left;
}
.contact-form .btn-submit .lbl,
.contact-form .btn-submit .label {
  flex: 1 1 auto;
  justify-content: flex-start;
}
.contact-form .btn-submit .icn {
  margin-left: auto;
  width: 56px;
  min-width: 56px;
}
.contact-map-card {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.contact-map-card iframe {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 460px);
  border: 0;
  filter: saturate(0.9);
  opacity: 1;
  transition: opacity .22s var(--easing);
}
.contact-map-card iframe.map-switching {
  opacity: .55;
}

@media (max-width: 640px) {
  .contact-location-grid {
    gap: 16px;
  }
  .contact-location-card[data-location-map="kwazulu-natal"] { order: 1; }
  .contact-inline-map-kzn { order: 2; }
  .contact-location-card[data-location-map="gauteng"] { order: 3; }
  .contact-inline-map-gauteng { order: 4; }
  .contact-location-card[data-location-map="mpumalanga"] { order: 5; }
  .contact-inline-map-mpumalanga { order: 6; }
  .contact-inline-map {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
  }
  .contact-inline-map iframe {
    display: block;
    width: 100%;
    height: clamp(260px, 76vw, 340px);
    border: 0;
    filter: saturate(0.9);
  }
  .contact-map-card {
    display: none;
  }
  .contact-location-card.active,
  .contact-location-card[aria-pressed="true"] {
    border-color: var(--border);
    box-shadow: none;
  }
  .contact-location-card.active .icon-wrap,
  .contact-location-card[aria-pressed="true"] .icon-wrap {
    border-color: var(--border);
    background: var(--bg-soft);
  }
}

/* INSIGHTS */
.feature-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.featured-reads-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: transform .35s var(--easing), box-shadow .35s var(--easing); }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-card:hover,
.article-sm:hover {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='17' fill='%23dc2527'/%3E%3Cpath d='M7 18c2.6-4.2 6.7-6.8 11-6.8s8.4 2.6 11 6.8c-2.6 4.2-6.7 6.8-11 6.8S9.6 22.2 7 18Z' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='18' cy='18' r='3.7' fill='white'/%3E%3C/svg%3E") 18 18, pointer;
}
.article-card .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.article-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0) contrast(1.04);
  transition: transform .6s var(--easing), filter .45s var(--easing);
}
.article-card:hover .img img,
.article-card:focus-visible .img img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1) contrast(1);
}
.article-card .body { padding: 24px 28px 28px; }
.article-card .meta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.article-card h3 { font-size: 22px; line-height: 28px; color: var(--ink); }
.article-card p { color: var(--body); font-size: 14px; line-height: 22px; margin-top: 8px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.article-sm { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: transform .3s var(--easing); }
.article-sm:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.article-sm .img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.article-sm .img img {
  width:100%;
  height:100%;
  object-fit: cover;
  filter: grayscale(1) saturate(0) contrast(1.04);
  transition: transform .6s var(--easing), filter .45s var(--easing);
}
.article-sm:hover .img img,
.article-sm:focus-visible .img img {
  transform: scale(1.05);
  filter: grayscale(0) saturate(1) contrast(1);
}
.article-sm .body { padding: 18px 20px 22px; }
.article-sm h4 { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
.article-sm .meta { color: var(--muted); font-size: 11px; margin-bottom: 6px; }

/* Project imagery: black-and-white by default, colour on the active card only. */
.proj-img img,
.article-card .img img,
.article-sm .img img {
  filter: grayscale(1) saturate(0) contrast(1.04);
  transform: none !important;
  transition: filter 0s linear;
}

@media (hover: hover) and (pointer: fine) {
  .proj-card:hover .proj-img img,
  .proj-card:focus-visible .proj-img img,
  .article-card:hover .img img,
  .article-card:focus-visible .img img,
  .article-sm:hover .img img,
  .article-sm:focus-visible .img img {
    filter: grayscale(0) saturate(1) contrast(1);
    transform: none !important;
  }
}

/* Latest from AFI mirrors the project-card image interaction. */
@media (hover: hover) and (pointer: fine) {
  body.insights-page .insights-stack-section .article-sm:hover .img img,
  body.insights-page .insights-stack-section .article-sm:focus-visible .img img {
    filter: grayscale(0) saturate(1) contrast(1);
  }
}

.proj-card:active .proj-img img,
.article-card:active .img img,
.article-sm:active .img img {
  filter: grayscale(0) saturate(1) contrast(1);
}

body.insights-page .insights-stack-section .articles-grid {
  display: grid;
  max-width: none;
  margin: 0;
}
body.insights-page .insights-stack-section .article-sm {
  position: relative;
  top: auto;
  height: auto;
  min-height: 0;
  margin-bottom: 0;
  display: block;
  transform: none;
  will-change: auto;
}
body.insights-page .insights-stack-section .article-sm .img {
  height: auto;
  min-height: 0;
}
.insight-detail-page .page-hero {
  padding-bottom: 42px;
}
.insight-detail-page .page-hero p {
  max-width: 860px;
}
.insight-detail-page .detail-body .prose {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
}
.insight-detail-page .detail-body .prose strong {
  color: var(--ink);
}
.insight-detail-page .detail-body .prose figure {
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.insight-detail-page .detail-body .prose figure img {
  display: block;
  width: 100%;
  height: auto;
}
.insight-detail-page .detail-body .prose figcaption {
  padding: 12px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
.insight-inline-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
  align-items: start;
}
.insight-inline-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--bg-soft);
  aspect-ratio: 16 / 11;
  min-height: 0;
}
.insight-detail-page .detail-body .prose .insight-inline-gallery img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.insight-related-card {
  display: grid;
  gap: 18px;
}
.insight-related-card .btn {
  width: 100%;
}
.insight-related-card .btn .lbl {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}
.insight-related-highlights {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.insight-related-highlights li {
  color: var(--body);
  font-size: 13px;
  line-height: 20px;
  padding: 6px 0;
}
.insight-related-highlights li strong {
  color: var(--ink);
}

/* ABOUT SPLIT */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-2 .img { aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden; background: var(--bg-soft); }
.split-2 .img.about-video-wrap { aspect-ratio: 1 / 1; }
.split-2 .img img { width:100%; height:100%; object-fit: cover; }
.about-video-wrap {
  position: relative;
  box-shadow: var(--shadow-lg);
}
.about-section-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-soft);
}
.split-2 h2 { margin-bottom: 16px; }
.split-2 p { color: var(--body); margin-bottom: 14px; }

/* PROJECT DETAIL */
.detail-hero { padding: 140px 0 56px; background: transparent; color: var(--ink); position: relative; overflow: hidden; }
.detail-hero h1 { color: var(--ink); font-size: 56px; line-height: 64px; }
.detail-hero h1 em { font-style: italic; color: var(--red); }
.detail-hero .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.detail-hero .container { position: relative; z-index: 2; }
.insight-detail-page .article-byline {
  display: grid;
  grid-template-columns: auto auto minmax(48px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(100%, 680px);
  margin: 0 0 22px;
}
.insight-detail-page .article-byline-label {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  line-height: 20px;
}
.insight-detail-page .article-byline-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0.01em;
}
.insight-detail-page .article-byline-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0 26px, var(--border-strong) 26px 100%);
}
.detail-img-wrap {
  padding: 0 24px 64px;
  background: var(--bg);
  perspective: 1200px;
}
.detail-img {
  aspect-ratio: 16/9;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  max-width: var(--max-w);
  margin: 0 auto;
  transform: rotateX(var(--detail-tilt-y, 0deg)) rotateY(var(--detail-tilt-x, 0deg)) translate3d(var(--detail-shift-x, 0px), var(--detail-shift-y, 0px), 0);
  transform-style: preserve-3d;
  transition: transform .45s var(--easing), box-shadow .35s var(--easing);
  will-change: transform;
}
.detail-img.is-tilting {
  transition: transform .08s linear, box-shadow .35s var(--easing);
}
.detail-img:hover {
  box-shadow: 0 24px 60px rgba(15,15,17,0.14);
}
html[data-theme="dark"] .detail-img:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.detail-img img {
  width:100%;
  height:100%;
  object-fit: cover;
  transform: scale(var(--detail-img-scale, 1));
  transition: transform .45s var(--easing);
  will-change: transform;
}
.detail-body { display: grid; grid-template-columns: 2.2fr 1fr; gap: 64px; align-items: start; }
.detail-body .prose p { color: var(--body); margin-bottom: 18px; font-size: 16px; line-height: 26px; }
.detail-body .prose h2, .detail-body .prose h3 { color: var(--ink); margin-top: 32px; margin-bottom: 12px; }
.detail-body .prose ul { margin: 0 0 18px 18px; }
.detail-body .prose ul li { color: var(--body); padding: 4px 0; list-style: disc; font-size: 16px; line-height: 26px; }
.detail-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px; position: sticky; top: 96px; }
.detail-side h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.detail-side dl { display: grid; grid-template-columns: 1fr; gap: 14px; }
.detail-side dt { font-size: 12px; color: var(--muted); }
.detail-side dd { font-size: 14px; color: var(--ink); font-weight: 600; margin-top: 2px; }
.detail-side .team-list { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-side .team-list li { font-size: 13px; line-height: 20px; padding: 6px 0; color: var(--body); }
.detail-side .team-list li strong { color: var(--ink); display: block; }

/* PROJECT GALLERY */
.project-gallery-section { padding-top: 32px; }
.project-gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.project-gallery-header p {
  max-width: 560px;
  color: var(--body);
  font-size: 15px;
  line-height: 24px;
}
.project-gallery-arrow {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
  transition: transform .22s var(--easing), border-color .22s var(--easing), background .22s var(--easing), color .22s var(--easing);
}
.project-gallery-arrow:hover,
.project-gallery-arrow:active {
  border-color: var(--control-hover-bg);
  background: var(--control-hover-bg);
  color: var(--control-hover-text);
}
.project-gallery-arrow:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}
.project-gallery-prev:hover { transform: translateX(-2px); }
.project-gallery-next:hover { transform: translateX(2px); }
.project-gallery-arrow svg {
  width: 18px;
  height: 18px;
}
.project-gallery-arrow svg path,
.project-gallery-arrow svg line,
.project-gallery-arrow svg polyline {
  stroke: currentColor;
}
.project-gallery-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 420px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  padding: 2px 4px;
  scrollbar-width: none;
}
.project-gallery-track::-webkit-scrollbar { display: none; }
.project-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.project-gallery-progress {
  width: min(160px, 32vw);
  height: 8px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}
.project-gallery-progress span {
  display: block;
  width: var(--gallery-progress, 22%);
  min-width: 22%;
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width .18s var(--easing);
}
html[data-theme="dark"] .project-gallery-progress span { background: #fff; }
.project-gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  scroll-snap-align: start;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform .25s var(--easing), border-color .25s var(--easing), box-shadow .25s var(--easing);
}
.project-gallery-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-gallery-item.technical-drawing img {
  object-fit: contain;
  background: #fff;
}
.afi-gallery-grid .afi-gallery-item {
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  break-inside: avoid;
  vertical-align: top;
  transform: none;
}
.afi-gallery-grid .afi-gallery-item:hover,
.afi-gallery-grid .afi-gallery-item:focus-visible {
  border: 0;
  box-shadow: none;
  transform: none;
}
.afi-gallery-grid .afi-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 34px 24px 92px;
  background: rgba(8,8,10,0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--easing);
}
.project-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.project-lightbox.is-loading img,
.project-lightbox.is-loading .project-lightbox-caption {
  opacity: 0;
}
.project-lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 24px 80px rgba(0,0,0,0.42);
  opacity: 1;
  transition: opacity .18s ease;
}
.project-lightbox-caption {
  display: none;
  opacity: 1;
  transition: opacity .18s ease;
}
@media (max-width: 600px) {
  .project-lightbox.afi-gallery-lightbox .project-lightbox-caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 76px;
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
  }
}
.client-logo-lightbox img {
  max-width: min(760px, 86vw);
  max-height: 64vh;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.82);
  padding: clamp(28px, 6vw, 72px);
  object-fit: contain;
}
.project-lightbox-close {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.62);
  color: #fff;
  background: rgba(15,15,17,0.28);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: background .2s var(--easing), transform .2s var(--easing);
}
.project-lightbox-close:hover {
  background: rgba(220,37,39,0.85);
  transform: translateX(-50%) translateY(-1px);
}

/* DRAFT-PAPER BACKDROP */
.section,
.section-gray,
.hero:not(.hero-video),
.page-hero,
.detail-hero,
.detail-img-wrap,
.footer-shell {
  background-color: transparent;
  background-image: none;
}

/* SUBTLE INTERACTIONS */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--easing);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* link hover micro */
.footer a, .cta-block a, .info-card a { position: relative; }

/* card lift refinement (less aggressive shadow) */
.card, .cap-card, .proj-card, .test-card, .why-card, .info-card, .team-card, .article-card, .article-sm {
  height: 100%;
  transition: transform .35s var(--easing), box-shadow .35s var(--easing), border-color .35s var(--easing);
}

/* hero h1 subtle interactive shimmer */
.hero h1 em, .page-hero h1 em, .detail-hero h1 em {
  position: relative; display: inline-block;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 6px; background: var(--red); opacity: 0.16; border-radius: 2px;
  transform: scaleX(.92); transform-origin: left;
}

/* button press */
.btn:active { opacity: 0.92; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(3px); transition: opacity .8s var(--easing), transform .8s var(--easing), filter .8s var(--easing); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }
.reveal.d6 { transition-delay: .48s; }

/* TRUST STRIP — matched to About metric cards */
.trust-strip {
  background: var(--bg);
  padding: 72px 0 84px;
}
body.home-page .trust-strip {
  position: relative;
}
.trust-stats {
  margin: 0 auto;
  max-width: min(1480px, calc(100vw - 56px));
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background-color: #fff;
}
.trust-stats .stat {
  min-height: 172px;
  padding: 34px 20px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background-color: #fff;
}
html[data-theme="dark"] .trust-stats,
html[data-theme="dark"] .trust-stats .stat { background-color: #1f1f22; }
html[data-theme="light"] body.home-page .trust-strip {
  background: #141416;
  padding-top: 52px;
  padding-bottom: 84px;
}
html[data-theme="light"] body.home-page .trust-stats,
html[data-theme="light"] body.home-page .trust-stats .stat {
  background-color: #1f1f22;
}
html[data-theme="light"] body.home-page .trust-stats {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 32px 56px rgba(0,0,0,0.18);
}
html[data-theme="light"] body.home-page .trust-stats .stat,
html[data-theme="light"] body.home-page .trust-stats button.stat-link {
  border-color: rgba(255,255,255,0.12);
}
html[data-theme="light"] body.home-page .trust-stats .num {
  color: #fff;
}
html[data-theme="light"] body.home-page .trust-stats .lbl {
  color: rgba(255,255,255,0.74);
}
html[data-theme="light"] body.home-page .trust-stats .stat:hover .num,
html[data-theme="light"] body.home-page .trust-stats .stat:focus-visible .num {
  color: var(--red);
}
.trust-stats .num {
  font-size: clamp(34px, 3vw, 52px);
  line-height: 1.02;
  min-height: 2.08em;
  display: flex;
  align-items: flex-end;
  transform: translateY(-8px);
  transition: color .24s var(--easing), transform .24s var(--easing);
}
.trust-stats .lbl {
  margin-top: 12px;
  font-size: 10.5px;
  line-height: 1.45;
  letter-spacing: 0.07em;
}
.trust-stats .stat:hover .num,
.trust-stats .stat:focus-visible .num {
  color: var(--red);
}
.document-picker {
  width: min(760px, calc(100% - 40px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.document-picker:not([open]) { display: none; }
.document-picker::backdrop {
  background: rgba(10, 10, 12, .46);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.document-picker-panel {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--bg-card);
  box-shadow: 0 28px 72px rgba(15, 15, 17, .22);
  animation: documentPickerEnter .24s var(--easing) both;
}
html[data-theme="dark"] .document-picker-panel {
  box-shadow: 0 28px 72px rgba(0, 0, 0, .52);
}
.document-picker-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.document-picker-panel h2 {
  max-width: calc(100% - 56px);
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.04;
}
.document-picker-panel > p {
  margin: 10px 0 0;
  color: var(--body);
  font-size: 16px;
  line-height: 1.5;
}
.document-picker-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 29px;
  line-height: 1;
  transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing);
}
.document-picker-close:hover,
.document-picker-close:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.document-picker-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.document-picker-option {
  position: relative;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--ink);
  transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing), transform .2s var(--easing);
}
a.document-picker-option:hover,
a.document-picker-option:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.document-picker-option.is-unavailable {
  border-style: dashed;
  color: var(--muted);
  opacity: .64;
  cursor: default;
}
.document-picker-option-label {
  max-width: 150px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
}
.document-picker-option-status {
  margin-top: 8px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  opacity: .66;
  text-transform: uppercase;
}
.document-picker-option-icon {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 24px;
  line-height: 1;
}
@keyframes documentPickerEnter {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.pdf-viewer-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}
.pdf-viewer-dialog:not([open]) { display: none; }
.pdf-viewer-dialog::backdrop { background: rgba(10, 10, 12, .72); }
.pdf-viewer-shell {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--bg);
}
.pdf-viewer-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(10px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.pdf-viewer-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.pdf-viewer-logo {
  width: 126px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}
.pdf-viewer-logo-dark { display: none; }
html[data-theme="dark"] .pdf-viewer-logo-light { display: none; }
html[data-theme="dark"] .pdf-viewer-logo-dark { display: block; }
.pdf-viewer-brand h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.pdf-viewer-download,
.pdf-viewer-close {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  color: var(--ink);
  transition: color .2s var(--easing), border-color .2s var(--easing), background .2s var(--easing);
}
.pdf-viewer-download {
  gap: 8px;
  padding: 0 15px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
}
.pdf-viewer-download > span[aria-hidden="true"] { font-size: 18px; }
.pdf-viewer-close {
  width: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.pdf-viewer-download:hover,
.pdf-viewer-download:focus-visible,
.pdf-viewer-close:hover,
.pdf-viewer-close:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.pdf-viewer-frame-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #d4d4d7;
}
html[data-theme="dark"] .pdf-viewer-frame-wrap { background: #2a2a2e; }
.pdf-viewer-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: transparent;
}
.pdf-viewer-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s var(--easing);
}
.pdf-viewer-dialog.is-loading .pdf-viewer-loading { opacity: 1; }
.credential-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--easing);
}
.credential-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.credential-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.credential-modal-panel {
  position: relative;
  width: min(100%, 560px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
  display: grid;
  gap: 14px;
}
.credential-modal-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
  font-weight: 700;
}
.credential-modal-panel h3 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.05;
  margin: 0;
}
.credential-modal-panel p {
  margin: 0;
  color: var(--muted);
}
.credential-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  align-items: stretch;
}
.credential-modal-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  justify-content: space-between;
}
.credential-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s var(--easing), border-color .25s var(--easing), color .25s var(--easing);
}
.credential-modal-close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav > .nav-dropdown-menu { display: none; }
  .nav-inner { justify-content: flex-start; }
  .nav-logo { min-width: 0; }
  .nav-cta {
    margin-left: auto;
    gap: 10px;
    flex-shrink: 0;
  }
  .nav-cta .btn { display: none; }
  .nav-cta .theme-toggle { display: inline-grid; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 42px; line-height: 50px; }
  .hero p.hero-tagline { font-size: 20px; line-height: 30px; }
  .page-hero h1 { font-size: 42px; line-height: 50px; }
  .insight-detail-page .detail-hero h1 { font-size: 42px; line-height: 50px; }
  h1, .h1 { font-size: 40px; line-height: 48px; }
  h2, .h2, .section-title { font-size: 32px; line-height: 40px; }
  .cap-grid, .contact-info, .proj-grid, .test-grid, .why-grid, .articles-grid, .stats { grid-template-columns: 1fr 1fr; }
  .trust-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: min(1200px, calc(100vw - 40px));
  }
  .stats .stat:nth-child(3) { border-left: 0; }
  .trust-stats .stat:nth-child(3) { border-left: 1px solid var(--border); }
  .trust-stats .stat:nth-child(4) { border-left: 0; }
  .trust-stats .stat:nth-child(5) { border-left: 1px solid var(--border); }
  .stat { padding: 36px 20px; }
  .stats { background-color: var(--bg-card); }
  .stat .num { font-size: 52px; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-2, .featured-reads-grid, .split-2, .contact-form-wrap, .detail-body, .services-row, .faq-row, .clients-intro-grid, .insight-inline-gallery { grid-template-columns: 1fr; gap: 32px; }
  .faq-copy {
    position: relative;
    top: 0;
    transform: none !important;
    transition: none;
  }
  .contact-copy { position: relative; top: 0; max-width: none; }
  .clients-logo-grid { grid-template-columns: repeat(3, 1fr); }
  .client-stats { grid-template-columns: 1fr 1fr 1fr; }
  .project-gallery-header { align-items: start; flex-direction: column; }
  /* Let long project-gallery titles use the full responsive header width instead of
     balancing each italic project name inside a narrow character measure. */
  .project-gallery-header .section-title {
    width: 100%;
    max-width: none;
    text-wrap: wrap;
  }
  .project-gallery-header .section-title em {
    display: inline;
    text-wrap: inherit;
  }
  .project-gallery-track { grid-auto-columns: minmax(260px, 78vw); }
  .services-sticky { position: relative; top: 0; }
  .services-sticky h2 { font-size: 32px; line-height: 40px; }
  .services-cta-desktop {
    display: none;
  }
  .services-cta-mobile {
    display: inline-flex;
  }
  .detail-side { position: relative; top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-block { padding: 56px 24px; }
  .cta-block h2 { font-size: 32px; line-height: 40px; }
  .footer { padding: 56px 0 30px; }
  .btn-row,
  .hero-cta {
    width: 100%;
    align-items: center;
    justify-content: center;
  }
  .contact-form,
  .info-card,
  .card,
  .cap-card,
  .proj-card,
  .why-card,
  .test-card {
    max-width: 100%;
  }
  .trust-stats .stat {
    min-height: 156px;
    padding: 28px 18px 24px;
  }
  .trust-stats .num {
    font-size: clamp(30px, 6vw, 44px);
    min-height: auto;
  }
  .trust-stats .lbl {
    font-size: 10px;
    line-height: 1.42;
  }
}
@media (max-width: 640px) {
  body { padding-top: 78px; }
  body.home-page { padding-top: 0; }
  .insight-detail-page .detail-hero { padding: 80px 0 44px; }
  .nav {
    top: 10px;
    width: calc(100% - 20px);
    height: 58px;
    border-radius: 12px;
  }
  .nav-inner {
    gap: 8px;
    padding: 0 10px 0 12px;
  }
  .site-logo {
    width: clamp(118px, 38vw, 142px);
    max-height: 38px;
  }
  .theme-toggle,
  .hamburger {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .theme-toggle svg { width: 17px; height: 17px; }
  .mobile-menu {
    width: min(360px, 90vw);
    padding: 76px 20px 28px;
  }
  .mobile-menu-close {
    top: 17px;
    right: 17px;
    width: 40px;
    height: 40px;
  }
  .mobile-menu a {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 0;
    text-align: left;
  }
  .mobile-menu a.mobile-sub-link {
    font-size: 18px;
    padding: 12px 0;
  }
  .mobile-menu .btn {
    order: 1;
    width: auto;
    min-width: 0;
    height: 42px;
    margin-top: 0;
    flex: 0 0 auto;
    border-radius: 14px;
    border: 1px solid var(--red);
    background: var(--red);
    color: #fff;
  }
  html[data-theme="dark"] .mobile-menu .btn {
    border-color: var(--red);
    background: var(--red);
    color: #fff;
  }
  .mobile-menu .btn:hover {
    background: var(--red-2);
    border-color: var(--red-2);
    color: #fff;
  }
  .mobile-menu .btn .lbl {
    flex: 0 0 auto;
    justify-content: center;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
  }
  .mobile-menu .btn .icn,
  .mobile-menu .btn .icn-small,
  .mobile-menu .btn:not(:has(.icn)):not(:has(.icn-small))::after {
    display: none;
  }
  .mobile-menu .btn .icn svg,
  .mobile-menu .btn .icn-small svg {
    width: 18px;
    height: 18px;
  }
  .mobile-menu-bottom {
    gap: 14px;
    padding-top: 18px;
  }
  .mobile-menu-brand img {
    width: clamp(112px, 34vw, 132px);
  }
  .mobile-menu-docs {
    gap: 6px;
  }
  .mobile-menu-docs a {
    font-size: 13px;
    line-height: 18px;
  }
  .mobile-menu-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
  }
  .mobile-menu .mobile-social {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    padding: 0;
    border-bottom: 0;
    gap: 4px;
  }
  .mobile-menu .mobile-social a {
    width: 30px;
    height: 30px;
  }
  .mobile-menu .mobile-social a:hover {
    transform: translateY(-1px);
    opacity: .92;
  }
  .mobile-menu .mobile-social a:hover img {
    filter: none;
  }
  .trust-stats {
    grid-template-columns: 1fr;
    max-width: min(540px, calc(100vw - 24px));
  }
  .trust-stats .stat {
    min-height: 0;
    padding: 24px 16px 22px;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .trust-stats .stat:first-child {
    border-top: 0;
  }
  .trust-stats button.stat-link {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .trust-stats button.stat-link:first-child {
    border-top: 0;
  }
  .trust-stats .num {
    font-size: 38px;
  }
  .trust-stats .lbl {
    font-size: 10px;
  }
  .section { padding: 58px 0; }
  body.insights-page .insights-stack-section .article-sm {
    display: block;
    top: 92px;
    margin-bottom: 18px;
  }
  body.insights-page .insights-stack-section .article-sm .img {
    height: auto;
    min-height: 0;
  }
  .hero h1 { font-size: 34px; line-height: 42px; }
  .hero p.hero-tagline { font-size: 19px; line-height: 28px; }
  .hero.hero-video {
    min-height: 680px;
    padding: 112px 0 76px;
  }
  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta .btn {
    width: min(100%, 320px);
    height: 54px;
  }
  .hero-cta .btn .lbl,
  .hero-cta .btn .label {
    flex: 1;
    justify-content: center;
    padding: 0 18px;
  }
  .hero-cta .btn .icn,
  .hero-cta .btn .icn-small {
    width: 54px;
    min-width: 54px;
  }
  .page-hero h1 { font-size: 34px; line-height: 42px; }
  .insight-detail-page .detail-hero h1 { font-size: 34px; line-height: 42px; }
  .insight-detail-page .detail-hero h1 em { display: inline; }
  .insight-detail-page .article-byline {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 9px;
    row-gap: 9px;
    margin-bottom: 18px;
  }
  .insight-detail-page .article-byline-name {
    min-width: 0;
  }
  .insight-detail-page .article-byline-rule {
    grid-column: 1 / -1;
  }
  h2, .h2, .section-title { font-size: 26px; line-height: 34px; }
  .project-gallery-header .section-title {
    font-size: clamp(23px, 6vw, 26px);
    line-height: 1.3;
  }
  .centered,
  .services-sticky,
  .faq-copy,
  .contact-copy,
  .page-hero,
  .cta-block {
    text-align: center;
  }
  .section-sub,
  .services-sticky .section-sub,
  .faq-copy .section-sub,
  .contact-copy .section-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .section .eyebrow,
  .page-hero .eyebrow,
  .section .btn,
  .test-actions,
  .services-cta {
    margin-left: auto;
    margin-right: auto;
  }
  .cap-grid, .values-grid, .contact-info, .proj-grid, .test-grid, .why-grid, .articles-grid, .stats, .team-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:has(> h5):has(a[href*="#services"]) {
    display: none;
  }
  .clients-logo-grid, .client-stats { grid-template-columns: 1fr 1fr; }
  .client-logo-card { min-height: 148px; padding: 18px 14px; }
  .client-logo-card img { max-width: 126px; height: 64px; }
  .project-gallery-track { grid-auto-columns: 82vw; gap: 14px; }
  .project-lightbox { padding: 24px 16px 82px; }
  .project-lightbox img { max-height: 72vh; }
  .project-lightbox-close { bottom: 22px; }
  .stats .stat { border-left: 0; border-top: 1px solid var(--border); padding: 28px 16px; }
  .stats .stat:first-child { border-top: 0; }
  .credential-modal { padding: 18px; }
  .credential-modal-panel { padding: 24px 20px; border-radius: 24px; }
  .credential-modal-actions { flex-direction: column; }
  .credential-modal-actions .btn { width: 100%; }
  .document-picker {
    width: calc(100% - 24px);
    margin: auto 12px 12px;
  }
  .document-picker-panel {
    padding: 30px 20px 22px;
    border-radius: 20px;
  }
  .document-picker-panel h2 {
    max-width: calc(100% - 48px);
    font-size: 30px;
  }
  .document-picker-panel > p { font-size: 15px; }
  .document-picker-close {
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
  .document-picker-options {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 22px;
  }
  .document-picker-option {
    min-height: 76px;
    justify-content: center;
    padding: 16px 54px 16px 17px;
    border-radius: 12px;
  }
  .document-picker-option-label { max-width: none; font-size: 17px; }
  .document-picker-option-status { margin-top: 4px; }
  .document-picker-option-icon {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
  }
  .pdf-viewer-header {
    min-height: 58px;
    gap: 12px;
    padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  }
  .pdf-viewer-brand { gap: 10px; }
  .pdf-viewer-logo { width: 76px; }
  .pdf-viewer-brand h2 { font-size: 13px; }
  .pdf-viewer-actions { gap: 7px; }
  .pdf-viewer-download,
  .pdf-viewer-close { min-height: 40px; }
  .pdf-viewer-download {
    width: 40px;
    padding: 0;
  }
  .pdf-viewer-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pdf-viewer-close { width: 40px; }
  .container { padding: 0 16px; }
  .services-list,
  .contact-form,
  .cta-block,
  .footer-grid,
  .detail-side,
  .info-card {
    gap: 18px;
  }
  .svc-item {
    padding: 0;
    border-radius: var(--r-md);
  }
  .svc-item.open { padding-bottom: 0; }
  .svc-item .num {
    top: 22px;
    right: 18px;
    width: 30px;
    height: 30px;
    margin: 0;
  }
  .svc-item .num::before {
    font-size: 21px;
  }
  .svc-item h3 {
    min-height: 0;
    padding: 22px 62px 22px 18px;
    font-size: 18px;
    line-height: 25px;
  }
  .svc-item p {
    padding: 0;
    margin-left: 18px;
    margin-right: 18px;
    font-size: 15px;
    line-height: 23px;
  }
  .svc-item.open p { padding: 0 0 18px; }
  .svc-media {
    margin-left: 18px;
    margin-right: 18px;
  }
  .svc-item.open .svc-media {
    max-height: 220px;
    margin-bottom: 18px;
  }
  body.home-page .proj-grid,
  .test-grid,
  .values-grid,
  body.insights-page .articles-grid {
    display: block;
  }
  body.home-page .proj-grid {
    isolation: isolate;
  }
  body.home-page .proj-grid .proj-card,
  .test-grid .test-card {
    position: sticky;
    top: 92px;
    height: auto;
    margin-bottom: 18px;
    will-change: transform;
  }
  body.home-page .proj-grid .proj-card.mobile-project-stack-card {
    height: var(--mobile-project-card-height, auto);
    z-index: var(--mobile-project-card-layer, 1);
    transform: none;
    /* Overlapping project-card shadows accumulate into a dark halo near the end of the stack. */
    box-shadow: none;
    will-change: auto;
  }
  .mobile-stack-card {
    transform: translateY(var(--stack-y, 0px)) scale(var(--stack-scale, 1));
    box-shadow: var(--stack-shadow);
  }
  .scroll-stack {
    position: relative;
    isolation: isolate;
    /* Sticky cards must not become WebKit scroll anchors: on reverse momentum that can
       move the document back to a completed stack instead of continuing toward the top. */
    overflow-anchor: none;
    touch-action: pan-y;
  }
  .scroll-stack > .scroll-stack-hold,
  .scroll-stack > .scroll-stack-end,
  .scroll-stack > .scroll-stack-release {
    display: block;
    width: 100%;
    pointer-events: none;
  }
  .scroll-stack-end {
    height: 1px;
  }
  .scroll-stack-local {
    max-height: min(78vh, 720px);
    padding-right: 6px;
    overflow-x: visible;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .scroll-stack .scroll-stack-card {
    position: relative;
    top: auto;
    height: auto;
    transform-origin: top center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, filter;
    transition: var(--scroll-stack-transition, none);
  }
  .scroll-stack-native .scroll-stack-card {
    position: sticky;
    top: var(--scroll-stack-sticky-top, 9%);
  }
  .scroll-stack.scroll-stack-native .scroll-stack-card {
    position: sticky;
    top: var(--scroll-stack-sticky-top, 0px);
    transform-style: flat;
    backface-visibility: visible;
    will-change: auto;
    transition: none !important;
  }
  .scroll-stack.scroll-stack-native.scroll-stack-released .scroll-stack-card {
    position: relative;
    top: auto;
  }
  .scroll-stack .scroll-stack-card.mobile-stack-release-hidden {
    opacity: 0 !important;
    pointer-events: none;
  }
  .test-grid .test-card,
  .values-grid .value-card {
    min-height: 270px;
  }
  .scroll-stack-card {
    box-shadow: var(--stack-shadow);
  }
  .test-actions {
    margin-top: 96px;
  }
  .project-actions {
    margin-top: 96px;
  }
  .proj-card.mobile-stack-active .proj-img img {
    filter: grayscale(0) saturate(1) contrast(1);
  }
  body.insights-page .insights-stack-section .article-sm.mobile-stack-active .img img {
    filter: grayscale(0) saturate(1) contrast(1);
  }
  .proj-card {
    position: relative;
  }
  .proj-card::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red) center / 19px 19px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 12s3.5-6 9.5-6 9.5 6 9.5 6-3.5 6-9.5 6-9.5-6-9.5-6Z' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='2.6' fill='white'/%3E%3C/svg%3E");
    box-shadow: none;
    pointer-events: none;
  }
  .proj-card .badge-row {
    min-height: 30px;
    align-items: center;
    padding-right: 48px;
  }
  .proj-card .badge-row-compact {
    gap: 4px;
    padding-right: 42px;
  }
  .proj-card .badge-row-compact .badge {
    padding-inline: 6px;
    font-size: 11px;
  }
  .faq-q {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 22px 18px;
    font-size: 18px;
    line-height: 25px;
  }
  .faq-q::after {
    width: 30px;
    height: 30px;
    font-size: 21px;
  }
  .faq-a {
    margin-left: 18px;
    margin-right: 18px;
  }
  .faq-item.open .faq-a {
    padding: 0 0 18px;
  }
  .contact-form-wrap {
    gap: 28px;
  }
  .contact-form {
    padding: 28px 20px;
    border-radius: 18px;
  }
  .contact-form .btn-submit {
    height: 54px;
  }
  .cta-block {
    border-radius: 18px;
    padding: 42px 20px;
  }
  .cta-block .btn-row {
    flex-direction: column;
  }
  .cta-block .btn {
    width: min(100%, 300px);
    justify-content: center;
  }
  .footer-shell { padding: 28px 0 0; }
}

/* TABLET LAYOUT PASS
   Keep iPad-sized screens visually closer to desktop while preserving
   readable card widths and the dedicated phone layouts below 640px. */
@media (min-width: 641px) and (max-width: 900px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .trust-strip {
    padding: 54px 0 66px;
  }

  .trust-stats,
  .about-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: calc(100vw - 48px);
  }

  .trust-stats .stat,
  .about-stats .stat {
    min-width: 0;
    min-height: 176px;
    padding: 28px 14px 24px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .trust-stats .stat:first-child,
  .about-stats .stat:first-child {
    border-left: 0;
  }

  .trust-stats button.stat-link {
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .trust-stats .num,
  .about-stats .num {
    min-height: 2.08em;
    font-size: clamp(28px, 4.6vw, 40px);
    line-height: 1;
    white-space: nowrap;
  }

  .trust-stats .lbl,
  .about-stats .lbl {
    margin-top: 10px;
    font-size: 9px;
    line-height: 1.38;
    letter-spacing: 0.045em;
    overflow-wrap: anywhere;
  }

  .cap-grid,
  .why-grid,
  .test-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cap-card,
  .why-card,
  .test-card {
    min-width: 0;
    padding: 24px 20px;
  }

  .cap-card h3,
  .why-card h3 {
    font-size: 18px;
    line-height: 25px;
  }

  .cap-card p,
  .why-card > p,
  .test-card .quote {
    font-size: 14px;
    line-height: 22px;
  }

  .values-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
  }

  .values-grid .value-card {
    grid-column: span 2;
  }

  .values-grid .value-card:nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .project-group-toolbar {
    padding: 10px;
  }

  .project-group-tabs {
    width: 100%;
    justify-content: center;
  }

  .project-group-tab {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
  }

  .footer-grid {
    column-gap: 36px;
    row-gap: 42px;
  }
}
