:root {
  --ink: #141816;
  --muted: #5c6762;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #dce4dd;
  --accent: #167f68;
  --accent-dark: #0f5b4c;
  --accent-soft: #e8f4ee;
  --warm: #c9792c;
  --warm-soft: #f8eadc;
  --focus: #2d6cdf;
  --shadow: 0 18px 48px rgba(20, 24, 22, 0.12);
  color-scheme: light;
  font-family: Raleway, Avenir, Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(22, 127, 104, 0.4);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
  text-decoration-color: currentColor;
}

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

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

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

h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.35rem;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

p {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.8rem max(1.5rem, calc((100vw - 1180px) / 2));
  background: rgba(246, 248, 245, 0.94);
  border-bottom: 1px solid rgba(220, 228, 221, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 178px;
  min-height: 46px;
}

.brand-logo {
  width: 178px;
  height: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  position: relative;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
}

.primary-nav a[aria-current="page"],
.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.subnav {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  display: grid !important;
  min-width: 220px;
  padding: 0.45rem !important;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.has-subnav:hover .subnav,
.has-subnav:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero,
.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 72svh;
  padding: 8rem max(1.5rem, calc((100vw - 1180px) / 2)) 5rem;
  color: var(--surface);
  background:
    linear-gradient(90deg, rgba(7, 20, 17, 0.82), rgba(7, 20, 17, 0.36) 56%, rgba(7, 20, 17, 0.18)),
    var(--hero-image) center / cover no-repeat;
}

.page-hero {
  min-height: 58svh;
}

.hero-content {
  max-width: 760px;
}

.hero h1,
.page-hero h1 {
  color: var(--surface);
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
}

.eyebrow {
  margin-bottom: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
  color: #a6ead3;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}

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

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--surface);
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--accent-dark);
  background: var(--surface);
  border-color: var(--accent);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--surface);
  background: var(--accent-dark);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.band {
  padding: 5rem max(1.5rem, calc((100vw - 1180px) / 2));
}

.split-section,
.story-block,
.booking-grid,
.product-page,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 4rem;
  align-items: center;
}

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

.split-media img,
.story-image img,
.booking-grid img,
.category-hero img,
.product-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.split-media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.split-copy {
  max-width: 640px;
}

.services-band {
  background: var(--paper);
}

.product-hub-hero {
  background: var(--surface);
}

.product-hub-hero > div {
  max-width: 860px;
}

.product-family-grid {
  display: grid;
  gap: 2rem;
  background: var(--paper);
}

.product-family-card,
.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.product-family-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-detail-hero {
  min-height: 58svh;
  background: var(--surface);
}

.product-family-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-logo {
  width: min(220px, 55vw);
  max-height: 92px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1rem;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.product-family-copy ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-heading p:last-child {
  font-size: 1.15rem;
}

.service-card-grid,
.team-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.service-card,
.team-card,
.product-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-card-link,
.product-card a {
  display: grid;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.service-card img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.service-card span span,
.product-card span,
.product-card strong {
  display: block;
}

.service-card-link > span {
  padding: 1.15rem;
}

.service-card strong,
.product-card strong {
  margin-bottom: 0.55rem;
  font-size: 1.1rem;
}

.story-flow {
  display: grid;
  gap: 2rem;
  background: var(--surface);
}

.story-block {
  padding: 0;
}

.story-block:nth-child(even) .story-copy {
  order: 2;
}

.story-copy {
  max-width: 620px;
}

.story-image img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.about-nav-band {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.anchor-nav a {
  padding: 0.45rem 0.7rem;
  text-decoration: none;
  background: var(--accent-soft);
  border-radius: 6px;
}

.about-block {
  padding: 3.5rem max(1.5rem, calc((100vw - 1180px) / 2));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.team-band {
  background: var(--paper);
}

.team-card {
  padding: 1rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.compact-page {
  max-width: 900px;
  margin-inline: auto;
  padding: 4rem 1.5rem;
  min-height: 54svh;
  background: var(--surface);
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.client-list span,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  background: var(--accent-soft);
  border-radius: 6px;
}

.contact-layout {
  align-items: start;
  min-height: 56svh;
  background: var(--surface);
}

.contact-form,
.product-form {
  display: grid;
  gap: 1rem;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form label,
.product-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea,
.product-form input,
.product-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #bfcac3;
  border-radius: 6px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.5rem;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.legal-page {
  max-width: 900px;
  margin-inline: auto;
  padding: 4rem 1.5rem;
  background: var(--surface);
}

.legal-page section + section {
  margin-top: 2rem;
}

.legal-page h2 {
  font-size: 1.25rem;
}

.booking-page,
.category-page {
  background: var(--surface);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
  color: var(--muted);
}

.breadcrumb > * + *::before {
  content: "/";
  margin-right: 0.6rem;
  color: #9aa6a0;
}

.booking-copy {
  max-width: 560px;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li + li {
  margin-top: 0.45rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.filters {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.8rem;
  padding-right: 1.5rem;
  border-right: 1px solid var(--line);
}

.filters h2 {
  margin: 0;
  font-size: 1rem;
}

.price-range {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem;
  background: var(--paper);
  border-radius: 6px;
}

.swatches {
  display: flex;
  gap: 0.5rem;
}

.swatches span {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.swatches span:nth-child(1) {
  background: #151515;
}

.swatches span:nth-child(2) {
  background: #d7efef;
}

.swatches span:nth-child(3) {
  background: #d8a55b;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.category-hero img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shop-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.4rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.product-card {
  min-height: 100%;
}

.product-card a {
  padding-bottom: 1rem;
}

.product-card strong,
.product-card span:not(.badge) {
  padding: 0 1rem;
}

.product-card strong {
  padding-top: 1rem;
}

.badge {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 30px;
  background: var(--warm-soft);
  color: #8f4817;
}

.product-page {
  align-items: start;
  background: var(--surface);
}

.product-gallery {
  display: grid;
  gap: 1rem;
}

.product-primary {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.thumbnail-row img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail {
  display: grid;
  gap: 1rem;
}

.product-detail h1 {
  margin-bottom: 0;
  font-size: 3rem;
}

.accordion-copy {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.accordion-copy h2 {
  font-size: 1rem;
}

.site-footer {
  padding: 3rem max(1.5rem, calc((100vw - 1180px) / 2)) 1.5rem;
  color: var(--surface);
  background: #13221e;
}

.site-footer a {
  color: var(--surface);
}

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

.footer-logo {
  width: 170px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer nav,
.social-links {
  display: grid;
  gap: 0.7rem;
}

.copyright {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

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

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    max-height: calc(100svh - 72px);
    overflow: auto;
    padding: 1rem 1.5rem 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    display: grid;
    align-items: stretch;
    gap: 0.35rem;
  }

  .primary-nav a {
    min-height: 48px;
  }

  .subnav {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    margin-left: 1rem !important;
    box-shadow: none;
  }

  .split-section,
  .story-block,
  .booking-grid,
  .product-page,
  .contact-layout,
  .product-family-card,
  .product-detail-hero,
  .shop-layout,
  .category-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .story-block:nth-child(even) .story-copy {
    order: 0;
  }

  .service-card-grid,
  .team-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    position: static;
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .site-header {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .brand,
  .brand-logo {
    width: 148px;
  }

  .hero,
  .page-hero {
    min-height: 66svh;
    padding: 6rem 1.25rem 4rem;
  }

  .hero p,
  .page-hero p {
    font-size: 1.05rem;
  }

  .band {
    padding: 3.5rem 1.25rem;
  }

  .service-card-grid,
  .team-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .shop-bar {
    display: grid;
  }

  .product-detail h1 {
    font-size: 2.2rem;
  }

  .thumbnail-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Enterprise content components */
.panel {
  display: block;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel h3 {
  margin-bottom: 0.5rem;
}

.panel p {
  margin-bottom: 0;
}

.band-actions {
  margin-top: 2rem;
}

.capabilities-band {
  background: var(--paper);
}

.capability-grid,
.case-grid,
.diff-grid,
.teaser-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.capability-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.capability-card li {
  margin-bottom: 0.3rem;
}

.proof-band {
  background: var(--surface);
}

.proof-band.alt {
  background: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.6rem;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-soft);
  border-radius: 6px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chips span {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.diff-band {
  background: var(--paper);
}

.clients-strip {
  background: var(--surface);
}

.clients-strip .client-list {
  margin-top: 1.2rem;
}

.products-teaser {
  background: var(--paper);
}

.teaser-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.teaser-card .button {
  justify-self: start;
  margin-top: 0.4rem;
}

.howwestart-band {
  background: var(--surface);
}

.step-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--surface);
  background: var(--accent);
  border-radius: 50%;
}

.industries-band {
  background: var(--paper);
}

.location-band {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 3rem;
  align-items: center;
}

.location-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.location-card p {
  margin: 0;
  color: var(--ink);
}

.location-card a {
  color: var(--accent-dark);
}

.location-card .button {
  justify-self: start;
  margin-top: 0.75rem;
}

.closing-cta {
  background: var(--accent-soft);
}

.closing-inner {
  max-width: 760px;
}

.closing-inner h2 {
  margin-bottom: 0.75rem;
}

.check-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.muted-note {
  font-size: 0.95rem;
}

.contact-details {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.contact-details p {
  margin: 0;
  color: var(--ink);
}

.contact-details a {
  color: var(--accent-dark);
}

.reg-line {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 980px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
}
