:root {
  --surface: rgba(255, 250, 243, 0.88);
  --surface-strong: #fff8ef;
  --surface-soft: rgba(255, 252, 248, 0.84);
  --ink: #172028;
  --muted: #576169;
  --line: rgba(23, 32, 40, 0.12);
  --line-strong: rgba(23, 32, 40, 0.18);
  --coral: #d86e4b;
  --teal: #1a7a75;
  --gold: #c5992a;
  --shadow: 0 24px 70px rgba(45, 38, 28, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1260px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f2e8 0%, #f2ecdf 100%);
  font-family: Georgia, "Times New Roman", serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -9rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 122, 117, 0.18) 0%, rgba(26, 122, 117, 0) 72%);
}

body::after {
  bottom: -11rem;
  left: -7rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 110, 75, 0.16) 0%, rgba(216, 110, 75, 0) 74%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(64, 51, 31, 0.08);
}

.brand,
.site-nav,
.eyebrow,
.panel-kicker,
.project-kicker,
.info-label,
.button,
.chip-list span,
.project-badge,
.project-meta span,
.project-link,
.profile-summary,
.meta-label,
.meta-value,
.meta-site,
.spotlight-metrics p {
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 1.9rem;
  padding: 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(26, 122, 117, 0.22);
  border-radius: 999px;
  background: rgba(26, 122, 117, 0.08);
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.site-nav-cta:hover,
.site-nav-cta:focus-visible {
  color: var(--teal) !important;
  border-color: rgba(26, 122, 117, 0.32);
  background: rgba(26, 122, 117, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  color: var(--teal);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 24px rgba(55, 43, 21, 0.08);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.project-link:hover,
.project-link:focus-visible {
  color: var(--teal);
}

main {
  display: grid;
  gap: 2rem;
}

section {
  position: relative;
  padding: clamp(1.45rem, 3vw, 2.7rem);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 0;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.hero-main,
.hero-copy,
.profile-panel,
.spotlight-card,
.section-heading,
.featured-grid,
.featured-leads,
.project-grid,
.capability-grid,
.supporting-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.45rem, 1.3vw, 1.85rem) 0.2rem 0.2rem 0;
}

.hero-text {
  margin: 0;
  max-width: 56ch;
  color: rgba(23, 32, 40, 0.76);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-lede {
  margin: -0.15rem 0 0;
  color: var(--teal);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-skills,
.skill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-content: start;
}

.eyebrow,
.panel-kicker,
.project-kicker,
.info-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-feature {
  color: var(--teal);
  font-size: 0.96rem;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: clamp(2.55rem, 5vw, 4.35rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.spotlight-summary,
.support-card p,
.capability-card p,
.connect-card p,
.project-card p,
.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.hero-actions,
.project-toolbar,
.project-links,
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.hero-highlight {
  display: grid;
  gap: 0.42rem;
  align-content: start;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-highlight p {
  margin: 0;
  color: rgba(23, 32, 40, 0.74);
  font-size: 0.94rem;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.92rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: #fff8ef;
  box-shadow: 0 14px 30px rgba(23, 32, 40, 0.18);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.button-ghost {
  border-color: var(--line-strong);
  background: rgba(26, 122, 117, 0.08);
  color: var(--ink);
}

.button-full {
  width: 100%;
}

.hero-skills span,
.skill-group span,
.chip-list span,
.project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(23, 32, 40, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-panel,
.info-panel,
.support-card,
.capability-card,
.project-card,
.connect-card,
.spotlight-metrics article {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.8);
}

.profile-panel {
  display: grid;
  gap: 1rem;
  align-content: start;
  align-self: start;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 240, 0.86)),
    var(--surface-strong);
}

.profile-identity {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: start;
}

.profile-avatar {
  width: 100%;
  max-width: 8rem;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(40, 40, 34, 0.12);
}

.profile-head {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding-top: 0.15rem;
}

.profile-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.profile-summary {
  color: rgba(23, 32, 40, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.quickfact {
  display: grid;
  gap: 0.28rem;
  align-content: start;
  min-height: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.quickfact strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.quickfact span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.quickfact-wide {
  grid-column: 1 / -1;
}

.quickfact-label {
  color: var(--ink) !important;
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quickfact-link {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.quickfact-link:hover,
.quickfact-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 24px rgba(55, 43, 21, 0.08);
}

.quickfact-link-note {
  margin-top: auto;
  color: var(--teal) !important;
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quickfact-logo {
  width: auto;
  max-width: 9.5rem;
  height: 1.25rem;
  margin: 0.05rem 0 0.1rem;
  object-fit: contain;
  object-position: left center;
}

.quickfact-logo-aarista {
  height: 1.18rem;
}

.quickfact-logo-mcgill {
  height: 1.45rem;
}

.profile-meta {
  display: grid;
  gap: 0.75rem;
}

.meta-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.58);
}

.meta-label,
.spotlight-metrics span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.meta-value,
.spotlight-metrics p {
  margin: 0;
  font-size: 0.94rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.meta-value {
  display: grid;
  gap: 0.35rem;
}

.meta-value a {
  color: var(--ink);
  font-weight: 700;
}

.meta-brand {
  display: grid;
  gap: 0.45rem;
  width: fit-content;
  margin-bottom: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.meta-brand:hover,
.meta-brand:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 26px rgba(55, 43, 21, 0.08);
}

.meta-logo {
  width: auto;
  max-width: 11rem;
  height: 1.8rem;
  object-fit: contain;
  object-position: left center;
}

.meta-logo-aarista {
  height: 1.65rem;
}

.meta-logo-mcgill {
  height: 1.95rem;
}

.meta-site {
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-site::after {
  content: " ->";
}

.meta-value span,
.meta-value strong {
  display: block;
  margin-top: 0.15rem;
}

.section-heading {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  max-width: 20ch;
  font-size: clamp(1.7rem, 3.6vw, 2.85rem);
}

.section-heading-inline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: 1.1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.18)),
    rgba(216, 110, 75, 0.11);
}

.spotlight-copy {
  display: grid;
  gap: 1rem;
}

.spotlight-copy h3,
.support-card h3,
.capability-card h3,
.project-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.1;
}

.spotlight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.spotlight-metrics article,
.info-panel,
.support-card,
.capability-card,
.project-card,
.connect-card {
  padding: 1.15rem;
}

.profile-panel,
.spotlight-card,
.support-card,
.capability-card,
.project-card,
.connect-card,
.spotlight-metrics article,
.info-panel {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.profile-panel:hover,
.spotlight-card:hover,
.support-card:hover,
.capability-card:hover,
.project-card:hover,
.connect-card:hover,
.spotlight-metrics article:hover,
.info-panel:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 42px rgba(55, 43, 21, 0.1);
}

.featured-grid,
.featured-leads,
.capability-grid,
.project-grid {
  display: grid;
  gap: 1rem;
}

.featured-leads {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.capability-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
}

.capability-card,
.support-card {
  display: grid;
  gap: 0.85rem;
}

.featured-card {
  min-height: 23rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 242, 0.9)),
    var(--surface-soft);
}

.featured-card[role="link"],
.project-card {
  cursor: pointer;
}

.featured-card[role="link"]:focus-visible,
.project-card:focus-visible {
  outline: 2px solid rgba(26, 122, 117, 0.28);
  outline-offset: 4px;
}

.featured-card-lead {
  min-height: 25rem;
}

.featured-card-lead .feature-visual {
  min-height: 7.8rem;
}

.featured-card h3 {
  font-size: 1.25rem;
  line-height: 1.08;
  max-width: 16ch;
}

.featured-card p {
  font-size: 0.97rem;
  line-height: 1.58;
}

.capability-card {
  grid-column: span 4;
  gap: 0.85rem;
  min-height: 0;
  align-content: start;
  background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 242, 0.88)),
      var(--surface-soft);
}

.capability-card:nth-last-child(2),
.capability-card:last-child {
  grid-column: span 6;
}

.capability-card p {
  font-size: 0.94rem;
  line-height: 1.6;
}

.capability-card h3 {
  margin: 0;
  font-size: 1.3rem;
  max-width: 13ch;
}

.capability-card .skill-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-content: start;
}

.capability-card .skill-group span {
  width: 100%;
  min-height: 0;
  justify-content: flex-start;
  padding: 0.65rem 0.85rem;
  line-height: 1.2;
  text-align: left;
}

.feature-visual {
  display: grid;
  gap: 0.55rem;
  min-height: 7rem;
  padding: 0.9rem;
  border: 1px solid rgba(23, 32, 40, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.feature-pill,
.feature-code span,
.feature-stack span,
.feature-tokens span,
.feature-split span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.7rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(23, 32, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-line {
  display: block;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(23, 32, 40, 0.12);
}

.feature-line-strong {
  width: 90%;
  background: linear-gradient(90deg, rgba(23, 32, 40, 0.78), rgba(23, 32, 40, 0.16));
}

.feature-line-short {
  width: 62%;
}

.feature-code,
.feature-stack,
.feature-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.feature-code {
  margin-top: auto;
}

.feature-stack span,
.feature-tokens span {
  border-radius: 14px;
}

.feature-bubbles {
  display: grid;
  gap: 0.42rem;
}

.feature-bubble {
  display: block;
  height: 0.88rem;
  border-radius: 999px;
}

.feature-bubble-user {
  width: 56%;
  justify-self: end;
  background: rgba(23, 32, 40, 0.14);
}

.feature-bubble-ai {
  width: 82%;
  background: rgba(26, 122, 117, 0.22);
}

.feature-bubble-short {
  width: 68%;
}

.feature-bars,
.feature-chart {
  display: flex;
  align-items: end;
  gap: 0.38rem;
  min-height: 2.8rem;
}

.feature-bars span,
.feature-chart span {
  flex: 1 1 0;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(26, 122, 117, 0.7), rgba(26, 122, 117, 0.18));
}

.feature-bars span:nth-child(1) { height: 1rem; }
.feature-bars span:nth-child(2) { height: 2.1rem; }
.feature-bars span:nth-child(3) { height: 1.6rem; }
.feature-bars span:nth-child(4) { height: 2.5rem; }

.feature-chart span:nth-child(1) { height: 1rem; }
.feature-chart span:nth-child(2) { height: 1.8rem; }
.feature-chart span:nth-child(3) { height: 1.45rem; }
.feature-chart span:nth-child(4) { height: 2.35rem; }

.feature-chart-trend span:nth-child(5) {
  height: 1.7rem;
}

.feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.feature-split span {
  width: auto;
  border-radius: 14px;
}

.feature-nodes {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.2rem;
  padding: 0 0.35rem;
}

.feature-nodes::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  top: 50%;
  height: 1px;
  background: rgba(23, 32, 40, 0.16);
}

.feature-nodes span {
  position: relative;
  z-index: 1;
  width: 0.82rem;
  height: 0.82rem;
  border-radius: 50%;
  background: #fff8ef;
  border: 2px solid rgba(23, 32, 40, 0.22);
}

.feature-nodes-cluster::before {
  display: none;
}

.feature-nodes-cluster {
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
  justify-content: start;
  min-height: 3rem;
}

.feature-nodes-cluster span:nth-child(1),
.feature-nodes-cluster span:nth-child(2) {
  border-color: rgba(26, 122, 117, 0.7);
}

.feature-nodes-cluster span:nth-child(3),
.feature-nodes-cluster span:nth-child(4) {
  border-color: rgba(216, 110, 75, 0.7);
}

.feature-nodes-cluster span:nth-child(5),
.feature-nodes-cluster span:nth-child(6) {
  border-color: rgba(197, 153, 42, 0.75);
}

.feature-visual-sql {
  background: linear-gradient(135deg, rgba(26, 122, 117, 0.18), rgba(255, 255, 255, 0.88));
}

.feature-visual-clinical {
  background: linear-gradient(135deg, rgba(197, 153, 42, 0.16), rgba(255, 255, 255, 0.9));
}

.feature-visual-chat {
  background: linear-gradient(135deg, rgba(216, 110, 75, 0.15), rgba(255, 255, 255, 0.9));
}

.feature-visual-nlp {
  background: linear-gradient(135deg, rgba(210, 194, 147, 0.2), rgba(255, 255, 255, 0.92));
}

.feature-visual-bi {
  background: linear-gradient(135deg, rgba(26, 122, 117, 0.14), rgba(255, 255, 255, 0.94));
}

.feature-visual-causal {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.08), rgba(197, 153, 42, 0.14), rgba(255, 255, 255, 0.92));
}

.feature-visual-cluster {
  background: linear-gradient(135deg, rgba(216, 110, 75, 0.12), rgba(26, 122, 117, 0.12), rgba(255, 255, 255, 0.92));
}

.feature-visual-forecast {
  background: linear-gradient(135deg, rgba(197, 153, 42, 0.15), rgba(255, 255, 255, 0.94));
}

.feature-visual-multi {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.09), rgba(26, 122, 117, 0.12), rgba(255, 255, 255, 0.94));
}

.feature-visual-agent {
  background: linear-gradient(135deg, rgba(26, 122, 117, 0.12), rgba(23, 32, 40, 0.08), rgba(255, 255, 255, 0.94));
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: auto;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.project-card {
  display: grid;
  gap: 0.95rem;
  min-height: 21.5rem;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 250, 242, 0.9)),
    var(--surface-soft);
}

.project-card h3 {
  font-size: 1.18rem;
  line-height: 1.08;
  max-width: 18ch;
}

.project-card-preview {
  display: grid;
  gap: 0.55rem;
  min-height: 6.1rem;
  padding: 0.9rem;
  border: 1px solid rgba(23, 32, 40, 0.08);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.project-preview-label,
.project-preview-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(23, 32, 40, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-preview-lines {
  display: grid;
  gap: 0.4rem;
}

.project-preview-line {
  display: block;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(23, 32, 40, 0.12);
}

.project-preview-line-strong {
  width: 88%;
  background: linear-gradient(90deg, rgba(23, 32, 40, 0.72), rgba(23, 32, 40, 0.16));
}

.project-preview-line-short {
  width: 58%;
}

.project-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
}

.project-card-preview-genai {
  background: linear-gradient(135deg, rgba(26, 122, 117, 0.16), rgba(255, 255, 255, 0.9));
}

.project-card-preview-causal {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.08), rgba(197, 153, 42, 0.14), rgba(255, 255, 255, 0.92));
}

.project-card-preview-forecast {
  background: linear-gradient(135deg, rgba(197, 153, 42, 0.14), rgba(255, 255, 255, 0.92));
}

.project-card-preview-nlp {
  background: linear-gradient(135deg, rgba(210, 194, 147, 0.18), rgba(255, 255, 255, 0.92));
}

.project-card-preview-dashboards {
  background: linear-gradient(135deg, rgba(26, 122, 117, 0.12), rgba(255, 255, 255, 0.92));
}

.project-card-preview-unsupervised {
  background: linear-gradient(135deg, rgba(216, 110, 75, 0.12), rgba(26, 122, 117, 0.1), rgba(255, 255, 255, 0.92));
}

.project-card-preview-deep-learning {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.08), rgba(26, 122, 117, 0.12), rgba(255, 255, 255, 0.92));
}

.project-card-preview-database {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.08), rgba(255, 255, 255, 0.94));
}

.project-card-preview-optimization {
  background: linear-gradient(135deg, rgba(216, 110, 75, 0.14), rgba(255, 255, 255, 0.92));
}

.project-card-preview-default {
  background: linear-gradient(135deg, rgba(23, 32, 40, 0.08), rgba(255, 255, 255, 0.94));
}

.project-meta span,
.project-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-meta span {
  color: var(--muted);
}

.project-links {
  margin-top: auto;
}

.projects-note {
  margin-top: 1rem;
  color: var(--muted);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
}

.fit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
}

.fit-check-card,
.fit-result {
  align-content: start;
}

.fit-check-intro {
  max-width: 56ch;
}

.fit-check-intro-secondary {
  margin-top: -0.35rem;
  color: var(--muted);
}

.fit-check-actions {
  display: grid;
  gap: 0.8rem;
}

.fit-result-label,
.fit-result-kicker {
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
}

.fit-result {
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(249, 253, 252, 0.94)),
    var(--surface-strong);
}

.fit-result[hidden] {
  display: none !important;
}

.fit-result[data-state="strong-fit"] {
  border-color: rgba(26, 122, 117, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(239, 249, 247, 0.96)),
    var(--surface-strong);
}

.fit-result[data-state="possible-fit"] {
  border-color: rgba(197, 153, 42, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(253, 248, 235, 0.96)),
    var(--surface-strong);
}

.fit-result[data-state="not-fit"],
.fit-result[data-state="unavailable"] {
  border-color: rgba(216, 110, 75, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(252, 244, 241, 0.96)),
    var(--surface-strong);
}

.fit-result-top {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.85rem;
}

.fit-result-kicker,
.fit-result-label {
  margin: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fit-result-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fit-result-areas[hidden] {
  display: none;
}

.fit-area-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(23, 32, 40, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fit-result-text {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
}

.fit-result-repos {
  display: grid;
  gap: 0.75rem;
}

.fit-result-links {
  display: grid;
  gap: 0.65rem;
}

.fit-repo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(23, 32, 40, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.fit-repo-link:hover,
.fit-repo-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 24px rgba(55, 43, 21, 0.08);
}

.fit-repo-copy {
  display: grid;
  gap: 0.25rem;
}

.fit-repo-copy strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.fit-repo-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.fit-repo-tail {
  color: var(--teal);
  font-family: "Trebuchet MS", "Gill Sans", "Lucida Sans Unicode", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connect-layout {
  max-width: 760px;
  margin: 0 auto;
}

.connect-card {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 249, 242, 0.88)),
    var(--surface-strong);
}

.contact-form {
  align-content: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 244, 0.95)),
    var(--surface-strong);
}

.form-field {
  display: grid;
  gap: 0.5rem;
}

.form-field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
}

.form-field textarea {
  min-height: 11rem;
  resize: vertical;
}

.button-submit {
  width: 100%;
  justify-content: space-between;
  background: linear-gradient(135deg, #162028, #2a3a45);
  color: #fff8ef;
  box-shadow: 0 18px 34px rgba(23, 32, 40, 0.18);
}

.button-submit:hover,
.button-submit:focus-visible {
  box-shadow: 0 22px 38px rgba(23, 32, 40, 0.22);
}

.button-trail {
  font-weight: 800;
  letter-spacing: 0.08em;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(26, 122, 117, 0.18);
  outline-offset: 2px;
  border-color: var(--line-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-main,
  .spotlight-card,
  .supporting-grid,
  .fit-layout {
    grid-template-columns: 1fr;
  }

  .profile-identity,
  .profile-facts,
  .hero-highlights,
  .featured-leads {
    grid-template-columns: 1fr;
  }

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

  .capability-card,
  .capability-card:nth-last-child(2),
  .capability-card:last-child {
    grid-column: auto;
    min-height: 0;
  }

  .hero-copy {
    padding-right: 0;
    padding-top: 0.2rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 7vw, 3.35rem);
  }

  .section-heading-inline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 0.55rem;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: start;
    border-radius: 28px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }

  .site-nav,
  .hero-actions,
  .project-toolbar,
  .project-meta,
  .project-links {
    flex-wrap: wrap;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability-card .skill-group {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .project-toolbar {
    flex-direction: column;
  }

  .fit-repo-link {
    flex-direction: column;
    align-items: start;
  }

  .button,
  .button-full {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
