/* ============ Tokens ============ */
:root {
  --bg: #faf9f5;
  --bg-alt: #f1efe8;
  --ink: #14151a;
  --muted: #6b6d76;
  --line: rgba(20, 21, 26, 0.12);
  --accent: #bf2e1a;
  --accent-soft: #fbe6e1;
  --white: #ffffff;
  --ff-head: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --ff-body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.muted {
  color: var(--muted);
}

.rule {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.96rem;
}

.nav-links a {
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ============ Hero ============ */
.hero {
  padding: 90px 0 70px;
}

.hero-index {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  max-width: 1000px;
}

.hero-lede {
  margin-top: 30px;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 540px;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 46px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-facts span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
}

/* ============ Clients row ============ */
.clients-row {
  padding: 36px 0;
}

.clients-label {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}

.clients-grid span {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  opacity: 0.62;
}

/* ============ Section ============ */
.section {
  padding: 80px 0;
}

.section-index {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  max-width: 760px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.two-col p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 480px;
}

/* ============ List rows (services, why, process) ============ */
.list-rows {
  margin-top: 50px;
}

.list-row {
  display: grid;
  grid-template-columns: 90px 1.4fr 1.6fr auto;
  align-items: center;
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  transition: background 0.2s ease;
}

.list-rows .list-row:last-child {
  border-bottom: 1px solid var(--line);
}

.list-row:hover {
  background: var(--bg-alt);
}

.list-row .num {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.list-row h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.list-row p {
  color: var(--muted);
  margin: 0;
}

.list-row .arrow {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.list-row:hover .arrow {
  transform: translateX(6px);
}

/* ============ Why grid ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 44px;
  margin-top: 50px;
}

.why-item .num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.why-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-item p {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ============ Portfolio ============ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 50px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--ink);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
  transition: filter 0.35s ease, transform 0.5s ease;
}

.portfolio-item:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.portfolio-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(20, 21, 26, 0.75), transparent);
}

/* ============ Founder ============ */
.founder {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.founder-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.founder-copy h3 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.founder-role {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}

.founder-copy p {
  color: var(--muted);
  max-width: 560px;
}

.founder-copy p + p {
  margin-top: 14px;
}

/* ============ CTA band ============ */
.cta-band {
  padding: 90px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}

.cta-band .section-index {
  color: #ff9c88;
  justify-content: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  max-width: 780px;
  margin: 0 auto;
}

.cta-band p {
  margin: 22px auto 0;
  max-width: 520px;
  color: rgba(250, 249, 245, 0.68);
  font-size: 1.08rem;
}

.cta-band .cta-row {
  justify-content: center;
  margin-top: 34px;
}

.cta-band .btn-primary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

.cta-band .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.cta-band .btn-ghost {
  border-color: rgba(250, 249, 245, 0.4);
  color: var(--bg);
}

.cta-band .btn-ghost:hover {
  border-color: var(--bg);
}

/* ============ Footer ============ */
.site-footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.footer-grid li {
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

/* ============ Section alt background ============ */
.section-alt {
  background: var(--bg-alt);
}

/* ============ Stat pair (subpage outcome blocks) ============ */
.stat-pair {
  border: 1px solid var(--line);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-pair .stat b {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-pair .stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ Stats row ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.stat-cell b {
  display: block;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}

.stat-cell span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============ Page hero (subpages) ============ */
.hero-page {
  padding: 54px 0 56px;
}

.breadcrumb {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 22px;
}

.breadcrumb a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.hero-page h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 820px;
}

.hero-page .hero-lede {
  max-width: 620px;
}

/* ============ Card grid (services overview) ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.card {
  padding: 38px;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
}

.card .num {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
  margin: 0 0 22px;
}

/* ============ Forms ============ */
.info-card {
  margin-top: 30px;
  padding: 26px;
  border: 1px solid var(--line);
}

.info-card b {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.info-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 38px;
}

.form-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.form-tab-btn {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 11px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.form-tab-btn.active,
.form-tab-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.form-tabpanel {
  display: none;
}

.form-tabpanel.active {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-family: var(--ff-body);
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 4px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-block {
  width: 100%;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.form-note {
  margin-top: 14px;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder-photo {
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  body.nav-open .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    padding: 110px 32px 40px;
    gap: 24px;
    font-size: 1.3rem;
    z-index: 49;
  }

  body.nav-open .site-header {
    backdrop-filter: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .list-row {
    grid-template-columns: 1fr auto;
    grid-template-areas: "num arrow" "title title" "desc desc";
    row-gap: 8px;
  }

  .list-row .num { grid-area: num; }
  .list-row .arrow { grid-area: arrow; }
  .list-row h3 { grid-area: title; }
  .list-row p { grid-area: desc; }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 26px;
  }
}
