:root{
  --black: #0a0a0a;
  --black-soft: #1a1a1a;
  --white: #ffffff;
  --gray-bg: #f6f6f5;
  --gray-line: #e6e6e4;
  --gray-text: #6b6b6b;
  --orange: #ff5a1f;
  --orange-soft: #fff1ea;

  --font-head: 'Inter Tight', Arial, sans-serif;
  --font-body: 'Manrope', Arial, sans-serif;

  --container: 1160px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3{ font-family: var(--font-head); margin:0; }
p{ margin:0; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.text-black-strong{ color: var(--black); }
.text-accent{ color: var(--orange); }

/* ---------- NAV ---------- */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}
.nav.scrolled{
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--gray-line);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
}
.logo{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-links{
  display:flex;
  gap: 40px;
}
.nav-links a{
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content:'';
  position:absolute;
  left:0; bottom:0;
  width:0; height:2px;
  background: var(--orange);
  transition: width .25s ease;
}
.nav-links a:hover::after{ width:100%; }

.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 32px; height: 32px;
  background:none;
  border:none;
  cursor:pointer;
  position: relative;
  z-index: 1102; /* stays tappable above the slide-in panel */
}
.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background: var(--black);
  transition: transform .25s ease, opacity .25s ease;
}
/* hamburger morphs into an X while the menu is open */
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero{
  padding: 150px 0 22px;
  position: relative;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items:end;
}
.eyebrow{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow-wide{
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
@media (max-width: 640px){
  .eyebrow-wide{ white-space: normal; }
}
.hero-heading{
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-sub{
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray-text);
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  border: 1.5px solid transparent;
}
.btn-primary{
  background: var(--black);
  color: var(--white);
}
.btn-primary:hover{
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255,90,31,0.35);
}
.btn-outline{
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover{
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-visual{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-blob{
  position:absolute;
  width: 92%;
  aspect-ratio: 1/1;
  background: linear-gradient(160deg, var(--orange-soft), #ffffff 70%);
  border-radius: 50% 50% 48% 52% / 52% 48% 52% 48%;
  z-index: 0;
}
.hero-photo{
  position: relative;
  z-index: 1;
  width: 82%;
  aspect-ratio: 3/3.6;
  border-radius: 24px;
  background: var(--gray-bg);
  overflow: hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--gray-line);
}
.hero-photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}
/* Transparent cutout portrait: float over the blob, no card */
.hero-photo.cutout{
  background: transparent;
  border: none;
  overflow: visible;
  aspect-ratio: 3/3.6;
}
.hero-photo.cutout img{
  object-fit: contain;
  object-position: bottom center;
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@media (prefers-reduced-motion: reduce){
  .hero-photo.cutout img{ animation: none; }
}
.ph-label{
  color: #9a9a9a;
  font-size: 13px;
  text-align:center;
  line-height:1.5;
  padding: 0 20px;
}

/* ---------- STATS ---------- */
.stats{
  padding: 34px 0;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align:center;
}
.stat-number{
  font-family: var(--font-head);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.stat-label{
  font-size: 14px;
  color: var(--gray-text);
}

/* ---------- PARTNERS ---------- */
.partners{ padding: 46px 0; }
.partners-label{
  text-align:center;
  font-size: 14px;
  color: var(--gray-text);
  margin-bottom: 32px;
}
.partners-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.partner-logo{
  position: relative;
  flex: 1 1 140px;
  height: 60px;
  display:flex;
  align-items:center;
  justify-content:center;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: opacity .25s ease, filter .25s ease;
}
.partner-logo:hover{
  opacity: 1;
  filter: grayscale(0%);
}
.partner-logo .ph-label{ font-size: 13px; }
.partner-logo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: contain;
}

/* ---------- SECTION HEADER (shared) ---------- */
.section-header{
  max-width: 620px;
  margin: 0 auto 38px;
  text-align:center;
}
.section-pill{
  display:inline-block;
  padding: 7px 18px;
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 20px;
}
.section-heading{
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub{
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-text);
}
.section-sub strong{
  color: var(--black);
  font-weight: 700;
}

/* ---------- WHY CHOOSE ME ---------- */
.choose{ padding: 66px 0; background: var(--gray-bg); }
.choose-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.choose-card{
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 20px;
  padding: 34px 28px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.choose-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(10,10,10,0.08);
}
.choose-icon{
  width: 44px; height: 44px;
  color: var(--orange);
  margin-bottom: 20px;
}
.choose-card h3{
  font-size: 18px;
  margin-bottom: 10px;
}
.choose-card p{
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray-text);
}

/* ---------- PROJECTS (stacked rolodex) ---------- */
.projects{ padding: 40px 0 0; }
.projects .section-header{ margin-bottom: 0; }

.stack{
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}
.stack-card{
  width: 100%;
  margin: 0 auto 26px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-line);
  border-radius: 24px;
  padding: 40px 46px;
  box-shadow: 0 30px 60px -28px rgba(10,10,10,0.30),
              0 10px 26px -18px rgba(10,10,10,0.16);
}
/* Desktop rolodex mode (toggled by JS) */
.stack.is-stacked{
  height: 100vh;
  max-width: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.stack.is-stacked{ height: 92vh; }
.stack.is-stacked .stack-card{
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(90%, 900px);
  margin: 0;
  will-change: transform;
}

.project-index{
  display:inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.project-copy h3{
  font-size: 26px;
  margin-bottom: 12px;
}
.project-copy p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-text);
  margin-bottom: 22px;
  max-width: 420px;
}
.kpi-list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.kpi-list li{
  font-size: 14.5px;
  color: var(--gray-text);
  display:flex;
  align-items:baseline;
  gap: 10px;
}
.kpi-num{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--black);
}

/* Tile top: index + client logo */
.tile-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.tile-top .project-index{ margin-bottom: 0; }
.client-block{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.client-label{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.client-logo{
  height: 30px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* KPI benchmark bars */
.kpi-bars{
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kpi-bar-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.kpi-metric{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-text);
}
.kpi-value{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--black);
}
.kpi-track{
  position: relative;
  height: 8px;
  background: var(--gray-line);
  border-radius: 999px;
}
.kpi-track-bench{
  margin-top: 5px;
}
.kpi-fill{
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--orange);
  border-radius: 999px;
}
.kpi-fill-bench{
  background: #4a7aa8;
}
.kpi-foot{
  margin-top: 6px;
  font-size: 11px;
  color: var(--gray-text);
}

/* Browser-framed screenshot — whole page visible (contain) */
.project-shot{
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 300 / 452;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--gray-line);
  overflow:hidden;
  padding-top: 30px;
  transform: perspective(1100px) rotateY(-9deg) rotateX(2.5deg);
  box-shadow: -20px 28px 46px -24px rgba(10,10,10,0.32),
              -6px 10px 18px -12px rgba(10,10,10,0.15);
  transition: transform .5s ease, box-shadow .5s ease;
}
.stack-card:hover .project-shot{
  transform: perspective(1100px) rotateY(-3deg) rotateX(1deg);
  box-shadow: -10px 24px 44px -24px rgba(10,10,10,0.30),
              -3px 8px 16px -12px rgba(10,10,10,0.14);
}
@media (max-width: 900px){
  .project-shot{ transform: none; }
  .stack-card:hover .project-shot{ transform: none; }
}
.project-shot::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:30px;
  background:linear-gradient(#fafafa, #efefee);
  border-bottom:1px solid var(--gray-line);
  z-index:2;
}
.project-shot::after{
  content:'';
  position:absolute;
  top:11px; left:15px;
  width:8px; height:8px;
  border-radius:50%;
  background:#ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
  z-index:3;
}
.project-shot img{
  position:absolute;
  top:30px; left:0; right:0; bottom:0;
  width:100%;
  height:calc(100% - 30px);
  object-fit: contain;
  object-position: top center;
  background:#fff;
}

/* Rolodex progress dots */
.stack-dots{
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 600;
}
.stack:not(.is-stacked) .stack-dots{ display:none; }
.stack-dots span{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-line);
  transition: background .3s ease, transform .3s ease;
}
.stack-dots span.active{
  background: var(--orange);
  transform: scale(1.3);
}

/* ---------- CONTACT ---------- */
.contact-final{
  padding: 82px 0 46px;
  text-align:center;
  background: var(--black);
  color: var(--white);
  border-radius: 40px 40px 0 0;
  margin-top: 24px;
}
.contact-final .eyebrow{ color: var(--orange); }
.contact-heading{
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin: 0 auto 40px;
}
.contact-buttons{
  display:flex;
  justify-content:center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.contact-btn{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 22px 44px;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 17px;
  border: 1.5px solid transparent;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.contact-btn svg{ width: 22px; height: 22px; }
.contact-btn:hover{
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}
.copyright{
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* ---------- REVEAL ANIMATION BASE ---------- */
[data-reveal]{
  opacity: 0;
  transform: translateY(26px);
}
.reveal-ready [data-reveal]{
  transition: opacity .5s ease, transform .5s ease;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  /* portrait sits below the copy, centered over its blob, flowing into the stats bar */
  .hero-visual{ width: 100%; max-width: 300px; margin: 36px auto 0; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats-grid .stat-item:last-child{ grid-column: 1 / -1; }
  .choose-grid{ grid-template-columns: repeat(2, 1fr); }
  .stack-card{
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }
  .stack-card .project-shot{ order: -1; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);
    z-index: 1100;
  }
  /* dim backdrop behind the open menu; tap it to close */
  .nav-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 1099;
  }
  .nav-backdrop.show{
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-links a{ font-size: 20px; }
  .nav-toggle{ display:flex; }
  .hero{ padding: 130px 0 18px; }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .partners-row{ justify-content: center; }
  .choose-grid{ grid-template-columns: 1fr; }
  .contact-btn{ width: 100%; }
  .contact-buttons{ flex-direction: column; align-items: center; }
  .contact-btn{ max-width: 320px; }
}
