:root{
  --ink:#0F2E2E;
  --paper:#F7F4EC;
  --petrol:#1B4B4A;
  --petrol-dark:#123433;
  --mango:#E8A33D;
  --mango-dark:#412402;
  --green:#3FA66E;
  --slate:#5C6B6A;
  --card-border:#DDD6C4;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  line-height:1.6;
}
h1,h2,h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  margin:0;
  line-height:1.2;
}
a{color:inherit;}
.wrap{max-width:1080px; margin:0 auto; padding:0 24px;}

/* ===== global header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:var(--paper);
  border-bottom:1px solid var(--card-border);
}
.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:16px 24px;
}
.logo{
  font-family:'Fraunces',serif; font-weight:600; font-size:18px;
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ink); flex-shrink:0;
}
.logo-photo{width:34px; height:34px; border-radius:50%; object-fit:cover; border:2px solid var(--mango);}

.main-nav{display:flex; align-items:center; gap:28px;}
.main-nav a{font-size:14px; font-weight:500; color:var(--ink); text-decoration:none;}
.main-nav a:hover{color:var(--petrol);}

.header-actions{display:flex; align-items:center; gap:16px; flex-shrink:0;}
.btn-quote{padding:10px 18px; font-size:13.5px;}

.hamburger{
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; flex-shrink:0;
  background:var(--mango); border:none; border-radius:8px;
  padding:0 9px; cursor:pointer;
}
.hamburger span{
  display:block; width:100%; height:2px; background:var(--mango-dark); border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

.mobile-drawer{
  display:none;
  flex-direction:column;
  max-height:0;
  overflow:hidden;
  background:var(--paper);
  transition:max-height .25s ease;
}
.mobile-drawer.open{max-height:340px; border-top:1px solid var(--card-border);}
.mobile-drawer a{
  padding:14px 24px;
  font-size:14.5px; font-weight:500; color:var(--ink); text-decoration:none;
  border-bottom:1px solid var(--card-border);
}
.mobile-drawer .btn{margin:14px 24px; text-align:center;}

@media (max-width:820px){
  .main-nav{display:none;}
  .header-actions .btn-quote{display:none;}
  .hamburger{display:flex;}
  .mobile-drawer{display:flex;}
}

/* hero */
.hero{
  padding:64px 0 72px;
  display:grid;
  grid-template-columns:1.1fr 0.9fr;
  gap:48px;
  align-items:center;
}
.eyebrow{
  font-size:13px; color:var(--slate); letter-spacing:0.03em;
  margin-bottom:14px;
}
.hero h1{font-size:42px; max-width:520px; margin-bottom:18px;}
.hero p{font-size:16px; color:var(--slate); max-width:460px; margin-bottom:28px;}
.btn-row{display:flex; gap:12px; flex-wrap:wrap;}
.btn{
  border:none; font-weight:500; font-size:14px; padding:13px 22px;
  border-radius:8px; cursor:pointer; font-family:'Inter',sans-serif;
  text-decoration:none; display:inline-block;
}
.btn-primary{background:var(--mango); color:var(--mango-dark);}
.btn-secondary{background:transparent; color:var(--petrol); border:1.5px solid var(--petrol);}
.btn-wa{background:var(--petrol); color:#fff;}

.hero-visual{
  background:var(--petrol);
  border-radius:16px;
  padding:20px;
  aspect-ratio:4/3;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

/* section label */
.section-label{
  font-size:13px; color:var(--slate); margin-bottom:16px;
  text-transform:lowercase;
}
.section-label.lg{font-size:20px; font-weight:600; color:var(--ink); font-family:'Fraunces',serif; text-transform:none;}
.section-intro{font-size:14.5px; color:var(--slate); max-width:560px; margin:-8px 0 24px;}

/* ===== niche (pillars) ===== */
.niche{padding:8px 0 64px;}
.pillar-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:0;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--card-border);
}
.pillar{
  background:#fff;
  padding:26px 24px;
  border-left:1px solid var(--card-border);
}
.pillar:first-child{border-left:none;}
.pillar .pillar-bar{
  width:32px; height:3px; border-radius:2px; margin-bottom:16px;
}
.pillar:nth-child(1) .pillar-bar{background:var(--green);}
.pillar:nth-child(2) .pillar-bar{background:var(--mango);}
.pillar:nth-child(3) .pillar-bar{background:#8A6FE8;}
.pillar h3{font-size:17px; margin-bottom:8px;}
.pillar p{font-size:13.5px; color:var(--slate); margin:0;}

/* ===== tools & skills ===== */
.tools{padding:8px 0 64px;}
.tools-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}
.tools-group h4{
  font-family:'Inter',sans-serif; font-weight:600; font-size:13px;
  color:var(--petrol); margin:0 0 12px;
}
.tag-row{display:flex; flex-wrap:wrap; gap:8px;}
.tag{
  font-size:12.5px; color:var(--ink); background:#fff;
  border:1px solid var(--card-border); border-radius:7px;
  padding:6px 11px;
}

/* ===== services ===== */
.services{padding:8px 0 64px;}
.grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  grid-auto-rows:1fr;
  align-items:stretch;
  gap:16px;
}
.card{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:14px;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  height:100%;
}
.card h3{min-height:20px;}
.card > p{
  font-size:13.5px; color:var(--slate); margin:0;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4;
  overflow:hidden; min-height:60px;
}
.card > .content-carousel, .card > .ap-preview, .card > .iframe-preview,
.card > .app-preview, .card > .icon-preview, .card > .gif-preview{
  margin-top:auto;
}
.card.featured{
  border:2px solid var(--mango);
  position:relative;
}
.badge{
  position:absolute; top:-11px; left:16px;
  background:var(--mango); color:var(--mango-dark);
  font-size:11px; font-weight:600; padding:3px 10px; border-radius:6px;
}
.icon{
  width:38px; height:38px; border-radius:9px;
  background:#EAF3EF; color:var(--petrol);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.icon svg{width:19px; height:19px;}
.card h3{font-family:'Inter',sans-serif; font-weight:600; font-size:16px;}

.gif-preview{
  margin-top:4px;
  border-radius:8px;
  aspect-ratio:16/10;
  background:repeating-linear-gradient(135deg, #F0EDE2, #F0EDE2 8px, #E9E5D6 8px, #E9E5D6 16px);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; color:var(--slate); text-align:center; padding:12px;
}

/* auto-posting animation */
.ap-preview{border-radius:8px; aspect-ratio:16/10; background:var(--petrol); overflow:hidden;}
.ap-svg{width:100%; height:100%; overflow:visible;}
.ap-path{fill:none; stroke:rgba(255,255,255,0.25); stroke-width:2; stroke-dasharray:5 5;}
.ap-node{stroke-width:2;}
.ap-scan{fill:var(--mango); stroke:var(--mango);}
.ap-fb{fill:#1877F2; stroke:#1877F2; opacity:0.35;}
.ap-ig{fill:#C13584; stroke:#C13584; opacity:0.35;}
.ap-notif{fill:none; stroke:rgba(255,255,255,0.5); opacity:0.4;}
.ap-sym{font-family:'Inter',sans-serif; font-size:15px; fill:#fff; text-anchor:middle; dominant-baseline:central;}
.ap-ig-cam{stroke:#fff; stroke-width:1.6; opacity:0;}
.ap-ig-lens{stroke:#fff; stroke-width:1.6; opacity:0;}
.ap-bell{fill:none; stroke:#fff; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:0.4;}
.ap-spin{
  stroke:rgba(255,255,255,0.5); stroke-width:2; stroke-dasharray:7 9;
  transform-origin:50px 150px; animation:apSpinRing 2s linear infinite;
}
@keyframes apSpinRing{to{transform:rotate(360deg);}}

.ap-fb, .ap-ig, .ap-notif, .ap-ig-cam, .ap-ig-lens, .ap-bell{animation-duration:12s; animation-iteration-count:infinite;}
.ap-fb{animation-name:apFbGlow;}
.ap-ig{animation-name:apIgGlow;}
.ap-notif{animation-name:apNotifGlow;}
.ap-ig-cam, .ap-ig-lens{animation-name:apIgIconShow;}
.ap-bell{animation-name:apBellShow;}

@keyframes apFbGlow{0%,32%{opacity:0.35;} 36%{opacity:1;} 95%{opacity:1;} 100%{opacity:0.35;}}
@keyframes apIgGlow{0%,32%{opacity:0.35;} 36%{opacity:1;} 95%{opacity:1;} 100%{opacity:0.35;}}
@keyframes apIgIconShow{0%,32%{opacity:0;} 36%{opacity:1;} 100%{opacity:1;}}
@keyframes apNotifGlow{0%,55%{opacity:0.4;} 60%{opacity:1;} 95%{opacity:1;} 100%{opacity:0.4;}}
@keyframes apBellShow{0%,55%{opacity:0.4;} 60%{opacity:1;} 95%{opacity:1;} 100%{opacity:0.4;}}

.ap-dots-wrap{position:relative; width:480px; height:300px;}
.ap-dot{
  position:absolute; top:0; left:0; width:10px; height:10px; border-radius:50%;
  background:#fff; box-shadow:0 0 6px 1px rgba(255,255,255,0.6); opacity:0;
}
.ap-dot-fb{offset-path:path("M68,138 C120,110 160,90 212,82 C280,70 350,90 402,140"); animation:apDotFb 12s infinite; background:#4A9BFF;}
.ap-dot-ig{offset-path:path("M68,162 C120,190 160,210 212,218 C280,230 350,200 402,160"); animation:apDotIg 12s infinite; background:#E85D9E;}

@keyframes apDotFb{
  0%{offset-distance:0%; opacity:0;}
  17%{offset-distance:0%; opacity:1;}
  58%{offset-distance:100%; opacity:1;}
  95%{opacity:1;}
  100%{opacity:0;}
}
@keyframes apDotIg{
  0%{offset-distance:0%; opacity:0;}
  17%{offset-distance:0%; opacity:1;}
  58%{offset-distance:100%; opacity:1;}
  95%{opacity:1;}
  100%{opacity:0;}
}

.ap-label{font-size:10.5px; color:#fff; text-align:center; line-height:1.25; opacity:0; font-family:'Inter',sans-serif;}
.ap-lbl-scan{animation:apLblScan 12s infinite;}
.ap-lbl-fb{animation:apLblFb 12s infinite; color:#D6E8FF;}
.ap-lbl-ig{animation:apLblIg 12s infinite; color:#FBD9EC;}
.ap-lbl-notif{animation:apLblNotif 12s infinite; color:#FCE4BB;}

@keyframes apLblScan{0%{opacity:0;} 4%{opacity:1;} 15%{opacity:1;} 18%{opacity:0;} 100%{opacity:0;}}
@keyframes apLblFb{0%,34%{opacity:0;} 37%{opacity:1;} 95%{opacity:1;} 100%{opacity:0;}}
@keyframes apLblIg{0%,34%{opacity:0;} 37%{opacity:1;} 95%{opacity:1;} 100%{opacity:0;}}
@keyframes apLblNotif{0%,57%{opacity:0;} 61%{opacity:1;} 95%{opacity:1;} 100%{opacity:0;}}

/* content showcase */
.content-carousel{
  border-radius:8px; aspect-ratio:16/10;
  background:#F3F0E6; overflow:hidden; position:relative;
}
.content-carousel img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  object-position:top;
  opacity:0; animation:fadeCarousel 9s infinite;
}
.content-carousel img:nth-child(1){animation-delay:0s;}
.content-carousel img:nth-child(2){animation-delay:3s;}
.content-carousel img:nth-child(3){animation-delay:6s;}
@keyframes fadeCarousel{
  0%{opacity:0;} 5%{opacity:1;} 30%{opacity:1;} 35%{opacity:0;} 100%{opacity:0;}
}
.approval-note{
  font-size:12px; color:var(--slate); background:#F3F0E6; border-radius:8px;
  padding:8px 10px; display:flex; align-items:center; gap:6px; margin-top:2px;
}
.approval-note i{color:var(--green); font-size:15px; flex-shrink:0;}

/* iframe preview (web dev) */
.iframe-preview{
  border-radius:8px; aspect-ratio:16/10;
  overflow:hidden; border:1px solid var(--card-border); background:#fff;
  position:relative;
}
.iframe-preview iframe{
  width:250%; height:250%; border:none; transform:scale(0.4); transform-origin:top left;
}

/* app screenshot preview */
.app-preview{
  border-radius:8px; aspect-ratio:16/10;
  overflow:hidden; background:#0F2E2E; position:relative;
}
.app-preview img{
  position:absolute; left:50%; top:50%; width:auto; height:170%;
  transform:translate(-50%,-38%); animation:appScrollPan 7s ease-in-out infinite alternate;
}
@keyframes appScrollPan{
  0%{transform:translate(-50%,-36%);}
  100%{transform:translate(-50%,-64%);}
}

.card-link{
  display:inline-flex; align-items:center; gap:5px; font-size:12.5px; font-weight:600;
  color:var(--petrol); text-decoration:none; margin-top:2px;
}
.card-link svg{width:13px; height:13px;}

/* ===== services 2x2 revision: new card content ===== */
.services .grid{grid-auto-rows:auto;}
.services .card{padding:24px; gap:12px; height:auto;}
.services .card > p{
  -webkit-line-clamp:unset; display:block; overflow:visible; min-height:0;
}
.services .card > p.good-for{font-size:12.5px;}
.services .card > p.good-for strong{color:var(--ink); font-weight:600;}
.services .card > .svc-tags{margin-top:2px;}
.tag-label{font-size:12.5px; color:var(--slate); align-self:center; padding-right:2px;}
.services .card > .card-link{margin-top:auto; padding-top:6px;}

/* hero flowchart diagram */
.flow-svg{width:100%; height:100%; overflow:visible;}
.fpath{fill:none; stroke:rgba(255,255,255,0.28); stroke-width:2; stroke-dasharray:5 5;}
.node-circle{stroke-width:2;}
.n-generate, .n-adjust{fill:var(--mango); stroke:var(--mango);}
.n-review{fill:var(--petrol-dark); stroke:#fff; stroke-width:2.5;}
.n-posted{fill:var(--green); stroke:var(--green);}
.n-reject{fill:none; stroke:rgba(255,255,255,0.5); stroke-width:2;}
.node-sym{font-family:'Inter',sans-serif; font-size:16px; fill:#fff; text-anchor:middle; dominant-baseline:central;}
.spin-ring{
  stroke:rgba(255,255,255,0.5); stroke-width:2; stroke-dasharray:8 10;
  transform-origin:60px 180px; animation:spinRing 2s linear infinite;
}
@keyframes spinRing{to{transform:rotate(360deg);}}

.dots-wrap{position:relative; width:480px; height:360px;}
.fdot{
  position:absolute; top:0; left:0; width:11px; height:11px; border-radius:50%;
  background:#fff; box-shadow:0 0 6px 1px rgba(255,255,255,0.6);
  offset-rotate:0deg; opacity:0;
}
.fdot-main{offset-path:path("M78,180 L182,180"); animation:dotMain 14s infinite;}
.fdot-approve{offset-path:path("M218,172 C270,150 300,110 330,95 C360,80 400,80 424,90"); animation:dotApprove 14s infinite; background:var(--green); box-shadow:0 0 6px 1px rgba(63,166,110,0.7);}
.fdot-reject{offset-path:path("M218,180 L328,180"); animation:dotReject 14s infinite;}
.fdot-adjust{offset-path:path("M218,188 C270,205 300,240 330,258 C345,267 348,268 348,268 C352,300 345,325 300,332 C200,350 108,340 98,290 C90,255 108,220 150,200 C165,192 178,186 185,182"); animation:dotAdjust 14s infinite; background:var(--mango); box-shadow:0 0 6px 1px rgba(232,163,61,0.7);}

@keyframes dotMain{
  0%{offset-distance:0%; opacity:1;}
  14%{offset-distance:100%; opacity:1;}
  15%{opacity:0;}
  100%{opacity:0;}
}
@keyframes dotApprove{
  0%{offset-distance:0%; opacity:0;}
  15%{offset-distance:0%; opacity:1;}
  30%{offset-distance:100%; opacity:1;}
  95%{opacity:1;}
  100%{opacity:0;}
}
@keyframes dotReject{
  0%{offset-distance:0%; opacity:0;}
  15%{offset-distance:0%; opacity:1;}
  24%{offset-distance:100%; opacity:1;}
  29%{opacity:1;}
  32%{opacity:0;}
  100%{opacity:0;}
}
@keyframes dotAdjust{
  0%{offset-distance:0%; opacity:0;}
  15%{offset-distance:0%; opacity:1;}
  30%{offset-distance:35%; opacity:1;}
  45%{offset-distance:35%; opacity:1;}
  55%{offset-distance:100%; opacity:1;}
  57%{opacity:0;}
  100%{opacity:0;}
}

.flabel{
  font-size:11px; color:#fff; text-align:center; line-height:1.3; opacity:0;
  font-family:'Inter',sans-serif;
}
.lbl-generate{animation:lblGenerate 14s infinite;}
.lbl-review{animation:lblReview 14s infinite;}
.lbl-posted{animation:lblPosted 14s infinite; color:#D7F5E6; font-weight:500;}
.lbl-reject{animation:lblReject 14s infinite; color:rgba(255,255,255,0.65);}
.lbl-adjust{animation:lblAdjust 14s infinite; color:#FCE4BB;}

@keyframes lblGenerate{
  0%{opacity:0;} 3%{opacity:1;} 13%{opacity:1;} 16%{opacity:0;} 100%{opacity:0;}
}
@keyframes lblReview{
  0%,14%{opacity:0;} 16%{opacity:1;} 19%{opacity:1;} 22%{opacity:0;} 100%{opacity:0;}
}
@keyframes lblPosted{
  0%,30%{opacity:0;} 32%{opacity:1;} 95%{opacity:1;} 100%{opacity:0;}
}
@keyframes lblReject{
  0%,24%{opacity:0;} 26%{opacity:1;} 30%{opacity:1;} 33%{opacity:0;} 100%{opacity:0;}
}
@keyframes lblAdjust{
  0%,30%{opacity:0;} 32%{opacity:1;} 53%{opacity:1;} 57%{opacity:0;} 100%{opacity:0;}
}

/* ===== proof of work CTA ===== */
.proof{padding:8px 0 64px;}
.proof-cta{
  background:#fff;
  border:1px solid var(--card-border);
  border-radius:16px;
  padding:36px;
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:32px;
  align-items:center;
}
.proof-cta h2{font-size:24px; max-width:380px; margin-bottom:10px;}
.proof-cta p{font-size:14.5px; color:var(--slate); max-width:400px; margin:0 0 18px;}

.proof-visual{
  background:var(--paper);
  border:1px solid var(--card-border);
  border-radius:12px;
  aspect-ratio:4/3;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.proof-svg{width:80%; height:80%; overflow:visible;}
.pv-card{stroke-width:1.5;}
.pv-card-1{fill:#fff; stroke:var(--card-border);}
.pv-card-2{fill:#fff; stroke:var(--card-border);}
.pv-card-3{fill:var(--petrol); stroke:var(--petrol);}
.pv-bar{fill:var(--card-border);}
.pv-bar-accent{fill:var(--mango);}
.pv-check{
  fill:none; stroke:#fff; stroke-width:2.4;
  stroke-linecap:round; stroke-linejoin:round;
}
.pv-check-bg{fill:var(--green);}
.pv-badge-bg{fill:#fff; stroke:var(--card-border); stroke-width:1.5;}
.pv-dot{fill:#fff; opacity:0.6;}

/* about strip */
.about{
  background:var(--petrol);
  border-radius:16px;
  padding:36px;
  margin:0 0 64px;
  display:flex; gap:32px; align-items:center;
  flex-wrap:wrap;
}
.about h2{color:#fff; font-size:24px; max-width:420px;}
.about p{color:#B9D2CF; font-size:14.5px; max-width:420px; margin-top:10px;}
.about-cta{margin-left:auto;}

/* download portfolio */
.portfolio-cta{
  border:1.5px dashed var(--card-border); border-radius:16px;
  padding:32px 36px; margin:0 0 64px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  flex-wrap:wrap;
}
.portfolio-cta h2{font-size:22px; max-width:420px;}
.portfolio-cta p{font-size:13.5px; color:var(--slate); margin-top:6px; max-width:420px;}
.btn-disabled{
  background:#EFEBDD; color:var(--slate); cursor:not-allowed;
}

/* ===== global footer ===== */
.site-footer{
  border-top:1px solid var(--card-border);
  padding:24px 0 20px;
}
.footer-top{
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  padding-bottom:20px;
}
.footer-top .q{font-size:14px; color:var(--slate);}
.footer-bottom{
  border-top:1px solid var(--card-border);
  padding-top:16px;
  font-size:12px; color:var(--slate);
  text-align:center;
}

@media (max-width:820px){
  .hero{grid-template-columns:1fr;}
  .grid{grid-template-columns:1fr;}
  .proof-cta{grid-template-columns:1fr;}
  .pillar-grid{grid-template-columns:1fr;}
  .pillar{border-left:none; border-top:1px solid var(--card-border);}
  .pillar:first-child{border-top:none;}
  .tools-grid{grid-template-columns:1fr; gap:20px;}
  .hero h1{font-size:32px;}
}
@media (max-width:560px){
  .grid{grid-template-columns:1fr;}
}