:root {
  --ink: #20221e;
  --muted: #6d7169;
  --paper: #f7f3ec;
  --paper-strong: #fffaf2;
  --line: #ded6ca;
  --line-strong: #cbbfad;
  --sage: #2f4d39;
  --sage-soft: #e7eee5;
  --clay: #c86f5c;
  --clay-dark: #9f4f42;
  --gold: #b88a4a;
  --charcoal: #171814;
  --shadow: 0 24px 80px rgba(46, 38, 28, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(38, 34, 28, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-strong);
  color: var(--clay-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
}

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

.section-band,
.section-wrap,
.metrics {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(64px, 8vw, 112px) 0 clamp(44px, 6vw, 84px);
}

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

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

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.6vw, 76px);
  font-weight: 520;
  line-height: 1.01;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 520;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  color: #4d514a;
  font-size: clamp(17px, 1.6vw, 21px);
}

.lead-cn {
  color: #60665d;
  font-size: clamp(15px, 1.3vw, 18px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--charcoal);
  color: white;
}

.button-primary:hover {
  background: var(--sage);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--paper-strong);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--sage);
}

.hero-visual {
  min-width: 0;
}

.visual-panel {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #24251f;
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--clay);
}

.browser-bar span:nth-child(2) {
  background: var(--gold);
}

.browser-bar span:nth-child(3) {
  background: #789a74;
}

.browser-bar p {
  margin: 0 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.signal-tile {
  min-height: 190px;
  padding: 24px;
  background: #fffaf4;
}

.signal-tile.active {
  background: var(--sage);
  color: white;
}

.signal-tile small {
  display: block;
  margin-bottom: 36px;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.68;
  text-transform: uppercase;
}

.signal-tile strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 520;
}

.signal-tile p {
  margin: 0;
  color: currentColor;
  opacity: 0.78;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 96px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 250, 242, 0.72);
}

.metrics div {
  padding: 26px;
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  margin-bottom: 4px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section-wrap {
  padding: 20px 0 104px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.section-heading.narrow {
  max-width: 700px;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-strong);
  box-shadow: 0 12px 36px rgba(54, 46, 36, 0.06);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.project-image {
  display: block;
  overflow: hidden;
  min-height: 260px;
  background: var(--sage-soft);
}

.project-card.featured .project-image {
  min-height: 360px;
}

.project-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: top center;
  transition: transform 240ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.brand-collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
}

.brand-preview {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  background: var(--paper-strong);
}

.project-card.featured .brand-preview {
  min-height: 180px;
}

.brand-preview img {
  min-height: 180px;
}

.brand-preview span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(23, 24, 20, 0.72);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.project-body {
  padding: clamp(24px, 3vw, 34px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--clay-dark);
  font-size: 14px;
  font-weight: 850;
}

.text-link::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 8px;
  background:
    linear-gradient(var(--clay-dark), var(--clay-dark)) 4px 8px / 10px 2px no-repeat,
    linear-gradient(45deg, transparent 45%, var(--clay-dark) 46% 54%, transparent 55%) 8px
      4px / 8px 8px no-repeat;
}

.text-link.muted {
  color: var(--sage);
}

.brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 4px;
}

.ecosystem {
  padding: 88px clamp(20px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffbf5;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.flow-step {
  min-height: 260px;
  padding: 26px;
  background: var(--paper-strong);
}

.flow-step:nth-child(2),
.flow-step:nth-child(4) {
  background: #f1f5ee;
}

.step-number {
  display: inline-block;
  margin-bottom: 72px;
  color: var(--clay-dark);
  font-size: 12px;
  font-weight: 900;
}

.flow-step p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

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

.model-list article {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.model-list article:first-child {
  border-top: 1px solid var(--line);
}

.model-list span {
  color: var(--sage);
  font-weight: 900;
}

.model-list p {
  margin: 0;
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 46px;
  padding: clamp(44px, 6vw, 72px);
  border-radius: 18px;
  background: var(--charcoal);
  color: white;
}

.contact p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72);
}

.contact .eyebrow {
  color: #e7b59c;
}

.contact .button-primary {
  background: #fffaf2;
  color: var(--ink);
}

.contact .button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 4vw, 56px) 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 72px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper-strong);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
  }

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

  .hero {
    min-height: 0;
  }

  .metrics,
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics div:nth-child(2) {
    border-right: 0;
  }

  .metrics div:nth-child(1),
  .metrics div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .project-grid,
  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    padding-inline: 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .section-band,
  .section-wrap,
  .metrics {
    width: min(100% - 28px, var(--max));
  }

  h1 {
    font-size: 44px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .signal-grid,
  .metrics,
  .flow {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metrics div:last-child {
    border-bottom: 0;
  }

  .project-image,
  .project-card.featured .project-image {
    min-height: 230px;
  }

  .ecosystem,
  .contact {
    padding: 34px 20px;
  }

  .model-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
