/* Faculty Digital — shared stylesheet
   Extracted from the identical inline <style> blocks in all page templates. */

:root {
  --slate-950: #0f172a;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --blue-600: #2563eb;
  --blue-400: #38bdf8;
  --blue-glow: rgba(56, 189, 248, 0.35);
  --grad: linear-gradient(115deg, var(--blue-600), var(--blue-400));
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card:
    0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.14);
  --shadow-card-hover:
    0 4px 10px rgba(15, 23, 42, 0.06), 0 24px 48px -16px rgba(15, 23, 42, 0.2);
  --ease: cubic-bezier(0.16, 0.8, 0.24, 1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Inter",
    -apple-system,
    sans-serif;
  color: var(--slate-950);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: "Inter Tight", sans-serif;
  letter-spacing: -0.02em;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px var(--blue-glow);
}
section {
  position: relative;
}
/* Anchor jumps (e.g. careers.html#openings) would otherwise land with the
   heading tucked under the sticky header, which is ~75px tall. */
section[id] {
  scroll-margin-top: 96px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--slate-950);
  color: var(--white);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 8px 20px -8px rgba(15, 23, 42, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.12),
    0 16px 28px -8px rgba(15, 23, 42, 0.4);
}
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.navlink:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}
.btn-secondary {
  background: var(--white);
  color: var(--slate-950);
  border-color: var(--slate-200);
}
.btn-secondary:hover {
  border-color: var(--slate-950);
  transform: translateY(-2px);
}
.btn-glow {
  background: var(--grad);
  color: var(--white);
  box-shadow:
    0 2px 4px rgba(37, 99, 235, 0.15),
    0 10px 24px -8px rgba(37, 99, 235, 0.55);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow:
    0 4px 10px rgba(37, 99, 235, 0.2),
    0 18px 32px -8px rgba(37, 99, 235, 0.6);
}
/* Secondary button sitting on a dark surface (e.g. inside .final-cta) */
.btn-secondary.on-dark {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.btn-secondary.on-dark:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Accent link inside body copy */
.inline-link {
  color: var(--blue-600);
  font-weight: 600;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--slate-200);
}
nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
}
.logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
  flex: none;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.9;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
/* Wordmark replacing the old "Faculty Digital" text. The source PNG carries
   ~47px of transparent padding on every side, so the visible letters are only
   47% of the file's height -- 26px here renders a ~12px cap height, matching
   the 17px/700 text it replaces. The negative left margin cancels the file's
   built-in side padding so the gap to the mark stays the intended 9px.
   Both values assume the current asset; a re-exported/trimmed logo needs them
   revisited. */
.logo img {
  height: 26px;
  width: auto;
  flex: none;
  margin-left: -7px;
}
.navlinks {
  display: flex;
  align-items: center;
  gap: 34px;
}
.navlink {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s;
  position: relative;
}
.navlink:hover {
  color: var(--slate-950);
}
.navlink.active {
  color: var(--slate-950);
}
.navlink.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -19px;
  height: 2px;
  background: var(--grad);
}
.navcta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.navcta .navlink {
  display: none;
}
@media (min-width: 860px) {
  .navcta .navlink {
    display: inline-flex;
  }
}
@media (max-width: 859px) {
  .navlinks {
    display: none;
  }
}

.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--slate-200);
  background: linear-gradient(180deg, var(--slate-50), var(--white));
}
.page-header h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  margin: 16px 0 14px;
  line-height: 1.08;
}
.page-header p {
  font-size: 16.5px;
  color: var(--slate-600);
  max-width: 600px;
  line-height: 1.6;
}

.section {
  padding: 88px 0;
}
.section.alt {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}
.section-head {
  max-width: 600px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin-top: 14px;
  line-height: 1.2;
}
.section-head p {
  color: var(--slate-600);
  font-size: 16px;
  margin-top: 14px;
  line-height: 1.6;
}

/* Hero */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(
      720px 420px at 82% 8%,
      rgba(56, 189, 248, 0.1),
      transparent 65%
    ),
    var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
  }
}
.hero-copy h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  margin: 18px 0 22px;
  color: var(--slate-950);
}
.hero-copy h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--slate-600);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-600);
}
.hero-trust .avatars {
  display: flex;
}
.hero-trust .avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
  background: var(--slate-200);
  display: inline-block;
}
.hero-trust .avatars span:first-child {
  margin-left: 0;
}

.mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.mockup-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow), transparent 70%);
  filter: blur(10px);
  top: -40px;
  right: -30px;
  z-index: 0;
}
.dashboard {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: var(--slate-950);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow:
    0 30px 70px -20px rgba(15, 23, 42, 0.45),
    0 8px 20px -8px rgba(15, 23, 42, 0.3);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0 4px;
}
.dash-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.dash-body {
  background: var(--slate-800);
  border-radius: var(--radius-md);
  padding: 18px;
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dash-head .t {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}
.dash-head .pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--blue-400);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 3px 9px;
  border-radius: 20px;
}
.dash-timeline {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 10px 12px;
  opacity: 0;
  transform: translateX(-8px);
  animation: tlin 0.5s var(--ease) forwards;
}
.tl-row:nth-child(1) {
  animation-delay: 0.2s;
}
.tl-row:nth-child(2) {
  animation-delay: 0.4s;
}
.tl-row:nth-child(3) {
  animation-delay: 0.6s;
}
.tl-row:nth-child(4) {
  animation-delay: 0.8s;
}
@keyframes tlin {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.tl-row.done .tl-dot {
  background: var(--blue-400);
}
.tl-row.active .tl-dot {
  background: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  animation: pulse 1.6s ease-in-out infinite;
}
.tl-row.pending .tl-dot {
  background: rgba(255, 255, 255, 0.2);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.1);
  }
}
.tl-label {
  flex: 1;
  color: var(--white);
  font-size: 12.5px;
  font-weight: 500;
}
.tl-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  color: var(--slate-400);
}
.tl-row.active .tl-status {
  color: var(--blue-400);
}
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.dash-stats div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
}
.dash-stats .num {
  color: var(--white);
  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 500;
}
.dash-stats .lbl {
  color: var(--slate-400);
  font-size: 10.5px;
  margin-top: 3px;
}
.float-chip {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 5.5s ease-in-out infinite;
}
/* 960-1259px: .wrap leaves only 32px of page gutter, so any overhang would put
   the chips against the screen edge. They sit flush inside the column instead. */
.float-chip.chip-1 {
  top: 5%;
  left: 0;
  animation-delay: 0s;
}
.float-chip.chip-2 {
  top: 17%;
  right: 0;
  animation-delay: 0.4s;
}
.float-chip.chip-3 {
  top: 41%;
  left: 6px;
  animation-delay: 0.8s;
}
.float-chip.chip-4 {
  top: 53%;
  right: 4px;
  animation-delay: 1.2s;
}
.float-chip.chip-5 {
  bottom: 13%;
  left: 0;
  animation-delay: 1.6s;
}
.float-chip.chip-6 {
  bottom: 2%;
  right: 0;
  animation-delay: 2s;
}
/* Past ~1260px the gutter grows beyond the overhang, so they can hang out over
   the edges of the card without crowding the viewport. */
@media (min-width: 1260px) {
  .float-chip.chip-1 {
    left: -30px;
  }
  .float-chip.chip-2 {
    right: -22px;
  }
  .float-chip.chip-3 {
    left: -30px;
  }
  .float-chip.chip-4 {
    right: -26px;
  }
  .float-chip.chip-5 {
    left: -18px;
  }
  .float-chip.chip-6 {
    right: -24px;
  }
}
.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}
.float-chip .txt strong {
  display: block;
  font-size: 13.5px;
}
.float-chip .txt span {
  font-size: 11px;
  color: var(--slate-600);
}

@media (max-width: 959px) {
  .mockup-wrap {
    flex-wrap: wrap;
  }
  .float-chips {
    order: 1;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
  }
  .float-chip,
  .float-chip.chip-1,
  .float-chip.chip-2,
  .float-chip.chip-3,
  .float-chip.chip-4,
  .float-chip.chip-5,
  .float-chip.chip-6 {
    position: static;
    inset: auto;
    animation: none;
  }
}
/* Tighten so six chips stay within three rows on a narrow phone */
@media (max-width: 480px) {
  .float-chips {
    gap: 8px;
  }
  .float-chip {
    padding: 8px 12px;
    gap: 8px;
  }
  .float-chip .txt strong {
    font-size: 12.5px;
  }
}

/* Logo / partner carousels */
.logos-section {
  padding: 52px 0;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--slate-50);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--slate-600);
  margin-bottom: 48px;
}
.logo-track-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 55s linear infinite;
}
.logo-track > * {
  margin-right: 64px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.logo-item {
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 18px;
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    opacity 0.25s,
    filter 0.25s;
}
.logo-item:hover {
  opacity: 1;
  filter: grayscale(0.4);
  color: var(--slate-600);
}
/* Logo mark. Height is fixed and width is free, so a wide wordmark logo can
   replace the square placeholder without being squashed. */
/* Same rule as .p-icon: height normalises, max-width is only a runaway guard
   and must stay clear of the widest mark (gbtb is 3.2:1 => 58px). */
.logo-item .l-icon {
  height: 42px;
  width: auto;
  max-width: 500px;
  object-fit: contain;
  flex: none;
}
.partners-section {
  padding: 44px 0 56px;
  border-bottom: 1px solid var(--slate-200);
  background: var(--white);
}
.partners-section .eyebrow {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.partner-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  background: var(--slate-50);
  font-family: "Inter Tight", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-800);
  filter: grayscale(1);
  opacity: 0.8;
  transition:
    opacity 0.25s,
    filter 0.25s,
    border-color 0.25s;
}
.partner-item:hover {
  opacity: 1;
  filter: grayscale(0);
  border-color: var(--slate-950);
}
/* Partner marks range from near-square (sf, 1.4:1) to very wide (td, 9.8:1),
   so height alone doesn't normalise them. A fixed box plus contain gives every
   mark the same footprint and keeps each pill the same width. */
.partner-item .p-icon {
  width: 124px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  flex: none;
}
/* Optical nudge. contain sizes on the binding axis, so ratio outliers land
   visually small: near-square marks are height-bound and end up narrow, very
   wide wordmarks are width-bound and end up short. Scale stays inside the
   pill's 20px side padding. */
.partner-item .p-icon[src$="sf.svg"] {
  transform: scale(1.3);
}
.partner-item .p-icon[src$="td.svg"],
.partner-item .p-icon[src$="oracle.svg"],
.partner-item .p-icon[src$="writeSonic.svg"] {
  transform: scale(1.12);
}

/* Metrics */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (min-width: 860px) {
  .metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.metric-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--slate-950);
}
.metric-num {
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 40px);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 10px;
}
.metric-lbl {
  font-size: 13.5px;
  color: var(--slate-600);
  font-weight: 500;
}

/* Tabs / service detail */
.tabbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 32px;
  width: max-content;
  max-width: 100%;
}
.tabbtn {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-600);
  background: transparent;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
  white-space: nowrap;
}
.tabbtn.active {
  background: var(--slate-950);
  color: var(--white);
}
.tabbtn:not(.active):hover {
  background: var(--slate-100);
  color: var(--slate-950);
}
.tabpanel {
  display: none;
}
.tabpanel.active {
  display: block;
  animation: panelin 0.45s var(--ease);
}
@keyframes panelin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 860px) {
  .service-detail {
    grid-template-columns: 1fr 1fr;
    padding: 48px;
  }
}
.service-detail h3 {
  font-size: 24px;
  margin-bottom: 14px;
}
.service-detail > div:first-child > p {
  color: var(--slate-600);
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.service-detail .tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.capabilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.capabilities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--slate-800);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 13px 15px;
}
.capabilities li svg {
  flex: none;
  margin-top: 2px;
}

/* Generic cards (case studies, values, process, roles) */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) {
  .card-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Four-up pairs off at tablet widths before going to a single row */
@media (min-width: 720px) {
  .card-grid.cols-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1040px) {
  .card-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--slate-950);
}
.card .tag {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.card p {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.6;
}
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-950);
}

.process-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) {
  .process-row {
    grid-template-columns: repeat(5, 1fr);
  }
}
.process-step {
  padding: 28px 24px;
  border-bottom: 1px solid var(--slate-200);
}
@media (min-width: 900px) {
  .process-step {
    border-bottom: none;
    border-right: 1px solid var(--slate-200);
  }
  .process-step:last-child {
    border-right: none;
  }
}
.process-step:last-child {
  border-bottom: none;
}
.process-step .pnum {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.process-step h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.55;
}

/* Role listing */
.role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 22px 26px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 14px;
  transition:
    border-color 0.25s,
    transform 0.25s;
}
.role-row:hover {
  border-color: var(--slate-950);
  transform: translateX(2px);
}
.role-row h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.role-row .meta {
  font-size: 13px;
  color: var(--slate-600);
}
.role-row .meta span {
  font-family: "IBM Plex Mono", monospace;
  color: var(--slate-400);
  margin-right: 10px;
}

/* Role detail pages (role-*.html) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-600);
  transition: color 0.2s;
}
.back-link:hover {
  color: var(--slate-950);
}
/* flex (not inline-flex) so it takes its own line above the eyebrow, with
   fit-content keeping the hover/click target tight to the text */
.page-header .back-link {
  display: flex;
  width: fit-content;
  margin-bottom: 20px;
}
.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.job-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 999px;
  padding: 6px 13px;
}
/* Single full-width column — the summary aside that used to sit beside this
   has been removed. */
.job-layout {
  display: block;
}
.job-block + .job-block {
  margin-top: 40px;
}
.job-block h2 {
  font-size: 21px;
  margin-bottom: 14px;
}
.job-block p {
  color: var(--slate-600);
  font-size: 15.5px;
  line-height: 1.7;
}
.job-block p + p {
  margin-top: 14px;
}
.job-list {
  display: grid;
  gap: 12px;
}
.job-list li {
  list-style: none;
  position: relative;
  padding-left: 26px;
  color: var(--slate-600);
  font-size: 15.5px;
  line-height: 1.65;
}
.job-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.job-list strong {
  color: var(--slate-950);
  font-weight: 600;
}
/* Application form (role pages) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.apply-form {
  max-width: 840px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 600px) {
  .apply-form {
    padding: 24px 20px;
  }
}
.field {
  margin-bottom: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 22px;
}
@media (min-width: 700px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
/* :not(.dropzone) matters — this selector outranks .dropzone on specificity,
   so without it the dropzone label is forced back to display:block. */
.field > label:not(.dropzone),
.field > .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-950);
  margin-bottom: 8px;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--slate-950);
  background: var(--white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  display: block;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--slate-400);
}
/* Dropzone. The <input type="file"> is sr-only rather than display:none so it
   stays keyboard reachable; the wrapping <label> makes the whole area a click
   target and .dropzone:focus-within draws the focus ring. */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  border: 2px dashed var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--slate-50);
  padding: 36px 24px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.dropzone:hover {
  border-color: var(--blue-400);
  background: var(--white);
}
.dropzone:focus-within {
  border-color: var(--blue-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.dropzone.is-dragover {
  border-color: var(--blue-600);
  background: rgba(56, 189, 248, 0.08);
}
.dz-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex: none;
}
.dz-icon svg {
  width: 21px;
  height: 21px;
}
.dz-text {
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.5;
}
.dz-text strong {
  color: var(--blue-600);
  font-weight: 600;
}
.dz-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--slate-400);
}
/* Selected-file chip, shown in place of the dropzone prompt */
.file-chip {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 11px 14px;
}
.file-chip.is-shown {
  display: flex;
}
.file-chip .fc-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-950);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-chip .fc-size {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11.5px;
  color: var(--slate-400);
  margin-left: auto;
  flex: none;
}
.file-remove {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--slate-400);
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  flex: none;
  transition: color 0.2s;
}
.file-remove:hover {
  color: var(--slate-950);
}
.field-error {
  display: none;
  font-size: 13px;
  color: #b42318;
  margin-top: 8px;
}
.field-error.is-shown {
  display: block;
}
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
.form-status {
  display: none;
  margin-top: 20px;
  border: 1px solid var(--slate-200);
  border-left: 3px solid var(--blue-600);
  border-radius: 10px;
  background: var(--slate-50);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--slate-600);
}
.form-status.is-shown {
  display: block;
}
.form-status strong {
  color: var(--slate-950);
}

/* Contact form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 920px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
  }
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-sentence {
  font-size: 19px;
  line-height: 2.1;
  color: var(--slate-800);
}
.form-sentence .blank,
.form-sentence select {
  display: inline-block;
  border: none;
  border-bottom: 2px solid var(--slate-200);
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--slate-950);
  padding: 2px 4px;
  min-width: 140px;
  transition: border-color 0.2s;
}
.form-sentence .blank:focus,
.form-sentence select:focus {
  outline: none;
  border-color: var(--blue-600);
}
/* Scoped to .contact-form, not .form-sentence: the textarea is a *sibling* of
   the <p class="form-sentence">, not a descendant, so the old selector matched
   nothing and left it with browser defaults. Matches .field textarea on the
   role pages so both forms look like the same system. */
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate-950);
  background: var(--white);
  resize: vertical;
  min-height: 120px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.contact-form textarea::placeholder {
  color: var(--slate-400);
}
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.contact-form .btn {
  margin-top: 22px;
  width: 100%;
}
.char-counter {
  text-align: right;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 6px;
}
.contact-info h4 {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-950);
  margin: 26px 0 12px;
}
.contact-info h4:first-child {
  margin-top: 0;
}
.contact-info p,
.contact-info a {
  display: block;
  font-size: 14.5px;
  color: var(--slate-600);
  line-height: 1.7;
}
.contact-info a:hover {
  color: var(--slate-950);
}
.office-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.office-grid.wide {
  max-width: 640px;
}
.office-grid div {
  font-size: 13.5px;
  color: var(--slate-600);
  line-height: 1.6;
}
.office-grid strong {
  display: block;
  color: var(--slate-950);
  font-size: 14px;
  margin-bottom: 3px;
}

/* Final CTA */
.final-cta {
  margin: 0;
  padding: 80px 0;
  background: var(--slate-950);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 20% 0%,
    rgba(56, 189, 248, 0.18),
    transparent 60%
  );
}
.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}
.final-cta .eyebrow {
  color: var(--blue-400);
}
.final-cta h2 {
  color: var(--white);
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 14px 0 16px;
  line-height: 1.15;
}
.final-cta p {
  color: var(--slate-400);
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: var(--white);
  padding: 64px 0 32px;
  border-top: 1px solid var(--slate-200);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.footer-brand p {
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-950);
  margin-bottom: 16px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
}
.footer-col a,
.footer-col li {
  display: block;
  font-size: 14px;
  color: var(--slate-600);
  margin-bottom: 11px;
  list-style: none;
}
.footer-col a:hover {
  color: var(--slate-950);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 28px;
  border-top: 1px solid var(--slate-200);
  font-size: 13px;
  color: var(--slate-400);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

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