/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg-raised: #131315;
  --bg-card: #141416;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.06);
  --text: #f2f1ee;
  --text-dim: #a8a6a1;
  --text-faint: #706e6a;
  --accent: #e8b34a;
  --accent-dim: #b9873020;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Section scaffolding ---------- */
section { position: relative; padding: 72px 0; }
section + section { border-top: 1px solid var(--border-soft); }

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  max-width: 20ch;
  margin-bottom: 18px;
}

.section-lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 46ch;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14.5px;
  font-weight: 500;
}

.nav a { color: var(--text-dim); transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
}
.nav-cta:hover { opacity: 0.9; color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero { padding-top: 60px; padding-bottom: 0; border-top: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 48px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  margin-bottom: 22px;
}
h1 span {
  display: block;
  font-size: 0.42em;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.hero-lede {
  font-size: 21px;
  color: var(--text);
  margin-bottom: 12px;
  font-style: italic;
  font-family: var(--serif);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 34px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: #0a0a0b; }
.btn-primary:hover { opacity: 0.92; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); }

.btn-large { padding: 17px 34px; font-size: 16px; }

.hero-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-raised);
  border: 1px solid var(--border);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Clients strip ---------- */
.clients {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
  background: var(--bg-raised);
}
.clients-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
}
.clients-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.client-logo {
  flex: 1 1 0;
  min-width: 72px;
  height: 46px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.client-logo--light {
  background: #f2f1ee;
  border-color: #f2f1ee;
}

/* ---------- Challenges ---------- */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 36px;
}
.challenge-card {
  background: var(--bg);
  padding: 32px;
}
.challenge-num {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 16px;
}
.challenge-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.challenge-card p {
  color: var(--text-dim);
  font-size: 15.5px;
  max-width: 42ch;
}

/* ---------- Work / case studies ---------- */
.case-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.case {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.case-list > .case:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.case-list > .case:last-child:nth-child(odd) .case-body {
  max-width: 640px;
}

.case-body {
  max-width: none;
}

.case-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 18px;
}

.case-logo-chip {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}
.case-logo-chip--light {
  background: #f2f1ee;
  border-radius: 8px;
  padding: 8px 14px;
}
.case-logo-chip .case-logo {
  margin-bottom: 0;
}

.case-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.25;
}
.case-body p {
  color: var(--text-dim);
  font-size: 15.5px;
  margin-bottom: 14px;
  max-width: 56ch;
}

.case-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--text-faint);
  max-width: 18ch;
}

/* ---------- About / why me ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
}
.about-copy p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 18px;
  max-width: 62ch;
}
.about-copy blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin-top: 24px;
  max-width: 46ch;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-stat {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}
.about-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 8px;
}
.about-stat-label {
  font-size: 14px;
  color: var(--text-dim);
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.testimonial:nth-child(4),
.testimonial:nth-child(5) {
  grid-column: span 1;
}
.testimonial blockquote {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.testimonial blockquote::before { content: "\201C"; }
.testimonial blockquote::after { content: "\201D"; }
.testimonial figcaption {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial figcaption span {
  font-weight: 400;
  color: var(--text-faint);
}

/* ---------- Approach / timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 40px;
  position: relative;
}
.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 20px;
  position: relative;
}
.timeline-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.timeline-step h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-desc {
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.timeline-meta {
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 18ch; }
.contact-lede {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 48ch;
  margin-bottom: 40px;
}
.contact-actions { margin-bottom: 30px; }
.contact-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 500;
}
.contact-links a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 52px 0; }

  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 24px;
  }
  .site-header.open .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .site-header.open .nav-cta { margin-top: 14px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; padding-bottom: 50px; }
  .hero-media { max-width: 320px; margin: 0 auto; order: -1; }

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

  .case-list { grid-template-columns: 1fr; }
  .case-list > .case:last-child:nth-child(odd) .case-body { max-width: none; }

  .about-inner { grid-template-columns: 1fr; }

  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .case-stats { gap: 24px; }
  .footer-inner { flex-direction: column; }
  .client-logo { min-width: 60px; height: 40px; }
}
