:root {
  --bg: #06111f;
  --bg-soft: #0b1b2f;
  --bg-card: rgba(255, 255, 255, 0.07);
  --text: #f7fbff;
  --muted: #b8c7d9;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #19d3da;
  --accent-2: #38bdf8;
  --accent-dark: #055160;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --max-width: 1160px;
}

body.light {
  --bg: #f7fbff;
  --bg-soft: #eaf5ff;
  --bg-card: rgba(255, 255, 255, 0.82);
  --text: #071827;
  --muted: #4d6278;
  --line: rgba(4, 22, 37, 0.12);
  --accent: #087f8c;
  --accent-2: #0369a1;
  --accent-dark: #e4fbff;
  --shadow: 0 24px 70px rgba(10, 32, 54, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(25, 211, 218, 0.18), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, 0.16), transparent 28rem),
    var(--bg);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

body.nav-open {
  overflow: hidden;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 40;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

body.nav-open .nav-backdrop {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes heroPatternDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 96px 48px, -96px 96px;
  }
}

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

img,
iframe {
  max-width: 100%;
}

.ab-outer {
  width: min(100%, 960px);
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: calc(100% - 32px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 17, 31, 0.82);
  backdrop-filter: blur(18px);
}

body.light .site-header {
  background: rgba(247, 251, 255, 0.86);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.theme-toggle {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.theme-toggle:hover {
  color: var(--text);
}

.theme-toggle {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  padding: 0.55rem 0.85rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.section {
  padding: 88px 0;
}

.section-anchor {
  position: relative;
  top: -96px;
  display: block;
  height: 0;
  overflow: hidden;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 72px 0 84px;
  background:
    radial-gradient(circle at 14% 22%, rgba(25, 211, 218, 0.2), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(56, 189, 248, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 42%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(25, 211, 218, 0.12), transparent 28%),
    linear-gradient(300deg, rgba(56, 189, 248, 0.1), transparent 34%);
}

.hero::after {
  z-index: -1;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  animation: heroPatternDrift 24s linear infinite;
}

.hero-grid,
.split-grid,
.resume-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.split-grid {
  align-items: start;
}

.hero-grid > *,
.split-grid > *,
.resume-grid > *,
.contact-grid > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.48rem 0.78rem;
  border: 1px solid rgba(25, 211, 218, 0.42);
  border-radius: 999px;
  color: #ecfeff;
  background: rgba(2, 20, 29, 0.72);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  text-shadow: 0 1px 12px rgba(25, 211, 218, 0.38);
  backdrop-filter: blur(12px);
}

body.light .hero .eyebrow {
  color: #034452;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(3, 105, 161, 0.25);
  text-shadow: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.7rem, 10vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.title {
  max-width: 780px;
  color: var(--accent-2);
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: #111111;
}

h4,
h5,
h6 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.value-prop {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn:active {
  transform: translateY(0px);
}

.btn-primary {
  color: #02141d;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 36px rgba(25, 211, 218, 0.24);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--bg-card);
  color: var(--text);
}

.btn-ghost {
  color: var(--accent);
  border-color: rgba(25, 211, 218, 0.35);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-metrics div,
.profile-card,
.timeline-card,
.project-card,
.testimonial-card,
.contact-card,
.resume-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.hero-metrics div {
  padding: 1rem;
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics span,
.profile-card span,
.project-topline,
.testimonial-card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  perspective: 1000px;
}

.image-ring {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), transparent 48%, var(--accent-2));
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--hero-parallax, 0px), 0);
  will-change: transform;
}

.image-ring::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 140deg, rgba(25, 211, 218, 0.28), transparent 34%, rgba(56, 189, 248, 0.28), transparent 70%);
  filter: blur(18px);
  opacity: 0.76;
}

.image-ring img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 12px solid var(--bg);
  border-radius: 50%;
  background: #ffe72b;
}

.profile-card {
  width: min(100%, 290px);
  padding: 1.25rem;
}

.profile-card strong {
  display: block;
  line-height: 1.25;
}

.profile-card p {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 900;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading p,
.section-content p {
  color: var(--muted);
}

.section-heading p strong {
  color: var(--text);
}

.alt-section {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

body.light .alt-section {
  background: rgba(8, 127, 140, 0.05);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tag-cloud span {
  border: 1px solid rgba(25, 211, 218, 0.28);
  border-radius: 999px;
  background: rgba(25, 211, 218, 0.08);
  color: var(--text);
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.timeline,
.project-grid,
.testimonial-grid,
.prompt-grid,
.prompt-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.timeline-card,
.project-card,
.testimonial-card,
.prompt-card,
.prompt-summary article {
  padding: 1.35rem;
}

.timeline-card span,
.project-card span,
.prompt-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111111;
}

.timeline-card p,
.project-card p,
.timeline-card li,
.project-card li,
.testimonial-card p,
.prompt-card p,
.prompt-summary p,
.prompt-guidelines li {
  color: var(--muted);
}

.timeline-card h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
}

.timeline-card .role-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.role-title {
  margin-bottom: 1rem;
  color: var(--text) !important;
  font-weight: 900;
}

.current-badge {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text-on-accent);
  padding: 0.22rem 0.48rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
}

.past-experience {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(25, 211, 218, 0.1), rgba(255, 255, 255, 0.04));
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.past-experience h3 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

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

.history-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
}

.history-card span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.25;
}

.history-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.skill {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  padding: 1rem;
}

.skill span {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 900;
}

.skill div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 199, 217, 0.18);
}

.skill i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0;
  animation: fillBar 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.skill:nth-child(1) i { animation-delay: 0.1s; }
.skill:nth-child(2) i { animation-delay: 0.15s; }
.skill:nth-child(3) i { animation-delay: 0.2s; }
.skill:nth-child(4) i { animation-delay: 0.25s; }
.skill:nth-child(5) i { animation-delay: 0.3s; }
.skill:nth-child(6) i { animation-delay: 0.35s; }
.skill:nth-child(7) i { animation-delay: 0.4s; }
.skill:nth-child(8) i { animation-delay: 0.45s; }
.skill:nth-child(9) i { animation-delay: 0.5s; }
.skill:nth-child(10) i { animation-delay: 0.55s; }
.skill:nth-child(11) i { animation-delay: 0.6s; }

@keyframes fillBar {
  to {
    width: 100%;
  }
}

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

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.project-topline strong {
  color: rgba(184, 199, 217, 0.25);
  font-size: 2.3rem;
  line-height: 1;
}

.project-card ul {
  margin: 1rem 0 1.3rem;
  padding-left: 1.2rem;
}

.text-link {
  color: var(--accent);
  font-weight: 900;
}

.prompt-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(25, 211, 218, 0.12), transparent 24rem),
    radial-gradient(circle at 90% 30%, rgba(56, 189, 248, 0.1), transparent 22rem);
}

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

.prompt-summary article,
.prompt-card,
.prompt-guidelines {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.prompt-summary span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.prompt-summary strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.prompt-summary p,
.prompt-card p {
  margin-bottom: 0;
}

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

.prompt-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prompt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.prompt-card-top strong {
  color: rgba(184, 199, 217, 0.25);
  font-size: 2rem;
  line-height: 1;
}

.copy-prompt {
  align-self: flex-start;
  cursor: pointer;
  border: 1px solid rgba(25, 211, 218, 0.35);
  border-radius: 999px;
  background: rgba(25, 211, 218, 0.08);
  color: var(--accent);
  padding: 0.58rem 0.8rem;
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.copy-prompt:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #02141d;
}

.prompt-guidelines {
  display: grid;
  grid-template-columns: minmax(260px, 0.6fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: start;
  margin-top: 1.25rem;
  padding: 1.5rem;
}

.prompt-guidelines h3 {
  margin-bottom: 0;
}

.prompt-guidelines ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.2rem;
  margin: 0;
  padding-left: 1.2rem;
}

.resume-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 3rem;
}

#resume .section-heading {
  max-width: 620px;
}

#resume .section-heading h2 {
  max-width: 600px;
}

.resume-actions {
  margin-bottom: 0;
}

.resume-preview {
  position: relative;
  overflow: visible;
  padding: 0.75rem;
}

.resume-preview::before {
  content: "";
  position: absolute;
  inset: -18px 12% auto auto;
  width: 42%;
  height: 70px;
  border-radius: 999px;
  background: rgba(25, 211, 218, 0.24);
  filter: blur(28px);
  pointer-events: none;
}

.resume-preview-media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: #ffffff;
  aspect-ratio: 4 / 3;
}

.resume-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

.resume-preview-note {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.resume-preview-note span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.resume-preview-note strong {
  max-width: 280px;
  color: var(--text);
  text-align: right;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.testimonial-card p {
  font-size: 1.02rem;
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-link {
  display: inline-flex;
  margin-top: 0.9rem;
}

.contact-section {
  background: linear-gradient(135deg, rgba(25, 211, 218, 0.13), rgba(56, 189, 248, 0.07));
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.social-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-weight: 800;
}

.social-links a:hover {
  color: var(--text);
}

.contact-card {
  padding: 1.4rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  color: var(--muted);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.95rem 1rem;
}

body.light input,
body.light textarea {
  background: rgba(255, 255, 255, 0.85);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(25, 211, 218, 0.12);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}


.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  padding: 1.25rem;
}

.footer p {
  margin-bottom: 0.25rem;
}

.footer-note {
  display: block;
  max-width: 560px;
  font-size: 0.92rem;
}

.footer-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.footer a {
  color: var(--accent);
  font-weight: 900;
}

.footer-cta a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  padding: 0.62rem 0.85rem;
}

.footer-cta .footer-link-primary {
  color: #02141d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

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

  .past-experience {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }
  .section {
    padding: 72px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 16px auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg);
    padding: 1rem;
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
  }

  .nav-links.is-open {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links a,
  .theme-toggle {
    padding: 0.8rem;
    text-align: left;
  }

  .hero {
    min-height: auto;
    padding: 52px 0 76px;
  }

  .hero-grid {
    gap: 3.5rem;
  }

  .hero-copy,
  .section-heading,
  .section-content,
  .title,
  .value-prop {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .hero .eyebrow {
    margin-bottom: 1.15rem;
    padding: 0.45rem 0.7rem;
    line-height: 1.45;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 4.5rem);
  }

  .title {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .value-prop {
    font-size: 1rem;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .btn {
    padding-inline: 1.05rem;
  }

  .hero-metrics,
  .skills-grid,
  .project-grid,
  .testimonial-grid,
  .timeline,
  .experience-history,
  .prompt-grid,
  .prompt-summary,
  .prompt-guidelines,
  .prompt-guidelines ul {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    width: 100%;
    gap: 12px;
    overflow: visible;
    padding-bottom: 0;
  }

  .image-ring {
    width: min(100%, 340px);
    padding: 10px;
  }

  .image-ring img {
    width: 100%;
    height: 100%;
    border-width: 8px;
  }

  .resume-preview-note {
    display: block;
  }

  .resume-preview-note strong {
    display: block;
    max-width: none;
    margin-top: 0.25rem;
    text-align: left;
  }

  .profile-card {
    width: min(100%, 290px);
    margin-top: 0;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .ab-photo-ring {
    width: 68px;
    height: 68px;
  }

  .footer-cta {
    justify-content: flex-start;
  }
}

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

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

  .image-ring {
    transform: none !important;
    will-change: auto;
  }
}

/* Enhancement layer for mobile navigation, accessibility, rich cards, and media states. */
:root {
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --focus-ring: 0 0 0 4px rgba(25, 211, 218, 0.28);
  --button-text-on-accent: #02141d;
}

body {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

body.modal-open {
  overflow: hidden;
}

p,
li {
  line-height: 1.72;
}

.section-heading p,
.section-content p,
.timeline-card p,
.history-card p,
.project-card p,
.testimonial-card p,
.form-note,
.footer-note {
  max-width: 75ch;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text-on-accent);
  padding: 0.75rem 1rem;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 0;
  box-shadow: var(--focus-ring);
}

button,
.btn,
.text-link,
.nav-links a,
.theme-toggle,
.nav-toggle {
  touch-action: manipulation;
}

.nav-links a,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.nav-links a.is-active,
.nav-links a[aria-current="true"] {
  color: var(--text);
  background: rgba(25, 211, 218, 0.13);
  box-shadow: inset 0 0 0 1px rgba(25, 211, 218, 0.28);
}

.nav-links a:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.text-link:focus-visible,
.carousel-control:focus-visible,
.modal-close:focus-visible,
.video-placeholder:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}

.theme-toggle {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 211, 218, 0.42);
}

.theme-toggle-icon {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(25, 211, 218, 0.16);
  color: var(--accent);
}

.nav-toggle {
  position: relative;
  place-items: center;
  padding: 0;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 211, 218, 0.42);
}

.nav-toggle span {
  transition: transform 0.24s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-backdrop[hidden] {
  display: none;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.btn {
  cursor: pointer;
  gap: 0.4rem;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.54;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  color: var(--button-text-on-accent);
  background: linear-gradient(135deg, #5eead4, #38bdf8);
}

.btn-primary:hover {
  box-shadow: 0 18px 42px rgba(25, 211, 218, 0.34);
}

.btn-secondary:hover {
  border-color: rgba(25, 211, 218, 0.4);
  background: rgba(25, 211, 218, 0.11);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  color: var(--button-text-on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.text-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  font: inherit;
  font-weight: 900;
}

.text-link::after,
.footer a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.footer a:hover::after {
  transform: scaleX(1);
}

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(25, 211, 218, 0.24), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(56, 189, 248, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent 45%);
}

.hero-card {
  transform-style: preserve-3d;
}

.image-loader {
  position: relative;
  overflow: hidden;
}

.image-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent),
    rgba(184, 199, 217, 0.14);
  background-size: 220% 100%, 100% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.image-loader img {
  opacity: 0.72;
  filter: blur(14px);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

.image-loader.is-loaded::after,
.image-loader.is-error::after {
  opacity: 0;
  visibility: hidden;
}

.image-loader.is-loaded img {
  opacity: 1;
  filter: blur(0);
}

@keyframes skeletonShimmer {
  to {
    background-position: -220% 0, 0 0;
  }
}

.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.skill-group {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.skill-group-header span {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-group-header p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.skill {
  position: relative;
  border-radius: 18px;
  padding: 0.95rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.skill:hover,
.skill:focus-within {
  transform: translateY(-2px);
  border-color: rgba(25, 211, 218, 0.32);
  background: rgba(25, 211, 218, 0.08);
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.skill-top span {
  margin: 0;
}

.skill-top b {
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.skill:hover .skill-top b,
.skill:focus-within .skill-top b,
.skill.is-filled .skill-top b {
  opacity: 1;
  transform: translateY(0);
}

.skill-track {
  margin-top: 0.75rem;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(184, 199, 217, 0.18);
}

.skill i {
  width: 0;
  animation: none !important;
  background: var(--skill-gradient, linear-gradient(90deg, var(--accent), var(--accent-2)));
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill.is-filled i {
  width: var(--skill-percent, 0%);
}

.skill[data-category="core"] {
  --skill-gradient: linear-gradient(90deg, #22d3ee, #38bdf8);
}

.skill[data-category="specialized"] {
  --skill-gradient: linear-gradient(90deg, #34d399, #22d3ee);
}

.skill[data-category="creative"] {
  --skill-gradient: linear-gradient(90deg, #a78bfa, #38bdf8);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(25, 211, 218, 0.35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.project-media {
  display: grid;
  min-height: 132px;
  place-items: center;
  border: 1px solid rgba(25, 211, 218, 0.18);
  border-radius: calc(var(--radius) - 10px);
  background:
    radial-gradient(circle at 30% 30%, rgba(25, 211, 218, 0.28), transparent 12rem),
    linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(255, 255, 255, 0.04));
}

.project-media span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 24px;
  background: rgba(6, 17, 31, 0.76);
  color: #ecfeff;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.light .project-media span {
  background: rgba(255, 255, 255, 0.82);
  color: #034452;
}

.project-body {
  display: grid;
  gap: 0.9rem;
}

.project-body p {
  margin-bottom: 0;
}

.metric-badges,
.tool-chips,
.modal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric-badges span,
.tool-chips span,
.modal-chip-row span,
.company-mark {
  border: 1px solid rgba(25, 211, 218, 0.24);
  border-radius: 999px;
  background: rgba(25, 211, 218, 0.09);
  color: var(--text);
  padding: 0.42rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.metric-badges span {
  color: #ecfeff;
  background: linear-gradient(135deg, rgba(25, 211, 218, 0.28), rgba(56, 189, 248, 0.18));
}

body.light .metric-badges span {
  color: #034452;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(780px, calc(100dvh - 2rem));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.modal-section {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.modal-section ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.video-frame iframe:not([src]) {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 0.8rem;
  cursor: pointer;
  border: 0;
  background:
    linear-gradient(rgba(6, 17, 31, 0.38), rgba(6, 17, 31, 0.82)),
    radial-gradient(circle at 30% 20%, rgba(25, 211, 218, 0.32), transparent 18rem),
    var(--bg-soft);
  color: var(--text);
  padding: 2rem;
  text-align: center;
}

.video-frame.is-playing .video-placeholder {
  display: none;
}

.play-button {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 46px rgba(25, 211, 218, 0.28);
}

.play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-block: 13px solid transparent;
  border-left: 20px solid var(--button-text-on-accent);
}

.video-transcript {
  max-width: 860px;
  margin: 1rem auto 0;
  color: var(--muted);
  text-align: center;
}

.testimonial-carousel {
  position: relative;
}

.testimonial-author {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar {
  display: grid !important;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--button-text-on-accent) !important;
  font-weight: 900;
}

.rating {
  margin-bottom: 1rem;
  color: #facc15;
  letter-spacing: 0.08em;
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: rgba(25, 211, 218, 0.18);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
}

.company-mark {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 0.2rem;
}

.carousel-control,
.carousel-dots {
  display: none;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: var(--shadow);
}

.carousel-prev {
  left: -0.6rem;
}

.carousel-next {
  right: -0.6rem;
}

.carousel-dots {
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.carousel-dots button {
  width: 11px;
  height: 11px;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: rgba(184, 199, 217, 0.4);
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dots button.is-active {
  width: 28px;
  background: var(--accent);
}

.contact-card {
  display: grid;
  gap: 1.5rem;
}

.direct-contact {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(25, 211, 218, 0.08);
  padding: 1rem;
}

.direct-contact h3 {
  margin-bottom: 0.35rem;
}

.direct-contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.direct-contact .hero-actions {
  margin: 1rem 0 0;
}


.embed-fallback,
.form-note,
.field-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-note {
  margin: 0;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.09);
  padding: 0.85rem 1rem;
}

.form-note code {
  color: var(--accent);
  font-weight: 900;
}

.form-field {
  position: relative;
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.form-field label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.form-field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 0.22s ease;
}

.form-field:focus-within::after {
  transform: scaleX(1);
}

.field-status {
  position: absolute;
  right: 0.95rem;
  bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.form-field.is-valid .field-status {
  color: var(--success);
}

.form-field.is-invalid .field-status {
  color: var(--danger);
}

.form-field.is-valid input,
.form-field.is-valid textarea {
  border-color: rgba(34, 197, 94, 0.5);
}

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: rgba(239, 68, 68, 0.58);
}

.field-meta {
  justify-self: end;
}

.form-message {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font-weight: 800;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--success);
}

.form-message.error {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}

.footer-sitemap h2 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-sitemap a {
  position: relative;
  display: flex;
  width: fit-content;
  margin-bottom: 0.45rem;
}


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

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

  .testimonial-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 1rem;
    scroll-snap-type: x mandatory;
    padding: 0.25rem 0.25rem 0.8rem;
  }

  .testimonial-card {
    flex: 0 0 min(82vw, 420px);
    scroll-snap-align: start;
  }

  .carousel-control {
    display: grid;
    place-items: center;
  }

  .carousel-dots {
    display: flex;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .nav-toggle {
    display: grid;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.52);
    backdrop-filter: blur(7px);
  }

  .nav-links {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    width: min(84vw, 340px);
    height: 100dvh;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 0 28px 28px 0;
    background: var(--bg);
    box-shadow: var(--shadow);
    opacity: 1;
    padding: calc(76px + 1rem) 1rem 1rem;
    transform: translateX(-104%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nav-links.is-open {
    max-height: none;
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    border-radius: 16px;
    padding: 0.85rem 1rem;
    text-align: left;
  }

  .hero {
    padding: 52px 0 78px;
  }

  .hero-grid {
    gap: 4rem;
  }

  h1 {
    letter-spacing: -0.07em;
  }

  h2 {
    line-height: 1.08;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .skills-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .skill-top b {
    opacity: 1;
    transform: none;
  }

  .project-card:hover {
    transform: translateY(-3px);
  }

  .project-actions {
    flex-direction: column;
  }

  .testimonial-card {
    flex-basis: min(88vw, 360px);
  }

  .carousel-prev {
    left: 0.2rem;
  }

  .carousel-next {
    right: 0.2rem;
  }

  .contact-card {
    padding: 1rem;
  }


  .footer-sitemap {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 520px) {
  .section {
    padding: 64px 0;
  }

  .project-media {
    min-height: 110px;
  }

  .modal-dialog {
    padding: 1.1rem;
  }

  .footer-sitemap {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .image-loader::after {
    animation: none !important;
  }

  .project-card:hover,
  .skill:hover,
  .btn:hover,
  .theme-toggle:hover,
  .nav-toggle:hover {
    transform: none;
  }
}

/* Sighthound recruiter brand refresh */
@font-face {
  font-family: "Lexend";
  src: url("assets/fonts/Lexend-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root,
body.light {
  --sh-blurple: #4f60dc;
  --sh-blurple-700: #3d4bc2;
  --sh-blurple-800: #2e3ba4;
  --sh-blurple-100: #dee2f8;
  --sh-blurple-50: #eef1fc;
  --sh-navy: #1a1d38;
  --sh-navy-700: #2a2e56;
  --sh-navy-500: #4b4f73;
  --sh-gray: #eff3f7;
  --sh-gray-200: #d9dfe6;
  --sh-gray-600: #64708a;
  --sh-orange-light: #f99f25;
  --sh-orange-medium: #f05d22;
  --sh-orange-red: #f62470;
  --bg: #ffffff;
  --bg-soft: #eff3f7;
  --bg-card: #ffffff;
  --text: var(--sh-navy);
  --muted: var(--sh-navy-500);
  --line: #e4e8ef;
  --accent: var(--sh-blurple);
  --accent-2: var(--sh-orange-red);
  --accent-dark: var(--sh-blurple-50);
  --button-text-on-accent: #ffffff;
  --focus-ring: 0 0 0 3px rgba(79, 96, 220, 0.35);
  --shadow: 0 18px 46px rgba(26, 29, 56, 0.12);
  --radius: 24px;
  --max-width: 1180px;
}

html {
  scroll-padding-top: 96px;
}

body,
body.light {
  font-family: "Lexend", Verdana, Geneva, sans-serif;
  font-weight: 350;
  color: var(--sh-navy);
  background:
    radial-gradient(circle at 8% 8%, rgba(79, 96, 220, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(246, 36, 112, 0.10), transparent 26rem),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 48%, #ffffff 100%);
  color-scheme: light;
}

body.nav-open {
  overflow: hidden;
}

.site-header,
body.light .site-header {
  border-bottom: 1px solid rgba(228, 232, 239, 0.9);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(26, 29, 56, 0.06);
}

.nav {
  min-height: 82px;
}

.logo {
  display: grid;
  gap: 0.12rem;
  color: var(--sh-navy);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--sh-navy);
  font-size: 1.12rem;
}

.logo small {
  color: var(--sh-blurple);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  gap: 0.35rem;
}

.nav-links a,
.theme-toggle {
  color: var(--sh-navy-500);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.is-active,
.nav-links a[aria-current="true"] {
  color: var(--sh-blurple);
  background: var(--sh-blurple-50);
  box-shadow: inset 0 0 0 1px var(--sh-blurple-100);
}

.nav-toggle {
  border-radius: 14px;
  background: #ffffff;
}

.nav-toggle span {
  background: var(--sh-navy);
}

.theme-toggle {
  display: none;
}

.section {
  padding: 96px 0;
}

.hero {
  position: relative;
  min-height: auto;
  padding: 88px 0 104px;
  background:
    linear-gradient(120deg, rgba(79, 96, 220, 0.12), rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 78% 10%, rgba(249, 159, 37, 0.13), transparent 24rem),
    #ffffff;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(79, 96, 220, 0.08), rgba(246, 36, 112, 0.08)),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  clip-path: ellipse(72% 30% at 50% 100%);
  top: auto;
  height: 48%;
}

.hero::after {
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(79, 96, 220, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 96, 220, 0.10) 1px, transparent 1px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

h1,
h2,
h3,
p {
  color: inherit;
}

h1 {
  max-width: 760px;
  color: var(--sh-navy);
  font-size: clamp(3.7rem, 9vw, 6.8rem);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

h2 {
  color: var(--sh-navy);
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  color: var(--sh-navy);
  font-weight: 500;
}

p,
li {
  color: var(--sh-navy-500);
}

.eyebrow,
.timeline-card span,
.project-card span,
.prompt-card span,
.resume-preview-note span,
.skill-group-header span {
  color: var(--sh-blurple);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.hero .eyebrow {
  border-color: var(--sh-blurple-100);
  color: var(--sh-blurple-800);
  background: rgba(238, 241, 252, 0.86);
  box-shadow: none;
  text-shadow: none;
}

.title {
  max-width: 760px;
  color: var(--sh-blurple);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.value-prop {
  max-width: 720px;
  color: var(--sh-navy-500);
  font-size: 1.08rem;
}

.hero-grid,
.split-grid,
.resume-grid,
.contact-grid {
  align-items: center;
}

.btn {
  min-height: 50px;
  border-radius: 20px;
  padding: 14px 29px;
  font-weight: 400;
  letter-spacing: -0.01em;
  box-shadow: none;
  transition: background 200ms cubic-bezier(0.2, 0, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0, 0.2, 1), color 200ms cubic-bezier(0.2, 0, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0, 0.2, 1);
}

.btn:hover,
.btn:active {
  transform: none;
}

.btn-primary,
.footer-cta .footer-link-primary {
  border-color: var(--sh-blurple);
  color: #ffffff;
  background: var(--sh-blurple);
}

.btn-primary:hover {
  background: var(--sh-blurple-700);
  box-shadow: none;
}

.btn-secondary {
  border-color: var(--sh-navy);
  color: var(--sh-navy);
  background: #ffffff;
}

.btn-secondary:hover {
  border-color: var(--sh-navy);
  color: #ffffff;
  background: var(--sh-navy);
}

.btn-ghost {
  border-color: transparent;
  color: var(--sh-blurple);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--sh-blurple-800);
  background: var(--sh-blurple-50);
}

.hero-metrics div,
.profile-card,
.timeline-card,
.project-card,
.testimonial-card,
.contact-card,
.resume-preview,
.skill-group,
.ats-keywords,
.recruiter-snapshot article,
.direct-contact,
.prompt-summary article,
.prompt-card,
.prompt-guidelines {
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(26, 29, 56, 0.10);
}

.hero-metrics div {
  border-radius: 14px;
  padding: 1rem;
}

.hero-metrics strong,
.profile-card strong,
.recruiter-snapshot strong {
  color: var(--sh-navy);
  font-weight: 600;
}

.hero-metrics span,
.profile-card span,
.project-topline,
.testimonial-card span {
  color: var(--sh-navy-500);
}

.image-ring {
  background: linear-gradient(135deg, var(--sh-blurple), transparent 52%, var(--sh-orange-red));
  box-shadow: 0 20px 44px rgba(26, 29, 56, 0.16);
}

.image-ring::before {
  background: conic-gradient(from 140deg, rgba(79, 96, 220, 0.28), transparent 34%, rgba(246, 36, 112, 0.20), transparent 70%);
}

.image-ring img {
  border-color: #ffffff;
}

.profile-card {
  display: grid;
  gap: 0.45rem;
}

.profile-card p {
  color: var(--sh-blurple);
  font-weight: 600;
}

.profile-company-logo {
  width: 170px;
  margin-top: 0.3rem;
  border-radius: 8px;
}


.alt-section {
  border-block: 1px solid #e4e8ef;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 96, 220, 0.10), transparent 28rem),
    var(--sh-gray);
}

.section-heading p,
.section-content p {
  color: var(--sh-navy-500);
}

.recruiter-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.6rem 0 0;
}

.recruiter-snapshot article {
  padding: 1rem;
}

.recruiter-snapshot span,
.contact-proof-list span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--sh-blurple);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-cloud span,
.metric-badges span,
.tool-chips span,
.modal-chip-row span,
.company-mark,
.contact-proof-list span {
  border-color: var(--sh-blurple-100);
  background: var(--sh-blurple-50);
  color: var(--sh-navy);
  font-weight: 500;
}

.metric-badges span {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sh-blurple), var(--sh-orange-red));
}

.timeline,
.project-grid,
.testimonial-grid {
  gap: 1.4rem;
}

.timeline-card,
.project-card,
.testimonial-card {
  padding: 1.45rem;
}

.timeline-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--sh-blurple-100);
  box-shadow: 0 22px 48px rgba(26, 29, 56, 0.14);
}

.role-card-header {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.role-logo {
  width: 148px;
  border-radius: 10px;
}

.role-title {
  color: var(--sh-navy) !important;
  font-weight: 600;
}

.current-badge {
  background: var(--sh-blurple);
  color: #ffffff;
}

.skill:hover,
.skill:focus-within {
  border-color: var(--sh-blurple-100);
  background: var(--sh-blurple-50);
}

.skill-top b {
  color: var(--sh-blurple);
  font-weight: 600;
}

.skill i,
.skill[data-category="core"],
.skill[data-category="specialized"],
.skill[data-category="creative"] {
  --skill-gradient: linear-gradient(90deg, var(--sh-blurple), var(--sh-orange-red));
}

.ats-keywords {
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.ats-keywords h3 {
  margin-bottom: 0.45rem;
}

.ats-keywords p {
  margin-bottom: 0;
}

.project-media {
  min-height: 150px;
  border-color: var(--sh-blurple-100);
  background:
    radial-gradient(circle at 30% 30%, rgba(79, 96, 220, 0.18), transparent 12rem),
    linear-gradient(135deg, rgba(79, 96, 220, 0.10), rgba(246, 36, 112, 0.08));
}

.project-media span {
  background: rgba(26, 29, 56, 0.88);
  color: #ffffff;
}

.project-media-image {
  position: relative;
  overflow: hidden;
}

.project-media-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 29, 56, 0.10), rgba(26, 29, 56, 0.58));
}

.project-media-image span {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  min-width: 112px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-topline strong {
  color: rgba(79, 96, 220, 0.14);
}

.text-link,
.footer a {
  color: var(--sh-blurple);
  font-weight: 600;
}

.video-frame {
  border-color: #e4e8ef;
  background: #ffffff;
}

.video-placeholder {
  background:
    linear-gradient(rgba(26, 29, 56, 0.24), rgba(26, 29, 56, 0.74)),
    radial-gradient(circle at 30% 20%, rgba(79, 96, 220, 0.32), transparent 18rem),
    var(--sh-navy);
}

.play-button,
.avatar {
  background: linear-gradient(135deg, var(--sh-blurple), var(--sh-orange-red));
  color: #ffffff !important;
}

.play-button::before {
  border-left-color: #ffffff;
}

.rating {
  color: var(--sh-orange-light);
}

.testimonial-card::before {
  color: rgba(79, 96, 220, 0.12);
}

.contact-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(79, 96, 220, 0.16), transparent 28rem),
    linear-gradient(135deg, #ffffff, var(--sh-gray));
}

.contact-proof-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.contact-proof-list span {
  width: fit-content;
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.social-links a {
  border-color: var(--sh-blurple-100);
  background: #ffffff;
  color: var(--sh-navy-500);
  font-weight: 500;
}

.social-links a:hover {
  color: var(--sh-blurple);
}

.direct-contact {
  background: linear-gradient(135deg, var(--sh-blurple-50), #ffffff);
}


label {
  color: var(--sh-navy);
  font-weight: 500;
}

input,
textarea,
body.light input,
body.light textarea {
  border-color: #d9dfe6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--sh-navy);
}

input:focus,
textarea:focus {
  border-color: var(--sh-blurple);
  box-shadow: var(--focus-ring);
}

.field-status {
  bottom: 0.95rem;
}

.form-message.success {
  background: rgba(31, 157, 85, 0.12);
  color: #1f9d55;
}

.form-message.error {
  background: rgba(246, 36, 112, 0.12);
  color: var(--sh-orange-red);
}

.footer {
  border-top: 0;
  background: var(--sh-navy);
  color: #dee2f8;
}

.footer-grid {
  border: 1px solid rgba(222, 226, 248, 0.14);
  background: rgba(42, 46, 86, 0.62);
  box-shadow: none;
}

.footer p,
.footer-note {
  color: #dee2f8;
}
.footer-sitemap h2 {
  color: #ffffff;
}

.footer-brand-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  margin-bottom: 1rem;
}

.footer .btn-primary {
  color: #ffffff;
}

.modal-dialog {
  border-color: #e4e8ef;
  background: #ffffff;
}

.modal-close {
  background: #ffffff;
  color: var(--sh-navy);
}

.modal-section ul {
  color: var(--sh-navy-500);
}

@media (max-width: 980px) {
  .recruiter-snapshot {
    grid-template-columns: 1fr;
  }


  .role-card-header {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-backdrop {
    background: rgba(26, 29, 56, 0.52);
  }

  .nav-links {
    background: #ffffff;
  }

  .hero {
    padding: 60px 0 82px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  .project-media-image span {
    min-width: 0;
  }

  .footer-grid,
  .footer-sitemap {
    grid-template-columns: 1fr;
  }
}

/* Fortune 500 recruiter polish: proof hierarchy, role progression, and credibility signals. */
.hero-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.hero-metrics strong {
  font-size: clamp(0.78rem, 1.1vw, 1.08rem);
  line-height: 1.2;
  color: #111111;
  white-space: nowrap;
}
.hero-metrics div {
  display: grid;
  align-content: start;
  min-height: 136px;
  padding: 1.1rem;
}

.hero-metrics span {
  display: -webkit-box;
  margin-top: 0.45rem;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


.role-progression {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: -0.35rem 0 1.1rem;
}

.role-progression span {
  display: block;
  border: 1px solid var(--sh-blurple-100);
  border-radius: 999px;
  background: var(--sh-blurple-50);
  color: var(--sh-navy);
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}


.footer-name {
  display: block;
  margin-bottom: 0.7rem;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Clean contact and footer structure after removing phone, scheduling, and form paths. */
.contact-grid-clean {
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.78fr);
  align-items: start;
}

.contact-grid-clean .section-heading {
  max-width: 700px;
}

.contact-card {
  align-self: start;
}

.contact-actions {
  margin-bottom: 0;
}

.icon-links,
.footer-social {
  display: grid;
  gap: 0.75rem;
}

.icon-links {
  margin-top: 0;
}

.icon-links a,
.footer-social a {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.2;
}

.social-icon {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--sh-blurple-50);
  color: var(--sh-blurple);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.footer-grid-clean {
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 2rem;
}

.footer-sitemap-clean {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-social a {
  color: #dee2f8;
}

.footer-social .social-icon {
  background: rgba(222, 226, 248, 0.12);
  color: #ffffff;
}

@media (max-width: 980px) {
  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-progression {
    grid-template-columns: 1fr;
  }

  .contact-grid-clean,
  .footer-grid-clean {
    grid-template-columns: 1fr;
  }
}

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

  .footer-sitemap-clean {
    grid-template-columns: 1fr;
  }
}

/* Recruiter layout refinements: intro, proof cards, spacing, and visibility. */
:root,
body.light {
  --sh-yellow: #f7d84b;
  --sh-yellow-soft: rgba(247, 216, 75, 0.24);
}

body,
body.light {
  font-family: Lato, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 6%, rgba(79, 96, 220, 0.14), transparent 30rem),
    radial-gradient(circle at 82% 4%, rgba(247, 216, 75, 0.22), transparent 24rem),
    radial-gradient(circle at 94% 28%, rgba(246, 36, 112, 0.08), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f8f9ff 46%, #ffffff 100%);
}

.site-header {
  overflow: visible;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(16px, calc((100% - var(--max-width)) / 2));
  width: clamp(88px, 12vw, 148px);
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--sh-yellow), rgba(247, 216, 75, 0.28));
}

.logo small {
  position: relative;
  width: fit-content;
}

.logo small::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18%;
  bottom: -0.28rem;
  height: 3px;
  border-radius: 999px;
  background: var(--sh-yellow-soft);
}

.intro-section {
  background:
    radial-gradient(circle at 0% 12%, rgba(79, 96, 220, 0.12), transparent 26rem),
    radial-gradient(circle at 96% 4%, rgba(247, 216, 75, 0.18), transparent 24rem),
    #ffffff;
}

.intro-container {
  display: grid;
  gap: 60px;
}


.about-intro {
  display: grid;
  gap: 1.7rem;
}

.intro-heading {
  max-width: 980px;
}

.intro-heading h2 {
  max-width: 960px;
}

.about-copy-columns {
  max-width: 100%;
  column-count: 2;
  column-gap: clamp(2.5rem, 6vw, 5rem);
}

.about-copy-columns p {
  max-width: none;
  margin: 0;
  color: var(--sh-navy-500);
  font-size: clamp(1.04rem, 1.2vw, 1.14rem);
  line-height: 1.82;
}

#skills {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(238, 241, 252, 0.58) 48%, #ffffff 100%);
}

.skill-group,
.skill {
  overflow: visible;
}

.skill-top {
  min-height: 0;
  gap: 0.75rem;
  overflow: visible;
}

.skill-top span {
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: var(--sh-navy);
  line-height: 1.24;
  white-space: normal;
}

.skill-top b {
  flex: 0 0 auto;
  min-width: max-content;
  color: var(--sh-blurple);
  line-height: 1.2;
  opacity: 1;
  transform: none;
  white-space: nowrap;
}

.skill-track {
  overflow: hidden;
}

.skills-proof-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 60px 0 0;
}

.skills-proof-cards article {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.35rem;
}

.skills-proof-cards ul {
  display: grid;
  gap: 0.48rem;
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
}

.skills-proof-cards li {
  color: var(--sh-navy);
  line-height: 1.45;
}

.skills-proof-cards .proof-link {
  margin-top: auto;
  padding-top: 1rem;
}

.skills-proof-cards + .ats-keywords {
  margin-top: 60px;
}

@media (max-width: 980px) {
  .skills-proof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-copy-columns {
    column-count: 1;
  }
}

@media (max-width: 768px) {
  .intro-container {
    gap: 44px;
  }

  .skills-proof-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .skill-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* Portfolio change prompt refinements. */
.hero-card {
  gap: 0;
}

.profile-card {
  margin-top: 12px;
}

.hero-metrics div {
  min-height: 148px;
}

.hero-metrics strong {
  font-size: clamp(0.74rem, 0.92vw, 1rem);
  line-height: 1.16;
  white-space: nowrap;
}

.hero-metrics span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.intro-heading {
  padding: 0.4rem 0;
}

.intro-heading h2 {
  max-width: 1020px;
  margin: 0.55rem 0 1.35rem;
  font-size: clamp(2rem, 3.25vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
}

.about-copy-columns {
  max-width: 980px;
  column-count: 1;
}

.about-copy-columns p {
  margin-bottom: 1.6rem;
  line-height: 1.9;
}

#skills .section-heading.center {
  max-width: none;
}

#skills .section-heading.center h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  white-space: nowrap;
}

#skills .section-heading.center > p:not(.eyebrow) {
  max-width: none;
  font-size: clamp(0.92rem, 1.15vw, 1.06rem);
  white-space: nowrap;
}

.skill-group,
.skill,
.skill-top {
  overflow: visible;
}

.skill {
  min-height: auto;
  padding: 1rem;
}

.skill-top {
  min-height: 1.65rem;
  line-height: 1.35;
}

.skill-top span,
.skill-top b {
  line-height: 1.35;
}

.project-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-media-image .project-banner,
.project-media-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-logo-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: inline-flex;
  max-width: calc(100% - 1.7rem);
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(26, 29, 56, 0.86);
  color: #ffffff;
  padding: 0.48rem 0.68rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(26, 29, 56, 0.18);
}

.project-logo-badge-light {
  background: rgba(255, 255, 255, 0.94);
}

.project-media-image .project-logo-badge img {
  position: static;
  inset: auto;
  display: block;
  width: auto;
  max-width: 142px;
  height: auto;
  max-height: 32px;
  object-fit: contain;
}

.project-media-image span,
.project-media-placeholder span {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: calc(100% - 2rem);
  min-width: min(100%, 116px);
  border-radius: 999px;
  padding: 0.78rem 1rem;
  font-size: 0.8rem;
  line-height: 1.22;
  text-align: center;
}

body.light .project-media-image span,
body.light .project-media-placeholder span {
  background: rgba(26, 29, 56, 0.88);
  color: #ffffff;
}

.project-media-placeholder {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.2), transparent 12rem),
    linear-gradient(135deg, var(--sh-blurple), var(--sh-orange-red));
}

.project-media-cloud {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.24), transparent 12rem),
    linear-gradient(135deg, #4f60dc, #38bdf8);
}

.project-media-dental {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.24), transparent 12rem),
    linear-gradient(135deg, #087f8c, #4f60dc);
}

.project-media-ppl {
  background:
    radial-gradient(circle at 24% 24%, rgba(255, 255, 255, 0.26), transparent 12rem),
    linear-gradient(135deg, #1a1d38, #f99f25);
}

.project-media-atwood,
.project-media-rugs,
.project-media-brand,
.project-media-audit,
.project-media-brain {
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.22), transparent 12rem),
    linear-gradient(135deg, var(--sh-blurple), var(--sh-orange-red));
}

@media (max-width: 768px) {
  #skills .section-heading.center h2 {
    font-size: clamp(1.15rem, 5.2vw, 1.9rem);
  }

  #skills .section-heading.center > p:not(.eyebrow) {
    font-size: clamp(0.62rem, 2.25vw, 0.92rem);
  }
}

/* Final portfolio prompt pass: remove truncation, widen career cards, and support added media. */
.hero-card {
  align-content: start;
}

.profile-card {
  position: static;
  justify-self: center;
  margin-top: 12px;
  transform: none;
}

.hero-metrics div {
  height: auto;
  min-height: 168px;
}

.hero-metrics span {
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}


.project-media-image.project-media-cloud img {
  object-position: center;
}

.project-media-image.project-media-dental img {
  object-position: top center;
}

.project-media-image.project-media-ppl img {
  object-position: center;
}

#experience .section-heading.center {
  max-width: 1100px;
}

#experience .section-heading.center h2 {
  max-width: none;
  font-size: clamp(1.95rem, 3vw, 3rem);
  white-space: nowrap;
}

#experience .section-heading.center > p:not(.eyebrow) {
  max-width: 1040px;
  margin-inline: auto;
  font-size: clamp(0.94rem, 1.08vw, 1.06rem);
  line-height: 1.48;
}

#experience .timeline {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

#experience .timeline-card {
  width: 100%;
}

#experience .timeline-card li {
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .hero-metrics div {
    min-height: auto;
  }

  #experience .section-heading.center h2 {
    font-size: clamp(1.28rem, 6.2vw, 2rem);
  }

  #experience .section-heading.center > p:not(.eyebrow) {
    font-size: clamp(0.78rem, 2.7vw, 0.92rem);
    line-height: 1.35;
  }
}

/* =========================================
   Skills Platform Grid — Ali Ahad Portfolio
   ========================================= */

.skills-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.spg-card {
  background: #ffffff;
  border: 1px solid #e8e8f0;
  border-radius: 14px;
  padding: 22px 20px 18px;
}

.spg-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b8d;
  margin-bottom: 4px;
}

.spg-group-desc {
  font-size: 13px;
  color: #9090a8;
  margin-bottom: 18px;
  line-height: 1.4;
}

.spg-skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spg-skill {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 8px;
  margin-bottom: 4px;
  cursor: default;
  position: relative;
  transition: background 0.15s ease;
}

.spg-skill:hover {
  background: #f4f4fb;
}

/* Proof tooltip on hover */
.spg-skill::after {
  content: attr(data-proof);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #1e1e38;
  color: #f0f0f8;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  width: min(260px, calc(100vw - 32px));
  max-width: 90vw;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.spg-skill:hover::after {
  opacity: 1;
}

.skills-platform-grid .spg-card:nth-child(3n) .spg-skill::after {
  right: 0;
  left: auto;
}

.skills-platform-grid .spg-card:nth-child(3n + 2) .spg-skill::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Dot indicators */
.spg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
  margin-top: 0.45em;
}

.dot-expert {
  background: #534AB7;
}

.dot-strong {
  background: #1D9E75;
}

/* Skill name */
.spg-name {
  font-size: 14px;
  color: #1a1a2e;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

/* Level badge */
.spg-level {
  font-size: 11px;
  font-weight: 500;
  color: #8888aa;
  flex-shrink: 0;
  margin-left: auto;
  line-height: 1.35;
  padding-top: 0.14rem;
}

/* Legend */
.spg-legend {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
  margin-bottom: 8px;
  justify-content: center;
}

.spg-leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8888aa;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .spg-card {
    background: #1a1a2e;
    border-color: #2e2e4a;
  }
  .spg-group-label {
    color: #9090b8;
  }
  .spg-group-desc {
    color: #7070a0;
  }
  .spg-skill:hover {
    background: #24243c;
  }
  .spg-skill::after {
    background: #0e0e20;
    color: #e0e0f0;
  }
  .spg-name {
    color: #e8e8f8;
  }
  .spg-level {
    color: #6060a0;
  }
  .spg-leg-item {
    color: #7070a0;
  }
}

body.light .spg-card {
  background: #ffffff;
  border-color: #e8e8f0;
}

body.light .spg-group-label {
  color: #6b6b8d;
}

body.light .spg-group-desc {
  color: #9090a8;
}

body.light .spg-skill:hover {
  background: #f4f4fb;
}

body.light .spg-skill::after {
  background: #1e1e38;
  color: #f0f0f8;
}

body.light .spg-name {
  color: #1a1a2e;
}

body.light .spg-level,
body.light .spg-leg-item {
  color: #8888aa;
}

body:not(.light) .spg-card {
  background: #1a1a2e;
  border-color: #2e2e4a;
}

body:not(.light) .spg-group-label {
  color: #9090b8;
}

body:not(.light) .spg-group-desc {
  color: #7070a0;
}

body:not(.light) .spg-skill:hover {
  background: #24243c;
}

body:not(.light) .spg-skill::after {
  background: #0e0e20;
  color: #e0e0f0;
}

body:not(.light) .spg-name {
  color: #e8e8f8;
}

body:not(.light) .spg-level,
body:not(.light) .spg-leg-item {
  color: #7070a0;
}

@media (max-width: 1024px) {
  .skills-platform-grid .spg-card:nth-child(n) .spg-skill::after {
    right: auto;
    left: 0;
    transform: none;
  }

  .skills-platform-grid .spg-card:nth-child(even) .spg-skill::after {
    right: 0;
    left: auto;
  }
}

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

  .skills-platform-grid .spg-card:nth-child(n) .spg-skill::after {
    right: auto;
    left: 0;
    transform: none;
  }

  .spg-legend {
    justify-content: flex-start;
  }
}

/* ================================================
   Projects Section — Role Filter + Achievement Cards
   Ali Ahad Portfolio
   ================================================ */

/* Filter wrap */
.proj-filter-wrap {
  text-align: center;
  margin-bottom: 32px;
}

.proj-filter-label {
  font-size: 13px;
  color: #6b6b80;
  margin-bottom: 12px;
}

.proj-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 12px;
}

.prf-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid #e0e0ee;
  background: #ffffff;
  color: #666;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.prf-btn:hover {
  border-color: #AFA9EC;
  color: #3C3489;
  background: #EEEDFE;
}

.prf-btn.active {
  background: #534AB7;
  border-color: #534AB7;
  color: #ffffff;
}

.proj-filter-result {
  font-size: 12px;
  color: #8e8e9e;
  min-height: 18px;
  transition: color 0.2s;
}

/* Card grid */
.proj-ach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

/* Individual card */
.prj-card {
  background: #ffffff;
  border: 1px solid #ebebf5;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.prj-card.dimmed {
  opacity: 0.2;
  transform: scale(0.97);
}

.prj-card.highlighted {
  border-color: #AFA9EC;
}

/* Coloured banner */
.prj-banner {
  padding: 22px 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.prj-banner-purple { background: #EEEDFE; }
.prj-banner-blue   { background: #E6F1FB; }
.prj-banner-coral  { background: #FAECE7; }
.prj-banner-teal   { background: #E1F5EE; }
.prj-banner-amber  { background: #FAEEDA; }

.prj-num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
}

.prj-banner-purple .prj-num { color: #3C3489; }
.prj-banner-blue   .prj-num { color: #0C447C; }
.prj-banner-coral  .prj-num { color: #712B13; }
.prj-banner-teal   .prj-num { color: #085041; }
.prj-banner-amber  .prj-num { color: #633806; }

.prj-num-label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #111111;
}

.prj-banner-purple .prj-num-label { color: #534AB7; }
.prj-banner-blue   .prj-num-label { color: #185FA5; }
.prj-banner-coral  .prj-num-label { color: #993C1D; }
.prj-banner-teal   .prj-num-label { color: #0F6E56; }
.prj-banner-amber  .prj-num-label { color: #854F0B; }

/* Card body */
.prj-body {
  padding: 16px 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prj-domain-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-purple { background: #EEEDFE; color: #3C3489; }
.badge-blue   { background: #E6F1FB; color: #0C447C; }
.badge-coral  { background: #FAECE7; color: #712B13; }
.badge-teal   { background: #E1F5EE; color: #085041; }
.badge-amber  { background: #FAEEDA; color: #633806; }

.prj-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 8px;
  line-height: 1.3;
}

.prj-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.prj-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.prj-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}

.prj-pill-purple { background: #EEEDFE; border-color: #AFA9EC; color: #3C3489; }
.prj-pill-blue   { background: #E6F1FB; border-color: #B5D4F4; color: #0C447C; }
.prj-pill-coral  { background: #FAECE7; border-color: #F5C4B3; color: #712B13; }
.prj-pill-teal   { background: #E1F5EE; border-color: #9FE1CB; color: #085041; }
.prj-pill-amber  { background: #FAEEDA; border-color: #FAC775; color: #633806; }

/* Card footer */
.prj-footer {
  display: flex;
  gap: 16px;
  padding: 12px 0 16px;
  border-top: 1px solid #f0f0f8;
  flex-wrap: wrap;
  margin-top: auto;
}

.prj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
  transition: color 0.15s;
}

.prj-link:hover {
  color: #3C3489;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .proj-ach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .proj-ach-grid {
    grid-template-columns: 1fr;
  }
  .prf-btn {
    font-size: 12px;
    padding: 7px 13px;
  }
}

/* ================================================
   Work Experience Section — Impact Dashboard Cards
   Ali Ahad Portfolio — wx- namespace
   ================================================ */

.wx-card {
  background: #ffffff;
  border: 0.5px solid #ebebf5;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  border-left-width: 3px;
  border-left-style: solid;
}

.wx-card-purple { border-left-color: #534AB7; }
.wx-card-teal   { border-left-color: #1D9E75; }
.wx-card-amber  { border-left-color: #EF9F27; }
.wx-card-gray   { border-left-color: #B4B2A9; }

/* --- Header --- */
.wx-header {
  padding: 18px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wx-header-left { flex: 1; min-width: 0; }

.wx-co-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.wx-co {
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1.2;
}

.wx-co-link {
  text-decoration: none;
  color: #1a1a2e;
  transition: color 0.15s;
}

.wx-co-link:hover { color: #534AB7; text-decoration: underline; }

.wx-ind-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4f4fb;
  color: #6666aa;
  border: 0.5px solid #dcdcf0;
}

.wx-title {
  font-size: 13px;
  font-weight: 500;
  color: #555577;
  margin-bottom: 3px;
}

.wx-date {
  font-size: 11px;
  color: #aaaacc;
}

.wx-header-right {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.wx-badge-current {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #E1F5EE;
  color: #085041;
  border: 1px solid #9FE1CB;
}

.wx-badge-promo {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EEEDFE;
  color: #3C3489;
  border: 1px solid #AFA9EC;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Metric strip --- */
.wx-metrics {
  display: grid;
  border-top: 0.5px solid #ebebf5;
  margin-top: 16px;
}

.wx-metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wx-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.wx-met {
  padding: 14px 12px;
  border-right: 0.5px solid #ebebf5;
  text-align: center;
}

.wx-met:last-child { border-right: none; }

.wx-mval {
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.wx-mlbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.wx-mval-purple { color: #3C3489; }
.wx-mlbl-purple { color: #534AB7; }

.wx-mval-teal { color: #085041; }
.wx-mlbl-teal { color: #0F6E56; }

.wx-mval-amber { color: #633806; }
.wx-mlbl-amber { color: #854F0B; }

/* --- Promotion bar (Sighthound only) --- */
.wx-promo-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 20px;
  background: #EEEDFE;
  border-top: 0.5px solid #AFA9EC;
  border-bottom: 0.5px solid #AFA9EC;
}

.wx-promo-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #534AB7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.wx-promo-text {
  font-size: 12px;
  color: #3C3489;
  line-height: 1.5;
  margin: 0;
}

/* --- Sub-role chips (Sighthound) --- */
.wx-sub-roles {
  padding: 12px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wx-sub-role {
  background: #f8f8fc;
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.wx-sub-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a2e;
}

.wx-sub-date {
  font-size: 11px;
  color: #8888aa;
}

/* --- Body --- */
.wx-body {
  padding: 14px 20px 6px;
}

.wx-desc {
  font-size: 12px;
  color: #777799;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* --- Pills --- */
.wx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
}

.wx-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}

.wx-pill-purple { background: #EEEDFE; border-color: #AFA9EC; color: #3C3489; }
.wx-pill-teal   { background: #E1F5EE; border-color: #9FE1CB; color: #085041; }
.wx-pill-amber  { background: #FAEEDA; border-color: #FAC775; color: #633806; }
.wx-pill-gray   {
  background: #f4f4f4;
  border-color: #dcdcdc;
  color: #666666;
}

/* --- Footer (links + chips) --- */
.wx-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 14px;
  border-top: 0.5px solid #ebebf5;
  flex-wrap: wrap;
}

.wx-footer-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #aaaacc;
}

.wx-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
  transition: color 0.15s;
}

.wx-link:hover { color: #3C3489; text-decoration: underline; }

.wx-chip-link {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f8f8fc;
  border: 0.5px solid #dcdcf0;
  color: #534AB7;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.wx-chip-link:hover {
  background: #EEEDFE;
  border-color: #AFA9EC;
}

/* --- Dual grid (Dyson + PwC) --- */
.wx-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.wx-dual-left {
  padding: 16px 16px 16px 20px;
}

.wx-dual-right {
  padding: 16px 20px 16px 16px;
  border-left: 0.5px solid #ebebf5;
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  .wx-card {
    background: #1a1a2e;
    border-color: #2e2e4a;
  }
  .wx-co, .wx-co-link { color: #e8e8f8; }
  .wx-co-link:hover { color: #AFA9EC; }
  .wx-ind-badge { background: #24243c; color: #8888bb; border-color: #3a3a5c; }
  .wx-title { color: #9999bb; }
  .wx-date { color: #666688; }
  .wx-metrics { border-color: #2e2e4a; }
  .wx-met { border-color: #2e2e4a; }
  .wx-promo-bar { background: #26215C; border-color: #534AB7; }
  .wx-promo-text { color: #CECBF6; }
  .wx-sub-role { background: #22223a; }
  .wx-sub-title { color: #e8e8f8; }
  .wx-sub-date { color: #6666aa; }
  .wx-desc { color: #8888aa; }
  .wx-footer { border-color: #2e2e4a; }
  .wx-chip-link { background: #22223a; border-color: #3a3a5c; color: #AFA9EC; }
  .wx-chip-link:hover { background: #26215C; border-color: #534AB7; }
  .wx-pill-gray { background: #2a2a2a; border-color: #444; color: #aaaaaa; }
  .wx-dual-right { border-color: #2e2e4a; }
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .wx-metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-dual-grid { grid-template-columns: 1fr; }
  .wx-dual-right { border-left: none; border-top: 0.5px solid #ebebf5; padding: 16px 20px; }
  .wx-header { flex-direction: column; gap: 10px; }
  .wx-header-right { flex-direction: row; }
}

@media (max-width: 480px) {
  .wx-metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wx-metrics-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wx-footer { gap: 6px; }
}

/* ================================================
   About Section — Concept 1 + 4 Combined
   Ali Ahad Portfolio — ab- namespace
   ================================================ */

.ab-outer {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

/* --- Top grid --- */
.ab-top-grid {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 28px;
  align-items: start;
  margin-bottom: 0;
}

.ab-left { display: flex; flex-direction: column; gap: 0; }

/* --- Eyebrow --- */
.ab-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b80;
  margin: 0 0 14px;
}

/* --- Identity row: photo + name --- */
.ab-identity-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* Photo ring — gradient border matching existing site style */
.ab-photo-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #534AB7 0%, #D4537E 100%);
  padding: 3px;
  flex-shrink: 0;
}

.ab-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f5c518;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ab-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Name block */
.ab-name-block { display: flex; flex-direction: column; gap: 2px; }

.ab-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
  margin: 0;
}

.ab-current-title {
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  margin: 0;
}

.ab-location {
  font-size: 11px;
  color: #7a7a8e;
  margin: 0;
}

/* --- Headline --- */
.ab-headline {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.4;
  margin: 0 0 14px;
}

/* --- Bio paragraphs --- */
.ab-bio {
  font-size: 13px;
  color: #666;
  line-height: 1.75;
  margin: 0 0 10px;
}

/* --- Section label (reusable) --- */
.ab-section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b6b80;
  margin: 18px 0 10px;
}

/* --- Certifications --- */
.ab-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.ab-cert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 8px;
  background: #f8f8fc;
  border: 0.5px solid #e0e0ee;
  color: #555577;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ab-cert:hover {
  background: #EEEDFE;
  border-color: #AFA9EC;
  color: #3C3489;
}

.ab-cert-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* --- CTA buttons --- */
.ab-cta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ab-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: #534AB7;
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}

.ab-btn-primary:hover { background: #3C3489; }

.ab-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: transparent;
  color: #534AB7;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid #534AB7;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ab-btn-outline:hover {
  background: #EEEDFE;
  color: #3C3489;
  border-color: #3C3489;
}

/* --- Right column stats --- */
.ab-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ab-stat-card {
  background: #fff;
  border: 0.5px solid #ebebf5;
  border-radius: 12px;
  padding: 13px 14px;
  text-align: center;
}

.ab-stat-num {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  line-height: 1;
  margin-bottom: 3px;
}

.ab-stat-lbl {
  font-size: 11px;
  color: #6b6b80;
  line-height: 1.4;
}

.ab-role-card {
  background: #fff;
  border: 0.5px solid #ebebf5;
  border-radius: 12px;
  padding: 12px 14px;
}

.ab-role-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8e8e9e;
  margin: 0 0 4px;
}

.ab-role-title {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a2e;
  margin: 0 0 2px;
}

.ab-role-co {
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
}

.ab-role-co:hover { text-decoration: underline; }

/* --- Divider --- */
.ab-divider {
  border: none;
  border-top: 0.5px solid #ebebf5;
  margin: 28px 0 0;
}

/* --- Philosophy grid --- */
.ab-phil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.ab-phil-card {
  background: #fff;
  border-left: 3px solid #534AB7;
  border-top: 0.5px solid #ebebf5;
  border-right: 0.5px solid #ebebf5;
  border-bottom: 0.5px solid #ebebf5;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
}

.ab-phil-title {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 0 0 5px;
  line-height: 1.4;
}

.ab-phil-body {
  font-size: 12px;
  color: #777;
  line-height: 1.65;
  margin: 0;
}

/* --- Footer links row --- */
.ab-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-top: 16px;
  border-top: 0.5px solid #ebebf5;
}

.ab-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
  transition: color 0.15s;
}

.ab-footer-link:hover {
  color: #3C3489;
  text-decoration: underline;
}

.ab-footer-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* --- Dark mode --- */
@media (prefers-color-scheme: dark) {
  .ab-name { color: #e8e8f8; }
  .ab-headline { color: #e8e8f8; }
  .ab-bio { color: #8888aa; }
  .ab-cert {
    background: #1e1e38;
    border-color: #2e2e4a;
    color: #9999bb;
  }
  .ab-cert:hover {
    background: #26215C;
    border-color: #534AB7;
    color: #CECBF6;
  }
  .ab-stat-card, .ab-role-card {
    background: #1a1a2e;
    border-color: #2e2e4a;
  }
  .ab-stat-num { color: #e8e8f8; }
  .ab-stat-lbl { color: #6666aa; }
  .ab-role-title { color: #e8e8f8; }
  .ab-phil-card {
    background: #1a1a2e;
    border-top-color: #2e2e4a;
    border-right-color: #2e2e4a;
    border-bottom-color: #2e2e4a;
  }
  .ab-phil-title { color: #e8e8f8; }
  .ab-phil-body { color: #7777aa; }
  .ab-divider { border-color: #2e2e4a; }
  .ab-links-row { border-color: #2e2e4a; }
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .ab-top-grid {
    grid-template-columns: 1fr;
  }
  .ab-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ab-phil-grid {
    grid-template-columns: 1fr;
  }
  .ab-outer {
    padding: 32px 16px 28px;
  }
}

@media (max-width: 480px) {
  .ab-right {
    grid-template-columns: 1fr 1fr;
  }
  .ab-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ab-btn-primary, .ab-btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   About Me Section — Role Filter + Signal Stack
   Concept F + G Combined · am- namespace
   Ali Ahad Portfolio
   ================================================ */

.am-outer {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 40px;
}

/* Eyebrow label */
.am-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a7a8e;
  margin: 0 0 12px;
}

/* Section heading */
.am-heading {
  font-size: 22px;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.35;
  margin: 0 0 12px;
  max-width: 580px;
}

.am-summary {
  font-size: 13px;
  color: #777799;
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 720px;
}

.am-resource-panel {
  padding: 14px 16px;
  margin: 0 0 22px;
  border: 0.5px solid #ebebf5;
  border-radius: 14px;
  background: #f8f8fc;
}

.am-resource-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #777799;
  margin: 0 0 10px;
}

.am-resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.am-resource-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 0.5px solid #dcdcee;
  border-radius: 999px;
  background: #ffffff;
  color: #534AB7;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.15s ease;
}

.am-resource-link:hover {
  border-color: #AFA9EC;
  background: #EEEDFE;
  color: #3C3489;
  box-shadow: 0 8px 18px rgba(83, 74, 183, 0.12);
}

.am-resource-link:focus-visible {
  outline: 3px solid #AFA9EC;
  outline-offset: 2px;
}

.am-resource-primary {
  border-color: #534AB7;
  background: #534AB7;
  color: #ffffff;
}

.am-resource-primary:hover {
  border-color: #3C3489;
  background: #3C3489;
  color: #ffffff;
}

/* Filter area */
.am-filter-wrap {
  margin-bottom: 20px;
}

.am-filter-label {
  font-size: 12px;
  color: #6b6b80;
  margin: 0 0 10px;
}

.am-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.am-fb {
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  border: 0.5px solid #dcdcee;
  background: #ffffff;
  color: #666688;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.am-fb:hover {
  border-color: #AFA9EC;
  color: #3C3489;
  background: #EEEDFE;
}

.am-fb.active {
  background: #534AB7;
  border-color: #534AB7;
  color: #ffffff;
}

.am-filter-result {
  font-size: 12px;
  color: #7a7a8e;
  min-height: 18px;
  margin: 0;
  transition: color 0.2s;
}

.am-filter-result strong {
  color: #534AB7;
  font-weight: 500;
}

/* Signal stack container */
.am-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 0.5px solid #ebebf5;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
}

/* Individual signal row */
.am-row {
  display: grid;
  grid-template-columns: 8px 190px 1fr;
  align-items: stretch;
  border-bottom: 0.5px solid #ebebf5;
  transition: opacity 0.2s ease;
}

.am-row:last-child {
  border-bottom: none;
}

.am-row.dimmed {
  opacity: 0.18;
}

/* Colour accent strip */
.am-accent {
  width: 8px;
  flex-shrink: 0;
}

.am-accent-purple { background: #534AB7; }
.am-accent-teal   { background: #1D9E75; }
.am-accent-coral  { background: #993C1D; }
.am-accent-blue   { background: #185FA5; }
.am-accent-amber  { background: #EF9F27; }

/* Label block (left column) */
.am-label {
  padding: 14px 16px;
  border-right: 0.5px solid #ebebf5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.am-label-purple { background: #EEEDFE; }
.am-label-teal   { background: #E1F5EE; }
.am-label-coral  { background: #FAECE7; }
.am-label-blue   { background: #E6F1FB; }
.am-label-amber  { background: #FAEEDA; }

.am-label-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
}

.am-label-purple .am-label-title { color: #3C3489; }
.am-label-teal   .am-label-title { color: #085041; }
.am-label-coral  .am-label-title { color: #712B13; }
.am-label-blue   .am-label-title { color: #0C447C; }
.am-label-amber  .am-label-title { color: #633806; }

.am-label-sub {
  display: block;
  font-size: 10px;
}

.am-label-purple .am-label-sub { color: #534AB7; }
.am-label-teal   .am-label-sub { color: #0F6E56; }
.am-label-coral  .am-label-sub { color: #993C1D; }
.am-label-blue   .am-label-sub { color: #185FA5; }
.am-label-amber  .am-label-sub { color: #854F0B; }

/* Body block (right column) */
.am-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: #ffffff;
  transition: background 0.2s ease;
}

.am-row:not(.dimmed) .am-body.highlighted {
  background: #FAFAF8;
}

.am-desc {
  font-size: 12px;
  color: #777799;
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
}

.am-text-link {
  color: #534AB7;
  font-weight: 500;
  text-decoration: none;
}

.am-text-link:hover {
  color: #3C3489;
  text-decoration: underline;
}

.am-text-link:focus-visible {
  outline: 2px solid #AFA9EC;
  outline-offset: 2px;
}

/* Proof chips */
.am-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.am-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
}

.am-chip-purple { background: #EEEDFE; border-color: #AFA9EC; color: #3C3489; }
.am-chip-teal   { background: #E1F5EE; border-color: #9FE1CB; color: #085041; }
.am-chip-coral  { background: #FAECE7; border-color: #F5C4B3; color: #712B13; }
.am-chip-blue   { background: #E6F1FB; border-color: #B5D4F4; color: #0C447C; }
.am-chip-amber  { background: #FAEEDA; border-color: #FAC775; color: #633806; }

/* Proof bar */
.am-proof-bar {
  padding: 12px 16px;
  background: #f8f8fc;
  border: 0.5px solid #ebebf5;
  border-radius: 10px;
  font-size: 12px;
  color: #777799;
  line-height: 1.6;
  transition: opacity 0.2s;
}

.am-proof-bar strong {
  color: #1a1a2e;
  font-weight: 500;
}

.am-proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.am-proof-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 12px;
  border: 0.5px solid #dcdcee;
  border-radius: 999px;
  background: #ffffff;
  color: #534AB7;
  font-weight: 500;
  text-decoration: none;
}

.am-proof-links a:hover {
  border-color: #AFA9EC;
  background: #EEEDFE;
  color: #3C3489;
}

.am-proof-links a:focus-visible {
  outline: 3px solid #AFA9EC;
  outline-offset: 2px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  body:not(.light) .am-heading { color: #e8e8f8; }
  body:not(.light) .am-summary { color: #8888aa; }
  body:not(.light) .am-resource-panel { background: #1e1e38; border-color: #2e2e4a; }
  body:not(.light) .am-resource-label { color: #8888aa; }
  body:not(.light) .am-resource-link {
    background: #1a1a2e;
    border-color: #2e2e4a;
    color: #CECBF6;
  }
  body:not(.light) .am-resource-link:hover {
    background: #26215C;
    border-color: #534AB7;
    color: #ffffff;
  }
  body:not(.light) .am-resource-primary {
    background: #534AB7;
    border-color: #534AB7;
    color: #ffffff;
  }
  body:not(.light) .am-text-link { color: #CECBF6; }
  body:not(.light) .am-stack { border-color: #2e2e4a; }
  body:not(.light) .am-row { border-color: #2e2e4a; }
  body:not(.light) .am-label { border-color: #2e2e4a; }
  body:not(.light) .am-label-purple { background: #1e1b3a; }
  body:not(.light) .am-label-teal   { background: #0d2820; }
  body:not(.light) .am-label-coral  { background: #2a1208; }
  body:not(.light) .am-label-blue   { background: #091e38; }
  body:not(.light) .am-label-amber  { background: #1f1205; }
  body:not(.light) .am-body { background: #1a1a2e; }
  body:not(.light) .am-desc { color: #8888aa; }
  body:not(.light) .am-proof-bar { background: #1e1e38; border-color: #2e2e4a; color: #8888aa; }
  body:not(.light) .am-proof-bar strong { color: #e8e8f8; }
  body:not(.light) .am-proof-links a {
    background: #1a1a2e;
    border-color: #2e2e4a;
    color: #CECBF6;
  }
  body:not(.light) .am-proof-links a:hover {
    background: #26215C;
    border-color: #534AB7;
    color: #ffffff;
  }
  body:not(.light) .am-fb {
    background: #1a1a2e;
    border-color: #2e2e4a;
    color: #8888aa;
  }
  body:not(.light) .am-fb:hover {
    background: #26215C;
    border-color: #534AB7;
    color: #CECBF6;
  }
}

/* Responsive */
@media (max-width: 720px) {
  .am-row {
    grid-template-columns: 6px 1fr;
    grid-template-rows: auto auto;
  }
  .am-label {
    grid-column: 2;
    grid-row: 1;
    border-right: none;
    border-bottom: 0.5px solid #ebebf5;
  }
  .am-body {
    grid-column: 2;
    grid-row: 2;
  }
  .am-accent {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 6px;
  }
  .am-outer { padding: 32px 16px 28px; }
}

@media (max-width: 480px) {
  .am-chips { gap: 4px; }
  .am-filter-row { gap: 6px; }
  .am-fb { padding: 6px 12px; font-size: 11px; }
}

/* ================================================
   Recommendations Section — Signal Extraction Cards
   Concept 1 · rc- namespace
   Ali Ahad Portfolio
   ================================================ */
.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rc-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.5px solid #ebebf5;
  border-radius: 16px;
  background: #ffffff;
}

.rc-signal {
  position: relative;
  padding: 18px 20px 16px;
}

.rc-signal-purple { background: #eeedfe; }
.rc-signal-teal { background: #e1f5ee; }
.rc-signal-coral { background: #faece7; }
.rc-signal-blue { background: #e6f1fb; }

.rc-quote-icon {
  position: absolute;
  top: 12px;
  right: 16px;
  opacity: 0.15;
  font-size: 28px;
}

.rc-quote-icon::before {
  content: "“";
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
}

.rc-signal-purple .rc-quote-icon { color: #534ab7; }
.rc-signal-teal .rc-quote-icon { color: #1d9e75; }
.rc-signal-coral .rc-quote-icon { color: #993c1d; }
.rc-signal-blue .rc-quote-icon { color: #185fa5; }

.rc-pull-quote {
  margin: 0;
  padding-right: 28px;
  color: #3c3489;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.rc-signal-purple .rc-pull-quote { color: #3c3489; }
.rc-signal-teal .rc-pull-quote { color: #085041; }
.rc-signal-coral .rc-pull-quote { color: #712b13; }
.rc-signal-blue .rc-pull-quote { color: #0c447c; }

.rc-body {
  flex: 1;
  padding: 14px 20px;
  border-top: 0.5px solid #ebebf5;
}

.rc-full-text {
  margin: 0;
  color: #777799;
  font-size: 12px;
  font-style: italic;
  line-height: 1.7;
}

.rc-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 16px;
  border-top: 0.5px solid #ebebf5;
}

.rc-reviewer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.rc-av {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
}

.rc-av-purple { background: #eeedfe; color: #3c3489; }
.rc-av-teal { background: #e1f5ee; color: #085041; }
.rc-av-coral { background: #faece7; color: #712b13; }
.rc-av-blue { background: #e6f1fb; color: #0c447c; }

.rc-reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rc-name {
  color: #1a1a2e;
  font-size: 13px;
  font-weight: 500;
}

.rc-role {
  color: #9999bb;
  font-size: 11px;
  line-height: 1.4;
}

.rc-footer-right {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.rc-tag {
  display: inline-block;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 500;
}

.rc-tag-purple { background: #eeedfe; color: #3c3489; }
.rc-tag-teal { background: #e1f5ee; color: #085041; }
.rc-tag-coral { background: #faece7; color: #712b13; }
.rc-tag-blue { background: #e6f1fb; color: #0c447c; }

.rc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #534ab7;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.rc-link:hover {
  color: #3c3489;
  text-decoration: underline;
}

.rc-link-icon {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
}

@media (prefers-color-scheme: dark) {
  .rc-card {
    border-color: #2e2e4a;
    background: #1a1a2e;
  }

  .rc-signal-purple { background: #1e1b3a; }
  .rc-signal-teal { background: #0d2820; }
  .rc-signal-coral { background: #2a1208; }
  .rc-signal-blue { background: #091e38; }
  .rc-body { border-color: #2e2e4a; }
  .rc-full-text { color: #7777aa; }
  .rc-footer { border-color: #2e2e4a; }
  .rc-name { color: #e8e8f8; }
  .rc-role { color: #6666aa; }
  .rc-av-purple { background: #26215c; color: #cecbf6; }
  .rc-av-teal { background: #0d3828; color: #9fe1cb; }
  .rc-av-coral { background: #3a1a08; color: #f5c4b3; }
  .rc-av-blue { background: #0a2a50; color: #b5d4f4; }
}

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

  .rc-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .rc-footer-right {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .rc-pull-quote { font-size: 13px; }
  .rc-footer { padding: 12px 16px 14px; }
  .rc-signal { padding: 14px 16px 12px; }
  .rc-body { padding: 12px 16px; }
}

/* Browser verification fixes: prevent narrow-screen clipping in the hero/about layout. */
.ab-outer,
.ab-top-grid,
.ab-left,
.ab-right,
.ab-name-block,
.ab-identity-row,
.ab-phil-grid,
.ab-links-row {
  min-width: 0;
  max-width: 100%;
}

.ab-current-title,
.ab-location,
.ab-headline,
.ab-bio,
.ab-phil-title,
.ab-phil-body,
.ab-footer-link,
.rc-role,
.rc-link {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .hero {
    display: block;
  }

  .ab-outer {
    width: 100%;
  }

  .ab-top-grid,
  .ab-left,
  .ab-right,
  .ab-phil-grid,
  .ab-links-row {
    width: 100%;
    max-width: 358px;
  }
  .ab-identity-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    align-items: flex-start;
  }

  .ab-name-block {
    min-width: 0;
  }

  .ab-current-title {
    display: block;
    line-height: 1.45;
  }

  .ab-location {
    line-height: 1.45;
  }

  .ab-current-title,
  .ab-location,
  .ab-headline,
  .ab-bio,
  .ab-phil-title,
  .ab-phil-body {
    width: 100%;
    word-break: break-word;
  }

  .ab-cert {
    max-width: 100%;
    white-space: normal;
  }

  .ab-right {
    grid-template-columns: 1fr;
  }

  .ab-role-card {
    grid-column: 1 / -1;
  }

  .ab-cta-row {
    width: 100%;
  }

  .ab-btn-primary,
  .ab-btn-outline {
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .ab-phil-card {
    min-width: 0;
  }

  .ab-links-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .ab-footer-link {
    width: 100%;
    white-space: normal;
  }

  .rc-link {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .ab-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ab-btn-primary,
  .ab-btn-outline {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 420px) {

  .ab-name {
    font-size: 20px;
  }
}

/* ================================================
   Footer — Concept 1 Final CTA Edited
   Ali Ahad Portfolio — fo- namespace
   ================================================ */

/* Outer wrapper */
.fo-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Part 1: CTA block ── */
.fo-cta-block {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.fo-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5555aa;
  margin: 0 0 10px;
}

.fo-cta-heading {
  font-size: 22px;
  font-weight: 500;
  color: #e8e8f8;
  margin: 0 0 8px;
  line-height: 1.3;
}

.fo-cta-sub {
  font-size: 12px;
  color: #8888bb;
  margin: 0 0 20px;
}

.fo-btn-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary button */
.fo-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: #534AB7;
  color: #ffffff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background 0.15s ease;
  font-family: inherit;
}

.fo-btn-primary:hover { background: #3C3489; }

/* Outline button */
.fo-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: transparent;
  color: #9090cc;
  border: 1px solid #3a3a5c;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
  font-family: inherit;
}

.fo-btn-outline:hover {
  border-color: #CECBF6;
  color: #CECBF6;
}

/* Button icons */
.fo-btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── Divider ── */
.fo-divider {
  border: none;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  margin: 24px 0;
}

/* ── Part 2: Nav grid ── */
.fo-nav-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Brand column */
.fo-brand-name {
  font-size: 16px;
  font-weight: 500;
  color: #e8e8f8;
  margin: 0 0 5px;
}

.fo-brand-tagline {
  font-size: 11px;
  color: #8888bb;
  line-height: 1.5;
  margin: 0;
}

/* Column labels */
.fo-col-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5555aa;
  margin: 0 0 14px;
}

/* Nav links (Explore and Proof) */
.fo-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9090cc;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}

.fo-nav-link:hover { color: #CECBF6; }

.fo-nav-link:hover .fo-sq-icon {
  background: rgba(83, 74, 183, 0.25);
  border-color: #534AB7;
}

/* Square icon (Explore and Proof) */
.fo-sq-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: #9090cc;
}

/* Social links */
.fo-social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #9090cc;
  text-decoration: none;
  margin-bottom: 9px;
  transition: color 0.15s ease;
}

.fo-social-link:hover { color: #CECBF6; }

.fo-social-link:hover .fo-circle-icon {
  background: rgba(83, 74, 183, 0.25);
  border-color: #534AB7;
}

/* Circular icon (Social) */
.fo-circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: #CECBF6;
}

/* ── Part 3: Bottom bar ── */
.fo-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fo-copyright {
  font-size: 11px;
  color: #5555aa;
  margin: 0;
}

.fo-back-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #5555aa;
  text-decoration: none;
  transition: color 0.15s;
}

.fo-back-top:hover { color: #9090cc; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .fo-nav-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fo-brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .fo-nav-grid {
    grid-template-columns: 1fr;
  }
  .fo-brand-col {
    grid-column: span 1;
  }
  .fo-btn-row {
    flex-direction: column;
    align-items: center;
  }
  .fo-btn-primary,
  .fo-btn-outline {
    width: 100%;
    justify-content: center;
    max-width: 280px;
  }
}

.fo-inner a::after {
  content: none;
}
/* Master implementation overrides — 2026-05-31 */
:root,
body.light {
  --max-width: 960px;
}

.container,
.wrapper,
.main,
.content {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

body {
  font-size: 14px;
  line-height: 1.75;
  color: #111111;
}

p,
li,
span,
td,
th {
  font-size: inherit;
  color: inherit;
}

p {
  line-height: 1.75;
  margin-bottom: 14px;
}

li {
  line-height: 1.7;
  margin-bottom: 6px;
}

h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.section-eyebrow,
.section-label,
.eyebrow,
.ab-eyebrow,
.ab-section-label,
.am-eyebrow,
.fo-eyebrow,
.fo-col-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

section,
.section {
  padding-top: 56px;
  padding-bottom: 56px;
}

main > section + section {
  border-top: 1px solid #eef0f8;
}

.site-header,
body.light .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.nav-active,
.nav-links a.is-active,
.nav-links a[aria-current="true"] {
  color: #534AB7;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #534AB7;
  outline-offset: 2px;
  border-radius: 4px;
}

a[target="_blank"]:active {
  opacity: 0.7;
  transition: opacity 0.1s ease;
}

.btn-primary:hover,
.ab-btn-primary:hover,
.fo-btn-primary:hover {
  background: #3C3489;
  transition: background 0.15s ease;
}

.btn-secondary:hover,
.ab-btn-outline:hover,
.fo-btn-outline:hover {
  background: #EEEDFE;
  border-color: #534AB7;
  color: #3C3489;
  transition: all 0.15s ease;
}

a:hover {
  transition: color 0.15s ease;
}

.hero-metrics div,
.ab-stat-card,
.spg-card,
.prj-card,
.wx-card,
.rc-card,
.contact-card,
.resume-preview {
  height: auto;
  overflow: visible;
}

.hero-metrics span,
.prj-desc,
.wx-desc,
.rc-full-text,
.ab-stat-lbl,
.spg-name {
  display: block;
  overflow: visible;
  text-overflow: clip;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.proj-ach-grid {
  align-items: stretch;
}

.prj-card {
  height: 100%;
}

.prj-body {
  flex: 1;
}

.resume-preview-media {
  min-width: min(100%, 300px);
}

#video {
  position: relative;
  overflow: hidden;
}

.video-section {
  position: relative;
}

#video > .container {
  position: relative;
  z-index: 1;
}

#video::before,
#video::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  pointer-events: none;
  z-index: 0;
}

#video::before {
  top: 0;
  background: linear-gradient(to bottom, #f8f9ff, rgba(248, 249, 255, 0));
}

#video::after {
  bottom: 0;
  background: linear-gradient(to top, #f8f9ff, rgba(248, 249, 255, 0));
}

.contact-actions .btn,
.hero-actions .btn,
.am-resource-link,
.am-proof-links a,
.fo-btn-primary,
.fo-btn-outline {
  min-height: 44px;
}

@media (max-width: 960px) {
  .container,
  .wrapper,
  .main,
  .content {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 720px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .two-col,
  .grid-2,
  .ab-top-grid,
  .ab-phil-grid,
  .rc-grid,
  .wx-dual-grid,
  .resume-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .three-col,
  .grid-3,
  .proj-ach-grid,
  .skills-proof-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }

  .three-col,
  .grid-3,
  .proj-ach-grid,
  .skills-proof-cards {
    grid-template-columns: 1fr;
  }
}

@media print {
  nav,
  .video-section,
  .footer-cta-block,
  .fo-cta-block,
  .filter-buttons,
  .am-filter-wrap,
  .proj-filter-wrap,
  button {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000000;
    background: #ffffff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #444444;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Final recruiter-guide compliance layer. */
h1,
.ab-name {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #111111;
}

h2,
.section-heading h2,
.ab-headline,
.am-heading,
.fo-cta-heading {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: #111111;
}

h3,
.prj-title,
.direct-contact h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #111111;
}

h4,
h5,
h6 {
  font-size: 18px;
  font-weight: 700;
  color: #111111;
}

.section-heading p,
.section-content p,
.ab-bio,
.ab-phil-body,
.am-summary,
.am-desc,
.spg-group-desc,
.prj-desc,
.wx-desc,
.rc-full-text,
.direct-contact p,
.video-transcript,
.ats-keywords p {
  color: #111111;
  font-size: 14px;
  line-height: 1.75;
}

.muted-text,
.secondary-text,
.sub-text,
.ab-location,
.wx-date,
.rc-role {
  color: #444444;
}

.footer,
.footer p,
.fo-cta-heading,
.fo-brand-name,
.fo-brand-tagline,
.fo-cta-sub,
.fo-nav-link,
.fo-social-link,
.fo-copyright,
.fo-back-top {
  color: #dee2f8;
}

.fo-eyebrow,
.fo-col-label {
  color: #CECBF6;
}

@media (max-width: 720px) {
  .ab-name {
    font-size: 28px;
  }

  .ab-headline,
  .am-heading,
  .section-heading h2,
  .fo-cta-heading {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .ab-name {
    font-size: 24px;
  }

  .ab-headline,
  .am-heading,
  .section-heading h2,
  .fo-cta-heading {
    font-size: 20px;
  }
}

@media print {
  *,
  *::before,
  *::after {
    color: #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    background: #ffffff !important;
  }
}

/* Portfolio links and CTA prompt implementation — 2026-05-31 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background-color: #534AB7;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background-color: #3C3489;
}

.btn-outline,
.btn-secondary.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background-color: transparent;
  color: #534AB7;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid #534AB7;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline:hover,
.btn-secondary.btn-outline:hover {
  background-color: #EEEDFE;
  color: #3C3489;
  border-color: #3C3489;
}

.hero-text-link {
  font-size: 13px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
  transition: color 0.15s ease;
}

.hero-text-link:hover {
  color: #3C3489;
  text-decoration: underline;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  background: #EEEDFE;
  border: 1px solid #AFA9EC;
  color: #3C3489;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cert-badge:hover {
  background: #AFA9EC;
  color: #26215C;
}

.work-company-link,
.work-portfolio-link {
  font-size: 13px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
}

.work-company-link:hover,
.work-portfolio-link:hover {
  text-decoration: underline;
}

.project-card-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-client-link,
.project-evidence-link {
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
}

.project-client-link:hover,
.project-evidence-link:hover {
  text-decoration: underline;
}

.rec-linkedin-link {
  font-size: 12px;
  font-weight: 500;
  color: #534AB7;
  text-decoration: none;
}

.rec-linkedin-link:hover {
  text-decoration: underline;
}

.video-direct-link {
  display: inline-flex;
  width: fit-content;
  margin: 16px auto 0;
  color: #534AB7;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.video-direct-link:hover {
  color: #3C3489;
  text-decoration: underline;
}

.hero-cta-row,
.resume-cta-row,
.contact-cta-row,
.footer-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 480px) {
  .hero-cta-row,
  .resume-cta-row,
  .contact-cta-row,
  .footer-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}
