/* ============================================================
   Sumit Bisht — Portfolio
   Design system: Pamidor (stark editorial, warm paper, ink type)
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --paper: #EFEEEB;
  --white: #FFFFFF;
  --line: #E5E7EB;
  --muted: #55534F;
  --error: #B42318;

  --font: "Funnel Display", -apple-system, "Segoe UI", sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 38px;
  --space-lg: 56px;
  --space-xl: clamp(72px, 10vw, 128px);

  --container: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }

/* ---------- layout ---------- */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.section { padding-block: var(--space-xl); }

.section-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(40px, 6vw, 67px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  text-wrap: balance;
}

.section-lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  max-width: 640px;
  color: #2b2a28;
  margin-bottom: var(--space-lg);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  z-index: 200;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-mark {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.02em;
  animation: pulse 1.1s ease-in-out infinite;
}
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.35s ease;
}
.site-header.scrolled {
  background: rgba(239, 238, 235, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.hidden { transform: translateY(-100%); }

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand sup { font-size: 10px; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav .nav-cta {
  border: 1px solid var(--ink);
  padding: 9px 18px;
  opacity: 1;
}
.site-nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Agency link (ZenX Creatives) ---------- */
.build-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 8px;
  vertical-align: 1px;
  opacity: 0.7;
}
.footer-agency { margin: 0; }
.agency-btn {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  text-decoration: none;
  font-size: 15px;
}
.agency-btn:hover { background: var(--ink); color: var(--paper); }
.agency-btn strong { font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  border: 1px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-full { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-bg-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(120px, 26vw, 380px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 10, 10, 0.14);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.hero-inner {
  position: relative;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-md);
}
.hero-title {
  font-size: clamp(52px, 10vw, 118px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: var(--space-md);
}
.hero-sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  max-width: 600px;
  color: #2b2a28;
  margin-bottom: var(--space-md);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-md); }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: #1a7f37;
  animation: pulse 1.6s ease-in-out infinite;
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: var(--ink);
  margin: 10px auto 0;
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: var(--paper);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "·";
  margin-left: 56px;
  color: var(--muted);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.about-copy p { font-size: 18px; line-height: 1.7; color: #2b2a28; }
.about-copy p + p { margin-top: var(--space-sm); }
.about-facts { list-style: none; border-top: 1px solid var(--line); }
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.about-facts strong { font-weight: 500; color: var(--muted); }

/* ---------- services ---------- */
.service-list { list-style: none; border-top: 1px solid var(--ink); }
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, padding 0.25s ease;
}
.service-row:hover { background: rgba(10, 10, 10, 0.03); }
.service-num { font-size: 15px; font-weight: 500; color: var(--muted); padding-top: 6px; }
.service-body h3 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.service-body p { font-size: 16px; line-height: 1.65; color: #2b2a28; max-width: 620px; }
.service-tags {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 220px;
  padding-top: 8px;
}

/* ---------- results ---------- */
.results { background: var(--ink); color: var(--paper); }
.results .section-label { color: rgba(239, 238, 235, 0.6); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(239, 238, 235, 0.18);
}
.stat-value {
  display: block;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label { font-size: 14px; line-height: 1.55; color: rgba(239, 238, 235, 0.72); }
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case {
  border: 1px solid rgba(239, 238, 235, 0.22);
  padding: 28px;
  border-radius: 4px;
}
.case-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 238, 235, 0.6);
  margin-bottom: 14px;
}
.case h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.case p { font-size: 15px; line-height: 1.65; color: rgba(239, 238, 235, 0.78); }
.case-metric {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 600;
  color: var(--paper);
}

/* ---------- process ---------- */
.process-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process-grid li { background: var(--paper); padding: 32px 28px; }
.process-grid span {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.process-grid h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.process-grid p { font-size: 15px; line-height: 1.6; color: #2b2a28; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quote {
  border-top: 2px solid var(--ink);
  padding-top: 28px;
}
.quote blockquote {
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin-bottom: 22px;
  text-wrap: pretty;
}
.quote figcaption strong { display: block; font-size: 16px; }
.quote figcaption span { font-size: 14px; color: var(--muted); }

/* ---------- areas ---------- */
.area-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.area-chips li {
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.area-chips li:hover { background: var(--ink); color: var(--paper); }

/* ---------- faq ---------- */
.faq-list { border-top: 1px solid var(--ink); max-width: 820px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: #2b2a28;
  max-width: 680px;
}

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 4px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 15px;
  transition: border-color 0.2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid { border-color: var(--error); }
.form-error {
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
}
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }

.contact-info h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-info h3:not(:first-child) { margin-top: 36px; }
.contact-line {
  display: block;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-bottom: 8px;
}
.contact-line:hover { opacity: 0.7; }
.contact-info p { font-size: 16px; color: #2b2a28; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--ink);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand { font-weight: 600; font-size: 17px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 14px; opacity: 0.75; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-size: 13px; color: var(--muted); }

/* ---------- scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cases { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-tags { display: none; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--paper);
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .site-nav.open { transform: none; }
  .site-nav a { font-size: 24px; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
  .stats-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-bg-word { display: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
