/* ============================================================
   Hire PHP Developer India — Apple-style landing
   ============================================================ */

:root {
  --font-sans: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --accent: #0071e3 !important;
  --accent-bright: #2997ff !important;
  --brand: #ff9500;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 60px;
}

[data-theme='light'] {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elev: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --nav-bg: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  --hero-bg: #000000;
  --hero-text: #f5f5f7;
  color-scheme: light;
}

[data-theme='dark'] {
  --bg: #000000;
  --bg-soft: #101012;
  --bg-elev: #161617;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(16, 16, 18, 0.7);
  --card-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --hero-bg: #000000;
  --hero-text: #f5f5f7;
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

::selection { background: var(--brand); color: #000; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  cursor: pointer; border: 0; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn-pill { border-radius: 980px; padding: 10px 22px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 113, 227, 0.35); }
.btn-link { color: var(--accent-bright); font-weight: 500; }
.btn-link svg { transition: transform 0.35s var(--ease-out); }
.btn-link:hover svg { transform: translate(3px, -3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background-color 0.5s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav.at-top { background: rgba(10, 10, 12, 0.5); border-bottom-color: transparent; }
.nav.at-top .nav-links a { color: rgba(245, 245, 247, 0.72); }
.nav.at-top .nav-links a:hover { color: #ffffff; }
.nav.at-top .theme-toggle { border-color: rgba(255, 255, 255, 0.28); color: #f5f5f7; }
.nav-inner { width: min(1180px, 94vw); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 28px; }

.logo-chip {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 4px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s var(--ease-out);
}
.logo-chip img { height: 26px; width: auto; }
.nav-logo:hover .logo-chip { transform: scale(1.04); }

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: var(--text-2);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 100%;
  background: var(--brand); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-links + .nav-actions { margin-left: 0; }
.nav-actions { margin-left: auto; }
.nav-links ~ .nav-actions { margin-left: 0; }
.nav-inner .nav-actions:first-of-type { margin-left: auto; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  cursor: pointer; transition: background-color 0.3s, transform 0.5s var(--ease-out), border-color 0.3s;
}
.theme-toggle:hover { transform: rotate(40deg); border-color: var(--text-2); }
[data-theme='dark'] .icon-sun { display: none; }
[data-theme='light'] .icon-moon { display: none; }

.menu-button { display: none; width: 38px; height: 38px; background: none; border: 0; cursor: pointer; position: relative; z-index: 130; }
.menu-button span { display: block; width: 20px; height: 1.6px; background: var(--text); margin: 5px auto; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
body.menu-open .menu-button span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
body.menu-open .menu-button span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-menu-links a {
  font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em;
  padding: 6px 0; color: var(--text);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-menu-links a:hover { color: var(--brand); }
body.menu-open .mobile-menu-links a { opacity: 1; transform: none; }
body.menu-open .mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu-links a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu-links a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu-links a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu-links a:nth-child(5) { transition-delay: 0.32s; }
body.menu-open .mobile-menu-links a:nth-child(6) { transition-delay: 0.38s; }
body.menu-open .mobile-menu-links a:nth-child(7) { transition-delay: 0.44s; }
.mobile-cta { color: var(--accent-bright) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--hero-bg); color: var(--hero-text);
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 0 90px;
}
.hero-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.16) 0%, rgba(0, 113, 227, 0.1) 42%, transparent 70%);
  filter: blur(20px);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(245, 245, 247, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 980px; padding: 7px 16px;
  backdrop-filter: blur(8px);
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; position: relative; flex: none; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid #30d158; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero-title {
  margin: 26px 0 24px;
  font-size: clamp(3rem, 7.6vw, 6.6rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
}
.h-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.h-line-inner { display: block; transform: translateY(115%); will-change: transform; }
.accent-dot { color: var(--brand); }

.hero-sub {
  max-width: 520px;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.5;
  color: rgba(245, 245, 247, 0.66);
}
.hero-sub .serif { font-family: var(--font-serif); font-style: italic; color: #f5f5f7; letter-spacing: 0; }

.hero-ctas { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.hero .btn-link { color: var(--accent-bright); }

/* Hero visual */
.hero-visual { position: relative; height: 520px; }
.spotlight {
  position: absolute; inset: -12% -18%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 149, 0, 0.22), rgba(0, 113, 227, 0.1) 45%, transparent 68%);
  filter: blur(10px); pointer-events: none;
}
.portrait-frame {
  position: absolute; right: 6%; top: 6%;
  width: min(310px, 64%); aspect-ratio: 4 / 5;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: rotate(2.5deg);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; }

.float-card { position: absolute; will-change: transform; }
.code-card {
  left: 0; bottom: 12%;
  width: 265px; padding: 14px 16px 16px;
  background: rgba(22, 22, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}
.code-dots { display: flex; gap: 6px; margin-bottom: 10px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.code-dots i:first-child { background: #ff5f57; } .code-dots i:nth-child(2) { background: #febc2e; } .code-dots i:last-child { background: #28c840; }
.code-card pre { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; line-height: 1.65; color: rgba(245, 245, 247, 0.85); }
.c-k { color: #ff7ab2; } .c-t { color: #82c4ff; } .c-s { color: #ffd60a; } .c-c { color: rgba(161, 161, 166, 0.7); font-style: italic; }

.chip-card {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 980px;
  background: rgba(22, 22, 23, 0.82); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 12.5px; color: rgba(245, 245, 247, 0.85);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.chip-years { right: 0; bottom: 30%; }
.chip-years strong { font-size: 20px; font-weight: 700; color: var(--brand); letter-spacing: -0.02em; }
.chip-direct { left: 6%; top: 8%; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; opacity: 0.7; transition: opacity 0.3s;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint-track {
  display: block; width: 24px; height: 38px;
  border: 1.5px solid rgba(245, 245, 247, 0.5); border-radius: 14px;
  position: relative;
}
.scroll-hint-thumb {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px;
  border-radius: 3px; background: #f5f5f7;
  animation: scrollThumb 1.8s var(--ease-out) infinite;
}
@keyframes scrollThumb { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee-band {
  border-block: 1px solid var(--line);
  padding: 34px 0; overflow: hidden;
  background: var(--bg);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee-band:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-group span {
  font-size: clamp(3.2rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.03em;
  padding: 0 28px; white-space: nowrap; color: var(--text);
}
.marquee-group span.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-2);
}
.marquee-group i { font-style: normal; color: var(--brand); font-size: 2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections / chapters ---------- */
.section { padding: clamp(90px, 11vw, 150px) 0; }

.chapter-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 22px;
}
.chapter-label span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 6px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--brand); font-size: 12px; letter-spacing: 0.05em;
}
.chapter-title {
  font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.05;
}

/* ---------- Manifesto ---------- */
.manifesto-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.manifesto-sticky { position: sticky; top: calc(var(--nav-h) + 60px); }
.manifesto-text {
  font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.3;
  margin-bottom: 72px; max-width: 640px;
}
.manifesto-text .mw { opacity: 0.13; display: inline-block; }

.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.benefit-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 26px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.5s;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.benefit-num { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--brand); }
.benefit-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 8px; }
.benefit-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

/* ---------- Services ---------- */
.services-section { background: var(--bg-soft); transition: background-color 0.5s var(--ease-out); }
.services-section .chapter-title { margin-bottom: 64px; }
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 70px 1fr 60px; align-items: center; gap: 20px;
  padding: 40px 12px; border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: padding-left 0.5s var(--ease-out), background-color 0.4s;
}
.service-row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--bg-elev);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}
.service-row:hover::before { transform: scaleY(1); }
.service-row > * { position: relative; z-index: 1; }
.service-row:hover { padding-left: 30px; }
.service-num { font-size: 15px; font-weight: 600; color: var(--brand); letter-spacing: 0.06em; }
.service-main h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; transition: color 0.3s; }
.service-main p { font-size: 15px; color: var(--text-2); max-width: 560px; }
.service-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); justify-self: end;
  transition: background-color 0.4s, color 0.4s, transform 0.5s var(--ease-out), border-color 0.4s;
}
.service-row:hover .service-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(45deg); }

/* ---------- Stats ---------- */
.stats-band { border-block: 1px solid var(--line); padding: clamp(56px, 7vw, 84px) 0; background: var(--bg); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { text-align: left; border-left: 1px solid var(--line); padding-left: 26px; }
.stat-num { display: block; font-size: clamp(2.8rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.stat-item:first-child .stat-num { color: var(--brand); }
.stat-label { display: block; margin-top: 10px; font-size: 13.5px; color: var(--text-2); }

/* ---------- Work ---------- */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; flex-wrap: wrap; }
.work-note { font-size: 14px; color: var(--text-2); padding-bottom: 8px; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 26px; }
.work-item { grid-column: span 5; display: block; }
.work-item.work-lg { grid-column: span 7; }
.work-frame {
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 2.9;
  background: var(--bg-soft);
}
.work-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 1s var(--ease-out);
  will-change: transform;
}
.work-item:hover .work-frame img { transform: scale(1.06); }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 6px 0; }
.work-meta h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.work-meta span { font-size: 13px; color: var(--text-2); }
.work-item { transition: transform 0.6s var(--ease-out); }
.work-item:hover { transform: translateY(-4px); }

/* ---------- Experience ---------- */
.experience-section { background: var(--bg-soft); transition: background-color 0.5s var(--ease-out); }
.experience-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.experience-sticky { position: sticky; top: calc(var(--nav-h) + 60px); }
.experience-note { margin-top: 24px; font-size: 15.5px; color: var(--text-2); max-width: 380px; }
.timeline { border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding: 6px 0 42px 34px; }
.timeline-item:last-child { padding-bottom: 6px; }
.timeline-item::before {
  content: ''; position: absolute; left: -6.5px; top: 14px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--brand);
}
.timeline-date { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.timeline-item h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 8px 0 2px; }
.timeline-item p { font-size: 14.5px; color: var(--text-2); }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.skills-cloud span {
  font-size: 13.5px; font-weight: 500;
  padding: 9px 18px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--bg-elev);
  transition: transform 0.35s var(--ease-out), background-color 0.35s, color 0.35s, border-color 0.35s;
}
.skills-cloud span:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-3px); }

/* ---------- Testimonials ---------- */
.testimonials-section .chapter-title { margin-bottom: 64px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), background-color 0.5s;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.testimonial-card blockquote { font-size: 15.5px; line-height: 1.6; color: var(--text); flex: 1; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 13px; }
.testimonial-card figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.testimonial-card figcaption strong { display: block; font-size: 14.5px; font-weight: 600; }
.testimonial-card figcaption span { font-size: 12.5px; color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-soft); transition: background-color 0.5s var(--ease-out); }
.faq-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.faq-sticky { position: sticky; top: calc(var(--nav-h) + 60px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 6px; background: none; border: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 600;
  letter-spacing: -0.01em; color: var(--text); text-align: left;
  transition: color 0.3s;
}
.faq-trigger:hover { color: var(--accent-bright); }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  background: currentColor; border-radius: 2px;
  transition: transform 0.45s var(--ease-out);
}
.faq-icon::before { width: 16px; height: 1.8px; }
.faq-icon::after { width: 1.8px; height: 16px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); }
.faq-item.open .faq-icon::before { transform: rotate(180deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease-out); }
.faq-panel-inner { overflow: hidden; }
.faq-panel-inner p { padding: 0 6px 28px; font-size: 15.5px; color: var(--text-2); max-width: 560px; }
.faq-item.open .faq-panel { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact-title { margin-bottom: 64px; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-lede { font-size: 16px; color: var(--text-2); margin-bottom: 34px; max-width: 400px; }
.info-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: 20px;
  margin-bottom: 14px; background: var(--bg-soft);
  transition: transform 0.45s var(--ease-out), border-color 0.35s, box-shadow 0.45s, background-color 0.5s;
}
.info-card:hover { transform: translateX(8px); border-color: var(--brand); box-shadow: var(--card-shadow); }
.info-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.info-value { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.contact-form-wrap { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 4vw, 44px); transition: background-color 0.5s; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text-2); letter-spacing: 0.02em; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 16px; outline: none; width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.5s;
  appearance: none; resize: vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.18);
}
.form-submit { width: 100%; justify-content: center; margin-top: 8px; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 20px 0 10px; }
.form-success p { font-size: 15px; color: var(--text-2); max-width: 380px; margin: 0 auto 26px; }
.success-ring {
  width: 72px; height: 72px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #30d158; border: 2px solid #30d158;
  animation: popIn 0.7s var(--ease-out);
}
@keyframes popIn { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; margin-left: auto; }
.footer-links a { font-size: 13.5px; color: var(--text-2); transition: color 0.3s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; font-size: 12.5px; color: var(--text-2); }

/* ---------- Reveal defaults ---------- */
[data-reveal] { opacity: 0; transform: translateY(44px); will-change: transform, opacity; }
.hero-eyebrow, .hero-sub, .hero-ctas, .hero-visual { opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-visual { height: 480px; max-width: 560px; }
  .manifesto-grid, .experience-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-sticky, .experience-sticky, .faq-sticky { position: static; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .work-item, .work-item.work-lg { grid-column: span 12; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-button { display: block; }
  .benefits-grid, .form-row, .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .hero-visual { height: 420px; }
  .code-card { width: 230px; bottom: 4%; }
  .chip-years { bottom: 36%; }
  .service-row { grid-template-columns: 44px 1fr 46px; padding: 30px 4px; }
  .service-arrow { width: 42px; height: 42px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .h-line-inner { transform: none; }
  [data-reveal], .hero-eyebrow, .hero-sub, .hero-ctas, .hero-visual { opacity: 1; transform: none; }
  .manifesto-text .mw { opacity: 1; }
  .marquee-track { animation: none; }
}

/* ---------- Video reviews ---------- */
.video-section { background: var(--bg-soft); transition: background-color 0.5s var(--ease-out); }
.video-section .chapter-title { margin-bottom: 56px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-shell {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: #000; aspect-ratio: 4 / 5;
}
.video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play-big {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.45); border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), background-color 0.3s;
}
.video-play-big:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(10, 10, 12, 0.65); }
.video-card.playing .video-play-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.7); }
.video-controls {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 8px; opacity: 0; transition: opacity 0.3s;
}
.video-shell:hover .video-controls, .video-card.paused .video-controls { opacity: 1; }
.vc-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(10, 10, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.3s, transform 0.3s var(--ease-out);
}
.vc-btn:hover { background: rgba(10, 10, 12, 0.8); transform: scale(1.06); }
.video-toggle .ic-pause { display: none; }
.video-card.playing .video-toggle .ic-pause { display: block; }
.video-card.playing .video-toggle .ic-play { display: none; }
.video-mute .ic-muted { display: none; }
.video-card.muted .video-mute .ic-muted { display: block; }
.video-card.muted .video-mute .ic-vol { display: none; }
.video-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 8px 0; }
.video-meta strong { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.video-meta span { font-size: 13px; color: var(--text-2); }

/* ---------- Work / case study buttons ---------- */
button.work-frame { padding: 0; width: 100%; display: block; cursor: zoom-in; text-align: left; font: inherit; color: inherit; appearance: none; }
.work-meta { align-items: center; }
.work-meta > div h3 { margin-bottom: 2px; }
.case-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: 980px;
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.case-btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); transform: translateY(-2px); }
.case-btn svg { transition: transform 0.35s var(--ease-out); }
.case-btn:hover svg { transform: translate(2px, -2px); }

/* ---------- Lightbox ---------- */
body.overlay-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage { text-align: center; padding: 0 90px; }
.lightbox-stage img {
  max-width: min(1100px, 82vw); max-height: 76vh; width: auto; height: auto; margin-inline: auto;
  border-radius: 16px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  transform: scale(0.94); transition: transform 0.45s var(--ease-out);
}
.lightbox.open .lightbox-stage img { transform: scale(1); }
.lightbox-caption { margin-top: 18px; font-size: 14px; color: rgba(245, 245, 247, 0.75); letter-spacing: 0.02em; }
.lb-btn {
  position: absolute; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f5f5f7; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color 0.3s, transform 0.35s var(--ease-out);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.08); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Case study modal ---------- */
.case-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.case-modal.open { opacity: 1; visibility: visible; }
.case-modal-card {
  position: relative; width: min(600px, 100%);
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--card-shadow);
  transform: translateY(28px) scale(0.97); transition: transform 0.45s var(--ease-out);
}
.case-modal.open .case-modal-card { transform: none; }
.case-close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background-color 0.3s, transform 0.4s var(--ease-out);
}
.case-close:hover { transform: rotate(90deg); background: var(--bg-soft); }
.case-modal-card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin: 14px 0 6px; }
.case-cat { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.case-desc { font-size: 15.5px; line-height: 1.65; color: var(--text-2); margin-bottom: 22px; }
.case-modal-card .skills-cloud { margin-top: 0; margin-bottom: 28px; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1020px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .video-grid { grid-template-columns: 1fr; }
  .lightbox-stage { padding: 0 12px; }
  .lightbox-prev { left: 10px; top: auto; bottom: 18px; transform: none; }
  .lightbox-next { right: 10px; top: auto; bottom: 18px; transform: none; }
  .lightbox-prev:hover, .lightbox-next:hover { transform: scale(1.06); }
  .work-meta { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ---------- Testimonials: vertical bottom-to-top slider ---------- */
.t-viewport {
  --t-card-h: 250px;
  position: relative; overflow: hidden;
  height: calc(var(--t-card-h) * 2 + 20px);
}
.t-viewport::before, .t-viewport::after {
  content: ''; position: absolute; left: 0; right: 0; height: 110px; z-index: 2; pointer-events: none;
}
.t-viewport::before { top: 0; background: linear-gradient(var(--bg), rgba(0, 0, 0, 0)); }
.t-viewport::after { bottom: 0; background: linear-gradient(rgba(0, 0, 0, 0), var(--bg)); }
.t-track { display: flex; flex-direction: column; animation: tSlide 44s linear infinite; will-change: transform; }
.t-viewport:hover .t-track { animation-play-state: paused; }
.t-set { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 20px; flex: none; }
.t-set .testimonial-card { height: var(--t-card-h); flex: none; }
.testimonial-card blockquote {
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
@keyframes tSlide { to { transform: translateY(-50%); } }

/* ---------- Video reviews: right-to-left slider ---------- */
.video-viewport { position: relative; overflow: hidden; }
.video-viewport::before, .video-viewport::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 110px; z-index: 2; pointer-events: none;
}
.video-viewport::before { left: 0; background: linear-gradient(90deg, var(--bg-soft), rgba(0, 0, 0, 0)); }
.video-viewport::after { right: 0; background: linear-gradient(270deg, var(--bg-soft), rgba(0, 0, 0, 0)); }
.video-track { display: flex; width: max-content; animation: vSlide 38s linear infinite; will-change: transform; }
.video-viewport:hover .video-track, .video-viewport.holding .video-track { animation-play-state: paused; }
.v-set { display: flex; gap: 22px; padding-right: 22px; flex: none; }
.v-set .video-card { width: 300px; flex: none; }
@keyframes vSlide { to { transform: translateX(-50%); } }

@media (max-width: 1020px) { .t-set { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .t-set { grid-template-columns: 1fr; } }
