/* ---------- Tokens ---------- */
:root {
  --bg: #f4f1ec;
  --bg-soft: #ece8e1;
  --ink: #1a1916;
  --ink-soft: #5c574e;
  --line: #d9d4ca;
  --accent: #1a1916;
  --card: #ffffff;
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.1, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

em { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #34322c; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--small { padding: 10px 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(244, 241, 236, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav__brand {
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.nav__brand span { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; margin-left: 4px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px;
  transition: color 0.2s var(--ease); position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { padding: 180px 0 120px; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 100px; font-size: 13px; color: var(--ink-soft);
  margin-bottom: 32px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #46b06a; box-shadow: 0 0 0 0 rgba(70,176,106,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(70,176,106,0); } 100% { box-shadow: 0 0 0 0 rgba(70,176,106,0); } }
.hero__title { font-size: clamp(40px, 7vw, 78px); max-width: 14ch; margin: 0 auto 26px; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 56ch; margin: 0 auto 40px; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 22ch; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 46px); }
.section-head--left { text-align: left; margin-left: 0; max-width: 18ch; }

/* ---------- Work ---------- */
.work { padding: 100px 0; }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; text-decoration: none; color: var(--ink);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(26,25,22,.25); }
.project__media { height: 260px; border-radius: var(--radius); margin-bottom: 18px; transition: transform 0.5s var(--ease); }
.project:hover .project__media { transform: scale(1.02); }
.project__media--1 { background: linear-gradient(135deg, #e7ddcf, #c9b89c); }
.project__media--2 { background: linear-gradient(135deg, #d6dde0, #9fb0b8); }
.project__media--3 { background: linear-gradient(135deg, #e8d9d2, #c2998c); }
.project__media--4 { background: linear-gradient(135deg, #dfe0d6, #a7ab93); }
.project__meta { display: flex; flex-direction: column; gap: 4px; padding: 0 6px 6px; }
.project__name { font-size: 21px; font-weight: 500; }
.project__tag { font-size: 14px; color: var(--ink-soft); }
.project__arrow {
  position: absolute; top: 32px; right: 32px; font-size: 20px;
  opacity: 0; transform: translate(-6px, 6px); transition: 0.4s var(--ease);
}
.project:hover .project__arrow { opacity: 1; transform: translate(0, 0); }

/* ---------- About ---------- */
.about { padding: 100px 0; border-top: 1px solid var(--line); }
.about__inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; }
.about__intro h2 { font-size: clamp(30px, 4.5vw, 46px); margin-bottom: 22px; }
.about__intro p { color: var(--ink-soft); font-size: 18px; max-width: 48ch; }
.stats { display: flex; gap: 48px; margin-top: 40px; }
.stat strong { display: block; font-size: 44px; font-weight: 500; letter-spacing: -0.03em; }
.stat span { color: var(--ink-soft); font-size: 15px; }
.skills { list-style: none; display: flex; flex-direction: column; }
.skills li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; transition: padding 0.3s var(--ease), color 0.3s var(--ease); }
.skills li:hover { padding-left: 10px; color: var(--ink); }

/* ---------- Process ---------- */
.process { padding: 100px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 30px; }
.step__num { font-family: "Instrument Serif", serif; font-size: 38px; color: var(--ink-soft); display: block; margin-bottom: 24px; }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 100px 0; border-top: 1px solid var(--line); }
.quotes { columns: 3; column-gap: 22px; }
.quote {
  break-inside: avoid; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 22px;
}
.quote p { font-size: 17px; margin-bottom: 20px; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { font-weight: 500; }
.quote footer span { color: var(--ink-soft); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; border-top: 1px solid var(--line); }
.faq__inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 0; font-size: 19px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.3s var(--ease);
}
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__item p { color: var(--ink-soft); padding: 0 0 22px; max-width: 52ch; font-size: 16px; }

/* ---------- CTA ---------- */
.cta { padding: 60px 0 100px; }
.cta__card {
  background: var(--ink); color: var(--bg); border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 96px) 32px; text-align: center;
}
.cta__card .eyebrow { color: rgba(244,241,236,.6); }
.cta__card h2 { font-size: clamp(30px, 5vw, 54px); max-width: 18ch; margin: 0 auto 18px; }
.cta__card em { color: #e7ddcf; }
.cta__card p { color: rgba(244,241,236,.7); margin-bottom: 36px; }
.cta__card .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta__card .btn:hover { background: #fff; }
.cta__card .btn--ghost { background: transparent; color: var(--bg); border-color: rgba(244,241,236,.3); }
.cta__card .btn--ghost:hover { background: var(--bg); color: var(--ink); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; }
.footer__brand p { color: var(--ink-soft); margin: 14px 0 18px; max-width: 30ch; }
.footer__email { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 500; margin-bottom: 16px; }
.footer__cols a { display: block; text-decoration: none; color: var(--ink); padding: 5px 0; transition: opacity 0.2s; }
.footer__cols a:hover { opacity: 0.6; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 16px; right: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; gap: 14px;
  }
  .work__grid { grid-template-columns: 1fr; }
  .about__inner, .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .quotes { columns: 1; }
  .hero { padding: 140px 0 80px; }
}
@media (max-width: 560px) {
  .stats { gap: 32px; }
  .footer__cols { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
