/* ============================================================
   DORN ARCHITECTURE STUDIO — Portfolio System Styles
   Minimalist, high-end architectural portfolio
   ============================================================ */

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

:root {
  --color-white:       #FFFFFF;
  --color-offwhite:    #F8F7F5;
  --color-light-grey:  #EBEBEB;
  --color-mid-grey:    #9A9A9A;
  --color-charcoal:    #2A2A2A;
  --color-black:       #111111;
  --color-accent:      #FFFFFF;
  --color-accent-dark: #FFFFFF;

  --font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Jost', 'Inter', 'Helvetica Neue', sans-serif;

  --transition-fast:   0.2s ease;
  --transition-mid:    0.4s ease;
  --transition-slow:   0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --max-width: 1440px;
  --gutter: clamp(24px, 5vw, 80px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ---- TYPOGRAPHY ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
}

/* ---- BUTTONS --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--color-charcoal);
  background: transparent;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
}

.btn:hover {
  background: var(--color-charcoal);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-light {
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn-accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---- PAGE WRAPPER ---------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ---- PAGE HERO ------------------------------------------- */
.page-hero {
  padding: 100px var(--gutter) 60px;
  background: var(--color-offwhite);
  border-bottom: 1px solid var(--color-light-grey);
  margin-top: 50px;
}

.page-hero__eyebrow {
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(38px, 6vw, 80px);
  color: var(--color-black);
  max-width: 700px;
}

.page-hero__sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-mid-grey);
  max-width: 480px;
}

/* ---- LOADING STATE --------------------------------------- */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter);
  gap: 16px;
  color: var(--color-mid-grey);
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-light-grey);
  border-top-color: var(--color-charcoal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-state {
  padding: 120px var(--gutter);
  text-align: center;
  color: var(--color-mid-grey);
}

.error-state h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-charcoal);
}


/* ============================================================
   OUR PROFILE PAGE (our-profile.html)
   ============================================================ */

/* Profile Hero */
.profile-hero {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.profile-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1800&q=85');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.profile-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.72) 0%, rgba(17,17,17,0.1) 55%, transparent 100%);
}

.profile-hero:hover .profile-hero__bg {
  transform: scale(1);
}

.profile-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  max-width: var(--max-width);
  width: 100%;
}

.profile-hero__eyebrow {
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
}

.profile-hero__title {
  font-size: clamp(48px, 7vw, 110px);
  color: var(--color-white);
  line-height: 1;
}

.profile-hero__desc {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  line-height: 1.75;
}

/* Profile Intro */
.profile-intro {
  padding: 80px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.profile-intro__label {
  margin-bottom: 20px;
}

.profile-intro__text {
  font-size: clamp(22px, 2.5vw, 32px);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.45;
  color: var(--color-black);
}

.profile-intro__body {
  font-size: 14px;
  line-height: 1.85;
  color: var(--color-mid-grey);
}

.profile-intro__body p + p {
  margin-top: 16px;
}

/* Categories Section */
.categories-section {
  padding: 0 var(--gutter) 100px;
}

.categories-section__header {
  max-width: var(--max-width);
  margin: 0 auto 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.categories-section__title {
  font-size: clamp(28px, 4vw, 52px);
  color: var(--color-black);
}

.categories-section__count {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--color-mid-grey);
  font-family: var(--font-body);
  text-transform: uppercase;
  padding-bottom: 6px;
}

/* Categories Grid */
.categories-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-light-grey);
  display: block;
}

.category-card:nth-child(1) { grid-column: span 8; grid-row: span 2; aspect-ratio: unset; min-height: 540px; }
.category-card:nth-child(2) { grid-column: span 4; min-height: 260px; }
.category-card:nth-child(3) { grid-column: span 4; min-height: 260px; }
.category-card:nth-child(4) { grid-column: span 6; min-height: 320px; }
.category-card:nth-child(5) { grid-column: span 6; min-height: 320px; }

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.75) 0%, rgba(17,17,17,0.1) 55%, transparent 100%);
  transition: opacity var(--transition-mid);
}

.category-card:hover .category-card__overlay {
  opacity: 1.1;
  background: linear-gradient(to top, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.25) 60%, rgba(17,17,17,0.05) 100%);
}

.category-card:hover .category-card__img {
  transform: scale(1.06);
}

.category-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(24px, 3vw, 40px);
  z-index: 2;
}

.category-card__index {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.category-card__name {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.category-card__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-mid), transform var(--transition-mid);
}

.category-card:hover .category-card__desc {
  opacity: 1;
  transform: translateY(0);
}

.category-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  transition: border-color var(--transition-fast), gap var(--transition-fast);
}

.category-card__btn::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.category-card:hover .category-card__btn {
  border-color: var(--color-accent);
  color: var(--color-accent);
  gap: 14px;
}

.category-card:hover .category-card__btn::after {
  transform: translateX(4px);
}

/* Stats Strip */
.stats-strip {
  background: var(--color-black);
  padding: 60px var(--gutter);
}

.stats-strip__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

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

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 72px);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}


/* ============================================================
   PROJECTS PAGE (projects.html)
   ============================================================ */

/* Projects Grid */
.projects-section {
  padding: 60px var(--gutter) 100px;
}

.projects-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--color-light-grey);
  aspect-ratio: 4 / 5;
  display: block;
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-card__img {
  transform: scale(1.07);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.8) 0%, rgba(17,17,17,0.1) 50%, transparent 100%);
  opacity: 0.6;
  transition: opacity var(--transition-mid);
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  z-index: 2;
}

.project-card__category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
  display: block;
}

.project-card__name {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.project-card__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-mid), transform var(--transition-mid);
}

.project-card__action::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.project-card:hover .project-card__action {
  opacity: 1;
  transform: translateY(0);
  color: var(--color-white);
}

.project-card:hover .project-card__action::after {
  transform: translateX(4px);
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  padding: 80px 0;
  text-align: center;
  color: var(--color-mid-grey);
}

.no-results h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--color-charcoal);
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.back-link::before {
  content: '←';
  transition: transform var(--transition-fast);
}

.back-link:hover {
  color: var(--color-charcoal);
}

.back-link:hover::before {
  transform: translateX(-4px);
}


/* ============================================================
   PROJECT DETAIL PAGE (project.html)
   ============================================================ */

/* Project Hero */
.project-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease;
}

.project-hero:hover .project-hero__img {
  transform: scale(1.04);
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17,17,17,0.78) 0%, rgba(17,17,17,0.15) 60%, transparent 100%);
}

.project-hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 5vw, 80px) var(--gutter);
  max-width: var(--max-width);
  width: 100%;
}

.project-hero__category {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.project-hero__title {
  font-size: clamp(42px, 6.5vw, 96px);
  color: var(--color-white);
  line-height: 1;
}

.project-hero__meta-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.project-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-hero__meta-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.project-hero__meta-value {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

/* Project Content */
.project-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

.project-description__label {
  margin-bottom: 20px;
}

.project-description__text {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
  color: var(--color-charcoal);
  font-weight: 300;
}

/* Project Details Sidebar */
.project-details {
  background: var(--color-offwhite);
  padding: 36px 32px;
  border-top: 2px solid var(--color-charcoal);
}

.project-details__title {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
  margin-bottom: 28px;
}

.detail-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-light-grey);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-item:first-of-type {
  border-top: 1px solid var(--color-light-grey);
}

.detail-item__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-mid-grey);
}

.detail-item__value {
  font-size: 15px;
  color: var(--color-charcoal);
  font-weight: 400;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 400;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-mid-grey);
}

.status-badge.completed::before { background: #4CAF50; }
.status-badge.in-progress::before { background: var(--color-accent); animation: pulse-dot 2s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Gallery */
.gallery-section {
  padding: 80px var(--gutter) 100px;
}

.gallery-section__header {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-section__title {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--color-black);
}

.gallery-section__count {
  font-size: 12px;
  color: var(--color-mid-grey);
  letter-spacing: 0.1em;
}

.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.gallery-item {
  overflow: hidden;
  background: var(--color-light-grey);
  cursor: pointer;
}

.gallery-item:nth-child(1) { grid-column: span 8; aspect-ratio: 16/9; }
.gallery-item:nth-child(2) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item:nth-child(3) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery-item:nth-child(4) { grid-column: span 8; aspect-ratio: 16/9; }
.gallery-item:nth-child(n+5) { grid-column: span 4; aspect-ratio: 1; }

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(17,17,17,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-mid), visibility var(--transition-mid);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: rgba(255,255,255,0.6);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color var(--transition-fast);
}

.lightbox__close:hover { color: var(--color-white); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--transition-fast);
}

.lightbox__nav:hover {
  background: rgba(255,255,255,0.1);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* Related / CTA */
.related-section {
  background: var(--color-offwhite);
  padding: 80px var(--gutter);
  text-align: center;
}

.related-section__title {
  font-size: clamp(22px, 3vw, 36px);
  color: var(--color-black);
  margin-bottom: 8px;
}

.related-section__sub {
  font-size: 14px;
  color: var(--color-mid-grey);
  margin-bottom: 36px;
}


/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .category-card:nth-child(1) { grid-column: span 6; min-height: 420px; }
  .category-card:nth-child(2) { grid-column: span 3; min-height: 260px; }
  .category-card:nth-child(3) { grid-column: span 3; min-height: 260px; }
  .category-card:nth-child(4) { grid-column: span 3; min-height: 280px; }
  .category-card:nth-child(5) { grid-column: span 3; min-height: 280px; }

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

  .profile-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-content {
    grid-template-columns: 1fr;
  }

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

  .stat-item:nth-child(2),
  .stat-item:nth-child(4) { border-right: none; }

  .stat-item:nth-child(1),
  .stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

  .category-card:nth-child(n) {
    grid-column: 1;
    min-height: 280px;
  }

  .categories-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .project-card {
    aspect-ratio: 4/3;
  }

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

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 1;
  }

  .project-hero__meta-strip {
    gap: 20px;
  }

  .stats-strip__inner {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox__nav {
    display: none;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }
}

























/* ──────────────────────────────────────────
   NAVBAR
────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  background-color: rgba(0, 0, 0, 0.932);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  padding: 14px 0;
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-wrap {
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease, padding 0.3s ease;
}
#navbar:not(.scrolled) .nav-logo-wrap {
  background: rgba(255,255,255,0.9);
  padding: 2px;
}
.nav-logo-wrap img {
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
}
.nav-brand-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}
#navbar:not(.scrolled) .nav-brand-name { color: #fff; }
#navbar.scrolled .nav-brand-name       { color: #111; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
#navbar:not(.scrolled) .nav-links a { color: #fff; }
#navbar.scrolled .nav-links a        { color: #555; }
#navbar.scrolled .nav-links a:hover  { color: #111; }

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
#navbar:not(.scrolled) .nav-hamburger span { background: #fff; }
#navbar.scrolled .nav-hamburger span        { background: #111; }
.nav-hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
#mobile-menu {
  position: fixed;
  inset-y: 0; right: 0;
  width: 280px;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 32px 40px;
  box-shadow: -4px 0 30px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
#mobile-menu.open { transform: translateX(0); }
#mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 24px; }
#mobile-menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: #222;
  transition: color 0.2s;
}
#mobile-menu a:hover { color: #888; }
#menu-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 150;
}
#menu-overlay.visible { display: block; }










/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 1280px) { .masonry-grid { columns: 4; } }
@media (max-width: 900px)  { .masonry-grid { columns: 3; } }

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .nav-hamburger { display: flex; }
  .founder-inner { grid-template-columns: 1fr; gap: 40px; }
  .founder-image-wrap img { height: 320px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 580px) { .masonry-grid { columns: 2; } }
























