:root {
  --bg: #f7f5f0;
  --surface: #fffdf9;
  --text: #191b1a;
  --muted: #62665f;
  --accent: #1f5a48;
  --accent-deep: #164436;
  --accent-soft: #e3ece7;
  --gold: #9a7b32;
  --gold-light: #c9a85c;
  --line: #e4dfd3;
  --dark: #122b23;
  --darker: #0e211b;
  --cream: #f4f0e6;
  --shadow: 0 1px 2px rgba(20, 24, 22, 0.05);
  --shadow-lift: 0 18px 44px rgba(20, 24, 22, 0.12);
  --radius: 0.75rem;
  --radius-media: 0.6rem;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(247, 245, 240, 0.88);
  border-bottom: 1px solid rgba(228, 223, 211, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  display: block;
  object-fit: cover;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.45rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-deep);
  box-shadow: 0 10px 24px rgba(31, 90, 72, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #cfc9ba;
}

.btn-ghost:hover {
  background: rgba(25, 27, 26, 0.05);
  box-shadow: none;
}

.btn-sm {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
}

/* ---------- Typography ---------- */

.kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.05;
  max-width: 17ch;
}

h2 {
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  max-width: 26ch;
}

/* ---------- Hero (dark, full-bleed) ---------- */

.hero {
  padding: clamp(5.5rem, 11vw, 9rem) 0 clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10, 16, 13, 0.92) 0%, rgba(10, 16, 13, 0.78) 42%, rgba(10, 16, 13, 0.5) 75%, rgba(10, 16, 13, 0.42) 100%),
    url("marble%20waterfall/WhatsApp%20Image%202026-02-25%20at%2010.11.42%20PM.jpeg") center center / cover no-repeat;
  pointer-events: none;
  animation: hero-drift 28s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.1);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.hero .kicker {
  color: var(--gold-light);
}

.hero h1 {
  color: #fbf8f0;
}

.hero-text {
  max-width: 54ch;
  margin: 1.4rem 0 1.9rem;
  color: rgba(244, 240, 230, 0.78);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-ghost {
  color: var(--cream);
  border-color: rgba(244, 240, 230, 0.38);
}

.hero .btn-ghost:hover {
  background: rgba(244, 240, 230, 0.1);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
  max-width: 44rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  background: rgba(244, 240, 230, 0.08);
  border: 1px solid rgba(244, 240, 230, 0.22);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(244, 240, 230, 0.9);
}

/* ---------- Stats band ---------- */

.stats-band {
  padding: clamp(2.8rem, 5vw, 4.2rem) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(217, 230, 223, 0.35), rgba(255, 253, 249, 0.6));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.stat-value {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.stats-note {
  margin: 1.8rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  scroll-margin-top: 5.5rem;
}

.section-accent {
  background: linear-gradient(180deg, rgba(217, 230, 223, 0.4), rgba(255, 253, 249, 0.65));
  border-top: 1px solid rgba(31, 90, 72, 0.1);
  border-bottom: 1px solid rgba(31, 90, 72, 0.1);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.section-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 56ch;
}

/* ---------- Dark band (contact, CTA) ---------- */

.section-dark {
  background: var(--dark);
  color: var(--cream);
}

.section-dark .kicker {
  color: var(--gold-light);
}

.section-dark h2,
.section-dark h3 {
  color: #f9f5ec;
}

.section-dark p {
  color: rgba(244, 240, 230, 0.72);
}

.section-dark .btn {
  background: var(--cream);
  color: var(--accent-deep);
}

.section-dark .btn:hover {
  background: #fffdf6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.section-dark .btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 240, 230, 0.35);
}

.section-dark .btn-ghost:hover {
  background: rgba(244, 240, 230, 0.09);
}

.section-dark .contact-details a {
  color: var(--cream);
}

.section-dark .social-link {
  background: rgba(244, 240, 230, 0.07);
  border-color: rgba(244, 240, 230, 0.2);
  color: var(--cream);
}

.section-dark .social-link:hover {
  background: rgba(244, 240, 230, 0.14);
  border-color: rgba(244, 240, 230, 0.34);
}

/* ---------- Service list (typography rows) ---------- */

.service-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: clamp(1.3rem, 2.5vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.service-row h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  transition: color 180ms ease;
}

.service-row:hover h3 {
  color: var(--accent);
}

.service-row p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.98rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.service-cta::after {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  transition: width 220ms ease;
}

.service-row:hover .service-cta::after {
  width: 2.6rem;
}

/* ---------- Text grid (sectors, typography only) ---------- */

.text-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 2.8rem) clamp(2rem, 5vw, 4rem);
}

.text-grid article {
  padding-left: 1.2rem;
  border-left: 1px solid rgba(31, 90, 72, 0.3);
}

.text-grid h3 {
  font-size: 1.18rem;
  margin-bottom: 0.4rem;
}

.text-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Case list (typography rows) ---------- */

.case-list {
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.case-row {
  display: grid;
  grid-template-columns: minmax(11rem, 18rem) minmax(0, 1fr);
  gap: 0.5rem 2rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.case-row h3 {
  font-size: 1.05rem;
}

.case-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Card grids (kept for landing pages) ---------- */

.services-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sector-grid,
.case-study-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.services-grid article,
.sector-grid article,
.case-study-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.services-grid h3,
.sector-grid h3,
.case-study-grid h3 {
  font-size: 1.04rem;
  margin-bottom: 0.45rem;
}

.services-grid p,
.sector-grid p,
.case-study-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Work list (portfolio) ---------- */

.work-list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: clamp(4rem, 9vw, 7rem);
}

.work-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(1.6rem, 4.5vw, 4rem);
  align-items: center;
}

.work-entry:nth-child(even) .work-media {
  order: 2;
}

.work-entry:nth-child(even) .work-info {
  order: 1;
}

.work-media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-media);
  background: #dcdcd6;
  box-shadow: var(--shadow);
}

.work-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

a.work-media:hover img {
  transform: scale(1.045);
}

.work-index {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: rgba(25, 27, 26, 0.34);
}

.work-info h3 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.work-info h3 a {
  transition: color 180ms ease;
}

.work-info h3 a:hover {
  color: var(--accent);
}

.work-blurb {
  margin: 0.9rem 0 1.5rem;
  color: var(--muted);
  max-width: 46ch;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.78rem 1.5rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

a.work-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(31, 90, 72, 0.28);
}

.work-arrow {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 200ms ease;
}

a.work-link:hover .work-arrow {
  transform: translateX(4px);
}

.work-count {
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: inherit;
  opacity: 0.68;
}

.work-count-plain {
  margin: 0;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Masonry gallery ---------- */

.masonry {
  margin-top: 2rem;
  columns: 3;
  column-gap: 0.9rem;
}

.masonry-card {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  background: #dcdcd6;
  border-radius: var(--radius-media);
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.masonry-card img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 500ms ease;
}

.masonry-card img.loaded {
  opacity: 1;
}

.masonry-card:hover img {
  transform: scale(1.035);
}

/* ---------- Page hero (landing pages) ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(247, 245, 240, 0.97) 0%, rgba(247, 245, 240, 0.9) 34%, rgba(247, 245, 240, 0.66) 58%, rgba(231, 238, 234, 0.74) 100%),
    linear-gradient(135deg, rgba(31, 90, 72, 0.14), transparent 42%),
    var(--hero-image) center center / cover no-repeat;
  transform: scale(1.03);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
}

.breadcrumbs a {
  color: var(--accent);
}

.page-lead {
  max-width: 62ch;
  margin: 1.2rem 0 1.7rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-summary,
.related-grid,
.showcase-grid {
  display: grid;
  gap: 1rem;
}

.page-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.summary-card,
.detail-panel,
.faq-item,
.related-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.summary-card,
.faq-item,
.related-card {
  padding: 1.35rem 1.25rem;
}

.summary-card p:last-child,
.detail-panel p:last-child,
.faq-item p:last-child,
.related-card p:last-child {
  margin-bottom: 0;
}

.summary-card strong,
.related-kicker {
  display: block;
  margin-bottom: 0.4rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.2rem;
  align-items: start;
}

.detail-panel {
  padding: 1.5rem;
}

.detail-panel h3 {
  margin-bottom: 0.5rem;
}

.detail-panel p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.checklist li {
  padding: 0.85rem 1rem;
  border-radius: 0.6rem;
  background: rgba(31, 90, 72, 0.05);
  border: 1px solid rgba(31, 90, 72, 0.13);
  color: var(--text);
  font-weight: 600;
}

.showcase-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.showcase-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-media);
  box-shadow: var(--shadow);
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.faq-item h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.faq-item p {
  color: var(--muted);
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.related-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 90, 72, 0.25);
  box-shadow: var(--shadow-lift);
}

.related-card p {
  color: var(--muted);
  margin: 0;
}

.related-card h3 {
  font-size: 1.08rem;
}

.related-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 800;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.cta-panel {
  background: var(--dark);
  border: 0;
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4.5vw, 3rem);
  box-shadow: var(--shadow-lift);
  color: var(--cream);
}

.cta-panel .kicker {
  color: var(--gold-light);
}

.cta-panel h2,
.cta-panel h3 {
  color: #f9f5ec;
}

.cta-panel p {
  margin: 0.8rem 0 0;
  color: rgba(244, 240, 230, 0.72);
  max-width: 60ch;
}

.cta-panel .btn {
  background: var(--cream);
  color: var(--accent-deep);
}

.cta-panel .btn:hover {
  background: #fffdf6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.cta-panel .btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 240, 230, 0.35);
}

.cta-panel .btn-ghost:hover {
  background: rgba(244, 240, 230, 0.09);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.about-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-points {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-points p {
  margin: 0;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

/* ---------- Contact ---------- */

.contact-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.contact-card p {
  margin: 0.8rem 0 0;
}

.contact-details {
  line-height: 1.7;
  margin-top: 1.1rem;
}

.contact-details a {
  text-decoration: underline;
  text-underline-offset: 0.18rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  background: rgba(31, 90, 72, 0.07);
  border: 1px solid rgba(31, 90, 72, 0.16);
  color: var(--accent);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: rgba(31, 90, 72, 0.13);
  border-color: rgba(31, 90, 72, 0.28);
}

.social-link svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 0.6rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--darker);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.8rem, 6vw, 4.2rem) 0 2rem;
}

.footer-logo {
  margin: 0 0 0.6rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #f9f5ec;
}

.footer-brand p:not(.footer-logo) {
  margin: 0;
  color: rgba(244, 240, 230, 0.62);
  max-width: 32ch;
  font-size: 0.95rem;
}

.footer-heading {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.footer-nav {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-nav a {
  color: rgba(244, 240, 230, 0.74);
  font-size: 0.95rem;
  transition: color 160ms ease;
  width: fit-content;
}

.footer-nav a:hover {
  color: #fbf8f0;
}

.footer-contact {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.footer-contact a {
  color: rgba(244, 240, 230, 0.74);
  font-size: 0.95rem;
  transition: color 160ms ease;
  width: fit-content;
}

.footer-contact a:hover {
  color: #fbf8f0;
}

.footer-contact .social-links {
  margin-top: 0.6rem;
}

.footer-contact .social-link {
  background: rgba(244, 240, 230, 0.07);
  border-color: rgba(244, 240, 230, 0.2);
  color: var(--cream);
}

.footer-contact .social-link:hover {
  background: rgba(244, 240, 230, 0.14);
  border-color: rgba(244, 240, 230, 0.34);
}

.footer-base {
  border-top: 1px solid rgba(244, 240, 230, 0.12);
  padding: 1.2rem 0 1.6rem;
  text-align: center;
}

.footer-base p {
  margin: 0;
  color: rgba(244, 240, 230, 0.45);
  font-size: 0.88rem;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 10, 0.92);
  z-index: 50;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lightbox.open {
  opacity: 1;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1200px, 95vw);
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 0.4rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transform: scale(0.975);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox button {
  border: 0;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 400;
  transition: background-color 180ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.9rem;
  padding-bottom: 0.35rem;
  transition: background-color 180ms ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox p {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  color: #e7e7e7;
  margin: 0;
  font-weight: 600;
  text-align: center;
}

/* ---------- Reveal & stagger animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(3.2rem);
  transition: opacity 640ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal .stagger > * {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 560ms ease, transform 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.in .stagger > * {
  opacity: 1;
  transform: none;
}

.reveal.in .stagger > *:nth-child(1) { transition-delay: 70ms; }
.reveal.in .stagger > *:nth-child(2) { transition-delay: 140ms; }
.reveal.in .stagger > *:nth-child(3) { transition-delay: 210ms; }
.reveal.in .stagger > *:nth-child(4) { transition-delay: 280ms; }
.reveal.in .stagger > *:nth-child(5) { transition-delay: 350ms; }
.reveal.in .stagger > *:nth-child(6) { transition-delay: 420ms; }
.reveal.in .stagger > *:nth-child(7) { transition-delay: 490ms; }
.reveal.in .stagger > *:nth-child(8) { transition-delay: 560ms; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-summary,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .masonry {
    columns: 2;
  }

  .work-entry {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    align-items: start;
  }

  .work-entry:nth-child(even) .work-media {
    order: 0;
  }

  .work-entry:nth-child(even) .work-info {
    order: 0;
  }

  .text-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-actions {
    justify-content: start;
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .site-header.nav-open .nav-links {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(247, 245, 240, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(20, 24, 22, 0.12);
  }

  .site-header.nav-open .nav-links a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--text);
  }

  .site-header.nav-open .nav-links a:last-child {
    border-bottom: 0;
  }

  .btn-sm {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .services-grid,
  .page-summary,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .service-num {
    margin-bottom: 0.1rem;
  }

  .service-cta {
    margin-top: 0.7rem;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lightbox {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    padding: 0.8rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.6rem;
  }
}

@media (max-width: 460px) {
  .services-grid,
  .page-summary,
  .related-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.in,
  .reveal .stagger > *,
  .reveal.in .stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-backdrop {
    animation: none;
  }

  .work-media img,
  .masonry-card img,
  .lightbox,
  .lightbox img {
    transition: none;
    transform: none;
  }

  .masonry-card img {
    opacity: 1;
  }
}
