:root {
  color-scheme: light;
  --ink: #172026;
  --ink-strong: #0b1217;
  --muted: #5d6972;
  --soft: #eef1ef;
  --surface: #ffffff;
  --surface-2: #f6f4ef;
  --line: rgba(23, 32, 38, 0.12);
  --line-strong: rgba(23, 32, 38, 0.2);
  --teal: #0f766e;
  --teal-dark: #0b4f4a;
  --amber: #c87b24;
  --clay: #8f4d3f;
  --navy: #101820;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(16, 24, 32, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.menu-button {
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy);
  background: #fff;
  border-radius: 8px;
  font-size: 0.84rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.site-header.scrolled .brand-mark,
.site-header.menu-active .brand-mark {
  color: #fff;
  background: var(--navy);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.94rem;
  font-weight: 700;
}

.desktop-nav a {
  opacity: 0.84;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
}

.menu-button {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: transform 180ms ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  content: "";
  left: 0;
}

.menu-icon::before {
  transform: translateY(-6px);
}

.menu-icon::after {
  transform: translateY(6px);
}

.menu-button[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-icon::before {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-icon::after {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 76px 14px auto;
  z-index: 9;
  display: none;
  padding: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav a {
  padding: 14px 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.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;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 118px clamp(20px, 5vw, 72px) 54px;
  color: #fff;
  background: var(--navy);
}

.hero-bg,
.hero-bg img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 14, 18, 0.92) 0%, rgba(10, 14, 18, 0.78) 32%, rgba(10, 14, 18, 0.34) 68%, rgba(10, 14, 18, 0.2) 100%),
    linear-gradient(180deg, rgba(10, 14, 18, 0.26) 0%, rgba(10, 14, 18, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
}

.hero-portrait {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: clamp(26px, 5vw, 72px);
  z-index: 1;
  width: clamp(290px, 27vw, 430px);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 0.76;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

.eyebrow,
.section-kicker,
.project-type,
.timeline-date {
  margin: 0;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 0;
  font-size: clamp(3.4rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.16rem, 2.6vw, 1.58rem);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
}

.button.primary {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.button.secondary {
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

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

.button.ghost {
  color: var(--teal-dark);
  background: transparent;
  border-color: var(--line-strong);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  background: var(--surface-2);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 32px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.hero-proof div {
  padding: 15px 18px;
  background: rgba(12, 17, 22, 0.44);
}

.hero-proof dt {
  color: #fff;
  font-weight: 900;
}

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

.section,
.intro-band,
.contact-section {
  padding: clamp(70px, 10vw, 124px) clamp(20px, 5vw, 72px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-top: 42px;
  padding-bottom: 42px;
  color: #fff;
  background: var(--teal-dark);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.45fr 1.15fr 1fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
}

.intro-grid .section-kicker {
  color: #f4b06a;
}

.intro-grid h2,
.intro-grid p {
  margin: 0;
}

.intro-grid h2 {
  max-width: 560px;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.04;
}

.intro-grid p:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
}

.section-heading {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2,
.contact-layout h2,
.fit-grid h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.contact-layout p,
.fit-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 330px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.card-number {
  color: var(--teal);
  font-weight: 900;
}

.service-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 1.28rem;
  line-height: 1.14;
}

.service-card p,
.project-card p,
.timeline-item p,
.fit-list {
  margin: 0;
  color: var(--muted);
}

.muted-section {
  background: var(--surface-2);
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.72fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--teal-dark);
  background: #e2f1ef;
  border-radius: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.project-card a:hover,
.project-card a:focus-visible {
  background: #cde7e3;
}

.resume-layout {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.resume-panel {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  gap: 10px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-strong);
}

.fit-grid,
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.fit-list {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: fit;
}

.fit-list li {
  position: relative;
  min-height: 62px;
  padding: 4px 0 18px 64px;
  border-bottom: 1px solid var(--line);
  font-size: 1.08rem;
}

.fit-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--clay);
  border-radius: 8px;
  counter-increment: fit;
  content: counter(fit, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-section {
  color: #fff;
  background: var(--navy);
}

.contact-layout h2 {
  color: #fff;
}

.contact-layout p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-actions .button.secondary {
  color: #fff;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  grid-column: 2;
}

.contact-methods a,
.contact-methods span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.contact-methods a:hover,
.contact-methods a:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.contact-methods span span,
.contact-methods a span {
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-methods strong {
  font-size: 1.02rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #070c10;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

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

  .menu-button {
    display: grid;
  }

  .hero {
    min-height: 86svh;
  }

  .hero-content {
    width: min(620px, 72%);
  }

  .hero-portrait {
    right: 18px;
    width: clamp(240px, 33vw, 330px);
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 14, 18, 0.94) 0%, rgba(10, 14, 18, 0.76) 58%, rgba(10, 14, 18, 0.42) 100%),
      linear-gradient(180deg, rgba(10, 14, 18, 0.2) 0%, rgba(10, 14, 18, 0.72) 100%);
  }

  .intro-grid,
  .resume-layout,
  .fit-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .service-card {
    min-height: 270px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-child(2n) {
    border-right: 0;
  }

  .service-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-card a {
    justify-self: start;
  }

  .sticky-heading {
    position: static;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .contact-methods {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .mobile-nav {
    inset: 68px 10px auto;
  }

  .hero {
    min-height: auto;
    padding: 112px 18px 46px;
  }

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

  .hero-content {
    width: 100%;
  }

  .hero-portrait {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(48vw, 176px);
    margin: 24px auto 0;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.6rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-actions .button {
    min-height: 48px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 0.9rem;
  }

  .contact-actions {
    display: grid;
  }

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

  .hero-proof {
    display: none;
  }

  .section,
  .intro-band,
  .contact-section {
    padding: 58px 18px;
  }

  .intro-band {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .section-heading h2,
  .contact-layout h2,
  .fit-grid h2 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

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

  .service-card,
  .service-card:nth-child(2n) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .fit-list li {
    padding-left: 56px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
