:root {
  color-scheme: light;
  --bg: #eee7dc;
  --panel: #fffaf1;
  --ink: #101923;
  --muted: #56636a;
  --line: #d2c5b3;
  --accent: #285f72;
  --accent-dark: #173642;
  --accent-soft: #dbe9ea;
  --warm: #c8872d;
  --charcoal: #141b22;
  --graphite: #202a33;
  --cream: #f7efe2;
  --shadow: 0 24px 70px rgb(16 25 35 / 14%);
  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:
    radial-gradient(circle at 12% 8%, rgb(200 135 45 / 18%), transparent 24rem),
    radial-gradient(circle at 86% 22%, rgb(40 95 114 / 16%), transparent 28rem),
    linear-gradient(180deg, #fbf6ed 0%, var(--bg) 48%, #e6ded2 100%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.section-pad {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 24px 0;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand::before {
  background: linear-gradient(135deg, var(--accent), var(--warm));
  border-radius: 7px;
  content: "";
  display: inline-block;
  height: 18px;
  margin-right: 10px;
  width: 18px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  padding: 8px 11px;
  text-decoration: none;
}

.nav a:focus-visible,
.nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
  outline: none;
}

.hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 360px;
  padding-bottom: 82px;
  padding-top: 76px;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

p {
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.75rem, 7vw, 5.7rem);
  letter-spacing: -0.075em;
  line-height: 0.96;
  margin-bottom: 26px;
  max-width: 900px;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  margin-bottom: 9px;
}

.hero-text {
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  max-width: 780px;
}

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

.button {
  align-items: center;
  background: var(--warm);
  border: 1px solid var(--warm);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 12px 19px;
  text-decoration: none;
}

.button:focus-visible,
.button:hover {
  background: #e0a24d;
  outline: 3px solid rgb(200 135 45 / 32%);
  outline-offset: 3px;
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.contact-card,
.service-card,
.tech-card {
  background: rgb(255 250 241 / 88%);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%) inset;
}

.contact-card {
  align-self: end;
  box-shadow: var(--shadow);
  padding: 28px;
}

.card-label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.contact-email {
  color: var(--accent-dark);
  display: inline-block;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.quick-facts {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding-top: 20px;
}

.quick-facts div {
  display: grid;
  gap: 4px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 0;
}

.section {
  border-top: 1px solid var(--line);
  padding-bottom: 76px;
  padding-top: 76px;
}

.two-column {
  display: grid;
  gap: 40px;
  grid-template-columns: 340px minmax(0, 1fr);
}

.section-heading-wide {
  max-width: 850px;
}

.section-content {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.service-grid,
.tech-grid {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

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

.service-card,
.tech-card {
  padding: 24px;
}

.service-card {
  grid-column: span 2;
  border-top: 4px solid var(--accent);
  min-height: 215px;
}

.service-card-wide {
  grid-column: span 3;
}

.service-card p,
.tech-card p,
.contact p {
  color: var(--muted);
}

.timeline {
  background: rgb(255 250 241 / 58%);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 0;
  padding: 8px 24px;
}

.timeline-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item span {
  color: var(--warm);
  display: block;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

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

.tech-card h3 {
  color: var(--accent-dark);
}

#technology.section-pad {
  background: linear-gradient(135deg, rgb(20 27 34 / 96%), rgb(32 42 51 / 96%));
  color: var(--cream);
  margin-left: 0;
  margin-right: 0;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  width: 100%;
}

#technology .eyebrow,
#technology h2 {
  color: var(--cream);
}

#technology .tech-card {
  background: rgb(255 250 241 / 8%);
  border-color: rgb(247 239 226 / 18%);
}

#technology .tech-card h3 {
  color: var(--warm);
}

#technology .tech-card p {
  color: rgb(247 239 226 / 78%);
}

.contact.section-pad {
  align-items: center;
  background:
    linear-gradient(135deg, rgb(20 27 34 / 98%), rgb(23 54 66 / 98%)),
    var(--charcoal);
  border: 1px solid rgb(247 239 226 / 16%);
  border-radius: 30px;
  box-shadow: var(--shadow);
  color: var(--cream);
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 390px;
  justify-content: space-between;
  margin-bottom: 72px;
  margin-top: 76px;
  padding: 46px;
}

.contact h2 {
  margin-bottom: 14px;
}

.contact p {
  color: rgb(247 239 226 / 78%);
  max-width: 700px;
}

.contact a:not(.button) {
  color: #fff;
  font-weight: 850;
  text-underline-offset: 4px;
}

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

.contact-action-card {
  background: rgb(255 250 241 / 9%);
  border: 1px solid rgb(247 239 226 / 18%);
  border-radius: 22px;
  padding: 28px;
}

.contact-action-label {
  color: rgb(247 239 226 / 72%);
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.contact-action-card > a:not(.button) {
  display: inline-block;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.1;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.contact-action-card .button {
  margin-top: 12px;
}

.optional-contact:empty {
  display: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 26px 0 34px;
}

.site-footer a {
  color: var(--accent-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 940px) {
  .hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-self: stretch;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
  }

  .contact {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .contact.section-pad {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  .section-pad {
    margin-left: 14px;
    margin-right: 14px;
    width: min(360px, calc(100% - 28px));
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav a:first-child {
    padding-left: 0;
  }

  .hero {
    gap: 28px;
    padding-bottom: 56px;
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.55rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
    letter-spacing: -0.04em;
  }

  .section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

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

  .service-card,
  .service-card-wide {
    grid-column: auto;
    min-height: 0;
  }

  .contact,
  .contact-card,
  .service-card,
  .tech-card {
    border-radius: 20px;
    padding: 22px;
  }

  .contact.section-pad {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-left: 14px;
    margin-right: 14px;
    width: min(360px, calc(100% - 28px));
  }

  .contact-copy,
  .contact-action-card {
    min-width: 0;
  }

  .contact h2 {
    overflow-wrap: normal;
    word-break: normal;
  }

  .tech-card p {
    overflow-wrap: anywhere;
  }

  #technology.section-pad {
    padding-left: 14px;
    padding-right: 14px;
  }
}

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