:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5a6267;
  --paper: #f7f9f8;
  --white: #ffffff;
  --line: #d7dfdc;
  --teal: #008c95;
  --teal-dark: #00666d;
  --coral: #d94f3d;
  --green: #3d7d45;
  --gold: #d6a51d;
  --shadow: 0 18px 45px rgba(32, 33, 36, 0.12);
  --hero-bg: #eef3fb;
  --navy: #050517;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 88px;
  padding: 1rem clamp(1.25rem, 7vw, 8.5rem);
  background: rgba(238, 243, 251, 0.94);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.brand {
  color: #111318;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 2vw, 1.8rem);
}

.site-nav a {
  border-radius: 8px;
  color: #111318;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  padding: 0.35rem 0.2rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  background: transparent;
  color: var(--teal-dark);
}

.splash {
  position: relative;
  min-height: calc(100vh - 88px);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(1.25rem, 3vh, 2.25rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
  padding: clamp(1.75rem, 5vh, 3.25rem) 1rem clamp(2rem, 5vh, 3.25rem);
}

.splash-image,
.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-content {
  display: grid;
  justify-items: center;
  width: min(1100px, 100%);
  color: #05070b;
  text-align: center;
}

.splash-mark {
  display: grid;
  place-items: center;
  width: clamp(13rem, 34vh, 22rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #dfe6f1;
  box-shadow: 0 18px 55px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.splash-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.splash .eyebrow,
.page-hero .eyebrow,
.contact-hero .eyebrow {
  color: #ffb45c;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
}

.splash h1 {
  max-width: none;
  font-size: clamp(3.25rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: 1.08rem;
}

.splash-title,
.page-hero-copy p,
.contact-copy p {
  max-width: 760px;
  font-size: 1.1rem;
}

.splash-title {
  margin: 0.7rem 0 1.35rem;
  color: #4b5565;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem);
  line-height: 1.18;
}

.splash-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1rem, 2.4vw, 1.7rem);
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.splash-contact a {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-decoration: none;
}

.splash-contact a:hover,
.splash-contact a:focus {
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
  outline: 3px solid rgba(0, 140, 149, 0.24);
  transform: translateY(-2px);
}

.splash-contact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.splash .button {
  min-width: 180px;
  min-height: 56px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.splash .button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 210px));
}

.button.primary {
  background: var(--navy);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus {
  background: #18182e;
}

.button.secondary {
  background: var(--white);
  border-color: #d5d8de;
  color: #111318;
}

.button.secondary:hover,
.button.secondary:focus {
  background: #f8fafc;
  border-color: #bcc3cf;
  color: #111318;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.stat {
  min-height: 150px;
  padding: clamp(1rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.stat span {
  display: block;
  max-width: 260px;
  margin-top: 0.7rem;
  color: var(--muted);
}

.profile-banner {
  display: grid;
  place-items: center;
  min-height: 148px;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.profile-banner p {
  max-width: 1120px;
  margin: 0;
  color: #394250;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.45;
}

.content-section,
.feature-grid,
.cv-layout,
.contact-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.content-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.text-stack p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.feature-grid article,
.skill-groups article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 210px;
  padding: 1.5rem 5rem 1.5rem 1.5rem;
  border-top: 5px solid var(--gold);
}

.feature-grid article:nth-child(2) {
  border-top-color: var(--teal);
}

.feature-grid article:nth-child(3) {
  border-top-color: var(--coral);
}

.feature-grid p,
.skill-groups p,
.resume-section p,
.job li,
.resume-list li {
  color: var(--muted);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 54vh;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 17, 18, 0.88), rgba(15, 17, 18, 0.48), rgba(15, 17, 18, 0.24));
}

.page-hero-copy {
  width: min(1000px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cv-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.cv-sidebar {
  align-self: start;
  position: sticky;
  top: 104px;
  display: grid;
  gap: 2rem;
}

.cv-sidebar h2,
.contact-card h2,
.resume-section h2 {
  font-size: 1.15rem;
}

.cv-sidebar p {
  margin: 0.35rem 0;
}

.linkedin-link {
  display: inline-grid;
  place-items: center;
  width: 32px;
  aspect-ratio: 1;
  border-radius: 6px;
  text-decoration: none;
}

.linkedin-link img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.linkedin-link:hover,
.linkedin-link:focus {
  outline: 3px solid rgba(0, 140, 149, 0.22);
}

.tag-list,
.resume-list {
  padding-left: 1.1rem;
}

.tag-list {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

.tag-list li {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.35;
}

.cv-main {
  display: grid;
  gap: 2.5rem;
}

.resume-section {
  border-top: 3px solid var(--teal);
  padding-top: 1.2rem;
}

.job {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.job:last-child {
  border-bottom: 0;
}

.job-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.job-heading p {
  margin: 0.2rem 0 0;
}

.job-heading > p {
  flex: 0 0 190px;
  color: var(--muted);
  text-align: right;
}

.job h3 span {
  color: var(--muted);
  font-weight: 500;
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.skill-groups article {
  padding: 1.2rem;
}

.contact-hero {
  display: grid;
  justify-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(0.75rem, 2vw, 1.25rem);
}

.contact-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.contact-copy .eyebrow {
  color: var(--coral);
}

.contact-copy {
  max-width: 760px;
  text-align: center;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  place-content: center;
  align-items: start;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.hidden-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

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

label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #aeb8b4;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 140, 149, 0.2);
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--coral);
  font-weight: 800;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-card {
  align-self: start;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  white-space: nowrap;
  max-width: 100%;
  padding: 1.4rem;
  border-top: 5px solid var(--green);
}

.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  min-height: 96px;
  padding: 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer-mark {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-icon-link {
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.footer-icon-link:hover,
.footer-icon-link:focus {
  outline: 3px solid rgba(255, 255, 255, 0.3);
}

.footer-icon-link img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

@media (max-width: 900px) {
  .stats-band,
  .feature-grid,
  .skill-groups {
    grid-template-columns: 1fr 1fr;
  }

  .two-column,
  .cv-layout,
  .contact-hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-card {
    white-space: normal;
  }

  .cv-sidebar {
    order: 2;
    position: static;
  }

  .cv-main {
    order: 1;
  }

}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 0.75rem;
    min-height: 72px;
    padding: 0.8rem 1rem;
  }

  .brand {
    font-size: clamp(1.25rem, 6vw, 1.6rem);
  }

  .site-nav {
    justify-content: flex-end;
    gap: 0.65rem;
  }

  .site-nav a {
    font-size: clamp(0.88rem, 4vw, 1rem);
    padding: 0.25rem 0;
  }

  .footer-mark {
    right: 1rem;
    bottom: 1.5rem;
  }

  .splash {
    min-height: calc(100vh - 128px);
    gap: 1rem;
    padding-top: 1.5rem;
  }

  .splash-content {
    width: 100%;
  }

  .splash h1 {
    font-size: clamp(2.6rem, 14vw, 3.8rem);
  }

  .splash-title {
    margin-bottom: 1.15rem;
    font-size: clamp(1.1rem, 6vw, 1.6rem);
  }

  .splash-contact {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .splash-contact a {
    width: 40px;
  }

  .splash .button-row {
    grid-template-columns: 1fr;
    width: min(100%, 260px);
  }

  .splash .button {
    min-width: 0;
    min-height: 52px;
  }

  .stats-band,
  .feature-grid,
  .skill-groups,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .job-heading {
    display: block;
  }

  .job-heading > p {
    text-align: left;
  }
}
