:root {
  --paper: #f6efde;
  --paper-strong: #fffaf0;
  --paper-muted: #e8dbc3;
  --ink: #161816;
  --muted: #6c6559;
  --line: #282720;
  --red: #d8372f;
  --cyan: #158ba0;
  --yellow: #eebb44;
  --green: #45845e;
  --shadow: 0 20px 60px rgba(22, 24, 22, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  background: var(--yellow);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper-strong);
  padding: 10px 14px;
  text-decoration: none;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 2px solid rgba(22, 24, 22, 0.12);
  background: rgba(246, 239, 222, 0.91);
  backdrop-filter: blur(12px);
}

.topbar.is-scrolled {
  box-shadow: 0 10px 30px rgba(22, 24, 22, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9rem;
  font-weight: 750;
}

.nav a {
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: clamp(560px, 78svh, 760px);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(246, 239, 222, 0.96) 0%, rgba(246, 239, 222, 0.82) 37%, rgba(246, 239, 222, 0.18) 72%);
}

.hero-copy {
  width: min(720px, calc(100% - 36px));
  padding: clamp(76px, 11vw, 132px) 0 64px clamp(18px, 6vw, 92px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(5.2rem, 16vw, 12rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-dek {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: clamp(1.17rem, 2vw, 1.45rem);
  line-height: 1.42;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper-strong);
}

.button.secondary {
  background: var(--yellow);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 2px solid var(--line);
}

.intro-band div {
  min-height: 108px;
  padding: 24px clamp(18px, 3vw, 36px);
  border-right: 2px solid var(--line);
  background: var(--paper-strong);
}

.intro-band div:last-child {
  border-right: 0;
}

.intro-band span {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 850;
}

.intro-band strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 116px) 0;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.section-heading h2,
.seo-copy h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.seo-copy p,
.capability-grid p,
.example-card p,
.faq p,
.footer p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--line);
  background: var(--paper-strong);
}

.capability-grid article {
  min-height: 280px;
  padding: 28px;
  border-right: 2px solid var(--line);
}

.capability-grid article:last-child {
  border-right: 0;
}

.capability-grid span,
.example-card span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.capability-grid h3,
.example-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 850;
  cursor: pointer;
}

.filter-button.is-active {
  background: var(--red);
  color: var(--paper-strong);
}

[data-results-count] {
  margin-left: auto;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.example-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.example-card[hidden] {
  display: none;
}

.example-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 2px solid var(--line);
}

.example-card div {
  padding: 22px;
}

.example-card span {
  margin-bottom: 18px;
}

.seo-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 80px);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

summary {
  cursor: pointer;
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 850;
}

details p {
  margin: 0;
  padding: 0 24px 24px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper-strong);
}

.footer img {
  width: min(260px, 48vw);
  filter: invert(1) hue-rotate(180deg) saturate(0.5);
}

.footer p {
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
}

@media (max-width: 900px) {
  .nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .intro-band,
  .capability-grid,
  .example-grid,
  .seo-copy {
    grid-template-columns: 1fr 1fr;
  }

  .capability-grid article:nth-child(2) {
    border-right: 0;
  }

  .capability-grid article:nth-child(-n + 2) {
    border-bottom: 2px solid var(--line);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 112px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 650px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(246, 239, 222, 0.98) 0%, rgba(246, 239, 222, 0.92) 56%, rgba(246, 239, 222, 0.4) 100%);
  }

  .hero-backdrop {
    object-position: 66% center;
  }

  .hero-copy {
    width: calc(100% - 28px);
    padding: 58px 14px 54px;
  }

  h1 {
    font-size: clamp(4.4rem, 24vw, 7rem);
  }

  .button {
    width: 100%;
  }

  .intro-band,
  .capability-grid,
  .example-grid,
  .seo-copy {
    grid-template-columns: 1fr;
  }

  .intro-band div,
  .capability-grid article,
  .capability-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 2px solid var(--line);
  }

  .intro-band div:last-child,
  .capability-grid article:last-child {
    border-bottom: 0;
  }

  [data-results-count] {
    width: 100%;
    margin-left: 0;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
