/* A quieter, more compact navigation bar that preserves the site's controls. */
:root {
  --quazm-primary: #0aa9b5;
  --quazm-dark: #082958;
  --quazm-light: #f2f8fa;
  --quazm-body: #4d6170;
  --blue: #0c3b78;
  --navy: #082958;
  --ink: #082958;
  --muted: #5e707e;
  --line: #d7e3e9;
}

body,
body * {
  font-family: Roboto !important;
  font-weight: normal !important;
}

body h2,
body h2 em {
  font-family: Roboto !important;
  font-weight: 300 !important;
}

.hero h1,
.hero h1 em {
  color: #0aa9b5 !important;
  font-family: Roboto !important;
  font-weight: 300 !important;
}

.team-section .member-card,
.team-section .member-card * {
  font-weight: normal !important;
}

.member-strengths {
  flex-wrap: nowrap;
  gap: 5px;
}

.hero-focus span,
.case-tags span,
.role-tags span,
.company-roles span,
.member-strengths span,
.agent-capabilities span {
  font-size: 12px;
}

.hero-focus span {
  font-size: 14px;
}

.hero-focus span:nth-child(3) {
  text-transform: none;
}

.hero-focus {
  position: relative;
  top: 55px;
}

.hero {
  background: url("/hero-background.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgb(0 0 0 / 70%);
  pointer-events: none;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  top: -50px;
}

.eyebrow {
  position: relative;
  top: -20px;
}

.hero-circle-button {
  width: 54.4px;
  height: 54.4px;
  position: relative;
  top: 30px;
}

.hero-circle-button svg {
  width: 19.2px;
  height: 19.2px;
}

.hero-circle-button::before {
  inset: -7.2px;
}

.hero-stats span {
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: nowrap;
}

.hero-stats span br {
  display: none;
}

@media (width >= 761px) {
  .hero-stats {
    left: 50%;
    right: auto;
    width: 1000px;
    max-width: calc(100% - 48px);
    transform: translateX(-50%);
  }

  .hero-stats > div + div {
    border-left: 1px solid #ffffff2e;
    padding-left: 36px;
  }
}

.member-strengths span {
  white-space: nowrap;
  padding: 6px 7px;
}

.certifications-dialog-trigger {
  color: #ffffff;
  cursor: pointer;
  background: var(--quazm-primary);
  border: 1px solid var(--quazm-primary);
  border-radius: 0;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.certifications-dialog-trigger:hover,
.certifications-dialog-trigger:focus-visible {
  color: #ffffff;
  background: var(--quazm-dark);
  border-color: var(--quazm-dark);
  transform: translateY(-1px);
}

.certifications-dialog-trigger:focus-visible,
.certifications-dialog-close:focus-visible {
  outline: 2px solid var(--quazm-primary);
  outline-offset: 3px;
}

.certifications-dialog-open {
  overflow: hidden;
}

.certifications-dialog-backdrop {
  z-index: 200;
  background: #071d3280;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.certifications-dialog {
  background: #ffffff;
  border: 1px solid #d7e3e9;
  border-radius: 14px;
  width: min(760px, 100%);
  max-height: min(800px, calc(100vh - 48px));
  padding: 32px;
  overflow: auto;
  box-shadow: 0 28px 80px #08295840;
}

.certifications-dialog-header {
  border-bottom: 1px solid #d7e3e9;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  display: flex;
}

.certifications-dialog-header > div > span {
  color: var(--quazm-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.certifications-dialog h2 {
  color: var(--quazm-dark);
  margin: 7px 0 0;
  font-size: 32px !important;
  line-height: 1.12 !important;
  white-space: normal;
}

.certifications-dialog-close {
  color: var(--quazm-dark);
  cursor: pointer;
  background: #f2f8fa;
  border: 1px solid #d7e3e9;
  border-radius: 7px;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.certifications-dialog-close:hover {
  color: #ffffff;
  background: var(--quazm-primary);
  border-color: var(--quazm-primary);
}

.certifications-dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.certifications-dialog-count {
  color: var(--quazm-body);
  margin: 22px 0 12px;
  font-size: 14px;
}

.certifications-dialog-list {
  border-top: 1px solid #d7e3e9;
  list-style: none;
  margin: 0;
  padding: 0;
}

.certifications-dialog-list li {
  border-bottom: 1px solid #e8eff2;
  grid-template-columns: 34px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  line-height: 1.45;
  display: grid;
}

.certifications-dialog-list li > span:first-child {
  color: var(--quazm-primary);
  font-size: 11px;
  font-weight: 700;
}

@media (width <= 700px) {
  .member-strengths {
    gap: 4px;
  }

  .member-strengths span {
    padding: 5px 4px;
    letter-spacing: -0.02em;
  }

  .certifications-dialog-backdrop {
    align-items: end;
    padding: 10px;
  }

  .certifications-dialog {
    border-radius: 14px 14px 8px 8px;
    max-height: calc(100vh - 20px);
    padding: 24px 20px;
  }

  .certifications-dialog h2 {
    font-size: 26px !important;
  }
}

h2,
h2 em {
  font-weight: normal !important;
}

h2 {
  font-size: 45px !important;
  line-height: 1.08 !important;
}

.site-header {
  height: 58px;
  padding-inline: max(4vw, 24px);
  box-shadow: 0 3px 16px #08122012;
}

.brand {
  width: 54px;
  min-width: 54px;
  height: 44px;
}

.brand img {
  display: block;
  max-width: none;
  object-fit: contain;
  width: 60px;
  height: 60px;
  transform: scale(1.28);
}

.header-tagline {
  color: var(--ai-navy, #082958);
  letter-spacing: 0.01em;
  border-left: 1px solid var(--ai-border, #d5e6ed);
  margin-left: 16px;
  padding: 2px 0 2px 18px;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
}

.header-contact {
  display: flex;
  align-items: center;
  height: 36px;
  gap: 6px;
  margin-right: 54px;
}

.header-contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  line-height: 1;
}

.header-contact a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  height: 36px;
  padding-inline: 12px;
  border-radius: 6px;
  font-size: 13px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.header-contact svg {
  display: block;
  flex: none;
  color: currentColor;
  width: 15px;
  height: 15px;
  transition: color 180ms ease, transform 180ms ease;
}

.header-contact .contact-filled-icon {
  fill: currentColor;
  stroke: none;
}

.header-contact a::before {
  display: none;
}

.header-contact a:hover,
.header-contact a:focus-visible {
  transform: translateY(-1px);
}

.header-contact a:hover svg,
.header-contact a:focus-visible svg {
  transform: scale(1.08);
}

.header-contact a:focus-visible {
  outline: 2px solid #0088dc;
  outline-offset: 2px;
}

.header-contact a:nth-child(1):hover,
.header-contact a:nth-child(1):focus-visible,
.header-contact a:nth-child(2):hover,
.header-contact a:nth-child(2):focus-visible,
.header-contact a:nth-child(3):hover,
.header-contact a:nth-child(3):focus-visible {
  border-color: transparent;
  box-shadow: 0 8px 18px #08295812;
}

.header-contact a:nth-child(1) {
  color: #0877aa;
  background: #e5f5ff;
  border: 1px solid #bee5fa;
}

.header-contact a:nth-child(1):hover,
.header-contact a:nth-child(1):focus-visible {
  color: #05638e;
  background: #d4eeff;
  border-color: #9bd8f7;
}

.header-contact a:nth-child(2) {
  color: #177a64;
  background: #e7f8f0;
  border: 1px solid #c3ead9;
}

.header-contact a:nth-child(2):hover,
.header-contact a:nth-child(2):focus-visible {
  color: #126950;
  background: #d4f2e3;
  border-color: #a5ddc5;
}

.header-contact a:nth-child(3) {
  color: #6255b4;
  background: #f0edff;
  border: 1px solid #d8d1fa;
}

.header-contact a:nth-child(3):hover,
.header-contact a:nth-child(3):focus-visible {
  color: #5144a5;
  background: #e6e1ff;
  border-color: #c7bcf6;
}

.header-contact a:nth-child(1):hover svg,
.header-contact a:nth-child(1):focus-visible svg {
  color: #045477;
}

.header-contact a:nth-child(2):hover svg,
.header-contact a:nth-child(2):focus-visible svg {
  color: #0d5a45;
}

.header-contact a:nth-child(3):hover svg,
.header-contact a:nth-child(3):focus-visible svg {
  color: #44368f;
}

.menu-button {
  color: #0a7180;
  background: #e2f5f5;
  border: 1px solid #b9e3e4;
  width: 36px;
  height: 36px;
  top: 11px;
  box-shadow: none;
}

.menu-button:hover {
  color: #075e6b;
  background: #d0eeee;
  border-color: #96d5d8;
}

.hero-pointer-glow {
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at center,
    #5fe1e438 0,
    #0aa9b51c 30%,
    transparent 70%
  );
  border-radius: 50%;
  width: 440px;
  height: 440px;
  position: absolute;
  top: var(--hero-pointer-y, 50%);
  left: var(--hero-pointer-x, 50%);
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-pointer-active .hero-pointer-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  .hero-pointer-glow {
    display: none;
  }
}

.site-header {
  height: 68px;
}

.menu-button {
  top: 16px;
}

@media (width <= 760px) {
  .site-header {
    height: 66px;
  }

  .menu-button {
    top: 16px;
  }
}

@media (width <= 440px) {
  .menu-button {
    top: 17px;
  }
}

/* Compact visual portfolio for Case Studies; detail remains in the popup. */
.work .case-content > p,
.work .case-outcome,
.work .case-tags {
  display: none;
}

.work .case-card {
  border-color: #e1eaed;
}

.work .case-image {
  height: 150px;
}

.work .case-content {
  min-height: 142px;
  height: 100%;
  padding: 16px;
  flex-direction: column;
  position: relative;
}

.work .case-category {
  letter-spacing: 0.07em;
  font-size: 9px;
}

.work .case-content h3 {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.2;
}

.work .case-open {
  color: #0a6470;
  border-top: 0;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 0;
  font-size: 11px;
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

.work .case-open svg {
  width: 14px;
  height: 14px;
}

@media (width >= 1280px) {
  .work .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .work .case-image {
    height: 220px;
  }

  .work .case-content {
    min-height: 238px;
    padding: 18px;
  }

  .work .case-content h3 {
    font-size: 21px;
  }
}

@media (width >= 701px) and (width <= 1279px) {
  .work .case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (width <= 700px) {
  .work .case-card {
    min-height: 0;
  }

  .work .case-image {
    height: 175px;
  }

  .work .case-content {
    min-height: 124px;
    padding: 18px;
  }

  .work .case-content h3 {
    font-size: 19px;
  }
}

/* Equalized content tracks keep the six-story row visually precise. */
.work .case-card {
  display: flex !important;
  flex-direction: column;
}

.work .case-content {
  flex: 1;
  height: auto;
  min-height: 184px;
  padding: 18px;
  display: flex !important;
  flex-direction: column !important;
}

.work .case-category {
  min-height: 30px;
}

.work .case-content h3 {
  min-height: 62px;
  margin-bottom: 14px;
}

.work .case-open {
  align-self: stretch;
  margin-top: auto;
  padding-top: 8px;
  position: static;
}

@media (width >= 1280px) {
  .work .case-card {
    min-height: 458px;
  }

  .work .case-image {
    height: 220px;
  }

  .work .case-content {
    min-height: 238px;
    padding: 18px;
  }
}

@media (width <= 700px) {
  .work .case-content {
    min-height: 162px;
  }

  .work .case-content h3 {
    min-height: 0;
  }
}

@media (width <= 760px) {
  .menu-button {
    width: 34px;
    height: 34px;
    top: 11px;
  }
}

@media (width <= 440px) {
  .menu-button {
    width: 31px;
    height: 31px;
    top: 12px;
  }
}

.work .case-content .case-open {
  justify-content: flex-end !important;
}

.work .case-card-clickable {
  cursor: pointer;
}

.work .case-card-clickable:focus-visible {
  border-color: var(--quazm-primary);
  outline: 2px solid #0aa9b555;
  outline-offset: 3px;
}

.work .case-card-clickable .case-open {
  display: none;
}

.work .case-grid {
  gap: 20px !important;
}

.work .case-card:nth-child(1) {
  border-color: #cfe8f5;
}

.work .case-card:nth-child(1) .case-content {
  background: #f2faff;
}

.work .case-card:nth-child(2) {
  border-color: #e1d8f7;
}

.work .case-card:nth-child(2) .case-content {
  background: #faf8ff;
}

.work .case-card:nth-child(3) {
  border-color: #cfeee3;
}

.work .case-card:nth-child(3) .case-content {
  background: #f3fcf8;
}

.work .case-card:nth-child(4) {
  border-color: #f0dfc2;
}

.work .case-card:nth-child(4) .case-content {
  background: #fffbf4;
}

.work .case-card:nth-child(5) {
  border-color: #f2d8df;
}

.work .case-card:nth-child(5) .case-content {
  background: #fff7f9;
}

.work .case-card:nth-child(6) {
  border-color: #d9e0f6;
}

.work .case-card:nth-child(6) .case-content {
  background: #f7f9ff;
}

/* Final responsive pass for tablet, phone, and compact-phone layouts. */
@media (width <= 1024px) {
  .site-header {
    padding-inline: 24px;
  }

  .hero {
    padding-right: 32px;
    padding-left: 32px;
  }

  .hero h1 {
    font-size: clamp(48px, 7.5vw, 72px);
  }

  .hero-copy {
    max-width: 720px;
    font-size: 16px;
  }

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

  .work .case-image {
    height: 190px !important;
  }

  .work .case-content {
    min-height: 158px !important;
  }

  .work .case-content h3 {
    min-height: 0 !important;
    font-size: 20px;
  }
}

@media (width <= 700px) {
  .site-header {
    padding-inline: 14px;
  }

  .section,
  .capability-strip,
  .expertise-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    min-height: 100svh;
    padding: 96px 16px 36px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 54px);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stats span {
    white-space: normal;
    font-size: 13px;
  }

  .work .case-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .work .case-image {
    height: 170px !important;
  }

  .work .case-content {
    min-height: 92px !important;
    padding: 16px;
  }

  .work .case-content h3 {
    font-size: 19px;
  }

  .case-modal,
  .team-work-dialog,
  .certifications-dialog {
    width: 100%;
    max-height: calc(100svh - 20px);
  }

  .case-modal-body,
  .team-work-dialog,
  .certifications-dialog {
    overscroll-behavior: contain;
  }
}

@media (width <= 390px) {
  .header-contact {
    gap: 3px;
    margin-right: 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px !important;
  }

  .hero-copy,
  .work-intro p,
  .agents-intro > p,
  .team-intro p,
  .experience-intro p {
    font-size: 13px;
  }

  .work .case-content {
    min-height: 124px !important;
  }
}

.work .case-open {
  justify-content: flex-end;
  margin-top: 0px;
  padding-top: 10px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .header-contact a,
  .header-contact svg,
  .header-contact a::before {
    transition: none;
  }

  .header-contact a:hover,
  .header-contact a:focus-visible,
  .header-contact a:hover svg,
  .header-contact a:focus-visible svg {
    transform: none;
  }
}

.menu-button {
  width: 40px;
  height: 40px;
  top: 9px;
  right: max(4vw, 24px);
  border-radius: 6px;
}

.menu-button svg {
  width: 23px;
  height: 23px;
}

@media (width <= 760px) {
  .site-header {
    height: 56px;
    padding-inline: max(12px, env(safe-area-inset-left));
  }

  .brand {
    width: 46px;
    min-width: 46px;
    height: 40px;
  }

  .brand img {
    width: 35px;
    height: 35px;
    transform: scale(1.25);
  }

  .header-tagline {
    margin-left: 10px;
    padding-left: 12px;
    font-size: 14px;
  }

  .header-contact {
    gap: 5px;
    margin-right: 50px;
  }

  .header-contact a {
    width: 34px;
    height: 34px;
    padding: 0;
  }

  .header-contact a span {
    display: none;
  }

  .menu-button {
    width: 38px;
    height: 38px;
    top: 9px;
    right: max(12px, env(safe-area-inset-right));
  }
}

@media (width <= 620px) {
  .header-tagline {
    display: none;
  }
}

@media (width <= 440px) {
  .header-contact {
    gap: 4px;
    margin-right: 46px;
  }

  .header-contact a {
    width: 31px;
    height: 31px;
  }
}

/* Responsive safeguards for compact screens and touch interaction. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg {
  max-width: 100%;
}

@media (width <= 760px) {
  h2 {
    font-size: clamp(32px, 9vw, 40px) !important;
    line-height: 1.12 !important;
  }

  .nav {
    width: min(340px, 100%);
    padding: 24px 22px 30px;
  }

  .nav-links a {
    grid-template-columns: 30px 1fr;
    padding: 12px 0;
    font-size: clamp(21px, 7vw, 28px);
  }

  .nav-top {
    padding-bottom: 16px;
  }

  .hero {
    padding-top: 96px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.5vw, 58px);
    line-height: 1.04;
  }

  .hero-stats {
    gap: 0;
  }

  .hero-stats div {
    min-width: 0;
  }

  .hero-stats strong {
    min-width: 52px;
  }

  .hero-stats span {
    font-size: clamp(12px, 3.8vw, 15px);
  }

  .capability,
  .case-card,
  .agent-card,
  .member-card,
  .experience-company {
    min-width: 0;
  }

  .case-modal,
  .certifications-dialog {
    overscroll-behavior: contain;
  }
}

@media (width <= 760px) {
  .hero-focus {
    display: none !important;
  }
}

@media (width <= 440px) {
  .member-strengths {
    gap: 3px;
  }

  .member-strengths span {
    padding: 5px 3px;
    font-size: clamp(8px, 2.7vw, 10px);
  }

  .hero-focus {
    gap: 6px;
  }

  .hero-focus span,
  .case-tags span,
  .role-tags span,
  .company-roles span,
  .agent-capabilities span {
    padding-inline: 7px;
    font-size: 10px;
  }
}

/* Device-specific layout guardrails. */
@media (width >= 761px) and (width <= 1100px) {
  .section,
  .capability-strip {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero {
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-content,
  .hero-copy {
    max-width: 100%;
  }
}

@media (width <= 760px) {
  .hero {
    min-height: 100svh;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-content,
  .about-content,
  .case-content,
  .member-content,
  .experience-company,
  .agent-card {
    min-width: 0;
  }

  .section,
  .capability-strip,
  .expertise-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .case-open,
  .nav-links a,
  .header-contact a,
  .menu-button,
  .hero-circle-button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

@media (width <= 380px) {
  .section,
  .capability-strip,
  .expertise-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-stats span {
    font-size: 11px;
  }

  .member-strengths span {
    font-size: 8px;
  }
}

.agent-secured-area {
  position: relative;
}

.agents-gated .agent-flow {
  filter: grayscale(0.85) blur(1px);
  opacity: 0.24;
  pointer-events: none;
  user-select: none;
}

.agent-access-gate {
  z-index: 2;
  background: #08295826;
  place-items: center;
  padding: 32px 24px;
  display: grid;
  position: absolute;
  inset: 0;
}

.agent-access-card {
  color: var(--quazm-dark);
  background: #ffffff;
  border: 1px solid #d3e2e6;
  border-radius: 12px;
  width: min(530px, 100%);
  padding: 32px;
  box-shadow: 0 22px 60px #08295830;
}

.agent-access-kicker {
  color: var(--quazm-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.agent-access-card h3 {
  color: var(--quazm-dark);
  letter-spacing: -0.035em;
  margin: 10px 0 10px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.1;
}

.agent-access-card > p:not(.agent-access-status):not(.agent-access-note) {
  color: var(--quazm-body);
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
}

.agent-access-card label {
  color: var(--quazm-dark);
  margin-bottom: 7px;
  font-size: 12px;
  display: block;
}

.agent-access-fields {
  gap: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.agent-access-fields input {
  color: var(--quazm-dark);
  background: #ffffff;
  border: 1px solid #b8ccd3;
  border-radius: 6px;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  font-size: 15px;
}

.agent-access-fields input:focus {
  border-color: var(--quazm-primary);
  outline: 2px solid #0aa9b533;
  outline-offset: 1px;
}

.agent-access-fields button {
  color: #ffffff;
  cursor: pointer;
  background: var(--quazm-primary);
  border: 1px solid var(--quazm-primary);
  border-radius: 6px;
  min-height: 46px;
  padding: 0 16px;
  font-size: 14px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.agent-access-fields button:hover {
  background: var(--quazm-dark);
  border-color: var(--quazm-dark);
  transform: translateY(-1px);
}

.agent-access-status {
  color: #bb3e3e;
  min-height: 18px;
  margin: 9px 0 0;
  font-size: 12px;
}

.agent-access-note {
  color: #6e808c;
  border-top: 1px solid #e1eaed;
  margin: 14px 0 0;
  padding-top: 14px;
  font-size: 11px;
  line-height: 1.5;
}

@media (width <= 760px) {
  .agent-access-gate {
    align-items: start;
    padding: 20px 14px;
  }

  .agent-access-card {
    padding: 24px 20px;
  }

  .agent-access-fields {
    grid-template-columns: 1fr;
  }

  .agent-access-fields button {
    width: 100%;
  }
}

/* Clean editorial treatment for the Case Studies collection. */
.work .case-grid {
  align-items: stretch;
  gap: 20px;
}

.work .case-card {
  border: 1px solid #dce7eb;
  border-radius: 8px;
  flex-direction: column;
  grid-row: auto;
  grid-template-rows: none;
  height: 100%;
  margin-bottom: 0;
  display: flex;
  box-shadow: none;
}

.work .case-card:hover {
  border-color: #87cbd0;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #08295812;
}

.work .case-image {
  height: 190px;
}

.work .case-image > span {
  color: #ffffff;
  background: #082958d9;
  border-color: #ffffff4d;
  border-radius: 5px;
  width: 34px;
  height: 34px;
  font-size: 11px;
  font-weight: normal;
  bottom: 14px;
  left: 14px;
}

.work .case-content {
  flex: 1;
  grid-row: auto;
  grid-template-rows: none;
  align-content: initial;
  padding: 22px;
  display: flex;
}

.work .case-category {
  color: var(--quazm-primary);
  letter-spacing: 0.09em;
  font-size: 11px;
  font-weight: normal;
}

.work .case-content h3 {
  color: #152737;
  min-height: 0;
  margin: 0px;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.22;
}

.work .case-content > p {
  color: #5b6b76;
  min-height: 0;
  font-size: 14px;
  line-height: 1.65;
}

.work .case-outcome {
  background: #f2f8f8;
  border-left: 2px solid var(--quazm-primary);
  border-radius: 0;
  min-height: 0;
  margin-top: 18px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.55;
}

.work .case-outcome strong {
  color: #287079;
  font-size: 10px;
  font-weight: normal;
}

.work .case-tags {
  gap: 5px;
  min-height: 0;
  margin-top: 14px;
}

.work .case-tags span {
  color: #48606c;
  background: #ffffff;
  border-color: #dce7eb;
  border-radius: 3px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: normal;
}

.work .case-open {
  color: #0a6470;
  border-top-color: #dce7eb;
  justify-content: flex-start;
  gap: 7px;
  margin-top: 0px;
  padding-top: 10px;
  font-size: 13px;
  font-weight: normal;
}

.work .case-open svg {
  width: 15px;
  height: 15px;
}

@media (width <= 1000px) {
  .work .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 700px) {
  .work .case-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .work .case-image {
    height: 180px;
  }

  .work .case-content {
    padding: 20px;
  }
}

.member-work-button {
  z-index: 5;
  color: #0a6470;
  cursor: pointer;
  background: #ffffffde;
  border: 1px solid #9fd0d4;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  margin: 0;
  padding: 0 9px;
  font-size: 11px;
  display: inline-flex;
  position: absolute;
  top: 16px;
  right: 16px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.member-work-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.member-work-button:hover,
.member-work-button:focus-visible {
  color: #ffffff;
  background: var(--quazm-primary);
  border-color: var(--quazm-primary);
  transform: translateY(-1px);
}

.member-work-button:hover svg,
.member-work-button:focus-visible svg {
  transform: translateX(3px);
}

.member-work-button:focus-visible,
.team-work-dialog-close:focus-visible {
  outline: 2px solid var(--quazm-primary);
  outline-offset: 3px;
}

.member-card:nth-child(2) .member-work-button {
  color: #6244bf;
  border-color: #cfc2f2;
}

.member-card:nth-child(3) .member-work-button {
  color: #18745f;
  border-color: #aadbcf;
}

.member-card:nth-child(2) .member-work-button:hover,
.member-card:nth-child(2) .member-work-button:focus-visible {
  color: #ffffff;
  background: #6244bf;
  border-color: #6244bf;
}

.member-card:nth-child(3) .member-work-button:hover,
.member-card:nth-child(3) .member-work-button:focus-visible {
  color: #ffffff;
  background: #18745f;
  border-color: #18745f;
}

.team-work-dialog-open {
  overflow: hidden;
}

.team-work-dialog-backdrop {
  z-index: 220;
  background: #061b3080;
  place-items: center;
  padding: 24px;
  display: grid;
  position: fixed;
  inset: 0;
}

.team-work-dialog {
  --member-accent: #0aa9b5;
  background: #ffffff;
  border: 1px solid #d7e3e9;
  border-radius: 14px;
  width: min(900px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  padding: clamp(30px, 5vw, 52px);
  overflow: auto;
  position: relative;
  box-shadow: 0 28px 90px #061b3042;
}

.team-work-prutha {
  --member-accent: #7051c8;
}

.team-work-raghav {
  --member-accent: #18836d;
}

.team-work-dialog-close {
  color: #173040;
  cursor: pointer;
  background: #f3f8f9;
  border: 1px solid #d7e3e9;
  border-radius: 6px;
  place-items: center;
  width: 42px;
  height: 42px;
  display: grid;
  position: absolute;
  top: 22px;
  right: 22px;
}

.team-work-dialog-close:hover {
  color: #ffffff;
  background: var(--member-accent);
  border-color: var(--member-accent);
}

.team-work-dialog-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.team-work-dialog-header {
  border-bottom: 1px solid #d7e3e9;
  padding: 0 52px 28px 0;
}

.team-work-dialog-header > span {
  color: var(--member-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.team-work-dialog h2 {
  color: #142b3a;
  letter-spacing: -0.045em;
  margin: 9px 0 7px;
  font-size: clamp(32px, 4vw, 46px) !important;
  line-height: 1.08 !important;
}

.team-work-dialog-header > p {
  color: var(--member-accent);
  margin: 0;
  font-size: 14px;
}

.team-work-dialog-intro {
  color: #5d707c !important;
  max-width: 640px;
  margin-top: 18px !important;
  font-size: 16px !important;
  line-height: 1.65;
}

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

.team-work-area {
  background: #f5fafb;
  border: 1px solid #dce7eb;
  border-top: 3px solid var(--member-accent);
  min-height: 220px;
  padding: 20px;
}

.team-work-area > span {
  color: var(--member-accent);
  letter-spacing: 0.1em;
  font-size: 11px;
}

.team-work-area h3 {
  color: #193143;
  letter-spacing: -0.025em;
  margin: 38px 0 10px;
  font-size: 20px;
  line-height: 1.15;
}

.team-work-area p {
  color: #5d707c;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

@media (width <= 700px) {
  .member-work-button {
    top: 14px;
    right: 14px;
  }

  .team-work-dialog-backdrop {
    align-items: end;
    padding: 10px;
  }

  .team-work-dialog {
    border-radius: 14px 14px 8px 8px;
    max-height: calc(100vh - 20px);
    padding: 30px 20px;
  }

  .team-work-dialog-close {
    top: 16px;
    right: 16px;
  }

  .team-work-dialog-header {
    padding-right: 45px;
  }

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

  .team-work-area {
    min-height: 0;
  }

  .team-work-area h3 {
    margin-top: 20px;
  }
}

.learning .section-label {
  width: 100%;
}

.learning-awards {
  color: var(--quazm-primary);
  background: transparent;
  border: 1px solid var(--quazm-primary);
  border-radius: 8px;
  box-shadow: none;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.02em;
  margin-left: auto;
  padding: 11px 15px;
  font-size: 15px;
  line-height: 1.25;
  text-transform: none;
  display: inline-flex;
}

.learning-awards svg {
  flex: none;
  width: 18px;
  height: 18px;
  stroke-width: 2.1px;
}

.nav-links a {
  column-gap: 14px;
  font-family: Roboto !important;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 300 !important;
}

.nav-links a + a {
  border-top: 1px solid #edf2f4;
}

.nav-links .nav-icon {
  color: var(--quazm-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  place-items: center;
  width: 32px;
  height: 32px;
  display: grid;
}

.nav-links .nav-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8px;
  width: 25px;
  height: 25px;
}

@media (width <= 700px) {
  .learning .section-label {
    align-items: flex-start;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .learning-awards {
    border: 0;
    width: 100%;
    margin-left: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* Final desktop sizing: enough room for two-line titles, no unused card height. */
@media (width >= 1280px) {
  .work .case-card {
    min-height: 0 !important;
  }

  .work .case-image {
    height: 180px !important;
  }

  .work .case-content {
    min-height: 98px !important;
  }

  .work .case-content h3 {
    min-height: 0px !important;
    font-family: Roboto !important;
    font-weight: 300 !important;
  }
}

@media (width >= 900px) {
  .hero-copy {
    max-width: 1100px;
    white-space: nowrap;
  }
}

@media (width <= 899px) {
  .hero-copy br {
    display: none;
  }
}

/* Fluid type scale for tablet and phone readability. */
@media (width <= 900px) {
  .hero h1 {
    font-size: clamp(44px, 8vw, 62px);
  }

  .hero-copy,
  .about-copy .lead,
  .work-intro p,
  .agents-intro > p,
  .team-intro p,
  .experience-intro p {
    font-size: 15px;
  }

  .case-content h3,
  .agent-card h3,
  .experience-company h3,
  .member-content h3 {
    font-size: 21px;
  }
}

@media (width <= 700px) {
  .section-label,
  .agents-intro > div > span,
  .capability-intro > span,
  .member-role,
  .case-category {
    font-size: 11px;
    letter-spacing: 0.09em;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-copy .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .about-copy p,
  .work-intro p,
  .agents-intro > p,
  .team-intro p,
  .experience-intro p,
  .case-content > p,
  .agent-card p,
  .member-content > p,
  .experience-company > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .case-content h3,
  .agent-card h3,
  .experience-company h3,
  .member-content h3 {
    font-size: 20px;
    line-height: 1.22;
  }

  .case-outcome,
  .role-tags span,
  .company-roles span {
    font-size: 12px;
  }

  .agent-stage-card p,
  .agent-stage-card strong,
  .member-work-button,
  .case-open {
    font-size: 12px;
  }

  .certifications-dialog-list li {
    font-size: 13px;
  }
}

@media (width <= 390px) {
  h2 {
    font-size: 30px !important;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-copy,
  .about-copy p,
  .work-intro p,
  .agents-intro > p,
  .team-intro p,
  .experience-intro p,
  .case-content > p,
  .agent-card p,
  .member-content > p,
  .experience-company > p {
    font-size: 13px;
  }

  .case-content h3,
  .agent-card h3,
  .experience-company h3,
  .member-content h3 {
    font-size: 19px;
  }

  .learning-awards {
    font-size: 12px;
  }
}

/* Keep the menu trigger level with the header contact controls. */
.menu-button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  top: 16px;
}

@media (width <= 760px) {
  .menu-button {
    width: 34px;
    height: 34px;
    top: 11px;
  }
}

@media (width <= 440px) {
  .menu-button {
    width: 31px;
    height: 31px;
    top: 12px;
  }
}

/* White menu panel with black type on every screen size. */
.nav,
.nav.open {
  background-color: var(--ai-surface-strong) !important;
  color: #111111 !important;
}

.nav-kicker,
.nav-links a,
.nav-close {
  color: #111111 !important;
}

.nav-top,
.nav-links a + a,
.nav-close {
  border-color: var(--ai-border) !important;
}

.nav-close {
  background: var(--ai-surface-strong) !important;
}

.nav-close:hover,
.nav-links a:hover {
  color: #0aa9b5 !important;
}

.case-modal-close,
.certifications-dialog-close,
.team-work-dialog-close,
.article-dialog-close,
.nav-close {
  z-index: 30 !important;
  color: #082958 !important;
  background: #ffffff !important;
  border: 1px solid #d7e3e9 !important;
}

.case-modal-close svg,
.certifications-dialog-close svg,
.team-work-dialog-close svg,
.article-dialog-close svg,
.nav-close svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2px !important;
}

@media (width <= 760px) {
  .nav-kicker {
    font-size: 18px !important;
  }

  .nav-links a {
    font-size: calc(clamp(15px, 1.7vw, 21px) + 2px) !important;
  }
}

/* Match the hero metrics to the wide cyan-to-violet reference panel. */
@media (width >= 761px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    max-width: none;
    min-height: clamp(48px, calc(5.2vw - 15px), 66px);
    bottom: 62px;
    padding: 0;
    overflow: hidden;
    background:
      linear-gradient(
        102deg,
        rgba(69, 183, 208, 0.3) 0%,
        rgba(56, 110, 168, 0.3) 40%,
        rgba(104, 76, 169, 0.3) 68%,
        rgba(158, 57, 201, 0.3) 100%
      );
    border: 1px solid rgba(103, 222, 244, 0.72);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow:
      0 18px 50px rgba(3, 11, 25, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .hero-stats > div {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 15px);
    min-width: 0;
    padding: 0 clamp(15px, 3.35vw, 53px);
  }

  .hero-stats > div + div {
    padding-left: clamp(15px, 3.35vw, 53px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-stats strong {
    min-width: auto;
    color: #ffffff;
    letter-spacing: -0.055em;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 700 !important;
    line-height: 1;
  }

  .hero-stats span {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    letter-spacing: -0.025em;
    font-size: clamp(11px, 1vw, 15px);
    font-weight: 400 !important;
    line-height: 1.25;
  }
}

@media (width >= 761px) and (width <= 1100px) {
  .hero-stats > div,
  .hero-stats > div + div {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero-stats span {
    white-space: normal;
  }
}

/* Consolidated responsive hardening for real viewport widths. */
body {
  min-width: 280px;
}

.hero-content,
.about-grid > *,
.experience-intro > *,
.learning-grid > *,
.team-intro > *,
.work-intro > *,
.agents-intro > *,
.expertise-heading > *,
.case-modal-overview > *,
.case-final-output > * {
  min-width: 0;
}

@media (width >= 761px) {
  .hero-stats {
    width: min(900px, calc(100% - clamp(32px, 5vw, 72px)));
    max-width: calc(100% - 32px);
  }
}

@media (width <= 760px) {
  .hero {
    min-height: 100svh;
    height: auto;
  }

  .hero h1 {
    width: 100%;
    white-space: normal;
    text-wrap: balance;
    font-size: clamp(34px, 10.7vw, 46px);
    overflow-wrap: normal;
  }

  .eyebrow {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    text-wrap: balance;
  }

  .hero-copy {
    text-wrap: pretty;
  }

  .hero-stats {
    max-width: 100%;
    overflow: hidden;
    background:
      linear-gradient(
        145deg,
        rgba(69, 183, 208, 0.3) 0%,
        rgba(56, 110, 168, 0.3) 42%,
        rgba(104, 76, 169, 0.3) 70%,
        rgba(158, 57, 201, 0.3) 100%
      );
    border: 1px solid rgba(103, 222, 244, 0.72);
    border-radius: 8px;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
    box-shadow:
      0 18px 50px rgba(3, 11, 25, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }

  .hero-stats div {
    border-top-color: rgba(255, 255, 255, 0.2);
  }

  .hero-stats strong {
    color: #ffffff;
    font-weight: 700 !important;
  }

  .hero-stats span {
    color: rgba(255, 255, 255, 0.94);
  }

  .hero-focus {
    display: none !important;
  }

  .member-strengths,
  .role-tags,
  .company-roles,
  .case-tags,
  .agent-capabilities {
    flex-wrap: wrap;
  }

  .member-strengths span,
  .role-tags span,
  .company-roles span,
  .case-tags span,
  .agent-capabilities span {
    white-space: normal;
  }

  .certifications-dialog-backdrop,
  .team-work-dialog-backdrop,
  .case-modal-backdrop {
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
  }

  .certifications-dialog,
  .team-work-dialog,
  .case-modal {
    max-height: calc(100dvh - 16px);
  }

  .certifications-dialog,
  .team-work-dialog,
  .case-modal-body,
  .case-modal-meta,
  .case-final-output {
    overflow-wrap: anywhere;
  }
}

@media (width <= 480px) {
  .about-collage {
    gap: 8px;
  }

  .mockup-metrics {
    grid-template-columns: 1fr;
  }

  .mockup-metrics > div {
    min-height: 64px;
  }

  .mockup-metrics span {
    font-size: 9px;
  }
}

@media (width <= 340px) {
  .site-header {
    padding-right: 8px;
    padding-left: 8px;
  }

  .brand {
    width: 40px;
    min-width: 40px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .header-contact {
    gap: 3px;
    margin-right: 40px;
  }

  .header-contact a,
  .menu-button {
    width: 30px;
    height: 30px;
  }

  .menu-button {
    right: 8px;
  }

  .header-contact svg {
    width: 14px;
    height: 14px;
  }

  .hero {
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 34px);
  }

  .eyebrow {
    font-size: 14px;
  }

  .hero-stats {
    padding-right: 12px;
    padding-left: 12px;
  }
}

/* Keep mobile navigation scrolling inside the drawer, not behind it. */
.nav {
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

@media (width <= 760px) {
  .nav,
  .nav.open {
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .nav-links {
    flex: 0 0 auto;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .menu-backdrop.open {
    touch-action: none;
  }
}

/* AI visual theme: luminous signals, neural grids, and glass-like surfaces. */
:root {
  --ai-cyan: #0aa9b5;
  --ai-electric: #009fff;
  --ai-violet: #7357e8;
  --ai-navy: #082958;
  --ai-ink: #07182f;
  --ai-surface: #f5f9fc;
  --ai-surface-strong: #ffffff;
  --ai-border: #d5e6ed;
  --ai-grid: #0a71800d;
  --ai-glow-cyan: #0aa9b51f;
  --ai-glow-blue: #009fff17;
  --ai-glow-violet: #7357e817;
  --ai-shadow: #08295814;
}

body {
  background: var(--ai-surface);
}

.expertise-section,
.experience,
.work,
.agents-section,
.team-section,
.learning {
  background-color: var(--ai-surface);
  background-image:
    radial-gradient(circle at 8% 12%, var(--ai-glow-cyan), transparent 24%),
    radial-gradient(circle at 92% 84%, var(--ai-glow-violet), transparent 26%),
    linear-gradient(var(--ai-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ai-grid) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    40px 40px,
    40px 40px;
}

.about,
.experience,
.team-section {
  background-color: var(--ai-surface-strong);
}

h2 em {
  color: transparent !important;
  background: linear-gradient(100deg, var(--ai-cyan), var(--ai-electric) 52%, var(--ai-violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.section-label {
  position: relative;
}

.section-label::after {
  content: "";
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--ai-cyan),
    var(--ai-electric) 42%,
    var(--ai-violet) 72%,
    transparent
  );
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
}

.section-label > span:first-child,
.agents-intro > div > span,
.capability-intro > span,
.modal-label {
  color: var(--ai-cyan);
  text-shadow: 0 0 18px var(--ai-glow-cyan);
}

.tool-band {
  background:
    linear-gradient(110deg, var(--ai-surface-strong), var(--ai-surface)),
    var(--ai-surface-strong);
  border-color: var(--ai-border);
  box-shadow: inset 0 1px var(--ai-surface-strong);
}

.tool-band span {
  color: var(--ai-navy);
}

.expertise-section .skill,
.experience-company,
.work .case-card,
.agent-stage-card,
.agent-flow .agent-card,
.member-card,
.education,
.certifications {
  background-color: color-mix(in srgb, var(--ai-surface-strong) 94%, transparent);
  border-color: var(--ai-border);
  box-shadow:
    0 10px 28px var(--ai-shadow),
    inset 0 1px var(--ai-surface-strong);
}

.expertise-section .skill,
.experience-company,
.work .case-card,
.agent-stage-card,
.agent-flow .agent-card,
.member-card {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.expertise-section .skill:hover,
.experience-company:hover,
.work .case-card:hover,
.agent-stage-card:hover,
.agent-flow .agent-card:hover,
.member-card:hover {
  border-color: color-mix(in srgb, var(--ai-cyan) 45%, var(--ai-border));
  transform: translateY(-5px);
  box-shadow:
    0 18px 42px var(--ai-shadow),
    0 0 0 3px var(--ai-glow-cyan),
    0 0 38px var(--ai-glow-blue);
}

.expertise-section .skill > span,
.company-mark,
.stage-icon,
.agent-icon {
  filter: drop-shadow(0 6px 12px var(--ai-glow-cyan));
}

.expertise-section .skill svg,
.case-open svg,
.learning-awards svg {
  color: var(--ai-cyan);
}

.education,
.certifications {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.degree::before {
  box-shadow:
    0 0 0 5px var(--ai-glow-cyan),
    0 0 18px var(--ai-glow-blue);
}

.nav {
  background-color: var(--ai-surface-strong) !important;
  background-image: none;
}

.nav .nav-kicker,
.nav .nav-links a {
  color: #111111 !important;
}

.nav .nav-top,
.nav .nav-links a + a {
  border-color: var(--ai-border) !important;
}

.nav .nav-close {
  color: #111111 !important;
  background: var(--ai-surface-strong) !important;
  border-color: var(--ai-border) !important;
}

.nav .nav-close:hover,
.nav .nav-links a:hover {
  color: var(--ai-cyan) !important;
}

.nav-links .nav-icon {
  color: #111111;
  filter: none;
}

.case-modal,
.certifications-dialog,
.team-work-dialog,
.agent-access-card {
  border-color: var(--ai-border);
  box-shadow:
    0 30px 90px color-mix(in srgb, var(--ai-ink) 28%, transparent),
    0 0 48px var(--ai-glow-blue);
}

@media (width <= 760px) {
  .expertise-section,
  .experience,
  .work,
  .agents-section,
  .team-section,
  .learning {
    background-size:
      auto,
      auto,
      28px 28px,
      28px 28px;
  }
}

@media (hover: none) {
  .expertise-section .skill:hover,
  .experience-company:hover,
  .work .case-card:hover,
  .agent-stage-card:hover,
  .agent-flow .agent-card:hover,
  .member-card:hover {
    transform: none;
  }
}

/* Complete portfolio footer. */
.portfolio-footer {
  color: var(--ai-surface-strong);
  background:
    radial-gradient(circle at 8% 10%, var(--ai-glow-cyan), transparent 28%),
    radial-gradient(circle at 92% 82%, var(--ai-glow-violet), transparent 30%),
    linear-gradient(var(--ai-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ai-grid) 1px, transparent 1px),
    var(--ai-ink);
  background-size:
    auto,
    auto,
    38px 38px,
    38px 38px,
    auto;
  padding: 0 max(24px, calc((100vw - 1500px) / 2)) 30px;
  position: relative;
  overflow: hidden;
}

.portfolio-footer::before {
  content: "";
  background: linear-gradient(90deg, var(--ai-cyan), var(--ai-electric), var(--ai-violet));
  height: 2px;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.portfolio-footer-inner {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
}

.portfolio-footer-top svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: none;
  width: 18px;
  height: 18px;
}

.portfolio-footer-links {
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 16px;
  padding: clamp(40px, 5vw, 64px) 0;
  display: grid;
}

.portfolio-footer-links > div {
  align-content: start;
  gap: 0;
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--ai-surface-strong) 8%, transparent),
      color-mix(in srgb, var(--ai-surface-strong) 2%, transparent)
    );
  border: 1px solid color-mix(in srgb, var(--ai-surface-strong) 12%, transparent);
  border-radius: 12px;
  min-height: 238px;
  padding: 26px 28px 22px;
  display: grid;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px color-mix(in srgb, var(--ai-surface-strong) 8%, transparent);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.portfolio-footer-links > div::after {
  content: "";
  background: radial-gradient(circle, var(--ai-cyan), transparent 68%);
  width: 120px;
  height: 120px;
  position: absolute;
  top: -72px;
  right: -62px;
  opacity: 0.16;
  pointer-events: none;
}

.portfolio-footer-links > div:nth-child(2)::after {
  background: radial-gradient(circle, var(--ai-electric), transparent 68%);
}

.portfolio-footer-links > div:nth-child(3) {
  background:
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--ai-electric) 14%, transparent),
      color-mix(in srgb, var(--ai-violet) 9%, transparent)
    );
  border-color: color-mix(in srgb, var(--ai-electric) 28%, transparent);
}

.portfolio-footer-links > div:nth-child(3)::after {
  background: radial-gradient(circle, var(--ai-violet), transparent 68%);
}

@media (hover: hover) {
  .portfolio-footer-links > div:hover {
    background:
      linear-gradient(
        145deg,
        color-mix(in srgb, var(--ai-surface-strong) 11%, transparent),
        color-mix(in srgb, var(--ai-surface-strong) 4%, transparent)
      );
    border-color: color-mix(in srgb, var(--ai-cyan) 34%, transparent);
    transform: translateY(-3px);
  }

  .portfolio-footer-links > div:nth-child(3):hover {
    background:
      linear-gradient(
        145deg,
        color-mix(in srgb, var(--ai-electric) 19%, transparent),
        color-mix(in srgb, var(--ai-violet) 12%, transparent)
      );
  }
}

.portfolio-footer-links h3 {
  color: var(--ai-cyan);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid color-mix(in srgb, var(--ai-surface-strong) 12%, transparent);
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding-bottom: 18px;
  font-size: 11px;
  font-weight: 400 !important;
  display: flex;
}

.portfolio-footer-links h3::before {
  color: var(--ai-surface-strong);
  background: color-mix(in srgb, var(--ai-cyan) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--ai-cyan) 34%, transparent);
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  font-size: 9px;
  display: grid;
}

.portfolio-footer-links > div:nth-child(1) h3::before {
  content: "01";
}

.portfolio-footer-links > div:nth-child(2) h3::before {
  content: "02";
}

.portfolio-footer-links > div:nth-child(3) h3::before {
  content: "03";
}

.portfolio-footer-links a {
  color: color-mix(in srgb, var(--ai-surface-strong) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ai-surface-strong) 7%, transparent);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  transition: color 160ms ease, padding 160ms ease;
}

.portfolio-footer-links a:last-child {
  border-bottom: 0;
}

.portfolio-footer-links a::after {
  content: "";
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  flex: none;
  width: 6px;
  height: 6px;
  opacity: 0.48;
  transform: rotate(45deg);
  transition: opacity 160ms ease, transform 160ms ease;
}

.portfolio-footer-links a:hover,
.portfolio-footer-links a:focus-visible {
  color: var(--ai-surface-strong);
  padding-left: 4px;
}

.portfolio-footer-links a:hover::after,
.portfolio-footer-links a:focus-visible::after {
  opacity: 1;
  transform: translateX(3px) rotate(45deg);
}

.portfolio-footer-contact .portfolio-footer-contact-link {
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 0;
}

.portfolio-footer-contact .portfolio-footer-contact-link::after {
  margin-left: auto;
}

.portfolio-footer-contact-icon {
  color: var(--ai-cyan);
  background: color-mix(in srgb, var(--ai-cyan) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--ai-cyan) 24%, transparent);
  border-radius: 8px;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  box-shadow: inset 0 1px color-mix(in srgb, var(--ai-surface-strong) 10%, transparent);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.portfolio-footer-contact-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 17px;
  height: 17px;
}

.portfolio-footer-contact-copy {
  min-width: 0;
  display: grid;
}

.portfolio-footer-contact-copy small {
  color: var(--ai-cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9px;
  line-height: 1.2;
}

.portfolio-footer-contact-copy strong {
  color: color-mix(in srgb, var(--ai-surface-strong) 88%, transparent);
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.portfolio-footer-contact .portfolio-footer-contact-link:hover .portfolio-footer-contact-icon,
.portfolio-footer-contact .portfolio-footer-contact-link:focus-visible .portfolio-footer-contact-icon {
  color: var(--ai-surface-strong);
  background: linear-gradient(145deg, var(--ai-cyan), var(--ai-electric));
  border-color: color-mix(in srgb, var(--ai-surface-strong) 34%, transparent);
}

.portfolio-footer a:focus-visible {
  outline: 2px solid var(--ai-cyan);
  outline-offset: 4px;
}

.portfolio-footer-bottom {
  color: color-mix(in srgb, var(--ai-surface-strong) 58%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--ai-surface-strong) 14%, transparent);
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding-top: 26px;
  font-size: 12px;
  display: grid;
}

.portfolio-footer-brand {
  color: var(--ai-surface-strong);
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.portfolio-footer-brand img {
  background: var(--ai-surface-strong);
  border-radius: 6px;
  object-fit: contain;
  width: 38px;
  height: 38px;
}

.portfolio-footer-top {
  color: var(--ai-surface-strong);
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.portfolio-footer-top svg {
  transform: rotate(-90deg);
}

@media (width <= 760px) {
  .portfolio-footer {
    background-size:
      auto,
      auto,
      28px 28px,
      28px 28px,
      auto;
    padding: 0 20px 26px;
  }

  .portfolio-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .portfolio-footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .portfolio-footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .portfolio-footer-bottom > span {
    grid-column: 1 / -1;
  }
}

@media (width <= 420px) {
  .portfolio-footer-links {
    grid-template-columns: 1fr;
  }

  .portfolio-footer-links > div:last-child {
    grid-column: auto;
  }

  .portfolio-footer-links > div {
    min-height: 0;
    padding: 22px 20px 18px;
  }
}

/* Keep the capability statement as two clean, full-width lines on larger screens. */
@media (width >= 761px) {
  .capability-strip .capability-intro {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .capability-intro h2 {
    max-width: none;
    font-size: clamp(28px, 3.7vw, 52px);
    white-space: nowrap;
  }

  .capability-intro h2 em {
    display: inline;
  }

  .capability-intro p {
    max-width: none;
    margin-inline: auto;
    font-size: clamp(11px, 1.25vw, 16px);
    white-space: nowrap;
  }
}

/* Cinematic scroll motion with progressive depth, masking, and staggered reveals. */
:root {
  --scroll-progress: 0;
  --hero-scroll: 0;
}

.site-header::after {
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  will-change: transform;
}

.site-header {
  transition:
    background-color 240ms ease,
    box-shadow 240ms ease;
}

.page-has-scrolled .site-header {
  background-color: color-mix(in srgb, var(--ai-surface-strong) 94%, transparent);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--ai-navy) 15%, transparent);
}

.hero-content {
  translate: 0 calc(var(--hero-scroll) * 44px);
  opacity: calc(1 - var(--hero-scroll) * 0.38);
  will-change: translate, opacity;
}

.hero-stats {
  translate: 0 calc(var(--hero-scroll) * 18px);
  will-change: translate;
}

.motion-ready .hero.hero-motion-active .eyebrow,
.motion-ready .hero.hero-motion-active h1,
.motion-ready .hero.hero-motion-active .hero-copy,
.motion-ready .hero.hero-motion-active .hero-actions,
.motion-ready .hero.hero-motion-active .hero-focus,
.motion-ready .hero.hero-motion-active .hero-stats > div {
  animation: hero-cinematic-in 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  backface-visibility: hidden;
}

.motion-ready .hero.hero-motion-active h1 {
  animation-delay: 80ms;
}

.motion-ready .hero.hero-motion-active .hero-copy {
  animation-delay: 170ms;
}

.motion-ready .hero.hero-motion-active .hero-actions {
  animation-delay: 250ms;
}

.motion-ready .hero.hero-motion-active .hero-focus {
  animation-delay: 320ms;
}

.motion-ready .hero.hero-motion-active .hero-stats > div:nth-child(1) {
  animation-delay: 360ms;
}

.motion-ready .hero.hero-motion-active .hero-stats > div:nth-child(2) {
  animation-delay: 440ms;
}

.motion-ready .hero.hero-motion-active .hero-stats > div:nth-child(3) {
  animation-delay: 520ms;
}

@keyframes hero-cinematic-in {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition:
    opacity 820ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.scroll-reveal-left {
  transform: translate3d(-54px, 22px, 0);
}

.scroll-reveal-right {
  transform: translate3d(54px, 22px, 0);
}

.scroll-reveal-card {
  transform: perspective(900px) translate3d(0, 48px, 0) rotateX(4deg) scale(0.965);
  transform-origin: center bottom;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.section-label.scroll-reveal::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.section-label.scroll-reveal.is-revealed::after {
  transform: scaleX(1);
}

.scroll-reveal-visual .case-image,
.about-collage.scroll-reveal-visual img {
  opacity: 0;
  transform: scale(1.08);
  transform-origin: center;
  transition:
    opacity 700ms ease,
    transform 1300ms cubic-bezier(0.16, 1, 0.3, 1);
  backface-visibility: hidden;
  will-change: opacity, transform;
}

.scroll-reveal-visual.is-revealed .case-image,
.about-collage.scroll-reveal-visual.is-revealed img {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

.about-collage.scroll-reveal-visual img:nth-child(2) {
  transition-delay: 110ms;
}

.about-collage.scroll-reveal-visual img:nth-child(3) {
  transition-delay: 220ms;
}

.scroll-reveal-visual .member-visual {
  opacity: 0;
  transform: scale(0.76) rotate(-5deg);
  transition:
    opacity 650ms ease 180ms,
    transform 950ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.scroll-reveal-visual.is-revealed .member-visual {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.scroll-reveal h2 em {
  background-size: 220% 100%;
  background-position: 100% center;
  transition: background-position 1200ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.scroll-reveal.is-revealed h2 em,
h2.scroll-reveal.is-revealed em {
  background-position: 0 center;
}

.scroll-reveal-delay-1 {
  --reveal-delay: 70ms;
}

.scroll-reveal-delay-2 {
  --reveal-delay: 140ms;
}

.scroll-reveal-delay-3 {
  --reveal-delay: 210ms;
}

.scroll-reveal-delay-4 {
  --reveal-delay: 280ms;
}

@media (width <= 760px) {
  .scroll-reveal {
    transform: translate3d(0, 24px, 0);
    transition-duration: 650ms;
  }

  .scroll-reveal-left,
  .scroll-reveal-right,
  .scroll-reveal-card {
    transform: translate3d(0, 24px, 0) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-stats {
    translate: none;
    opacity: 1;
  }

  .motion-ready .hero .eyebrow,
  .motion-ready .hero h1,
  .motion-ready .hero .hero-copy,
  .motion-ready .hero .hero-actions,
  .motion-ready .hero .hero-focus,
  .motion-ready .hero .hero-stats > div {
    animation: none !important;
  }

  .site-header,
  .scroll-reveal,
  .section-label.scroll-reveal::after,
  .scroll-reveal-visual .case-image,
  .about-collage.scroll-reveal-visual img,
  .scroll-reveal-visual .member-visual,
  .scroll-reveal h2 em {
    transition: none !important;
  }

  .scroll-reveal,
  .scroll-reveal-visual .case-image,
  .about-collage.scroll-reveal-visual img,
  .scroll-reveal-visual .member-visual {
    opacity: 1;
    transform: none;
  }

  .section-label.scroll-reveal::after {
    transform: none;
  }
}

/* Final device-adaptive layer: phones, tablets, laptops, and short landscape screens. */
html {
  text-size-adjust: 100%;
}

body {
  min-width: 0;
}

.site-header,
.hero,
.section,
.capability-strip,
.portfolio-footer {
  padding-right: max(clamp(18px, 5vw, 72px), env(safe-area-inset-right));
  padding-left: max(clamp(18px, 5vw, 72px), env(safe-area-inset-left));
}

.hero-content,
.capability-intro,
.about-grid,
.expertise-heading,
.skill-grid,
.experience-intro,
.experience-companies,
.work-intro,
.case-grid,
.agents-intro,
.agent-flow,
.team-intro,
.team-grid,
.learning-grid {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.hero h1,
.hero-copy,
.capability-intro h2,
.capability-intro p,
.work-intro h2,
.agents-intro h2,
.team-intro h2 {
  max-width: 100%;
}

.case-card,
.experience-company,
.skill,
.agent-stage-column,
.agent-stage-card,
.agent-card,
.member-card,
.education,
.certifications,
.portfolio-footer-links > div {
  min-width: 0;
}

@media (width <= 1200px) {
  .header-tagline {
    font-size: 13px;
  }

  .hero-copy {
    white-space: normal;
    text-wrap: pretty;
  }

  .capability-intro h2,
  .capability-intro p {
    white-space: normal;
    text-wrap: balance;
  }

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

  .portfolio-footer-links > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (width >= 761px) and (width <= 1100px) {
  .header-tagline {
    display: none;
  }

  .capability-strip,
  .experience-companies,
  .work .case-grid,
  .agent-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .capability-strip .capability-intro {
    grid-column: 1 / -1;
  }

  .team-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .member-card {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  }

  .about-grid,
  .experience-intro,
  .work-intro,
  .agents-intro,
  .team-intro,
  .expertise-heading {
    gap: clamp(24px, 5vw, 52px);
  }
}

@media (width <= 760px) {
  .site-header,
  .hero,
  .section,
  .capability-strip,
  .expertise-section,
  .portfolio-footer {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .site-header {
    height: 64px;
  }

  .brand {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .header-tagline {
    display: none;
  }

  .header-contact {
    gap: 6px;
    margin-right: 52px;
  }

  .header-contact a,
  .menu-button {
    width: 40px;
    height: 40px;
  }

  .header-contact a {
    padding: 0;
  }

  .header-contact a span {
    display: none;
  }

  .menu-button {
    top: 12px;
    right: max(16px, env(safe-area-inset-right));
  }

  .nav {
    width: min(360px, 100%);
    max-width: 100%;
    padding:
      max(22px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }

  .nav-links {
    min-height: 0;
    overflow-y: auto;
  }

  .nav-links a {
    min-height: 48px;
  }

  .hero {
    min-height: auto;
    padding-top: max(96px, calc(72px + env(safe-area-inset-top)));
    padding-bottom: 44px;
  }

  .hero-content {
    align-items: stretch;
  }

  .eyebrow {
    width: auto;
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(34px, 10.7vw, 48px);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    font-size: clamp(14px, 3.8vw, 16px);
    line-height: 1.65;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    width: 100%;
    margin-top: 30px;
    padding: 8px 16px;
  }

  .hero-stats > div {
    min-height: 58px;
  }

  .hero-stats span {
    white-space: normal;
  }

  .section {
    padding-top: clamp(70px, 14vw, 92px);
    padding-bottom: clamp(70px, 14vw, 92px);
  }

  .capability-strip,
  .expertise-section .skill-grid,
  .experience-companies,
  .work .case-grid,
  .agent-flow,
  .learning-grid,
  .team-grid,
  .portfolio-footer-links {
    grid-template-columns: 1fr !important;
  }

  .capability-strip {
    gap: 14px;
  }

  .capability-strip .capability-intro,
  .portfolio-footer-links > div:last-child {
    grid-column: auto;
  }

  .capability-intro h2,
  .capability-intro p {
    white-space: normal;
    text-wrap: balance;
  }

  .tool-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
    padding: 30px 16px;
  }

  .about-grid,
  .experience-intro,
  .work-intro,
  .agents-intro,
  .team-intro,
  .expertise-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-collage {
    width: 100%;
    max-width: 620px;
  }

  .work .case-image {
    height: clamp(170px, 52vw, 260px) !important;
  }

  .agent-stage-column {
    display: grid;
    grid-template-rows: auto auto;
  }

  .member-card {
    display: block;
  }

  .member-content > p {
    min-height: 0;
  }

  .education,
  .certifications {
    padding: clamp(22px, 6vw, 32px);
  }

  .case-modal-backdrop,
  .certifications-dialog-backdrop,
  .team-work-dialog-backdrop {
    align-items: end;
  }

  .case-modal,
  .certifications-dialog,
  .team-work-dialog {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - max(16px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
    border-radius: 14px 14px 8px 8px;
  }

  .case-modal-hero {
    height: clamp(190px, 52vw, 280px);
  }

  .case-modal-body {
    padding-right: clamp(18px, 5vw, 28px);
    padding-left: clamp(18px, 5vw, 28px);
  }

  .case-modal-overview,
  .case-final-output,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-footer {
    padding-bottom: max(26px, env(safe-area-inset-bottom));
  }

  .portfolio-footer-links {
    gap: 14px;
  }

  .portfolio-footer-links > div {
    min-height: 0;
  }

  .portfolio-footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .portfolio-footer-bottom > span {
    grid-column: 1 / -1;
  }
}

@media (width <= 420px) {
  .site-header,
  .hero,
  .section,
  .capability-strip,
  .expertise-section,
  .portfolio-footer {
    padding-right: max(12px, env(safe-area-inset-right));
    padding-left: max(12px, env(safe-area-inset-left));
  }

  .header-contact {
    gap: 4px;
    margin-right: 46px;
  }

  .header-contact a,
  .menu-button {
    width: 38px;
    height: 38px;
  }

  .menu-button {
    top: 13px;
    right: max(12px, env(safe-area-inset-right));
  }

  .hero {
    padding-top: max(88px, calc(68px + env(safe-area-inset-top)));
  }

  .hero h1 {
    font-size: clamp(31px, 10.5vw, 42px);
  }

  .hero-actions {
    gap: 18px;
  }

  .hero-stats {
    padding-inline: 12px;
  }

  .hero-stats strong {
    min-width: 48px;
    font-size: 20px;
  }

.hero-stats span {
  font-size: 12px;
}

  .tool-band {
    grid-template-columns: 1fr 1fr;
  }

  .about-collage .about-image-main {
    height: clamp(230px, 76vw, 300px);
  }

  .about-collage img {
    height: clamp(110px, 36vw, 145px);
  }

  .portfolio-footer-bottom {
    grid-template-columns: 1fr;
  }

  .portfolio-footer-top {
    justify-self: start;
  }

  .portfolio-footer-bottom > span {
    grid-column: auto;
  }
}

/* Present the UX and AI service offering as a balanced four-card desktop grid. */
@media (width >= 761px) {
  .expertise-section .skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
    border: 0;
  }

  .expertise-section .skill {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 230px;
    margin-bottom: 0;
    padding: 26px;
  }

  .expertise-section .skill h3 {
    margin: 22px 0 12px;
  }

  .expertise-section .skill p {
    margin: 0;
  }
}

@media (width <= 340px) {
  .brand {
    width: 36px;
    min-width: 36px;
  }

  .header-contact {
    gap: 3px;
    margin-right: 42px;
  }

  .header-contact a,
  .menu-button {
    width: 36px;
    height: 36px;
  }

  .menu-button {
    top: 14px;
  }

  .hero h1 {
    font-size: clamp(29px, 10vw, 34px);
  }

  .hero-actions {
    flex-direction: column;
  }
}

@media (height <= 700px) and (width >= 761px) {
  .hero {
    min-height: 640px;
    padding-top: 112px;
    padding-bottom: 120px;
  }

  .nav {
    overflow-y: auto;
  }
}

@media (orientation: landscape) and (height <= 520px) {
  .nav {
    overflow-y: auto;
  }

  .nav-links a {
    min-height: 42px;
    padding-block: 8px;
  }

  .certifications-dialog,
  .team-work-dialog,
  .case-modal {
    max-height: calc(100dvh - 12px);
  }
}

/* Employer logo assets. */
.experience-company .company-mark {
  background: transparent;
  filter: none;
  justify-content: flex-start;
  width: 112px;
  height: 44px;
  padding: 0;
}

.experience-company .company-mark img {
  display: block;
  width: 100%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

/* Desktop right-side navigation panel. */
@media (width >= 761px) {
  .nav,
  .nav.open {
    width: min(380px, 92vw);
  }
}

/* Keep capability-card titles on one line without affecting other headings. */
.capability-strip .capability h3 {
  white-space: nowrap;
}

.capability-strip .capability h3 br {
  display: none;
}

.capability-strip .capability h3 strong::before {
  content: " ";
}

/* Final responsive safeguards for narrow screens, tablets, and small viewports. */
html,
body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-inline-size: 100%;
}

.case-card,
.experience-company,
.skill,
.agent-card,
.member-card,
.team-work-area,
.portfolio-footer-links > div {
  overflow-wrap: anywhere;
}

@media (width >= 761px) and (width <= 1100px) {
  .expertise-section .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .expertise-section .skill {
    min-height: 0;
  }
}

@media (width <= 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats > div {
    min-width: 0;
  }

  .hero-stats > div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-stats span {
    overflow-wrap: anywhere;
  }

  .case-modal,
  .certifications-dialog,
  .team-work-dialog {
    max-height: calc(100dvh - 16px);
  }
}

@media (orientation: landscape) and (height <= 520px) {
  .hero {
    min-height: auto;
    padding-top: 88px;
    padding-bottom: 28px;
  }

  .hero-stats {
    margin-top: 20px;
  }
}
