/* ===== Hero Section ===== */
:root {
  --hero-photo-left: clamp(28rem, 34vw, 44rem);
  --hero-photo-right: clamp(-8rem, -4vw, -3rem);
  --hero-photo-height: 122%;
  --hero-background-position: 36% 48%;
}

/* Keep anchored sections clear of the top edge/header */
main > section[id] {
  scroll-margin-top: 6.5rem;
}

@media (max-width: 768px) {
  main > section[id] {
    scroll-margin-top: 5.25rem;
  }
}

/* HERO BACKGROUND IMAGE */
.hero-bg {
    position: relative;
    min-height: clamp(390px, 43vh, 465px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    isolation: isolate;
    background-color: #f4f6f7;
}  

.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    right: var(--hero-photo-right);
    bottom: 0;
    left: var(--hero-photo-left);
    z-index: 1;
    pointer-events: none;
    background: url("../Images/optimized/hero-image-1200.jpg") var(--hero-background-position) / auto var(--hero-photo-height) no-repeat;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 5%,
        rgba(0, 0, 0, 0.55) 10%,
        rgba(0, 0, 0, 0.86) 16%,
        #000 26%,
        #000 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 5%,
        rgba(0, 0, 0, 0.55) 10%,
        rgba(0, 0, 0, 0.86) 16%,
        #000 26%,
        #000 100%
    );
}

.hero-wide-image {
    display: none;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            #f4f6f7 0%,
            rgba(244, 246, 247, 0.99) 26%,
            rgba(244, 246, 247, 0.78) 34%,
            rgba(244, 246, 247, 0.38) 43%,
            rgba(244, 246, 247, 0.12) 56%,
            rgba(244, 246, 247, 0) 70%
        ),
        radial-gradient(
            34% 82% at 16% 52%,
            rgba(244, 246, 247, 0.64) 0%,
            rgba(244, 246, 247, 0.38) 36%,
            rgba(244, 246, 247, 0.1) 62%,
            rgba(244, 246, 247, 0) 82%
        ),
        linear-gradient(
            180deg,
            rgba(244, 246, 247, 0.12) 0%,
            rgba(244, 246, 247, 0) 34%,
            rgba(244, 246, 247, 0) 72%,
            rgba(244, 246, 247, 0.08) 100%
        );
}

.hero-overlay {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: clamp(0.7rem, 1.4vw, 1.1rem) clamp(1rem, 2.2vw, 1.75rem) clamp(0.8rem, 1.5vw, 1.1rem) clamp(0.85rem, 1.8vw, 1.25rem);
    position: relative;
    z-index: 4;
}

.hero-layout {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(21rem, 0.62fr) minmax(0, 1.38fr);
  grid-template-areas:
    "text visual"
    "actions visual";
  align-items: end;
  gap: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(2rem, 4vw, 3.85rem);
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 3;
  height: clamp(3.1rem, 6vw, 5.15rem);
  color: #ffffff;
  pointer-events: none;
}

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

.hero-wave__fill {
  fill: currentColor;
}

.hero-wave__line {
  fill: none;
  stroke: rgba(30, 111, 114, 0.08);
  stroke-width: 2;
}

.hero-text {
  grid-area: text;
  position: relative;
  z-index: 2;
  max-width: 32rem;
  padding: clamp(0.55rem, 1.4vw, 1rem) 0 0.25rem;
  text-shadow: 0 10px 28px rgba(255, 255, 255, 0.6);
}

.hero-intro {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-text h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.3rem, 3.15vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 20ch;
  color: rgba(31, 42, 50, 0.96);
}

.hero-text h1 span {
  display: block;
  color: var(--accent);
}

.hero-summary {
  margin: 0 0 0.95rem;
  max-width: 23rem;
  font-size: clamp(0.98rem, 1.02vw, 1.08rem);
  line-height: 1.6;
  color: rgba(31, 42, 50, 0.82);
}

.hero-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
  margin-bottom: 0.65rem;
}

.hero-actions .btn-accent {
  min-width: 9.5rem;
  text-align: center;
  padding: 0.72rem 1.25rem;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.hero-actions .btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.hero-link::after {
  content: "→";
  font-size: 1.15em;
  transition: transform 0.18s ease;
}

.hero-link:hover::after,
.hero-link:focus-visible::after {
  transform: translateX(4px);
}

.hero-pillars {
  grid-area: pillars;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 32rem;
}

.hero-pillar {
  position: relative;
  display: block;
  padding: 0.52rem 0.68rem 0.58rem;
  border-radius: 0.82rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(31, 42, 50, 0.04);
  backdrop-filter: blur(6px);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.hero-pillar:hover,
.hero-pillar:focus-visible {
  border-color: rgba(30, 111, 114, 0.3);
  box-shadow: 0 12px 24px rgba(31, 42, 50, 0.08);
  transform: translateY(-2px);
}

.hero-pillar__icon,
.hero-pillar__arrow {
  display: none;
}

.hero-pillar h2 {
  margin: 0 0 0.25rem;
  font-size: 0.84rem;
  color: var(--heading-color);
}

.hero-pillar p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.38;
  color: rgba(31, 42, 50, 0.78);
}

.hero-visual {
  grid-area: visual;
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 0;
}

.hero-profile-card {
  position: absolute;
  right: clamp(1.6rem, 4vw, 4.5rem);
  bottom: clamp(-0.25rem, 0.25vw, 0.35rem);
  width: min(100%, 14rem);
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 1.3rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(14px);
}

@media (min-width: 1440px) {
  .hero-bg::before {
    content: none;
  }

  .hero-wide-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: -3px;
    z-index: 1;
    display: block;
    aspect-ratio: 3 / 2;
    pointer-events: none;
  }

  .hero-wide-image::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -16%;
    z-index: 2;
    width: 22%;
    background: linear-gradient(
      90deg,
      #f4f6f7 0%,
      rgba(244, 246, 247, 0.92) 30%,
      rgba(244, 246, 247, 0.52) 58%,
      rgba(244, 246, 247, 0.16) 82%,
      rgba(244, 246, 247, 0) 100%
    );
  }

  .hero-wide-image img {
    display: block;
    width: 100%;
    height: 100%;
    transform: scale(1.1);
    transform-origin: right center;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.8) 7%,
      #000 12%,
      #000 100%
    );
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.28) 3%,
      rgba(0, 0, 0, 0.8) 7%,
      #000 12%,
      #000 100%
    );
  }

  .hero-bg::after {
    background:
      radial-gradient(
        34% 82% at 16% 52%,
        rgba(244, 246, 247, 0.64) 0%,
        rgba(244, 246, 247, 0.38) 36%,
        rgba(244, 246, 247, 0.1) 62%,
        rgba(244, 246, 247, 0) 82%
      ),
      linear-gradient(
        180deg,
        rgba(244, 246, 247, 0.12) 0%,
        rgba(244, 246, 247, 0) 34%,
        rgba(244, 246, 247, 0) 72%,
        rgba(244, 246, 247, 0.08) 100%
      );
  }

  .hero-layout {
    grid-template-columns: minmax(22rem, 0.58fr) minmax(0, 1.42fr);
  }

  .hero-profile-card {
    right: clamp(1.25rem, 2vw, 2rem);
    bottom: clamp(0.05rem, 0.35vw, 0.45rem);
  }
}

@media (min-width: 1081px) and (max-width: 1400px) {
  :root {
    --hero-photo-left: clamp(25rem, 37vw, 32rem);
    --hero-photo-right: clamp(-7rem, -5vw, -3.5rem);
    --hero-photo-height: 122%;
    --hero-background-position: 36% 48%;
  }
}

.hero-profile-card__photo {
  display: grid;
  place-items: center;
  width: clamp(5.5rem, 7vw, 6.5rem);
  aspect-ratio: 1;
  margin: 0 auto 1rem;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(18, 47, 59, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(18, 47, 59, 0.16);
}

.hero-profile-card__photo img {
  display: block;
  width: 88%;
  height: auto;
  transform: translateY(-2%);
}

.hero-profile-card__body {
  text-align: center;
}

.hero-profile-card__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--heading-color);
}

.hero-profile-card__role {
  margin: 0.4rem 0 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}

.hero-profile-card__meta {
  display: grid;
  gap: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(31, 42, 50, 0.12);
  font-size: 0.86rem;
  color: rgba(31, 42, 50, 0.78);
}

.hero-device-image {
  grid-area: image;
  display: none;
}

.hero-device-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1080px) {
  .hero-bg {
    min-height: auto;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 236, 228, 0.84)),
      #f5efe7;
  }

  .hero-bg::before,
  .hero-bg::after {
    content: none;
  }

  .hero-overlay {
    max-width: 46rem;
    padding: clamp(2.1rem, 5vw, 3.4rem) clamp(1rem, 4vw, 2rem) clamp(2.4rem, 5vw, 3.4rem);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "actions"
      "visual"
      "image";
    align-items: start;
    gap: clamp(1rem, 2.6vw, 1.6rem);
    padding-bottom: clamp(2.35rem, 7vw, 3.45rem);
  }

  .hero-text {
    max-width: 42rem;
    padding-top: 0;
  }

  .hero-text h1 {
    max-width: 18ch;
    font-size: clamp(2.35rem, 5.7vw, 4rem);
    line-height: 1.06;
  }

  .hero-summary {
    max-width: 35rem;
  }

  .hero-visual {
    justify-content: flex-start;
    padding-bottom: 0;
    min-height: auto;
  }

  .hero-profile-card {
    position: static;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: none;
    padding: 0.86rem 1rem;
    margin: 0;
    border-radius: 0.9rem;
  }

  .hero-profile-card__photo {
    width: 4.8rem;
    margin: 0;
    flex: 0 0 auto;
  }

  .hero-profile-card__body {
    text-align: left;
  }

  .hero-profile-card__name {
    font-size: 1rem;
  }

  .hero-profile-card__role {
    margin: 0.22rem 0 0.55rem;
  }

  .hero-profile-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    padding-top: 0;
    border-top: 0;
  }

  .hero-profile-card__meta span + span::before {
    content: "•";
    margin-right: 0.55rem;
    color: rgba(31, 42, 50, 0.45);
  }

  .hero-device-image {
    display: block;
    aspect-ratio: 16 / 7.4;
    overflow: hidden;
    border-radius: 0.65rem;
    box-shadow: 0 14px 34px rgba(31, 42, 50, 0.12);
  }

  .hero-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 4;
    max-width: none;
    gap: 0.8rem;
  }

  .hero-pillar {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(255, 255, 255, 0.56);
    box-shadow: 0 12px 28px rgba(31, 42, 50, 0.07);
    backdrop-filter: blur(10px);
  }

  .hero-pillar__icon {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-bottom: 0.78rem;
    color: var(--accent);
  }

  .hero-pillar__icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .hero-pillar h2 {
    font-size: 0.9rem;
  }

  .hero-pillar p {
    font-size: 0.78rem;
    line-height: 1.45;
  }
}

@media (min-width: 769px) and (max-width: 1080px) {
  .hero-overlay {
    max-width: 54rem;
    padding-bottom: 0;
  }

  .hero-layout {
    gap: clamp(1.15rem, 2.2vw, 1.45rem);
    padding-bottom: 0;
  }

  .hero-wave {
    display: none;
  }

  .hero-text,
  .hero-summary {
    max-width: 40rem;
  }

  .hero-text h1 {
    font-size: clamp(2.75rem, 4.2vw, 3.3rem);
  }

  .hero-profile-card {
    gap: 1.2rem;
    padding: 1rem 1.25rem;
  }

  .hero-profile-card__photo {
    width: 5.2rem;
  }

  .hero-profile-card__name {
    font-size: 1.08rem;
  }

  .hero-profile-card__role,
  .hero-profile-card__meta {
    font-size: 0.82rem;
  }

  .hero-device-image {
    position: relative;
    left: 50%;
    width: 100vw;
    aspect-ratio: 1.85 / 1;
    margin-top: clamp(0.4rem, 1.5vw, 0.9rem);
    margin-left: -50vw;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(
      0 6.4%,
      8% 5.4%,
      16% 4.9%,
      24% 5%,
      32% 5.4%,
      40% 6.1%,
      48% 6.8%,
      56% 7.2%,
      64% 7.1%,
      72% 6.6%,
      80% 5.8%,
      88% 4.6%,
      96% 2.8%,
      100% 1.8%,
      100% 100%,
      0 100%
    );
  }

  .hero-device-image img {
    object-position: 23% 52%;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  /* Keep the iPad-width hero compact: buttons and profile card share a row,
     while the image stays cleanly below without the desktop overlay treatment. */
  .hero-overlay {
    max-width: 58rem;
    padding: clamp(1.25rem, 2.4vw, 1.65rem) clamp(1.5rem, 3.5vw, 2.25rem) 0;
  }

  .hero-layout {
    grid-template-columns: max-content minmax(16rem, 20rem) 1fr;
    grid-template-areas:
      "text text text"
      "actions visual ."
      "image image image";
    align-items: center;
    gap: clamp(0.7rem, 1.5vw, 1rem) clamp(1rem, 2.2vw, 1.5rem);
  }

  .hero-text {
    max-width: 38rem;
  }

  .hero-intro {
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
  }

  .hero-text h1 {
    max-width: 17ch;
    margin-bottom: 0.6rem;
    font-size: clamp(2.3rem, 3.9vw, 2.7rem);
    line-height: 1.03;
  }

  .hero-summary {
    max-width: 32rem;
    margin-bottom: 0;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .hero-actions {
    align-self: center;
    margin: 0;
  }

  .hero-actions .btn-accent {
    min-width: 8.75rem;
    padding: 0.64rem 1rem;
    font-size: 0.9rem;
  }

  .hero-link {
    font-size: 0.9rem;
  }

  .hero-visual {
    grid-area: visual;
    min-width: 0;
    align-self: center;
    justify-self: start;
    justify-content: flex-end;
    z-index: 2;
    width: 100%;
    margin: 0;
  }

  .hero-profile-card {
    gap: 0.85rem;
    width: 100%;
    max-width: 20rem;
    padding: 0.72rem 0.9rem;
    margin-left: 0;
  }

  .hero-profile-card__photo {
    width: 3.9rem;
  }

  .hero-profile-card__name {
    font-size: 0.96rem;
  }

  .hero-profile-card__role {
    margin: 0.12rem 0 0.35rem;
  }

  .hero-profile-card__role,
  .hero-profile-card__meta {
    font-size: 0.72rem;
  }

  .hero-device-image {
    aspect-ratio: 2.35 / 1;
    margin-top: 0.15rem;
    z-index: 1;
    clip-path: none;
  }

  .hero-device-image img {
    object-position: 23% 49%;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .hero-overlay {
    max-width: 50rem;
    padding: clamp(1.55rem, 4vw, 2.15rem) clamp(1.25rem, 4vw, 2.25rem) 0;
  }

  .hero-layout {
    grid-template-areas:
      "text"
      "visual"
      "actions"
      "image";
    gap: clamp(0.9rem, 2.2vw, 1.2rem);
    padding-bottom: 0;
  }

  .hero-text,
  .hero-summary {
    max-width: 36rem;
  }

  .hero-text h1 {
    max-width: 17ch;
    font-size: clamp(2.15rem, 5vw, 2.75rem);
    line-height: 1.05;
  }

  .hero-summary {
    font-size: clamp(0.94rem, 1.8vw, 1rem);
  }

  .hero-profile-card {
    gap: 1rem;
    padding: 0.9rem 1.05rem;
  }

  .hero-profile-card__photo {
    width: 4.6rem;
  }

  .hero-profile-card__name {
    font-size: 1rem;
  }

  .hero-profile-card__role,
  .hero-profile-card__meta {
    font-size: 0.78rem;
  }

  .hero-actions {
    margin: 0;
  }

  .hero-device-image {
    aspect-ratio: 1.65 / 1;
    margin-top: clamp(0.25rem, 1vw, 0.55rem);
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background: #ffffff;
  }

  .hero-overlay {
    max-width: none;
    padding: 0;
  }

  .hero-layout {
    grid-template-areas:
      "text"
      "visual"
      "actions"
      "image";
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 1.08rem 0 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .hero-wave {
    display: none;
  }

  .hero-text + .hero-visual {
    margin-top: 0;
  }

  .hero-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-intro {
    margin-bottom: 0.48rem;
    font-size: 0.7rem;
  }

  .hero-text h1 {
    margin-bottom: 0.58rem;
    font-size: clamp(1.72rem, 7.2vw, 2.15rem);
    max-width: 15ch;
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero-summary {
    margin-bottom: 0;
    max-width: 28rem;
    font-size: 0.84rem;
    line-height: 1.46;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    width: calc(100% - clamp(2rem, 10vw, 3.1rem));
    margin: 0.72rem auto 0;
  }

  .hero-actions .btn-accent {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.84rem;
  }

  .hero-link {
    display: none;
  }

  .hero-profile-card {
    gap: clamp(1rem, 4vw, 1.4rem);
    padding: 0.9rem clamp(1rem, 5vw, 1.55rem) 0.2rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-profile-card__photo {
    width: clamp(5rem, 20vw, 6rem);
  }

  .hero-profile-card__body {
    flex: 1;
    min-width: 0;
  }

  .hero-profile-card__name {
    font-size: 1.08rem;
  }

  .hero-profile-card__role,
  .hero-profile-card__meta {
    font-size: 0.76rem;
  }

  .hero-profile-card__role {
    margin: 0.16rem 0 0.42rem;
  }

  .hero-profile-card__meta {
    display: grid;
    gap: 0.14rem;
  }

  .hero-visual + .hero-actions {
    margin-top: 0.12rem;
  }

  .hero-profile-card__meta span + span::before {
    content: none;
    margin: 0;
  }

  .hero-device-image {
    position: relative;
    aspect-ratio: 1.2 / 1;
    margin-top: 0.78rem;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(
      0 6.4%,
      8% 5.4%,
      16% 4.9%,
      24% 5%,
      32% 5.4%,
      40% 6.1%,
      48% 6.8%,
      56% 7.2%,
      64% 7.1%,
      72% 6.6%,
      80% 5.8%,
      88% 4.6%,
      96% 2.8%,
      100% 1.8%,
      100% 100%,
      0 100%
    );
  }

  .hero-device-image::before {
    content: none;
  }

  .hero-device-image img {
    clip-path: none;
    object-position: 23% 52%;
  }

  .hero-pillars {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .hero-pillar {
    display: grid;
    grid-template-columns: 2.35rem 1fr;
    grid-template-areas:
      "icon title"
      "icon copy";
    align-items: center;
    gap: 0.1rem 0.85rem;
    padding: 0.85rem 0.78rem;
    border-radius: 0.7rem;
    backdrop-filter: none;
  }

  .hero-pillar__icon {
    grid-area: icon;
    width: 2.1rem;
    height: 2.1rem;
    margin: 0;
  }

  .hero-pillar h2 {
    grid-area: title;
    margin: 0 0 0.1rem;
    font-size: 0.88rem;
  }

  .hero-pillar p {
    grid-area: copy;
    font-size: 0.78rem;
  }

  .hero-pillar__arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-overlay {
    padding: 0;
  }

  .hero-layout {
    max-width: none;
  }

  .hero-text + .hero-visual {
    margin-top: 0;
  }

  .hero-intro {
    font-size: 0.64rem;
    margin-bottom: 0.42rem;
  }

  .hero-text h1 {
    font-size: clamp(1.56rem, 6.85vw, 1.92rem);
    max-width: 14.5ch;
  }

  .hero-summary {
    font-size: 0.78rem;
    line-height: 1.42;
  }

  .hero-profile-card {
    gap: 1rem;
    padding: 0.8rem 1rem 0.1rem;
  }

  .hero-profile-card__photo {
    width: clamp(4.75rem, 22vw, 5.5rem);
  }

  .hero-profile-card__role {
    margin: 0.14rem 0 0.34rem;
  }

  .hero-profile-card__meta {
    gap: 0.1rem;
  }

  .hero-visual + .hero-actions {
    margin-top: 0.05rem;
  }

  .hero-actions .btn-accent {
    padding: 0.66rem 1rem;
  }

  .hero-device-image {
    aspect-ratio: 1.17 / 1;
    margin-top: 0.72rem;
  }

  .project-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "icon"
      "content"
      "link";
  }
}

body.dark-mode .hero-bg {
  background-color: #0d171d;
}

body.dark-mode .hero-wave {
  color: var(--primary-bg);
}

body.dark-mode .hero-wave__line {
  stroke: rgba(99, 210, 207, 0.12);
}

body.dark-mode .hero-bg::after {
  background:
    linear-gradient(
      90deg,
      rgba(8, 15, 20, 0.94) 0%,
      rgba(8, 15, 20, 0.94) 26%,
      rgba(8, 15, 20, 0.78) 34%,
      rgba(8, 15, 20, 0.4) 43%,
      rgba(8, 15, 20, 0.14) 56%,
      rgba(8, 15, 20, 0) 70%
    ),
    radial-gradient(
      34% 82% at 16% 52%,
      rgba(8, 15, 20, 0.64) 0%,
      rgba(8, 15, 20, 0.38) 36%,
      rgba(8, 15, 20, 0.1) 62%,
      rgba(8, 15, 20, 0) 82%
    ),
    linear-gradient(
      180deg,
      rgba(8, 15, 20, 0.12) 0%,
      rgba(8, 15, 20, 0) 34%,
      rgba(8, 15, 20, 0) 72%,
      rgba(8, 15, 20, 0.08) 100%
    );
}

@media (min-width: 1440px) {
  body.dark-mode .hero-bg::after {
    background:
      radial-gradient(
        34% 82% at 16% 52%,
        rgba(8, 15, 20, 0.64) 0%,
        rgba(8, 15, 20, 0.38) 36%,
        rgba(8, 15, 20, 0.1) 62%,
        rgba(8, 15, 20, 0) 82%
      ),
      linear-gradient(
        180deg,
        rgba(8, 15, 20, 0.12) 0%,
        rgba(8, 15, 20, 0) 34%,
        rgba(8, 15, 20, 0) 72%,
        rgba(8, 15, 20, 0.08) 100%
      );
  }

  body.dark-mode .hero-wide-image::before {
    background: linear-gradient(
      90deg,
      #0d171d 0%,
      rgba(13, 23, 29, 0.92) 30%,
      rgba(13, 23, 29, 0.52) 58%,
      rgba(13, 23, 29, 0.16) 82%,
      rgba(13, 23, 29, 0) 100%
    );
  }

}

body.dark-mode .hero-text {
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

body.dark-mode .hero-text h1,
body.dark-mode .hero-pillar h2,
body.dark-mode .hero-profile-card__name {
  color: #f2f7fa;
}

body.dark-mode .hero-text h1 span {
  color: #63d2cf;
}

body.dark-mode .hero-summary,
body.dark-mode .hero-pillar p,
body.dark-mode .hero-profile-card__meta {
  color: rgba(232, 239, 243, 0.82);
}

body.dark-mode .hero-pillar,
body.dark-mode .hero-profile-card {
  background: rgba(8, 15, 20, 0.58);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

body.dark-mode .hero-pillar {
  background: rgba(8, 15, 20, 0.42);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .hero-profile-card__meta {
  border-top-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1080px) {
  body.dark-mode .hero-bg {
    background:
      linear-gradient(145deg, rgba(13, 23, 29, 0.96), rgba(19, 32, 39, 0.92)),
      #0d171d;
  }

  body.dark-mode .hero-device-image {
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  }
}

@media (max-width: 768px) {
  body.dark-mode .hero-layout {
    background: rgba(8, 15, 20, 0.72);
    border: 0;
    box-shadow: none;
  }

  body.dark-mode .hero-profile-card {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  body.dark-mode .hero-device-image {
    box-shadow: none;
  }
}

html.high-contrast .hero-bg,
html.high-contrast .hero-pillar,
html.high-contrast .hero-profile-card {
  background:
    linear-gradient(180deg, rgba(18, 31, 45, 0.98) 0%, rgba(20, 35, 51, 0.98) 100%) !important;
  box-shadow: none !important;
  border: 2px solid #fff !important;
}

html.high-contrast .hero-bg {
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 230, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0b1623 100%) !important;
}

html.high-contrast .hero-bg::before,
html.high-contrast .hero-bg::after {
  content: none !important;
}

html.high-contrast .hero-wave {
  display: none !important;
}

@media (max-width: 768px) {
  html.high-contrast .hero-layout {
    background:
      linear-gradient(180deg, rgba(18, 31, 45, 0.98) 0%, rgba(20, 35, 51, 0.98) 100%) !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
  }

  html.high-contrast .hero-profile-card {
    background: transparent !important;
    border: 0 !important;
  }
}

@media (min-width: 1081px) {
  html.high-contrast .hero-bg::before {
    content: "" !important;
    opacity: 1 !important;
    filter: contrast(1.2) brightness(0.82) saturate(1.05);
  }
}

html.high-contrast .hero-text {
  text-shadow: none !important;
}

html.high-contrast .hero-text h1,
html.high-contrast .hero-summary,
html.high-contrast .hero-link,
html.high-contrast .hero-pillar h2,
html.high-contrast .hero-pillar p,
html.high-contrast .hero-profile-card__name,
html.high-contrast .hero-profile-card__role,
html.high-contrast .hero-profile-card__meta,
html.high-contrast .hero-intro {
  color: #fff !important;
}

/* ===== What I Do ===== */
.what-i-do {
  position: relative;
  padding: clamp(4.25rem, 8vw, 6.25rem) 2rem clamp(2.75rem, 5vw, 3.5rem);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 18px 34px rgba(30, 111, 114, 0.025),
    inset 0 -18px 34px rgba(20, 37, 49, 0.025);
}

.what-i-do__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-eyebrow::after {
  content: "";
  width: 3rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.what-i-do__intro {
  max-width: 46rem;
  margin-bottom: 2.9rem;
}

.what-i-do__intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--heading-color);
}

.what-i-do__lede {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.85;
  color: #42515d;
}

.what-i-do__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.what-i-do__card {
  position: relative;
  min-height: 100%;
  padding: 2.65rem 2rem 2rem;
  border: 1px solid rgba(31, 42, 50, 0.1);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 251, 0.96) 100%);
  box-shadow:
    0 14px 32px rgba(20, 37, 49, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.what-i-do__card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 1.8vw, 1.65rem);
  line-height: 1.2;
  color: var(--heading-color);
}

.what-i-do__card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.95;
  color: #42515d;
}

.what-i-do__accent {
  position: absolute;
  top: 0.2rem;
  left: 2rem;
  width: 3.8rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #158c8d 100%);
}

.what-i-do__icon {
  width: 6rem;
  height: 6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(231, 241, 242, 0.92) 0%, rgba(239, 246, 246, 0.82) 100%);
}

.what-i-do__icon svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke: var(--accent);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.what-i-do__divider {
  width: 2.5rem;
  height: 2px;
  margin: 1.6rem 0 1.7rem;
  border-radius: 999px;
  background: rgba(31, 42, 50, 0.16);
}

/* ===== Hero Image Frame ===== */
.photo-frame {
  width: min(320px, 80%);
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.6),
    rgba(30, 111, 114, 0.08)
  );
  border: 2px dashed rgba(30, 111, 114, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.photo-frame span {
  font-size: 0.95rem;
  color: var(--body-text);
  opacity: 0.75;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.9rem 1.7rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.025em;
  border: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transition: background-color 0.25s ease,
              box-shadow 0.25s ease,
              transform 0.2s ease;
}

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

/* ===== Certifications and Learning Section ===== */
.qualifications {
    margin: 4rem auto 3rem;
    max-width: 1100px;
    padding: 0 1.25rem;
}

.qualifications-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.qualifications-header__icon {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    color: var(--accent);
}

.qualifications-header__icon svg,
.learning-focus__icon svg,
.recognised-qualification__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.qualifications-header h2 {
    margin: 0;
}

.qualifications-header p {
    margin: 0.45rem 0 0;
    color: var(--body-text);
    font-size: 1.05rem;
}

.learning-focus,
.recognised-qualification,
.continuous-learning {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.05);
}

.learning-focus {
    padding: 1.4rem 1.6rem 1.6rem;
    border-color: var(--accent);
    background: linear-gradient(135deg, #ffffff 0%, rgba(231, 241, 242, 0.55) 100%);
}

.qualification-label,
.qualification-section-heading {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.qualification-label {
    margin-bottom: 1.4rem;
}

.qualification-label__icon,
.qualification-section-heading__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 50%;
    background: rgba(30, 111, 114, 0.1);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
}

.qualification-label h3,
.qualification-section-heading h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.learning-focus__content {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.learning-focus__icon {
    width: 6rem;
    height: 5rem;
    padding: 0.65rem;
    color: var(--accent);
}

.learning-focus__copy h4,
.recognised-qualification h4 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.25rem;
}

.learning-focus__copy p,
.recognised-qualification p,
.continuous-learning > p {
    margin: 0.45rem 0 0;
    color: var(--body-text);
    line-height: 1.65;
}

.qualification-progress {
    padding: 0.65rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    white-space: nowrap;
}

.qualification-progress::before {
    content: "";
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.55rem;
    border: 2px dotted currentColor;
    border-radius: 50%;
}

.qualification-section-heading {
    margin: 2.2rem 0 1rem;
}

.recognised-qualification {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.5rem 1.8rem;
}

.recognised-qualification__icon {
    width: 5rem;
    height: 5rem;
    flex: 0 0 5rem;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(30, 111, 114, 0.08);
    color: var(--accent);
}

.continuous-learning {
    padding: 1.5rem 1.8rem;
}

.learning-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.learning-topics li {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(30, 111, 114, 0.08);
    color: var(--heading-color);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ===== Current Employment Section ===== */
.current-employment {
    margin: 3rem auto;
    max-width: 1100px;
    padding: 0 1.25rem;
}

.current-employment h2 {
    margin-bottom: 0.5rem;
}

.current-employment-intro {
    color: var(--body-text);
    margin-bottom: 1.4rem;
    max-width: 600px;
}

.employment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(231, 241, 242, 0.45) 100%
    );
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.8rem 1.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.employment-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding-right: 8.5rem;
}

.employment-title-group {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.employment-icon {
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.82;
    flex-shrink: 0;
}

.employment-info h3 {
    margin: 0;
    color: var(--heading-color);
    font-size: 1.28rem;
    font-weight: 600;
}

.employment-org {
    margin: 0.15rem 0 0;
    color: var(--body-text);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.9;
}

.employment-badge {
    position: absolute;
    top: 1.95rem;
    right: 1.5rem;
    flex-shrink: 0;
    color: #ffffff;
    background-color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    white-space: nowrap;
}

.employment-summary {
    margin: 0;
    color: var(--body-text);
    line-height: 1.65;
    font-size: 1.02rem;
    max-width: 64ch;
}

.employment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 0;
}

.employment-column {
    padding: 0 0.2rem;
}

.employment-column + .employment-column {
    border-left: none;
    padding-left: 0.2rem;
    margin-left: 0;
}

.employment-column h4 {
    margin: 0 0 0.7rem;
    color: var(--heading-color);
    font-size: 1.95rem;
    line-height: 1.15;
}

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

.employment-list li {
    position: relative;
    margin: 0.5rem 0;
    padding-left: 1.85rem;
    color: var(--body-text);
    font-size: 1rem;
}

.employment-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.14rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    color: #ffffff;
    background-color: var(--accent);
}

/* ===== Experience Timeline Section ===== */
.experience-timeline {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 1.25rem;
}

.experience-timeline h2 {
    margin-bottom: 0.5rem;
}

.experience-timeline-intro {
    color: var(--body-text);
    margin-bottom: 1.8rem;
    max-width: 680px;
    line-height: 1.6;
}

.timeline {
    position: relative;
    display: grid;
    gap: 1.3rem;
    padding-left: 8.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 3.15rem;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgba(30, 111, 114, 0.18) 0%,
        rgba(30, 111, 114, 0.55) 18%,
        rgba(30, 111, 114, 0.25) 100%
    );
    z-index: 0;
}

.timeline-entry {
    position: relative;
    z-index: 1;
}

.timeline-entry__year {
    position: absolute;
    top: 1.25rem;
    left: -8.5rem;
    width: 5.25rem;
    text-align: right;
}

.timeline-entry__year span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #dceaea;
    color: #1f7076;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.timeline-entry__content {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(235, 244, 244, 0.72) 100%
    );
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.35rem 1.45rem 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.timeline-entry__content::before {
    content: "";
    position: absolute;
    top: 1.55rem;
    left: -2.35rem;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(30, 111, 114, 0.12);
}

.timeline-entry__eyebrow {
    margin: 0 0 0.4rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.timeline-entry__content h3 {
    margin: 0 0 0.85rem;
    color: var(--heading-color);
    font-size: 1.12rem;
    line-height: 1.35;
}

.timeline-entry__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.timeline-entry__list li {
    position: relative;
    padding-left: 1.15rem;
    color: var(--body-text);
    line-height: 1.65;
}

.timeline-entry__list li::before {
    content: "";
    position: absolute;
    top: 0.68rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--accent);
}

/* ===== Tech Stack Section ===== */
.tech-stack {
    max-width: 1100px;
    margin: 3rem auto 3.5rem;
    padding: 0 1.25rem;
}

.tech-stack h2 {
    margin-bottom: 0.5rem;
}

.tech-stack-intro {
    color: var(--body-text);
    margin-bottom: 1.4rem;
    max-width: 700px;
    line-height: 1.5;
}

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

.stack-group {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stack-group--automation,
.stack-group--infrastructure,
.stack-group--platform {
    grid-column: span 1;
}

.stack-group-wide {
    width: 100%;
}

.stack-group--operations {
    grid-column: span 1;
}

.stack-group h3 {
    margin: 0 0 0.8rem;
    color: var(--heading-color);
    font-size: 1.02rem;
}

.stack-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.stack-list li {
    background: #eef4f4;
    border: 1px solid #d3e1e1;
    border-radius: 999px;
    padding: 0.35rem 0.68rem;
    color: var(--body-text);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ===== Highlighted Work Section ===== */
.highlighted-work {
    position: relative;
    isolation: isolate;
    margin: 0 auto;
    padding: clamp(0rem, 0.35vw, 0.3rem) clamp(1rem, 3vw, 2rem) clamp(1.65rem, 2.5vw, 2.35rem);
}

.highlighted-work::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: -1.5rem;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7fafa 32%, #f1f5f6 100%);
}

.highlighted-work__inner {
    display: grid;
    gap: clamp(0.7rem, 1vw, 1rem);
    max-width: 1320px;
    margin: 0 auto;
}

.highlighted-work__header {
    display: grid;
    gap: 0;
    max-width: 42rem;
    margin: 0;
}

.highlighted-work h2 {
    font-size: clamp(1.55rem, 2.4vw, 2rem);
    margin: 0;
    color: var(--heading-color);
}

.highlighted-work__intro {
    max-width: 40rem;
    margin: 0;
    color: var(--body-text);
    font-size: clamp(0.98rem, 1.12vw, 1.05rem);
    line-height: 1.55;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.9rem, 1.7vw, 1.25rem);
    justify-content: center;
    margin: 0;
}

.project-card {
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: clamp(0.95rem, 1.5vw, 1.2rem);
    flex: 1 1 320px;
    box-shadow: 0 16px 34px rgba(31, 42, 50, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: grid;
    grid-template-columns: 4.25rem minmax(0, 1fr);
    grid-template-areas:
        "icon content"
        "icon link";
    gap: 0.2rem 1rem;
    align-items: start;
    max-width: 100%;
    min-height: 8.8rem;
}

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

.project-card__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 4.25rem;
    aspect-ratio: 1;
    border-radius: 8px;
    background: linear-gradient(145deg, #087174 0%, #064f52 100%);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.project-card__icon svg {
    width: 2.25rem;
    height: 2.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-card--label .project-card__icon svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 2.1;
}

.project-card__content {
    grid-area: content;
    min-width: 0;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.project-card__image-frame--archive {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    min-height: 240px;
    background:
        radial-gradient(circle at top right, rgba(58, 196, 255, 0.18), transparent 34%),
        radial-gradient(circle at bottom left, rgba(58, 196, 255, 0.1), transparent 30%),
        linear-gradient(180deg, #101a25 0%, #0b121a 100%);
    border: 1px solid rgba(56, 122, 154, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 16px 28px rgba(8, 18, 28, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.project-card__image-frame--label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    min-height: 240px;
    background: linear-gradient(180deg, #0f1723 0%, #162232 100%);
    border: 1px solid rgba(56, 122, 154, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 10px 22px rgba(8, 18, 28, 0.08);
}

.project-card__image-frame--pipeline {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    min-height: 240px;
    background: linear-gradient(180deg, #f7fbfb 0%, #eef5f5 100%);
    border: 1px solid rgba(30, 111, 114, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 12px 24px rgba(20, 37, 49, 0.08);
}

.project-card__image-frame--archive::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(110, 225, 255, 0.14) 50%, transparent 80%);
    opacity: 0;
    transform: translateX(-18%);
    transition: opacity 0.25s ease, transform 0.35s ease;
    pointer-events: none;
}

.project-card--archive img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0;
    padding: 0.5rem;
    border-radius: 12px;
    transform: scale(1.24);
    transition: transform 0.25s ease;
}

.project-card--label img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0;
    padding: 0;
    border-radius: 12px;
}

.project-card--pipeline img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 240px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 0;
    padding: 0;
    border-radius: 12px;
}

.project-card--archive:hover .project-card__image-frame--archive {
    transform: translateY(-2px);
    border-color: rgba(72, 180, 214, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 30px rgba(8, 18, 28, 0.15),
        0 0 0 1px rgba(71, 184, 222, 0.08),
        0 0 24px rgba(57, 191, 232, 0.18);
}

.project-card--archive:hover .project-card__image-frame--archive::after {
    opacity: 1;
    transform: translateX(0);
}

.project-card--archive:hover img {
    transform: scale(1.28);
}

.project-card h3 {
    margin: 0 0 0.45rem;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.project-card p {
    color: var(--body-text);
    font-size: 0.94rem;
    line-height: 1.48;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem;
}

.project-card__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.55rem;
    padding: 0.22rem 0.68rem;
    border-radius: 6px;
    background: rgba(30, 111, 114, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    line-height: 1.2;
}

.project-card__summary {
    flex-grow: 1;
    margin: 0 0 1rem;
}

.project-card__summary-item + .project-card__summary-item {
    margin-top: 0.8rem;
}

.project-card__summary dt {
    margin: 0 0 0.2rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.project-card__summary dd {
    margin: 0;
    color: var(--body-text);
    font-size: 0.98rem;
    line-height: 1.65;
    letter-spacing: 0.01em;
}

.project-card--pipeline {
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 250, 0.98) 100%);
}

.project-link {
    grid-area: link;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.01em;
    align-self: end;
    margin-top: 0.1rem;
}

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

@media (max-width: 768px) {
    .project-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        padding-block: 0.65rem;
    }
}

/* ===== About Section ===== */
.about-contact-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.8rem, 5vw, 4.75rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.about-contact-wrapper__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(18rem, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  width: min(100%, 1100px);
  margin: 0 auto;
}

.about-contact-wrapper .section-eyebrow {
  margin-bottom: 0.85rem;
}

.about-contact-wrapper h2 {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  font-size: clamp(1.7rem, 2.7vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--heading-color);
}

.about-contact-wrapper .about-me p {
  color: var(--body-text);
  line-height: 1.8;
  margin: 0 0 1rem;
  font-size: clamp(1rem, 1.18vw, 1.1rem);
}

.about-contact-wrapper .about-me p:last-of-type {
  margin-bottom: 0;
}

.about-me__copy {
  max-width: 42rem;
}

.about-me__aside {
  position: relative;
  margin-top: -2.25rem;
  padding: 1.7rem;
  border: 1px solid rgba(30, 111, 114, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(231, 241, 242, 0.72) 100%);
  box-shadow: 0 18px 36px rgba(20, 37, 49, 0.08);
}

.about-me__aside::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  bottom: 1.25rem;
  left: 0;
  width: 0.28rem;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--accent) 0%, #85b86f 100%);
}

.about-me__aside-label {
  display: block;
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-me__list {
  display: grid;
  gap: 1.08rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-me__list li {
  padding-bottom: 1.08rem;
  border-bottom: 1px solid rgba(31, 42, 50, 0.1);
}

.about-me__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.about-me__list strong,
.about-me__list span {
  display: block;
}

.about-me__list strong {
  margin-bottom: 0.35rem;
  color: var(--heading-color);
  font-size: 1.02rem;
}

.about-me__list span {
  color: var(--body-text);
  line-height: 1.65;
}

/* ===== Responsive Rules for Index Page ===== */
@media (max-width: 1100px) {
    .projects {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .project-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {

    .project-card {
        flex: 1 1 calc(50% - 1rem);
    }

    .about-contact-wrapper {
      padding: 4rem 2rem;
    }
}

@media (max-width: 900px) {
  .about-contact-wrapper__inner {
    grid-template-columns: 1fr;
    width: min(100%, 760px);
  }

  .about-contact-wrapper h2 {
    max-width: 18ch;
  }

  .about-me__aside {
    margin-top: 0;
  }
}

@media (max-width: 768px) {

  .stack-groups {
      grid-template-columns: 1fr;
  }

  .qualifications {
      margin: 2.75rem auto 2.5rem;
      padding: 0 1.35rem;
  }

  .qualifications-header {
      display: grid;
      grid-template-columns: 2.75rem minmax(0, 1fr);
      gap: 0.45rem 0.9rem;
      margin-bottom: 1.85rem;
  }

  .qualifications-header > div:last-child {
      display: contents;
  }

  .qualifications-header__icon {
      grid-column: 1;
      grid-row: 1;
      width: 2.75rem;
      height: 2.75rem;
  }

  .qualifications-header h2 {
      grid-column: 2;
      align-self: center;
      font-size: clamp(1.25rem, 5.7vw, 1.65rem);
      line-height: 1.05;
      white-space: nowrap;
  }

  .qualifications-header p {
      grid-column: 1 / -1;
      margin-top: 0.35rem;
      font-size: 1.05rem;
      line-height: 1.55;
  }

  .learning-focus {
      padding: 1.25rem 1.15rem 1.35rem;
      border-radius: 0.7rem;
  }

  .qualification-label {
      margin-bottom: 1.5rem;
  }

  .qualification-label__icon,
  .qualification-section-heading__icon {
      width: 2.2rem;
      height: 2.2rem;
  }

  .qualification-label h3,
  .qualification-section-heading h3 {
      font-size: 1rem;
      line-height: 1.2;
  }

  .learning-focus__content {
      grid-template-columns: 3.75rem minmax(0, 1fr);
      grid-template-rows: auto auto auto;
      align-items: start;
      gap: 0.5rem 1rem;
  }

  .learning-focus__icon {
      grid-column: 1;
      grid-row: 1 / 4;
      width: 3.75rem;
      height: 3.3rem;
      padding: 0.3rem;
  }

  .learning-focus__copy {
      display: contents;
  }

  .learning-focus__copy h4 {
      grid-column: 2;
      grid-row: 1;
      align-self: center;
      font-size: 1.1rem;
      line-height: 1.35;
  }

  .learning-focus__copy p {
      grid-column: 2;
      grid-row: 3;
      margin-top: 0;
      font-size: 1rem;
      line-height: 1.6;
  }

  .qualification-progress {
      grid-column: 2;
      grid-row: 2;
      justify-self: start;
      padding: 0.5rem 0.75rem;
      border: 0;
      border-radius: 999px;
      background: rgba(30, 111, 114, 0.08);
      font-size: 0.9rem;
  }

  .qualification-section-heading {
      margin: 2.25rem 0 0.8rem;
  }

  .recognised-qualification,
  .continuous-learning {
      border-radius: 0.7rem;
  }

  .recognised-qualification {
      gap: 1.15rem;
      padding: 1.1rem 1.2rem;
  }

  .recognised-qualification__icon {
      width: 4.5rem;
      height: 4.5rem;
      flex-basis: 4.5rem;
      padding: 0.9rem;
  }

  .recognised-qualification h4 {
      font-size: 1.15rem;
      line-height: 1.35;
  }

  .recognised-qualification p {
      margin-top: 0.45rem;
      font-size: 1rem;
  }

  .continuous-learning {
      padding: 1.35rem 1.25rem 1.45rem;
  }

  .continuous-learning > p {
      margin-top: 0;
      font-size: 1rem;
      line-height: 1.65;
  }

  .learning-topics {
      gap: 0.55rem 0.65rem;
      margin-top: 1rem;
  }

  .learning-topics li {
      padding: 0.5rem 0.8rem;
      font-size: 0.9rem;
  }

  .employment-card {
      padding: 1.2rem;
  }

  .employment-top {
      gap: 0.75rem;
      padding-right: 0;
  }

  .employment-info h3 {
      font-size: 1.3rem;
  }

  .employment-column h4 {
      font-size: 1.55rem;
  }

  .employment-badge {
      position: static;
      font-size: 0.68rem;
      padding: 0.22rem 0.55rem;
      border-radius: 16px;
  }

  .employment-summary {
      font-size: 1rem;
  }

  .employment-details {
      grid-template-columns: 1fr;
      gap: 0.8rem;
      margin-top: 1rem;
      padding-top: 1rem;
  }

  .employment-column + .employment-column {
      border-left: none;
      padding-left: 0.2rem;
      margin-left: 0;
  }

  .timeline {
      padding-left: 0;
      gap: 1rem;
  }

  .timeline::before {
      display: none;
  }

  .timeline-entry__year {
      position: static;
      width: auto;
      margin-bottom: 0.65rem;
      text-align: left;
  }

  .timeline-entry__content {
      padding: 1.15rem;
  }

  .timeline-entry__content::before {
      display: none;
  }

  .project-card {
      flex: 1 1 100%;
      padding: 1.2rem;
      grid-template-columns: 3.75rem minmax(0, 1fr);
      gap: 0.15rem 0.85rem;
      min-height: 0;
  }

  .project-card__icon {
      width: 3.75rem;
  }

  .project-card__icon svg {
      width: 2rem;
      height: 2rem;
  }

  .highlighted-work {
      padding: 0.35rem 1rem 2.4rem;
  }

  .highlighted-work__inner {
      gap: 1rem;
  }

  .highlighted-work__header {
      align-items: flex-start;
  }

  .what-i-do {
      padding: 3.25rem 1rem 3.5rem;
  }

  .what-i-do__intro {
      margin-bottom: 1.5rem;
  }

  .what-i-do__intro h2 {
      font-size: clamp(1.75rem, 7.2vw, 2.35rem);
      line-height: 1.12;
  }

  .what-i-do__lede {
      font-size: 1rem;
      line-height: 1.75;
  }

  .what-i-do__grid {
      grid-template-columns: 1fr;
      gap: 1rem;
  }

  .what-i-do__card {
      padding: 2.3rem 1.35rem 1.5rem;
  }

  .what-i-do__accent {
      left: 1.35rem;
      width: 3.2rem;
  }

  .what-i-do__icon {
      width: 5.25rem;
      height: 5.25rem;
      margin-bottom: 1.5rem;
  }

  .what-i-do__card h3 {
      font-size: 1.35rem;
  }

  .what-i-do__divider {
      margin: 1.1rem 0 1.2rem;
  }

  .stack-groups {
      grid-template-columns: 1fr;
  }

  .stack-group--automation,
  .stack-group--infrastructure,
  .stack-group--platform,
  .stack-group--operations {
      grid-column: auto;
  }

  .stack-group {
      padding: 1rem;
  }

  .stack-group-wide {
      grid-column: auto;
      max-width: none;
      justify-self: stretch;
  }

  .about-contact-wrapper {
    padding: 3rem 1.35rem;
  }

  .about-contact-wrapper h2 {
    font-size: clamp(1.75rem, 7.2vw, 2.25rem);
  }

  .about-me__aside {
    padding: 1.35rem;
  }
}

@media (max-width: 400px) {
  .learning-focus__content {
      grid-template-columns: 3.1rem minmax(0, 1fr);
  }

  .learning-focus__icon {
      grid-row: 1 / 4;
      width: 3.1rem;
      height: 2.9rem;
  }

  .learning-focus__copy h4 {
      grid-column: 2;
  }
}

@media (max-width: 380px) {
  .qualifications-header h2 {
      white-space: normal;
  }

  .qualifications-heading__line {
      display: block;
  }
}


/* ===== Hamburger Bars Override (Ensure They Render) ===== */
@media (max-width: 768px) {
  header .menu-toggle > span.bar {
    display: block !important;
    width: 100% !important;
    height: 4px !important;
    background-color: var(--accent) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
/* ===== Full Homepage Dark Mode ===== */
body.dark-mode .what-i-do,
body.dark-mode .highlighted-work,
body.dark-mode .tech-stack,
body.dark-mode .experience-timeline,
body.dark-mode .current-employment,
body.dark-mode .qualifications,
body.dark-mode .about-contact-wrapper {
  background: var(--primary-bg);
}

body.dark-mode .highlighted-work::before {
  background: var(--primary-bg);
  border-top-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .what-i-do {
  background:
    radial-gradient(circle at 16% 14%, rgba(99, 210, 207, 0.08), transparent 26%),
    linear-gradient(180deg, #121e24 0%, #10171b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.dark-mode .what-i-do__card,
body.dark-mode .project-card,
body.dark-mode .stack-group,
body.dark-mode .timeline-entry__content,
body.dark-mode .timeline-entry__year span,
body.dark-mode .employment-card,
body.dark-mode .learning-focus,
body.dark-mode .recognised-qualification,
body.dark-mode .continuous-learning,
body.dark-mode .about-me__aside,
body.dark-mode .contact {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted) 100%);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

body.dark-mode .project-card__image-frame,
body.dark-mode .project-card__image-frame--archive,
body.dark-mode .project-card__image-frame--label,
body.dark-mode .project-card__image-frame--pipeline {
  background: #0f181d;
  border-color: var(--border);
}

body.dark-mode .what-i-do__intro h2,
body.dark-mode .highlighted-work h2,
body.dark-mode .tech-stack h2,
body.dark-mode .experience-timeline h2,
body.dark-mode .current-employment h2,
body.dark-mode .qualifications h2,
body.dark-mode .project-card h3,
body.dark-mode .stack-group h3,
body.dark-mode .timeline-entry__content h3,
body.dark-mode .employment-info h3,
body.dark-mode .employment-column h4,
body.dark-mode .qualification-label h3,
body.dark-mode .qualification-section-heading h3,
body.dark-mode .learning-focus__copy h4,
body.dark-mode .recognised-qualification h4,
body.dark-mode .learning-topics li,
body.dark-mode .about-me__list strong,
body.dark-mode .about-contact-wrapper h2 {
  color: var(--heading-color);
}

body.dark-mode .what-i-do__lede,
body.dark-mode .highlighted-work__intro,
body.dark-mode .what-i-do__card p,
body.dark-mode .experience-timeline-intro,
body.dark-mode .tech-stack-intro,
body.dark-mode .stack-list li,
body.dark-mode .timeline-entry__list li,
body.dark-mode .current-employment-intro,
body.dark-mode .employment-org,
body.dark-mode .employment-summary,
body.dark-mode .employment-list li,
body.dark-mode .qualifications-header p,
body.dark-mode .learning-focus__copy p,
body.dark-mode .recognised-qualification p,
body.dark-mode .continuous-learning > p,
body.dark-mode .about-me__list span,
body.dark-mode .about-contact-wrapper p:not(.section-eyebrow) {
  color: var(--body-text);
}

body.dark-mode .section-eyebrow,
body.dark-mode .timeline-entry__eyebrow,
body.dark-mode .project-card__summary dt,
body.dark-mode .project-link,
body.dark-mode .about-me__aside-label,
body.dark-mode .employment-badge {
  color: var(--hover-accent);
}

body.dark-mode .what-i-do__icon,
body.dark-mode .project-card__icon,
body.dark-mode .employment-icon {
  background: rgba(99, 210, 207, 0.11);
  border-color: rgba(99, 210, 207, 0.34);
  color: var(--hover-accent);
}

body.dark-mode .what-i-do__icon svg {
  stroke: var(--hover-accent);
}

body.dark-mode .what-i-do__divider,
body.dark-mode .what-i-do__accent,
body.dark-mode .timeline::before,
body.dark-mode .employment-list li::before {
  background: var(--accent);
}

body.dark-mode .project-card__summary-item,
body.dark-mode .hero-profile-card__meta,
body.dark-mode .employment-details {
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .current-employment-intro,
body.dark-mode .employment-org,
body.dark-mode .employment-summary,
body.dark-mode .employment-list li {
  color: #dce8eb;
}

body.dark-mode .employment-summary {
  color: #e4eef1;
}

body.dark-mode .employment-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #071013;
}

body.dark-mode .employment-icon {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--hover-accent);
}

body.dark-mode .learning-focus {
  background:
    linear-gradient(135deg, var(--surface-bg) 0%, rgba(99, 210, 207, 0.08) 100%);
  border-color: var(--accent);
}

body.dark-mode .qualification-label__icon,
body.dark-mode .qualification-section-heading__icon,
body.dark-mode .recognised-qualification__icon,
body.dark-mode .learning-topics li {
  background: rgba(99, 210, 207, 0.12);
  color: #d7fbfa;
}

body.dark-mode .qualification-progress {
  border-color: var(--hover-accent);
  color: var(--hover-accent);
}

body.dark-mode .qualifications-header__icon,
body.dark-mode .learning-focus__icon,
body.dark-mode .recognised-qualification__icon {
  color: var(--hover-accent);
}

body.dark-mode .timeline-entry__year span {
  position: relative;
  z-index: 2;
  background: #193338;
  border: 1px solid rgba(99, 210, 207, 0.32);
  color: #d7fbfa;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body.dark-mode .stack-list li {
  background: rgba(99, 210, 207, 0.12);
  border-color: rgba(99, 210, 207, 0.34);
  color: #e8fbfb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark-mode .project-card__tag {
  background: rgba(99, 210, 207, 0.12);
  color: #d7fbfa;
}

body.dark-mode .hero-actions .btn-accent {
  background: #2d9294;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

body.dark-mode .hero-actions .btn-accent:hover,
body.dark-mode .hero-actions .btn-accent:focus-visible {
  background: #3fabad;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
}

body.dark-mode .back-to-top {
  background: #174f54;
  border-color: rgba(99, 210, 207, 0.58);
  color: #f4ffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

body.dark-mode .back-to-top:hover,
body.dark-mode .back-to-top:focus-visible {
  background: #24787d;
  border-color: rgba(135, 235, 232, 0.72);
}

body.dark-mode .back-to-top:focus-visible {
  outline-color: #87ebe8;
}

/* ===== Homepage High Contrast: Highlighted Work ===== */
html.high-contrast body,
html.high-contrast #main {
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 230, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0b1623 100%) !important;
}

html.high-contrast .highlighted-work,
html.high-contrast .what-i-do,
html.high-contrast .tech-stack,
html.high-contrast .experience-timeline,
html.high-contrast .current-employment,
html.high-contrast .qualifications,
html.high-contrast .about-contact-wrapper {
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 230, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0b1623 100%) !important;
  color: #ffffff !important;
}

html.high-contrast .what-i-do {
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(95, 242, 232, 0.08) !important;
}

html.high-contrast .what-i-do__card {
  background:
    linear-gradient(180deg, rgba(18, 31, 45, 0.98) 0%, rgba(20, 35, 51, 0.98) 100%) !important;
  border: 1px solid rgba(95, 242, 232, 0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(95, 242, 232, 0.08),
    0 0 0 1px rgba(95, 242, 232, 0.08) !important;
}

html.high-contrast .what-i-do__intro h2,
html.high-contrast .what-i-do__card h3,
html.high-contrast .what-i-do__card p,
html.high-contrast .what-i-do__lede,
html.high-contrast .section-eyebrow {
  color: #ffffff !important;
}

html.high-contrast .section-eyebrow::after,
html.high-contrast .what-i-do__divider,
html.high-contrast .what-i-do__accent {
  background: var(--border) !important;
}

html.high-contrast .what-i-do__icon {
  background: rgba(46, 230, 214, 0.08) !important;
  border: 2px solid rgba(95, 242, 232, 0.85) !important;
  box-shadow: inset 0 0 0 1px rgba(95, 242, 232, 0.08) !important;
}

html.high-contrast .what-i-do__icon svg {
  stroke: #5ff2e8 !important;
}

html.high-contrast .highlighted-work::before {
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 230, 214, 0.08), transparent 24%),
    linear-gradient(180deg, #08111d 0%, #0b1623 100%) !important;
  border-top: 2px solid var(--border) !important;
}

html.high-contrast .stack-group,
html.high-contrast .timeline-entry__content,
html.high-contrast .timeline-entry__year span,
html.high-contrast .employment-card,
html.high-contrast .learning-focus,
html.high-contrast .recognised-qualification,
html.high-contrast .continuous-learning,
html.high-contrast .about-me__aside {
  background:
    linear-gradient(180deg, rgba(18, 31, 45, 0.98) 0%, rgba(20, 35, 51, 0.98) 100%) !important;
  border-color: rgba(95, 242, 232, 0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(95, 242, 232, 0.08),
    0 0 0 1px rgba(95, 242, 232, 0.08) !important;
}

html.high-contrast .highlighted-work h2,
html.high-contrast .highlighted-work__intro,
html.high-contrast .highlighted-work .experience-timeline-intro,
html.high-contrast .project-card h3,
html.high-contrast .project-card__summary dd,
html.high-contrast .tech-stack h2,
html.high-contrast .tech-stack-intro,
html.high-contrast .stack-group h3,
html.high-contrast .stack-list li,
html.high-contrast .experience-timeline h2,
html.high-contrast .timeline-entry__content h3,
html.high-contrast .timeline-entry__list li,
html.high-contrast .current-employment h2,
html.high-contrast .current-employment-intro,
html.high-contrast .employment-info h3,
html.high-contrast .employment-org,
html.high-contrast .employment-summary,
html.high-contrast .employment-column h4,
html.high-contrast .employment-list li,
html.high-contrast .qualifications h2,
html.high-contrast .qualifications-header p,
html.high-contrast .qualification-label h3,
html.high-contrast .qualification-section-heading h3,
html.high-contrast .learning-focus__copy h4,
html.high-contrast .learning-focus__copy p,
html.high-contrast .recognised-qualification h4,
html.high-contrast .recognised-qualification p,
html.high-contrast .continuous-learning > p,
html.high-contrast .learning-topics li,
html.high-contrast .about-me__aside-label,
html.high-contrast .about-me__list strong,
html.high-contrast .about-me__list span,
html.high-contrast .about-contact-wrapper h2,
html.high-contrast .about-contact-wrapper p {
  color: #ffffff !important;
}

html.high-contrast .project-card,
html.high-contrast .project-card--pipeline {
  background:
    linear-gradient(180deg, rgba(18, 31, 45, 0.98) 0%, rgba(20, 35, 51, 0.98) 100%) !important;
  border: 1px solid rgba(95, 242, 232, 0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(95, 242, 232, 0.08),
    0 0 0 1px rgba(95, 242, 232, 0.08) !important;
}

html.high-contrast .qualifications-header__icon,
html.high-contrast .learning-focus__icon,
html.high-contrast .recognised-qualification__icon,
html.high-contrast .qualification-label__icon,
html.high-contrast .qualification-section-heading__icon {
  background: #000000 !important;
  color: var(--accent) !important;
}

html.high-contrast .qualification-progress {
  background: #000000 !important;
  border: 2px solid var(--border) !important;
  color: var(--accent) !important;
}

html.high-contrast .learning-topics li {
  background: #000000 !important;
  border: 2px solid var(--border) !important;
}

html.high-contrast .project-card__summary-item {
  border-color: rgba(95, 242, 232, 0.75) !important;
}

html.high-contrast .project-card__summary dt,
html.high-contrast .project-link,
html.high-contrast .project-card__tag {
  color: var(--accent) !important;
}

html.high-contrast .project-card__icon,
html.high-contrast .project-card__tag {
  background: #08111d !important;
  border: 2px solid var(--border) !important;
}

html.high-contrast .project-link:hover,
html.high-contrast .project-link:focus-visible {
  color: var(--hover-accent) !important;
}

html.high-contrast .project-card__image-frame--archive,
html.high-contrast .project-card__image-frame--label,
html.high-contrast .project-card__image-frame--pipeline {
  background: #08111d !important;
  border: 2px solid var(--border) !important;
  box-shadow: none !important;
}
