@font-face {
  font-family: "Archivo";
  src: url("./assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-synthesis: none;
  --page: oklch(0.99 0 0);
  --surface: oklch(0.965 0 0);
  --ink: oklch(0.17 0.01 357);
  --muted: oklch(0.45 0.015 357);
  --rule: oklch(0.84 0.008 357);
  --field-border: oklch(0.58 0.01 357);
  --button-ink: oklch(0.99 0 0);
  --focus: oklch(0.62 0.18 357);
  --image-position: 54% center;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 20rem;
  margin: 0;
  font-family: Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
}

.theme-graphite {
  color-scheme: dark;
  --page: oklch(0.14 0 0);
  --surface: oklch(0.19 0 0);
  --ink: oklch(0.96 0.006 357);
  --muted: oklch(0.73 0.012 357);
  --rule: oklch(0.34 0.012 357);
  --field-border: oklch(0.52 0.01 357);
  --button-ink: oklch(0.99 0 0);
  --focus: oklch(0.72 0.14 357);
  --location-accent: oklch(0.76 0.13 357);
  --image-position: 58% center;
}

.theme-frost {
  --page: oklch(0.975 0 0);
  --surface: oklch(0.935 0 0);
  --ink: oklch(0.2 0.018 250);
  --muted: oklch(0.46 0.02 250);
  --rule: oklch(0.8 0.015 250);
  --field-border: oklch(0.56 0.015 250);
  --button-ink: oklch(0.99 0 0);
  --focus: oklch(0.59 0.18 357);
  --image-position: 48% center;
}

::selection {
  color: var(--button-ink);
  background: var(--accent);
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: oklch(0.62 0.18 357 / 0.2);
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.site-header,
.section-shell,
.site-footer {
  width: min(76rem, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 0.0625rem solid var(--rule);
}

.brand {
  max-width: 20rem;
  min-block-size: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
}

.site-header nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 650;
  text-underline-offset: 0.35rem;
}

.site-header .nav-action {
  color: var(--button-ink);
  background: var(--accent);
  padding-inline: 1rem;
  text-decoration: none;
}

.hero {
  width: min(88rem, calc(100% - 3rem));
  min-height: calc(100svh - 5rem);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 8rem);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.location {
  margin: 0 0 1.25rem;
  color: var(--location-accent, var(--accent));
  font-size: 0.875rem;
  font-weight: 740;
  line-height: 1.4;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 680;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.hero-summary {
  max-width: 39rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.65;
}

.actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.625rem;
  color: var(--button-ink);
  background: var(--accent);
  padding: 0.75rem 1.25rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.button:hover {
  filter: brightness(0.88);
}

.button:active {
  transform: translateY(0.0625rem);
}

.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  font-weight: 650;
  text-underline-offset: 0.4rem;
}

.hero-media {
  position: relative;
  height: min(72vh, 48rem);
  min-height: 30rem;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position);
}

.media-fallback {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  padding: 2rem;
  text-align: center;
  line-height: 1.6;
}

.media-fallback[hidden] {
  display: none;
}

.theme-precision-light .hero {
  grid-template-columns: minmax(18rem, 0.82fr) minmax(24rem, 1.18fr);
}

.theme-precision-light .hero-copy {
  grid-column: 1;
}

.theme-precision-light .hero-media {
  grid-column: 2;
}

.theme-graphite .hero {
  width: 100%;
  min-height: calc(100svh - 5rem);
  padding: 0;
  grid-template-columns: minmax(2rem, 1fr) minmax(18rem, 34rem) minmax(2rem, 1fr);
  grid-template-rows: minmax(42rem, calc(100svh - 5rem));
  gap: 0;
}

.theme-graphite .hero-media {
  width: 100%;
  height: 100%;
  min-height: 42rem;
  grid-column: 1 / -1;
  grid-row: 1;
}

.theme-graphite .hero-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin-block: 4rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--page);
}

.theme-graphite .hero h1 {
  font-size: clamp(3rem, 5.5vw, 5.5rem);
}

.theme-graphite .feedback {
  border-block: 0.0625rem solid var(--rule);
  background: var(--page);
  box-shadow: none;
}

.theme-frost .hero {
  grid-template-columns: minmax(24rem, 1.12fr) minmax(20rem, 0.88fr);
}

.theme-frost .hero-copy {
  grid-column: 2;
  grid-row: 1;
  padding-left: clamp(1rem, 3vw, 3rem);
}

.theme-frost .hero-media {
  grid-column: 1;
  grid-row: 1;
}

.theme-frost h1 {
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  line-height: 1.02;
}

.theme-frost .service-list article {
  grid-template-columns: minmax(12rem, 0.55fr) minmax(18rem, 1.45fr);
  padding-block: 2.75rem;
}

.theme-frost .feedback {
  background: var(--page);
  box-shadow: none;
}

.theme-frost .testimonial-list {
  grid-template-columns: minmax(16rem, 0.65fr) minmax(20rem, 1.35fr);
  align-items: start;
  gap: clamp(4rem, 12vw, 12rem);
}

.section-shell {
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 0.0625rem solid var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(16rem, 0.7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

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

.service-list li {
  border-top: 0.0625rem solid var(--rule);
}

.service-list li:last-child {
  border-bottom: 0.0625rem solid var(--rule);
}

.service-list article {
  min-height: 8rem;
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 8vw, 10rem);
  align-items: baseline;
  padding-block: 2rem;
}

.service-list h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.service-list p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feedback {
  background: var(--surface);
  box-shadow: 50vw 0 var(--surface), -50vw 0 var(--surface);
}

.testimonial-list {
  display: grid;
  grid-template-columns: minmax(20rem, 1.4fr) minmax(16rem, 0.6fr);
  gap: clamp(3rem, 9vw, 9rem);
  align-items: end;
}

.testimonial-list figure {
  margin: 0;
}

.testimonial-list blockquote {
  margin: 0 0 1.75rem;
}

.testimonial-list blockquote p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 3.25rem);
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.testimonial-list li:not(:first-child) blockquote p {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  line-height: 1.45;
}

.testimonial-list figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.quote-section form {
  max-width: 52rem;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-fallback {
  max-width: 52rem;
  margin: 0 0 1.5rem auto;
  color: var(--muted);
  line-height: 1.65;
}

.contact-fallback a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 0.3rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field-wide,
.quote-section form > .button,
.form-status {
  grid-column: 1 / -1;
}

label {
  font-size: 0.875rem;
  font-weight: 680;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 0.0625rem solid var(--field-border);
  border-radius: 0.625rem;
  color: var(--ink);
  background: var(--page);
  padding: 0.75rem 0.875rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--muted);
}

.quote-section form > .button {
  justify-self: start;
  margin-top: 0.5rem;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status[data-state="error"] {
  color: oklch(0.48 0.18 25);
}

.theme-graphite .form-status[data-state="error"] {
  color: oklch(0.76 0.13 25);
}

.form-status[data-state="pending"] {
  color: var(--ink);
}

.form-status[data-state="prepared"] {
  color: oklch(0.42 0.1 150);
}

.theme-graphite .form-status[data-state="prepared"] {
  color: oklch(0.75 0.1 150);
}

.site-footer {
  min-height: 9rem;
  padding-block: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-top: 0.0625rem solid var(--rule);
}

.site-footer p {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-weight: 650;
  text-underline-offset: 0.35rem;
}

@media (max-width: 54rem) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-copy {
    max-width: 44rem;
  }

  .hero-media {
    height: min(75vw, 38rem);
    min-height: 24rem;
  }

  .theme-precision-light .hero {
    grid-template-columns: 1fr;
  }

  .theme-precision-light .hero-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .theme-precision-light .hero-media {
    grid-column: 1;
    grid-row: 2;
  }

  .theme-graphite .hero {
    width: min(88rem, calc(100% - 3rem));
    min-height: auto;
    padding-block: clamp(2.5rem, 7vw, 7rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3rem;
  }

  .theme-frost .hero {
    width: min(88rem, calc(100% - 3rem));
    min-height: auto;
    padding-block: clamp(2.5rem, 7vw, 7rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 3rem;
  }

  .theme-graphite .hero-copy,
  .theme-frost .hero-copy {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    padding: 0;
    background: var(--page);
  }

  .theme-graphite .hero-media,
  .theme-frost .hero-media {
    height: min(75vw, 38rem);
    min-height: 24rem;
    grid-column: 1;
    grid-row: 2;
  }

  .theme-frost .service-list article {
    grid-template-columns: 1fr;
  }

  .theme-frost .testimonial-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 40rem) {
  .site-header,
  .section-shell,
  .site-footer,
  .hero {
    width: min(100% - 2rem, 76rem);
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .site-header .nav-action {
    padding-inline: 0.75rem;
  }

  .hero {
    padding-block: 3.5rem;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.5rem);
  }

  .hero-media {
    width: calc(100% + 1rem);
    height: 29rem;
    min-height: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-list article,
  .testimonial-list,
  .quote-section form {
    grid-template-columns: 1fr;
  }

  .service-list article {
    gap: 0.875rem;
  }

  .testimonial-list {
    gap: 3.5rem;
  }

  .field-wide,
  .quote-section form > .button,
  .form-status {
    grid-column: 1;
  }

  .quote-section form > .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
  }
}
