:root {
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #171a18;
  --muted: #626863;
  --line: #dfe3de;
  --soft: #f0f3ef;
  --accent: #2d7762;
  --accent-dark: #225c4c;
  --accent-soft: #e6f1ed;
  --dark: #171b19;
  --radius: 18px;
  --small-radius: 11px;
  --shadow: 0 18px 60px rgb(16 29 23 / 0.08);
  --container: 1152px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(80px, 9vw, 128px);
}

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

.section-grid {
  background-image:
    linear-gradient(to right, rgb(23 26 24 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(23 26 24 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.eyebrow {
  margin-bottom: 0;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #9dd0bd;
}

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

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgb(223 227 222 / 0.9);
  background: rgb(251 250 247 / 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.brand-mark-fill {
  fill: currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.main-nav > a:not(.button) {
  padding-block: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav > a:not(.button):hover {
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.menu-button[aria-expanded="true"] > span:nth-child(2) {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-accent {
  background: var(--accent);
  color: white;
}

.button-accent:hover {
  background: var(--accent-dark);
}

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

.button-light {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--ink);
}

.nav-cta {
  min-height: 44px;
  padding-inline: 20px;
}

.hero {
  min-height: calc(100svh - 78px);
  border-bottom: 1px solid var(--line);
}

.hero-layout {
  display: grid;
  min-height: calc(100svh - 78px);
  align-items: center;
  padding-block: clamp(72px, 9vw, 130px);
}

.hero-copy {
  min-width: 0;
  max-width: 880px;
}

.hero h1 {
  max-width: 760px;
  margin-block: 24px 0;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.lead {
  max-width: 640px;
  margin-block: 32px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.problem-section {
  overflow: hidden;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  background-color: var(--dark);
  color: white;
}

.problem-section.section-grid {
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.035) 1px, transparent 1px);
}

.problem-layout {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  padding-block: clamp(80px, 9vw, 136px);
}

.problem-section h2 {
  max-width: 820px;
  margin: 0;
  color: #adb5af;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 540;
  line-height: 1.28;
}

.problem-contrast {
  margin-block: 48px 0;
  color: white;
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.problem-answer {
  display: inline-block;
  margin-block: 36px 0;
  padding-bottom: 5px;
  border-bottom: 2px solid #77bba1;
  color: #9dd0bd;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.35;
}

.problem-image {
  position: relative;
  margin: 0;
  padding: clamp(8px, 1vw, 12px);
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 6px;
  background: white;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.22);
}

.problem-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e7e9e7;
  border-radius: 2px;
  opacity: 1;
  mix-blend-mode: normal;
  filter: grayscale(1);
  -webkit-mask-image: none;
  mask-image: none;
}

.section-heading {
  max-width: 720px;
}

.section-heading h2 {
  margin-block: 18px 0;
}

.section-heading > p:last-child {
  max-width: 680px;
  margin-block: 24px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.compact-heading h2 {
  font-size: clamp(1.875rem, 3vw, 2.25rem);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-card {
  position: relative;
  min-height: 240px;
  padding: 24px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.service-card:hover,
.service-card:focus-visible {
  z-index: 1;
  background: var(--accent-soft);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.service-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.service-card h3 {
  margin-block: 40px 0;
}

.service-card p {
  margin-block: 13px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.service-link {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.deliverables-section {
  background: var(--soft);
}

.deliverables-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 130px);
}

.deliverables-list {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.deliverables-list li {
  display: grid;
  grid-template-columns: 40px minmax(150px, 0.55fr) minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.deliverables-list span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.deliverables-list strong {
  font-size: 1.05rem;
}

.deliverables-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.tag-row li {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
}

.info-box {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--white);
}

.info-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: center;
}

.portrait-placeholder {
  position: relative;
  display: flex;
  min-height: 470px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image:
    linear-gradient(to right, rgb(23 26 24 / 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(23 26 24 / 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--muted);
}

.portrait-silhouette {
  position: relative;
  width: 150px;
  height: 210px;
  opacity: 0.42;
}

.portrait-silhouette::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.portrait-silhouette::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 116px;
  border: 1px solid var(--accent);
  border-radius: 75px 75px 12px 12px;
  content: "";
}

.portrait-placeholder figcaption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: grid;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.portrait-placeholder figcaption strong {
  color: var(--ink);
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.about-copy h2 {
  max-width: 750px;
  margin-block: 18px 30px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.about-points li > span {
  padding-top: 2px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.about-points strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.about-points p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.process-section {
  background: var(--dark);
  color: white;
}

.process-heading > p:last-child {
  color: #adb5af;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding-top: 18px;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

.process-list span {
  color: #8dceb5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.process-list h3 {
  margin-block: 18px 0;
  font-size: 1.15rem;
}

.process-list p {
  margin-block: 12px 0;
  color: #adb5af;
  font-size: 0.88rem;
}

.projects-section {
  background: var(--soft);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 52px;
}

.project-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.project-image-slot {
  display: grid;
  aspect-ratio: 4 / 3;
  place-content: center;
  place-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgb(45 119 98 / 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(45 119 98 / 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--accent-dark);
}

.project-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.project-image-slot span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.project-image-slot strong {
  font-size: 0.88rem;
  font-weight: 650;
}

.project-card figcaption {
  padding: 24px;
}

.project-card h3 {
  margin-block: 13px 0;
  font-size: 1.2rem;
}

.project-card figcaption > p:last-child {
  margin-block: 12px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.contact-section {
  background: var(--dark);
  color: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 116px;
}

.contact-copy h2 {
  margin-block: 20px 0;
  font-size: clamp(1.875rem, 4vw, 3rem);
}

.contact-copy > p:not(.eyebrow) {
  margin-top: 26px;
  color: #bcc2bd;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.contact-details a {
  width: fit-content;
  color: white;
  font-weight: 650;
  text-underline-offset: 4px;
}

.contact-assurance {
  padding-left: 18px;
  border-left: 2px solid #78b99f;
  font-size: 0.86rem;
}

.contact-form {
  padding: clamp(24px, 4vw, 46px);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-heading p:last-child {
  margin-block: 8px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.form-section {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.form-section legend {
  font-size: 0.82rem;
  font-weight: 750;
}

.contact-info-fieldset .form-grid {
  margin-top: 14px;
}

.contact-form label,
.full-field {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-form label em,
.contact-form legend em {
  color: var(--muted);
  font-style: normal;
  font-weight: 450;
}

.contact-form b {
  color: var(--accent);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.dynamic-questions input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  background: var(--paper);
  color: var(--ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.dynamic-questions input[type="text"] {
  min-height: 50px;
  padding: 12px 14px;
}

.contact-form textarea {
  min-height: 130px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgb(45 119 98 / 0.15);
}

.project-fieldset,
.dynamic-fieldset {
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}

.assistance-fieldset[hidden] {
  display: none;
}

.project-fieldset legend,
.dynamic-fieldset legend {
  font-size: 0.82rem;
  font-weight: 750;
}

.dynamic-fieldset[hidden] {
  display: none;
}

.dynamic-intro {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

.project-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

.project-options label {
  display: block;
  min-width: 0;
  cursor: pointer;
}

.project-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-options span {
  display: flex;
  min-height: 56px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  background: var(--paper);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.project-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.project-options input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.dynamic-questions {
  display: grid;
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--small-radius);
  background: var(--soft);
}

.dynamic-question {
  margin: 0;
  padding: 0;
  border: 0;
}

.dynamic-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.dynamic-options label {
  display: block;
  cursor: pointer;
}

.dynamic-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dynamic-options span {
  display: block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.dynamic-options input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.dynamic-options input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.full-field {
  margin-top: 30px;
}

.form-reassurance {
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 0.8rem;
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-widget {
  min-height: 65px;
  margin-top: 26px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.form-footer p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
}

.form-footer p a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-footer .button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.form-status {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid rgb(45 119 98 / 0.25);
  border-radius: var(--small-radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.85rem;
}

.form-status[hidden] {
  display: none;
}

.form-status[data-state="error"] {
  border-color: var(--ink);
  background: var(--soft);
  color: var(--ink);
}

.privacy-strip {
  padding-block: 62px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.privacy-strip-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

.privacy-strip h2 {
  margin-block: 10px 0;
  font-size: 1.5rem;
}

.privacy-strip p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.text-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.site-footer {
  padding-block: 58px 28px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid p {
  margin-bottom: 5px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 800;
}

.footer-grid > div:nth-child(2),
.footer-links {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-grid a {
  width: fit-content;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-header {
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.legal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.back-link {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
}

.legal-main {
  width: min(100% - 40px, 820px);
  margin-inline: auto;
  padding-block: 80px 110px;
}

.legal-main h1 {
  max-width: 760px;
  margin-block: 18px 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.legal-intro {
  margin-block: 28px 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-notice {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.88rem;
}

.legal-sections {
  margin-top: 64px;
}

.legal-sections section {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}

.legal-sections h2 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.legal-sections p,
.legal-sections li {
  color: var(--muted);
  font-size: 0.93rem;
}

.legal-sections a {
  text-underline-offset: 3px;
}

@media (max-width: 1050px) {
  .hero-layout,
  .problem-layout,
  .deliverables-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
  }

  .problem-image {
    width: min(100%, 480px);
    justify-self: center;
  }

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

  .contact-copy {
    position: static;
  }

  .privacy-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-strip-inner .text-link {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .menu-button {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    max-height: calc(100svh - 78px);
    overflow-y: auto;
    padding: 14px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
  }

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

  .main-nav > a:not(.button) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 8px;
  }

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

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

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

  .privacy-strip-inner {
    grid-template-columns: 1fr;
  }

  .privacy-strip-inner .text-link {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    min-height: 70px;
  }

  .main-nav {
    inset-block-start: 70px;
    max-height: calc(100svh - 70px);
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    min-height: auto;
    padding-block: 64px 76px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.75rem);
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .problem-layout {
    min-height: auto;
  }

  .problem-contrast {
    margin-top: 38px;
  }

  .problem-image {
    width: min(100%, 420px);
  }

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

  .service-card {
    min-height: 220px;
  }

  .deliverables-list li {
    grid-template-columns: 34px 1fr;
  }

  .deliverables-list p {
    grid-column: 2;
  }

  .info-box {
    grid-template-columns: 1fr;
  }

  .portrait-placeholder {
    min-height: 360px;
  }

  .about-points,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .contact-form {
    margin-inline: -6px;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

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

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
