/* ---------- Tokens ---------- */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ede4;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e4ddd1;
  --accent: #e8572a;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3d8;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(0 0 0 / .06);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14130f;
    --bg-alt: #1c1a16;
    --surface: #211f1a;
    --ink: #f3efe7;
    --muted: #a69f93;
    --line: #34302a;
    --accent: #ff7a4d;
    --accent-ink: #14130f;
    --accent-soft: #3a2219;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14130f;
  --bg-alt: #1c1a16;
  --surface: #211f1a;
  --ink: #f3efe7;
  --muted: #a69f93;
  --line: #34302a;
  --accent: #ff7a4d;
  --accent-ink: #14130f;
  --accent-soft: #3a2219;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
h1, h2 { font-family: var(--serif); letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.2rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section__head { margin-bottom: 48px; }
.section__head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.eyebrow {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75em;
}
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid--3 { grid-template-columns: 1fr; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink);
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -6px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--small { padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 500 .9rem var(--sans); cursor: pointer;
  transition: all .2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.nav nav { margin-left: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-family: var(--serif);
}
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.theme {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.nav__toggle { display: none; }

@media (max-width: 800px) {
  .nav__toggle {
    display: grid; gap: 6px; width: 38px; height: 38px; place-content: center;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li a:not(.btn) { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav__links .btn { margin-top: 8px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 10vw, 120px) 56px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: .875rem; color: var(--muted); margin-bottom: 28px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; position: relative; }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { to { transform: scale(2.8); opacity: 0; } }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 56ch; margin-top: 8px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stats {
  display: flex; flex-wrap: wrap; gap: clamp(24px, 6vw, 72px);
  list-style: none; padding: 32px 0 0; margin: 56px 0 0; border-top: 1px solid var(--line);
}
.stats strong { display: block; font: 600 clamp(2rem, 4vw, 2.8rem)/1 var(--serif); }
.stats span { color: var(--muted); font-size: .9rem; }

/* ---------- Marquee ---------- */
.logos { border-block: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track {
  display: flex; gap: 64px; width: max-content; padding: 22px 0;
  animation: scroll 32s linear infinite;
}
.marquee__track span { font: 600 1.35rem var(--serif); color: var(--muted); white-space: nowrap; opacity: .8; }
@keyframes scroll { to { transform: translateX(calc(-50% - 32px)); } }

/* ---------- Cards ---------- */
.card, .plan, .quote, .steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card { transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; margin-bottom: 20px;
}
.card p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: .95rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- Projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .projects { grid-template-columns: 1fr; } }
.project { cursor: pointer; }
.project.is-hidden { display: none; }
.project__img {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  display: grid; place-items: center;
}
.project__img span {
  font: 600 clamp(2rem, 5vw, 3.4rem) var(--serif); color: #fff; letter-spacing: -.02em;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.project__img::after {
  content: "View case study →"; position: absolute; bottom: 16px; left: 16px;
  padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .92); color: #1d1b18;
  font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: all .3s;
}
.project:hover .project__img span { transform: scale(1.08); }
.project:hover .project__img::after { opacity: 1; transform: none; }
.project__body { padding: 18px 4px 0; }
.project__body p { color: var(--muted); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: .78rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps span { display: block; font: 600 2rem var(--serif); color: var(--accent); margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }
.avatar {
  aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #f4b860, var(--accent) 55%, #8a2c10);
  font: 600 clamp(4rem, 10vw, 7rem) var(--serif); color: #fff; box-shadow: var(--shadow);
}
.about__text p { color: var(--muted); }
.about__links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.about__links a {
  text-decoration: none; font-weight: 500; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px;
}

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quote blockquote { margin: 0; font: 400 1.2rem/1.5 var(--serif); }
.quote figcaption { color: var(--muted); font-size: .9rem; }
.quote figcaption strong { color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan > p:not(.price):not(.badge) { color: var(--muted); }
.plan .ticks { margin-bottom: 28px; flex: 1; }
.plan--featured { border: 2px solid var(--accent); }
.badge {
  position: absolute; top: -13px; left: 28px; margin: 0;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.price { font: 600 2.6rem/1 var(--serif); margin: 4px 0 12px; }
.price small { font: 400 1rem var(--sans); color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); max-width: 760px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }
.contact__intro p { color: var(--muted); }
.contact__direct a { color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.form {
  display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font: 400 1rem var(--sans); transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form .is-invalid { border-color: #dc2626; }
.form__note { margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--muted); }
.form__note.is-error { color: #dc2626; }
.form__note.is-success { color: #16a34a; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .9rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .dot::after { animation: none; }
  .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; }
  * { transition: none !important; }
}
