@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
  color-scheme: light;
  --ink: #101615;
  --forest: #394648;
  --forest-deep: #263234;
  --forest-soft: #4a5a5c;
  --cream: #cecdc1;
  --paper: #f6f2e8;
  --paper-strong: #fffaf0;
  --muted: #687168;
  --line: #d9d0c0;
  --gold: #e2c290;
  --gold-deep: #c79b45;
  --blue: #bad7f2;
  --brick: #b76b53;
  --shadow: 0 28px 90px rgba(9, 16, 15, 0.28);
  --font-main: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.home-body {
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(206, 205, 193, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(206, 205, 193, 0.035) 1px, transparent 1px),
    var(--forest);
  background-size: 42px 42px, 42px 42px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(206, 205, 193, 0.18);
  background: rgba(38, 50, 52, 0.95);
  color: var(--cream);
  backdrop-filter: blur(18px);
}

.light-header {
  background: rgba(246, 242, 232, 0.93);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav-shell {
  width: min(1200px, calc(100% - 36px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-photo {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(206, 205, 193, 0.72);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  background: var(--forest-deep);
}

.light-header .brand-photo {
  border-color: rgba(16, 22, 21, 0.24);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 800;
}

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

.brand strong {
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand small {
  color: currentColor;
  opacity: 0.68;
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: currentColor;
  opacity: 0.76;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 9px 16px;
  opacity: 1;
}

.nav-toggle {
  display: none;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.1vw, 6.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 4.7rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-body .eyebrow {
  color: var(--gold);
}

.hero {
  min-height: calc(100vh - 74px);
  padding: clamp(44px, 5vw, 66px) 0 clamp(44px, 6vw, 74px);
}

.hero-shell,
.section,
.case-band,
.final-cta,
.blog-main,
.article-shell {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 0.8fr);
  align-items: start;
  gap: clamp(34px, 7vw, 90px);
}

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

.hero-lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(206, 205, 193, 0.76);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--forest-deep);
}

.button.secondary {
  border-color: rgba(206, 205, 193, 0.42);
  color: var(--cream);
}

.founder-card {
  max-width: 520px;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
}

.founder-card img {
  width: 132px;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(206, 205, 193, 0.28);
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 18%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.founder-card figcaption {
  color: rgba(206, 205, 193, 0.7);
}

.founder-card strong,
.founder-card span {
  display: block;
}

.founder-card strong {
  color: var(--cream);
  font-size: 1.08rem;
}

.hero-showcase {
  position: relative;
  min-height: 610px;
}

.mockup-art {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(206, 205, 193, 0.34);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.mockup-art img {
  width: 100%;
  display: block;
}

.phone-chat {
  position: absolute;
  right: -16px;
  bottom: 12px;
  z-index: 2;
  width: min(320px, 50%);
  border: 1px solid rgba(206, 205, 193, 0.38);
  border-radius: 8px;
  background: #f5f0e4;
  color: var(--ink);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.phone-top {
  margin: -14px -14px 12px;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  background: #22302f;
  color: var(--cream);
  font-size: 0.78rem;
  font-weight: 800;
}

.bubble {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.incoming {
  background: #fffaf0;
}

.outgoing {
  margin-left: auto;
  background: #d8edcf;
}

.section {
  padding: clamp(64px, 9vw, 116px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(206, 205, 193, 0.72);
  font-size: 1.14rem;
}

.section-heading.compact {
  max-width: 740px;
}

.visual-grid,
.desire-grid,
.deliverable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.visual-grid article,
.deliverable-grid article {
  min-height: 240px;
  border: 1px solid rgba(206, 205, 193, 0.2);
  border-radius: 8px;
  background: rgba(74, 90, 92, 0.58);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.visual-grid span {
  color: var(--gold);
  font-weight: 800;
}

.visual-grid p,
.deliverable-grid p {
  margin: 14px 0 0;
  color: rgba(206, 205, 193, 0.68);
  font-size: 1.05rem;
}

.desire-grid {
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.desire-card {
  min-height: 330px;
  border: 1px solid rgba(206, 205, 193, 0.2);
  border-radius: 8px;
  background: rgba(74, 90, 92, 0.5);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.desire-card h3 {
  margin-top: 18px;
}

.desire-card p {
  margin: 12px 0 0;
  color: rgba(206, 205, 193, 0.68);
  font-size: 1.04rem;
}

.mini-site,
.mini-products,
.mini-chat {
  border: 1px solid rgba(206, 205, 193, 0.2);
  border-radius: 8px;
  background: rgba(246, 242, 232, 0.08);
  padding: 18px;
}

.mini-site {
  min-height: 190px;
  background:
    linear-gradient(120deg, rgba(246, 242, 232, 0.82), rgba(246, 242, 232, 0.2)),
    linear-gradient(135deg, rgba(183, 107, 83, 0.34), rgba(226, 194, 144, 0.18));
  color: var(--ink);
}

.mini-site span,
.mini-site strong,
.mini-site em {
  display: block;
}

.mini-site span {
  font-weight: 800;
}

.mini-site strong {
  max-width: 280px;
  margin-top: 26px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
  line-height: 1;
}

.mini-site em {
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--gold-deep);
  padding: 10px 14px;
  font-style: normal;
  font-weight: 800;
}

.mini-products {
  min-height: 190px;
  display: grid;
  gap: 10px;
}

.mini-products span {
  border-radius: 8px;
  background: rgba(246, 242, 232, 0.1);
  padding: 12px;
  color: rgba(206, 205, 193, 0.88);
  font-weight: 800;
}

.mini-chat {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-chat span {
  width: fit-content;
  max-width: 100%;
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.95rem;
}

.mini-chat span:last-child {
  align-self: flex-end;
  background: #d8edcf;
}

.deliverables {
  border-top: 1px solid rgba(206, 205, 193, 0.16);
}

.case-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid rgba(206, 205, 193, 0.22);
  border-radius: 8px;
  background: #263234;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.18);
}

.case-copy p:not(.eyebrow) {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(206, 205, 193, 0.72);
  font-size: 1.1rem;
}

.case-copy .case-note {
  color: rgba(186, 215, 242, 0.86);
}

.case-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.case-logos figure {
  min-height: 250px;
  margin: 0;
  border: 1px solid rgba(206, 205, 193, 0.18);
  border-radius: 8px;
  background: rgba(246, 242, 232, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-logos img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--paper);
  padding: 16px;
}

.case-logos figcaption {
  color: rgba(206, 205, 193, 0.78);
  font-weight: 700;
}

.final-cta {
  margin-top: clamp(58px, 9vw, 108px);
  margin-bottom: clamp(58px, 9vw, 108px);
  padding: clamp(34px, 7vw, 72px);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.final-cta .eyebrow {
  color: var(--brick);
}

.final-cta h2 {
  max-width: 920px;
}

.final-cta p:not(.eyebrow) {
  max-width: 650px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
}

.footer {
  padding: 32px 16px;
  text-align: center;
  background: var(--ink);
  color: rgba(206, 205, 193, 0.78);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--cream);
}

.blog-body,
.article-body {
  color: var(--ink);
  background: var(--paper);
}

.blog-main {
  padding: clamp(58px, 9vw, 112px) 0;
}

.blog-hero {
  max-width: 860px;
}

.blog-hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 4.4rem);
}

.article-shell h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.blog-hero p:last-child,
.article-lede {
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  color: var(--muted);
}

.post-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.post-card {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.post-card a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-card p {
  color: var(--muted);
}

.post-meta {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.technical-stack {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 246, 0.72);
}

.technical-stack ul,
.article-shell ul,
.article-shell ol {
  margin: 0;
  padding-left: 20px;
}

.technical-stack ul {
  columns: 2;
}

.technical-stack li {
  break-inside: avoid;
  margin-bottom: 8px;
}

.article-shell {
  padding: clamp(42px, 8vw, 92px) 0;
}

.article-shell article {
  max-width: 840px;
}

.article-shell h2 {
  margin-top: 42px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.article-shell p,
.article-shell li {
  font-size: 1.08rem;
  color: #333832;
}

.article-shell li + li {
  margin-top: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--forest);
  font-weight: 800;
}

pre {
  overflow-x: auto;
  border-radius: 8px;
  background: #111811;
  color: #e9f4e7;
  padding: 22px;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
}

@media (max-width: 1040px) {
  .nav-shell {
    min-height: 62px;
    width: min(100% - 28px, 1200px);
    gap: 14px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-photo,
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark {
    font-size: 0.82rem;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-strong);
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
    padding: 8px;
  }

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

  .nav-links a {
    padding: 12px;
  }

  .hero-shell,
  .case-band {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 520px;
  }
}

@media (max-width: 820px) {
  .brand {
    gap: 10px;
  }

  .brand-photo,
  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-shell,
  .section,
  .case-band,
  .final-cta,
  .blog-main,
  .article-shell {
    width: min(100% - 28px, 1200px);
  }

  .hero-shell {
    gap: 30px;
  }

  h1 {
    font-size: clamp(2.35rem, 11vw, 3.85rem);
  }

  h2 {
    font-size: clamp(1.95rem, 9vw, 3.25rem);
  }

  .hero-lede {
    font-size: 1.04rem;
  }

  .hero-showcase {
    min-height: 0;
  }

  .phone-chat {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .visual-grid,
  .desire-grid,
  .deliverable-grid,
  .case-logos,
  .post-index {
    grid-template-columns: 1fr;
  }

  .visual-grid article,
  .desire-card,
  .deliverable-grid article,
  .case-logos figure {
    min-height: 0;
  }

  .founder-card {
    grid-template-columns: 96px 1fr;
  }

  .founder-card img {
    width: 96px;
  }

  .mockup-art {
    max-height: 420px;
  }

  .mockup-art img {
    width: 135%;
    max-width: none;
  }

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

  .technical-stack ul {
    columns: 1;
  }
}
