/* =========================================================
   TOKENS
========================================================= */
:root{
  --bg: #f9fbfa;
  --text: #1e1e1e;
  --muted: #707070;
  --faint: #b8b8b8;
  --green: #00a13b;
  --red: #e41c4c;
  --card: #f6f6f6;
  --card-alt: #f2f2f5;
  --border: #edeff3;
  --white: #ffffff;

  --container: 1220px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --dur-s: .35s;
  --dur-m: .6s;
  --dur-l: .9s;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,p{ margin: 0; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; }
img{ max-width: 100%; display: block; }

.muted{ color: var(--muted); font-weight: 600; }
.dark{ color: var(--text); }
.brand-word{ color: var(--text); position: relative; }

::selection{ background: var(--text); color: var(--white); }

/* =========================================================
   CUSTOM CURSOR (desktop only)
========================================================= */
.cursor-dot, .cursor-ring{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.cursor-dot{
  width: 6px; height: 6px;
  background: var(--text);
}
.cursor-ring{
  width: 34px; height: 34px;
  border: 1.4px solid rgba(30,30,30,.35);
  transition: opacity .3s var(--ease), width .25s var(--ease), height .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cursor-ring.is-active{
  width: 56px; height: 56px;
  background: rgba(30,30,30,.05);
}
@media (hover: hover) and (pointer: fine){
  body.cursor-ready .cursor-dot,
  body.cursor-ready .cursor-ring{ opacity: 1; }
}
@media (hover: none), (pointer: coarse){
  .cursor-dot, .cursor-ring{ display: none; }
}

/* =========================================================
   IMAGE PLACEHOLDERS
   (swap these for <img> tags — kept visually calm on purpose)
========================================================= */
.img-placeholder{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c7cbd1;
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,.028) 0 2px, transparent 2px 10px),
    linear-gradient(160deg, #eef1f0, #e7ebe9);
  overflow: hidden;
}
.img-placeholder::after{
  content: attr(data-placeholder-label);
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b6bcbb;
  white-space: nowrap;
  opacity: .85;
}
.img-placeholder--round{
  border-radius: 50%;
}
.img-placeholder--round::after{ display: none; }

/* =========================================================
   SCROLL REVEAL base states
========================================================= */
[data-reveal], [data-reveal-text] .line, [data-reveal-group] > *{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in-view,
[data-reveal-text].in-view .line,
[data-reveal-group].in-view > *{
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-text] .line{ overflow: hidden; }
[data-reveal-group] > *{ transition-delay: calc(var(--i, 0) * 55ms); }

/* =========================================================
   NAV
========================================================= */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px var(--gutter) 0;
  transition: padding .4s var(--ease);
}
.nav-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 10px;
  border-radius: 999px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border: 1px solid transparent;
}
.nav.is-scrolled{ padding-top: 12px; }
.nav.is-scrolled .nav-inner{
  background: rgba(249,251,250,.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(20,20,20,.06);
  border-color: rgba(30,30,30,.06);
}

.nav-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.nav-avatar{
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link{
  position: relative;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 999px;
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav-link::after{
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1.4px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-link:hover{ color: var(--text); }
.nav-link:hover::after{ transform: scaleX(1); }
.nav-link.is-active{ color: var(--text); background: var(--card); }
.nav-link.is-active::after{ display: none; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  border: none;
  background: var(--card);
  border-radius: 50%;
  cursor: pointer;
  margin-right: 2px;
}
.nav-toggle span{
  width: 16px; height: 1.6px;
  background: var(--text);
  margin: 0 auto;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

.nav-mobile{
  display: none;
  flex-direction: column;
  max-width: var(--container);
  margin: 8px auto 0;
  background: rgba(249,251,250,.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .3s var(--ease);
}
.nav-mobile.is-open{ max-height: 320px; opacity: 1; }
.nav-mobile a{
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child{ border-bottom: none; }

/* =========================================================
   HERO
========================================================= */
.hero{
  position: relative;
  padding: 168px var(--gutter) 90px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}

.hero-heading{
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hero-heading .line{ display: block; }
.hero-heading .fade{ color: var(--faint); font-weight: 800; }

.hero-sub{
  margin-top: 22px;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 460px;
}

.hero-cta{
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:active{ transform: scale(.96); }
.btn svg{ transition: transform .4s var(--ease); }
.btn:hover svg{ transform: translateX(4px); }

.btn-primary{
  background: var(--text);
  color: var(--white);
}
.btn-primary::before{
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: 0;
}
.btn-primary span, .btn-primary svg{ position: relative; z-index: 1; }
.btn-primary:hover::before{ transform: translateY(0); }
.btn-primary:hover{ box-shadow: 0 14px 30px rgba(30,30,30,.22); transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(30,30,30,.14);
}
.btn-ghost:hover{
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,30,30,.08);
}

/* hero visual */
.hero-visual{
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.hero-visual-glow{
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(228,28,76,.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  animation: glow-float 7s ease-in-out infinite;
}
@keyframes glow-float{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(10px,-16px) scale(1.08); }
}

.hero-card{
  position: relative;
  z-index: 1;
  width: min(360px, 78vw);
  transform: rotate(5deg);
  animation: card-float 5.5s ease-in-out infinite;
  transition: transform .1s linear;
  will-change: transform;
}
@keyframes card-float{
  0%,100%{ transform: rotate(5deg) translateY(0); }
  50%{ transform: rotate(5deg) translateY(-14px); }
}
.hero-card-inner{
  position: relative;
  background: var(--card-alt);
  border: 3px solid var(--white);
  border-radius: 30px;
  padding: 24px 24px 76px;
  box-shadow: 0 24px 60px rgba(20,20,20,.14);
}
.hero-card-photo{
  width: 100%;
  aspect-ratio: 3/3.4;
  border-radius: 16px;
}
.hero-badge{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20,20,20,.08);
}
.hero-badge--status{ bottom: 66px; }
.hero-badge--location{ bottom: 8px; }

.dot-pulse{
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.dot-pulse::after{
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.4px solid var(--green);
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring{
  0%{ transform: scale(.5); opacity: .9; }
  100%{ transform: scale(1.9); opacity: 0; }
}

.hero-scroll-cue{
  position: absolute;
  left: var(--gutter);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scroll-line{
  width: 1px; height: 34px;
  background: rgba(30,30,30,.12);
  overflow: hidden;
}
.scroll-line i{
  display: block;
  width: 100%; height: 40%;
  background: var(--text);
  animation: scroll-cue 1.8s var(--ease) infinite;
}
@keyframes scroll-cue{
  0%{ transform: translateY(-100%); }
  60%,100%{ transform: translateY(250%); }
}
@media (max-width: 640px){ .hero-scroll-cue{ display: none; } }

/* =========================================================
   SECTION shared
========================================================= */
.section{
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px var(--gutter);
}
.section-head{
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-title{
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.section-sub{
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.5;
}

/* =========================================================
   BRANDS / LOGO GRID
========================================================= */
.logo-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.logo-slot{
  aspect-ratio: 277/120;
  background: var(--card);
  border-radius: 10px;
  overflow: hidden;
  padding: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease);
}

.logo-slot img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-slot .img-placeholder{ background: transparent; }
.logo-slot .img-placeholder::after{ display: none; }
.logo-slot:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(20,20,20,.09);
  background: var(--white);
}
.logo-slot:hover .img-placeholder{ color: var(--text); }

@media (max-width: 900px){
  .logo-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .logo-grid{ grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* =========================================================
   PROJECTS
========================================================= */
.filter-tabs{
  position: relative;
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin: 0 auto 48px;
  background: var(--card-alt);
  border-radius: 999px;
  max-width: 100%;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar{ display: none; }
.filter-tabs{ display: flex; justify-content: flex-start; }
.section-head + .filter-tabs{ display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

.filter-btn{
  position: relative;
  z-index: 2;
  padding: 12px 22px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--faint);
  cursor: pointer;
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.filter-btn.is-active{ color: var(--white); }
.filter-indicator{
  position: absolute;
  z-index: 1;
  top: 6px; left: 6px;
  height: calc(100% - 12px);
  background: var(--text);
  border-radius: 999px;
  transition: transform .45s var(--ease), width .45s var(--ease);
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.project-card{
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .35s ease, transform .35s ease;
}
.project-card.is-hidden{
  display: none;
}
.project-media{
  aspect-ratio: 514/460;
  transition: transform .7s var(--ease);
}
.project-card:hover .project-media{ transform: scale(1.05); }
.project-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(20,20,20,.14);
}
.project-info{
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  color: var(--white);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.project-card:hover .project-info{ transform: translateY(0); opacity: 1; }
.project-tag{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .85;
}
.project-info h3{ font-size: 19px; font-weight: 700; }

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

/* =========================================================
   TESTIMONIALS
========================================================= */
.reviews-track-wrap{
  overflow: hidden;
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px 0;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
}
.reviews-track-wrap.is-dragging{ cursor: grabbing; }
.reviews-track-wrap.is-dragging .review-card{ transition: none; }
.reviews-track{
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
  padding: 0 var(--gutter);
}
.review-card{
  width: min(340px, 82vw);
  flex-shrink: 0;
  background: var(--card);
  border-radius: 18px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
  user-select: none;
}
.review-card:hover{
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 22px 44px rgba(20,20,20,.1);
  background: var(--white);
}
.review-card img, .review-avatar{ -webkit-user-drag: none; }
.review-top{ display: flex; align-items: center; gap: 12px; }
.review-avatar{ width: 50px; height: 50px; flex-shrink: 0; }
.review-top h4{ font-size: 17px; font-weight: 700; }
.review-top p{ font-size: 13px; color: var(--faint); font-weight: 600; margin-top: 2px; }
.review-quote{ font-size: 14.5px; line-height: 1.55; color: var(--text); }
.review-stars{ color: #f5b400; letter-spacing: 3px; font-size: 14px; }

.reviews-progress{
  max-width: 260px;
  margin: 40px auto 0;
  height: 3px;
  border-radius: 3px;
  background: var(--border);
  overflow: hidden;
}
.reviews-progress i{
  display: block;
  height: 100%;
  width: 30%;
  background: var(--text);
  border-radius: 3px;
  transition: transform .2s linear;
}

/* =========================================================
   LEARNING / CERT CAROUSEL
========================================================= */
.cert-carousel{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.cert-arrow{
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.cert-arrow:hover{
  background: var(--text);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 14px 26px rgba(20,20,20,.16);
}
.cert-arrow:active{ transform: scale(.95); }

.cert-viewport{
  flex: 1;
  overflow: hidden;
  border-radius: 24px;
}
.cert-slides{
  display: flex;
  transition: transform 2.0s var(--ease);
}
.cert-slide{
  min-width: 100%;
  aspect-ratio: 16/10;
  padding: 3px;
}
.cert-card{
  width: 100%; height: 100%;
  border-radius: 20px;
  border: 2px dashed rgba(30,30,30,.14);
}

.cert-dots{
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 30px;
}
.cert-dots button{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform .35s var(--ease), background .35s var(--ease), width .35s var(--ease);
}
.cert-dots button.is-active{
  background: var(--text);
  width: 22px;
  border-radius: 5px;
}

@media (max-width: 560px){
  .cert-carousel{ gap: 12px; }
  .cert-arrow{ width: 42px; height: 42px; }
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  border-top: 1px solid var(--border);
  padding: 50px var(--gutter) 40px;
}
.footer-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-brand{ font-weight: 700; font-size: 16px; }
.footer-tag{ color: var(--muted); font-size: 14px; }
.footer-back{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color .3s var(--ease);
}
.footer-back:hover{ color: var(--text); }

@media (max-width: 640px){
  .footer-inner{ flex-direction: column; text-align: center; }
}

/* =========================================================
   RESPONSIVE — HERO & NAV
========================================================= */
@media (max-width: 980px){
  .nav-links{ display: none; }
  .nav-toggle{ display: flex; }
  .nav-mobile{ display: flex; }

  .hero{ padding-top: 140px; }
  .hero-inner{
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-sub{ margin-left: auto; margin-right: auto; }
  .hero-cta{ justify-content: center; }
  .hero-visual{ order: -1; margin-bottom: 20px; }
  .hero-card{ width: min(320px, 70vw); }
}

@media (max-width: 560px){
  .section{ padding: 88px var(--gutter); }
  .hero{ padding-top: 128px; padding-bottom: 60px; }
  .btn{ padding: 13px 20px; font-size: 14px; }
}
