/* Wallcovering in Greenville — botanical atelier */
:root {
  color-scheme: light;
  --pine: #263c32;
  --pine-deep: #1c3027;
  --cream: #f6f3ea;
  --paper: #fffdf7;
  --ink: #202b25;
  --muted: #59645c;
  --grass: #71845b;
  --ochre: #a66f43;
  --line: #d8dbcf;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, system-ui, sans-serif;
  --container: 1240px;
  --radius: 3px;
  --shadow: 0 18px 52px rgba(20, 38, 29, .13);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
button, input, select, textarea { max-width: 100%; }
:focus-visible { outline: 3px solid #b67844; outline-offset: 4px; }
::selection { background: #d9dfc7; color: var(--pine-deep); }
h1, h2, h3, h4, p, figure { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.13; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--pine);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.container {
  width: min(calc(100% - 3rem), var(--container));
  margin-inline: auto;
}

/* Navigation */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--cream);
  color: var(--pine);
  border-bottom: 1px solid rgba(38, 60, 50, .12);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 3rem);
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 50% 5%;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1;
}
.brand-mark span { font-size: .72em; transform: translate(-.12em, .22em); }
.brand-text {
  display: block;
  max-width: 205px;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.brand-text small, .brand-text span {
  display: block;
  margin-top: .2rem;
  font-family: var(--sans);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.25;
  text-transform: uppercase;
}
.desktop-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); margin-left: auto; }
.desktop-nav a, .header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.desktop-nav a:hover, .desktop-nav a[aria-current='page'] { color: var(--ochre); }
.header-phone { white-space: nowrap; border-bottom: 1px solid var(--ochre); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: .5rem .7rem;
  border: 1px solid var(--pine);
  list-style: none;
  font-size: .8rem;
  font-weight: 700;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav > :not(summary) {
  position: absolute;
  top: calc(100% + .65rem);
  right: 0;
  z-index: 40;
  width: min(280px, calc(100vw - 2rem));
  padding: .6rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mobile-nav a { display: block; padding: .75rem .2rem; color: var(--pine); font-weight: 700; text-decoration: none; }
.mobile-nav a + a { border-top: 1px solid var(--line); }

/* Hero: real image supplied by the page, with an independent contrast layer. */
.hero { position: relative; isolation: isolate; background: var(--pine-deep); color: #fff; }
.hero-backdrop {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 31, 23, .88) 0%, rgba(20, 38, 29, .76) 40%, rgba(20, 38, 29, .36) 75%, rgba(20, 38, 29, .30) 100%);
  pointer-events: none;
}
.hero-layout {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 425px);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(3rem, 5vw, 5rem);
}
.hero-copy { max-width: 690px; min-width: 0; padding-block: 1rem; }
.eyebrow, .section-kicker {
  display: block;
  margin: 0 0 1.15rem;
  color: var(--grass);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow { color: #e6d1aa; }
.eyebrow::before, .section-kicker::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 1px;
  margin: 0 .7rem .23em 0;
  background: currentColor;
  vertical-align: middle;
}
.hero-title {
  max-width: 18ch;
  margin-bottom: 1.3rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.25vw, 5.35rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.02;
  text-wrap: balance;
}
.hero-text { max-width: 36rem; margin-bottom: 1.65rem; color: #f1f2ea; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.35rem; }
.hero-text-link { color: #fff; font-size: .85rem; font-weight: 700; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .55rem 1.4rem; margin: 1.75rem 0 0; padding: 0; list-style: none; color: #f1f2ea; font-size: .8rem; font-weight: 700; }
.hero-tags > * { display: inline-flex; align-items: center; gap: .5rem; }
.hero-tags > *::before { content: ''; width: .35rem; height: .35rem; flex: none; border-radius: 50%; background: #d9bd8a; }

/* Buttons and controls */
.button, button[type='submit'], input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .85rem 1.4rem;
  border: 1px solid var(--pine);
  border-radius: var(--radius);
  background: var(--pine);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover, button[type='submit']:hover, input[type='submit']:hover { background: #3b5546; border-color: #3b5546; color: #fff; }
.button-light { background: var(--cream); border-color: var(--cream); color: var(--pine-deep); }
.button-light:hover { background: #fff; border-color: #fff; color: var(--pine-deep); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.button-outline-light:hover { background: #fff; border-color: #fff; color: var(--pine); }
.lead-card, .contact-form {
  min-width: 0;
  padding: clamp(1.4rem, 2.5vw, 2.25rem);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lead-card h2, .lead-card h3, .contact-form h2, .contact-form h3 {
  margin-bottom: .55rem;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -.03em;
}
.lead-card > p, .contact-form > p { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label, label.field { color: var(--pine-deep); font-size: .77rem; font-weight: 700; line-height: 1.35; }
.field small, .form-note, .optional { color: var(--muted); font-size: .73rem; line-height: 1.4; }
.form-note { margin: .9rem 0 0; }
.wide, .field.wide, .form-grid > .submit-row, .form-grid > .form-status { grid-column: 1 / -1; }
.field input:not([type='checkbox']):not([type='radio']),
.field select, .field textarea,
.lead-card input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.lead-card select, .lead-card textarea,
.contact-form input:not([type='checkbox']):not([type='radio']):not([type='submit']),
.contact-form select, .contact-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: .7rem .8rem;
  border: 1px solid #b9c1b5;
  border-radius: var(--radius);
  background: #fffefb;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.3;
}
.field textarea, .lead-card textarea, .contact-form textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.lead-card input:focus, .lead-card select:focus, .lead-card textarea:focus,
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--pine); outline: 2px solid #71845b; outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #717b72; opacity: 1; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--pine); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .3rem; }
.submit-row .button, .submit-row button, .submit-row input[type='submit'] { flex: 1 1 auto; }
.form-status { min-height: 1.3em; margin: .4rem 0 0; color: var(--pine); font-size: .82rem; line-height: 1.4; }
.form-status:empty { display: none; }

/* Editorial sections */
.section { padding-block: clamp(4rem, 7vw, 7rem); background: var(--paper); }
.section-muted { background: var(--cream); }
.section-dark { background: var(--pine); color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); align-items: end; gap: 1.5rem 3rem; margin-bottom: clamp(1.8rem, 3.4vw, 3.2rem); }
.section-kicker { color: #526b4d; }
.section-title, .page-heading {
  margin-bottom: 1rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.08;
  text-wrap: balance;
}
.section-copy { max-width: 43rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.section-dark .section-title, .section-dark .section-copy { color: #fff; }
.section-dark .section-kicker { color: #d6c49f; }
.section-dark .section-copy { color: #e7ede6; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.65rem); }
.service-card { min-width: 0; background: var(--cream); border: 1px solid rgba(38, 60, 50, .1); }
.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 330px;
  object-fit: cover;
}
.service-card-body { padding: 1.5rem; }
.service-card-body > span { display: block; margin-bottom: .75rem; color: #607258; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.service-card h2, .service-card h3, .service-feature h2, .service-feature h3 {
  margin-bottom: .75rem;
  color: var(--pine);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.9vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.02em;
}
.service-card p, .service-feature p { color: var(--muted); font-size: .94rem; line-height: 1.65; }
.link-arrow { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; color: var(--pine); font-size: .83rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ochre); }
.link-arrow:hover { color: var(--ochre); }
.editorial-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.editorial-image { min-width: 0; }
.editorial-image img, img.editorial-image { width: 100%; max-height: 530px; aspect-ratio: 4 / 3; object-fit: cover; }
.editorial-copy { min-width: 0; max-width: 570px; }
.editorial-copy h2, .editorial-copy h3 { font-family: var(--serif); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.12; }
.editorial-copy p { color: var(--muted); }
.section-dark .editorial-copy p { color: #e7ede6; }

/* Gallery containers stay uniform regardless of source-image proportions. */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery-tile { min-width: 0; margin: 0; }
.gallery-tile a { display: block; color: inherit; text-decoration: none; }
.gallery-tile img, img.gallery-tile { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-tile figcaption { padding-top: .55rem; color: var(--muted); font-size: .82rem; line-height: 1.4; }
.gallery-tile a:hover img { filter: brightness(.92); }
.number-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.number-item { min-width: 0; padding: 1.2rem 0; border-top: 1px solid currentColor; }
.number-item strong, .number-item b, .number-item > span { display: block; margin-bottom: .75rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1; }
.number-item h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.number-item p { margin-bottom: 0; font-size: .9rem; line-height: 1.5; }
.faq-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2rem 4rem; }
.faq-list { max-width: 900px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; display: block; padding: 1.25rem 3rem 1.25rem 0; color: var(--pine); font-size: 1rem; font-weight: 700; line-height: 1.45; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); color: var(--ochre); font-size: 1.6rem; font-weight: 400; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details > :not(summary) { max-width: 70ch; margin: 0 0 1.3rem; color: var(--muted); }
.cta-band { padding-block: clamp(2.75rem, 5vw, 4.5rem); background: var(--pine); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { max-width: 24ch; margin-bottom: .5rem; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.3rem); font-weight: 400; letter-spacing: -.035em; }
.cta-band p { max-width: 55ch; margin-bottom: 0; color: #e7ede6; }
.section-end { margin-top: 2rem; }

/* Interior pages */
.page-hero { padding-block: clamp(3rem, 6vw, 5.5rem); background: var(--cream); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { color: #526b4d; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.35rem; color: #5e6c60; font-size: .76rem; line-height: 1.5; }
.breadcrumbs a { color: var(--pine); }
.page-heading { max-width: 17ch; margin-bottom: .85rem; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.page-hero p { max-width: 42rem; color: var(--muted); }
.service-feature-grid { display: grid; gap: clamp(1.5rem, 3vw, 3rem); }
.service-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); min-width: 0; }
.service-feature img { width: 100%; max-height: 420px; aspect-ratio: 3 / 2; object-fit: cover; }
.service-feature-content { min-width: 0; padding-block: 1rem; }
.service-feature-content h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); }
.contact-details { min-width: 0; }
.contact-details h2, .contact-details h3 { color: var(--pine); font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.contact-details a { overflow-wrap: anywhere; }
.contact-item { padding: .9rem 0; border-top: 1px solid var(--line); }
.contact-item span { display: block; margin-bottom: .25rem; color: #526b4d; font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.contact-item p { margin: 0; }
.map-frame { width: 100%; min-width: 0; margin-top: 1.5rem; }
.map-frame iframe, iframe.map-frame { width: 100%; min-height: 300px; aspect-ratio: 3 / 2; border: 0; }
.contact-form { background: var(--cream); }
.legal-copy { max-width: 780px; }
.legal-copy h2, .legal-copy h3 { margin-top: 2rem; color: var(--pine); font-family: var(--serif); font-weight: 400; }
.legal-copy p, .legal-copy li { color: var(--muted); }
.legal-copy a { overflow-wrap: anywhere; }

/* Footer and persistent call to action */
.site-footer { padding: 3.5rem 0 calc(7rem + env(safe-area-inset-bottom)); background: var(--pine-deep); color: #eef1e9; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { display: block; margin-bottom: 1rem; color: #fff; }
.footer-logo { margin-bottom: 1rem; }
.site-footer p { max-width: 38ch; color: #d2dbd0; font-size: .9rem; }
.site-footer h2, .site-footer h3, .site-footer h4 { margin-bottom: 1rem; color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.site-footer a:not(.brand) { display: block; min-height: 32px; color: #eef1e9; font-size: .9rem; overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.2); color: #d2dbd0; font-size: .8rem; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 1rem; }
.floating-cta {
  position: fixed;
  z-index: 50;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: calc(100vw - 2.5rem);
  padding: .8rem 1.25rem;
  border: 1px solid #f4e6cf;
  border-radius: var(--radius);
  background: var(--pine);
  box-shadow: 0 6px 22px rgba(10, 25, 17, .25);
  color: #fff;
  font-size: .83rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.floating-cta:hover { background: #3b5546; }

/* 1024px and below: retain a balanced hero and simplify navigation. */
@media (max-width: 1024px) {
  .desktop-nav { gap: 1rem; }
  .header-inner { gap: 1.1rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 2rem; }
  .hero-title { font-size: clamp(3rem, 5.4vw, 4.2rem); }
  .service-card-body { padding: 1.25rem; }
}

/* 768px: navigation changes; galleries and content use two columns. */
@media (max-width: 800px) {
  .container { width: min(calc(100% - 2.5rem), var(--container)); }
  .header-inner { min-height: 74px; }
  .desktop-nav, .header-phone { display: none; }
  .mobile-nav { display: block; margin-left: auto; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); gap: 1.5rem; }
  .hero-title { font-size: clamp(2.7rem, 5vw, 3.5rem); }
  .service-grid, .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .number-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
}

/* Mobile: the content and form participate in normal flow; nothing is clipped. */
@media (max-width: 640px) {
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-text { font-size: 1rem; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--cream); }
  .hero-backdrop { position: relative; inset: auto; grid-area: 1 / 1; width: 100%; height: 0; min-height: 100%; }
  .hero::before { position: relative; inset: auto; grid-area: 1 / 1; background: linear-gradient(180deg, rgba(14, 32, 23, .76), rgba(14, 32, 23, .88)); }
  .hero-layout { display: contents; }
  .hero-copy { position: relative; z-index: 2; grid-area: 1 / 1; max-width: none; padding: 3.25rem 1rem 3rem; }
  .hero-layout > .lead-card { position: relative; z-index: 2; grid-area: 2 / 1; margin: 1.25rem 1rem 2rem; }
  .hero-title { max-width: none; font-size: clamp(2.8rem, 11vw, 4rem); }
  .hero-text { font-size: 1rem; }
  .hero-tags { gap: .5rem 1rem; margin-top: 1.3rem; }
  .lead-card, .contact-form { padding: 1.35rem; }
  .section { padding-block: 3.5rem; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-bottom: 1.75rem; }
  .section-title { font-size: clamp(2.15rem, 9vw, 3rem); }
  .service-grid, .gallery-grid { grid-template-columns: minmax(0, 1fr); }
  .service-card img { max-height: none; aspect-ratio: 3 / 2; }
  .editorial-grid, .service-feature, .contact-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .editorial-image img, img.editorial-image { max-height: 420px; }
  .service-feature img { max-height: 360px; }
  .service-feature-content { padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .site-footer { padding-top: 3rem; }
  .floating-cta { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); max-width: calc(100vw - 2rem); }
}

/* Protect narrow phones such as a 375px viewport. */
@media (max-width: 390px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid > * { grid-column: 1 / -1; }
  .hero-title { font-size: clamp(2.5rem, 11.5vw, 3rem); }
  .brand-text { max-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Avoid obscuring form controls or footer links. */
.floating-cta.cta-clear { opacity: 0; visibility: hidden; pointer-events: none; }
