/* --- OBJECTS STUDIO: Editorial Gallery & Dynamic Transitions --- */
@font-face {
  font-family: 'Coolvetica';
  src: url('assets/fonts/coolvetica.woff') format('woff'),
       url('https://fonts.cdnfonts.com/s/13277/coolvetica.woff') format('woff');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas-bg: #f0ede4;
  --card-bg: #e5e1d7;
  --text-primary: #111114;
  --text-secondary: #5a5a64;
  --text-muted: #888892;
  --accent-color: #0f45e8;
  --border-subtle: rgba(17, 17, 20, 0.08);
  --border-active: rgba(17, 17, 20, 0.22);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Coolvetica', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--canvas-bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--canvas-bg);
  overflow-x: hidden;
}

/* Ambient Subtle Grain / Lighting */
.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 15%, rgba(15, 69, 232, 0.02) 0%, transparent 65%);
}

/* --- Main Navigation Header (ALWAYS on top) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: transparent;
  padding: 2.2rem 4rem 1.2rem 4rem;
  transition: background 0.3s ease;
  pointer-events: none;
}

.site-header * {
  pointer-events: auto;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Docked Brand Logo in Header */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  cursor: pointer;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.brand-link.docked-visible,
body.single-project .brand-link,
body.project-view-active .brand-link {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.header-logo-icon {
  display: flex;
  align-items: center;
  position: relative;
}

.docked-svg-logo {
  display: block;
  height: 96px !important;
  width: auto !important;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.06));
  transition: transform 0.25s ease;
  overflow: visible;
}

.docked-svg-logo:hover {
  transform: scale(1.04);
}

/* Right Nav Menu (Clean Sans Typography - Reference Design) */
.header-right-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

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

.nav-link {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #555558;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: #111114;
}

.nav-link.active {
  color: #111114;
  font-weight: 700;
}

/* --- Hero Landing Stage (Refined Sizing & Baseline Aligned Studio Wordmark) --- */
:root {
  --hero-logo-h: clamp(100px, 13vw, 150px);
}

.hero-landing-stage {
  position: relative;
  min-height: 38vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem 1rem 2rem;
  z-index: 2;
}

.hero-center-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}

.hero-brand-lockup {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  display: block;
  height: var(--hero-logo-h);
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(17, 17, 20, 0.05));
  user-select: none;
}

.hero-studio-wordmark {
  position: absolute;
  bottom: calc(var(--hero-logo-h) * 0.005);
  left: 100%;
  margin-left: calc(var(--hero-logo-h) * 0.09);
  font-family: var(--font-heading);
  font-size: calc(var(--hero-logo-h) * 0.28);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--accent-dynamic, #111114);
  line-height: 0.95;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s linear;
}

/* --- Organic Asymmetric Gallery Grid (kylberg.com style multi-column density) --- */
.gallery-stage,
.editorial-stream {
  position: relative;
  z-index: 1;
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s var(--transition-smooth), opacity 0.3s ease;
  will-change: transform;
}

/* Trio Rows (3 projects across width) */
.size-col-left {
  width: 30%;
  max-width: 440px;
  margin-left: 1.5%;
  margin-top: 0;
}

.size-col-mid {
  width: 30%;
  max-width: 440px;
  margin-left: 35%;
  margin-top: -15rem;
}

.size-col-right {
  width: 29%;
  max-width: 430px;
  margin-left: 69%;
  margin-top: -20rem;
}

/* Pair Rows (2 projects across width) */
.size-pair-left {
  width: 43%;
  max-width: 590px;
  margin-left: 3%;
  margin-top: -5rem;
}

.size-pair-right {
  width: 39%;
  max-width: 530px;
  margin-left: 55%;
  margin-top: -18rem;
}

/* Media Frame */
.media-frame {
  position: relative;
  width: 100%;
  background-color: var(--card-bg);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(17, 17, 20, 0.05);
}

.aspect-16-9 { aspect-ratio: 16 / 9; }
.aspect-4-5  { aspect-ratio: 4 / 5; }
.aspect-3-4  { aspect-ratio: 3 / 4; }
.aspect-21-9 { aspect-ratio: 21 / 9; }

.hover-video, .still-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--transition-smooth);
}

.gallery-item:hover .hover-video,
.gallery-item:hover .still-img {
  transform: scale(1.028);
}

.media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

.gallery-item:hover .media-overlay {
  background: rgba(17, 17, 20, 0.02);
}

/* Item Meta (Typography) */
.item-meta {
  margin-top: 0.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.item-titles {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.client-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.discipline-tag {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.gallery-item.dimmed {
  opacity: 0.15;
  pointer-events: none;
}

/* --- Dedicated Full-Page Project View (Reference Mockup 1:1) --- */
.project-full-page {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: var(--canvas-bg);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--transition-smooth), visibility 0.3s;
  padding: 7.5rem 4rem 4rem 4rem;
}

.project-full-page.active {
  opacity: 1;
  visibility: visible;
}

.project-full-page.is-single-template {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  padding-top: 8.5rem;
  min-height: 100vh;
}

.project-page-content {
  max-width: 1600px;
  margin: 0 auto;
}

.project-top-bar {
  max-width: 1600px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  justify-content: flex-end;
}

.project-close-btn {
  appearance: none;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.project-close-btn:hover {
  color: var(--text-primary);
}

.project-page-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 34% 66%;
  column-gap: 3.5rem;
  align-items: start;
  min-height: calc(100vh - 13.5rem);
}

/* Left Column: Title, Synopsis & Bottom-Anchored Credits (C9) */
.project-info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 13.5rem);
  position: sticky;
  top: 7.5rem;
  gap: 2.2rem;
  padding-right: 1.5rem;
}

.project-top-meta {
  padding-top: 0;
}

.project-title-area h1 {
  font-family: 'Coolvetica', sans-serif;
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
  color: #1a1a1c;
}

.project-client-subtitle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
}

.project-body-text {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  line-height: 1.48;
  color: #1a1a1c;
  max-width: 360px;
  margin: 0.75rem 0 0 0;
}

.project-body-text p {
  margin-bottom: 0.75rem;
}

.project-body-text p:last-child {
  margin-bottom: 0;
}

/* Clean 2-Column Credits Table Anchored at Bottom of Left Column (C9) */
.project-credits-area {
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 0.25rem;
}

.credits-table {
  display: grid;
  grid-template-columns: 135px 1fr;
  row-gap: 0.18rem;
  column-gap: 1.25rem;
  font-size: 0.84rem;
  line-height: 1.45;
  font-family: var(--font-sans);
}

.credit-role {
  color: #111114;
  font-weight: 400;
}

.credit-name {
  color: #111114;
  font-weight: 400;
}

/* Right Column: Video Switcher & Stills Carousel (C7, C8) */
.project-media-column {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2.75rem;
}

.stills-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  background-color: #000;
  box-shadow: 0 8px 32px rgba(17, 17, 20, 0.08);
}

.stills-carousel-wrap.has-film-above {
  background-color: transparent;
  box-shadow: none;
  overflow: visible;
}

.stills-carousel-wrap.has-film-above .carousel-track-container {
  border-radius: 4px;
  background-color: #000;
  box-shadow: 0 8px 32px rgba(17, 17, 20, 0.08);
}

.media-section-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.carousel-track-container {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.65s var(--transition-smooth);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 10.5rem);
  object-fit: contain;
}

/* Minimalist Carousel Navigation Dots (Capsule Pill for Active) */
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
}

.carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
  width: 16px;
  height: 5px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(240, 237, 228, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.stills-carousel-wrap:hover .carousel-btn {
  opacity: 0.9;
}

.carousel-btn:hover {
  opacity: 1;
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.btn-prev { left: 1.25rem; }
.btn-next { right: 1.25rem; }

.project-hero-media-wrap {
  width: 100%;
}

.active-video-stage {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 8px 32px rgba(17, 17, 20, 0.08);
}

/* Multi-Video Switcher Bar below Active Video (C8) */
.video-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 0.25rem 0;
}

.video-switcher-bar .carousel-dots {
  position: static;
  transform: none;
  gap: 0.45rem;
}

.video-switcher-bar .carousel-dot {
  background: rgba(17, 17, 20, 0.25);
  width: 6px;
  height: 6px;
}

.video-switcher-bar .carousel-dot.active {
  background: var(--text-primary);
  width: 18px;
  height: 6px;
  box-shadow: none;
}

.video-switcher-bar .video-nav-btn {
  position: static;
  transform: none;
  opacity: 1;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
}

.video-switcher-bar .video-nav-btn:hover {
  background: #fff;
  transform: scale(1.06);
}

/* Bottom Project Navigation Bar (C11) */
.project-bottom-nav {
  max-width: 1600px;
  margin: 4rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
}

.proj-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  transition: opacity 0.2s ease;
}

.proj-nav-link.next-proj {
  text-align: right;
  align-items: flex-end;
}

.proj-nav-link:hover {
  opacity: 0.65;
}

.proj-nav-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.proj-nav-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
}

.proj-nav-index {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.proj-nav-index:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* --- Separate Studio & Contact Overlay Pages (B5 — Dark Editorial Design) --- */
.info-contact-page {
  position: fixed;
  inset: 0;
  z-index: 400;
  background-color: #111114;
  color: #f0ede4;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.35s var(--transition-smooth), transform 0.35s var(--transition-smooth), visibility 0.35s;
  padding: 4rem 3rem 6rem 3rem;
}

.info-contact-page.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.info-close-btn {
  position: absolute;
  top: 2rem;
  right: 2.5rem;
  background: transparent;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: #f0ede4;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.info-close-btn:hover {
  opacity: 0.7;
  transform: scale(1.1);
}

.info-page-inner {
  max-width: 1100px;
  margin: 3rem auto 0 auto;
}

.info-pretitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  display: block;
}

.info-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #fff;
}

.info-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(240, 237, 228, 0.8);
  margin-bottom: 3.5rem;
  max-width: 760px;
}

.info-desc p {
  margin-bottom: 1.2rem;
}

/* Minimalist 3-Column Capabilities Grid (B5) */
.info-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  border-top: 1px solid rgba(240, 237, 228, 0.14);
  padding-top: 2.5rem;
  margin-bottom: 3rem;
}

.info-cap-col h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.info-cap-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.info-cap-col li {
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(240, 237, 228, 0.72);
}

/* 3-Column Studio Photos Gallery inside #studioPage */
.info-studio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(240, 237, 228, 0.14);
  padding-top: 2.5rem;
}

.info-studio-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 3px;
  background-color: #1a1a1f;
}

.info-studio-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s var(--transition-smooth);
}

.info-studio-photo:hover img {
  transform: scale(1.03);
}

/* Dedicated Contact Section inside #contactPage */
.info-contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  border-top: 1px solid rgba(240, 237, 228, 0.15);
  padding-top: 3rem;
  margin-top: 1rem;
}

.info-contact-block h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
}

.info-email-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: #f0ede4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.info-email-link:hover {
  color: #fff;
  text-decoration: underline;
}

.info-location-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: #f0ede4;
  margin: 0;
}

/* --- Site Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 3rem;
  background-color: var(--canvas-bg);
}

.footer-inner {
  max-width: 1540px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.6rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.5;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.footer-links-col a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-links-col a:hover {
  text-decoration: underline;
}

.footer-bottom-bar {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive — Tablet & Mobile */
@media (max-width: 991px) {
  .site-header {
    padding: 0.9rem 1.25rem;
  }

  .docked-svg-logo {
    height: 54px !important;
  }

  .nav-links {
    gap: 1.15rem;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .hero-landing-stage {
    min-height: 30vh;
    padding: 4.5rem 1.5rem 0.5rem 1.5rem;
  }

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

  .gallery-stage,
  .editorial-stream {
    padding: 1.25rem 1.25rem 4.5rem 1.25rem;
    gap: 2.5rem;
  }

  .size-col-left,
  .size-col-mid,
  .size-col-right,
  .size-pair-left,
  .size-pair-right,
  .size-hero-wide,
  .size-portrait-offset,
  .size-medium-left,
  .size-tall-narrow,
  .size-full-cinematic,
  .size-medium-centered,
  .size-medium-right {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
  }

  .project-full-page,
  .project-full-page.is-single-template {
    padding: 5.25rem 1.25rem 3.5rem 1.25rem;
  }

  .project-top-bar {
    margin-bottom: 0.85rem;
  }

  .project-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .project-info-column {
    position: static;
    min-height: auto;
    padding-right: 0;
    gap: 1.5rem;
  }

  .project-body-text {
    max-width: 100%;
  }

  .project-credits-area {
    margin-top: 0.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .carousel-slide img {
    max-height: 72vh;
  }

  .carousel-btn {
    opacity: 0.85;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .btn-prev { left: 0.65rem; }
  .btn-next { right: 0.65rem; }

  .info-contact-page {
    padding: 4.5rem 1.5rem 4rem 1.5rem;
  }

  .info-close-btn {
    top: 1.25rem;
    right: 1.5rem;
  }

  .info-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .info-studio-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .info-contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --hero-logo-h: clamp(86px, 24vw, 115px);
  }

  .site-header {
    padding: 0.75rem 1rem;
  }

  .docked-svg-logo {
    height: 42px !important;
  }

  .nav-links {
    gap: 0.85rem;
  }

  .nav-link {
    font-size: 0.76rem;
  }

  .item-meta {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-title {
    font-size: 1.05rem;
  }

  .project-title-area h1 {
    font-size: 2.05rem;
  }

  .credits-table {
    grid-template-columns: 115px 1fr;
    column-gap: 0.85rem;
    font-size: 0.8rem;
  }

  .project-bottom-nav {
    margin-top: 2.75rem;
    padding-top: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .proj-nav-title {
    font-size: 0.98rem;
  }

  .proj-nav-index {
    order: 3;
    width: 100%;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
  }

  .site-footer {
    padding: 2.75rem 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1.25rem;
  }

  .info-email-link {
    font-size: 1.3rem;
    word-break: break-word;
  }
}
