:root {
  --bg: #f7f5f0;
  --bg-alt: #efece4;
  --surface: #ffffff;
  --ink: #161513;
  --ink-2: #57534b;
  --line: #dedad0;
  --accent: #f2b33d;
  --accent-ink: #161513;
  --ok: #2f8a57;
  --radius: 14px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0e;
    --bg-alt: #161614;
    --surface: #1c1b19;
    --ink: #f2efe8;
    --ink-2: #a8a397;
    --line: #2d2b27;
    --accent: #f5bd52;
    --ok: #5cc48a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow > * { max-width: 760px; }
.lead { font-size: 1.125rem; color: var(--ink-2); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--lg { padding: 16px 30px; font-size: 1.08rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); }
.link:hover { border-bottom-width: 2px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.03em; text-decoration: none; }
.logo__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe7a8, var(--accent) 55%, #d9891a);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent);
}
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--ink-2); font-size: .95rem; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* Hero */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 112px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.8rem, 7.5vw, 5.4rem); letter-spacing: -0.045em; line-height: 1; margin-bottom: .35em; }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 20px; }
.trust { font-size: .92rem; color: var(--ink-2); margin: 0; }
.trust span { color: var(--accent); margin: 0 4px; font-weight: 700; }

.run {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.25);
  font-family: var(--mono); font-size: .82rem; overflow: hidden;
}
.run__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.run__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.run__bar span { margin-left: 8px; }
.run__log { list-style: none; margin: 0; padding: 16px 18px 20px; display: grid; gap: 10px; }
.run__log li { opacity: 0; animation: line .4s ease forwards; padding-left: 7ch; text-indent: -7ch; }
.run__log li:nth-child(2) { animation-delay: .5s; }
.run__log li:nth-child(3) { animation-delay: 1s; }
.run__log li:nth-child(4) { animation-delay: 1.5s; }
.run__log li:nth-child(5) { animation-delay: 2.1s; }
.run__log b { color: var(--ink-2); font-weight: 400; display: inline-block; width: 6ch; text-indent: 0; }
.run__log em { font-style: normal; background: color-mix(in srgb, var(--accent) 22%, transparent); padding: 1px 6px; border-radius: 4px; }
.run__log .ok { color: var(--ok); font-weight: 500; }
@keyframes line { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .run__log li { animation: none; opacity: 1; } html { scroll-behavior: auto; } }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.note { margin-top: 32px; color: var(--ink-2); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.value { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.value svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.value p { color: var(--ink-2); margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* Cards */
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.card > p { color: var(--ink-2); }
.card .btn, .card .link { margin-top: auto; align-self: flex-start; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.card__meta span { font-family: var(--mono); font-size: .8rem; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink) !important; }
.card--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card--featured .card__meta span:first-child { background: var(--accent); border-color: var(--accent); color: var(--accent-ink) !important; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }

.ticks { list-style: none; padding: 0; margin: 4px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: .97rem; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: .85rem; color: var(--ink-2); margin-bottom: 14px; }
.steps p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.steps .steps__opt { border-top-style: dashed; border-top-color: var(--ink-2); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Work */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }
.case { display: grid; grid-template-columns: 80px 1fr; gap: 12px 16px; margin: 8px 0 28px; }
.case dt { font-family: var(--mono); font-size: .8rem; color: var(--ink-2); padding-top: 3px; }
.case dd { margin: 0; }
.case__result { font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about__photo { margin: 0; aspect-ratio: 6 / 7; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); position: relative; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo span { display: none; }
.about__photo.is-empty span {
  display: grid; place-items: center; position: absolute; inset: 0;
  font-size: 5rem; font-weight: 700; letter-spacing: -0.05em; color: var(--ink-2);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--bg-alt);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 32px 0 0; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__photo { max-width: 340px; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Videos */
.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.split .lead { max-width: 40em; margin: 0; }
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.videos[hidden] { display: none; }
@media (max-width: 820px) { .videos { grid-template-columns: 1fr; } }
.video { text-decoration: none; display: block; }
.video__thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--line); position: relative; }
.video__thumb img, .video__thumb iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__thumb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  border-radius: 50%; background: rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 7l8 5-8 5z'/%3E%3C/svg%3E") center / 28px no-repeat;
  transition: transform .15s;
}
.video:hover .video__thumb::after { transform: scale(1.08); }
.video.is-playing .video__thumb::after { display: none; }
.video__title { margin-top: 12px; font-weight: 500; line-height: 1.35; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; 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(--ink-2); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-right: 40px; margin: 0 0 22px; }

/* CTA */
.cta { padding: clamp(80px, 11vw, 140px) 0; text-align: center; background: var(--ink); color: var(--bg); }
.cta .narrow > * { margin-inline: auto; }
.cta .lead { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); margin: 0 auto 36px; max-width: 36em; }
.cta__alt { margin: 24px 0 0; color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.cta__alt a { color: var(--bg); }

/* Footer */
.footer { padding: 32px 0; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__privacy { flex-basis: 100%; font-size: .82rem; }
