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

html, body { overflow-x: hidden; scroll-behavior: smooth; max-width: 100%; }

:root {
  --accent-dark: #463f3a;
  --accent-mid: #8a817c;
  --accent-light: #bcb8b1;
  --radius: 20px;
  --t: 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #000;
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
img { display: block; max-width: 100%; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 3rem;
  transition: padding var(--t), background var(--t), box-shadow var(--t);
}

.navbar.scrolled {
  padding: 0.875rem 3rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.navbar--project {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.navbar--project.scrolled {
  background: rgba(255,255,255,0.92);
}
.navbar--project:not(.scrolled) .navbar__nav a,
.navbar--project:not(.scrolled) .navbar__logo img { filter: brightness(0) invert(1); }
.navbar--project:not(.scrolled) .navbar__nav a::after { background: #fff; }
.navbar--project:not(.scrolled) .navbar__hamburger span { background: #fff; }

.navbar__logo { text-decoration: none; line-height: 0; }
.navbar__logo img { height: 65px; }

.navbar__nav {
  list-style: none; display: flex; gap: 2.5rem;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.navbar__nav a {
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  color: #000; position: relative; padding-bottom: 3px;
}

.navbar__nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: #000;
  transition: width 0.3s ease;
}

.navbar__nav a:hover::after { width: 100%; }

.navbar__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.navbar__hamburger span {
  display: block; width: 24px; height: 2px; background: #000;
  transition: all 0.3s ease; transform-origin: center;
}

.navbar__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__dropdown {
  position: absolute; top: calc(100% + 4px); right: 1.5rem;
  background: #fff; border: 1px solid rgba(0,0,0,0.09);
  border-radius: 14px; padding: 0.5rem 0;
  min-width: 160px; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar__dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.navbar__dropdown a {
  font-size: 0.9rem; font-weight: 500; text-decoration: none;
  color: #000; padding: 0.65rem 1.25rem;
  transition: background 0.15s ease;
}

.navbar__dropdown a:hover { background: #f8f7f6; }

/* === HERO === */
.hero { padding-top: 80px; overflow-x: hidden; }

.hero__name-container {
  padding: 2rem 0 1rem;
  overflow: hidden;
  max-width: 100vw;
  display: flex; justify-content: center;
}

.hero__name {
  font-family: 'Playfair Display', serif;
  font-weight: 700; line-height: 1;
  text-transform: uppercase; white-space: nowrap;
  display: block; letter-spacing: -0.03em;
}

.hero__content {
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: 3.5rem; max-width: 1200px; margin: 0 auto;
  padding: 0 3rem; align-items: center;
}

.hero__text {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700; line-height: 1.05;
  color: #000; margin-bottom: 1.5rem;
}

.hero__ingress {
  font-size: 1.05rem; color: #444; line-height: 1.75;
  margin-bottom: 1.5rem; max-width: 440px;
}

.hero__social {
  display: flex; gap: 0.75rem; margin-bottom: 1.75rem;
}
.hero__social a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #000; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hero__social a:hover { border-color: var(--accent-dark); background: #f8f7f6; }

.hero__image {
  height: clamp(320px, 55vh, 500px);
  align-self: start;
}

.hero__image img { width: 100%; height: 100%; object-fit: contain; object-position: center top; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 2rem; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.3s ease;
}

.btn--dark { background: #000; color: #fff; }
.btn--dark:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* === SECTION BASE === */
.section-wrap { padding: 6rem 3rem; max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700; margin-bottom: 2.5rem; line-height: 1.15;
}

/* === ABOUT === */
.about__intro {
  font-size: 1.1rem; color: #333; max-width: 680px;
  line-height: 1.8; margin-bottom: 3rem;
}

.about__columns {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}

.about__col-title {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 1.5rem;
}

.experience-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }

.experience-item {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent-light);
}

.experience-item__title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.experience-item__date { font-size: 0.85rem; color: #666; }

/* === PROJECTS === */
.projects-bg { background: #faf9f8; }

.project-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background: #fff;
}

.project-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,0.11); }

.project-card__img { width: 100%; object-fit: cover; display: block; background: var(--accent-light); }

.project-card--large .project-card__img { height: 480px; }
.projects-grid .project-card__img { height: 300px; }

.project-card__body { padding: 1.5rem 1.75rem 1.75rem; }

.project-card__tag {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.07em;
  text-transform: uppercase; color: #666; margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700; line-height: 1.25;
}

.project-card--large { margin-bottom: 1.5rem; }

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

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

/* === HERO HIGHLIGHT === */
.hero-highlight { color: #000; font-weight: 700; }

/* === NAV SUB (dropdown) === */
.nav-sub { background: #ffffff; }
.nav-sub .nav-sub__inner {
  background: #ffffff;
  color: #463f3a;
  border-radius: 12px;
  padding: 0.25rem;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  z-index: 1200;
}

/* Dropdown links: force explicit black text and spacing so parent styles can't hide them */
.nav-sub .nav-sub__inner a {
  color: #000000 !important;
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-sub .nav-sub__inner a:hover,
.nav-sub .nav-sub__inner a:focus {
  background: #f5f5f5;
  color: #000000 !important;
}

/* Ensure project-page variant cannot invert dropdown text */
.navbar--project .nav-sub .nav-sub__inner,
.navbar--project .nav-sub .nav-sub__inner a {
  filter: none !important;
  color: #000000 !important;
}

/* Mobile/compact dropdown (hamburger) links */
.navbar__dropdown a {
  color: #000000 !important;
  padding: 12px 20px;
  display: block;
  text-decoration: none;
}
.navbar__dropdown a:hover { background: #f5f5f5; color: #000000 !important; }

/* === FIGMA IFRAME SIZING === */
iframe[src*="figma.com"] {
  width: 100%;
  min-height: 700px;
  border: none;
}
@media (min-width: 1024px) {
  iframe[src*="figma.com"] { min-height: 800px; }
}
@media (max-width: 720px) {
  iframe[src*="figma.com"] { min-height: 700px; }
}

/* === PROJECT PAGES: LIST SIZE === */
.project-body ul, .project-body li, .project-body ul li { font-size: 1rem; line-height: 1.8; }

/* === INTEREST CARDS (clickable) === */
.interest-card { cursor: pointer; transition: transform 0.18s ease; }
.interest-card:focus { outline: 3px solid rgba(70,63,58,0.12); outline-offset: 3px; }
.interest-card:hover { transform: translateY(-6px); }

/* === CONTACT === */
.contact__wrapper {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
}

.contact__content { display: flex; flex-direction: column; }

.contact__heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; margin-bottom: 0.75rem;
}

.contact__sub { font-size: 1.05rem; color: #555; margin-bottom: 2.75rem; }

.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }

.contact__item a {
  display: inline-flex; align-items: center; gap: 0.875rem;
  text-decoration: none; color: #000; font-size: 1rem;
  font-weight: 500; transition: color 0.2s ease;
}

.contact__item a:hover { color: var(--accent-dark); }

.contact__icon {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.2s, background 0.2s;
}

.contact__item a:hover .contact__icon { border-color: var(--accent-dark); background: #f8f7f6; }

.contact__image { width: 100%; border-radius: 20px; object-fit: cover; display: block; }

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 2.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
}

.footer__copy { font-size: 0.875rem; color: #666; }
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a { color: #888; transition: color 0.2s ease; }
.footer__social a:hover { color: #000; }

/* === BACK TO TOP === */
.back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: #000; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px) !important; }

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

/* === PROJECT PAGES === */
.project-hero {
  position: relative; height: 65vh; min-height: 420px;
  overflow: hidden; display: flex; align-items: flex-end;
  padding-top: 80px;
}

.project-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

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

.project-hero__content { position: relative; z-index: 1; color: #fff; padding: 3rem; }
.project-hero__label {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; opacity: 0.75; margin-bottom: 0.75rem;
}
.project-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1.1;
}

.project-accent-bar { height: 6px; background: var(--project-accent, var(--accent-light)); }

.project-meta {
  max-width: 1100px; margin: 0 auto; padding: 3rem 3rem 0;
  display: flex; flex-wrap: wrap; gap: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07); padding-bottom: 3rem;
}

.project-meta__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #888; margin-bottom: 0.3rem;
}

.project-meta__value { font-size: 0.95rem; font-weight: 500; }

.project-body { max-width: 1100px; margin: 0 auto; padding: 3rem; }

.project-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem; margin-bottom: 1rem; margin-top: 2.75rem;
}

.project-body h2:first-child { margin-top: 0; }

.project-body p { font-size: 1rem; color: #333; line-height: 1.8; margin-bottom: 1rem; }

.project-phases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 1.5rem;
}

.project-phase {
  border: 1px solid rgba(0,0,0,0.08); border-radius: 18px;
  padding: 2rem 1.5rem 1.75rem; text-align: center;
  position: relative; overflow: hidden;
}

.project-phase__top {
  height: 4px; width: 100%;
  position: absolute; top: 0; left: 0;
  background: var(--project-accent, var(--accent-light));
}

.project-phase__icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--project-accent, #f0eeec);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem; color: var(--accent-dark);
}

.project-phase h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: 0.65rem; }
.project-phase p { font-size: 0.9rem; color: #555; line-height: 1.7; margin: 0; }

.project-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: #666; font-size: 0.875rem; font-weight: 500;
  margin: 2rem 3rem 0; transition: color 0.2s ease;
}
.project-back:hover { color: #000; }

/* === NAV SUB-DROPDOWN (Prosjekter hover) === */
.navbar__nav li { position: relative; }

.nav-item--sub > a {
  display: flex; align-items: center; gap: 5px; cursor: pointer;
}

.nav-item--sub > a .nav-chevron {
  display: inline-block; line-height: 0;
  transition: transform 0.25s ease;
}

.nav-item--sub:hover > a .nav-chevron { transform: rotate(180deg); }

.nav-sub {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 200;
}

.nav-item--sub:hover .nav-sub { opacity: 1; pointer-events: auto; }

.nav-sub__inner {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px; padding: 0.5rem 0;
  min-width: 230px; box-shadow: 0 10px 32px rgba(0,0,0,0.1);
  transform: translateY(-6px);
  transition: transform 0.22s ease;
}

.nav-item--sub:hover .nav-sub__inner { transform: translateY(0); }

.nav-sub__inner a {
  display: block; padding: 0.65rem 1.25rem;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; color: #000; white-space: nowrap;
  transition: background 0.15s ease;
}

.nav-sub__inner a:hover { background: #f8f7f6; }
.nav-sub__inner a::after { display: none !important; }

/* === INTERESTS SECTION === */
.interests-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: 0.5rem;
}

.interest-card {
  background: #bcb8b1; border-radius: 20px;
  padding: 2rem 1.25rem 1.75rem; text-align: center;
  transition: transform 0.3s ease;
}

.interest-card:hover { transform: translateY(-4px); }

.interest-card__icon {
  width: 80px; height: 80px;
  margin: 0 auto 1.25rem; color: #463f3a;
}

.interest-card__icon svg { width: 100%; height: 100%; }

.interest-card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.05rem;
  font-weight: 700; margin-bottom: 0.4rem;
}

.interest-card p { font-size: 0.85rem; color: #333; line-height: 1.6; }

/* === DOUBLE DIAMOND PROCESS === */
.process-section { margin-top: 3rem; }

.process-section > h2 {
  font-family: 'Playfair Display', serif; font-size: 1.65rem;
  margin-bottom: 2rem;
}

.dd-wrap { margin-bottom: 1rem; }

.dd-svg { width: 100%; display: block; overflow: visible; }

.dd-labels {
  display: flex; margin-bottom: 3rem;
}

.dd-labels span {
  flex: 1; text-align: center;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #666;
}

.process-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  padding: 3.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.process-item--reverse .process-item__text { order: 2; }
.process-item--reverse .process-item__visual { order: 1; }

.process-num {
  font-family: 'Playfair Display', serif; font-size: 3.5rem;
  font-weight: 700; color: var(--project-accent, #1C5399);
  line-height: 1; display: block; margin-bottom: 0.1rem;
}

.process-title {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; margin-bottom: 1.5rem;
}

.process-methods { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.process-methods li {
  font-size: 0.9rem; color: #444;
  display: flex; align-items: flex-start; gap: 0.6rem;
}

.process-methods li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--project-accent, #bcb8b1);
  flex-shrink: 0; margin-top: 0.45em;
}

.process-result { font-size: 0.9rem; color: #555; line-height: 1.75; }

/* === IMAGE PAIRS (praksis) === */
.img-pair-wrap { margin-bottom: 3rem; }
.img-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 0.75rem;
}
.img-pair__col { display: flex; flex-direction: column; gap: 0.75rem; }
.img-pair__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #888;
}
.img-pair__col img {
  width: 100%; border-radius: 8px; display: block;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1); cursor: pointer;
}
.img-pair__caption { font-size: 0.82rem; color: #666; text-align: center; margin: 0; }
.img-solo { margin-bottom: 3rem; }
.img-solo img { width: 100%; border-radius: 8px; display: block; box-shadow: 0 2px 12px rgba(0,0,0,0.1); cursor: pointer; }
.img-row-wrap { margin-bottom: 3rem; }
.img-row { display: flex; gap: 1rem; margin-bottom: 0.75rem; }
.img-row__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.img-row__col img { width: 100%; border-radius: 8px; display: block; box-shadow: 0 2px 12px rgba(0,0,0,0.1); cursor: pointer; }

.process-item__visual {
  background: var(--project-accent, #f5f4f2);
  border-radius: 20px; height: 260px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}

.process-visual-num {
  font-family: 'Playfair Display', serif; font-size: 8rem;
  font-weight: 700; color: rgba(255,255,255,0.22); line-height: 1;
  user-select: none;
}

/* === PROJECT HERO TITLE (larger) === */
.project-hero__title { font-size: clamp(3rem, 7vw, 6.5rem); }

/* === FIGMA PROTO === */
.proto-section { margin: 2.5rem 0 3.5rem; }
.proto-section--phone { display: flex; flex-direction: column; align-items: center; }
.proto-wrap--desktop { display: flex; flex-direction: column; }
.proto-wrap--mobile  { display: none; flex-direction: column; align-items: center; }
.proto-frame {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08); line-height: 0;
}
.proto-frame iframe { display: block; }
.proto-btn { margin-top: 1.25rem; align-self: center; }

/* === CAROUSEL === */
.carousel {
  position: relative;
}
.process-item--reverse .carousel { order: 1; }
.carousel__slides { position: relative; height: 280px; overflow: hidden; }
.carousel__slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
  pointer-events: none;
}
.carousel__slide.active { opacity: 1; pointer-events: auto; }
.carousel__slide img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; cursor: pointer; display: block;
}
.carousel__btn {
  position: absolute; top: 140px; transform: translateY(-50%);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: none; border-radius: 50%;
  width: 34px; height: 34px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  transition: background 0.2s; color: #222;
}
.carousel__btn--prev { left: 8px; }
.carousel__btn--next { right: 8px; }
.carousel__btn:hover { background: #fff; }
.carousel__caption {
  text-align: center; font-size: 0.78rem; color: #666;
  padding: 0.5rem 2.5rem; margin: 0; min-height: 2em; line-height: 1.4;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.9); }
.lightbox__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.lightbox__close {
  position: absolute; top: -2.25rem; right: 0;
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 1.75rem; line-height: 1; cursor: pointer; transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__img-wrap {
  overflow: hidden; border-radius: 8px; cursor: zoom-in; line-height: 0;
}
.lightbox__img-wrap.zoomed { cursor: zoom-out; }
.lightbox__img {
  display: block; max-width: 88vw; max-height: 80vh;
  object-fit: contain; transition: transform 0.35s ease;
}
.lightbox__caption {
  color: rgba(255,255,255,0.75); font-size: 0.82rem; text-align: center; max-width: 60ch;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  border-radius: 50%; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s; z-index: 2;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* === PROTO DUO (desktop + mobile side by side) === */
.proto-duo {
  display: flex; gap: 2.5rem; align-items: flex-start;
  margin: 2.5rem 0 3.5rem;
}
.proto-duo__laptop {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.proto-duo__phone {
  width: 340px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar.scrolled { padding: 0.75rem 1.5rem; }
  .navbar__nav { display: none; }
  .navbar__hamburger { display: flex; }

  .hero { overflow-x: hidden; }
  .hero__content { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; gap: 2.5rem; overflow-x: hidden; }
  .hero__image { order: -1; height: clamp(260px, 70vw, 420px); align-self: auto; }
  .hero__image img { object-position: center center; }
  .hero__name-container { padding: 1.5rem 0 2rem; max-width: 100vw; }

  .section-wrap { padding: 4rem 1.5rem; }

  .about__columns { grid-template-columns: 1fr; gap: 2.5rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card--large .project-card__img { height: 280px; }
  .projects-grid .project-card__img { height: 240px; }

  .contact__wrapper { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer { flex-direction: column; gap: 1.25rem; text-align: center; padding: 2rem 1.5rem; }

  .project-meta { padding: 2rem 1.5rem 2rem; gap: 1.5rem; }
  .project-body { padding: 2rem 1.5rem; }
  .project-phases { grid-template-columns: 1fr; }
  .project-hero { min-height: 380px; padding-top: 70px; }
  .project-hero__content { padding: 2rem 1.5rem; }
  .project-back { margin: 1.5rem 1.5rem 0; }

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

  .process-item { grid-template-columns: 1fr; gap: 2rem; }
  .process-item--reverse .process-item__text { order: 0; }
  .process-item--reverse .process-item__visual { order: 0; }
  .process-item__visual { height: 180px; }
  .process-num { font-size: 2.5rem; }
  .process-title { font-size: 1.1rem; }
}

@media (max-width: 768px) {
  .proto-wrap--desktop { display: none; }
  .proto-wrap--mobile  { display: flex; }
  .proto-duo { flex-direction: column; align-items: center; }
  .proto-duo__laptop { width: 100%; }
  .img-pair { grid-template-columns: 1fr; }
  .img-row { flex-wrap: wrap; }
  .img-row__col { flex: 0 0 calc(50% - 0.5rem); }
}

@media (max-width: 480px) {
  .hero__content { gap: 2rem; }
  .section-wrap { padding: 3rem 1.25rem; }
  .interests-grid { grid-template-columns: 1fr 1fr; gap: 0.875rem; }
  .interest-card { padding: 1.5rem 1rem 1.25rem; }
  .interest-card__icon { width: 60px; height: 60px; }
}
