:root {
  --bg: #ececef;
  --bg-2: #e4e4e8;
  --text: #0a0a0c;
  --text-2: #2b2b30;
  --mute: #62626a; /* darkened from the pen's #74747c for WCAG AA on --bg */
  --mute-2: #9a9aa3;
  --card: #ffffff;
  --card-soft: #f7f7fa;
  --line: rgba(0, 0, 0, 0.06);
  --line-2: rgba(0, 0, 0, 0.1);
  --accent: #1a8aff;
  --teal: #2cb7b3;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif, system-ui;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
      circle at 1px 1px,
      rgba(15, 15, 20, 0.045) 1px,
      transparent 1.4px
    )
    0 0/22px 22px;
  opacity: 0.6;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

.display {
  font-family: var(--font);
  font-weight: 900;
}

/* ════════════════════════════════════════════════
     PAGE WRAPPER
     ════════════════════════════════════════════════ */
.page {
  position: relative;
  z-index: 1;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 40px) 60px;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════
     WAVE PNG (the hero visual)
     ════════════════════════════════════════════════ */
.wave-wrap {
  position: absolute;
  inset: -60px -180px auto 0;
  top: -60px;
  right: -160px;
  z-index: 2;
  pointer-events: none;
  width: min(1300px, 92vw);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(20, 80, 160, 0.1));
  will-change: transform;
}

.wave-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transform-origin: center;
}

/* Soft pastel blob behind the wave to deepen the gradient */
.wave-glow {
  position: absolute;
  top: 0;
  right: -120px;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    rgba(40, 190, 255, 0.35),
    transparent 70%
  );
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

.wave-glow.b {
  top: 35%;
  right: 10%;
  width: 40%;
  background: radial-gradient(
    closest-side,
    rgba(70, 230, 180, 0.3),
    transparent 70%
  );
}

/* ════════════════════════════════════════════════
     GIANT BACKGROUND TEXT
     ════════════════════════════════════════════════ */
.bg-text {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: var(--font);
  font-size: clamp(140px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15, 15, 25, 0.08);
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

/* ════════════════════════════════════════════════
     HEADER (pill nav)
     ════════════════════════════════════════════════ */
.header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 28px rgba(20, 40, 80, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--text);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text .a {
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.logo-text .b {
  font-size: 11px;
  color: var(--mute);
  margin-top: 3px;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.nav-pill svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.nav-pill:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.nav-pill.active {
  background: var(--text);
  color: white;
}

.nav-pill.active svg {
  opacity: 0.9;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 22px;
  background: white;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.3s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.cta-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 5px rgba(0, 0, 0, 0.4);
}

.cta-dot svg {
  width: 14px;
  height: 14px;
}

.cta-text {
  font-size: 14.5px;
  font-weight: 500;
  padding-right: 4px;
}

.cta-arrows {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
  color: var(--mute);
}

.cta-arrows svg {
  width: 14px;
  height: 14px;
}

/* ════════════════════════════════════════════════
     HERO
     ════════════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 5;
  padding: 60px 0 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 1px;
  background: currentColor;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-left: 4px;
}

/* TITLE */
.title {
  font-family: var(--font);
  font-size: clamp(16px, 4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0;
  position: relative;
  z-index: 4;
}

.title-line {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  flex-wrap: wrap;
}

.title-line.has-desc {
  align-items: center;
}

.title-desc {
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(11px, 0.95vw, 14px);
  line-height: 1.35;
  color: var(--text-2);
  max-width: 24ch;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  align-self: center;
}

.paren-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  line-height: 0.94;
}

.paren-group .paren {
  color: var(--text);
  display: inline-block;
  transform: translateY(-2%);
  font-weight: 400;
}

.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Icon tiles */
.icon-tile {
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background: var(--tile);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fafaf7;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.5),
    0 10px 20px -6px rgba(0, 0, 0, 0.32), 0 3px 6px -1px rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 10;
  transition: box-shadow 0.5s cubic-bezier(0.6, 0, 0.2, 1);
  will-change: transform;
}
.icon-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.12) 0%,
    transparent 35%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}
.icon-tile:hover {
  box-shadow: 0 32px 50px -16px rgba(0, 0, 0, 0.6),
    0 14px 26px -6px rgba(0, 0, 0, 0.38), 0 4px 8px -1px rgba(0, 0, 0, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.15), inset 0 -3px 6px rgba(0, 0, 0, 0.5);
}

/* Positions */
.tile-1 {
  left: 12%;
  top: 8%;
}

.hero-desc-right {
  width: fit-content;
  text-align: left;
  font-size: 0.9rem;
  color: var(--text-dark, black);
  font-weight: 500;
  letter-spacing: normal;
}

.future-tag {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1.35;
  color: var(--text-2);
  align-self: center;
  margin-left: 4px;
}

/* CIRCULAR BADGE */
.badge {
  position: absolute;
  left: 16px;
  top: 250px;
  width: 100px;
  height: 100px;
  z-index: 6;
  margin-block-start: 3rem;
}

.badge .ring {
  position: absolute;
  inset: 0;
  animation: spin 18s linear infinite;
}

.badge:hover .ring {
  animation-duration: 6s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.badge-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06), inset 0 1px 0 white;
}

.badge-center svg {
  width: 14px;
  height: 14px;
  color: var(--text);
}

/* ════════════════════════════════════════════════
     RESOURCE LIST
     ════════════════════════════════════════════════ */
.resource-list {
  position: relative;
  z-index: 4;
  margin: 80px 0 30px;
  margin-left: auto;
  max-width: 360px;
}

.res-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 4px;
  border-top: 1px solid var(--line-2);
  color: var(--mute);
  font-size: 15px;
  transition: color 0.25s, padding 0.25s;
}

.res-item:last-child {
  border-bottom: 1px solid var(--line-2);
}

.res-item:hover {
  color: var(--text);
  padding-left: 8px;
}

.res-item .label {
  display: inline-flex;
  gap: 6px;
}

.res-item.active {
  color: var(--text);
  font-weight: 500;
}

.res-item .dots {
  display: inline-flex;
  gap: 4px;
}

.res-item .dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
}

.res-item.active .dots span:nth-child(2) {
  opacity: 1;
}

.res-item .arrow svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.res-item:hover .arrow svg {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════
     BOTTOM CARDS
     ════════════════════════════════════════════════ */
.bottom {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  margin: 30px 0 40px;
  align-items: end;
}

/* Clay card base */
.clay-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.03), 0 12px 36px rgba(20, 40, 80, 0.07),
    0 30px 60px rgba(20, 40, 80, 0.04);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s;
}

.clay-card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.04), 0 18px 50px rgba(20, 40, 80, 0.1),
    0 40px 80px rgba(20, 40, 80, 0.06);
}

/* LEFT cluster: doctor card + research/analysis grid */
.doctor-cluster {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 460px;
}

.doctor-card {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #d9a07a, #8b5e3c);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}

.doctor-avatar svg {
  width: 100%;
  height: 100%;
}

.doctor-meta {
  flex: 1;
  line-height: 1.2;
}

.doctor-meta .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.doctor-meta .role {
  font-size: 12.5px;
  color: var(--mute);
  margin-top: 3px;
}

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card-soft);
  display: grid;
  place-items: center;
  transition: background 0.25s, transform 0.25s;
}

.search-btn:hover {
  background: var(--text);
  color: white;
  transform: rotate(-8deg);
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  padding: 18px;
  min-height: 140px;
}

.info-card .ic-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--card-soft);
  margin-bottom: 12px;
}

.info-card .ic-head svg {
  width: 14px;
  height: 14px;
}

.info-card p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mute);
  margin: 0;
}

/* RIGHT cluster: 2 treatment cards */
.treatments {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-left: auto;
  max-width: 440px;
  width: 100%;
}

.treatment {
  padding: 20px 22px;
}

.treatment .head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.treatment .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--card-soft);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: inset 0 1px 0 white;
}

.treatment .icon svg {
  width: 16px;
  height: 16px;
}

.treatment h3,
.treatment .card-h {
  flex: 1;
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.menu-dots {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--mute);
  transition: background 0.25s;
}

.menu-dots:hover {
  background: var(--bg-2);
  color: var(--text);
}

.menu-dots svg {
  width: 18px;
  height: 18px;
}

.treatment p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mute);
  margin: 0 0 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card-soft);
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.tag svg {
  width: 13px;
  height: 13px;
  color: var(--mute);
}

/* ════════════════════════════════════════════════
     FOOTER ROW: social + discover
     ════════════════════════════════════════════════ */
.footer-row {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  margin-top: 20px;
}

.social {
  display: inline-flex;
  gap: 10px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text);
  box-shadow: 0 1px 0 white inset, 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}

.social-btn:hover {
  background: var(--text);
  color: white;
  transform: translateY(-3px) scale(1.05);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.discover {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 13.5px;
}

.discover .arrow-down {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  animation: bounce 1.8s ease-in-out infinite;
}

.discover .arrow-down svg {
  width: 14px;
  height: 14px;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

/* ════════════════════════════════════════════════
     RESPONSIVE
     ════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .header-cta .cta-arrows {
    display: none;
  }

  .nav-pill {
    padding: 8px 14px;
    font-size: 13.5px;
  }

  .badge {
    left: 8px;
    top: 200px;
    transform: scale(0.9);
  }
}

@media (max-width: 900px) {
  .nav-pills {
    display: none;
  }

  .resource-list {
    margin-left: 0;
    max-width: 100%;
  }

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

  .doctor-cluster,
  .treatments {
    margin: 0 auto;
    max-width: 500px;
  }

  .footer-row {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .badge {
    position: relative;
    left: auto;
    top: auto;
    margin: 18px 0;
  }

  .bg-text {
    font-size: clamp(110px, 28vw, 200px);
  }

  .wave-wrap {
    right: -250px;
    opacity: 0.85;
  }
}

@media (max-width: 540px) {
  .page {
    padding: 16px 16px 40px;
  }

  .title {
    font-size: clamp(38px, 12vw, 62px);
  }

  .paren-group {
    font-size: clamp(38px, 12vw, 62px);
  }

  .header {
    padding: 8px 10px;
  }

  .logo .logo-text {
    display: none;
  }

  .cta-text {
    display: none;
  }

  .header-cta {
    padding: 6px;
  }

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

/* ════════════════════════════════════════════════
     JARMANDO.COM ADDITIONS
     (self-hosted fonts, new sections, a11y)
     ════════════════════════════════════════════════ */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-600.woff2") format("woff2");
}

:root {
  --tile: #0a0a0c;
  --accent-deep: #0a66c8; /* AA-contrast accent for text and focus rings */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Clip decorative overflow (giant bg text, wave ribbon) without creating
   a scroll container — the pen's body{overflow-x:hidden} alone leaves
   scrollWidth inflated. */
html,
body {
  overflow-x: clip;
}

/* Skip link + focus */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--text);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

/* Hero tweaks */
.res-num {
  color: var(--text-2);
}

/* The jump-list overlaps the tinted wave glow, so it needs full-strength
   text color to hold AA contrast against the gradient. */
.resource-list .res-item {
  color: var(--text-2);
}

.hero-desc-right svg {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  display: inline-block;
}

.icon-tile {
  position: relative;
}

.wave-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

.badge.paused .ring {
  animation-play-state: paused;
}

.doctor-avatar {
  background: #0a0a0c;
}

/* ── Section shell ── */
main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px clamp(20px, 3vw, 40px) 24px;
  scroll-margin-top: 90px;
}

.section-head {
  margin-bottom: 34px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

.section-sub {
  color: var(--mute);
  font-size: 15px;
  margin: 14px 0 0;
}

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent-deep);
}

.vendor-chips {
  margin-top: 16px;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.skill-card {
  padding: 22px 24px;
}

.skill-card h3 {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}

.skill-row {
  margin-top: 14px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 7px;
}

.skill-percent {
  color: var(--mute);
}

.skill-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-2);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}

.skills-tags {
  margin-top: 20px;
}

/* ── Experience ── */
.xp-item {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  padding: 18px 4px;
  border-top: 1px solid var(--line-2);
}

.xp-item:last-child {
  border-bottom: 1px solid var(--line-2);
}

.xp-year {
  color: var(--mute);
  font-size: 13.5px;
  padding-top: 3px;
  white-space: nowrap;
}

.xp-role {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}

.xp-body p {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 68ch;
}

.xp-current {
  margin-left: 10px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--accent-deep);
  border-color: rgba(26, 138, 255, 0.35);
  background: rgba(26, 138, 255, 0.08);
}

/* ── Certifications ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.cert-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 14px;
}

.cert-tile img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.cert-name {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.35;
}

.cert-vendor {
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
  border: 1px solid var(--line-2);
  background: var(--card-soft);
  border-radius: 999px;
  padding: 3px 9px;
  margin-top: auto;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.projects-grid .treatment {
  display: flex;
  flex-direction: column;
}

.projects-grid .tag-row {
  margin-top: auto;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.proj-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
}

.proj-link:hover svg {
  transform: translate(2px, -2px);
}

/* ── Contact ── */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s, box-shadow 0.3s, background 0.3s, color 0.3s;
}

.contact-btn svg {
  width: 16px;
  height: 16px;
}

.contact-btn:hover {
  transform: translateY(-2px);
  background: var(--text);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  max-width: 1360px;
  margin: 0 auto;
  padding: 26px clamp(20px, 3vw, 40px) 44px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--mute);
  font-size: 12.5px;
}

/* ── Responsive: new sections ── */
@media (max-width: 1100px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 860px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .xp-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .xp-year {
    padding-top: 0;
  }
}

@media (max-width: 540px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 44px 16px 16px;
  }
}

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

  .discover .arrow-down {
    animation: none;
  }

  .badge .ring {
    animation: none;
  }

  .clay-card,
  .nav-pill,
  .header-cta,
  .contact-btn,
  .social-btn,
  .search-btn,
  .proj-link svg,
  .res-item {
    transition: none;
  }
}
