/* ================================================================
   Nirmaan Infrastructure — design tokens
   Palette:  plaster #F7F5F0 · limestone #ECE8DF · charcoal #201E1A
             bronze  #96702E · brass tint #C9A45C · slate #6A6458
   Type:     Marcellus (display) · Jost (body) · IBM Plex Mono (labels)
   ================================================================ */

:root {
  --plaster: #f7f5f0;
  --limestone: #ece8df;
  --charcoal: #201e1a;
  --charcoal-soft: #2b2823;
  --slate: #6a6458;
  --bronze: #96702e;
  --brass: #c9a45c;
  --line: rgba(32, 30, 26, 0.14);
  --line-dark: rgba(247, 245, 240, 0.16);

  --font-display: "Marcellus", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container: 1160px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(32, 30, 26, 0.28);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@property --sc {
  syntax: "<number>";
  initial-value: 1.1;
  inherits: true;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; }

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: 0.01em; }
h1 em { font-style: normal; color: var(--bronze); }

h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); max-width: 20ch; }

h3 { font-size: 1.32rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--bronze);
  margin-bottom: 1.1rem;
  position: relative;
  padding-left: 2.4rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1.7rem; height: 1px;
  background: var(--bronze);
}

.lead { font-size: 1.18rem; color: var(--slate); max-width: 44ch; }

.section-sub { color: var(--slate); max-width: 56ch; margin-top: 0.9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease);
}
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0.55s var(--ease);
}
.btn:hover::before { left: 130%; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.btn-solid { background: var(--charcoal); color: var(--plaster); }
.btn-solid:hover { background: var(--charcoal-soft); box-shadow: var(--shadow); }

.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--plaster); }

.btn-gold { background: var(--bronze); color: var(--plaster); }
.btn-gold:hover { background: #7e5d25; box-shadow: var(--shadow); }

.btn-whatsapp {
  background: #1faa59;
  color: #fff;
  margin-top: 2rem;
}
.btn-whatsapp:hover { background: #178b48; box-shadow: var(--shadow); }
.btn-whatsapp svg { width: 1.2rem; height: 1.2rem; }

.btn-full { width: 100%; justify-content: center; }

.text-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--bronze);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-color: var(--bronze); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.35s var(--ease);
}
.navbar.hidden { transform: translateY(-100%); }
.progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--bronze), var(--brass));
  z-index: 101;
}

.navbar.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(32, 30, 26, 0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--charcoal);
}
.brand-mark { display: flex; align-items: center; }
.brand-mark img { height: 34px; width: auto; }
.brand-text { line-height: 1.1; }
.brand-name { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--slate);
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--charcoal);
  text-decoration: none;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.btn-nav { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Faint drafting grid, fading in from the right so text stays clean */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(110% 100% at 82% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(110% 100% at 82% 30%, #000 20%, transparent 72%);
  pointer-events: none;
}
/* Soft brass glow behind the photo composition */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(620px 480px at 84% 22%, rgba(201, 164, 92, 0.14), transparent 65%);
  pointer-events: none;
}
.hero-grid > * { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(4rem, 9vh, 7rem);
}
.hero-copy h1 { margin-bottom: 1.4rem; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span {
  display: block;
  transform: translateY(110%);
  animation: riseup 0.9s var(--ease) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.18s; }
@keyframes riseup { to { transform: translateY(0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--slate);
  text-transform: uppercase;
}
.hero-meta i { width: 4px; height: 4px; background: var(--bronze); border-radius: 50%; }

.hero-art {
  position: relative;
  will-change: transform;
  padding: 1.6rem 1.6rem 2.4rem 2rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-copy { will-change: transform, opacity; }

/* Bronze offset frame peeking out at the top-right */
.hero-art::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 72%;
  height: 58%;
  border: 1px solid rgba(150, 112, 46, 0.55);
  border-radius: var(--radius);
}
.hero-photo-main {
  position: relative;
  aspect-ratio: 5 / 5.4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-side {
  position: absolute;
  left: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 3;
  border: 5px solid var(--plaster);
  border-radius: calc(var(--radius) + 3px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  top: 10%; right: 4%;
  display: flex;
  flex-direction: column;
  background: var(--charcoal);
  color: var(--plaster);
  border-radius: var(--radius);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out 2s infinite;
}
.hero-badge-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brass);
}
.hero-badge-label {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.72);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vh, 7.5rem); }
.section-tinted { background: var(--limestone); }
.section-head { margin-bottom: 3.2rem; }
.section-head h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 2px;
  margin-top: 1.1rem;
  background: var(--bronze);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) 0.25s;
}
.section-head.in h2::after { transform: scaleX(1); }
.section-cta { margin-top: 3.2rem; text-align: center; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  border-top: 2px solid var(--bronze);
  padding-top: 1.4rem;
}
.about-body p { color: var(--slate); margin-bottom: 1.2rem; }

/* ---------- Scope chips (About) ---------- */
.scope-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.6rem 0;
}
.scope-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--charcoal);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  background: var(--limestone);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.scope-chip:hover { border-color: rgba(150, 112, 46, 0.5); transform: translateY(-2px); }
.scope-chip svg { width: 1.15rem; height: 1.15rem; color: var(--bronze); flex: none; }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(120deg, var(--charcoal) 0%, #33301f 100%);
  border-block: 1px solid var(--line-dark);
  padding-block: clamp(2.6rem, 6vh, 4rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -1rem; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 70%;
  background: var(--line-dark);
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.6);
}

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--plaster);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(150, 112, 46, 0.45);
}
.card-icon { width: 42px; height: 42px; color: var(--bronze); }
.card p { color: var(--slate); font-size: 0.99rem; }
.card ul { list-style: none; margin-top: 0.2rem; }
.card ul li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.94rem;
  color: var(--charcoal);
  margin-bottom: 0.45rem;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 0.7rem; height: 1px;
  background: var(--bronze);
}
.card .text-link { margin-top: auto; padding-top: 0.6rem; }

/* ---------- Project ribbon (decorative divider) ---------- */
.ribbon {
  overflow: hidden;
  background: var(--charcoal);
  border-block: 1px solid var(--line-dark);
  padding-block: 1.4rem;
}
.ribbon-track {
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  animation: ribbon-scroll 45s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-set {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}
.ribbon img {
  height: 200px;
  width: auto;
  border-radius: var(--radius);
  object-fit: cover;
}
@keyframes ribbon-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.why-item {
  padding: 2rem 1.8rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease);
}
.why-item:hover { background: var(--limestone); }
.why-icon {
  width: 34px; height: 34px;
  color: var(--bronze);
  margin-bottom: 0.9rem;
}
.why-item h3 { font-size: 1.14rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--slate); font-size: 0.96rem; }

/* ---------- Process (dark) ---------- */
.section-dark {
  background: var(--charcoal);
  color: var(--plaster);
}
.section-dark .eyebrow { color: var(--brass); }
.section-dark .eyebrow::before { background: var(--brass); }
.section-dark .section-sub { color: rgba(247, 245, 240, 0.65); }

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-left: 1px solid var(--line-dark);
  position: relative;
  --flow: 0;
}
.process::before,
.process::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
}
.process::before { background: var(--line-dark); }
.process::after {
  background: linear-gradient(90deg, var(--bronze), var(--brass));
  transform: scaleX(var(--flow));
  transform-origin: left;
}
.step {
  padding: 1.9rem 1.4rem 0.4rem;
  border-right: 1px solid var(--line-dark);
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--charcoal-soft);
  border: 1px solid var(--line-dark);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  z-index: 1;
}
.step.lit::before {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 12px rgba(201, 164, 92, 0.55);
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(201, 164, 92, 0.4);
  margin-bottom: 1.1rem;
  transition: color 0.4s var(--ease);
}
.step.lit .step-num { color: var(--brass); }
.step h3 { font-size: 1.16rem; margin-bottom: 0.55rem; }
.step p { font-size: 0.92rem; color: rgba(247, 245, 240, 0.62); }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.project {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--plaster);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.project:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.project-media {
  aspect-ratio: 4 / 3;
  display: block;
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 0;
  padding: 0;
  background: var(--limestone);
  cursor: zoom-in;
}
.project-media:focus-visible { outline: 2px solid var(--bronze); outline-offset: -2px; }
.expand-icon {
  position: absolute;
  right: 0.8rem; bottom: 0.8rem;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(32, 30, 26, 0.55);
  color: var(--plaster);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  backdrop-filter: blur(4px);
}
.expand-icon svg { width: 16px; height: 16px; }
.project:hover .expand-icon,
.project-media:focus-visible .expand-icon { opacity: 1; transform: none; }
@media (hover: none) {
  .expand-icon { opacity: 1; transform: none; }
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(var(--sx, 0px), var(--sy, 0px)) scale(var(--sc, 1.1));
  transition: none;
  will-change: transform;
}
.project { --sc: 1.1; transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease), --sc 0.7s; }
.project:hover { --sc: 1.16; }
@supports not (transition: --sc 0.7s) {
  .project:hover .project-media img { transition: transform 0.7s var(--ease); }
}

.swipe-hint {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.2rem;
}

.project-info { padding: 1.2rem 1.4rem 1.4rem; }
.project-info h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.project-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--charcoal) 0%, #33301f 100%);
  color: var(--plaster);
  padding-block: clamp(4rem, 9vh, 6rem);
  text-align: center;
}
.cta-inner h2 { margin-inline: auto; margin-bottom: 0.9rem; }
.cta-inner p { color: rgba(247, 245, 240, 0.72); margin-bottom: 2rem; }
.cta-phone { color: var(--brass); text-decoration: none; font-weight: 500; }
.cta-phone:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.contact-item { margin-bottom: 1.8rem; }
.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.3rem;
}
.contact-value {
  font-size: 1.12rem;
  color: var(--charcoal);
  text-decoration: none;
}
a.contact-value:hover { color: var(--bronze); }

.contact-form {
  background: var(--limestone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--charcoal);
  background: var(--plaster);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(150, 112, 46, 0.15);
}
.botcheck { display: none; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.form-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--bronze);
  min-height: 1.4em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: var(--plaster);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-name { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.4rem; }
.footer-tag { color: var(--brass); font-size: 0.95rem; margin-bottom: 0.6rem; }
.footer-loc { color: rgba(247, 245, 240, 0.55); font-size: 0.92rem; }
.footer-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(247, 245, 240, 0.75);
  text-decoration: none;
  font-size: 0.96rem;
  margin-bottom: 0.55rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brass); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.4rem;
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.5);
}
.back-top { color: rgba(247, 245, 240, 0.7); text-decoration: none; }
.back-top:hover { color: var(--brass); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }
.delay-4 { transition-delay: 0.48s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge { animation: none; }
  .btn, .card, .project, .project-media img { transition: none; }
  .hero-title .line > span { animation: none; transform: none; }
  .hero-art { animation: none; }
  .btn::before { display: none; }
  .section-head h2::after { transition: none; transform: scaleX(1); }
  .navbar.hidden { transform: none; }
  .process::after { transform: none; }
  .ribbon-track { animation: none; }
  .step::before { background: var(--brass); border-color: var(--brass); }
  .step-num { color: var(--brass); }
  .project-media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .cards-3, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  /* Vertical timeline: the bronze flow line + nodes now run down the left */
  .process { grid-template-columns: 1fr; border-left: 0; }
  .process::before,
  .process::after { top: 0; left: 3px; width: 2px; height: 100%; }
  .process::after {
    background: linear-gradient(180deg, var(--bronze), var(--brass));
    transform: scaleY(var(--flow));
    transform-origin: top;
  }
  .step { border-right: 0; padding: 0 0 2rem 1.9rem; }
  .step:last-child { padding-bottom: 0.3rem; }
  .step::before { top: 0.35rem; left: 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 700px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--plaster);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 420px; }
  .nav-links a { width: 100%; padding: 1rem 1.5rem; }
  .nav-links a:not(.btn) { border-bottom: 1px solid var(--line); }
  .btn-nav { margin: 1rem 1.5rem 1.2rem; width: auto; }

  .cards-3, .projects-grid, .why-grid, .process { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; }
  .hero-meta { flex-wrap: wrap; }
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 700px) {
  body { font-size: 1rem; }

  /* Tighter vertical rhythm — much less scrolling */
  .section { padding-block: 3.2rem; }
  .section-head { margin-bottom: 2rem; }
  .section-head h2::after { margin-top: 0.8rem; }
  .section-cta { margin-top: 2rem; }

  .hero-grid { gap: 2rem; padding-block: 3rem 2.5rem; }
  .hero-actions { margin-top: 1.7rem; }
  .hero-meta { margin-top: 2rem; }
  .hero-art { max-width: 340px; margin-inline: auto; padding: 1rem 1rem 1.6rem 1.2rem; }
  .hero-badge { padding: 0.6rem 0.85rem; top: 6%; right: 2%; }
  .hero-badge-num { font-size: 1.3rem; }
  .hero-badge-label { font-size: 0.5rem; }

  .about-grid { gap: 1.8rem; }
  .about-lead { padding-top: 1rem; }
  .about-body p { margin-bottom: 0.9rem; }

  .cards-3 { gap: 1rem; }
  .card { padding: 1.6rem 1.4rem; gap: 0.7rem; }

  /* Why us: back to 2 compact columns instead of 6 stacked blocks */
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { padding: 1.2rem 1rem; }
  .why-icon { width: 26px; height: 26px; margin-bottom: 0.6rem; }
  .scope-chip { font-size: 0.85rem; padding: 0.4rem 0.9rem 0.4rem 0.75rem; }
  .stats-band { padding-block: 2.4rem; }
  .stats-grid { gap: 1.2rem; row-gap: 1.8rem; }
  .stat-label { font-size: 0.6rem; letter-spacing: 0.14em; }
  .why-item h3 { font-size: 1rem; }
  .why-item p { font-size: 0.85rem; line-height: 1.55; }

  .step { padding-bottom: 1.6rem; }
  .step p { font-size: 0.9rem; }

  /* Projects: swipeable snap carousel instead of a long stack */
  .swipe-hint { display: block; }
  .projects-grid {
    display: flex;
    grid-template-columns: none;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc((100% - 100vw) / 2);
    padding: 0.25rem max(calc((100vw - 100%) / 2), 1.5rem) 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .project {
    flex: 0 0 min(78%, 320px);
    scroll-snap-align: center;
  }
  .project-info { padding: 1rem 1.1rem 1.2rem; }

  .ribbon { padding-block: 1rem; }
  .ribbon img { height: 130px; }
  .ribbon-set { gap: 0.7rem; padding-right: 0.7rem; }

  .cta-band { padding-block: 3.2rem; }
  .contact-form { padding: 1.6rem 1.3rem; }
  .footer { padding-top: 3rem; }
  .footer-grid { gap: 1.8rem; padding-bottom: 2.2rem; }

  /* Snappier reveals on small screens */
  .reveal { transform: translateY(14px); transition-duration: 0.6s; }
  .delay-1 { transition-delay: 0.07s; }
  .delay-2 { transition-delay: 0.14s; }
  .delay-3 { transition-delay: 0.21s; }
  .delay-4 { transition-delay: 0.28s; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: rgba(24, 22, 19, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  padding: 1rem;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lb-figure {
  grid-column: 2;
  margin: 0 auto;
  max-width: min(1100px, 100%);
  text-align: center;
}
.lb-figure img {
  max-width: 100%;
  max-height: 82vh;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.open .lb-figure img { transform: scale(1); }
.lb-figure figcaption {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.lb-btn {
  background: rgba(247, 245, 240, 0.08);
  border: 1px solid rgba(247, 245, 240, 0.2);
  color: var(--plaster);
  font-size: 1.7rem;
  line-height: 1;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
  z-index: 1;
}
.lb-btn:hover { background: rgba(247, 245, 240, 0.18); border-color: var(--brass); }
.lb-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.lb-prev { grid-column: 1; margin-right: 0.5rem; }
.lb-next { grid-column: 3; margin-left: 0.5rem; }
.lb-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 2rem;
}

@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; padding: 0.75rem; }
  .lb-figure { grid-column: 1; }
  .lb-figure img { max-height: 72vh; }
  .lb-prev, .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .lb-prev { left: 0.6rem; }
  .lb-next { right: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lb-figure img, .expand-icon { transition: none; }
  .lb-figure img { transform: none; }
}
