:root {
  --ink: #20355f;
  --ink-soft: #4f5e68;
  --line: rgba(32, 53, 95, 0.12);
  --brand-blue: #20355f;
  --brand-green: #4a9b97;
  --brand-aqua: #63b8b5;
  --paper: #f7f3ea;
  --stone: #ece6d8;
  --shadow: 0 20px 60px rgba(32, 53, 95, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(99, 184, 181, 0.16), transparent 28%),
    linear-gradient(180deg, #faf7f0 0%, var(--paper) 100%);
  font-family: Bahnschrift, "Aptos", "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(250, 247, 240, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.header-menu {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: auto;
  height: 84px;
}

.footer-logo {
  width: auto;
  height: 78px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(32, 53, 95, 0.08);
}

.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

.primary-nav {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.primary-nav a,
.language-switcher a,
.filter-chip {
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  transition: 180ms ease;
}

.primary-nav a:hover,
.language-switcher a:hover,
.filter-chip:hover {
  background: rgba(74, 155, 151, 0.12);
}

.primary-nav .is-active,
.language-switcher .is-active,
.filter-chip.is-active {
  background: var(--ink);
  color: white;
}

.language-switcher {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-home {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 2rem 0 2.35rem;
  color: white;
  background: #17243f;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 36, 63, 0.96) 0%, rgba(23, 36, 63, 0.84) 42%, rgba(23, 36, 63, 0.34) 72%, rgba(23, 36, 63, 0.1) 100%),
    linear-gradient(180deg, rgba(23, 36, 63, 0.34), rgba(23, 36, 63, 0.72));
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(247, 243, 234, 0.96));
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 1040px;
}

.hero-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  max-width: 1040px;
}

.page-header {
  padding: 2.5rem 0 1.25rem;
}

.hero-grid,
.split-grid,
.product-header-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
}

.page-header {
  background: linear-gradient(180deg, rgba(99, 184, 181, 0.12), transparent);
}

.eyebrow,
.pill,
.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--brand-blue);
}

h1,
h2,
h3,
strong {
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  margin: 0.75rem 0 0.9rem;
}

.hero-home h1 {
  max-width: 17ch;
  font-size: clamp(2.3rem, 4.5vw, 3.45rem);
  margin: 0 0 0.9rem;
  color: white;
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  margin: 0;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.lead {
  max-width: 62ch;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-home .lead {
  max-width: none;
  margin: 0 0 0.62rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.08vw, 1.02rem);
  line-height: 1.52;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

.rich-text {
  max-width: 70ch;
}

.rich-text p,
.rich-text ul {
  margin: 0 0 1rem;
}

.rich-text ul {
  padding-left: 1.25rem;
}

.rich-text li {
  margin-bottom: 0.45rem;
}

.hero-actions,
.filter-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
  color: white;
  box-shadow: var(--shadow);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.hero-home .button-secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: white;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-panel,
.card,
.list-card,
.product-visual {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  min-height: 360px;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(32, 53, 95, 0.88), rgba(74, 155, 151, 0.76)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 60%);
}

.hero-image-panel {
  display: flex;
  align-items: stretch;
}

.hero-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 2.5rem 0;
}

.hero + .section {
  padding-top: 0.75rem;
}

.page-header + .section {
  padding-top: 0.75rem;
}

.section-contrast {
  background: linear-gradient(180deg, rgba(236, 230, 216, 0.55), rgba(255, 255, 255, 0.42));
}

.section-heading {
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  gap: 1.2rem;
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.list-card,
.product-card,
.category-card {
  padding: 1.35rem;
}

.card p,
.list-card p,
.product-card p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.download-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.download-card .meta {
  margin: 0;
}

.download-title {
  font-size: clamp(1.05rem, 1.3vw, 1.28rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.product-tagline {
  font-weight: 600;
}

.product-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.read-more {
  position: relative;
  z-index: 1;
  color: var(--brand-blue);
  font-weight: 700;
}

.product-card,
.category-card {
  position: relative;
  overflow: hidden;
}

.product-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.product-card h3,
.product-card p,
.product-card span,
.product-card strong {
  position: relative;
  z-index: 1;
}

.product-card p {
  margin: 0;
}

.product-card-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.2rem;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(236, 230, 216, 0.72), rgba(255, 255, 255, 0.94));
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.category-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.category-card h3,
.category-card p,
.category-card strong {
  position: relative;
  z-index: 1;
}

.category-card p {
  margin: 0;
}

.category-card-image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.2rem;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 230, 216, 0.72), rgba(255, 255, 255, 0.94));
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.project-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.project-card h2 {
  font-size: 1.35rem;
}

.project-card p {
  margin: 0;
}

.project-card-image {
  aspect-ratio: 16 / 10;
  margin: -0.25rem -0.25rem 0.25rem;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-facts {
  display: grid;
  gap: 0.65rem;
  margin: 0.25rem 0 0;
}

.project-facts div {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.project-facts dt {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-facts dd {
  margin: 0;
  font-weight: 700;
}

.product-card::after,
.category-card::after,
.product-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.tone-blue {
  background: linear-gradient(135deg, rgba(32, 53, 95, 0.18), rgba(255, 255, 255, 0.92));
}

.tone-steel {
  background: linear-gradient(135deg, rgba(79, 94, 104, 0.2), rgba(255, 255, 255, 0.92));
}

.tone-sand {
  background: linear-gradient(135deg, rgba(236, 230, 216, 0.9), rgba(255, 255, 255, 0.96));
}

.tone-green {
  background: linear-gradient(135deg, rgba(74, 155, 151, 0.22), rgba(255, 255, 255, 0.92));
}

.tone-slate {
  background: linear-gradient(135deg, rgba(89, 118, 137, 0.18), rgba(255, 255, 255, 0.94));
}

.tone-charcoal {
  background: linear-gradient(135deg, rgba(32, 53, 95, 0.22), rgba(255, 255, 255, 0.92));
}

.split-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-grid > div:nth-child(2) {
  justify-self: center;
}

.footer-grid > div:nth-child(3) {
  justify-self: end;
}

.stack {
  display: grid;
  gap: 1rem;
}

.product-header-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.product-visual {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-visual-mark {
  position: absolute;
  inset: 18% 22%;
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.56);
  transform: rotate(-8deg);
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.definition-list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.definition-list div {
  display: grid;
  gap: 0.25rem;
}

.definition-list dt {
  font-weight: 700;
}

.definition-list dd {
  margin: 0;
  color: var(--ink-soft);
}

.sku-list {
  display: grid;
  gap: 1rem;
}

.sku-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.sku-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.sku-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  color: var(--ink-soft);
  text-align: right;
}

.back-link,
.text-link {
  color: var(--brand-blue);
  font-weight: 700;
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(32, 53, 95, 0.98), rgba(52, 95, 115, 0.96));
  color: white;
}

.site-footer a {
  display: block;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.site-footer .footer-copyright {
  margin: 2rem auto 0;
  width: min(1120px, calc(100% - 2rem));
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  line-height: 1.4;
  text-align: center;
}

.contact-hero-card {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(236, 230, 216, 0.7), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-image-frame {
  display: flex;
  align-items: end;
  justify-content: center;
  min-height: 360px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(99, 184, 181, 0.18), rgba(32, 53, 95, 0.06));
}

.contact-image-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.contact-copy h2 {
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .product-header-grid,
  .footer-grid,
  .contact-hero-grid,
  .card-grid-2,
  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .header-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }

  .brand {
    order: initial;
  }

  .header-actions {
    order: initial;
    justify-self: end;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .header-menu {
    order: initial;
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .js .header-menu.is-open {
    display: grid;
    gap: 0.75rem;
  }

  html:not(.js) .header-menu {
    display: grid;
    gap: 0.75rem;
  }

  .primary-nav {
    width: 100%;
    display: grid;
    gap: 0.35rem;
  }

  .primary-nav a,
  .language-switcher a {
    min-height: 44px;
  }

  h1 {
    max-width: none;
  }

  .hero-home {
    min-height: auto;
    padding: 2rem 0 2.5rem;
  }

  .hero-home::before {
    background:
      linear-gradient(180deg, rgba(23, 36, 63, 0.95) 0%, rgba(23, 36, 63, 0.82) 58%, rgba(23, 36, 63, 0.62) 100%),
      linear-gradient(90deg, rgba(23, 36, 63, 0.58), rgba(23, 36, 63, 0.18));
  }

  .hero-visual img {
    object-position: 62% center;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 72ch;
  }

  .sku-row,
  .sku-meta {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1.625rem 0 1rem;
  }

  .hero-home {
    padding: 1.45rem 0 1.45rem;
  }

  .hero-home h1 {
    font-size: 2.05rem;
    margin: 0.35rem 0 0.55rem;
  }

  .hero-home .lead {
    margin-bottom: 0.45rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .hero-home .hero-actions {
    margin-top: 0.9rem;
  }

  .page-header {
    padding: 1.75rem 0 0.75rem;
  }

  .page-header + .section {
    padding-top: 0.5rem;
  }

  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: min(100%, 210px);
    height: auto;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .language-switcher a {
    padding: 0.55rem 0.75rem;
  }

  .footer-logo {
    height: 64px;
  }
}
