@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --ink: #0a0a0c;
  --ink-soft: #151519;
  --paper: #f5f3ef;
  --paper-deep: #eae6dc;
  --graphite: #17181c;
  --mist: #6b6f76;
  --mist-dark: rgba(245, 243, 239, 0.72);
  --ember: #ff5a3c;
  --ember-soft: rgba(255, 90, 60, 0.14);
  --cyan: #22d3c5;
  --violet: #4f46e5;
  --line: rgba(23, 24, 28, 0.12);
  --line-dark: rgba(245, 243, 239, 0.16);
  --display: "Unbounded", sans-serif;
  --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--graphite);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

h1, h2, h3 { font-family: var(--display); text-wrap: balance; line-height: 1.08; margin: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mist-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; border-color: var(--ember); }

.nav-cta {
  background: var(--ember);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  border-bottom: none !important;
}
.nav-cta:hover { background: #ff7357; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* ---------- Flowing generative background ---------- */

.flow-stage {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.flow-bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
}

.flow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
}

.flow-blob.b1 { width: 46vw; height: 46vw; left: -8%; top: -6%; background: radial-gradient(circle, var(--ember), transparent 70%); animation: drift1 26s ease-in-out infinite; }
.flow-blob.b2 { width: 40vw; height: 40vw; right: -6%; top: 8%; background: radial-gradient(circle, var(--violet), transparent 70%); animation: drift2 32s ease-in-out infinite; }
.flow-blob.b3 { width: 38vw; height: 38vw; left: 24%; bottom: -18%; background: radial-gradient(circle, var(--cyan), transparent 70%); animation: drift3 22s ease-in-out infinite; }

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 5vh) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vw, 6vh) scale(0.9); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, -6vh) scale(1.1); }
}

.flow-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,10,12,0.35) 0%, rgba(10,10,12,0.72) 78%, rgba(10,10,12,0.92) 100%);
}

.flow-content { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .flow-blob { animation: none !important; }
}

/* ---------- Hero ---------- */

.hero { padding: 108px 28px 112px; }

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); display: inline-block; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero p.lead {
  font-size: 1.14rem;
  color: var(--mist-dark);
  margin: 0 0 32px;
  max-width: 48ch;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-quote {
  border-left: 3px solid var(--ember);
  padding: 4px 0 4px 22px;
}
.hero-quote .eyebrow { margin-bottom: 12px; }
.hero-quote p { margin: 0; color: var(--mist-dark); font-size: 1.02rem; line-height: 1.65; }

.page-hero { padding: 84px 28px 92px; text-align: left; }
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 16px; max-width: 20ch; }
.page-hero p { color: var(--mist-dark); max-width: 58ch; font-size: 1.05rem; margin: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary { background: var(--ember); color: #fff; }
.btn-primary:hover { background: #ff7357; transform: translateY(-1px); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-soft); }

/* ---------- Sections ---------- */

section.block { padding: 92px 28px; max-width: 1200px; margin: 0 auto; }
section.block.tight { padding-top: 0; }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head .eyebrow { color: var(--ember); }
.section-head .eyebrow::before { background: var(--ember); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--graphite); margin-bottom: 14px; font-weight: 700; }
.section-head p { color: var(--mist); margin: 0; font-size: 1.04rem; }

/* Flowing alternating feature list (replaces v1's 3-card grid) */

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

.flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.flow-row:last-child { border-bottom: 1px solid var(--line); }
.flow-row:nth-child(even) .flow-row-visual { order: -1; }

.flow-row-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ember-soft);
}
.flow-icon svg { width: 40px; height: 40px; stroke: var(--ember); }

.flow-row h3 { font-size: 1.3rem; color: var(--graphite); margin-bottom: 10px; font-weight: 700; }
.flow-row p { margin: 0; color: var(--mist); font-size: 1rem; max-width: 40ch; }

/* Service tag pills (Home teaser) */

.tag-flow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.tag-pill {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--graphite);
  background: var(--paper-deep);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tag-pill:hover { border-color: var(--ember); color: var(--ember); }

/* CTA band */

.cta-band {
  background: var(--ember);
  color: #fff;
  text-align: left;
  padding: 72px 28px;
}
.cta-band-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); font-size: 1.02rem; }

/* Services page — editorial row list */

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

.service-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  position: relative;
}
.service-rows > :last-child { border-bottom: 1px solid var(--line); }

.service-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--ember);
  transition: height 0.25s ease;
}
.service-row:hover::before { height: 100%; }

.service-row-head { display: flex; align-items: center; gap: 16px; }
.service-row .flow-icon { width: 56px; height: 56px; flex-shrink: 0; }
.service-row .flow-icon svg { width: 26px; height: 26px; }
.service-row h3 { font-size: 1.15rem; color: var(--graphite); font-weight: 700; }
.service-row p { margin: 0; color: var(--mist); font-size: 1rem; max-width: 56ch; padding-top: 6px; }

/* About page */

.about-layout { max-width: 780px; margin: 0 auto; }
.about-layout .kicker { font-family: var(--display); font-size: 1.4rem; color: var(--graphite); margin-bottom: 24px; font-weight: 700; }
.about-layout p { color: var(--graphite); font-size: 1.06rem; margin: 0 0 22px; }
.about-layout p:first-of-type { font-size: 1.22rem; }

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 40px; }
.credential-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.credential-pill .flow-icon { width: 34px; height: 34px; background: var(--ember-soft); }
.credential-pill .flow-icon svg { width: 17px; height: 17px; }
.credential-pill strong { display: block; font-size: 0.86rem; color: var(--graphite); }
.credential-pill span { display: block; font-size: 0.72rem; color: var(--mist); }

.about-quote {
  border-left: 3px solid var(--ember);
  padding: 6px 0 6px 24px;
  margin: 40px 0 0;
}
.about-quote p { font-style: italic; color: var(--graphite); font-size: 1.08rem; margin: 0; }

/* Contact */

.contact-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact-links { display: flex; flex-direction: column; gap: 4px; }

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact-link-row .flow-icon { width: 48px; height: 48px; flex-shrink: 0; }
.contact-link-row .flow-icon svg { width: 22px; height: 22px; }
.contact-link-row strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mist); margin-bottom: 4px; }
.contact-link-row a { font-size: 1.2rem; font-weight: 700; color: var(--graphite); }
.contact-link-row a:hover { color: var(--ember); }

.contact-note { font-size: 0.9rem; color: var(--mist); margin-top: 20px; }

.contact-form h3 { font-family: var(--display); font-size: 1.3rem; color: var(--graphite); margin: 0 0 8px; font-weight: 700; }
.contact-form p.hint { margin: 0 0 28px; color: var(--mist); font-size: 0.95rem; }

.field { margin-bottom: 26px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mist); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 2px solid var(--line);
  font-family: var(--body);
  font-size: 1.02rem;
  background: transparent;
  color: var(--graphite);
  border-radius: 0;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field textarea { resize: vertical; min-height: 100px; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--ember-soft);
  color: var(--graphite);
  font-size: 0.9rem;
  display: none;
}
.form-status.visible { display: block; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: var(--mist-dark); padding: 56px 28px 28px; }

.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-inner .brand { color: #fff; margin-bottom: 12px; }
.footer-inner p { font-size: 0.88rem; margin: 0; color: var(--mist-dark); }

.footer-col h4 { color: #fff; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 16px; font-family: var(--body); font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--mist-dark); }
.footer-col a:hover { color: #fff; }

.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: 0.8rem; color: rgba(245,243,239,0.4); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .flow-row { grid-template-columns: 1fr; gap: 20px; text-align: left; }
  .flow-row-visual { justify-content: flex-start; }
  .flow-row:nth-child(even) .flow-row-visual { order: 0; }
  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .about-layout { padding: 0 4px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 12px 28px 20px;
    border-bottom: 1px solid var(--line-dark);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .nav-toggle { display: block; }
  .nav-cta { margin-top: 6px; text-align: center; }

  .hero { padding: 72px 20px 76px; }
  .page-hero { padding: 60px 20px 68px; }
  section.block { padding: 64px 20px; }
  .cta-band { padding: 56px 20px; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}
