/** Copyright (c) 2026 Salem Experience Design. All rights reserved. */
/* Salem OS: the system-focused expression of Salem Experience Design. */
:root {
  --ink: #1b2c2b;
  --muted: #526360;
  --paper: #f5f3ed;
  --surface: #f9f7f1;
  --emerald: #204a44;
  --emerald-deep: #173c37;
  --line: rgba(27, 44, 43, 0.17);
}

body {
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  animation: none;
}

body::before {
  display: none;
}

main,
footer {
  width: min(1180px, calc(100% - 48px));
}

.topbar,
body.is-scrolled .topbar {
  min-height: 78px;
  background: rgba(245, 243, 237, 0.96);
  box-shadow: none;
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.topbar::after {
  display: none;
}

.brand-mark,
.brand:hover .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  transform: none;
}

.brand-mark img {
  filter: none;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.brand-text span {
  font-size: 10px;
}

.nav {
  gap: clamp(13px, 2.3vw, 29px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a::after {
  bottom: -5px;
}

.eyebrow,
.section-kicker,
.count,
.mini-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
.display,
.industry-example h3,
.reference-system-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(65px, 7vw, 104px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(48px, 5vw, 70px);
  line-height: 0.96;
}

p {
  font-size: 15px;
  line-height: 1.73;
}

.lead {
  max-width: 600px;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

.hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  min-height: min(760px, calc(100vh - 78px));
  padding: clamp(45px, 6vw, 78px) 0;
}

.hero-copy {
  gap: 25px;
}

.hero h1 {
  max-width: 750px;
  font-size: clamp(65px, 7vw, 104px);
}

.hero-footnote {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.button,
.button.secondary {
  min-height: 50px;
  border-radius: 0;
  padding: 0 21px;
  box-shadow: none;
  background: var(--emerald);
  color: #f8f6ee;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.button.secondary {
  border-color: var(--emerald);
  background: transparent;
  color: var(--emerald);
}

.button:hover,
.button.secondary:hover {
  box-shadow: none;
  transform: translateY(-2px);
}

.brand-world {
  min-height: 0;
  gap: 14px;
  padding: 0;
  border: 0;
  background: none;
  overflow: visible;
}

.brand-world::before,
.brand-world::after {
  display: none;
}

.reference-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.reference-hero-grid a {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: var(--emerald-deep);
}

.reference-hero-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  filter: saturate(0.83);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 350ms ease;
}

.reference-hero-grid a::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(11, 31, 28, 0.82));
  pointer-events: none;
}

.reference-hero-grid a:hover img,
.reference-hero-grid a:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1);
}

.reference-hero-grid span {
  position: absolute;
  z-index: 1;
  bottom: 13px;
  left: 14px;
  right: 12px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-world > p {
  max-width: none;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.case-media img {
  filter: saturate(0.87);
}

.examples-section {
  background: #efece3;
}

.reference-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.reference-system-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  background: #efece3;
  text-decoration: none;
  transition: background-color 250ms ease;
}

.reference-system-card:hover,
.reference-system-card:focus-visible {
  text-decoration: none;
}

.reference-system-card:hover,
.reference-system-card:focus-visible {
  background: #e8e4d9;
}

.reference-system-card img {
  width: 100%;
  aspect-ratio: 1.38;
  object-fit: cover;
  margin-bottom: 22px;
  filter: saturate(0.85);
  transition: transform 450ms ease, filter 350ms ease;
}

.reference-system-card:hover img,
.reference-system-card:focus-visible img {
  filter: saturate(1);
  transform: scale(1.015);
}

.reference-system-card h3 {
  max-width: 16ch;
  margin: 10px 0 14px;
  font-size: clamp(31px, 3vw, 43px);
  line-height: 0.99;
}

.reference-system-card p {
  flex: 1;
  font-size: 13px;
  line-height: 1.8;
}

.reference-card-action,
.reference-collection-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  margin-top: 23px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reference-collection-link {
  margin-top: 32px;
}

.reference-hero-grid a:focus-visible,
.reference-system-card:focus-visible,
.reference-collection-link:focus-visible {
  outline: 3px solid #ad744b;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .topbar,
  body.is-scrolled .topbar {
    align-items: stretch;
    gap: 8px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    padding: 9px 0 2px;
    border-top: 1px solid var(--line);
  }

  .nav a {
    text-align: center;
    font-size: 10px;
    line-height: 1.25;
  }

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

  .brand-world {
    max-width: 660px;
  }
}

@media (max-width: 700px) {
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: clamp(56px, 12.5vw, 76px);
  }

  .reference-system-grid {
    grid-template-columns: 1fr;
  }

  .reference-system-card img {
    aspect-ratio: 1.75;
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 9px;
  }

  .brand-text span {
    font-size: 9px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero .actions {
    display: grid;
  }

  .hero .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reference-hero-grid img,
  .reference-system-card img {
    transition: none;
  }
}
