/* ==========================================================
   STYLE.CSS — Highland Haus Static Site
   ========================================================== */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--surface-base);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ==========================================================
   LOADER
   ========================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader__logo {
  width: 200px;
  opacity: 0;
  animation: loaderFadeIn 0.8s ease forwards;
}
@keyframes loaderFadeIn {
  to { opacity: 1; }
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 3rem;
  box-shadow: var(--shadow-md);
}

.nav__logo img {
  height: 55px;
  transition: height 0.4s ease, filter 0.4s ease;
}
.nav--scrolled .nav__logo img {
  height: 45px;
}

/* Logo color inversion when on hero (dark bg) */
.nav:not(.nav--scrolled) .nav__logo img {
  filter: brightness(0) invert(1);
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color 0.3s ease;
}
.nav--scrolled .nav__link {
  color: var(--charcoal);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.nav__hamburger span {
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.nav--scrolled .nav__hamburger span {
  background: var(--charcoal);
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--surface-overlay);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.nav__mobile-menu.active {
  display: flex;
  opacity: 1;
}
.nav__mobile-menu a {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  color: var(--white);
  transition: color 0.3s ease;
}
.nav__mobile-menu a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav--scrolled { padding: 0.75rem 1.5rem; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__bg img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
  /* Start ~100px higher so subjects sit better in frame */
  transform: translate3d(0, -100px, 0) scale(1.05);
  transition: none;
}
/* Gentle ken-burns when reduced-motion / no JS parallax */
@media (prefers-reduced-motion: reduce) {
  .hero__bg img {
    height: 100%;
    transform: none;
    will-change: auto;
  }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.35) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroEnter 1s ease 0.5s forwards;
}
@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}
.hero__title {
  font-size: var(--text-6xl);
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero__subtitle {
  font-family: var(--font-elegant);
  font-size: var(--text-xl);
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.5rem;
  letter-spacing: var(--tracking-wide);
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}
.hero__scroll-indicator span {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--white);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Page hero (shorter, for inner pages) */
.hero--page {
  height: 60vh;
  min-height: 400px;
}
.hero--page .hero__title {
  font-size: var(--text-5xl);
}

@media (max-width: 768px) {
  .hero { min-height: 500px; }
  .hero__title { font-size: var(--text-4xl); }
  .hero--page { height: 50vh; min-height: 350px; }
  .hero--page .hero__title { font-size: var(--text-3xl); }
}

/* ==========================================================
   SECTIONS & LAYOUT
   ========================================================== */
.section {
  padding: 6rem 3rem;
}
.section--dark {
  background: var(--charcoal);
  color: var(--text-on-dark);
}
.section--dark h2, .section--dark h3, .section--dark h4 {
  color: var(--text-on-dark);
}
.section--accent {
  background: var(--sand);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.container--wide {
  max-width: 1400px;
  margin: 0 auto;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 3rem;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 4rem 1.5rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Two-column feature layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 768px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 2rem; direction: ltr; }
}

/* ==========================================================
   SCROLL ANIMATIONS (reveal on scroll)
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal--scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.revealed {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
  background: transparent;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--charcoal);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: -1;
}
.btn:hover {
  color: var(--white);
}
.btn:hover::before {
  transform: translateY(0);
}

.btn--gold {
  border-color: var(--gold);
  color: var(--gold);
}
.btn--gold::before {
  background: var(--gold);
}
.btn--gold:hover {
  color: var(--white);
}

.btn--filled {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn--filled::before {
  background: var(--gold);
}

.btn--white {
  border-color: var(--white);
  color: var(--white);
}
.btn--white::before {
  background: var(--white);
}
.btn--white:hover {
  color: var(--charcoal);
}

/* ==========================================================
   SECTION HEADERS
   ========================================================== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}
.section-header__line {
  width: 60px;
  height: 1.5px;
  background: var(--gold);
  margin: 1.5rem auto 0;
}

/* ==========================================================
   IMAGE STYLES
   ========================================================== */
.img-wrapper {
  overflow: hidden;
  position: relative;
}
.img-wrapper img {
  transition: transform 0.6s ease;
}
.img-wrapper:hover img {
  transform: scale(1.05);
}

.img-parallax {
  overflow: hidden;
  position: relative;
}
.img-parallax img {
  height: 120%;
  object-fit: cover;
  transform: translateY(-10%);
  transition: transform 0.1s linear;
}

/* ==========================================================
   TEAM ROLES (About page)
   ========================================================== */
.team-role {
  font-family: var(--font-elegant);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  margin: 0.5rem 0 0;
}

/* ==========================================================
   VALUES / PILLARS (About page)
   ========================================================== */
.value-card {
  text-align: center;
  padding: 3rem 2rem;
}
.value-card h3 {
  font-size: var(--text-3xl);
  margin-bottom: 1.25rem;
}
.value-card p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* ==========================================================
   TESTIMONIALS
   ========================================================== */
.testimonials {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  transition: transform 0.6s ease;
}
.testimonial {
  min-width: 100%;
  padding: 0 2rem;
  text-align: center;
}
.testimonial__quote {
  font-family: var(--font-elegant);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: var(--leading-loose);
  max-width: 800px;
  margin: 0 auto 2rem;
  font-style: italic;
  color: var(--text-secondary);
}
.testimonial__author {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--text-primary);
}
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
}
.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-default);
  transition: all 0.3s ease;
  cursor: pointer;
}
.testimonial-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ==========================================================
   PORTFOLIO GRID
   ========================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover img {
  transform: scale(1.08);
}
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,43,42,0.85) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}
.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--white);
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__title {
  transform: translateY(0);
}
.portfolio-card__location {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  letter-spacing: var(--tracking-wide);
  margin-top: 0.25rem;
  transform: translateY(10px);
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-card__location {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   PROJECT DETAIL PAGE
   ========================================================== */
.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  margin-bottom: 2rem;
}
.project-back:hover {
  color: var(--charcoal);
}
.project-back svg {
  width: 16px;
  height: 16px;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
}
.project-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: 0.5rem;
}
.project-header__location {
  font-family: var(--font-elegant);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  letter-spacing: var(--tracking-wide);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.project-gallery__item {
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-gallery__item:hover img {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-header h1 { font-size: var(--text-3xl); }
}

/* Before/After toggle */
.ba-section { margin-top: 3rem; }
.ba-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.ba-toggle__btn {
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  border: 1.5px solid var(--charcoal);
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.3s ease;
}
.ba-toggle__btn:first-child { border-right: none; }
.ba-toggle__btn.active {
  background: var(--charcoal);
  color: var(--white);
}

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  transition: opacity 0.3s ease;
}
.lightbox__nav:hover { opacity: 0.7; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ==========================================================
   PROCESS / SERVICES STEPS
   ========================================================== */
.process-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.process-step__number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--gold);
  min-width: 60px;
}
.process-step h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0.75rem;
}

/* Services page layout */
.services-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.services-intro p {
  font-family: var(--font-elegant);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: var(--leading-loose);
  color: var(--text-secondary);
  margin: 0;
}

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

.process-card {
  background: var(--surface-elevated);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.process-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.process-card__number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.process-card h3 {
  font-size: var(--text-2xl);
  margin: 0;
}
.process-card p {
  color: var(--text-secondary);
  margin: 0;
  font-size: var(--text-base);
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .process-card {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================
   CONNECT / CONTACT
   ========================================================== */
.connect-card {
  text-align: center;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.connect-card:last-child { border-bottom: none; }
.connect-card h3 {
  font-size: var(--text-3xl);
  margin-bottom: 1rem;
}
.connect-card p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--charcoal);
  color: var(--text-on-dark);
  padding: 4rem 3rem 2rem;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer__tagline {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.8;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
}
.footer__nav a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-on-dark-secondary);
  transition: color 0.3s ease;
}
.footer__nav a:hover { color: var(--gold); }
.footer__logo {
  display: flex;
  justify-content: flex-end;
}
.footer__logo img {
  height: 50px;
  filter: brightness(0) invert(1);
}
.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.footer__social a {
  color: var(--text-on-dark-secondary);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}
.footer__social a:hover { color: var(--gold); }
.footer__bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-on-dark-secondary);
}

@media (max-width: 768px) {
  .footer { padding: 3rem 1.5rem 1.5rem; }
  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .footer__logo { justify-content: center; }
}

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
  position: relative;
  padding: 6rem 3rem;
  text-align: center;
  overflow: hidden;
}
.cta-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.cta-banner__bg img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 130%;
  object-fit: cover;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05);
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner__bg img {
    height: 100%;
    transform: none;
    will-change: auto;
  }
}
.cta-banner__overlay {
  position: absolute;
  inset: 0;
  background: var(--surface-overlay);
  z-index: 1;
}
.cta-banner__content {
  position: relative;
  z-index: 2;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.cta-banner p {
  color: var(--text-on-dark-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: var(--text-lg);
}

/* ==========================================================
   DESIGNER BIO SECTION
   ========================================================== */
.designer {
  position: relative;
}
.designer__image {
  overflow: hidden;
}
.designer__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 500px;
}
.designer__content h2 {
  margin-bottom: 1.5rem;
}
.designer__content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ==========================================================
   PORTFOLIO PAGE — staggered gallery (mirrors WP StaggerGallery)
   ========================================================== */
.page-portfolio .nav:not(.nav--scrolled) .nav__logo img {
  filter: none;
}
.page-portfolio .nav:not(.nav--scrolled) .nav__link {
  color: var(--charcoal);
}
.page-portfolio .nav:not(.nav--scrolled) .nav__hamburger span {
  background: var(--charcoal);
}

.portfolio-page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
}
.portfolio-page-header__title {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin: 0;
}
.section--portfolio-gallery {
  padding-top: 0;
}

.sg-gallery-wrapper {
  margin: 0 0 1.5rem;
}

.sg-gallery {
  display: grid;
  gap: var(--sg-gap, 1rem);
}

.sg-layout-staggered {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sg-gallery-item {
  margin: 0;
  position: relative;
}

.sg-layout-staggered .sg-gallery-item.sg-span-2 {
  grid-column: span 2;
}

.sg-gallery-item a {
  display: block;
  overflow: hidden;
  border-radius: var(--sg-radius, 2px);
  position: relative;
  height: var(--sg-image-height, 310px);
  cursor: pointer;
}

.sg-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.25s ease !important;
}

.sg-hover-scale .sg-gallery-item a:hover .sg-image,
.sg-hover-scale .sg-gallery-item a:focus .sg-image {
  transform: scale(1.03);
}

/* Load-more pagination: hide items beyond current page */
.sg-gallery-item.is-hidden {
  display: none;
}

.sg-gallery-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.sg-load-more {
  min-width: 168px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--charcoal);
  border-radius: 5px;
  background: transparent;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sg-load-more:hover,
.sg-load-more:focus {
  border-color: #555;
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}
.sg-load-more.sg-hidden {
  display: none;
}

@media (max-width: 991px) {
  .sg-layout-staggered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sg-layout-staggered .sg-gallery-item.sg-span-2 {
    grid-column: span 2;
  }
}

@media (max-width: 639px) {
  .portfolio-page-header {
    padding: 6.5rem 1.5rem 2rem;
  }
  .portfolio-page-header__title {
    font-size: 2rem;
  }
  .sg-layout-staggered {
    grid-template-columns: 1fr;
  }
  .sg-layout-staggered .sg-gallery-item.sg-span-2 {
    grid-column: span 1;
  }
  .sg-gallery-item a {
    height: calc(var(--sg-image-height, 310px) * 0.82);
  }
}

/* ==========================================================
   UTILITY
   ========================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal--left, .reveal--right, .reveal--scale {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

.footer__bottom a { color: inherit; }
