:root {
  --ink: #101513;
  --ink-soft: #4d5752;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #cfd5d0;
  --accent: #19b58a;
  --accent-dark: #08795d;
  --section-pad: clamp(72px, 10vw, 148px);
  --page-pad: clamp(20px, 5vw, 76px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 var(--page-pad);
  color: var(--white);
  transition: background-color 220ms ease, color 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  height: 68px;
  background: rgba(247, 248, 245, 0.96);
  color: var(--ink);
  border-bottom: 1px solid rgba(16, 21, 19, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-contact)::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 10px 16px;
  border: 1px solid currentColor;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.is-scrolled .nav-contact:hover,
.is-scrolled .nav-contact:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.menu-button {
  display: none;
  min-width: 64px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.hero {
  position: relative;
  display: flex;
  height: calc(100svh - 34px);
  min-height: 680px;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background: #26312d url("assets/software-engineering-team.jpg") center 42% / cover no-repeat;
  transform: scale(1.03);
  animation: hero-settle 1.4s cubic-bezier(.2, .7, .2, 1) forwards;
}

.hero-shade {
  z-index: -2;
  background: linear-gradient(90deg, rgba(5, 12, 10, 0.88) 0%, rgba(5, 12, 10, 0.67) 43%, rgba(5, 12, 10, 0.18) 78%), linear-gradient(0deg, rgba(5, 12, 10, 0.6), transparent 50%);
}

.hero-inner {
  width: min(880px, 100%);
  padding: 138px var(--page-pad) clamp(72px, 9vh, 116px);
}

.hero-kicker,
.eyebrow,
.section-label {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-kicker::before {
  width: 38px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(68px, 10vw, 146px);
  font-weight: 400;
  line-height: 0.79;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 750;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #071a14;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateY(3px);
}

.text-link-light {
  color: var(--white);
}

.hero-location {
  position: absolute;
  right: var(--page-pad);
  bottom: 30px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 2fr);
  gap: clamp(36px, 8vw, 150px);
  padding: var(--section-pad) var(--page-pad);
}

.section-label,
.eyebrow {
  color: var(--accent-dark);
}

.intro-copy h2,
.company-copy h2,
.services-heading h2,
.approach-content h2,
.contact h2,
.legal-main h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.06;
}

.intro-copy h2 {
  max-width: 860px;
  font-size: clamp(42px, 6vw, 82px);
}

.intro-copy > p {
  max-width: 680px;
  margin: 40px 0 0 auto;
  color: var(--ink-soft);
  font-size: 19px;
}

.services {
  background: var(--ink);
  color: var(--white);
}

.services-heading {
  position: sticky;
  top: 108px;
  align-self: start;
}

.services-heading h2 {
  max-width: 440px;
  font-size: clamp(38px, 4.8vw, 66px);
}

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

.service-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 38px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.service-list li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  font-weight: 550;
}

.service-list p {
  max-width: 580px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.approach {
  display: grid;
  min-height: 720px;
  grid-template-columns: 1.05fr 0.95fr;
  background: #e6e9e3;
}

.approach-image {
  min-height: 620px;
  background: #c8cdc8 url("assets/software-engineering.jpg") center 38% / cover no-repeat;
}

.approach-content {
  align-self: center;
  padding: var(--section-pad) clamp(32px, 7vw, 112px);
}

.approach-content h2 {
  max-width: 610px;
  font-size: clamp(39px, 5vw, 68px);
}

.approach-content > p:not(.eyebrow) {
  max-width: 600px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.principles {
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid #b9c0ba;
  list-style: none;
}

.principles li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #b9c0ba;
  font-size: 14px;
  font-weight: 700;
}

.principles span {
  color: var(--accent-dark);
  font-size: 11px;
}

.company-copy h2 {
  max-width: 830px;
  font-size: clamp(41px, 5.8vw, 78px);
}

.company-copy > p {
  max-width: 700px;
  margin: 38px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.company-facts {
  display: grid;
  margin: 64px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.company-facts div {
  min-height: 120px;
  padding: 22px 20px 22px 0;
  border-bottom: 1px solid var(--line);
}

.company-facts dt {
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.company-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.contact {
  position: relative;
  padding: clamp(90px, 14vw, 190px) var(--page-pad);
  overflow: hidden;
  background: var(--accent);
}

.contact-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.contact .eyebrow {
  color: #083a2e;
}

.contact h2 {
  max-width: 940px;
  font-size: clamp(48px, 7.5vw, 104px);
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: 52px;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(17px, 2.4vw, 30px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  padding: 70px var(--page-pad) 32px;
  background: var(--ink);
  color: var(--white);
}

.brand-footer {
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: start;
  gap: 28px;
  font-size: 13px;
  font-weight: 650;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.legal-header {
  position: static;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.legal-main {
  max-width: 880px;
  min-height: calc(100vh - 300px);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 140px) var(--page-pad);
}

.legal-main h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 82px);
}

.legal-main h2 {
  margin: 48px 0 14px;
  font-size: 24px;
}

.legal-main p,
.legal-main li {
  color: var(--ink-soft);
}

.legal-main a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-updated {
  margin-bottom: 48px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2, .65, .25, 1);
}

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

.hero .reveal:nth-child(2) {
  transition-delay: 70ms;
}

.hero .reveal:nth-child(3) {
  transition-delay: 140ms;
}

.hero .reveal:nth-child(4) {
  transition-delay: 210ms;
}

@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: scale(1.03); }
}

@media (max-width: 920px) {
  .site-header {
    height: 70px;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 30px var(--page-pad);
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 400;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-contact {
    margin-top: 26px;
    padding: 15px 18px;
    border: 1px solid var(--ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
  }

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

  .services-heading {
    position: static;
  }

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

  .approach-image {
    min-height: min(70vh, 680px);
  }

  .approach-content {
    padding: 80px var(--page-pad);
  }
}

@media (max-width: 640px) {
  .hero {
    height: calc(100svh - 24px);
    min-height: 650px;
  }

  .hero-media {
    background-position: 62% center;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(5, 12, 10, 0.9) 0%, rgba(5, 12, 10, 0.56) 100%), linear-gradient(0deg, rgba(5, 12, 10, 0.72), transparent 60%);
  }

  .hero-inner {
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(54px, 16.5vw, 76px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero-location {
    right: auto;
    bottom: 22px;
    left: var(--page-pad);
  }

  .intro-copy > p {
    margin-left: 0;
    font-size: 17px;
  }

  .service-list li {
    grid-template-columns: 38px 1fr;
  }

  .approach-image {
    min-height: 520px;
  }

  .company-facts {
    grid-template-columns: 1fr;
  }

  .company-facts div {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .copyright {
    grid-column: auto;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
