/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Tokens ─── */
:root {
  --bg:           #fef3e9;
  --ink:          #1a1a1a;
  --ink-soft:     #3f3f3f;
  --muted:        #857c6e;
  --line:         #e8ddd0;
  --accent:       #c2410c;
  --accent-soft:  #fce7da;
  --white:        #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  --max-w:        1100px;
  --content-w:    760px;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg);
  border-color: var(--line);
}
.nav-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.3px;
  z-index: 101;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.82; }
.nav-cta-arrow {
  color: var(--accent);
  font-size: 15px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Containers ─── */
.container        { max-width: var(--max-w);     margin: 0 auto; }
.container-narrow { max-width: var(--content-w); margin: 0 auto; }

/* ─── Section spacing ─── */
section { padding: 96px 48px; }

/* ─── Section label ─── */
.section-label {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--ink);
}

/* ─── Hero ─── */
.hero { padding-top: 160px; padding-bottom: 96px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-tagline {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(22px, 2.5vw, 32px);
  color: var(--muted);
  letter-spacing: -1px;
  margin-bottom: 32px;
}
.hero-tagline span { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 20px;
}
/* Portrait card */
.hero-portrait {
  aspect-ratio: 4 / 5;
  background-color: var(--accent-soft);
  background-image: repeating-linear-gradient(
    135deg,
    var(--accent-soft) 0 14px,
    rgba(0,0,0,0.025) 14px 15px
  );
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-portrait-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(26,26,26,0.82), transparent);
  color: var(--white);
}
.hero-portrait-label {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.6;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hero-portrait-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 2px;
}
.hero-portrait-role { font-size: 13px; opacity: 0.75; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.82; }
.btn-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.hero-examples-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.hero-services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
}
.hero-services li {
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.hero-services li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.hero-microcopy {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ─── Social proof ─── */
.proof { padding-top: 0; padding-bottom: 96px; }
.proof-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.proof-card {
  padding: 28px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--line);
}
.proof-stars {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.proof-quote {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.proof-attr { font-size: 13px; color: var(--muted); }

/* ─── Work ─── */
.work-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 540px;
  margin-top: -28px;
  margin-bottom: 48px;
  line-height: 1.55;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.work-num-panel {
  aspect-ratio: 16 / 10;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 140px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -2px;
}
.work-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.work-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.work-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
}
.work-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.work-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s;
}
.work-card:hover .work-link { gap: 8px; }

/* ─── Process ─── */
.process {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.process-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.process-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}
.process-body {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ─── About ─── */
.about-body p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

/* ─── Stack ─── */
.stack { padding-top: 0; padding-bottom: 96px; }
.stack-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stack-list {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2;
}
.stack-ticker {
  display: none;
  overflow: hidden;
  width: 100%;
}
.stack-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-soft);
  animation: ticker 20s linear infinite;
}
.stack-sep { color: var(--accent); margin: 0 6px; opacity: 0.5; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── FAQ ─── */
.faq {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  color: var(--ink);
  gap: 20px;
}
.faq-q {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
}
.faq-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.faq-item.open .faq-icon {
  background: var(--accent);
  color: var(--white);
}
.faq-a {
  display: none;
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 640px;
}
.faq-item.open .faq-a { display: block; }

/* ─── Final CTA ─── */
.final-cta {
  text-align: center;
  padding: 128px 48px;
}
.final-cta h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -0.8px;
  line-height: 1.1;
  max-width: 640px;
  margin: 0 auto 32px;
}
.final-cta .btn-primary { margin: 0 auto; }
.cta-microcopy {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ─── Footer ─── */
footer {
  padding: 36px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
footer a { transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ─── Scroll fade ─── */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .proof-grid,
  .work-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .stack-list { display: none; }
  .stack-ticker { display: block; }
  section { padding: 64px 24px; }
  .nav { padding: 16px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    align-items: center;
    justify-content: center;
    gap: 36px;
    font-size: 22px;
    z-index: 99;
  }
  .nav-links.open li a { color: var(--ink); }
  .nav-links.open .nav-mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
  }
  .hero { padding-top: 120px; padding-bottom: 64px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .section-label { font-size: 34px; }
  .final-cta { padding: 80px 24px; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
