:root {
  --bg: #f5f3ee;
  --ink: #161616;
  --muted: #4a4842;
  --faint: #8a877f;
  --line: #e2ded4;
  --border: #d5d1c8;
  --dot: #c3bfb4;
  --tile: #eae7de;
  --tile-alt: #f0ede4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }

input, textarea, select, button { font-family: inherit; }

@keyframes as-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes as-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- nav ---- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-mark span {
  font-size: 18px;
  font-weight: 700;
  line-height: 0.72;
  color: var(--bg);
}
.brand-mark span:last-child { margin-top: -1px; }

.brand-name { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 9px 18px;
  color: var(--ink) !important;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--ink); color: var(--bg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---- hero ---- */
.hero {
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px 64px 96px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero h1 {
  font-size: 92px;
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  max-width: 15ch;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
  margin: 32px 0 0;
}

.hero-actions { display: flex; gap: 14px; margin-top: 44px; }

.reveal-in { opacity: 0; animation: as-rise 0.8s cubic-bezier(0.16,0.84,0.28,1) both; }
.reveal-in.reveal-delay-1 { animation-delay: 0.08s; }
.reveal-in.reveal-delay-2 { animation-delay: 0.18s; }
.reveal-in.reveal-delay-3 { animation-delay: 0.28s; }

.btn {
  border-radius: 8px;
  padding: 15px 28px;
  font-size: 15px;
  font-weight: 500;
  display: inline-block;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-dark { background: var(--ink); color: var(--bg) !important; }
.btn-dark:hover { background: #000; color: var(--bg) !important; }
.btn-outline { border: 1px solid var(--border); color: var(--ink) !important; }
.btn-outline:hover { border-color: var(--ink); }

/* ---- marquee ---- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: as-marquee 26s linear infinite;
}
.marquee-group {
  display: flex;
  gap: 56px;
  padding-right: 56px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee .dot { color: var(--dot); }

/* ---- shared section ---- */
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 112px 64px 40px;
}

.kicker {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,0.84,0.28,1), transform 0.7s cubic-bezier(0.16,0.84,0.28,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- services ---- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 56px;
}
.section-note { font-size: 15px; color: var(--muted); }

.service-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 40px 24px;
  border-top: 1px solid var(--line);
  transition: background 0.35s ease, color 0.35s ease;
}
.service-row-last { border-bottom: 1px solid var(--line); }
.service-row:hover { background: var(--ink); color: var(--bg); }

.service-num { font-size: 14px; color: inherit; opacity: 0.5; }
.service-title { font-size: 42px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.service-desc { font-size: 17px; line-height: 1.55; opacity: 0.72; max-width: 44ch; }

/* ---- work ---- */
.work { padding-top: 88px; padding-bottom: 0; }
.work-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.work-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.work-tile {
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, var(--tile) 0 10px, var(--tile-alt) 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.work-tile-wide { aspect-ratio: 16 / 10; }
.work-label { font-family: ui-monospace, monospace; font-size: 12px; color: var(--faint); }

/* ---- about ---- */
.about { padding-top: 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.about-copy {
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 40ch;
  text-wrap: pretty;
}

/* ---- faq ---- */
.faq .kicker { margin: 0 0 56px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 80px; }
.faq-q { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.faq-a { font-size: 17px; line-height: 1.6; color: var(--muted); margin-top: 12px; max-width: 48ch; }

/* ---- contact ---- */
.contact-wrap { padding: 112px 64px 120px; }
.contact-card {
  border-radius: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 72px 72px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-copy h2 {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  max-width: 16ch;
}
.contact-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: #a8a49a;
  margin: 24px 0 0;
  max-width: 40ch;
}
.contact-alt { margin-top: 40px; font-size: 15px; color: #a8a49a; }
.contact-email {
  font-size: 20px;
  font-weight: 500;
  color: var(--bg) !important;
  display: inline-block;
  margin-top: 6px;
  border-bottom: 1px solid #4a4842;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
.contact-email:hover { border-color: var(--bg); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: transparent;
  border: 1px solid #3a3833;
  border-radius: 8px;
  padding: 15px 16px;
  font-size: 15px;
  color: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
}
.contact-form select { appearance: none; color: #a8a49a; }
.contact-form select:valid { color: var(--bg); }
.contact-form select option { color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--bg); }

.contact-form button {
  background: var(--bg);
  color: var(--ink);
  border: none;
  border-radius: 8px;
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s ease;
}
.contact-form button:hover { background: #fff; }
.contact-form button:disabled { cursor: default; opacity: 0.8; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--faint);
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav-inner, .hero, .section, .contact-wrap, .footer-inner { padding-left: 32px; padding-right: 32px; }
  .hero { padding-top: 88px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(44px, 9vw, 72px); max-width: 12ch; }
  .hero-sub { font-size: 18px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-copy { font-size: 24px; max-width: none; }
  .contact-card { grid-template-columns: 1fr; padding: 48px 36px; gap: 40px; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 24px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }

  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }

  .marquee-group { gap: 28px; padding-right: 28px; font-size: 26px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }

  .service-row { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .service-title { font-size: 28px; }
  .service-desc { max-width: none; }

  .work-grid { grid-template-columns: 1fr; }
  .work-tile-wide { aspect-ratio: 16 / 11; }

  .faq-grid { grid-template-columns: 1fr; gap: 32px; }

  .contact-card { padding: 36px 24px; border-radius: 14px; }
  .contact-copy h2 { font-size: 34px; }

  .footer-inner { flex-direction: column; gap: 6px; }
}
