/* BuiltByMattWells.com
   Framework-free, responsive, accessibility-first site styles.
*/

:root {
  color-scheme: light;
  --navy-950: #071523;
  --navy-900: #0b1f33;
  --navy-800: #12304d;
  --navy-700: #17466f;
  --teal-700: #087d75;
  --teal-600: #06958a;
  --teal-100: #d8f5f1;
  --gold-500: #f2b84b;
  --gold-100: #fff2d5;
  --ink: #122230;
  --muted: #536473;
  --surface: #ffffff;
  --surface-alt: #f3f7f9;
  --surface-dark: #0b1f33;
  --border: #cbd7de;
  --focus: #f2b84b;
  --success: #176b3a;
  --error: #a01818;
  --shadow: 0 18px 50px rgba(7, 21, 35, 0.12);
  --radius-sm: 0.55rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --shell: 74rem;
  --header-height: 5.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 20rem;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-700);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.18em;
}

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

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

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

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 2rem), 52rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.8rem 1rem;
  color: var(--navy-950);
  background: var(--focus);
  border: 2px solid var(--navy-950);
  border-radius: var(--radius-sm);
  font-weight: 900;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(203, 215, 222, 0.9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  flex: 0 1 19rem;
  min-height: 2.75rem;
  align-items: center;
  border-radius: var(--radius-sm);
}

.brand img {
  width: min(100%, 20rem);
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.2rem, 1vw, 0.9rem);
}

.primary-nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  color: var(--navy-900);
  border-radius: var(--radius-sm);
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: var(--surface-alt);
}

.primary-nav .nav-cta {
  padding-inline: 0.95rem;
  color: #ffffff;
  background: var(--navy-900);
}

.primary-nav .nav-cta:hover,
.primary-nav .nav-cta[aria-current="page"] {
  color: var(--navy-950);
  background: var(--gold-500);
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0.7rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  color: var(--navy-900);
  background: var(--surface);
  border: 2px solid var(--navy-900);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.35rem;
  height: 2px;
  background: currentColor;
}

.noscript-message {
  padding: 0.85rem 1rem;
  color: var(--navy-950);
  background: var(--gold-100);
  border-bottom: 2px solid var(--gold-500);
  text-align: center;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 18%, rgba(6, 149, 138, 0.28), transparent 25rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  bottom: -18rem;
  width: 36rem;
  height: 36rem;
  border: 5rem solid rgba(242, 184, 75, 0.08);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 6.5rem);
}

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

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--teal-700);
  font-size: 0.81rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow,
.dark-section .eyebrow,
.page-hero .eyebrow {
  color: #74e3d9;
}

h1,
h2,
h3 {
  color: var(--navy-900);
  line-height: 1.15;
  text-wrap: balance;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.5rem, 5.2vw, 4.8rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

.page-hero {
  padding: clamp(3.8rem, 7vw, 6rem) 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 20%, rgba(242, 184, 75, 0.14), transparent 24rem),
    linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.page-hero p:last-child {
  max-width: 65ch;
  margin: 1.25rem 0 0;
  color: #dce7ef;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.hero-summary,
.lead {
  max-width: 62ch;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-summary {
  color: #dce7ef;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  color: var(--navy-950);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.button-primary:hover {
  color: #ffffff;
  background: var(--teal-700);
  border-color: var(--teal-700);
}

.button-secondary {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

.button-secondary:hover {
  color: var(--navy-950);
  background: #ffffff;
}

.button-dark {
  color: #ffffff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button-dark:hover {
  color: var(--navy-950);
  background: var(--gold-500);
  border-color: var(--gold-500);
}

.button-full {
  width: 100%;
}

.hero-points,
.check-list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  color: #dce7ef;
}

.hero-points li,
.check-list li {
  position: relative;
  padding-left: 1.4rem;
}

.hero-points li::before,
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: 950;
}

.hero-visual {
  position: relative;
}

.browser-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.28);
  transform: rotate(1.5deg);
}

.browser-bar {
  min-height: 3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #e8eff3;
}

.browser-bar > span {
  width: 0.72rem;
  height: 0.72rem;
  background: #a7bac5;
  border-radius: 50%;
}

.address-bar {
  min-width: 0;
  flex: 1;
  margin-left: 0.35rem;
  padding: 0.25rem 0.65rem;
  overflow: hidden;
  color: #4d6170;
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.7rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-content {
  padding: clamp(1rem, 3vw, 2rem);
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mock-nav img {
  margin-right: auto;
}

.mock-nav span {
  width: 2.6rem;
  height: 0.42rem;
  background: #c8d4da;
  border-radius: 999px;
}

.mock-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 1.2rem;
  margin-top: 2rem;
}

.mock-hero > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mock-tag,
.mock-title,
.mock-copy,
.mock-button {
  display: block;
  border-radius: 999px;
}

.mock-tag {
  width: 4rem;
  height: 0.42rem;
  margin-bottom: 0.85rem;
  background: var(--teal-600);
}

.mock-title {
  width: 100%;
  height: 0.72rem;
  margin-bottom: 0.45rem;
  background: var(--navy-900);
}

.mock-title.short {
  width: 78%;
}

.mock-copy {
  width: 94%;
  height: 0.36rem;
  margin-top: 0.45rem;
  background: #c8d4da;
}

.mock-copy.short {
  width: 67%;
}

.mock-button {
  width: 5.4rem;
  height: 1.55rem;
  margin-top: 1rem;
  background: var(--gold-500);
  border-radius: 0.3rem;
}

.mock-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--navy-800), var(--teal-700));
  border-radius: 1rem;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
  font-weight: 900;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.mock-cards span {
  height: 3.8rem;
  background: var(--surface-alt);
  border: 1px solid #dce5ea;
  border-radius: 0.6rem;
}

.quality-badge {
  position: absolute;
  right: -1.25rem;
  bottom: -1.4rem;
  min-width: 12.5rem;
  padding: 0.85rem 1rem;
  color: var(--navy-950);
  background: var(--gold-500);
  border: 3px solid var(--navy-950);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.quality-badge strong,
.quality-badge span {
  display: block;
}

.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.trust-grid > div:first-child {
  border-left: 1px solid var(--border);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--navy-900);
  font-size: 1.05rem;
}

.trust-grid span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-sm {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.dark-section {
  color: #ffffff;
  background:
    radial-gradient(circle at 90% 20%, rgba(242, 184, 75, 0.16), transparent 24rem),
    var(--navy-900);
}

.dark-section h2,
.dark-section h3 {
  color: #ffffff;
}

.dark-section p {
  color: #dce7ef;
}

.section h2,
.contact-cta h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-heading > p:last-child {
  max-width: 65ch;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.card-grid,
.feature-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card,
.service-card,
.work-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 35px rgba(7, 21, 35, 0.06);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 0.85rem;
  font-weight: 950;
}

.service-card h3,
.card h3,
.work-card h3,
.process-grid h3,
.contact-card h3 {
  margin: 1.2rem 0 0.55rem;
  font-size: 1.28rem;
}

.service-card p,
.service-card li,
.card p,
.work-card p,
.process-grid p {
  color: var(--muted);
}

.service-card ul,
.card ul {
  margin: 1.2rem 0 0;
  padding-left: 1.25rem;
}

.service-card li + li,
.card li + li {
  margin-top: 0.4rem;
}

.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--navy-900);
  font-weight: 850;
}

.split-layout,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.fit-list,
.stack {
  display: grid;
  gap: 1rem;
}

.fit-list > div,
.info-row {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.fit-list span,
.info-row > span:first-child {
  grid-row: 1 / 3;
  color: var(--teal-700);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 900;
}

.fit-list strong,
.info-row strong {
  color: var(--navy-900);
  font-size: 1.1rem;
}

.fit-list p,
.info-row p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.process-grid li {
  position: relative;
  padding: 1.5rem;
  border-top: 4px solid var(--teal-700);
  background: var(--surface-alt);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.step-number {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy-900);
  border-radius: 50%;
  font-weight: 900;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.check-grid span {
  position: relative;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem 0.6rem 2.45rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid currentColor;
  border-color: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.check-grid span::before {
  content: "✓";
  position: absolute;
  left: 0.85rem;
  color: var(--gold-500);
  font-weight: 950;
}

.notice {
  padding: 1rem 1.1rem;
  color: var(--ink);
  background: var(--gold-100);
  border: 1px solid #dfc484;
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-label {
  align-self: flex-start;
  margin: 0 0 0.8rem;
  padding: 0.3rem 0.55rem;
  color: var(--navy-950);
  background: var(--teal-100);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.work-card .text-link {
  margin-top: auto;
  padding-top: 1rem;
}

.about-panel {
  min-height: 25rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 2rem;
  color: #ffffff;
  background:
    linear-gradient(155deg, rgba(6, 149, 138, 0.95), rgba(11, 31, 51, 0.96)),
    var(--navy-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-panel img {
  width: 5.5rem;
  height: 5.5rem;
}

.about-panel span,
.about-panel strong {
  display: block;
}

.about-panel strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.1;
}

.faq-list {
  max-width: 55rem;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.faq-list details + details {
  margin-top: 0.75rem;
}

.faq-list summary {
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--teal-700);
  font-size: 1.55rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details div {
  padding: 0 1.1rem 1rem;
  color: var(--muted);
}

.faq-list details p {
  margin: 0;
}

.contact-cta {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--gold-100);
  border-top: 1px solid #eed49c;
}

.contact-card {
  padding: clamp(1.5rem, 4vw, 2.3rem);
  background: var(--surface);
  border: 1px solid #dfc484;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
}

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

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.field label {
  color: var(--navy-900);
  font-weight: 800;
}

.field .optional {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid #8195a1;
  border-radius: var(--radius-sm);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy-900);
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 750;
}

.form-status[data-type="error"] {
  color: #ffffff;
  background: var(--error);
}

.form-status[data-type="success"] {
  color: #ffffff;
  background: var(--success);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.prose h3 {
  margin-top: 1.8rem;
}

.prose p,
.prose li {
  max-width: 75ch;
}

.prose li + li {
  margin-top: 0.35rem;
}

.breadcrumbs {
  padding: 0.8rem 0;
  color: var(--muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: #80919c;
}

.site-footer {
  padding: 2.5rem 0;
  color: #dce7ef;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) repeat(2, minmax(10rem, 0.6fr));
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  width: min(100%, 17.5rem);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.footer-copy p {
  max-width: 36rem;
  margin: 1rem 0 0;
}

.footer-links h2 {
  margin: 0 0 0.6rem;
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.35rem;
}

.footer-links a {
  color: #dce7ef;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #29445c;
  font-size: 0.9rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 4rem 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--teal-700);
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 950;
  line-height: 0.9;
}

@media (max-width: 64rem) {
  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow);
  }

  .primary-nav[data-open="true"] {
    display: grid;
  }

  .primary-nav a {
    width: 100%;
    min-height: 3rem;
  }

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

  .hero-visual {
    width: min(100%, 40rem);
    margin-inline: auto;
  }

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

  .card-grid,
  .feature-grid,
  .work-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 42rem) {
  :root {
    --header-height: 4.6rem;
  }

  .shell,
  .narrow {
    width: min(calc(100% - 1.25rem), var(--shell));
  }

  .brand {
    flex-basis: 14rem;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

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

  .quality-badge {
    position: static;
    width: max-content;
    max-width: 100%;
    margin: 1rem 0 0 auto;
  }

  .trust-grid,
  .card-grid,
  .feature-grid,
  .work-grid,
  .process-grid,
  .check-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    border: 1px solid var(--border);
    border-bottom: 0;
  }

  .trust-grid > div:last-child {
    border-bottom: 1px solid var(--border);
  }

  .mock-nav span:last-child {
    display: none;
  }

  .mock-hero {
    grid-template-columns: 1fr;
  }

  .mock-art {
    display: none;
  }

  .about-panel {
    min-height: 15rem;
    padding: 1.4rem;
  }
}

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

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

@media (forced-colors: active) {
  .button,
  .menu-toggle,
  .card,
  .service-card,
  .work-card,
  .contact-card {
    border: 2px solid ButtonText;
  }
}

@media print {
  .site-header,
  .button-row,
  .contact-cta,
  .site-footer,
  .hero-visual,
  .breadcrumbs {
    display: none !important;
  }

  body,
  .hero,
  .page-hero,
  .dark-section {
    color: #000000;
    background: #ffffff;
  }

  .hero,
  .page-hero,
  .section,
  .dark-section {
    padding: 1.5rem 0;
  }

  .hero h1,
  .page-hero h1,
  .dark-section h2,
  .dark-section h3,
  .hero-summary,
  .page-hero p:last-child,
  .dark-section p {
    color: #000000;
  }

  a {
    color: #000000;
    text-decoration: underline;
  }
}
