/* =============================================================
   DESIGNATE FZ LLE — site.css
   Visual Content for Events & Installations
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600&family=Barlow:wght@400;500&family=Cormorant+Garamond:wght@300;400;500&display=swap');

/* ---- Design Tokens ---- */
:root {
  --color-bg:         #25231c;
  --color-footer-bg:  #528093;
  --color-gold:       #edbb53;
  --color-white:      #ffffff;
  --color-white-dim:  rgba(255, 255, 255, 0.55);
  --color-white-faint:rgba(255, 255, 255, 0.18);

  --page-pad:         64px;
  --max-w:            1280px;
  --section-pad-lg:   112px;
  --section-pad-md:   80px;
  --section-pad-sm:   60px;

  --radius-lg:        16px;
  --radius-md:        12px;
  --radius-pill:      100px;

  --font-condensed:   'Barlow Condensed', sans-serif;
  --font-body:        'Barlow', sans-serif;
  --font-serif:       'Cormorant Garamond', serif;

  --transition-fast:  0.2s ease;
  --transition-med:   0.4s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a  { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ---- Layout Container ---- */
.container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--page-pad) * 2);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

/* =============================================================
   NAVBAR
   ============================================================= */
.site-nav {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 0 var(--page-pad);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 72px;
}

/* Logo — always fixed pixel dimensions, never stretched */
.nav-logo {
  flex-shrink: 0;
  line-height: 0;
}
.nav-logo img {
  display: block;
  width: 225px;
  height: 69px;
  object-fit: contain;
  object-position: left center;
  max-width: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 8px;
  transition: background var(--transition-fast);
  position: relative;
  z-index: 400;
}
.hamburger:hover { background: rgba(255,255,255,0.08); }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   DROPDOWN NAV MENU
   Desktop: slides down from top, covers top ~33vh
   Mobile: full-screen overlay (unchanged)
   ============================================================= */

/* --- Desktop dropdown (top-third panel) --- */
.nav-dropdown {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 250;
  /* Slides down from top — height is top third of viewport */
  height: 33vh;
  min-height: 200px;
  background: rgba(25, 23, 18, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Hidden above viewport */
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.nav-dropdown.open {
  transform: translateY(0);
  pointer-events: all;
}

.nav-dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  padding: 0 40px;
  margin: 0;
  width: 100%;
  max-width: var(--max-w);
}

.nav-dropdown ul li {
  border: none;
}

.nav-dropdown ul li a {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--color-white);
  text-transform: uppercase;
  padding: 12px 20px;
  white-space: nowrap;
  transition: color var(--transition-fast);
  border-bottom: 2px solid transparent;
}
.nav-dropdown ul li a:hover {
  color: var(--color-footer-bg);
  border-bottom-color: var(--color-footer-bg);
}

/* =============================================================
   HERO / HEADER
   ============================================================= */
.site-hero {
  position: relative;
  height: 900px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Each slide is stacked absolutely, fades in/out */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Left-anchored variant — specificity 0,3,1 beats .page-hero .hero-bg img (0,2,1) */
.page-hero .hero-bg.hero-bg--left img {
  object-position: left center;
}

/* Gradient overlay lives on .hero-bg itself, always on top of slides */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.65) 25%,
    rgba(0, 0, 0, 0) 50%
  );
  pointer-events: none;
}

.hero-body {
  position: absolute;
  bottom: 43px;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 var(--page-pad);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -3.6px;
  color: var(--color-white);
  max-width: 866px;
  margin-bottom: 14px;
}

/* Desktop: spans flow inline, natural single-line wrapping */
.title-l1, .title-l2, .title-l3 { display: inline; }
.title-br::before { content: ' '; }

/* desktop tagline removed */

/* =============================================================
   SERVICES SECTION — 2-column desktop layout
   ============================================================= */
.services-section {
  background: var(--color-bg);
  padding: var(--section-pad-sm) 0;
}

.section-head {
  margin-bottom: 56px;
}

.section-heading {
  font-family: var(--font-condensed);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section-subhead {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
}

/* 2-column grid on desktop — image on top, text below */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 56px;          /* breathing room between the two rows */
  align-items: start;
}

/* Each card: stacked — image fills full width, text underneath */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-thumb {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;          /* taller now that image spans full card width */
  width: 100%;
  background: rgba(255,255,255,0.05);
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-med);
}
.service-card:hover .service-thumb img {
  transform: scale(1.04);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-title {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.28px;
  color: var(--color-white);
}

.service-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-white);
  opacity: 0.85;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-white);
  transition: opacity var(--transition-fast);
  margin-top: 6px;
}
.service-link:hover { opacity: 0.65; }
.service-link:hover .link-arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

/* =============================================================
   GALLERY / HIGHLIGHT PROJECTS
   ============================================================= */
.gallery-section {
  background: var(--color-bg);
  padding: var(--section-pad-lg) 0;
}

.gallery-layout {
  display: flex;
  gap: 80px;
  align-items: stretch;
}

.gallery-left {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 96px;
}

.gallery-heading {
  font-family: var(--font-condensed);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.52px;
  color: var(--color-white);
  margin-bottom: 16px;
}

.gallery-desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
  opacity: 0.85;
}

.gallery-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.gallery-track-outer {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 0;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
}
.gallery-track.dragging { cursor: grabbing; }

.gallery-slide {
  display: flex;
  flex-shrink: 0;
  width: calc(100% - 48px); /* 48px gap reveals peek of next image */
  margin-right: 16px;        /* gap between slides */
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 100%; /* each slide is one image, full container width */
}

.gallery-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-caption {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-white);
  opacity: 0.75;
  padding-left: 10px;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-btns {
  display: flex;
  gap: 16px;
}

.slider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.slider-btn:hover { background: rgba(255,255,255,0.12); }
.slider-btn:disabled { opacity: 0.3; cursor: default; }
.slider-btn svg { display: block; pointer-events: none; }

.slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.dot.active {
  background: var(--color-white);
  transform: scale(1.1);
}

/* =============================================================
   FOOTER — slim single row, no nav links
   ============================================================= */
.site-footer {
  background: var(--color-footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;           /* half the original ~120px */
  gap: 24px;
}

/* Footer logo — fixed pixel sizing */
.footer-logo {
  flex: 0 0 auto;
  line-height: 0;
}
.footer-logo img {
  display: block;
  width: 150px;           /* scaled to fit the slimmer bar */
  height: 46px;
  object-fit: contain;
  object-position: left center;
  max-width: none;
}

.footer-copyright {
  flex: 1;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-white);
  white-space: nowrap;
}

.footer-social {
  flex: 0 0 auto;
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}
.footer-social a:hover { opacity: 0.65; }
.footer-social svg { width: 22px; height: 22px; fill: currentColor; }

/* =============================================================
   RESPONSIVE — TABLET  (max 1100px)
   ============================================================= */
@media (max-width: 1100px) {
  :root { --page-pad: 40px; }

  .site-hero { height: 680px; }

  .hero-title {
    font-size: 56px;
    letter-spacing: -2px;
    max-width: 680px;
  }

  /* Still 2-col but tighter gaps on tablet */
  .services-grid { column-gap: 28px; row-gap: 40px; }
  .service-thumb { height: 180px; }

  .gallery-layout { flex-direction: column; gap: 40px; }
  .gallery-left { flex: none; width: 100%; padding-bottom: 0; justify-content: flex-start; }
  .gallery-item img { height: 360px; }

  /* Desktop dropdown stays same — row layout */
  .nav-dropdown ul li a { font-size: 18px; padding: 10px 16px; }
}

/* =============================================================
   RESPONSIVE — MOBILE  (max 767px)
   ============================================================= */
@media (max-width: 767px) {
  :root { --page-pad: 20px; }

  /* Nav */
  .site-nav { top: 0; padding: 0 var(--page-pad); }
  .nav-inner { height: 64px; }
  .nav-logo img { width: 150px; height: 46px; max-width: none; }

  /* Hero */
  .site-hero { height: 100svh; min-height: 580px; }
  .hero-body { bottom: 36px; }
  .hero-eyebrow {
    font-size: 3.2vw;
    letter-spacing: 0.3px;
    white-space: nowrap;
    margin-bottom: 12px;
  }
  .hero-title {
    font-size: 43px;
    letter-spacing: -0.8px;
    max-width: 100%;
    margin-bottom: 10px;
    line-height: 1.1;
  }
  /* Force each phrase onto its own line on mobile */
  .title-l1, .title-l2, .title-l3 { display: block; }
  .title-br { display: none; }
  /* tagline removed */

  /* Services — mobile: single column, stacked image above text */
  .services-section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .section-heading { font-size: 30px; }
  .section-subhead { font-size: 15px; }
  .services-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 28px;
  }
  .service-card { gap: 10px; }
  .service-thumb { height: 176px; border-radius: 12px; }
  .service-body { gap: 5px; }
  .service-title { font-size: 22px; }
  .service-desc { font-size: 14px; line-height: 1.4; }
  .service-link { font-size: 14px; margin-top: 4px; }

  /* Gallery */
  .gallery-section { padding: 48px 0; }
  .gallery-layout { flex-direction: column; gap: 24px; }
  .gallery-left { flex: none; padding-bottom: 0; justify-content: flex-start; }
  .gallery-heading { font-size: 32px; }
  .gallery-desc { font-size: 15px; }
  .gallery-item img { height: 220px; }
  .gallery-right { gap: 24px; }

  /* Footer — stays slim, stacked on very narrow screens */
  .footer-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    text-align: center;
  }
  .footer-logo img {
    width: 120px;
    height: 37px;
    object-position: center;
    margin: 0 auto;
  }
  .footer-copyright { flex: 1 0 100%; order: 3; font-size: 11px; }
  .footer-social { order: 2; gap: 18px; }

  /* MOBILE dropdown: full-screen overlay (unchanged from v1) */
  .nav-dropdown {
    height: 100dvh;
    min-height: 100dvh;
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    /* override desktop flex-row */
    justify-content: center;
    align-items: center;
  }
  .nav-dropdown.open {
    transform: none;
    opacity: 1;
    pointer-events: all;
  }
  .nav-dropdown ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-width: 100%;
  }
  .nav-dropdown ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    text-align: center;
  }
  .nav-dropdown ul li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-dropdown ul li a {
    font-size: 20px;
    letter-spacing: 1.5px;
    padding: 16px 32px;
    min-width: 260px;
    border-bottom: none;     /* remove desktop underline style */
  }
  .nav-dropdown ul li a:hover {
    color: var(--color-footer-bg);
    background: rgba(255,255,255,0.03);
    border-bottom: none;
  }
}

/* =============================================================
   INNER PAGES — shared page hero (shorter than home)
   ============================================================= */
.page-hero {
  position: relative;
  height: 780px;   /* 50% taller than original 520px */
  overflow: hidden;
}
.page-hero .hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 30%, rgba(0,0,0,0.15) 60%);
}
.page-hero-body {
  position: absolute;
  bottom: 48px;
  left: 0; right: 0;
  z-index: 10;
  padding: 0 var(--page-pad);
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero-eyebrow {
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--color-white);
  max-width: 720px;
}
.page-hero-sub {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

/* =============================================================
   ABOUT PAGE
   ============================================================= */

/* About hero uses standard page-hero-inner — no portrait */

/* Feature / collaborate section */
.about-section {
  background: var(--color-bg);
  padding: var(--section-pad-lg) 0;
}
.about-section + .about-section { border-top: 1px solid rgba(255,255,255,0.07); }

.about-tagline {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}
.about-heading {
  font-family: var(--font-condensed);
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.52px;
  color: var(--color-white);
  margin-bottom: 24px;
  max-width: 768px;
}
.about-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  max-width: 768px;
  margin-bottom: 64px;
}

/* 3-column feature / contact row */
.about-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.about-col-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-white);
}
.about-col-icon svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.about-col-title {
  font-family: var(--font-condensed);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.34px;
  color: var(--color-white);
  margin-bottom: 16px;
}
.about-col-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.about-col-link {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}
.about-col-link:hover { opacity: 0.65; }

/* =============================================================
   CATEGORY PAGES — intro strip
   ============================================================= */
.cat-intro {
  background: var(--color-bg);
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cat-intro-heading {
  font-family: var(--font-condensed);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.44px;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 20px;
  max-width: 760px;
}
.cat-intro-text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.82);
  max-width: 760px;
}

/* =============================================================
   CATEGORY PAGES — project entries
   ============================================================= */
.projects-section { background: var(--color-bg); padding: 72px 0; }

/* Divider between project entries */
.project-entry {
  padding: 64px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.project-entry:first-child { border-top: none; padding-top: 0; }

.project-meta {
  display: flex;
  flex-direction: column;   /* client on its own line below title */
  gap: 6px;
  margin-bottom: 24px;
}
.project-title {
  font-family: var(--font-condensed);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.38px;
  line-height: 1.2;
  color: var(--color-white);
}
.project-agency {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--color-footer-bg);
}
.project-details {
  font-family: var(--font-condensed);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.3px;
  color: var(--color-footer-bg);
}
.project-desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 760px;
  margin-bottom: 28px;
}

/* =============================================================
   LAYOUT A — large image LEFT + 2×2 grid of 4 thumbs RIGHT
   Desktop: side by side (1/3 + 2/3)
   Mobile: stacked — full-width image then 2×2 grid
   ============================================================= */
.proj-layout-a {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 50% / 50% */
  gap: 12px;
  align-items: stretch;
}

/* Left: tall image that fills full height of the right grid */
.proj-layout-a-main {
  display: flex;
}
.proj-layout-a-main .proj-img-link {
  display: block;
  flex: 1;
}
.proj-layout-a-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-a-main img:hover { opacity: 0.88; }

/* Right: 2×2 grid */
.proj-layout-a-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.proj-layout-a-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-a-thumbs img:hover { opacity: 0.85; }

/* =============================================================
   LAYOUT C — large image LEFT (2/3 width) + 2 stacked thumbs RIGHT
   ============================================================= */
.proj-layout-c {
  display: grid;
  grid-template-columns: 2fr 1fr;   /* 2/3 main + 1/3 thumbs */
  gap: 12px;
  align-items: stretch;
}

.proj-layout-c-main {
  display: flex;
}
.proj-layout-c-main .proj-img-link {
  display: block;
  flex: 1;
}
.proj-layout-c-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-c-main img:hover { opacity: 0.88; }

/* Right column: 2 thumbs stacked vertically, each half the height */
.proj-layout-c-thumbs {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
.proj-layout-c-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-c-thumbs img:hover { opacity: 0.85; }
   Desktop: 4-column thumb row
   Mobile: 2-column thumb row
   ============================================================= */
.proj-layout-b-hero {
  margin-bottom: 12px;
}
.proj-layout-b-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-b-hero img:hover { opacity: 0.88; }

/* Agency logo overlay on main project thumbnails */
.proj-layout-b-hero,
.proj-layout-a-main,
.proj-layout-c-main {
  position: relative;
}
img.overlay-img {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 15%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
  transition: none;
}

.proj-layout-b-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.proj-layout-b-row img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity var(--transition-fast);
}
.proj-layout-b-row img:hover { opacity: 0.85; }

/* =============================================================
   INNER PAGES — RESPONSIVE TABLET (max 1100px)
   ============================================================= */
@media (max-width: 1100px) {
  .page-hero { height: 630px; }  /* 50% taller than original 420px */
  .page-hero-title { font-size: 48px; }

  .about-heading { font-size: 40px; }
  .about-cols { gap: 32px; }
  .about-col-title { font-size: 28px; }

  .cat-intro-heading { font-size: 36px; }
  .project-title { font-size: 30px; }

  /* Layout A: keep side-by-side on tablet but slightly tighter */
  .proj-layout-a { grid-template-columns: 1fr 1fr; }
  /* Layout C: keep 2/3 + 1/3 proportions on tablet */
  .proj-layout-c { grid-template-columns: 2fr 1fr; }

  /* Layout B: drop to 2-col thumbs on tablet */
  .proj-layout-b-row { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   INNER PAGES — RESPONSIVE MOBILE (max 767px)
   ============================================================= */
@media (max-width: 767px) {
  /* Page hero */
  .page-hero { height: 70svh; min-height: 360px; }
  .page-hero-body { bottom: 32px; }
  .page-hero-title { font-size: 36px; letter-spacing: -1px; }
  .page-hero-sub { font-size: 15px; margin-top: 10px; }

  /* About */
  .about-section { padding: 56px 0; }
  .about-heading { font-size: 30px; margin-bottom: 16px; }
  .about-body { font-size: 16px; margin-bottom: 40px; }
  .about-cols { grid-template-columns: 1fr; gap: 40px; }
  .about-col-title { font-size: 24px; }

  /* Category */
  .cat-intro { padding: 48px 0 36px; }
  .cat-intro-heading { font-size: 28px; }
  .cat-intro-text { font-size: 15px; }
  .project-desc { font-size: 15px; }
  .projects-section { padding: 40px 0; }
  .project-entry { padding: 40px 0; }
  .project-title { font-size: 26px; }

  /* Layout A + C mobile: stack vertically, full-width image then thumbs */
  .proj-layout-a,
  .proj-layout-c {
    grid-template-columns: 1fr;
  }
  .proj-layout-a-main img {
    aspect-ratio: 4/3;
    height: auto;
  }
  .proj-layout-c-main img {
    aspect-ratio: 4/3;
    height: auto;
  }
  /* Layout C thumbs: side by side on mobile */
  .proj-layout-c-thumbs {
    grid-template-rows: none;
    grid-template-columns: repeat(2, 1fr);
  }

  /* Layout B mobile: full-width hero + 2-col thumbs */
  .proj-layout-b-row { grid-template-columns: repeat(2, 1fr); }

  /* Disable click-to-open on mobile — images not interactive */
  .proj-layout-a-main img,
  .proj-layout-a-thumbs img,
  .proj-layout-b-hero img,
  .proj-layout-b-row img,
  .proj-layout-c-main img,
  .proj-layout-c-thumbs img { cursor: default; }
}

/* proj-img-link: block wrapper so image fills its grid cell */
.proj-img-link { display: block; }
