/* ============================================================
   PHOTOGRAPHY TEMPLATE — style.css
   Token-driven color palette. Override --color-primary and
   --color-accent in the :root block to retheme the site.
   ============================================================ */

/* ============================================================
   1. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ============================================================
   2. CSS CUSTOM PROPERTIES — LIGHT MODE (default)
   ============================================================ */
:root {

  /* — Colors (token-replaceable per account) — */
  --color-primary: {
      {
      primary_color
    }
  }

  ;

  --color-accent: {
      {
      accent_color
    }
  }

  ;

  /* — Light mode palette (default) — */
  --color-bg: #f9f6f1;
  --color-bg-alt: #f0ebe2;
  --color-surface: #ffffff;
  --color-border: rgba(0, 0, 0, 0.09);
  --color-text: #1c1a18;
  --color-muted: #6e6259;
  --color-overlay: rgba(10, 10, 10, 0.45);

  /* — Typography — */
  --font-serif: 'Cormorant Garamond',
  Georgia,
  serif;
  --font-sans: 'Inter',
  system-ui,
  sans-serif;

  /* — Spacing scale — */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* — Transitions — */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.4s;

  /* — Border radius — */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* Dark mode overrides — applied when JS sets data-theme="dark" on <html> */
[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-bg-alt: #111111;
  --color-surface: #161616;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #f0ede8;
  --color-muted: #888480;
  --color-overlay: rgba(10, 10, 10, 0.55);
}

/* ============================================================
   3. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.hidden {
  display: none !important;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-surface);
  border-color: var(--color-text);
  text-shadow: none;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-text);
  text-shadow: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background var(--duration) var(--ease-out),
    padding var(--duration) var(--ease-out);
}

#site-nav.scrolled {
  background: rgba(249, 246, 241, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color var(--duration);
}

.nav-logo:hover {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--duration);
}

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

.nav-cta {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  color: var(--color-text) !important;
  transition: background var(--duration), color var(--duration) !important;
}

.nav-cta:hover {
  background: var(--color-text);
  color: var(--color-surface) !important;
}



/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease-out),
    opacity var(--duration);
}

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

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

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

/* ============================================================
   6. HERO SECTION — Arch Card Layout
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
}

/* The arch cards stage */
.hero-cards-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Colour blob glow — siblings of each card, injected by JS */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  filter: blur(80px);
  filter: blur(100px);
  transition: opacity 1.8s ease;
}

.hero-blob.visible {
  opacity: 1;
}

/* Individual photo card */
.hero-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.6),
    0 3px 10px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.07);
  opacity: 0;
  will-change: transform, opacity;
  transform-origin: center bottom;
  z-index: 1;
}

.hero-card.visible {
  opacity: 1;
}

.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85) saturate(0.8);
  transition: filter 0.5s ease;
}

/* Inner vignette on each card */
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.28) 0%, transparent 50%);
  border-radius: inherit;
  pointer-events: none;
}

/* Subtle film grain */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.30;
}

/* Text panel sits in the arch centre */
.hero-content {
  position: relative;
  z-index: 4;
  width: 90%;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 8rem 0 7rem;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--color-primary);
  opacity: 0.6;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--color-text);
  margin-bottom: 1.4rem;
}

.hero-title em {
  font-style: italic;
  color: var(--color-primary);
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--color-muted);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.4;
    transform: scaleY(0.7);
  }
}

/* card scatter animation keyframes */
@keyframes cardDrift {
  0% {
    transform: var(--card-transform) translateY(0px);
  }

  50% {
    transform: var(--card-transform) translateY(-6px);
  }

  100% {
    transform: var(--card-transform) translateY(0px);
  }
}

/* Mobile hero adjustments */
@media (max-width: 640px) {
  .hero-content {
    padding: 5rem 0 6rem;
  }

}

/* ============================================================
   7. STATS STRIP
   ============================================================ */
#stats {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 3rem 0;
}

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

.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid var(--color-border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-top: 0.5rem;
  display: block;
}

/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
#about {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.about-img-frame:hover img {
  transform: scale(1.04);
}

.about-accent-block {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  aspect-ratio: 1;
  background: var(--color-primary);
  opacity: 0.12;
  border-radius: var(--radius-md);
  z-index: -1;
}

/* about-badge removed */




.about-text .section-title {
  margin-bottom: 1.6rem;
}

.about-body {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.85;
  margin-bottom: 2.4rem;
}

.about-signature {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.about-signature-role {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   9. SERVICES SECTION
   ============================================================ */
#services {
  padding: var(--space-xl) 0;
  background: var(--color-bg-alt);
}

.services-header {
  text-align: center;
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.services-header .section-title {
  margin-bottom: 1rem;
}

.services-header p {
  color: var(--color-muted);
  font-size: 1rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--color-bg-alt);
  padding: 3rem 2.5rem;
  transition: background var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease-out);
}

.service-card:hover {
  background: var(--color-surface);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.8rem;
  color: var(--color-primary);
}

.service-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.service-description {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 1.6rem;
}

.service-price-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 0.3rem;
}

.service-price {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
}

/* ============================================================
   10. PORTFOLIO / GALLERY SECTION — Pinterest Masonry
   ============================================================ */
#portfolio {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.portfolio-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: 2rem;
  flex-wrap: wrap;
}

.portfolio-header-left .section-title {
  margin-bottom: 0;
}

.portfolio-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color var(--duration);
  flex-shrink: 0;
}

.portfolio-ig-link:hover {
  color: var(--color-primary);
}

.portfolio-ig-link svg {
  width: 18px;
  height: 18px;
}

/* Pinterest-style masonry via CSS columns */
.portfolio-masonry {
  columns: 3;
  column-gap: 0.75rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--color-surface);
  display: block;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out), filter 0.5s ease;
  filter: brightness(0.92);
}

.masonry-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Hover overlay with zoom icon */
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration);
  border-radius: inherit;
}

.masonry-item:hover .masonry-overlay {
  background: rgba(10, 10, 10, 0.38);
}

.masonry-overlay svg {
  width: 32px;
  height: 32px;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--duration), transform var(--duration) var(--ease-out);
}

.masonry-item:hover .masonry-overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Keep old .portfolio-grid / .portfolio-item hidden if still in DOM */
.portfolio-grid {
  display: none;
}

/* ============================================================
   11. TESTIMONIALS SECTION
   ============================================================ */
#testimonials {
  padding: var(--space-xl) 0;
  background: var(--color-bg-alt);
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  position: relative;
  transition: border-color var(--duration), transform var(--duration) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 0.6;
  opacity: 0.4;
  margin-bottom: 1.2rem;
  display: block;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.2rem;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
  fill: var(--color-primary);
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-top: 0.2rem;
}

/* ============================================================
   12. CONTACT / CTA SECTION
   ============================================================ */
#contact {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}

.contact-inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-inner .section-title {
  margin-bottom: 1.2rem;
}

.contact-sub {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: color var(--duration);
}

.contact-detail-item:hover {
  color: var(--color-text);
}

.contact-detail-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
#footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  transition: border-color var(--duration), color var(--duration), background var(--duration);
}

.footer-social-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.03);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

/* ============================================================
   16. LIGHTBOX MODAL
   ============================================================ */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 4, 4, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

#lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

#lightbox-prev {
  left: 1.5rem;
}

#lightbox-next {
  right: 1.5rem;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ============================================================
   14. RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    max-width: 480px;
    margin-inline: auto;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   15. RESPONSIVE — NAV BREAK (≤ 1024px)
   Nav switches to hamburger before text can wrap
   ============================================================ */
@media (max-width: 1024px) {

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  /* side-panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 2.5rem;
    gap: 2rem;
    background: rgba(249, 246, 241, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease-out);
    z-index: 100;
    border-left: 1px solid var(--color-border);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--color-text);
  }

  /* Dim backdrop behind side panel */
  .nav-links.open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: -1;
    pointer-events: none;
  }
}

/* ============================================================
   16. RESPONSIVE — MOBILE (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {

  /* Hero — overlapping rainbow fan on mobile */
  .hero-cards-stage {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 1rem 4rem 1rem;
    order: 2;
    width: 100%;
  }

  .hero-blob {
    display: none !important;
  }

  .hero-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 55vw !important;
    max-width: 220px !important;
    height: auto !important;
    opacity: 1 !important;
    margin-left: -28vw !important;
    flex-shrink: 0;
    transform-origin: center bottom !important;
    transition: none !important;
    box-shadow:
      0 8px 28px rgba(0, 0, 0, 0.25),
      0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  .hero-card:first-child {
    margin-left: 0 !important;
  }

  /* Fan rotations — each card tilts progressively */
  .hero-card:nth-child(1) {
    transform: rotate(-12deg) translateY(8px) !important;
    z-index: 1;
  }

  .hero-card:nth-child(2) {
    transform: rotate(-4deg) translateY(0px) !important;
    z-index: 2;
  }

  .hero-card:nth-child(3) {
    transform: rotate(4deg) translateY(0px) !important;
    z-index: 3;
  }

  .hero-card:nth-child(4) {
    transform: rotate(12deg) translateY(8px) !important;
    z-index: 4;
  }

  /* For 2 or 3 cards — graceful fallback */
  .hero-card:only-child {
    transform: rotate(0deg) !important;
    z-index: 1;
    margin-left: 0 !important;
  }

  .hero-card:first-child:nth-last-child(2) {
    transform: rotate(-6deg) translateY(4px) !important;
  }

  .hero-card:first-child:nth-last-child(2)~.hero-card {
    transform: rotate(6deg) translateY(4px) !important;
  }

  .hero-card:first-child:nth-last-child(3) {
    transform: rotate(-10deg) translateY(6px) !important;
  }

  .hero-card:first-child:nth-last-child(3)~.hero-card:nth-child(2) {
    transform: rotate(0deg) !important;
    z-index: 2;
  }

  .hero-card:first-child:nth-last-child(3)~.hero-card:nth-child(3) {
    transform: rotate(10deg) translateY(6px) !important;
    z-index: 3;
  }

  .hero-card img {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: contain !important;
  }

  #hero {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-content {
    padding: 8rem 1.5rem 3rem;
    max-width: 100%;
    order: 1;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero-scroll {
    display: none;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual {
    max-width: 100%;
  }

  .about-accent-block {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio */
  .portfolio-masonry {
    columns: 2;
  }

  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Contact / Footer */
  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  #lightbox-prev {
    left: 0.5rem;
  }

  #lightbox-next {
    right: 0.5rem;
  }
}

/* Very small screens */
@media (max-width: 420px) {
  .portfolio-masonry {
    columns: 1;
  }

  .hero-content {
    padding: 6rem 1rem 5rem;
  }
}