/* Standalone marketing pages (contact, services) */

.page-main {
  padding-top: calc(var(--nav-h) + var(--s12));
  padding-bottom: var(--sec-py);
  min-height: auto;
}

.page-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s12);
}

.page-hero .sec-label {
  justify-content: center;
}

.page-hero .sec-title {
  margin-bottom: var(--s4);
}

.page-hero .sec-desc {
  margin-inline: auto;
}

/* Contact page — two column layout */
.page-main--contact {
  max-width: var(--container-max, 1480px);
}

.contact-page-header {
  margin-bottom: var(--s12);
}

.contact-page-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--s4);
  line-height: 1.05;
}

.contact-page-lead {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-1);
  font-weight: 300;
  max-width: 52ch;
  line-height: 1.65;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.contact-info-panel {
  padding-top: var(--s2);
  position: sticky;
  top: calc(var(--nav-h, 72px) + var(--s8));
}

.contact-info-heading {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-0);
  padding-bottom: var(--s4);
  margin-bottom: var(--s6);
  border-bottom: 1px solid var(--border, rgba(15, 18, 26, 0.08));
}

.contact-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: baseline;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border-soft, rgba(15, 18, 26, 0.05));
}

.contact-info-row:last-child {
  border-bottom: 0;
}

.contact-info-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3, #6b7280);
  white-space: nowrap;
}

.contact-info-value {
  font-family: "DM Sans", sans-serif;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-1, #1f242b);
  font-weight: 400;
  letter-spacing: -0.005em;
}

.contact-info-value a {
  color: var(--text-0, #0f121a);
  transition: color 0.2s ease;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-info-value a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.contact-page-card {
  background: var(--bg-0, #fff);
  border: 1px solid var(--border, rgba(15, 18, 26, 0.08));
  border-radius: var(--r-lg, 14px);
  padding: clamp(24px, 4vw, 40px);
  box-shadow:
    0 1px 0 rgba(15, 18, 26, 0.02),
    0 4px 16px rgba(15, 18, 26, 0.04);
}

.contact-inquiry-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-bottom: var(--s8);
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.contact-inquiry-tab {
  padding: 11px 16px;
  border-radius: calc(var(--r-md) - 4px);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-inquiry-tab:hover {
  color: var(--text-0);
  border-color: var(--border-hover);
}

.contact-inquiry-tab.is-active {
  background: var(--bg-3);
  border-color: rgba(108, 99, 255, 0.45);
  color: var(--text-0);
  box-shadow: 0 0 0 1px rgba(108, 99, 255, 0.12), 0 4px 16px rgba(108, 99, 255, 0.08);
}

.contact-services-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-services-fieldset .form-label {
  margin-bottom: var(--s4);
}

.contact-services-grid {
  display: grid;
  gap: var(--s3);
}

.contact-check {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.88rem;
  color: var(--text-1);
  font-weight: 300;
  line-height: 1.45;
  cursor: pointer;
}

.contact-check input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.contact-services-fieldset.has-error .contact-check {
  color: var(--text-2);
}

@media (max-width: 900px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
  }

  .contact-info-panel {
    position: static;
    padding: var(--s6);
    background: var(--bg-1, #fafafa);
    border: 1px solid var(--border, rgba(15, 18, 26, 0.08));
    border-radius: var(--r-lg, 14px);
  }
}

@media (max-width: 480px) {
  .contact-info-row {
    grid-template-columns: 1fr;
    gap: var(--s1);
  }
}

.country-picker {
  position: relative;
}

.country-picker-control {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.country-picker-input {
  flex: 1;
}

.country-picker-toggle {
  flex-shrink: 0;
  width: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-2);
  color: var(--text-2);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.country-picker-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.country-picker-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.country-picker-option {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-1);
}

.country-picker-option:hover,
.country-picker-option.is-active {
  background: rgba(99, 102, 241, 0.15);
}

.country-picker-empty {
  padding: 12px;
  color: var(--text-3);
  font-size: 0.88rem;
}

.country-picker.is-open .country-picker-toggle {
  border-color: var(--accent);
}

.securd-page-main {
  padding-top: calc(var(--nav-h, 72px) + var(--s10));
  padding-bottom: var(--s12);
}

.securd-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s12);
}

.securd-hero-logo {
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto var(--s6);
  display: block;
}

.securd-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fb923c;
  margin-bottom: var(--s4);
}

.securd-hero-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--s4);
}

.securd-hero-lead {
  color: var(--text-1);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--s8);
}

.securd-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s6);
  max-width: 960px;
  margin: 0 auto;
}

.securd-pillar {
  padding: var(--s6);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-1);
}

.securd-pillar h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.15rem;
  margin-bottom: var(--s3);
  color: #fb923c;
}

.securd-pillar p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-1);
}

@media (max-width: 768px) {
  .securd-pillars {
    grid-template-columns: 1fr;
  }
}

.contact-page-card .form-submit {
  width: 100%;
}

.contact-page-status {
  margin-top: var(--s4);
  font-size: 0.88rem;
  min-height: 1.25rem;
}

.contact-page-status[data-type="error"] {
  color: #f87171;
}

.contact-page-status[data-type="success"] {
  color: #34d399;
}

.contact-page-success {
  display: none;
  text-align: center;
  padding: var(--s8) 0;
}

.contact-page-success.is-visible {
  display: block;
}

.contact-page-success .success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--s6);
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: grid;
  place-items: center;
}

.contact-page-success .success-icon svg {
  width: 28px;
  height: 28px;
  stroke: #34d399;
  fill: none;
  stroke-width: 2.5;
}

.services-page-grid {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
}

.service-detail-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  transition: border-color 0.25s ease;
}

.service-detail-card:hover {
  border-color: var(--border-hover);
}

.service-detail-card .svc-icon {
  margin-bottom: var(--s6);
}

.service-detail-card h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}

.service-detail-card .svc-extended {
  color: var(--text-1);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--s6);
  max-width: 72ch;
}

.service-detail-deliverables {
  list-style: none;
  display: grid;
  gap: var(--s3);
  margin-bottom: var(--s8);
}

.service-detail-deliverables li {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: 0.88rem;
  color: var(--text-1);
}

.service-detail-deliverables li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.45em;
  flex-shrink: 0;
}

.service-detail-card .btn-cta {
  font-size: 0.85rem;
}

.service-detail-card--upload {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.08) 0%, var(--bg-1) 60%);
  border-color: rgba(108, 99, 255, 0.15);
}

.service-detail-card--upload .svc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.service-detail-card--upload .upload-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s4);
  margin: var(--s8) 0;
  list-style: none;
}

.service-detail-card--upload .upload-step {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.service-detail-card--upload .upload-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
}

.service-detail-card--upload .upload-step-num--1 {
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--accent);
}

.service-detail-card--upload .upload-step-num--2 {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.service-detail-card--upload .upload-step-num--3 {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.service-detail-card--upload .upload-step-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-0);
  margin-bottom: 2px;
}

.service-detail-card--upload .upload-step-desc {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 300;
  line-height: 1.5;
}

.service-detail-card--upload .upload-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s8);
  flex-wrap: wrap;
}

.service-detail-card--upload .upload-main {
  flex: 1;
  min-width: 280px;
}

.service-detail-card--upload .upload-terminal {
  flex-shrink: 0;
  width: clamp(260px, 32%, 360px);
  background: var(--bg-0);
  border: 1px solid var(--border-hover);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.service-detail-card--upload .upload-terminal-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-detail-card--upload .upload-terminal-dots {
  display: flex;
  gap: 5px;
}

.service-detail-card--upload .upload-terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.service-detail-card--upload .upload-terminal-dots span:nth-child(1) {
  background: #f87171;
}
.service-detail-card--upload .upload-terminal-dots span:nth-child(2) {
  background: #fbbf24;
}
.service-detail-card--upload .upload-terminal-dots span:nth-child(3) {
  background: #34d399;
}

.service-detail-card--upload .upload-terminal-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: auto;
}

.service-detail-card--upload .upload-terminal-body {
  padding: var(--s5);
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.9;
}

.service-detail-card--upload .upload-cta-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
}

.service-detail-card--upload .upload-fine {
  font-size: 0.75rem;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .service-detail-card--upload .upload-terminal {
    width: 100%;
  }
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Lift page content above the fixed background canvas — but NEVER the
   nav or mobile menu. Those own their own high-z stacking context
   (.nav => z-index:1000) so their popovers/drawers render above page
   content. Forcing them to z-index:1 here used to let late-DOM <main>
   content paint over the open Services / Company popovers. */
body.marketing-static > *:not(#grid-canvas):not(#space-canvas):not(.contact-overlay):not(.nav):not(#navbar):not(#mobile-menu) {
  position: relative;
  z-index: 1;
}

body.marketing-static .contact-overlay {
  position: fixed;
  z-index: 200;
}

body.marketing-static .footer {
  margin-bottom: 0;
}

/* Same reveal fallback as homepage when deep-home.js is loaded */
html.js-ready body.marketing-static [data-reveal]:not(.visible) {
  opacity: 0;
  transform: translateY(22px);
}

@media (max-width: 768px) {
  .page-main {
    padding-top: calc(var(--nav-h) + var(--s8));
  }

  .service-detail-card {
    padding: var(--s6);
  }
}

/* ── Process page (topology graph) ── */
body.process-graph-page #grid-canvas {
  opacity: 0.35;
}

.process-page {
  padding-bottom: var(--s10);
}

.process-hero-compact {
  padding-top: calc(var(--nav-h) + var(--s8));
  padding-bottom: var(--s6);
  text-align: center;
}

.process-hero-compact .sec-desc {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.process-graph-section {
  margin-bottom: var(--s8);
}

.process-graph-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
  margin-bottom: var(--s5);
  padding: var(--s2);
}

.process-graph-tab {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.process-graph-tab:hover {
  color: var(--text-1);
  border-color: rgba(255, 255, 255, 0.18);
}

.process-graph-tab.is-active {
  color: var(--text-0);
  border-color: rgba(108, 99, 255, 0.45);
  background: rgba(108, 99, 255, 0.12);
}

.process-graph-canvas {
  position: relative;
  width: 100%;
  min-height: clamp(520px, 72vh, 720px);
  background: #030304;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 80px rgba(108, 99, 255, 0.04);
}

.process-graph-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.process-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
}

.process-junction {
  fill: rgba(255, 255, 255, 0.22);
}

.process-graph-nodes,
.process-graph-badges {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.process-graph-badges {
  z-index: 0;
}

.process-graph-badge {
  position: absolute;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 16, 0.9);
  color: var(--text-2);
  opacity: 0.85;
}

.process-graph-badge svg {
  width: 18px;
  height: 18px;
}

.process-node {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: min(240px, 42vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 14, 18, 0.92);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.process-node:hover {
  border-color: rgba(108, 99, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.process-node-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--text-3);
}

.process-node-icon svg {
  width: 18px;
  height: 18px;
}

.process-node-fn {
  flex-shrink: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid rgba(108, 99, 255, 0.35);
  color: var(--accent);
  background: rgba(108, 99, 255, 0.1);
}

.process-node--fn {
  padding-left: 10px;
}

.process-node-title {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.3;
  word-break: break-word;
}

.process-node-path {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 3px;
}

.process-node-meta {
  font-size: 0.68rem;
  color: var(--text-3);
  margin-top: 5px;
  line-height: 1.45;
  opacity: 0.9;
}

.process-graph-solution {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}

.process-solution-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 14, 0.95);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-0);
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.15);
}

.process-graph-caption {
  margin-top: var(--s5);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.process-cta-band {
  margin-top: var(--s8);
  padding: var(--s9);
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.process-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: var(--s3);
}

.process-cta-band p {
  color: var(--text-2);
  margin-bottom: var(--s6);
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .process-graph-canvas {
    min-height: 640px;
  }

  .process-node {
    width: min(200px, 46vw);
    padding: 8px 10px;
  }

  .process-graph-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--s2);
    -webkit-overflow-scrolling: touch;
  }

  .process-graph-tab {
    flex-shrink: 0;
  }
}

/* Our Team page */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-main--team {
  padding-top: 0;
  padding-bottom: var(--sec-py);
}

/* Team page rhythm — tighter than the generic page hero so the header,
   leadership, and engineering blocks read as one compact flow. */
.page-main--team .page-hero {
  margin-bottom: clamp(16px, 2.4vw, 28px);
}

.team-section {
  padding-bottom: var(--s12);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s6);
}

/* Engineering team cards — large photo, name + orange role only (no bio). */
.team-grid .team-card {
  position: relative;
  overflow: hidden;
  /* Cap at four cards per row; the fifth wraps to a centered second row. */
  flex: 0 1 calc((100% - 3 * var(--s6)) / 4);
  max-width: calc((100% - 3 * var(--s6)) / 4);
  text-align: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: var(--s9) var(--s6) var(--s8);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(234, 88, 12, 0.05) 0%, rgba(234, 88, 12, 0) 60%),
    #ffffff;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Top accent bar that reveals on hover */
.team-grid .team-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #f7a072);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.team-grid .team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.28);
  box-shadow: 0 28px 60px -28px rgba(15, 23, 42, 0.3);
}
.team-grid .team-card:hover::before {
  transform: scaleX(1);
}

.team-grid .team-card-photo {
  width: clamp(132px, 13vw, 164px);
  height: clamp(132px, 13vw, 164px);
  margin: 0 auto var(--s6);
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border), 0 20px 38px -18px rgba(15, 23, 42, 0.32);
  font-size: 2rem;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.4s ease;
}
.team-grid .team-card:hover .team-card-photo {
  transform: scale(1.04);
  box-shadow: 0 0 0 1px rgba(234, 88, 12, 0.32),
    0 24px 46px -18px rgba(234, 88, 12, 0.3);
}
.team-grid .team-card-name {
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.team-grid .team-card-role {
  margin-bottom: 0;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(24, 24, 27, 0.06);
}

.team-card-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(234, 88, 12, 0.2);
  display: grid;
  place-items: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--s5);
  overflow: hidden;
}

/* When `.team-card-photo` is a real <img> (CMS photo), fill the circular frame
   without distortion. Also covers the wrapped `--img` variant in static HTML. */
img.team-card-photo,
.team-card-photo--img img {
  object-fit: cover;
  object-position: center top;
  background: #f3f4f6;
}
.team-card-photo--img {
  background: #f3f4f6;
}
.team-card-photo--img img {
  width: 100%;
  height: 100%;
  display: block;
}

.team-card-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}

.team-card-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

.team-card-bio {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-1);
  font-weight: 300;
}

.team-cta-band {
  text-align: center;
  padding: var(--s12) 0 var(--s8);
  border-top: 1px solid var(--border);
}

.team-cta-text {
  font-size: 1rem;
  color: var(--text-1);
  margin-bottom: var(--s6);
}

@media (max-width: 1180px) {
  .team-grid .team-card {
    flex-basis: calc((100% - 2 * var(--s6)) / 3);
    max-width: calc((100% - 2 * var(--s6)) / 3);
  }
}

@media (max-width: 900px) {
  .team-grid .team-card {
    flex-basis: calc((100% - var(--s6)) / 2);
    max-width: calc((100% - var(--s6)) / 2);
  }
}

@media (max-width: 560px) {
  .team-grid .team-card {
    flex-basis: 100%;
    max-width: 320px;
  }
}
