:root{
  --bg:#FFFFFF;
  --surface:#FAFAF8;
  --surface-2:#F1F1EE;
  --line:#E4E4E0;
  --text:#14181C;
  --text-muted:#5B6472;
  --text-dim:#9298A2;
  --amber:#3F5D52;
  --amber-soft:rgba(63,93,82,0.10);
  --amber-hover:#324A41;
  --teal:#3F5D52;
  --teal-soft:rgba(63,93,82,0.10);
  --font-display:'Space Grotesk', sans-serif;
  --font-body:'Inter', sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}

*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important;}
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none;}
::selection{background:var(--amber); color:#fff;}
:focus-visible{outline:2px solid var(--teal); outline-offset:3px;}

.wrap{max-width:1120px; margin:0 auto; padding:0 32px;}

.bg-grid{
  position:fixed; inset:0; z-index:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  opacity:0.35;
  pointer-events:none;
  mask-image:linear-gradient(to bottom, black, transparent 700px);
}

/* ===== NAV ===== */
header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:100;
  padding:18px 0;
  transition:padding 0.35s ease;
}
header .nav-shell{
  max-width:1120px;
  margin:0 auto;
  padding:0 32px;
}
nav.wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:56px;
  padding:0 24px;
  border-radius:100px;
  border:1px solid transparent;
  transition:all 0.35s ease;
}
/* Glassmorphic floating state on scroll */
header.scrolled{padding:12px 0;}
header.scrolled nav.wrap{
  background:rgba(255,255,255,0.65);
  backdrop-filter:blur(16px) saturate(160%);
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  border:1px solid rgba(20,24,28,0.08);
  box-shadow:0 8px 32px rgba(20,24,28,0.08);
}

.logo{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.1rem;
  letter-spacing:-0.02em;
  display:flex;
  align-items:center;
  gap:8px;
}
.logo-dot{
  width:8px; height:8px;
  border-radius:50%;
  background:var(--amber);
  box-shadow:0 0 10px rgba(232,103,43,0.6);
  animation:pulse 2.4s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{opacity:1; transform:scale(1);}
  50%{opacity:0.5; transform:scale(0.8);}
}
.nav-links{
  display:flex;
  gap:30px;
  font-size:0.88rem;
  font-weight:500;
  color:var(--text-muted);
}
.nav-links a{transition:color 0.2s; position:relative;}
.nav-links a:hover{color:var(--text);}
.nav-links a.active{color:var(--text);}
.nav-links a.active::after{
  content:'';
  position:absolute;
  bottom:-6px; left:0;
  width:100%; height:2px;
  background:var(--amber);
  border-radius:2px;
}
.nav-cta{
  font-family:var(--font-mono);
  font-size:0.78rem;
  padding:9px 18px;
  background:var(--text);
  color:#fff;
  border-radius:100px;
  transition:all 0.2s;
}
.nav-cta:hover{background:var(--amber);}

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

/* ===== HERO ===== */
.hero{
  position:relative;
  z-index:1;
  padding:170px 0 90px;
  min-height:92vh;
  display:flex;
  align-items:center;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:60px;
  align-items:center;
  width:100%;
}
.eyebrow{
  font-family:var(--font-mono);
  font-size:0.78rem;
  color:var(--teal);
  text-transform:uppercase;
  letter-spacing:0.12em;
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:22px;
}
.eyebrow::before{content:''; width:24px; height:1px; background:var(--teal);}

h1{
  font-family:var(--font-display);
  font-size:clamp(2.3rem, 4.6vw, 3.8rem);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-0.03em;
  margin-bottom:22px;
}
.rotate-wrap{
  display:inline-block;
  position:relative;
  color:var(--amber);
  min-width:1ch;
}
.rotate-word{
  display:inline-block;
  transition:opacity 0.35s ease, transform 0.35s ease;
}
.rotate-word.out{opacity:0; transform:translateY(8px);}

.hero-sub{
  font-size:1.08rem;
  color:var(--text-muted);
  max-width:480px;
  margin-bottom:34px;
}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}

.btn{
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.94rem;
  padding:14px 26px;
  border-radius:100px;
  transition:all 0.2s;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn-primary{background:var(--amber); color:#fff;}
.btn-primary:hover{background:var(--amber-hover); transform:translateY(-1px);}
.btn-dark{background:var(--text); color:#fff;}
.btn-dark:hover{background:#000; transform:translateY(-1px);}
.btn-ghost{border:1px solid var(--line); color:var(--text); background:var(--bg);}
.btn-ghost:hover{border-color:var(--text-dim); background:var(--surface);}

/* Hero diagram */
.flow-diagram{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:32px 24px;
  position:relative;
  min-height:340px;
  box-shadow:0 20px 60px rgba(20,24,28,0.06);
}
.flow-diagram-label{
  font-family:var(--font-mono);
  font-size:0.68rem;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:18px;
}
.flow-node{
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:8px;
  padding:14px 16px;
  font-family:var(--font-mono);
  font-size:0.8rem;
  display:flex;
  align-items:center;
  gap:10px;
  transition:border-color 0.3s, box-shadow 0.3s;
}
.flow-node .tag{
  font-size:0.62rem;
  padding:2px 7px;
  border-radius:3px;
  text-transform:uppercase;
  letter-spacing:0.05em;
  font-weight:600;
}
.flow-node.trigger .tag{background:var(--teal-soft); color:var(--teal);}
.flow-node.condition .tag{background:var(--amber-soft); color:var(--amber);}
.flow-node.action .tag{background:var(--surface-2); color:var(--text-muted);}
.flow-node.active{border-color:var(--amber); box-shadow:0 0 0 1px var(--amber), 0 8px 20px rgba(232,103,43,0.12);}
.flow-connector{width:2px; height:26px; margin-left:24px; background:var(--line); position:relative; overflow:hidden;}
.flow-connector::after{
  content:'';
  position:absolute; top:-100%; left:0; width:100%; height:100%;
  background:linear-gradient(var(--teal), transparent);
  animation:flowDown 2.4s linear infinite;
}
@keyframes flowDown{ to{ top:100%; } }

/* ===== PAGE HERO (for inner pages) ===== */
.page-hero{
  padding:140px 0 20px;
  position:relative; z-index:1;
}
.page-hero + section{padding-top:20px;}
.page-hero .eyebrow{margin-bottom:16px;}
.page-hero h1{font-size:clamp(2rem, 4vw, 3rem); max-width:700px;}
.page-hero p{color:var(--text-muted); max-width:560px; font-size:1.05rem; margin-top:16px;}

/* ===== SECTIONS ===== */
section{position:relative; z-index:1; padding:80px 0;}
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:40px; gap:24px; flex-wrap:wrap;
  border-bottom:1px solid var(--line); padding-bottom:20px;
}
.section-label{
  font-family:var(--font-mono); font-size:0.74rem; color:var(--teal);
  text-transform:uppercase; letter-spacing:0.1em;
}
h2{
  font-family:var(--font-display);
  font-size:clamp(1.6rem, 3vw, 2.15rem);
  font-weight:600; letter-spacing:-0.02em;
}
.section-note{font-family:var(--font-mono); font-size:0.78rem; color:var(--text-dim);}

/* About */
.about-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
.about-text p{color:var(--text-muted); margin-bottom:18px; font-size:1.02rem;}
.about-text strong{color:var(--text); font-weight:600;}
.stat-list{
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:10px; overflow:hidden;
}
.stat{background:var(--bg); padding:24px;}
.stat-num{font-family:var(--font-display); font-size:2rem; font-weight:700; color:var(--amber); display:block;}
.stat-label{font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted); margin-top:6px; display:block;}

/* Timeline (about page) */
.timeline{display:flex; flex-direction:column; gap:0;}
.timeline-item{
  display:grid; grid-template-columns:120px 1fr; gap:24px;
  padding:26px 0; border-top:1px solid var(--line);
}
.timeline-item:last-child{border-bottom:1px solid var(--line);}
.timeline-year{font-family:var(--font-mono); font-size:0.85rem; color:var(--text-dim);}
.timeline-item h3{font-family:var(--font-display); font-size:1.05rem; margin-bottom:6px;}
.timeline-item p{color:var(--text-muted); font-size:0.92rem;}

/* Services */
.service-list{
  display:grid; grid-template-columns:repeat(3, 1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden;
}
.service-card{background:var(--bg); padding:32px 28px; transition:background 0.25s;}
.service-card:hover{background:var(--surface);}
.service-icon{
  width:36px; height:36px; border-radius:8px; background:var(--amber-soft);
  display:flex; align-items:center; justify-content:center; color:var(--amber);
  margin-bottom:20px; font-family:var(--font-mono); font-size:0.9rem;
}
.service-card h3{font-family:var(--font-display); font-size:1.08rem; font-weight:600; margin-bottom:10px;}
.service-card p{color:var(--text-muted); font-size:0.92rem;}
.service-card .price-tag{
  margin-top:16px; font-family:var(--font-mono); font-size:0.75rem; color:var(--teal);
}

@media (max-width:900px){ .service-list{grid-template-columns:1fr;} }

/* Work */
.work-list{display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden;}
.work-item{
  background:var(--bg); padding:32px; display:grid;
  grid-template-columns:1.3fr 1fr 0.7fr; gap:24px; align-items:center; transition:background 0.2s;
}
.work-item:hover{background:var(--surface);}
.work-item h3{font-family:var(--font-display); font-size:1.12rem; font-weight:600; margin-bottom:6px;}
.work-item .work-desc{color:var(--text-muted); font-size:0.9rem;}
.work-metrics{display:flex; gap:20px;}
.work-metric{font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted);}
.work-metric .n{color:var(--teal); font-weight:600; display:block; font-size:1.1rem;}
.work-tags{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end;}
.work-tag{font-family:var(--font-mono); font-size:0.66rem; padding:4px 9px; border:1px solid var(--line); border-radius:100px; color:var(--text-dim);}

@media (max-width:820px){
  .work-item{grid-template-columns:1fr; text-align:left;}
  .work-tags{justify-content:flex-start;}
}

/* Process */
.process-list{display:grid; grid-template-columns:repeat(4,1fr); gap:24px;}
.process-step{padding-top:20px; border-top:2px solid var(--line); position:relative;}
.process-step.active-step{border-top-color:var(--amber);}
.process-phase{font-family:var(--font-mono); font-size:0.68rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:0.08em; margin-bottom:10px;}
.process-step h3{font-family:var(--font-display); font-size:1.02rem; margin-bottom:8px;}
.process-step p{color:var(--text-muted); font-size:0.88rem;}

@media (max-width:820px){ .process-list{grid-template-columns:1fr 1fr;} }
@media (max-width:520px){ .process-list{grid-template-columns:1fr;} }

/* Reviews */
.review-list{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden;}
.review-card{background:var(--bg); padding:30px; display:flex; flex-direction:column; gap:18px;}
.review-stars{color:var(--amber); font-size:0.85rem; letter-spacing:2px;}
.review-quote{color:var(--text); font-size:0.95rem; line-height:1.65;}
.review-who{display:flex; align-items:center; gap:12px; margin-top:auto;}
.review-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--surface-2);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:0.85rem; color:var(--text-muted);
}
.review-name{font-size:0.85rem; font-weight:600;}
.review-role{font-size:0.78rem; color:var(--text-dim);}

@media (max-width:900px){ .review-list{grid-template-columns:1fr;} }

/* Contact */
.contact-panel{
  background:var(--surface); border:1px solid var(--line); border-radius:18px;
  padding:64px; text-align:center; position:relative; overflow:hidden;
}
.contact-panel::before{
  content:''; position:absolute; top:-50%; left:50%; width:600px; height:600px;
  background:radial-gradient(circle, rgba(232,103,43,0.10), transparent 70%);
  transform:translateX(-50%); pointer-events:none;
}
.contact-panel h2{margin-bottom:16px; position:relative;}
.contact-panel p{color:var(--text-muted); max-width:460px; margin:0 auto 32px; position:relative;}
.contact-email{font-family:var(--font-mono); font-size:1.1rem; color:var(--amber); position:relative;}

/* Contact page grid */
.contact-grid{display:grid; grid-template-columns:1fr 1fr; gap:64px;}
.contact-detail{display:flex; flex-direction:column; gap:24px;}
.contact-detail-item{border-top:1px solid var(--line); padding-top:18px;}
.contact-detail-item .k{font-family:var(--font-mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-dim); margin-bottom:6px;}
.contact-detail-item .v{font-size:1rem; font-weight:500;}
.contact-detail-item .v a:hover{color:var(--amber);}

.form-field{margin-bottom:18px;}
.form-field label{display:block; font-family:var(--font-mono); font-size:0.75rem; color:var(--text-muted); margin-bottom:8px; text-transform:uppercase; letter-spacing:0.06em;}
.form-field input, .form-field textarea{
  width:100%; padding:13px 16px; border:1px solid var(--line); border-radius:8px;
  font-family:var(--font-body); font-size:0.95rem; background:var(--bg); color:var(--text);
  transition:border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus{outline:none; border-color:var(--amber);}
.form-field textarea{resize:vertical; min-height:120px;}
.form-submit{width:100%; justify-content:center; border:none; cursor:pointer; font-size:0.95rem;}

@media (max-width:900px){ .contact-grid{grid-template-columns:1fr;} }

/* Contact page v2 — stacked card layout */
.contact-hero{text-align:center; padding:150px 0 36px;}
.contact-hero h1{color:var(--amber); font-size:clamp(2.1rem, 4.2vw, 3.1rem);}
.contact-hero p{color:var(--text-muted); font-size:1.05rem; max-width:520px; margin:16px auto 0;}

.contact-stack{display:flex; flex-direction:column; gap:20px; max-width:760px; margin:0 auto;}
.c-card{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:32px;}
.c-card-head{display:flex; align-items:center; gap:16px; margin-bottom:18px;}
.c-icon-box{
  width:44px; height:44px; min-width:44px; border-radius:10px;
  background:var(--bg); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--amber);
}
.c-card-head h3{font-family:var(--font-display); font-size:1.1rem; font-weight:700;}
.c-card-head p{color:var(--text-muted); font-size:0.9rem; margin-top:2px;}
.c-card-title{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.1rem; font-weight:700; margin-bottom:24px;}

.btn-outline-block{
  width:100%; justify-content:center; background:var(--bg); border:1.5px solid var(--amber);
  color:var(--text); font-weight:600; border-radius:10px; padding:14px 24px;
}
.btn-outline-block:hover{background:var(--amber-soft);}

.c-form .form-field{margin-bottom:18px;}
.c-form .form-field:last-of-type{margin-bottom:20px;}
.c-form input, .c-form textarea{background:var(--bg);}
.c-form .form-submit{background:var(--amber); border-radius:10px;}
.c-form .form-submit:hover{background:var(--amber-hover);}

.c-email-row{display:flex; align-items:center; gap:16px;}
.c-email-row .v{font-family:var(--font-mono); font-size:0.95rem; color:var(--text);}

.connect-block{text-align:center; margin-top:56px;}
.connect-block h2{font-family:var(--font-display); color:var(--amber); font-size:1.5rem; margin-bottom:22px;}
.connect-icons{display:flex; justify-content:center; gap:14px;}
.connect-icon-btn{
  width:52px; height:52px; border-radius:12px; background:var(--surface); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--amber); transition:all 0.2s;
}
.connect-icon-btn:hover{background:var(--amber); color:#fff; transform:translateY(-2px);}

footer{border-top:1px solid var(--line); padding:32px 0; position:relative; z-index:1;}
.footer-row{
  display:flex; justify-content:space-between; align-items:center;
  font-family:var(--font-mono); font-size:0.76rem; color:var(--text-dim); flex-wrap:wrap; gap:12px;
}
.footer-links{display:flex; gap:20px;}
.footer-links a:hover{color:var(--text-muted);}

.reveal{opacity:0; transform:translateY(16px); transition:opacity 0.6s ease, transform 0.6s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr; gap:40px;}
}

/* Reviews page v2 */
.reviews-hero{text-align:center; padding:150px 0 36px;}
.reviews-hero h1{color:var(--amber); font-size:clamp(2.1rem, 4.2vw, 3.1rem);}
.reviews-hero p{color:var(--text-muted); font-size:1.05rem; max-width:600px; margin:16px auto 0;}

.featured-review{
  display:grid; grid-template-columns:1fr 1.1fr; gap:0;
  background:var(--surface); border:1px solid var(--line); border-radius:18px; overflow:hidden;
  margin-bottom:40px;
}
.featured-media{
  position:relative; min-height:340px;
  background:linear-gradient(135deg, #22322C, #3F5D52 60%, #55786A);
  display:flex; align-items:center; justify-content:center;
}
.featured-media-tags{position:absolute; top:16px; left:16px; display:flex; gap:6px; flex-wrap:wrap; max-width:80%;}
.featured-media-tag{font-family:var(--font-mono); font-size:0.62rem; padding:4px 9px; border-radius:5px; background:rgba(255,255,255,0.15); color:#fff; backdrop-filter:blur(4px);}
.featured-media-label{position:absolute; bottom:16px; left:16px; right:16px; color:#fff;}
.featured-media-label .l1{font-family:var(--font-mono); font-size:0.68rem; opacity:0.75; text-transform:uppercase; letter-spacing:0.08em;}
.featured-media-label .l2{font-family:var(--font-display); font-size:1.4rem; font-weight:700; margin-top:4px;}
.play-btn{
  width:56px; height:56px; border-radius:50%; background:rgba(255,255,255,0.92);
  display:flex; align-items:center; justify-content:center; color:var(--amber);
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}
.featured-content{padding:36px 36px 36px 8px;}
.featured-top{display:flex; align-items:center; gap:14px; margin-bottom:18px; padding-left:28px;}
.featured-quote{color:var(--text); font-size:0.96rem; line-height:1.75; padding-left:28px;}
.featured-quote p{margin-bottom:14px;}
.featured-quote p:last-child{margin-bottom:20px;}

.avatar-badge{
  width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:0.85rem; color:#fff; flex-shrink:0;
  border:2px solid #fff; box-shadow:0 0 0 1px var(--line);
}
.review-who-name{font-family:var(--font-display); font-weight:700; font-size:0.98rem;}
.review-who-co{color:var(--text-dim); font-size:0.82rem; margin-top:1px;}
.stars-row{color:var(--amber); font-size:0.78rem; letter-spacing:2px; margin-top:3px;}

.achievement-pill{
  display:inline-flex; align-items:center; gap:7px; font-family:var(--font-body); font-weight:600; font-size:0.82rem;
  padding:10px 16px; border-radius:9px; background:var(--amber-soft); color:var(--amber); margin-left:28px;
}

.review-grid-2col{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.review-card-2{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:26px;}
.review-card-2 .review-top{display:flex; align-items:center; gap:12px; margin-bottom:14px;}
.review-card-2 .quote{color:var(--text); font-size:0.9rem; line-height:1.65; margin-bottom:16px;}
.review-card-2 .achievement-pill{margin-left:0; font-size:0.76rem; padding:8px 13px;}

@media (max-width:820px){
  .featured-review{grid-template-columns:1fr;}
  .featured-content{padding:28px;}
  .featured-top, .featured-quote{padding-left:0;}
  .achievement-pill{margin-left:0;}
  .review-grid-2col{grid-template-columns:1fr;}
}

/* Featured video */
.featured-media-video{background:#0C0F0D; padding:0;}
.featured-media-video video{width:100%; height:100%; min-height:340px; max-height:460px; object-fit:cover; display:block;}
.featured-media-video .featured-media-tags{z-index:2; pointer-events:none;}

/* Industry logo icons */
.avatar-badge svg{width:22px; height:22px;}

/* About page v2 */
.about2-hero{padding:150px 0 40px;}
.about2-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center;}
.about2-eyebrow{font-family:var(--font-mono); font-size:0.85rem; color:var(--text-muted); margin-bottom:10px;}
.about2-title{font-family:var(--font-display); font-weight:700; font-size:clamp(2rem, 4vw, 2.8rem); line-height:1.1; letter-spacing:-0.02em; margin-bottom:20px;}
.about2-title .accent{color:var(--amber); display:block;}
.about2-copy{color:var(--text-muted); font-size:1.02rem; max-width:480px; margin-bottom:28px;}
.about2-actions{display:flex; gap:14px; flex-wrap:wrap;}

.about2-photo-wrap{position:relative;}
.about2-photo{
  width:100%; border-radius:16px; overflow:hidden; border:1px solid var(--line);
  box-shadow:0 24px 60px rgba(20,24,28,0.10);
}
.about2-photo img{width:100%; display:block; aspect-ratio:4/5; object-fit:cover;}
.about2-photo-tag{
  position:absolute; bottom:16px; left:16px; background:var(--amber); color:#fff;
  font-family:var(--font-mono); font-size:0.72rem; font-weight:500; padding:8px 14px; border-radius:8px;
  display:flex; align-items:center; gap:6px;
}

.stat-row-4{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; margin-top:36px;}
.stat-row-4 .stat{background:var(--bg); padding:26px 20px; text-align:center;}
.stat-row-4 .stat-num{font-size:2.1rem;}

.journey-card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:36px; margin-top:0;}
.journey-title{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.3rem; font-weight:700; margin-bottom:24px;}
.journey-card p{color:var(--text-muted); font-size:0.98rem; line-height:1.75; margin-bottom:18px;}
.journey-card p:last-child{margin-bottom:0;}
.journey-card strong{color:var(--text); font-weight:700;}

.trust-header{text-align:center; margin-top:56px; margin-bottom:32px;}
.trust-header h2{margin-bottom:10px;}
.trust-header p{color:var(--text-muted); font-size:1rem; max-width:520px; margin:0 auto;}
.trust-grid{display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden;}
.trust-card{background:var(--bg); padding:28px; display:flex; gap:16px;}
.trust-icon{width:40px; height:40px; min-width:40px; border-radius:10px; background:var(--amber-soft); color:var(--amber); display:flex; align-items:center; justify-content:center;}
.trust-card h3{font-family:var(--font-display); font-size:1.02rem; font-weight:700; margin-bottom:6px;}
.trust-card p{color:var(--text-muted); font-size:0.88rem; line-height:1.55;}

.expertise-card{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:32px; margin-top:20px;}
.expertise-title{display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-size:1.2rem; font-weight:700; margin-bottom:22px;}
.expertise-pills{display:flex; gap:10px; flex-wrap:wrap;}
.expertise-pill{
  display:inline-flex; align-items:center; gap:7px; font-size:0.85rem; font-weight:500;
  padding:9px 16px; border-radius:100px; background:var(--bg); border:1px solid var(--line); color:var(--text);
}
.expertise-pill svg{color:var(--amber);}

.cta-card2{
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:44px 36px; text-align:center; margin-top:44px;
}
.cta-icon-circle{
  width:52px; height:52px; border-radius:50%; background:var(--amber-soft); color:var(--amber);
  display:flex; align-items:center; justify-content:center; margin:0 auto 20px;
}
.cta-card2 h2{margin-bottom:10px;}
.cta-card2 p{color:var(--text-muted); max-width:460px; margin:0 auto 26px;}

@media (max-width:900px){
  .about2-grid{grid-template-columns:1fr;}
  .stat-row-4{grid-template-columns:1fr 1fr;}
  .trust-grid{grid-template-columns:1fr;}
}

/* ===== DARK MODE ===== */
html.dark{
  --bg:#12181A;
  --surface:#1A211F;
  --surface-2:#212926;
  --line:#2C3532;
  --text:#EEF2EF;
  --text-muted:#9FADA5;
  --text-dim:#6E7B74;
  --amber:#6FA88F;
  --amber-soft:rgba(111,168,143,0.14);
  --amber-hover:#5C9179;
  --teal:#6FA88F;
  --teal-soft:rgba(111,168,143,0.14);
}
html.dark body{background:var(--bg);}
html.dark header.scrolled nav.wrap{
  background:rgba(18,24,26,0.65);
  border:1px solid rgba(255,255,255,0.08);
}
html.dark .nav-cta{background:var(--amber); color:#0E1211;}
html.dark .nav-cta:hover{background:var(--amber-hover);}
html.dark .btn-dark{background:var(--amber); color:#0E1211;}
html.dark .flow-node.active{box-shadow:0 0 0 1px var(--amber), 0 8px 20px rgba(111,168,143,0.18);}
html.dark .bg-grid{opacity:0.18;}
html.dark ::selection{background:var(--amber); color:#0E1211;}

/* Theme toggle switch */
.theme-toggle{
  display:flex; align-items:center; gap:8px; cursor:pointer;
  background:var(--surface-2); border:1px solid var(--line); border-radius:100px;
  padding:6px 12px 6px 6px; font-family:var(--font-mono); font-size:0.72rem; color:var(--text-muted);
  transition:all 0.2s;
}
.theme-toggle-track{
  width:34px; height:18px; border-radius:100px; background:var(--line); position:relative; transition:background 0.25s;
  flex-shrink:0;
}
.theme-toggle-thumb{
  width:14px; height:14px; border-radius:50%; background:#fff; position:absolute; top:2px; left:2px;
  transition:transform 0.25s ease, background 0.25s;
  box-shadow:0 1px 3px rgba(0,0,0,0.25);
  display:flex; align-items:center; justify-content:center;
}
html.dark .theme-toggle-track{background:var(--amber);}
html.dark .theme-toggle-thumb{transform:translateX(16px); background:#0E1211;}
.theme-toggle-thumb svg{width:9px; height:9px; color:var(--amber);}
html.dark .theme-toggle-thumb svg{color:var(--amber);}

@media (max-width:760px){
  .theme-toggle span.label{display:none;}
}

/* Mobile nav toggle + menu panel */
.nav-toggle-btn{
  display:none; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:100px; background:var(--surface-2);
  border:1px solid var(--line); color:var(--text); cursor:pointer; flex-shrink:0;
}
.nav-toggle-btn .icon-close{display:none;}
.nav-toggle-btn.open .icon-menu{display:none;}
.nav-toggle-btn.open .icon-close{display:block;}

.mobile-menu{
  display:none; flex-direction:column; gap:2px;
  position:fixed; top:88px; left:16px; right:16px; z-index:99;
  background:var(--surface); border:1px solid var(--line); border-radius:16px;
  padding:10px; box-shadow:0 20px 50px rgba(20,24,28,0.14);
}
.mobile-menu.open{display:flex;}
.mobile-menu-link{
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 16px; border-radius:10px; font-family:var(--font-body); font-weight:500;
  font-size:0.95rem; color:var(--text);
}
.mobile-menu-link:active, .mobile-menu-link.active{background:var(--surface-2); color:var(--amber);}
.mobile-menu-link .arrow{color:var(--text-dim); font-family:var(--font-mono); font-size:0.85rem;}
.mobile-menu-cta{
  margin-top:8px; text-align:center; background:var(--amber); color:#fff;
  padding:14px 16px; border-radius:10px; font-weight:600; font-size:0.95rem;
}

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

/* ===== Mobile icon nav (replaces hamburger on small screens) ===== */
.mobile-icon-nav{display:none;}

/* Big circular hero photo — mobile only. Hidden by default so it never leaks onto desktop. */
.mobile-hero-photo{display:none;}

@media (max-width:760px){
  header{display:none;}
  .nav-toggle-btn, .mobile-menu{display:none !important;}

  .mobile-icon-nav{
    display:flex; position:fixed; top:10px; left:10px; right:10px; z-index:100;
    background:rgba(255,255,255,0.68); backdrop-filter:blur(16px) saturate(160%); -webkit-backdrop-filter:blur(16px) saturate(160%);
    border:1px solid rgba(20,24,28,0.08); border-radius:20px;
    box-shadow:0 8px 32px rgba(20,24,28,0.10);
    padding:10px 4px 8px; justify-content:space-between; align-items:flex-start;
  }
  html.dark .mobile-icon-nav{background:rgba(18,24,26,0.68); border:1px solid rgba(255,255,255,0.08);}

  .mnav-item{
    display:flex; flex-direction:column; align-items:center; gap:4px;
    flex:1; min-width:0; color:var(--text-muted);
    font-family:var(--font-body); padding:6px 1px; border-radius:12px;
    background:none; border:none; cursor:pointer;
  }
  .mnav-item svg{width:18px; height:18px; flex-shrink:0;}
  .mnav-item span{font-size:0.58rem; white-space:nowrap;}
  .mnav-item.active{background:rgba(255,255,255,0.6); color:var(--amber);}
  html.dark .mnav-item.active{background:rgba(255,255,255,0.08);}

  /* pull hero sections up under the shorter mobile bar */
  .hero, .page-hero, .about2-hero, .contact-hero, .reviews-hero{padding-top:84px;}
  section{padding:56px 0;}

  /* mobile-only profile photo slot above the hero headline */
  .mobile-hero-photo{
    display:flex; justify-content:center; margin-bottom:20px;
  }
  .mobile-hero-photo-ring{
    width:180px; height:180px; border-radius:50%;
    border:3px solid var(--amber); padding:5px;
  }
  .mobile-hero-photo-inner{
    width:100%; height:100%; border-radius:50%; overflow:hidden;
    background:var(--surface-2); display:flex; align-items:center; justify-content:center;
    color:var(--text-dim); border:1px solid var(--line);
  }
  .mobile-hero-photo-inner img{width:100%; height:100%; object-fit:cover; display:block;}
  .hero .hero-grid{grid-template-columns:1fr;}
  .hero .flow-diagram{display:none;}
  .hero .eyebrow, .hero h1, .hero .hero-sub{text-align:center; margin-left:auto; margin-right:auto;}
  .hero .hero-sub{max-width:100%;}
  .hero .eyebrow{justify-content:center;}
  .hero .hero-actions{justify-content:center;}
}

/* Desktop: small profile photo badge next to eyebrow */
.hero-photo-badge{
  display:inline-flex; align-items:center; gap:10px; margin-bottom:18px;
  background:var(--surface); border:1px solid var(--line); border-radius:100px;
  padding:6px 16px 6px 6px;
}
.hero-photo-badge img{width:32px; height:32px; border-radius:50%; object-fit:cover; display:block;}
.hero-photo-badge span{font-family:var(--font-mono); font-size:0.78rem; color:var(--text-muted);}
@media (max-width:760px){
  .hero-photo-badge{display:none;}
}

/* Placeholder contrast fix (was too faint, especially noticeable in dark mode) */
.form-field input::placeholder, .form-field textarea::placeholder{
  color:var(--text-dim); opacity:1;
}

/* Floating WhatsApp button */
.whatsapp-float{
  position:fixed; bottom:24px; right:24px; z-index:90;
  width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 24px rgba(37,211,102,0.4);
  transition:transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover{transform:translateY(-3px) scale(1.05); box-shadow:0 12px 32px rgba(37,211,102,0.5);}
.whatsapp-float svg{width:28px; height:28px;}
.whatsapp-float-ping{
  position:absolute; inset:0; border-radius:50%; background:#25D366;
  opacity:0.6; animation:waPing 2.2s ease-out infinite;
}
@keyframes waPing{
  0%{transform:scale(1); opacity:0.5;}
  100%{transform:scale(1.7); opacity:0;}
}

@media (max-width:760px){
  .whatsapp-float{bottom:20px; right:16px; width:52px; height:52px;}
  .whatsapp-float svg{width:26px; height:26px;}
}

/* ===== Portfolio grid + case study modal ===== */
.portfolio-grid{display:grid; grid-template-columns:1fr 1fr; gap:24px;}
.portfolio-card{background:var(--bg); border:1px solid var(--line); border-radius:16px; overflow:hidden; display:flex; flex-direction:column;}
.portfolio-card-media{height:180px; display:flex; align-items:center; justify-content:center; position:relative;}
.portfolio-card-media svg{width:52px; height:52px; color:rgba(255,255,255,0.92);}
.portfolio-card-year{position:absolute; top:14px; right:14px; background:rgba(255,255,255,0.92); color:#14181C; font-family:var(--font-mono); font-size:0.7rem; padding:4px 10px; border-radius:100px; font-weight:600;}
.portfolio-card-body{padding:26px; display:flex; flex-direction:column; flex:1;}
.portfolio-card-title{font-family:var(--font-display); font-size:1.12rem; font-weight:700; margin-bottom:4px; line-height:1.3;}
.portfolio-card-client{font-family:var(--font-mono); font-size:0.76rem; color:var(--text-dim); margin-bottom:14px;}
.portfolio-card-desc{color:var(--text-muted); font-size:0.88rem; margin-bottom:16px; line-height:1.6;}
.portfolio-card-results{margin-bottom:18px;}
.portfolio-card-results .r-label{font-family:var(--font-mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color:var(--teal); display:flex; align-items:center; gap:6px; margin-bottom:8px; font-weight:600;}
.portfolio-card-results ul{list-style:none; display:flex; flex-direction:column; gap:6px;}
.portfolio-card-results li{font-size:0.83rem; color:var(--text-muted); display:flex; align-items:flex-start; gap:8px;}
.portfolio-card-results li::before{content:'✓'; color:var(--amber); font-weight:700;}
.portfolio-card-footer{margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding-top:16px; border-top:1px solid var(--line);}
.portfolio-card-tags{display:flex; gap:6px; flex-wrap:wrap;}
.portfolio-card-tags span{font-family:var(--font-mono); font-size:0.66rem; padding:4px 9px; border:1px solid var(--line); border-radius:100px; color:var(--text-dim);}
.view-case-btn{background:var(--amber); color:#fff; font-weight:600; font-size:0.83rem; padding:10px 16px; border-radius:8px; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:6px; white-space:nowrap;}
.view-case-btn:hover{background:var(--amber-hover);}

@media (max-width:820px){ .portfolio-grid{grid-template-columns:1fr;} }

/* Modal */
.cs-modal-overlay{
  position:fixed; inset:0; background:rgba(10,14,14,0.65); backdrop-filter:blur(4px);
  z-index:200; display:none; align-items:flex-start; justify-content:center;
  padding:60px 20px 40px; overflow-y:auto;
}
.cs-modal-overlay.open{display:flex;}
.cs-modal{background:var(--bg); border-radius:18px; max-width:680px; width:100%; position:relative; box-shadow:0 40px 100px rgba(0,0,0,0.35); margin-bottom:40px;}
.cs-modal-close{
  position:absolute; top:16px; right:16px; width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,0.9); border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:2; color:#14181C;
}
.cs-modal-media{height:200px; border-radius:18px 18px 0 0; display:flex; align-items:center; justify-content:center;}
.cs-modal-media svg{width:60px; height:60px; color:rgba(255,255,255,0.92);}
.cs-modal-body{padding:32px;}
.cs-modal-tags{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px;}
.cs-modal-tags span{font-family:var(--font-mono); font-size:0.7rem; padding:5px 11px; border:1px solid var(--line); border-radius:100px; color:var(--text-muted);}
.cs-modal h2{font-family:var(--font-display); font-size:1.4rem; margin-bottom:6px; line-height:1.3;}
.cs-client{font-family:var(--font-mono); font-size:0.8rem; color:var(--text-dim); margin-bottom:24px;}
.cs-box{border-radius:12px; padding:20px 22px; margin-bottom:16px;}
.cs-box-challenge{background:rgba(190,70,60,0.08); border:1px solid rgba(190,70,60,0.2);}
.cs-box-solution{background:var(--surface); border:1px solid var(--line);}
.cs-box-title{display:flex; align-items:center; gap:8px; font-weight:700; font-family:var(--font-display); font-size:0.95rem; margin-bottom:10px;}
.cs-box-challenge .cs-box-title{color:#B5423B;}
.cs-box p{color:var(--text-muted); font-size:0.88rem; line-height:1.65;}
.cs-box ul{list-style:none; display:flex; flex-direction:column; gap:8px;}
.cs-box ul li{font-size:0.86rem; color:var(--text-muted); display:flex; gap:8px; align-items:flex-start;}
.cs-box ul li::before{content:'✓'; color:var(--teal); font-weight:700;}
.cs-before-after{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px;}
.cs-ba-card{border-radius:12px; padding:16px 18px; border:1px solid var(--line);}
.cs-ba-card.before{background:rgba(190,70,60,0.05);}
.cs-ba-card.after{background:var(--amber-soft);}
.cs-ba-title{font-weight:700; font-size:0.82rem; margin-bottom:10px;}
.cs-ba-card ul{list-style:none; display:flex; flex-direction:column; gap:6px;}
.cs-ba-card li{font-size:0.8rem; color:var(--text-muted);}
.cs-results-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:22px;}
.cs-result-stat{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 8px; text-align:center;}
.cs-result-stat .n{font-family:var(--font-display); font-size:1.2rem; font-weight:700; color:var(--amber); display:block;}
.cs-result-stat .l{font-size:0.68rem; color:var(--text-muted); margin-top:4px; display:block; line-height:1.3;}
.cs-testimonial{background:var(--surface); border-left:3px solid var(--amber); border-radius:8px; padding:18px 20px; margin-bottom:22px;}
.cs-testimonial p{font-style:italic; color:var(--text); font-size:0.9rem; margin-bottom:10px; line-height:1.6;}
.cs-testimonial .who{font-weight:700; font-size:0.84rem;}
.cs-testimonial .role{font-size:0.76rem; color:var(--text-dim);}
.cs-tools{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:26px;}
.cs-tools span{font-size:0.76rem; padding:6px 12px; border:1px solid var(--line); border-radius:100px; color:var(--text-muted);}
.cs-cta{background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:26px; text-align:center;}
.cs-cta h3{font-family:var(--font-display); margin-bottom:6px; font-size:1.05rem;}
.cs-cta p{color:var(--text-muted); font-size:0.86rem; margin-bottom:16px;}

@media (max-width:600px){
  .cs-before-after, .cs-results-grid{grid-template-columns:1fr;}
  .cs-modal-body{padding:24px;}
}

/* Real screenshot images in portfolio cards/modal */
.portfolio-card-media-img{width:100%; height:100%; object-fit:cover; display:block;}
.cs-modal-media-img{width:100%; height:100%; object-fit:cover; display:block;}

/* Video media in portfolio cards/modal (object-fit works the same as img via class reuse, but ensure video-specific defaults) */
video.portfolio-card-media-img, video.cs-modal-media-img{background:#000;}
