/* ============================================================
   AO WEB SOLUTIONS — MAIN STYLESHEET
   Refined, professional — Squarespace-level polish
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Jost:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ============ VARIABLES ============ */
:root {
  --ink: #f2f2f2;
  --ink2: rgba(255,255,255,0.78);
  --ink3: rgba(255,255,255,0.55);
  --ink4: rgba(255,255,255,0.35);
  --paper: #0f0f12;
  --paper2: #141419;
  --paper3: #1b1b22;
  --dark: #0b0b0e;
  --dark2: #111118;
  --accent: #c8440a;
  --accent-hover: #a8360a;
  --accent-light: rgba(200,68,10,0.10);
  --gold: #b8943f;
  --max: 1280px;
  --mono: 'DM Mono', monospace;
  --serif: 'Playfair Display', serif;
  --sans: 'Jost', sans-serif;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.16);
  --shadow-sm: 0 1px 6px rgba(0,0,0,0.35);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 90px rgba(0,0,0,0.45);
}

/* ============ UTILITIES ============ */
.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.section { padding: 120px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============ SCROLL PROGRESS ============ */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* ============ NAV ============ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,249,247,0);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, backdrop-filter .4s;
}
nav.scrolled {
  background: rgba(15,15,18,0.88);
border-bottom-color: var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 19px; font-weight: 600;
  letter-spacing: -.01em; color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; flex: 0 0 36px;
}
.nav-links { display: flex; align-items: center; font-size: 13px; font-weight: 400; color: var(--ink3); letter-spacing: .03em; }
.nav-links a { padding: 8px 18px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn:hover { background: #fff; color: #111; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; color: var(--ink3); border-color: var(--border2); }
.btn.ghost:hover { background: var(--paper3); color: var(--ink); border-color: var(--ink); }
.btn.big { padding: 16px 36px; font-size: 13px; }
.btn.full { width: 100%; }
.btn.light { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); }
.btn.light:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff; }

/* ============ MOBILE NAV ============ */
/* Hamburger — black */
.hamburger { display: none; width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,0.12); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; background: #000; border-radius: 8px; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: all .2s; }

/* ===== MOBILE SHEET / DRAWER ===== */
.sheet {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  background: rgba(0,0,0,0.6);
}
.sheet.open { opacity: 1; pointer-events: auto; }

.sheet-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #17171f;
  border-left: 1px solid rgba(200,68,10,0.25);
  box-shadow: -16px 0 60px rgba(0,0,0,0.8);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.16,.84,.44,1);
}
.sheet.open .sheet-panel { transform: translateX(0); }

/* Header — pinned to top */
.sheet-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: #17171f;
  z-index: 2;
}
.sheet-brand {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.sheet-close {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.sheet-close:hover, .sheet-close:active {
  background: rgba(200,68,10,0.2);
  border-color: #c8440a;
  color: #c8440a;
}

/* Accent bar */
.sheet-accent-bar {
  position: absolute;
  top: 60px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c8440a 0%, transparent 100%);
  opacity: 0.65;
  z-index: 2;
}

/* Nav links — scrollable middle */
.sheet-links {
  position: absolute;
  top: 62px; bottom: 76px;
  left: 0; right: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet-links a {
  display: block;
  padding: 15px 20px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s, background .2s, padding-left .18s;
}
.sheet-links a:hover, .sheet-links a:active {
  color: #fff;
  background: rgba(200,68,10,0.08);
  padding-left: 28px;
}
.sheet-links a:last-child { border-bottom: none; }

/* Footer CTA — pinned to bottom */
.sheet-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 76px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #17171f;
}
.sheet-footer .btn {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

/* When the mobile menu is open, prevent background scrolling */
html.no-scroll, body.no-scroll { overflow: hidden; }

/* ============ CART ICON ============ */
.cart-btn { position: relative; width: 40px; height: 40px; border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; cursor: pointer; background: transparent; color: var(--ink); transition: all .2s; }
.cart-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.cart-count { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; font-size: 9px; color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--mono); opacity: 0; transition: opacity .2s; }
.cart-count.has-items { opacity: 1; }

/* ============ ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(0,.8,.2,1), transform .9s cubic-bezier(0,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-36px); transition: opacity .9s cubic-bezier(0,.8,.2,1), transform .9s cubic-bezier(0,.8,.2,1); }
.reveal-left.in { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(36px); transition: opacity .9s cubic-bezier(0,.8,.2,1), transform .9s cubic-bezier(0,.8,.2,1); }
.reveal-right.in { opacity: 1; transform: none; }
@keyframes forceShow { to { opacity: 1; transform: none; } }
.hero .reveal, .hero .reveal-left, .hero .reveal-right { animation: forceShow 0s 1.5s both; }
.d1 { transition-delay: .12s } .d2 { transition-delay: .24s } .d3 { transition-delay: .36s }
.d4 { transition-delay: .48s } .d5 { transition-delay: .60s } .d6 { transition-delay: .72s }

/* ============ HERO ============ */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 72px; background: var(--dark); color: #fff; position: relative; overflow: hidden; text-align: center; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% 35%, rgba(200,68,10,0.15) 0%, transparent 65%); }
.hero-bg-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px); background-size: 100px 100px; }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 24px; max-width: 1100px; width: 100%; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 36px; }
.hero-eyebrow::before, .hero-eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--accent); opacity: .8; }
.hero h1 { font-family: var(--serif); font-size: clamp(52px, 8.5vw, 116px); line-height: 1.0; font-weight: 600; letter-spacing: -.03em; color: #fff; }
.hero h1 em { font-style: italic; color: #dfc070; }
.hero-sub { margin-top: 32px; font-size: 17px; line-height: 1.8; color: rgba(255,255,255,0.4); max-width: 48ch; font-weight: 300; letter-spacing: .01em; }
.hero-actions { margin-top: 48px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,0.2); font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; z-index: 2; animation: fadeUp 1s .8s both; }
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%,100%{opacity:0;transform:scaleY(0);transform-origin:top;} 50%{opacity:1;transform:scaleY(1);transform-origin:top;} }
@keyframes fadeUp { from{opacity:0;transform:translate(-50%,10px);}to{opacity:1;transform:translate(-50%,0);} }

/* ============ PROJECTS STRIP ============ */
.hero-projects { display: flex; gap: 2px; width: 100%; max-width: 1100px; position: relative; z-index: 2; margin-top: 80px; }
.hero-proj { flex: 1; height: 240px; position: relative; overflow: hidden; }
.hero-proj a { display: block; width: 100%; height: 100%; }
.hero-proj-bg { width: 100%; height: 100%; transition: transform .8s cubic-bezier(0,.8,.2,1); }
.hero-proj:hover .hero-proj-bg { transform: scale(1.06); }
.hero-proj-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.9) 0%, rgba(17,17,17,.3) 50%, transparent 100%); }
.hero-proj-info { position: absolute; bottom: 24px; left: 24px; right: 24px; display: flex; align-items: flex-end; justify-content: space-between; }
.hero-proj-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: #fff; }
.hero-proj-type { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 5px; }
.hero-proj-arrow { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px; flex: 0 0 auto; transition: background .2s; }
.hero-proj:hover .hero-proj-arrow { background: var(--accent); border-color: var(--accent); }
.hp-hustlers { background: linear-gradient(135deg, #1a0a05, #3d1508, #7a2a10); }
.hp-move { background: linear-gradient(135deg, #0a1a12, #1a3a2e, #2d6b50); }
.hp-new { background: linear-gradient(135deg, #141420, #1e1e3a, #2a2a50); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }

/* ============ MARQUEE ============ */
.marquee { background: var(--accent); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: ticker 36s linear infinite; color: rgba(255,255,255,0.85); font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.marquee-track span { white-space: nowrap; padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.2); }
@keyframes ticker { from{transform:translateX(0);}to{transform:translateX(-50%);} }

/* ============ SECTION BASE ============ */
.label-tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.label-tag::after { content: ""; flex: 1; min-width: 28px; height: 1px; background: var(--accent); opacity: .4; }
.section-title { font-family: var(--serif); font-size: clamp(36px, 4.5vw, 60px); font-weight: 600; letter-spacing: -.02em; line-height: 1.06; color: var(--ink); }
.section-sub { margin-top: 20px; font-size: 16px; line-height: 1.85; color: var(--ink3); font-weight: 300; max-width: 54ch; }
hr.section-rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ============ CAPABILITIES ============ */
.capabilities-section { background: var(--paper); }
.capabilities-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.capabilities-left { position: sticky; top: 100px; padding: 100px 80px 100px 0; }
.capabilities-right { padding: 100px 0 100px 80px; border-left: 1px solid var(--border); }
.cap-item { padding: 44px 0; border-bottom: 1px solid var(--border); opacity: .2; transform: translateX(12px); transition: opacity .5s, transform .5s; }
.cap-item.active { opacity: 1; transform: none; }
.cap-item:first-child { padding-top: 0; }
.cap-item:last-child { border-bottom: none; }
.cap-num { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.cap-item h3 { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); margin-bottom: 14px; }
.cap-item p { font-size: 14.5px; line-height: 1.85; color: var(--ink3); font-weight: 300; max-width: 46ch; margin-bottom: 20px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.cap-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border: 1px solid var(--border2); color: var(--ink4); }

/* ============ STATS BAND ============ */
.stats-band { background: var(--dark); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { padding: 52px 40px; border-right: 1px solid rgba(255,255,255,0.06); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: var(--serif); font-size: 54px; font-weight: 600; color: #fff; line-height: 1; letter-spacing: -.04em; }
.stat-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-top: 10px; }

/* ============ WHY SECTION ============ */
.why-section { background: var(--paper2); }
.why-tabs { display: flex; border: 1px solid var(--border); margin-top: 56px; overflow-x: auto; scrollbar-width: none; }
.why-tabs::-webkit-scrollbar { display: none; }
.why-tab { flex: 1; min-width: max-content; padding: 16px 20px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); border-right: 1px solid var(--border); cursor: pointer; transition: color .25s, background .25s; background: none; border-top: none; border-bottom: none; border-left: none; position: relative; white-space: nowrap; text-align: center; }
.why-tab:last-child { border-right: none; }
.why-tab::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s; }
.why-tab.active { color: var(--ink); background: rgba(255,255,255,0.03); }
.why-tab.active::after { transform: scaleX(1); }
.why-tab:hover:not(.active) { color: var(--ink2); }
.why-stage { border: 1px solid var(--border); border-top: none; display: grid; grid-template-columns: 1fr 1.4fr; min-height: 440px; }
.why-info { padding: 52px 48px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.why-info-num { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.why-info h3 { font-family: var(--serif); font-size: clamp(24px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 16px; color: var(--ink); }
.why-info p { font-size: 14.5px; line-height: 1.8; color: var(--ink3); font-weight: 300; max-width: 38ch; }
.why-bullets { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.why-bullet { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink3); }
.why-bullet::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: 0 0 auto; }
.why-canvas { position: relative; overflow: hidden; background: var(--paper2); }
.why-panel { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.why-panel.active { opacity: 1; pointer-events: auto; }

/* Perf panel */
.perf-demo { width: 100%; height: 100%; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 52px; padding: 48px; flex-wrap: wrap; }
.perf-ring { position: relative; width: 150px; height: 150px; }
.perf-ring svg { transform: rotate(-90deg); }
.perf-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.perf-ring-num .big { font-family: var(--serif); font-size: 44px; font-weight: 600; color: var(--ink); line-height: 1; }
.perf-ring-num .lbl { font-family: var(--mono); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }
.perf-bars { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 14px; }
.perf-bar-row { display: flex; flex-direction: column; gap: 6px; }
.perf-bar-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--ink3); }
.perf-bar-track { height: 3px; background: var(--paper3); overflow: hidden; }
.perf-bar-fill { height: 100%; width: 0%; transition: width 1.4s cubic-bezier(0,.8,.2,1); }
.why-panel.active .perf-bar-fill { width: var(--w); }

/* Timeline panel */
.speed-demo { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 48px; }
.speed-timeline { display: flex; flex-direction: column; }
.speed-step { display: flex; gap: 20px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); opacity: 0; transform: translateX(20px); transition: opacity .5s, transform .5s; }
.speed-step:last-child { border-bottom: none; }
.why-panel.active .speed-step:nth-child(1){opacity:1;transform:none;transition-delay:.1s;}
.why-panel.active .speed-step:nth-child(2){opacity:1;transform:none;transition-delay:.25s;}
.why-panel.active .speed-step:nth-child(3){opacity:1;transform:none;transition-delay:.4s;}
.why-panel.active .speed-step:nth-child(4){opacity:1;transform:none;transition-delay:.55s;}
.why-panel.active .speed-step:nth-child(5){opacity:1;transform:none;transition-delay:.7s;}
.speed-day { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--accent); min-width: 56px; padding-top: 3px; flex: 0 0 auto; }
.speed-dot { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 4px; }
.speed-dot-inner { width: 10px; height: 10px; border: 1.5px solid var(--border2); }
.speed-step.done .speed-dot-inner { background: var(--accent); border-color: var(--accent); }
.speed-title { font-size: 13px; font-weight: 500; color: var(--ink); }
.speed-sub { font-size: 12px; color: var(--ink3); font-weight: 300; margin-top: 2px; }

/* Local panel */
.local-demo { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 48px; }
.local-ping { position: relative; width: 80px; height: 80px; }
.local-ping-dot { width: 12px; height: 12px; background: var(--accent); position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.local-ping-ring { position: absolute; inset: 0; border: 1.5px solid rgba(200,68,10,0.25); border-radius: 50%; animation: pingRing 2s ease-out infinite; }
.local-ping-ring:nth-child(2){animation-delay:.6s;} .local-ping-ring:nth-child(3){animation-delay:1.2s;}
@keyframes pingRing { 0%{transform:scale(0.4);opacity:.9;} 100%{transform:scale(1.9);opacity:0;} }
.local-text { text-align: center; }
.local-text h4 { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.local-text p { font-size: 13px; color: var(--ink3); font-weight: 300; }
.local-flags { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.local-flag { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--border2); color: var(--ink3); }

/* Custom compare panel */
.custom-demo { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 40px; gap: 16px; justify-content: center; }
.custom-label { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink3); }
.custom-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; max-height: 280px; }
.custom-side { border: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.custom-side-label { padding: 10px 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--border); flex: 0 0 auto; }
.custom-side.bad .custom-side-label { color: rgba(200,50,50,0.7); }
.custom-side.good .custom-side-label { color: rgba(50,150,90,0.8); }
.custom-side.good { border-color: rgba(50,150,90,0.2); }
.custom-mockup { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px; position: relative; background: var(--paper); }
.tmpl-bar { height: 7px; background: var(--paper3); }
.tmpl-bar.accent { background: rgba(200,68,10,0.15); }
.tmpl-bar.wide { width: 100%; } .tmpl-bar.mid { width: 70%; } .tmpl-bar.short { width: 40%; }
.tmpl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; margin-top: 6px; }
.tmpl-card { height: 28px; background: var(--paper2); border: 1px solid var(--border); }
.tmpl-watermark { position: absolute; bottom: 8px; right: 8px; font-family: var(--mono); font-size: 8px; color: var(--ink4); }

/* Ownership panel */
.own-demo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 36px; }
.own-diagram { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.own-node { border: 1px solid var(--border2); padding: 14px 24px; text-align: center; width: 100%; max-width: 260px; background: var(--paper); opacity: 0; transform: scale(.92); transition: opacity .5s, transform .5s; }
.why-panel.active .own-node:nth-child(1){opacity:1;transform:none;transition-delay:.1s;}
.why-panel.active .own-node:nth-child(3){opacity:1;transform:none;transition-delay:.3s;}
.why-panel.active .own-arrow-wrap{opacity:1;transition-delay:.2s;}
.own-node.highlight { border-color: var(--accent); background: var(--accent-light); }
.own-node-title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.own-node-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-top: 4px; }
.own-arrow-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; transition: opacity .4s; }
.own-arrow { height: 20px; width: 1px; background: var(--border2); }
.own-arrow-label { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.own-items { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 300px; }
.own-item { padding: 7px 12px; border: 1px solid var(--border); font-size: 11px; color: var(--ink3); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.why-panel.active .own-item:nth-child(1){opacity:1;transform:none;transition-delay:.5s;}
.why-panel.active .own-item:nth-child(2){opacity:1;transform:none;transition-delay:.6s;}
.why-panel.active .own-item:nth-child(3){opacity:1;transform:none;transition-delay:.7s;}
.why-panel.active .own-item:nth-child(4){opacity:1;transform:none;transition-delay:.8s;}
.own-compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 440px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.why-panel.active .own-compare-row{opacity:1;transform:none;transition-delay:.9s;}
.own-compare-block { padding: 14px 16px; border: 1px solid var(--border); background: var(--paper); }
.own-compare-block.bad { border-color: rgba(200,50,50,0.15); }
.own-compare-block.good { border-color: rgba(50,150,90,0.2); }
.own-compare-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.own-compare-block.bad .own-compare-label { color: rgba(200,50,50,0.7); }
.own-compare-block.good .own-compare-label { color: rgba(50,150,90,0.8); }
.own-compare-lines { display: flex; flex-direction: column; gap: 6px; }
.own-compare-line { font-size: 11px; color: var(--ink3); font-weight: 300; line-height: 1.4; }

/* Design effects panel */
.design-demo { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--border); }
.design-tile { background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; position: relative; overflow: hidden; transition: background .3s; }
.design-tile:hover { background: var(--paper2); }
.design-tile-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink4); transition: color .3s; }
.design-tile:hover .design-tile-label { color: var(--ink3); }
.dt-grad::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(200,68,10,0.06), rgba(184,148,63,0.04)); opacity: 0; transition: opacity .4s; }
.dt-grad:hover::before { opacity: 1; }
.dt-slide .dt-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; }
.dt-reveal-text { font-family: var(--serif); font-size: 13px; color: var(--accent); transform: translateY(20px); opacity: 0; transition: transform .4s, opacity .4s; }
.dt-slide:hover .dt-reveal-text { transform: none; opacity: 1; }
.dt-glow { border: 1px solid transparent; transition: border-color .4s, box-shadow .4s; }
.dt-glow:hover { border-color: rgba(200,68,10,0.25); box-shadow: 0 0 20px rgba(200,68,10,0.04) inset; }
.dt-mag .dot { width: 8px; height: 8px; background: var(--accent); position: absolute; top: 50%; left: 50%; transition: transform .2s; }

/* ============ PROCESS SECTION ============ */
.process-section { background: var(--paper2); }
.process-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 72px; flex-wrap: wrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); }
.step { padding: 44px 32px; border-right: 1px solid var(--border); position: relative; overflow: hidden; transition: background .3s; background: var(--paper); }
.step::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.step:hover::after { transform: scaleX(1); }
.step:last-child { border-right: none; }
.step:hover { background: var(--paper2); }
.step-num { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--accent); margin-bottom: 28px; text-transform: uppercase; }
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; color: var(--ink); }
.step p { font-size: 13.5px; line-height: 1.8; color: var(--ink3); font-weight: 300; }

/* ============ WORK SECTION ============ */
.work-section { background: var(--paper); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-top: 60px; }
.work-card { position: relative; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; }
.work-card a { display: block; width: 100%; height: 100%; }
.work-card-bg { width: 100%; height: 100%; transition: transform .7s cubic-bezier(0,.8,.2,1); }
.work-card:hover .work-card-bg { transform: scale(1.05); }
.wc-hustlers .work-card-bg { background: linear-gradient(135deg, #1a0a05, #5c1e08, #8a3010); }
.wc-move .work-card-bg { background: linear-gradient(135deg, #071210, #1a3a2e, #2d6b50); }
.work-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,17,17,.88) 0%, rgba(17,17,17,.15) 50%, transparent 100%); }
.work-card-body { position: absolute; inset: 0; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.work-card-tag { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.work-card-name { font-family: var(--serif); font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.work-card-url { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.3); font-family: var(--mono); }
.work-card-btn { position: absolute; top: 28px; right: 28px; width: 44px; height: 44px; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; transition: transform .25s; }
.work-card:hover .work-card-btn { transform: translate(3px,-3px); }
.work-coming { aspect-ratio: 16/10; background: var(--paper2); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; border: 1px dashed var(--border2); }
.work-coming-text { font-family: var(--serif); font-size: 22px; color: var(--ink3); opacity: .5; }
.work-coming-sub { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink4); }

/* ============ PRICING ============ */
.pricing-section { background: var(--paper2); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 64px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.price-card { padding: 48px 36px 44px; border-right: 1px solid var(--border); background: var(--paper); position: relative; transition: background .3s; }
.price-card:last-child { border-right: none; }
.price-card:hover { background: var(--paper2); }
.price-card.featured { background: var(--dark); border-top: 2px solid var(--accent); }
.price-card.featured:hover { background: var(--dark2); }
.price-card.featured .price-badge { color: rgba(255,255,255,0.35); }
.price-card.featured h3 { color: #fff; }
.price-card.featured .price-amount { color: #fff; }
.price-card.featured .price-desc { color: rgba(255,255,255,0.4); }
.price-card.featured .price-features li { color: rgba(255,255,255,0.6); }
.price-card.featured .price-divider { background: rgba(255,255,255,0.07); }
.price-card.featured .price-badge { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; display: block; }
.price-card h3 { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); margin-bottom: 8px; }
.price-amount { font-family: var(--serif); font-size: 56px; font-weight: 600; letter-spacing: -.04em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.price-amount sup { font-size: .42em; vertical-align: super; }
.price-desc { font-size: 13.5px; color: var(--ink3); margin-bottom: 32px; font-weight: 300; line-height: 1.65; }
.price-divider { height: 1px; background: var(--border); margin-bottom: 28px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 36px; }
.price-features li { font-size: 13.5px; color: var(--ink2); display: flex; align-items: flex-start; gap: 10px; font-weight: 300; line-height: 1.5; }
.price-features li::before { content: "→"; color: var(--accent); font-size: 12px; flex: 0 0 auto; margin-top: 1px; }
.price-cta { width: 100%; }
/* ============ FAQ ============ */
.faq-section { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 100px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
details { border-bottom: 1px solid var(--border); overflow: hidden; }
details summary { padding: 22px 0; cursor: pointer; font-size: 15.5px; color: var(--ink2); font-weight: 400; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; transition: color .2s; }
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--ink); }
details[open] summary { color: var(--ink); }
.chev { width: 28px; height: 28px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; transition: transform .3s; color: var(--ink3); }
.chev svg { width: 14px; height: 14px; }
details[open] .chev { transform: rotate(180deg); }
details p { padding: 0 0 22px; font-size: 14px; line-height: 1.8; color: var(--ink3); font-weight: 300; }

/* ============ CTA BAND ============ */
.cta-band { background: var(--dark); padding: 120px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(200,68,10,0.12) 0%, transparent 70%); pointer-events: none; }
.cta-band .section-title { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,0.4); max-width: 44ch; margin: 24px auto 0; font-size: 16px; font-weight: 300; line-height: 1.8; }
.btn-row { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 40px; flex-wrap: wrap; }

/* ============ CONTACT ============ */
.contact-section { background: var(--paper2); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 100px; margin-top: 64px; align-items: start; }
.contact-info h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 18px; color: var(--ink); }
.contact-info > p { font-size: 15px; line-height: 1.8; color: var(--ink3); font-weight: 300; }
.contact-points { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.contact-point { display: flex; align-items: flex-start; gap: 18px; }
.cp-icon { width: 40px; height: 40px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; color: var(--ink3); flex: 0 0 auto; }
.cp-label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink4); }
.cp-val { font-size: 15px; color: var(--ink2); margin-top: 5px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.field input, .field select, .field textarea { background: var(--paper); border: 1px solid var(--border2); color: var(--ink); padding: 13px 16px; font-family: var(--sans); font-size: 14px; font-weight: 300; outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(26,26,26,0.04); }
.field select { cursor: pointer; }
.field select option { background: var(--paper); }
.submit-btn { padding: 16px 36px; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--accent); border: 1.5px solid var(--accent); color: #fff; cursor: pointer; transition: background .25s; align-self: flex-start; }
.submit-btn:hover { background: var(--accent-hover); }
.form-note { font-size: 11px; color: var(--ink4); font-family: var(--mono); letter-spacing: .08em; }

/* ============ FOOTER ============ */
footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.04); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 64px; padding: 72px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer-brand-name { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.footer-brand > p { font-size: 13px; color: rgba(255,255,255,0.25); line-height: 1.75; font-weight: 300; max-width: 28ch; }
.footer-col h5 { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 24px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 12px; transition: color .2s; font-weight: 300; }
.footer-col a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom { padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; color: rgba(255,255,255,0.2); flex-wrap: wrap; font-family: var(--mono); letter-spacing: .04em; }
.footer-bottom a { color: inherit; transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,0.5); }

/* ============ SUCCESS STATE ============ */
.form-success { background: rgba(50,150,90,0.06); border: 1px solid rgba(50,150,90,0.2); padding: 32px; text-align: center; }
.form-success-check { font-size: 36px; margin-bottom: 14px; }
.form-success h4 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.form-success p { font-size: 14px; color: var(--ink3); font-weight: 300; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .capabilities-inner { grid-template-columns: 1fr; }
  .capabilities-left { position: relative; top: 0; padding: 80px 0 32px; }
  .capabilities-right { padding: 0 0 80px; border-left: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { border-right: none; border-bottom: 1px solid var(--border); }
  .price-card:last-child { border-bottom: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .why-stage { grid-template-columns: 1fr; }
  .why-info { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 28px; }
  .why-canvas { min-height: 360px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn.ghost { display: none; }
  .hamburger { display: flex; }
  .container { width: calc(100% - 40px); }
  .hero-projects { flex-direction: column; }
  .hero-proj { height: 180px; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section { padding: 80px 0; }
}

/* Fix: keep project arrow from stretching */
.hero-proj-info{gap:16px;}
.hero-proj-arrow{display:inline-flex;flex:0 0 44px;min-width:44px;width:44px;height:44px;padding:0;line-height:1;border-radius:12px;}
.hero-proj-arrow:hover{filter:brightness(1.05);}

/* ===== Mobile Header Tightening Fix ===== */
@media (max-width: 480px) {

  .nav-inner {
    height: 64px;
    padding: 0 12px;
  }

  .brand {
    font-size: 16px;
    gap: 8px;
    line-height: 1.05;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    font-size: 9px;
  }

  .nav-cta {
    gap: 6px;
  }

  .nav-cta .btn.primary {
    padding: 8px 12px;
    font-size: 10px;
    letter-spacing: .08em;
  }
}
