:root { --paper: #f5f2ee; --rule: #d9d5ce; --cobalt: #3531ef; }
body { background: var(--paper); }
body > main { width: min(1140px, calc(100% - 32px)); max-width: none; margin: auto; border-inline: 1px solid var(--rule); }
.contact-intro {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 60px 18px 62px;
  background:
    repeating-linear-gradient(90deg, #c5c1e022 0 1px, transparent 1px 105px),
    repeating-linear-gradient(0deg, #c5c1e022 0 1px, transparent 1px 65px),
    radial-gradient(ellipse at 50% 12%, #ffffff 10%, #f0edff 48%, var(--paper) 73%);
}
.contact-intro img { border-radius: 24px; background: #fff; box-shadow: 0 5px 10px #322e8b38, 0 0 0 7px #fffc; }
.contact-intro p { max-width: 460px; margin: 12px auto 0; }
.contact-intro .contact-kicker { color: var(--cobalt); letter-spacing: .12em; font-size: .73rem; font-weight: 700; margin: 30px auto 12px; }
.contact-intro h1 { color: #211f1b; font-family: inherit; font-size: clamp(37px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.06em; margin: 0; }
.contact-topics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 12px solid #3932ef; border-bottom: 1px dashed var(--rule); }
.contact-topics a { display: grid; align-content: center; min-height: 108px; padding: 16px 20px; text-decoration: none; line-height: 1.45; }
.contact-topics a + a { border-inline-start: 1px solid var(--rule); }
.contact-topics strong { color: #252121; }
.contact-topics span { font-size: .79rem; color: #605d56; }
.contact-topics a:hover { background: #eae7ff; }
.contact-panel { display: grid; grid-template-columns: 1.15fr 1fr; margin-block-start: clamp(45px, 8vw, 105px); border-block: 1px dashed var(--rule); }
.contact-panel > div, .contact-panel > aside { padding: clamp(19px, 4vw, 48px); }
.contact-panel > div { background: #fffdfb; }
.contact-panel > aside { border-inline-start: 1px solid var(--rule); }
.contact-panel h2 { font: inherit; font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 12px; font-weight: 700; }
.contact-panel p { font-size: .91rem; line-height: 1.6; }
body > main > .sections { padding-inline: clamp(16px,4.8vw,56px); }
body > footer { color: #f1edf5; background: #15151b; padding: 28px max(16px,calc((100% - 1108px) / 2)); }
body > footer a { color: #e7deff; }
@media (max-width: 730px) {
  .contact-panel { grid-template-columns: minmax(0,1fr); }
  .contact-panel > aside { border-inline-start: 0; border-block-start: 1px solid var(--rule); }
  .contact-topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-topics a:nth-child(3) { border-inline-start: 0; }
  .contact-topics a:nth-child(n+3) { border-block-start: 1px solid var(--rule); }
}

.contact-panel > aside .contact-kicker {
  color: var(--cobalt);
  font: 13px/1.4 ui-monospace, monospace;
  margin-block-end: 16px;
}


/* The homepage and contact share the same rail and cobalt divider. */
body > main { width:min(1140px,calc(100% - 40px)); }
body > main::before { display:none; }
.contact-intro {
  isolation:isolate;
  padding-block:clamp(44px,6vw,70px) clamp(38px,5vw,61px);
  background:radial-gradient(ellipse at 50% 30%,#fff9 0,transparent 60%),#f5f2ee;
}
.contact-intro::before,.contact-intro::after {
  content:""; position:absolute; z-index:-1; inset-block:0; width:min(35%,360px);
  background:
    repeating-linear-gradient(90deg,#5a55d01c 0 1px,transparent 1px 104px),
    repeating-linear-gradient(0deg,#5a55d02b 0 1px,transparent 1px 62px),
    repeating-linear-gradient(24deg,transparent 0 68px,#6f66e61c 69px 114px,transparent 115px 159px);
}
.contact-intro::before { inset-inline-start:0; mask-image:linear-gradient(to right,black,transparent); }
.contact-intro::after { inset-inline-end:0; mask-image:linear-gradient(to left,black,transparent); }
.contact-topics { position:relative; border-top:0; }
.contact-topics::before {
  position:absolute; content:""; inset:-8px 0 auto; height:10px; border-radius:5px;
  background:repeating-linear-gradient(104deg,#322db8 0,#574fe0 55px,#3e34ab 105px);
  box-shadow:0 4px 14px #3932b43d;
}
.contact-panel > div { border-radius:0 0 15px 0; box-shadow:0 15px 38px #25234510; }
@media(max-width:730px) { body > main {width:calc(100% - 32px);} }
body > .home-footer { padding:0; }

/* The support page reuses the homepage header and footer; keep them on the shared 1140px rail. */
body > header.site-header { display:block; width:auto; max-width:none; margin:0; padding:0; gap:0; }
.contact-intro h1 { max-width:none; margin-inline:auto; }

.contact-icon-defs { position:absolute; width:0; height:0; }
.contact-topic-icon { width:23px; height:23px; margin-block-end:8px; color:var(--cobalt); }

/* Meet the team: a full-bleed, endlessly moving card band framed by curved glass lenses,
   modelled on the Botwise testimonial band. */
html, body { overflow-x:clip; }
.contact-team { --rail:min(1150px, calc(100vw - 32px)); margin-block:clamp(54px,8vw,100px) clamp(58px,9vw,112px); color:#262626; }
.team-heading { position:relative; padding:clamp(48px,7vw,88px) 18px clamp(36px,4vw,52px); text-align:center; }
.team-heading > p:first-child { margin:0 0 14px; color:var(--cobalt); font:12px/1.3 ui-monospace,monospace; letter-spacing:.08em; }
.team-heading h2 { margin:0; color:#262626; font-size:clamp(34px,4.6vw,48px); font-weight:600; line-height:1.1; letter-spacing:-.02em; }
.team-heading h2 span { display:inline-block; }
.team-heading .team-description { margin:12px auto 0; max-width:440px; color:#595959; font-size:15px; }

.team-stage {
  --lens-w: clamp(120px, 21vw, 300px);
  --lens-out: calc(var(--lens-w) / 6);
  position:relative;
  isolation:isolate;
  margin-inline:calc(50% - 50vw);
  border-block:1px solid #e3dfd8;
  background:#efece7;
}
.team-track {
  position:relative;
  width:var(--rail);
  margin-inline:auto;
  overflow-x:auto;
  scrollbar-width:none;
  padding-block:20px;
  outline:none;
}
.team-track::-webkit-scrollbar { display:none; }
.team-track.is-marquee { overflow:hidden; touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; }
.team-track.is-dragging { cursor:grabbing; }
.team-track:focus-visible { box-shadow:inset 0 0 0 2px var(--cobalt); border-radius:20px; }
.team-cards { display:flex; gap:20px; width:max-content; margin:0; padding:0; list-style:none; will-change:transform; }

/* Glass lenses: a frosted lavender glow plus a silver rim that bulges past the rail. */
.team-lens {
  position:absolute;
  z-index:2;
  inset-block:-1px;
  width:var(--lens-w);
  pointer-events:none;
}
.team-lens--start { left:calc((100% - var(--rail)) / 2 - var(--lens-out)); }
.team-lens--end { right:calc((100% - var(--rail)) / 2 - var(--lens-out)); }
.team-lens-glow { position:absolute; inset:0; }
.team-lens-glow::before { content:""; position:absolute; inset:0; }
.team-lens-glow::before {
  -webkit-backdrop-filter:blur(8px) saturate(1.1);
  backdrop-filter:blur(8px) saturate(1.1);
}
.team-lens--start .team-lens-glow::before {
  background:
    radial-gradient(ellipse 34% 30% at 10% 50%, #ffffffd9 0%, #ffffff00 100%),
    linear-gradient(90deg, #a3a7f3 0%, #b4b7f6 9%, #cfd0f8e0 22%, #e6e5f2a6 42%, #eeecf040 64%, transparent 88%);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M20.83 0Q-20.83 50 20.83 100H100V0Z'/%3E%3C/svg%3E"), linear-gradient(90deg,#000 0%,#000 50%,transparent 100%);
  -webkit-mask-size:100% 100%;
  -webkit-mask-composite:source-in;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M20.83 0Q-20.83 50 20.83 100H100V0Z'/%3E%3C/svg%3E"), linear-gradient(90deg,#000 0%,#000 50%,transparent 100%);
  mask-size:100% 100%;
  mask-composite:intersect;
}
.team-lens--end .team-lens-glow::before {
  background:
    radial-gradient(ellipse 34% 30% at 90% 50%, #ffffffd9 0%, #ffffff00 100%),
    linear-gradient(270deg, #a3a7f3 0%, #b4b7f6 9%, #cfd0f8e0 22%, #e6e5f2a6 42%, #eeecf040 64%, transparent 88%);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M79.17 0Q120.83 50 79.17 100H0V0Z'/%3E%3C/svg%3E"), linear-gradient(270deg,#000 0%,#000 50%,transparent 100%);
  -webkit-mask-size:100% 100%;
  -webkit-mask-composite:source-in;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M79.17 0Q120.83 50 79.17 100H0V0Z'/%3E%3C/svg%3E"), linear-gradient(270deg,#000 0%,#000 50%,transparent 100%);
  mask-size:100% 100%;
  mask-composite:intersect;
}
.team-lens-rim { position:absolute; inset-block:0; width:calc(var(--lens-out) * 1.25); height:100%; overflow:visible; clip-path:inset(0 -40px); }
.team-lens--start .team-lens-rim { left:0; }
.team-lens--end .team-lens-rim { right:0; }

.team-card {
  display:flex;
  flex-direction:column;
  flex:none;
  width:clamp(270px, 25.2vw, 362px);
  min-height:329px;
  border-radius:20px;
  background:#fff;
  box-shadow:
    0 6px 13px #a6a6a61a, 0 24px 24px #a6a6a617, 0 55px 33px #a6a6a60d,
    0 1px 1px #7d7d7d26, 0 4px 4px #7d7d7d0d;
}
.team-card-body { flex:1; display:flex; flex-direction:column; align-items:flex-start; gap:20px; padding:24px 24px 30px; }
.team-card-mark { width:24px; height:24px; color:#1f1f1f; }
.team-card-body p { margin:0; color:#595959; font-size:17px; font-weight:400; line-height:1.5; letter-spacing:-.02em; }
.team-card-body a { margin-top:auto; color:#3831c0; font-size:14px; font-weight:600; text-decoration:none; }
.team-card-body a:hover { text-decoration:underline; text-underline-offset:3px; }
.team-card-person { display:flex; gap:14px; align-items:center; border-top:1px solid #ededed; padding:16px 24px 24px; font-size:15px; line-height:1.5; color:#595959; }
.team-card-person strong { display:block; color:#262626; font-size:18px; font-weight:600; line-height:1.2; letter-spacing:-.02em; }
.team-avatar { flex:0 0 50px; display:grid; place-items:center; width:50px; height:50px; border-radius:50%; background:#f8aa8e; color:#603125; }
.team-avatar-icon { width:22px; height:22px; }
.team-card:nth-child(9n+2) .team-avatar { background:#f6d46c; color:#453517; }
.team-card:nth-child(9n+3) .team-avatar { background:#84d9d8; color:#164750; }
.team-card:nth-child(9n+4) .team-avatar { background:#c9c3fb; color:#352c7a; }
.team-card:nth-child(9n+5) .team-avatar { background:#a8e3b4; color:#1f4a2a; }
.team-card:nth-child(9n+6) .team-avatar { background:#f7b8d2; color:#5e1f3b; }
.team-card:nth-child(9n+7) .team-avatar { background:#ffd3a8; color:#5b3615; }
.team-card:nth-child(9n+8) .team-avatar { background:#b9dcfb; color:#173d5e; }
.team-card:nth-child(9n) .team-avatar { background:#e4d7c6; color:#4a3b29; }

/* A quiet pause control: required for moving content, kept out of the band's way. */
.team-controls:not([hidden]) { display:flex; justify-content:flex-end; width:var(--rail); margin:12px auto 0; }
.team-controls .team-motion {
  display:inline-flex; align-items:center; gap:7px; min-height:32px; padding:0 13px;
  border:1px solid #dcd8d0; border-radius:99px; background:#faf8f5; color:#5b5853;
  font:11px/1 ui-monospace,monospace; letter-spacing:.04em; cursor:pointer;
}
.team-controls .team-motion::before { content:""; width:7px; height:9px; border-inline:2px solid currentColor; box-sizing:border-box; }
.team-controls .team-motion[aria-pressed="true"]::before { width:0; height:0; border:0; border-block:5px solid transparent; border-left:8px solid currentColor; }
.team-controls .team-motion:hover { color:#262626; border-color:#c9c4ba; }
.team-controls .team-motion:focus-visible { outline:2px solid var(--cobalt); outline-offset:2px; }

@media (max-width:730px) {
  .contact-team { --rail:calc(100vw - 32px); margin-block:46px 72px; }
  .team-heading { padding:40px 14px 30px; }
  .team-stage { --lens-w:84px; }
  .team-track { padding-block:16px; }
  .team-cards { gap:14px; }
  .team-card { width:min(78vw, 320px); min-height:300px; }
  .team-card-body { padding:20px 20px 24px; gap:16px; }
  .team-card-body p { font-size:15.5px; }
  .team-card-person { padding:14px 20px 20px; }
  .team-lens-glow::before { -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px); }
  .team-lens-rim path:nth-of-type(1) { stroke-width:11px; }
  .team-lens-rim path:nth-of-type(2) { stroke-width:8px; }
  .team-lens-rim path:nth-of-type(3) { stroke-width:2px; }
}

@media (prefers-reduced-motion:no-preference) {
  .team-heading.is-visible h2 span { animation:team-word-in .55s cubic-bezier(.2,.72,.3,1) both; }
  .team-heading.is-visible h2 span:nth-child(2) { animation-delay:.08s; }
  .team-heading.is-visible h2 span:nth-child(3) { animation-delay:.16s; }
  @keyframes team-word-in {
    from { opacity:0; transform:translateY(10px); filter:blur(4px); }
    to { opacity:1; transform:translateY(0); filter:none; }
  }
}
