:root {
  --orange: #f58220;
  --orange-soft: #f583204d;
  --ink: #121217;
  --ink-2: #1d1d22;
  --muted: #716969;
  --line: #dbdbdb;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --max: 1200px;
  --nav-h: 88px;
  --font-body: "Rubik", sans-serif;
  --font-display: "Poppins", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

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

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
}

.section-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1rem;
}

/* Header — white bar like original */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand img {
  height: 52px;
  width: auto;
}

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

.nav-links > li > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.nav-links > li > a:hover {
  color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: 9999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}

.btn-orange:hover {
  background: #e07012;
  box-shadow: 0 8px 20px rgba(245, 130, 32, 0.28);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 13px 32px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
  padding: 12px 28px !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #222;
}

/* Hero — cover image + left content */
.hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 6px 16px;
  border-radius: 89px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-style: italic;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
}

.hero p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.9);
}

/* About — text + stats (no second hero image) */
.about {
  background: #fff;
  border-bottom: 1px solid #f0ece7;
}

.about-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.about-headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
  max-width: 18ch;
}

.about-lead {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--orange);
}

.about-text {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.about-text:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid #ece7e0;
  border-bottom: 1px solid #ece7e0;
}

.about-stat {
  padding: 1.35rem 1.1rem;
  text-align: left;
  border-right: 1px solid #ece7e0;
}

.about-stat:last-child {
  border-right: none;
}

.about-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.about-stat span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.about-focus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-focus-item {
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  background: #faf8f5;
  border-top: 3px solid var(--orange);
}

.about-focus-item h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-2);
}

.about-focus-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Services — image cover cards like original */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-card {
  position: relative;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #111;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(0, 0, 0) 18%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.15) 100%);
}

.service-card .body {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.35rem 1.5rem;
}

.service-card .tag {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.service-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.work-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.work-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

.work-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tech-tags span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #fff4ea;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Tech strip */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.tech-list li {
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  background: #fff;
  font-weight: 500;
  font-size: 0.92rem;
}

/* Engagement */
.engage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.engage-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.35rem 1.2rem;
}

.engage-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.engage-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #1a1a1a, #2a2118);
  color: #fff;
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 500;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Ask AI */
.ask-wrap {
  max-width: 720px;
}

.ask-wrap .section-lead {
  margin-bottom: 1.5rem;
}

.ask-panel {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: 0 8px 24px rgba(18, 18, 23, 0.04);
}

.ask-thread {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  max-height: 320px;
  overflow-y: auto;
}

.ask-thread:empty {
  display: none;
  margin: 0;
}

.ask-bubble {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.ask-bubble.user {
  background: #fff4ea;
  color: var(--ink);
  justify-self: end;
  max-width: 90%;
}

.ask-bubble.bot {
  background: #f7f7f7;
  color: var(--ink-soft);
  justify-self: start;
  max-width: 95%;
}

.ask-form {
  display: grid;
  gap: 0.65rem;
}

.ask-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.ask-form textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 96px;
}

.ask-form textarea:focus {
  outline: 2px solid rgba(245, 130, 32, 0.35);
  border-color: var(--orange);
}

.ask-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ask-meta span {
  font-size: 0.8rem;
  color: var(--muted);
}

.ask-turnstile {
  min-height: 65px;
}

.ask-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-height: 1.2em;
}

.ask-status.is-error {
  color: #b42318;
}

.ask-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

/* Contact */
.contact-wrap {
  max-width: 640px;
}

.contact-wrap .section-lead {
  margin-bottom: 1.75rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(18, 18, 23, 0.04);
}

.contact-form .honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(245, 130, 32, 0.35);
  border-color: var(--orange);
}

.form-note,
.form-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.form-status.is-success {
  color: #1f7a3f;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid #ece7e0;
  padding: 1.35rem 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-soft);
  background: #f3f0eb;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: var(--orange);
}

.footer-links svg {
  display: block;
}

@media (max-width: 980px) {
  .about-top,
  .about-focus,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .about-stat:nth-child(2) {
    border-right: none;
  }

  .about-stat:nth-child(1),
  .about-stat:nth-child(2) {
    border-bottom: 1px solid #ece7e0;
  }

  .about-headline {
    max-width: none;
  }

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

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

}

@media (max-width: 570px) {
  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stat {
    border-right: none;
    border-bottom: 1px solid #ece7e0;
  }

  .about-stat:last-child {
    border-bottom: none;
  }

  .about-stat:nth-child(1),
  .about-stat:nth-child(2) {
    border-bottom: 1px solid #ece7e0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(var(--nav-h) - 8px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > li > a {
    display: block;
    padding: 0.85rem 0.9rem;
  }

  .nav-cta {
    margin: 0.35rem 0.5rem 0.6rem;
    text-align: center;
  }

  .service-grid,
  .engage-grid {
    grid-template-columns: 1fr;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .hero {
    min-height: 560px;
  }
}
