:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5d6b72;
  --line: #dce4e3;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --soft: #edf4f2;
  --teal: #0f766e;
  --teal-deep: #0b4f4a;
  --coral: #d96f54;
  --gold: #c99c43;
  --shadow: 0 18px 48px rgba(23, 33, 38, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    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;
}

body.nav-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  color: #ffffff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active,
.profile-header {
  background: rgba(251, 250, 247, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(23, 33, 38, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(11, 79, 74, 0.18);
}

.site-nav {
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  outline: none;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a:focus-visible,
.site-header.nav-active .site-nav a:hover,
.site-header.nav-active .site-nav a:focus-visible,
.profile-header .site-nav a:hover,
.profile-header .site-nav a:focus-visible {
  background: var(--soft);
}

.site-nav a[aria-current="page"] {
  background: var(--soft);
}

.nav-cta {
  background: var(--coral);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(23, 33, 38, 0.28);
  color: currentColor;
  cursor: pointer;
}

.nav-toggle svg {
  width: 100%;
  height: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(760px, 92svh);
  align-items: center;
  padding: 116px 0 64px;
  color: #ffffff;
  overflow: hidden;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 20, 24, 0.58) 0%, rgba(13, 20, 24, 0.36) 38%, rgba(13, 20, 24, 0.06) 72%),
    linear-gradient(180deg, rgba(13, 20, 24, 0.18) 0%, rgba(13, 20, 24, 0.03) 48%, rgba(13, 20, 24, 0.24) 100%);
}

.hero-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb09c;
}

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

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

h1 {
  max-width: 690px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

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

.button-primary {
  background: var(--coral);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(217, 111, 84, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c65f49;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.profile-secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.profile-secondary:hover,
.profile-secondary:focus-visible {
  background: var(--soft);
}

.full-width {
  width: 100%;
}

.hero-stats {
  display: grid;
  max-width: 820px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.intro {
  padding: 38px 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: 88px 0;
}

.muted {
  background: var(--soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 33, 38, 0.05);
}

.service-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 24px;
}

.accent-card {
  border-color: rgba(15, 118, 110, 0.26);
  background: #f7fbfa;
}

.service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--teal);
}

.accent-card .service-icon {
  background: rgba(217, 111, 84, 0.12);
  color: var(--coral);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card p,
.project-card p,
.method-copy p,
.contact-layout p {
  color: var(--muted);
}

.service-card p {
  margin: 14px 0 20px;
}

.service-card ul,
.contact-panel ul {
  display: grid;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.contact-panel li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.service-card li::before,
.contact-panel li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 60px;
}

.method-copy {
  position: sticky;
  top: 110px;
  height: fit-content;
}

.method-copy p:last-child {
  max-width: 500px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.timeline span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-deep);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  min-height: 230px;
  padding: 26px;
  border-top: 4px solid var(--teal);
}

.project-card:nth-child(2) {
  border-top-color: var(--coral);
}

.project-card:nth-child(3) {
  border-top-color: var(--gold);
}

.project-card p {
  margin: 16px 0 0;
}

.contact-band {
  background: var(--teal-deep);
  color: #ffffff;
}

.contact-band .section-kicker {
  color: #f0bf7a;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 46px;
  align-items: center;
}

.contact-layout p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.contact-email {
  margin-top: 18px;
}

.contact-email a {
  color: #ffffff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.34);
  text-underline-offset: 4px;
}

.contact-panel {
  padding: 26px;
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
  outline: none;
}

.field ::placeholder {
  color: #8b999e;
}

.site-footer {
  padding: 26px 0;
  background: #10181c;
  color: rgba(255, 255, 255, 0.72);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
}

.profile-hero {
  padding: 132px 0 72px;
  background:
    linear-gradient(135deg, rgba(237, 244, 242, 0.94), rgba(251, 250, 247, 0.9)),
    var(--paper);
}

.profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  gap: 58px;
  align-items: center;
}

.profile-copy h1 {
  color: var(--ink);
  text-shadow: none;
}

.profile-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.profile-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
}

.profile-photo-card figcaption {
  display: grid;
  gap: 5px;
  padding: 18px;
}

.profile-photo-card strong {
  color: var(--ink);
}

.profile-photo-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.profile-summary {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-grid,
.profile-two-columns,
.profile-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: start;
}

.summary-panel {
  display: grid;
  gap: 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.summary-panel p {
  margin: 0;
}

.credential-grid {
  display: grid;
  gap: 14px;
}

.credential-card,
.career-list li,
.skill-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(23, 33, 38, 0.05);
}

.credential-card {
  padding: 22px;
}

.credential-card span,
.career-list span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credential-card h3 {
  margin-top: 8px;
}

.credential-card p,
.profile-sticky p,
.career-list p,
.skill-grid p {
  color: var(--muted);
}

.credential-card p {
  margin: 10px 0 0;
}

.profile-sticky {
  position: sticky;
  top: 110px;
}

.profile-sticky p {
  max-width: 500px;
  margin-top: 18px;
}

.career-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.career-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  padding: 22px;
}

.career-list h3 {
  margin-bottom: 9px;
}

.career-list p {
  margin: 0;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.skill-grid article {
  min-height: 230px;
  padding: 24px;
}

.skill-grid p {
  margin: 14px 0 0;
}

.profile-cta {
  background: var(--teal-deep);
  color: #ffffff;
}

.profile-cta .section-kicker {
  color: #f0bf7a;
}

.profile-cta-inner {
  align-items: center;
}

.profile-cta-inner h2 {
  max-width: 680px;
}

.profile-cta-inner .button {
  justify-self: end;
}

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

  .service-card {
    min-height: 350px;
  }

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

@media (max-width: 820px) {
  .site-header {
    min-height: 64px;
    padding-inline: 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 64px 12px auto;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(251, 250, 247, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 13px 14px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 96px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(13, 20, 24, 0.68) 0%, rgba(13, 20, 24, 0.52) 60%, rgba(13, 20, 24, 0.32) 100%),
      linear-gradient(180deg, rgba(13, 20, 24, 0.16) 0%, rgba(13, 20, 24, 0.3) 100%);
  }

  .hero-stats,
  .intro-grid,
  .method-layout,
  .project-grid,
  .contact-layout,
  .profile-hero-grid,
  .summary-grid,
  .profile-two-columns,
  .profile-cta-inner {
    grid-template-columns: 1fr;
  }

  .method-copy,
  .profile-sticky {
    position: static;
  }

  .section {
    padding: 66px 0;
  }

  .profile-hero {
    padding: 102px 0 56px;
  }

  .profile-photo-card {
    max-width: 360px;
  }

  .profile-cta-inner .button {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .container,
  .hero-content {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    font-size: 0.96rem;
  }

  .hero {
    min-height: auto;
    padding: 92px 0 44px;
  }

  .hero-actions,
  .button,
  .profile-actions {
    width: 100%;
  }

  .hero-stats,
  .service-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats div,
  .service-card,
  .project-card,
  .contact-panel {
    padding: 20px;
  }

  .service-card {
    min-height: auto;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .career-list li {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

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