:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --surface-alt: #ede7dd;
  --line: rgba(18, 25, 31, 0.08);
  --text: #141b22;
  --muted: rgba(20, 27, 34, 0.68);
  --accent: #9a6b2f;
  --accent-2: #2f5f86;
  --accent-3: #5f7f6f;
  --shadow: 0 8px 22px rgba(18, 25, 31, 0.04);
  --radius: 6px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(245, 242, 236, 0.96), rgba(245, 242, 236, 1)),
    radial-gradient(circle at top left, rgba(154, 107, 47, 0.08), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(47, 95, 134, 0.06), transparent 22%),
    repeating-linear-gradient(90deg, rgba(18, 25, 31, 0.025) 0 1px, transparent 1px 120px),
    var(--bg);
}

body.home {
  background: #f5f2ec;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 242, 236, 0.88);
  border-bottom: 1px solid var(--line);
}

body.home .site-header {
  background: rgba(245, 242, 236, 0.88);
  border-bottom-color: var(--line);
}

.header-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

.brand-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.brand span strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
}

.brand span small {
  display: block;
  color: var(--muted);
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 24px);
  justify-self: center;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 16px;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.hero {
  padding: 72px 0 30px;
}

body.home .hero {
  min-height: 72vh;
  padding: 88px 0 80px;
  background: #f5f2ec;
  color: var(--text);
}

.hero-grid,
.contact-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2 {
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: 0;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  max-width: 11ch;
}

body.home .hero-copy {
  position: relative;
  z-index: 3;
  padding-top: 18px;
}

body.home .hero-copy h1 {
  max-width: 7ch;
  font-size: clamp(4rem, 8vw, 7.8rem);
  color: var(--text);
}

body.home .hero-copy h1 span {
  display: block;
}

body.home .hero-copy .lede,
body.home .hero-copy .eyebrow,
body.home .hero-copy .stats dd,
body.home .hero-copy .stats dt {
  color: var(--muted);
}

body.home .hero-copy .eyebrow {
  color: var(--accent);
}

body.home .hero-copy .stats dt {
  color: var(--accent);
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 16px;
}

.lede,
.section-heading p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.04rem;
}

.hero-copy .lede {
  max-width: 56ch;
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0 0;
}

.stats div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.stats dt {
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stats dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 16px;
  position: relative;
  padding-top: 18px;
  margin-left: -100px;
}

body.home .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 8% -220px;
  width: 460px;
  background: linear-gradient(90deg, rgba(245, 242, 236, 1) 0%, rgba(245, 242, 236, 0.96) 20%, rgba(245, 242, 236, 0.82) 38%, rgba(245, 242, 236, 0.42) 68%, rgba(245, 242, 236, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

body.home .hero-grid {
  align-items: start;
  grid-template-columns: minmax(0, 0.78fr) minmax(540px, 1.32fr);
  gap: 0;
}

.hero-image-frame,
.visual-panel,
.feature-card,
.case-card,
.insight-card,
.contact-form,
.process article,
.proof-grid > div,
.contact-points div {
  border: 1px solid rgba(18, 25, 31, 0.06);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-image-frame {
  overflow: hidden;
  padding: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(245, 242, 236, 0.58));
  border-color: transparent;
  border: 0;
  box-shadow: none;
  position: relative;
  z-index: 1;
  transform: translateY(10px) scale(1.26);
  transform-origin: center top;
}

.hero-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  filter: brightness(1.08) contrast(0.86) saturate(0.78);
  opacity: 0.92;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.34) 15%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.96) 55%, rgba(0, 0, 0, 1) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.34) 15%, rgba(0, 0, 0, 0.72) 34%, rgba(0, 0, 0, 0.96) 55%, rgba(0, 0, 0, 1) 100%);
}

.visual-panel-main {
  padding: 16px;
}

.visual-panel-side {
  padding: 16px 18px 18px;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.panel-label {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.mini-list li {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(18, 25, 31, 0.04);
}

.proof-strip {
  padding: 24px 0 0;
}

.hero-divider {
  position: relative;
  height: 14px;
  margin-top: -1px;
  background: #f5f2ec;
  overflow: hidden;
}

.hero-divider-accent {
  position: absolute;
  inset: 0;
  background: #b88a54;
  clip-path: polygon(0 42%, 100% 50%, 100% 100%, 0 62%);
  box-shadow: 0 0 0 1px rgba(184, 138, 84, 0.12) inset;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proof-grid > div {
  padding: 18px;
}

.proof-grid strong,
.feature-kicker,
.case-tag,
.insight-card p {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.proof-grid span {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.band {
  padding: 86px 0;
}

.band-alt {
  background: linear-gradient(180deg, rgba(238, 232, 223, 0.9), rgba(245, 242, 236, 0.96));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.legal-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.legal-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.legal-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-card a {
  color: var(--ink);
  text-decoration: none;
}

.contact-band {
  background: #101010;
  color: #f6f2eb;
}

.contact-band .eyebrow,
.contact-band .contact-copy p,
.contact-band .contact-copy h2,
.contact-band .contact-points a,
.contact-band .form-note {
  color: inherit;
}

.contact-band .contact-copy p {
  color: rgba(246, 242, 235, 0.88);
}

.contact-band .contact-points div {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

.contact-band .contact-points a,
.contact-band .contact-points strong {
  color: #141b22;
}

.contact-band .contact-form {
  background: rgba(255, 255, 255, 0.94);
}

.contact-band .contact-form span {
  color: rgba(20, 27, 34, 0.66);
}

.contact-band .contact-form input,
.contact-band .contact-form textarea {
  background: rgba(255, 255, 255, 0.92);
}

.contact-band .button-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f6f2eb;
  border-color: rgba(255, 255, 255, 0.18);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

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

.tabs,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab,
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: var(--muted);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 800;
}

.tab.is-active,
.filter.is-active {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

.tab-panels {
  margin-top: 22px;
}

.tab-panel {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tab-panel.is-active {
  display: grid;
}

.feature-card,
.case-card,
.insight-card,
.contact-form {
  overflow: hidden;
}

.feature-card {
  padding: 22px;
  min-height: 230px;
}

.feature-card h3,
.case-card h3,
.insight-card h3,
.process h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 12px 0 10px;
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-card p:last-child,
.case-card p:last-child,
.process p,
.insight-card span {
  color: var(--muted);
}

.case-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.case-card {
  padding: 22px;
  min-height: 240px;
}

.case-card.is-hidden {
  display: none;
}

.split-section {
  align-items: center;
}

.process {
  display: grid;
  gap: 14px;
}

.process article {
  padding: 18px 20px;
}

.process span {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.insight-card {
  padding: 22px;
  min-height: 220px;
}

.insight-card span {
  display: block;
  margin-top: 40px;
}

.contact-grid {
  align-items: start;
}

.contact-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-points div {
  padding: 18px;
}

.contact-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.contact-points a {
  color: var(--text);
  font-weight: 700;
}

.contact-form {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(246, 241, 234, 0.9));
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.contact-form span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(18, 25, 31, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.form-note {
  min-height: 1.4em;
  color: var(--accent-2);
  margin: 14px 0 0;
}

.form-note.is-success {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(184, 138, 84, 0.12);
  border: 1px solid rgba(184, 138, 84, 0.26);
  color: var(--accent-2);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(238, 232, 223, 0.9);
  padding: 30px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr auto;
  gap: 16px;
  align-items: center;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-copy {
  color: var(--muted);
  margin: 0;
  text-align: right;
}

@media (max-width: 1040px) {
  .hero-grid,
  .contact-grid,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }

  .proof-grid,
  .stats,
  .tab-panel,
  .case-grid,
  .insight-grid,
  .field-grid,
  .contact-points {
    grid-template-columns: 1fr 1fr;
  }

  .footer-copy {
    text-align: left;
  }

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

  body.home .hero-visual::before {
    display: none;
  }

  body.home .hero-image-frame {
    transform: none;
  }

  body.home .hero-visual {
    margin-left: 0;
    padding-top: 0;
  }

  body.home .hero-image-frame {
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 42px;
  }

  .stats,
  .proof-grid,
  .tab-panel,
  .case-grid,
  .insight-grid,
  .field-grid,
  .contact-points {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .button {
    width: 100%;
  }

  .header-inner {
    grid-template-columns: 1fr;
    padding: 12px 0;
    justify-items: start;
  }

  .header-inner .button {
    width: auto;
  }

  body.home .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .hero-divider { height: 28px; }
}
