/* Nirmaan Branding — static site
   Black & white editorial theme */

:root {
  --bg: #f7f6f2;
  --fg: #0d0d0d;
  --muted: #7a7a7a;
  --border: rgba(13, 13, 13, 0.15);
  --primary: #0d0d0d;
  --primary-fg: #f7f6f2;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--fg); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 64px; } }

.display {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
}
.label {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.7rem;
  font-weight: 700;
}
.muted { color: var(--muted); }

/* ===== Navbar ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(247, 246, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 48px; width: auto; }
@media (min-width: 768px) { .nav-logo img { height: 56px; } }
.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-cta {
  background: var(--primary); color: var(--primary-fg);
  padding: 12px 20px; transition: color .2s;
}
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: flex; flex-direction: column; gap: 6px;
  background: none; border: none; padding: 10px;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--fg);
  transition: transform .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.nav-mobile a.mobile-cta { background: var(--primary); color: var(--primary-fg); border-bottom: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; transition: all .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { color: #fff; }
.btn-ghost { border: 1px solid var(--fg); }
.btn-ghost:hover { background: var(--primary); color: var(--primary-fg); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===== Hero ===== */
.hero { padding-top: 96px; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 60px 20px 40px; }
@media (min-width: 768px) { .hero-inner { padding: 100px 32px 60px; } }
.hero h1 {
  font-size: 13.5vw; margin-top: 24px;
}
@media (min-width: 768px) { .hero-inner { padding: 100px 0 60px; } .hero h1 { font-size: 8rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 9.5rem; } }
.hero .highlight {
  background: var(--primary); color: var(--primary-fg);
  padding: 0 12px; display: inline-block;
}
.hero-row {
  display: flex; flex-direction: column; gap: 32px;
  margin-top: 48px;
}
@media (min-width: 768px) {
  .hero-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.hero-row p { max-width: 440px; font-size: 1.05rem; color: var(--muted); margin: 0; }
.hero-image { max-width: var(--max); margin: 0 auto; padding: 0 20px 80px; }
@media (min-width: 768px) { .hero-image { padding: 0 32px 80px; } }
.hero-image img { width: 100%; height: 40vh; object-fit: cover; filter: grayscale(1); }
@media (min-width: 768px) { .hero-image img { height: 60vh; } }

/* ===== Marquee ===== */
.marquee {
  overflow: hidden; background: var(--primary); color: var(--primary-fg);
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex; gap: 32px; width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: "Anton", sans-serif; text-transform: uppercase;
  font-size: 1.75rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 32px;
}
@media (min-width: 768px) { .marquee-track span { font-size: 2.25rem; } }
.marquee-track .sep { color: rgba(247,246,242,0.4); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.section { border-bottom: 1px solid var(--border); padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.section-head {
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) {
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.section h2 { font-size: 3rem; margin-top: 16px; }
@media (min-width: 768px) { .section h2 { font-size: 4.5rem; } }

/* ===== Highlight cards (home) ===== */
.grid-3 {
  margin-top: 64px;
  display: grid; gap: 1px; background: var(--border);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .3s, color .3s;
}
.card:hover { background: var(--primary); color: var(--primary-fg); }
.card:hover .muted, .card:hover .arrow-link { color: rgba(247,246,242,0.7); }
.card .num { font-family: "Anton", sans-serif; font-size: 2rem; color: var(--muted); }
.card h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 2rem; margin: 24px 0 16px; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .arrow-link { margin-top: 40px; font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }

/* ===== Services (detailed rows) ===== */
.service-row {
  display: grid; gap: 24px; padding: 48px 0;
  border-top: 1px solid var(--fg);
  grid-template-columns: 1fr;
  transition: background .3s, color .3s;
}
.service-row:hover { background: var(--primary); color: var(--primary-fg); padding-left: 16px; padding-right: 16px; }
.service-row:hover .muted, .service-row:hover .service-points li { color: rgba(247,246,242,0.75); border-color: rgba(247,246,242,0.2); }
@media (min-width: 768px) {
  .service-row { grid-template-columns: 1fr 3fr 2fr; gap: 40px; padding: 56px 16px; }
}
.service-row .num { font-family: "Anton", sans-serif; font-size: 3rem; color: var(--muted); }
.service-row h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 2.25rem; margin: 0; }
@media (min-width: 768px) { .service-row h3 { font-size: 3rem; } }
.service-row .tagline { text-transform: uppercase; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; margin: 12px 0; }
.service-row .desc { color: var(--muted); max-width: 480px; }
.service-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.service-points li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600;
}

/* ===== About / Dark panel ===== */
.dark-section {
  background: var(--primary); color: var(--primary-fg);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
@media (min-width: 768px) { .dark-section { padding: 112px 0; } }
.dark-section h2 { font-size: 2.5rem; }
@media (min-width: 768px) { .dark-section h2 { font-size: 3.75rem; } }
.dark-section .two-col {
  display: grid; gap: 40px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .dark-section .two-col { grid-template-columns: 1fr 1fr; } }
.dark-section .btn-ghost { border-color: var(--primary-fg); }
.dark-section .btn-ghost:hover { background: var(--bg); color: var(--fg); }

.stats {
  margin-top: 80px;
  display: grid; gap: 1px; background: rgba(247,246,242,0.2);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--primary); padding: 32px; }
.stat .val { font-family: "Anton", sans-serif; font-size: 2.5rem; }
@media (min-width: 768px) { .stat .val { font-size: 3.75rem; } }
.stat .lbl { margin-top: 8px; color: rgba(247,246,242,0.5); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; }

/* ===== Process ===== */
.process-grid {
  margin-top: 56px;
  display: grid; gap: 1px; background: var(--border);
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-item { background: var(--bg); padding: 32px; transition: background .3s, color .3s; }
.process-item:hover { background: var(--primary); color: var(--primary-fg); }
.process-item:hover .muted { color: rgba(247,246,242,0.7); }
.process-item h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.75rem; margin: 24px 0 12px; }

/* ===== Page header ===== */
.page-header { padding-top: 128px; padding-bottom: 64px; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .page-header { padding-top: 160px; padding-bottom: 96px; } }
.crumb { display: flex; gap: 12px; color: var(--muted); }
.crumb .current { color: var(--fg); }
.page-header h1 { font-size: 3.5rem; margin-top: 32px; }
@media (min-width: 768px) { .page-header h1 { font-size: 8rem; } }
.page-header .intro { margin-top: 32px; max-width: 640px; color: var(--muted); font-size: 1.1rem; }

/* ===== Work grid ===== */
.work-grid {
  display: grid; gap: 24px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .work-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.work-item { position: relative; overflow: hidden; background: var(--primary); aspect-ratio: 4 / 5; }
.work-item.wide { aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .work-item.wide { grid-column: span 2; } }
.work-item .num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Anton", sans-serif; font-size: 6rem; color: rgba(247,246,242,0.1);
}
@media (min-width: 768px) { .work-item .num { font-size: 9rem; } }
.work-item .meta {
  position: absolute; inset: auto 0 0 0; padding: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; color: var(--primary-fg);
}
@media (min-width: 768px) { .work-item .meta { padding: 32px; } }
.work-item h3 { font-family: "Anton", sans-serif; text-transform: uppercase; font-size: 1.5rem; margin: 8px 0 0; }
@media (min-width: 768px) { .work-item h3 { font-size: 2.25rem; } }
.work-item .tag, .work-item .meta-tag { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(247,246,242,0.6); }
.work-item .border { position: absolute; inset: 0; border: 1px solid rgba(247,246,242,0.1); transition: border-color .2s; }
.work-item:hover .border { border-color: rgba(247,246,242,0.5); }

/* ===== CTA / big finisher ===== */
.cta { text-align: center; padding: 96px 0; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .cta { padding: 144px 0; } }
.cta h2 { font-size: 12vw; margin-top: 24px; }
@media (min-width: 768px) { .cta h2 { font-size: 7rem; } }
@media (min-width: 1024px) { .cta h2 { font-size: 9rem; } }
.cta-buttons { margin-top: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ===== Contact form ===== */
.contact-grid {
  display: grid; gap: 64px; grid-template-columns: 1fr;
  padding: 64px 0;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 3fr 2fr; padding: 96px 0; } }
.contact-grid form { padding-left: 0; }
@media (min-width: 768px) { .contact-grid form { padding-left: 48px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  border: 1px solid var(--border); padding: 10px 16px;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700;
  background: none; color: var(--muted);
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.active { background: var(--primary); color: var(--primary-fg); border-color: var(--fg); }
.field { margin-top: 24px; }
.field label { font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--fg);
  padding: 12px 0; font-size: 1.1rem; font-family: inherit; color: var(--fg);
  margin-top: 12px; outline: none;
}
.field textarea { resize: vertical; min-height: 140px; }
.two-fields { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 768px) { .two-fields { grid-template-columns: 1fr 1fr; } }
.contact-side .block { margin-bottom: 40px; }
.contact-side .block .val { display: block; margin-top: 12px; font-size: 1.6rem; }
@media (min-width: 768px) { .contact-side .block .val { font-size: 1.9rem; } }
.contact-side ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 1.05rem; }
.contact-side ul li { margin-bottom: 8px; }

/* ===== Footer ===== */
.footer { background: var(--primary); color: var(--primary-fg); padding-top: 50px; }

.footer > .container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (min-width: 768px) { .footer > .container { padding: 0 48px; } }
@media (min-width: 1200px) { .footer > .container { padding: 0 80px; } }

.footer-grid {
  display: grid; gap: 48px; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 64px; } }

.footer-brand img { height: 64px; filter: invert(1); }
.footer-brand p {
  margin-top: 20px; max-width: 360px;
  color: rgba(247,246,242,0.55);
  font-size: 0.95rem; line-height: 1.7;
}

.footer-label {
  font-family: "Manrope", sans-serif;
  text-transform: uppercase; letter-spacing: 0.25em;
  font-size: 0.7rem; font-weight: 700;
  color: rgba(247,246,242,0.4);
  margin: 0 0 20px;
}

.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-nav a, .footer-info a {
  color: rgba(247,246,242,0.75);
  font-size: 0.95rem;
  transition: color .2s;
  width: fit-content;
}
.footer-nav a:hover, .footer-info a:hover { color: #fff; }
.footer-nav a::after {
  content: ''; display: block; width: 0; height: 1px;
  background: #fff; transition: width .25s;
}
.footer-nav a:hover::after { width: 100%; }

.footer-info { display: flex; flex-direction: column; gap: 14px; }

.footer-address {
  color: rgba(247,246,242,0.55);
  font-size: 0.9rem; line-height: 1.7;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(247,246,242,0.08);
  margin-top: 56px; padding: 24px 0;
  font-size: 0.75rem; color: rgba(247,246,242,0.35);
}
.footer-bottom-inner {
  display: flex; flex-direction: column; gap: 8px; justify-content: space-between;
}
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; } }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
