/* ---------- Tokens ---------- */
:root {
  --ink: #0F1114;
  --ink-soft: #171A1F;
  --paper: #E6E8EB;
  --paper-soft: #DBDEE2;
  --gold: #C89B3C;
  --gold-soft: #E4C77E;
  --text-on-paper: #14161A;
  --text-on-paper-muted: #454A52;
  --text-on-ink: #ECEAE3;
  --text-on-ink-muted: #9BA0A8;
  --line-on-paper: rgba(20, 22, 26, 0.12);
  --line-on-ink: rgba(236, 234, 227, 0.14);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--text-on-paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}

p { margin: 0; }

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

ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(230, 232, 235, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-on-paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-full {
  font-size: 0.8rem;
  color: var(--text-on-paper-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.92rem;
}

.site-nav a:not(.nav-cta) {
  color: var(--text-on-paper-muted);
  transition: color 0.15s ease;
}

.site-nav a:not(.nav-cta):hover { color: var(--text-on-paper); }

.nav-cta {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 9px 18px;
  border-radius: 3px;
  font-weight: 500;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-on-paper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold);
  color: #17130A;
}

.btn-primary:hover { background: var(--gold-soft); }

.btn-ghost {
  border: 1px solid var(--line-on-ink);
  color: inherit;
}

.hero .btn-ghost { border-color: rgba(236, 234, 227, 0.3); }
.hero .btn-ghost:hover { border-color: rgba(236, 234, 227, 0.6); }

.btn-large { padding: 16px 36px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--text-on-ink);
  padding: 96px 0 88px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 15ch;
}

.hero-sub {
  margin-top: 24px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-on-ink-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.growth-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-axis {
  stroke: rgba(236, 234, 227, 0.16);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: draw-line 1.8s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.chart-dot {
  fill: var(--gold);
  opacity: 0;
  animation: dot-in 0.4s ease 2s forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes dot-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .chart-line { animation: none; stroke-dashoffset: 0; }
  .chart-dot { animation: none; opacity: 1; }
}

/* ---------- Sections (shared) ---------- */
.section { padding: 96px 0; }

.section-paper { background: var(--paper); color: var(--text-on-paper); }
.section-ink { background: var(--ink); color: var(--text-on-ink); }

.section-head { max-width: 52ch; margin-bottom: 56px; }

.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
}

.section-head p {
  margin-top: 14px;
  font-size: 1.05rem;
  color: var(--text-on-paper-muted);
  line-height: 1.55;
}

.section-head-light p { color: var(--text-on-ink-muted); }

/* ---------- What We Do ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-on-paper);
}

.pillar {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line-on-paper);
}

.pillar:last-child { border-right: none; padding-right: 0; }

.pillar h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-on-paper-muted);
}

/* ---------- Problems ---------- */
.problem-list {
  border-top: 1px solid var(--line-on-ink);
}

.problem-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-on-ink);
}

.problem {
  font-size: 1.05rem;
  color: var(--text-on-ink-muted);
  line-height: 1.55;
}

.reframe {
  font-size: 1.05rem;
  line-height: 1.55;
  border-left: 2px solid var(--gold);
  padding-left: 20px;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-on-paper);
  border: 1px solid var(--line-on-paper);
}

.service-block {
  background: var(--paper);
  padding: 32px;
}

.service-block h3 {
  font-size: 1.12rem;
  margin-bottom: 18px;
}

.service-block li {
  font-size: 0.96rem;
  padding: 9px 0;
  border-top: 1px solid var(--line-on-paper);
  color: var(--text-on-paper-muted);
}

.service-block li:first-child { border-top: none; }

/* ---------- Why DAM ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.why-head { margin-bottom: 0; }

.why-points {
  display: grid;
  gap: 32px;
}

.why-point h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.why-point p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--text-on-ink-muted);
}

/* ---------- CTA ---------- */
.section-cta {
  background: var(--gold);
  color: #17130A;
  padding: 100px 0;
  text-align: left;
}

.cta-inner { max-width: 60ch; }

.section-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-cta p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: rgba(23, 19, 10, 0.72);
}

.section-cta .btn-primary {
  margin-top: 32px;
  background: #17130A;
  color: var(--gold-soft);
}

.section-cta .btn-primary:hover { background: #241d13; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-ink-muted);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-on-ink);
}

.footer-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
}

.footer-nav a:hover { color: var(--text-on-ink); }

.footer-copy { font-size: 0.85rem; width: 100%; order: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line-on-paper);
    display: none;
  }

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

  .site-nav a {
    width: 100%;
    padding: 16px 32px;
    border-top: 1px solid var(--line-on-paper);
  }

  .nav-cta { border-radius: 0; }

  .nav-toggle { display: flex; }

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

  .pillars { grid-template-columns: 1fr; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--line-on-paper);
    padding: 24px 0;
  }

  .problem-row { grid-template-columns: 1fr; gap: 14px; }

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

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

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