:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --text: #111111;
  --text-soft: rgba(17, 17, 17, 0.64);
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.2);
  --container: min(1120px, calc(100vw - 40px));
  --content: min(920px, calc(100vw - 40px));
  --section-space: clamp(4rem, 8vw, 7rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fbfbf8 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  text-rendering: optimizeLegibility;
}

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

.site-header,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.brand,
.header-link,
.site-footer p {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.header-link {
  color: var(--text-soft);
}

.section {
  width: var(--content);
  margin: 0 auto;
}

.hero {
  padding: clamp(5rem, 12vw, 9rem) 0 var(--section-space);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.service-row h2,
.section--contact h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.8rem, 9vw, 7.25rem);
  line-height: 0.92;
}

.hero__lede,
.service-row p,
.contact__lede,
.hero__meta,
.contact-status {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero__lede {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.hero__meta {
  margin: 1rem 0 0;
  font-size: 0.95rem;
}

.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.3rem;
  margin-top: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: background-color 180ms ease, border-color 180ms ease,
    transform 180ms ease;
  appearance: none;
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  transform: translateY(-1px);
}

.section--services {
  padding-bottom: var(--section-space);
}

.section-heading {
  padding: 0 0 0.75rem;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row h2,
.section--contact h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
}

.service-row p,
.contact__lede {
  margin: 0;
  font-size: 1rem;
}

.section--contact {
  padding: 0 0 clamp(4rem, 8vw, 6rem);
}

.section--contact h2 {
  max-width: 12ch;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(17, 17, 17, 0.42);
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.18);
  outline-offset: 2px;
  border-color: var(--line-strong);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-link {
  margin-top: 0;
  overflow-wrap: anywhere;
  background: transparent;
}

.contact-status {
  min-height: 1.7rem;
  margin: 0;
  font-size: 0.94rem;
}

.site-footer {
  padding: 1.2rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
}

.reveal {
  transition: opacity 500ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-animated .reveal {
  opacity: 0;
  transform: translateY(14px);
}

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

.brand:focus-visible,
.header-link:focus-visible,
.button:focus-visible,
.contact-link:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.32);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1120px);
    --content: min(100vw - 28px, 920px);
  }

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

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

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

  .button,
  .contact-link {
    width: 100%;
  }
}

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

  .reveal,
  body.is-animated .reveal,
  body.is-animated .reveal.is-visible,
  .button,
  .contact-link,
  .header-link {
    transition: none;
    transform: none;
  }
}
