/* Riverbend IT — shared stylesheet */

:root {
  --teal-300: #2ccbe0;
  --teal-500: #10b3cc;
  --teal-700: #0a7fa3;
  --navy: #2e2c5e;
  --ink: #4a5361;
  --mist: #eef9fb;
  --line: #dbe7ea;
  --white: #ffffff;

  --grad: linear-gradient(100deg, var(--teal-500), var(--teal-700));
  --font-display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--teal-700); }

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

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--grad);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(10, 127, 163, .7);
}
.btn-quiet { color: var(--navy); border-color: rgba(46, 44, 94, .25); }
.btn-quiet:hover { border-color: var(--navy); }
.btn-outline { color: var(--teal-700); border-color: var(--teal-700); }
.btn-outline:hover { background: var(--mist); }
.btn-light { background: var(--white); color: var(--teal-700); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { border-color: var(--white); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand img { height: 48px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul { display: flex; gap: 28px; }

.site-nav ul a {
  display: block;
  white-space: nowrap;
  padding: 8px 0;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  color: var(--teal-700);
  border-bottom-color: var(--teal-500);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; fill: var(--teal-700); }
.header-phone:hover { background: #dff3f7; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 22px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 7px; left: 0; }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, #f8fdfe 100%);
}

.hero-bend {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-bend path {
  fill: none;
  stroke: var(--teal-500);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: .22;
  stroke-dasharray: 2600;
  stroke-dashoffset: 2600;
  animation: bend-draw 2.2s ease-out .15s forwards;
}
.hero-bend path:nth-child(2) { animation-delay: .3s; opacity: .16; }
.hero-bend path:nth-child(3) { animation-delay: .45s; opacity: .1; }

@keyframes bend-draw { to { stroke-dashoffset: 0; } }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 96px);
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
  letter-spacing: -.015em;
  max-width: 12ch;
}
.hero-copy p { max-width: 52ch; margin-top: 16px; }
.hero-copy .lead {
  margin-top: 22px;
  color: var(--navy);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-shape {
  position: absolute;
  inset: -6% -30% -6% 22%;
  border-radius: 46% 0 0 0 / 60% 0 0 0;
  background: linear-gradient(160deg, #d6f1f6, #c2e8f0);
}

.hero-art {
  position: relative;
  display: block;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 5 / 4;
  border-radius: 22px;
  box-shadow: 0 30px 50px -28px rgba(46, 44, 94, .55);
}
.art-cables path,
.art-halo path,
.art-flows path { fill: none; stroke-linecap: round; }
.art-cables path { stroke-width: 7; }
.art-ripples path { fill: none; stroke: #ffffff; stroke-width: 1.5; opacity: .1; }
.art-halo path { stroke-width: 16; opacity: .55; }
.art-nodes circle { fill: #24225a; stroke: #ffffff; stroke-width: 2.5; }
.flow {
  stroke: #ffffff;
  stroke-width: 3;
  stroke-dasharray: 22 478;
  opacity: .9;
  animation: art-flow 7s linear infinite;
}
.f2 { animation-duration: 9s; animation-delay: -3s; }
.f3 { animation-duration: 6s; animation-delay: -1s; }
.f4 { animation-duration: 8s; animation-delay: -5s; }
.f5 { animation-duration: 10s; animation-delay: -2s; }
.f6 { animation-duration: 7.5s; animation-delay: -6s; }
.f7 { animation-duration: 9.5s; animation-delay: -4s; }

@keyframes art-flow {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 14px 30px -14px rgba(46, 44, 94, .45);
}
.chip svg {
  flex: none;
  width: 34px; height: 34px;
  padding: 7px;
  border-radius: 8px;
  background: var(--mist);
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chip-a { left: -6%; top: 40%; }
.chip-b { right: -2%; top: 8%; }
.chip-c { right: -4%; bottom: 10%; }

/* Sections */

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

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head h2,
.partners h2,
.cta h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  letter-spacing: -.01em;
}
.section-head p { margin-top: 14px; font-size: 1.0625rem; }

.icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--grad);
}
.icon-tile svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

.service-feature {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  background: linear-gradient(155deg, var(--teal-300), var(--teal-700));
  color: var(--white);
  box-shadow: 0 30px 50px -30px rgba(10, 127, 163, .8);
}
.service-feature .icon-tile { background: var(--white); }
.service-feature .icon-tile svg { stroke: var(--teal-700); }
.service-feature h3 {
  margin-top: 28px;
  color: var(--white);
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
}
.service-feature p { margin-top: 14px; font-size: 1.0625rem; }
.service-feature .text-link {
  margin-top: auto;
  padding-top: 28px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  text-underline-offset: 4px;
}

.service-list li {
  display: flex;
  gap: 20px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}
.service-list li:first-child { padding-top: 6px; }
.service-list li:last-child { border-bottom: 0; padding-bottom: 6px; }
.service-list h3 { font-size: 1.3125rem; font-weight: 700; }
.service-list p { margin-top: 8px; max-width: 58ch; }

.services-more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* Partners */

.partners {
  padding-block: clamp(40px, 6vw, 72px);
  background: var(--mist);
  text-align: center;
}
.partners h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.partner-logos li {
  display: grid;
  place-items: center;
  width: 160px; height: 112px;
  padding: 0;
  border-radius: 10px;
  background: var(--white);
}
.partner-logos img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

/* Partner logo marquee: main.js adds .is-ready and a second copy of the list */

.marquee.is-ready {
  overflow: hidden;
  margin-top: 32px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee.is-ready .marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}
.marquee.is-ready .partner-logos {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
  margin-top: 0;
}
.marquee.is-ready .partner-logos li {
  flex: none;
  width: 180px;
  height: 126px;
  padding: 0;
  margin-right: 20px;
}
.marquee.is-ready:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* Closing call to action */

.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--teal-500), var(--teal-700) 60%, #1f5f8f);
  color: var(--white);
  text-align: center;
}
.cta-bend {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.cta-bend path {
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  opacity: .18;
}
.cta-inner {
  position: relative;
  max-width: 820px;
  padding-block: clamp(56px, 8vw, 96px);
}
.cta h2 { color: var(--white); }
.cta p { margin: 18px auto 0; max-width: 60ch; font-size: 1.0625rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.cta :focus-visible { outline-color: var(--white); }

/* Footer */

.site-footer { padding-top: clamp(40px, 6vw, 64px); font-size: .9375rem; }

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

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 1.0625rem;
}

.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin-top: 12px; }

.social {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-top: 16px;
  border-radius: 8px;
  background: var(--grad);
}
.social svg { width: 22px; height: 22px; fill: var(--white); }

.site-footer li + li { margin-top: 2px; }
.site-footer nav a,
.contact-list a,
.addresses a {
  display: inline-block;
  padding-block: 5px;
  color: var(--ink);
  text-decoration: none;
}
.site-footer nav a:hover,
.contact-list a:hover,
.addresses a:hover { color: var(--teal-700); text-decoration: underline; }

.contact-list a { color: var(--navy); font-weight: 600; }

.hours { margin: 14px 0 0; }
.hours dt {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}
.hours dd { margin: 0; }
.hours span { white-space: nowrap; }

.addresses { margin: 12px 0 0; }
.addresses dt {
  margin-top: 12px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}
.addresses dd { margin: 0; }

.footer-map iframe {
  width: 100%;
  height: 234px;
  border: 0;
  border-radius: 10px;
  background: var(--mist);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}
.footer-base a { padding: 8px 0; font-weight: 600; }

/* Smaller screens */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero-shape { inset: -4% -20% -4% 16%; }
  .chip-a { left: 0; }
  .chip-c { right: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(46, 44, 94, .35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.0625rem;
  }
  .header-phone { justify-content: center; min-height: 48px; }
}

@media (max-width: 560px) {
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .hero-visual { min-height: 0; }
  .hero-chips {
    position: relative;
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
  }
  .chip { position: static; box-shadow: 0 8px 20px -14px rgba(46, 44, 94, .45); }
  .service-list li { gap: 14px; }
  .partner-logos { gap: 10px; }
  .partner-logos li { width: calc(50% - 5px); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bend path { animation: none; stroke-dashoffset: 0; }
  .flow { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.partner-logos li { overflow: hidden; }

/* ---------- Inner pages ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--mist) 0%, #f8fdfe 100%);
  text-align: center;
}
.page-head .hero-bend path { animation: none; stroke-dashoffset: 0; }
.page-head-inner {
  position: relative;
  max-width: 820px;
  padding-block: clamp(48px, 7vw, 88px);
}
.page-head h1 {
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.25rem);
  letter-spacing: -.015em;
}
.page-head p {
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--navy);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.block { padding-block: var(--section); overflow-x: clip; }
.block-tint { background: var(--mist); }
.block h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.625rem);
  letter-spacing: -.01em;
}

/* About */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.story-copy p { margin-top: 18px; max-width: 62ch; }

.story-visual { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.story-visual::before {
  content: "";
  position: absolute;
  inset: -5% -7% -7% -5%;
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: var(--grad);
  transform: rotate(-8deg);
}
.story-visual img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 55% 45% 52% 48% / 46% 54% 46% 54%;
}
.team {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  max-width: 1040px;
  margin-inline: auto;
}
.person {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 48px -32px rgba(46, 44, 94, .45);
}
.person:nth-child(even) { grid-template-columns: minmax(0, 1fr) 320px; }
.person:nth-child(even) img { order: 2; }
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: #e9ebee;
}
.person h3 { font-size: 1.5rem; }
.person .role {
  margin-top: 4px;
  color: var(--teal-700);
  font-family: var(--font-display);
  font-weight: 700;
}
.person p + p { margin-top: 12px; }
.person .role + p { margin-top: 14px; }

.pets {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}
.pets figure { margin: 0; text-align: center; }
.pets img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}
.pets figcaption {
  margin-top: 10px;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
}

/* Services */

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.service-card h2 {
  margin-top: 20px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0;
}
.service-card p { margin-top: 10px; }
.service-card .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  text-underline-offset: 4px;
}
.service-card .partner-mark { height: 52px; width: auto; align-self: flex-start; border-radius: 8px; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--teal-300), var(--teal-700) 55%, #2e2c5e 130%);
  color: var(--white);
}
.contact-panel h2 { position: relative; color: var(--white); font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.contact-panel .cta-bend path { opacity: .16; }
.contact-points { position: relative; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .35); }
.contact-points li { display: flex; gap: 16px; }
.contact-points li + li { margin-top: 22px; }
.contact-points .icon-tile { width: 48px; height: 48px; background: rgba(255, 255, 255, .18); }
.contact-points h3 { color: var(--white); font-size: 1.125rem; font-weight: 700; }
.contact-points p, .contact-points a { color: var(--white); }
.contact-points a { display: inline-block; padding-block: 4px; text-underline-offset: 3px; }
.contact-panel :focus-visible { outline-color: var(--white); }

.form-card {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 30px 60px -36px rgba(46, 44, 94, .5);
  border: 1px solid var(--line);
}
.form-card h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.form-card > p { margin-top: 10px; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #c6d3d8;
  border-radius: 8px;
  background: #f4f7f8;
  color: var(--navy);
  font: inherit;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 1px;
  background: var(--white);
}
.hp-field { position: absolute; left: -9999px; }
.contact-form .btn { grid-column: 1 / -1; cursor: pointer; }
.contact-form .btn[disabled] { opacity: .65; cursor: progress; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 600;
}
.form-status:empty { display: none; }
.form-note { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
.form-status.is-ok { background: #e3f6ec; color: #17603a; }
.form-status.is-error { background: #fdeaea; color: #9b1c1c; }

/* Legal */

.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal-inner { max-width: 820px; }
.legal-toc {
  padding: 24px 28px;
  border-radius: 14px;
  background: var(--mist);
}
.legal-toc h2 { font-size: 1.25rem; }
.legal-toc h3 {
  margin-top: 18px;
  font-size: .9375rem;
  font-weight: 700;
}
.legal-toc ol { margin: 6px 0 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; }
.legal-toc li { break-inside: avoid; }
.legal-toc a { display: inline-block; padding-block: 4px; font-size: .9375rem; }
.legal-body h2 {
  margin-top: 56px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-500);
  font-size: 1.5rem;
}
.legal-body h3 {
  margin-top: 36px;
  font-size: 1.125rem;
  scroll-margin-top: 96px;
}
.legal-body p { margin-top: 12px; }
.legal-body .l2 { padding-left: 24px; }
.legal-body .l3 { padding-left: 48px; }
.legal-top { margin-top: 40px; }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .pets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .person,
  .person:nth-child(even) { grid-template-columns: 1fr; align-items: start; }
  .person:nth-child(even) img { order: 0; }
  .person img { max-width: 320px; }
}

@media (max-width: 560px) {
  .person { padding: 20px; }
  .pets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
  .legal-body .l2 { padding-left: 14px; }
  .legal-body .l3 { padding-left: 28px; }
}


/* ---------- 3D printed terrain ---------- */

.credit { margin-top: 18px; font-size: .9375rem; color: var(--ink); }
.section-head .credit { margin-top: 8px; font-size: .9375rem; }

.terrain-hero .hero-copy h1 { max-width: 16ch; font-size: clamp(2.125rem, 1.3rem + 3vw, 3.25rem); }
.terrain-figure { position: relative; margin: 0; }
.terrain-figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 30px 50px -28px rgba(46, 44, 94, .55);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.prose p { margin-top: 16px; max-width: 62ch; }
.narrow { max-width: calc(900px + var(--gutter) * 2); }

.set-contents { border-top: 1px solid var(--line); }
.set-contents li {
  display: grid;
  grid-template-columns: 3.2ch minmax(0, 1fr);
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.set-contents b { color: var(--teal-700); font-family: var(--font-display); font-variant-numeric: tabular-nums; }

.terrain-sets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.terrain-set {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.terrain-set:hover { border-color: var(--teal-500); box-shadow: 0 20px 36px -26px rgba(10, 127, 163, .8); }
.terrain-set img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.terrain-set-body { display: grid; gap: 2px; padding: 16px 18px 18px; }
.terrain-set-body strong { color: var(--navy); font-family: var(--font-display); font-size: 1.1875rem; }
.terrain-set-body small { color: var(--teal-700); font-size: .9375rem; font-weight: 600; }

.colour-roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.colour-roles li { display: grid; gap: 4px; padding-top: 12px; border-top: 3px solid var(--teal-500); }
.colour-roles h3 { font-size: 1.125rem; font-weight: 700; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 18px;
  margin-top: 32px;
}
.swatches li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: var(--navy);
  font-size: .9375rem;
  line-height: 1.25;
}
.swatches i { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28); }
.swatches small { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }
.colour-notes { margin-top: 28px; }
.colour-notes p:last-child { margin-top: 24px; }
.sw-10100 { background: #FFFFFF; }
.sw-10201 { background: #F7E6DE; }
.sw-10104 { background: #D1D3D5; }
.sw-10102 { background: #A6A9AA; }
.sw-10103 { background: #8E9089; }
.sw-10105 { background: #545454; }
.sw-10602 { background: #5B6579; }
.sw-10101 { background: #000000; }
.sw-10802 { background: #6F5034; }
.sw-10800 { background: #9D432C; }
.sw-10801 { background: #847D48; }
.sw-10401 { background: #E4BD68; }
.sw-10400 { background: #F4EE2A; }
.sw-10402 { background: #FEC600; }
.sw-10301 { background: #FF9016; }
.sw-10300 { background: #FF6A13; }
.sw-10200 { background: #C12E1F; }
.sw-10205 { background: #9D2235; }
.sw-10204 { background: #F5547C; }
.sw-10203 { background: #F55A74; }
.sw-10202 { background: #EC008C; }
.sw-10700 { background: #5E43B7; }
.sw-10701 { background: #482960; }
.sw-10601 { background: #0A2989; }
.sw-10604 { background: #0056B8; }
.sw-10603 { background: #0086D6; }
.sw-10605 { background: #00B1B7; }
.sw-10501 { background: #00AE42; }
.sw-10502 { background: #3F8E43; }
.sw-10503 { background: #BECF00; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.price-table { width: 100%; min-width: 480px; border-collapse: collapse; background: var(--white); }
.price-table th,
.price-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table thead th { background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: .9375rem; }
.price-table tbody th { color: var(--navy); font-family: var(--font-display); font-weight: 700; }
.price-table th:last-child,
.price-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--navy); font-weight: 600; }
.terms { display: grid; gap: 8px; margin-top: 20px; font-size: .9375rem; }

.order-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.order-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}
.order-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
}
.order-steps h3 { font-size: 1.125rem; font-weight: 700; }
.order-steps p { margin-top: 4px; }
.cta p a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .terrain-sets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .colour-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terrain-figure { max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .terrain-sets { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
