:root {
  --ink: #12181F;
  --ink-soft: #1B232C;
  --paper: #E9E4D6;
  --paper-light: #F5F3EA;
  --signal: #2DD4BF;
  --flame: #E0862E;
  --line: #3A4653;
  --line-light: #D8D2C0;
  --muted: #8B93A0;
  --muted-dark: #7A7566;
  --serif: 'Fraunces', serif;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
::selection { background: var(--signal); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* Animations */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Navigation */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(233, 228, 214, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-light);
}
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; max-width: 1180px; margin: 0 auto;
}
.logo {
  font-family: var(--mono); font-weight: 600; font-size: 15px; letter-spacing: .02em;
  display: flex; align-items: center; gap: 8px;
}
.logo .dot { width: 7px; height: 7px; border-radius: 1px; background: var(--flame); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav-links a { opacity: .8; transition: opacity .2s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--flame); }
.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--paper-light);
  padding: 10px 18px; border-radius: 2px;
  border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: transparent; color: var(--ink); }
.nav-toggle { display: none; }

#mnav {
  display: none; flex-direction: column; padding: 0 32px 20px;
  gap: 14px; font-family: var(--mono); font-size: 14px;
}
#mnav.open { display: flex; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; font-family: var(--mono); font-size: 13px; background: none; border: 1px solid var(--line); padding: 8px 12px; color: var(--ink); }
}

/* Sections & Typography */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--signal); display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.eyebrow::before { content: '//'; color: var(--flame); opacity: .9; }
.section-head .eyebrow { color: var(--flame); margin-bottom: 16px; }
.section-head .eyebrow::before { color: var(--signal); }

h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -.015em;
}
h1 em { font-style: italic; color: var(--signal); font-weight: 500; }
h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -.01em; line-height: 1.12;
}
.section-head p { margin-top: 18px; font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* Buttons */
.btn {
  font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  padding: 14px 24px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s ease, background .2s, color .2s, border-color .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--flame); color: var(--ink); }
.btn-primary:hover { background: #F0995A; }
.btn-ghost { border-color: rgba(245, 243, 234, .3); color: var(--paper-light); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

/* Hero */
.hero { background: var(--ink); color: var(--paper-light); padding: 150px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-sub { font-size: 17px; line-height: 1.65; color: #B9C0C9; max-width: 540px; margin: 26px 0 38px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

/* Code-to-browser Visual */
.compile {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(245,243,234,.14); border-radius: 6px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
}
@media (max-width: 760px) { .compile { grid-template-columns: 1fr; } }
.pane { background: var(--ink-soft); min-height: 280px; }
.pane-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid rgba(245,243,234,.08); font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.pane-head .traffic { display: flex; gap: 6px; }
.traffic span { width: 8px; height: 8px; border-radius: 50%; background: rgba(245,243,234,.18); }
.pane-code { padding: 20px 22px; font-family: var(--mono); font-size: 12.5px; line-height: 1.9; color: #B9C0C9; }
.pane-code .tag { color: var(--signal); }
.pane-code .attr { color: var(--flame); }
.pane-code .str { color: #C9E5A6; }
.pane-code .cur { display: inline-block; width: 7px; height: 14px; background: var(--signal); vertical-align: middle; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pane-render { padding: 22px; display: flex; flex-direction: column; gap: 12px; border-left: 1px solid rgba(245,243,234,.08); }
.r-nav { height: 10px; width: 60%; background: rgba(245,243,234,.16); border-radius: 2px; }
.r-hero { height: 34px; width: 85%; background: var(--paper-light); border-radius: 2px; opacity: .95; }
.r-sub { height: 9px; width: 70%; background: rgba(245,243,234,.14); border-radius: 2px; }
.r-btn { height: 26px; width: 110px; background: var(--flame); border-radius: 2px; margin-top: 6px; }
.r-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.r-card { height: 44px; background: rgba(245,243,234,.07); border: 1px solid rgba(245,243,234,.09); border-radius: 3px; }

/* Tech Marquee */
.tech-marquee {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(245,243,234,.12);
  overflow: hidden; position: relative;
}
.tech-track {
  display: flex; gap: 46px; width: max-content; font-family: var(--mono);
  font-size: 12.5px; color: var(--muted); letter-spacing: .04em; animation: scroll 26s linear infinite;
}
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tech-track span { white-space: nowrap; }
.tech-track .sep { color: var(--flame); }

/* Grid Components: Services & Why */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--paper-light); padding: 38px; transition: background .25s; }
.service-card:hover { background: #FFFDF6; }
.service-num { font-family: var(--mono); font-size: 12px; color: var(--signal); margin-bottom: 22px; display: block; }
.service-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 12px; }
.service-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted-dark); }

.why { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }
.why-item .mk { font-family: var(--mono); font-size: 20px; color: var(--flame); margin-bottom: 16px; }
.why-item h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 10px; }
.why-item p { font-size: 14px; line-height: 1.6; color: var(--muted-dark); }

/* Case Study */
.case { background: var(--ink); color: var(--paper-light); }
.case-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .05em;
  color: var(--ink); background: var(--signal); padding: 4px 10px; border-radius: 2px; margin-bottom: 18px;
}
.case-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; gap: 44px; } }
.case h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 18px; }
.case-list { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.case-list li { font-size: 14.5px; color: #B9C0C9; display: flex; gap: 12px; align-items: flex-start; }
.case-list li::before { content: '—'; color: var(--flame); flex-shrink: 0; }
.ba { display: flex; flex-direction: column; gap: 16px; }
.ba-frame { border: 1px solid rgba(245,243,234,.14); border-radius: 6px; overflow: hidden; }
.ba-label { font-family: var(--mono); font-size: 11px; padding: 8px 14px; background: rgba(245,243,234,.05); color: var(--muted); border-bottom: 1px solid rgba(245,243,234,.1); }
.ba-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.ba-body .blk { height: 12px; background: rgba(245,243,234,.09); border-radius: 2px; }
.ba.before .blk { background: rgba(245,243,234,.06); }
.ba.before .blk.wide { width: 96%; }
.ba.before .blk.mid { width: 70%; }
.ba.before .blk.short { width: 40%; }
.ba.after .blk { background: rgba(45,212,191,.16); }
.ba.after .blk.cta { background: var(--flame); height: 22px; width: 120px; margin-top: 4px; }
.ba.after .blk.wide { width: 100%; height: 22px; background: var(--paper-light); opacity: .9; }
.ba.after .blk.mid { width: 80%; }

/* Pricing */
.pricing { background: var(--paper-light); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-light); }
@media (max-width: 900px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { padding: 34px 26px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.price-card:last-child { border-right: none; }
.price-card.featured { background: var(--ink); color: var(--paper-light); }
.price-card.featured .price-tier, .price-card.featured .price-desc { color: #B9C0C9; }
.price-tier { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dark); margin-bottom: 14px; }
.price-amt { font-family: var(--serif); font-size: 32px; font-weight: 500; margin-bottom: 14px; }
.price-desc { font-size: 13.5px; line-height: 1.55; color: var(--muted-dark); }

/* FAQ */
.faq { background: var(--paper-light); border-top: 1px solid var(--line-light); }
.faq-list { border-top: 1px solid var(--line-light); }
.faq-item { border-bottom: 1px solid var(--line-light); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px; font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--ink);
}
.faq-q .faq-num { font-family: var(--mono); font-size: 12px; color: var(--signal); margin-right: 16px; flex-shrink: 0; }
.faq-q-text { display: flex; align-items: baseline; flex: 1; }
.faq-mark { font-family: var(--mono); font-size: 18px; color: var(--flame); flex-shrink: 0; transition: transform .25s ease; }
.faq-item.open .faq-mark { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; padding: 0 4px; }
.faq-item.open .faq-a { max-height: 240px; padding: 0 4px 26px 4px; }
.faq-a p { font-size: 14.5px; line-height: 1.7; color: var(--muted-dark); max-width: 640px; padding-left: 38px; }

/* Contact Form */
.contact { background: var(--ink); color: var(--paper-light); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
.contact h2 { color: var(--paper-light); }
.contact-sub { margin-top: 18px; font-size: 16px; color: #B9C0C9; line-height: 1.6; max-width: 440px; }
.contact-meta { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.contact-meta a { color: var(--signal); }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
input, textarea {
  background: transparent; border: 1px solid rgba(245,243,234,.22); border-radius: 2px;
  padding: 12px 14px; color: var(--paper-light); font-family: var(--sans); font-size: 14.5px;
}
input:focus, textarea:focus { border-color: var(--signal); }
textarea { resize: vertical; min-height: 100px; }
.submit {
  margin-top: 6px; align-self: flex-start; font-family: var(--mono); font-size: 13.5px; font-weight: 500;
  background: var(--flame); color: var(--ink); padding: 14px 26px; border: none; border-radius: 2px; cursor: pointer;
  transition: background .2s;
}
.submit:hover { background: #F0995A; }

/* Footer */
footer { background: var(--ink); border-top: 1px solid rgba(245,243,234,.1); padding: 34px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-inner .logo { color: var(--paper-light); }
.foot-links { display: flex; gap: 24px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.foot-links a:hover { color: var(--signal); }

/* ======================================================
   TESTIMONIALS MODULE
====================================================== */
.stats-strip {
  background: var(--ink-soft);
  border-top: 1px solid rgba(245,243,234,.1);
  border-bottom: 1px solid rgba(245,243,234,.1);
  padding: 44px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-box { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: 38px; color: var(--signal); font-weight: 500; line-height: 1; }
.stat-label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.reviews-section { background: var(--paper); }
.review-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-light); border: 1px solid var(--line-light);
}
@media (max-width: 980px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .review-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--paper-light); padding: 40px 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .25s ease;
}
.review-card:hover { background: #FFFDF7; }
.review-card.featured-review {
  background: var(--ink); color: var(--paper-light);
}
.review-card.featured-review:hover { background: #161D26; }
.review-card.featured-review .review-text { color: #D1D7E0; }
.review-card.featured-review .client-role { color: var(--muted); }

.review-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--flame); margin-bottom: 24px;
}
.review-badge::before { content: '>'; color: var(--signal); }
.review-text {
  font-family: var(--sans); font-size: 15px; line-height: 1.7;
  color: var(--ink); margin-bottom: 32px;
}
.review-card.featured-review .review-text em {
  color: var(--signal); font-style: normal; font-weight: 600;
}
.client-info {
  border-top: 1px solid var(--line-light); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: flex-end;
}
.review-card.featured-review .client-info { border-top-color: rgba(245,243,234,.12); }
.client-meta { display: flex; flex-direction: column; gap: 4px; }
.client-name { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.client-role { font-family: var(--mono); font-size: 12px; color: var(--muted-dark); }
.project-tag {
  font-family: var(--mono); font-size: 11px; padding: 4px 8px;
  background: rgba(45,212,191,.12); color: var(--signal); border-radius: 2px;
}









/* ==========================================================================
   Eye-Catching Kinetic Mobile Toggle
   ========================================================================== */

.nav-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(27, 35, 44, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line, #3A4653);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: 
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.15s ease;
}

/* Subtle touch feedback */
.nav-toggle:active {
  transform: scale(0.92);
}

/* Ambient backlight glow on hover */
.nav-toggle:hover {
  border-color: var(--signal, #2DD4BF);
  box-shadow: 
    0 0 16px rgba(45, 212, 191, 0.18),
    inset 0 0 8px rgba(45, 212, 191, 0.08);
}

.hamburger-box {
  width: 20px;
  height: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
}

/* The bars */
.hamburger-line {
  display: block;
  height: 2px;
  background: var(--paper-light, #F5F3EA);
  border-radius: 99px;
  transition: 
    transform 0.38s cubic-bezier(0.68, -0.6, 0.32, 1.6),
    width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.2s ease,
    background-color 0.3s ease;
  transform-origin: center;
}

/* Dynamic staggered line lengths (editorial signature look) */
.hamburger-line:nth-child(1) {
  width: 20px;
}

.hamburger-line:nth-child(2) {
  width: 13px; /* Asymmetric middle accent */
  background: var(--signal, #2DD4BF); /* Neon accent pop */
}

.hamburger-line:nth-child(3) {
  width: 17px;
}

/* Hover: lines expand across full width in anticipation */
.nav-toggle:hover .hamburger-line {
  width: 20px;
  background: var(--paper-light, #F5F3EA);
}

.nav-toggle:hover .hamburger-line:nth-child(2) {
  background: var(--signal, #2DD4BF);
}

/* ==========================================================================
   Active / Open State (Snappy Morph to Glowing '✕')
   ========================================================================== */

.nav-toggle.is-active {
  border-color: var(--flame, #E0862E);
  background: rgba(224, 134, 46, 0.08);
  box-shadow: 
    0 0 20px rgba(224, 134, 46, 0.25),
    inset 0 0 10px rgba(224, 134, 46, 0.12);
}

/* Bars shift to high-contrast flame orange */
.nav-toggle.is-active .hamburger-line {
  background: var(--flame, #E0862E);
  width: 20px;
}

/* Top bar elastic rotation */
.nav-toggle.is-active .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

/* Center bar shoots out & blurs away */
.nav-toggle.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-12px) scaleX(0);
}

/* Bottom bar elastic rotation */
.nav-toggle.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}