/* CSS Reset & Variable Definitions */
:root {
  /* Colors from DESIGN.md */
  --color-canvas-white: #ffffff;
  --color-wordmark-black: #000000;
  
  /* Chromatic hairline border tokens */
  --border-vermillion: #e21715;
  --border-cobalt: #086392;
  --border-marigold: #f2572c;
  --border-fern: #5bc52c;
  --border-brass: #b3813c;
  
  /* Link active accents */
  --accent-signal-red: #f11216;
  --accent-cyan-blue: #2e99c9;

  /* Theme Backgrounds - Pure White Canvas Gallery Style */
  --bg-home: #ffffff;
  --bg-residential: #ffffff;
  --bg-commercial: #ffffff;
  --bg-exhibition: #ffffff;
  --bg-portrait: #ffffff;
  --bg-product: #ffffff;
  --bg-about: #ffffff;

  /* Typography */
  --font-cleor: 'Cleor', 'Helvetica', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --text-nav: 11px;
  --text-body-sm: 14px;
  --text-body: 18px;
  
  /* Letter spacing from DESIGN.md */
  --tracking-tight: -0.02em;
  --tracking-nav: -0.2px;
  --tracking-body: -0.36px;
  --tracking-display: -6.4px;
}

/* @font-face Definitions mapping Cleor local fonts */
@font-face {
  font-family: 'Cleor';
  src: url('../fonts/Cleor-Light.woff2') format('woff2'),
       url('../fonts/Cleor-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cleor';
  src: url('../fonts/Cleor-Regular.woff2') format('woff2'),
       url('../fonts/Cleor-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cleor';
  src: url('../fonts/Cleor-Bold.woff2') format('woff2'),
       url('../fonts/Cleor-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cleor';
  src: url('../fonts/Cleor-Heavy.woff2') format('woff2'),
       url('../fonts/Cleor-Heavy.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cleor';
  src: url('../fonts/Cleor-Italic.woff2') format('woff2'),
       url('../fonts/Cleor-Italic.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important; /* Force 0px border radius everywhere */
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-cleor);
  background-color: var(--color-canvas-white);
  color: var(--color-wordmark-black);
  transition: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Theme Classes dynamically toggled by JS */
body.theme-home { background-color: var(--bg-home); }
body.theme-residential { background-color: var(--bg-residential); }
body.theme-commercial { background-color: var(--bg-commercial); }
body.theme-exhibition { background-color: var(--bg-exhibition); }
body.theme-portrait { background-color: var(--bg-portrait); }
body.theme-product { background-color: var(--bg-product); }
body.theme-about { background-color: var(--bg-about); }

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

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200; /* Stay on top of all canvas grid items */
  background-color: inherit; /* Block photos from showing behind header */
  transition: background-color 0.8s ease; /* Transitions smoothly with dynamic pastel body backgrounds */
  border-bottom: 1px solid rgba(0, 0, 0, 0.03); /* Subtle clean bottom hairline */
}

/* Header Right Side Controls (Social links + Hamburger align) */
.header-right-controls {
  display: flex;
  align-items: center;
  gap: 25px;
}

.header-social-link {
  color: var(--color-wordmark-black);
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}

.header-social-link:hover {
  opacity: 0.5;
}

.social-icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Wordmark Logo Styling */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 48px;
  width: auto;
  display: block;
}

/* Override SVG paths to read Black in light theme */
.logo-svg path {
  fill: var(--color-wordmark-black) !important;
  transition: fill 0.3s ease;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-size: var(--text-nav);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.nav-link.active {
  border-bottom: 1px solid var(--color-wordmark-black);
}

.nav-link:hover {
  opacity: 0.7;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 10px;
  font-size: var(--text-nav);
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
}

.lang-btn {
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.lang-btn.active {
  opacity: 1;
}

/* Main View Layout */
main {
  flex: 1;
  display: flex;
  margin-top: 100px;
  min-height: calc(100vh - 100px);
  position: relative;
}

/* Huge Wordmark Overlay (Hidden by user request) */
.wordmark-overlay {
  display: none;
}

/* Content Container */
.content-wrapper {
  width: 100%;
  padding: 20px 40px 100px 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* Hamburger Menu Trigger Button */
.menu-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  z-index: 120;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 0;
}

.menu-trigger-line {
  height: 2px;
  background-color: var(--color-wordmark-black);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.menu-trigger-line:nth-child(1) { width: 100%; }
.menu-trigger-line:nth-child(2) { width: 65%; }

.menu-trigger:hover .menu-trigger-line:nth-child(2) {
  width: 100%;
}

/* Fullscreen Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-canvas-white);
  z-index: 250;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.menu-overlay.active {
  opacity: 1;
}

.menu-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 44px;
  font-weight: 200;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-wordmark-black);
  line-height: 1;
  z-index: 130;
  transition: opacity 0.2s ease;
}

.menu-close-btn:hover {
  opacity: 0.5;
}

.menu-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 90%;
  width: 600px;
  padding: 40px;
}

.menu-overlay-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.menu-overlay-item {
  display: flex;
  align-items: baseline;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-overlay-item:hover {
  transform: translateX(12px);
}

.menu-link-num {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.25;
  width: 24px;
}

.menu-link-text {
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
}

.overlay-lang-switcher {
  margin-top: 45px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
  padding-left: 0;
}

.overlay-lang-switcher .lang-btn {
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.overlay-lang-switcher .lang-btn.active {
  opacity: 1;
}

/* Draggable Infinite Canvas Viewport (Homepage) */
.canvas-viewport {
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  cursor: grab;
  z-index: 10;
  background-color: var(--color-canvas-white);
  user-select: none;
}

.canvas-viewport.grabbing {
  cursor: grabbing;
}

.infinite-canvas {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Scattered Photo Card */
.canvas-card {
  position: absolute;
  cursor: pointer;
  contain: layout style;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
}

/* Focus Overlay states: inactive ones fade to 0.12 opacity */
.canvas-card.inactive {
  opacity: 0.12;
  filter: grayscale(40%);
}

.canvas-card:hover {
  z-index: 50 !important; /* Stand above other overlapping cards */
}

/* Clean borderless photos */
.canvas-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background-color: transparent;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.canvas-card:hover .canvas-image-wrapper {
  transform: translateY(-8px) scale(1.02);
}

/* Geometric Hover 8-Pointed Star Overlay */
.card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.12); /* Soft wash to highlight the black star shape */
  backdrop-filter: blur(1px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none; /* Let user click through to select project */
  z-index: 5;
}

.star-icon {
  width: 90px;
  height: 90px;
  fill: var(--color-wordmark-black);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.canvas-card:hover .card-hover-overlay {
  opacity: 1;
}

.canvas-card:hover .star-icon {
  transform: scale(1.1) rotate(45deg); /* Scale up and rotate by 90deg (from -45 to 45) */
}

.canvas-image-wrapper.ratio-16-9 {
  aspect-ratio: 16/9;
}

.canvas-image-wrapper.ratio-3-4 {
  aspect-ratio: 3/4;
}

.canvas-image-wrapper.ratio-2-3 {
  aspect-ratio: 2/3;
}

.canvas-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.canvas-image-wrapper video {
  display: block;
}

.project-cover-container.ratio-16-9 {
  aspect-ratio: 2/3;
}

.project-cover-container.ratio-2-3 {
  aspect-ratio: 2/3;
}

/* Clean Borderless Cards */
.project-card.borderless .project-cover-container {
  border: none !important;
}

/* Projects Masonry Grid in Category view */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 40px;
  align-items: start;
}

@media (min-width: 1024px) {
  .theme-residential .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.projects-grid .project-cover-container {
  aspect-ratio: 16 / 9;
}

.projects-grid .project-meta { display: block; }
.projects-grid .project-location { display: block; }

.category-empty {
  grid-column: 1 / -1;
  margin: 30px 0 0;
  opacity: 0.56;
  font-size: 14px;
}

.section-title {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: var(--tracking-tight);
  display: flex;
  align-items: center;
  gap: 15px;
}

.back-btn {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--color-wordmark-black);
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-transform: uppercase;
}

.back-btn:hover {
  background-color: var(--color-wordmark-black);
  color: var(--color-canvas-white);
}

.project-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-cover-container {
  transform: translateY(-8px);
}

.project-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-cover {
  transform: scale(1.05);
}

.canvas-hover-star,
.project-hover-star {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.canvas-hover-star svg,
.project-hover-star svg {
  width: 90px;
  height: 90px;
  fill: var(--color-wordmark-black);
  transform: scale(0) rotate(-45deg);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.canvas-card:hover .canvas-hover-star,
.canvas-card:focus-visible .canvas-hover-star,
.project-card:hover .project-hover-star,
.project-card:focus-visible .project-hover-star {
  opacity: 1;
}

.canvas-card:hover .canvas-hover-star svg,
.canvas-card:focus-visible .canvas-hover-star svg,
.project-card:hover .project-hover-star svg,
.project-card:focus-visible .project-hover-star svg {
  transform: scale(1.1) rotate(45deg);
}

@media (hover: none) {
  .canvas-hover-star,
  .project-hover-star {
    display: none;
  }
}

/* Details Label formatting */
.project-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
}

.project-title {
  grid-column: 1 / span 2;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 4px;
  letter-spacing: var(--tracking-tight);
}

.project-location {
  color: #555;
}

.project-designer {
  text-align: right;
  color: #777;
}

/* Project Detailed Page (Sticky Split Layout: Left Scroll Gallery, Right Sticky Meta) */
.project-detail-layout {
  display: flex;
  gap: 80px;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 125px 40px 120px 40px;
  box-sizing: border-box;
}

.project-info-panel {
  width: 380px;
  flex-shrink: 0;
  position: sticky;
  top: 130px; /* Sits cleanly below the 90px fixed site header */
  height: calc(100vh - 220px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 15px;
  box-sizing: border-box;
  scrollbar-width: thin;
}

/* Hide scrollbar tracks for minimalist aesthetic */
.project-info-panel::-webkit-scrollbar {
  width: 3px;
}
.project-info-panel::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
}

.project-info-header {
  border-bottom: 1px solid var(--color-wordmark-black);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.info-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: var(--tracking-tight);
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  margin-top: 6px;
}

.info-label {
  opacity: 0.5;
}

.info-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 30px;
  font-weight: 300;
}

/* Vertical Scroll Widescreen Gallery */
.project-scroll-viewport {
  flex: 1;
  min-width: 0; /* Prevents flex items from overflowing container */
}

.project-scroll-gallery {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Elegant generous spacing between spreads */
  width: 100%;
}

.project-gallery-item {
  width: 100%;
  border: none;
  padding: 0;
  display: block;
}

.project-gallery-item.ratio-16-9 {
  width: 100%;
  aspect-ratio: 16/9;
}

.project-gallery-item.ratio-2-3 {
  max-width: 720px; /* Align and center portrait crops */
  margin: 0 auto;
  aspect-ratio: 2/3;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contact & About Section */
.project-hero { width: 100%; aspect-ratio: 16 / 9; background: #f4f4f4; overflow: hidden; }
.project-hero img, .project-hero video { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-gallery-item video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-badge { position: absolute; bottom: 12px; left: 12px; padding: 6px 10px; background: white; color: black; font-size: 12px; z-index: 6; }
#view-project .project-detail-layout { padding-top: 40px; }

.about-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.52fr) minmax(0, 1.48fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
}

.about-visual img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.025);
  display: block;
}

.about-content { min-width: 0; }

@media(max-width: 767px) {
  .about-section { grid-template-columns: 1fr; gap: 30px; }
  .about-visual img { aspect-ratio: 1; height: auto; }
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 300;
}

.about-text p {
  margin-bottom: 20px;
}

.about-intro {
  max-width: 640px;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0;
}

.about-editorial-section {
  margin-top: 52px;
}

.about-editorial-title {
  font-size: 14px;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-wordmark-black);
}

.editorial-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) 1.4fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  font-size: 16px;
  line-height: 1.65;
}

.editorial-list b { display: block; font-size: 15px; margin-bottom: 2px; }
.editorial-list span { opacity: 0.72; }

.process-list > div {
  grid-template-columns: 46px 1fr;
  align-items: start;
  background: rgba(0, 0, 0, 0.025);
  padding: 17px 18px;
  margin-bottom: 8px;
  border-bottom: 0;
}

.process-list p { margin: 0; }

.process-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 640px) {
  .editorial-list > div { grid-template-columns: 1fr; gap: 5px; }
  .process-list > div { grid-template-columns: 42px 1fr; gap: 12px; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  border-bottom: 1px solid var(--color-wordmark-black);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-item span:first-child {
  opacity: 0.5;
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-social-row {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.contact-social-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
  border-bottom: 1px solid var(--accent-signal-red);
  transition: opacity 0.3s ease;
}

.contact-social-link:hover {
  opacity: 0.6;
}

/* About page: image and introduction above two editorial columns. */
.about-section {
  max-width: 1600px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  grid-template-areas: "visual intro" "visual contact" "services process";
  grid-template-rows: 1fr auto auto;
  column-gap: clamp(40px, 5vw, 80px);
  row-gap: 20px;
}
.about-content, .about-text { display: contents; }
.about-visual { grid-area: visual; }
.about-visual img { aspect-ratio: 1.44; height: 100%; object-fit: cover; }
.about-intro { grid-area: intro; align-self: end; max-width: none; margin: 0; }
.about-section .contact-info { grid-area: contact; }
.about-section .about-editorial-section:nth-of-type(1) { grid-area: services; }
.about-section .about-editorial-section:nth-of-type(2) { grid-area: process; }
.about-section .about-editorial-section { margin-top: 48px; min-width: 0; }
.about-section .process-icon { border-radius: 0; }

@media (max-width: 767px) {
  .about-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "visual" "intro" "contact" "services" "process";
    grid-template-rows: auto;
    gap: 24px;
  }
  .about-visual img { aspect-ratio: 1.44; height: auto; }
  .about-section .about-editorial-section { margin-top: 16px; }
}

/* Footer Section */
.site-footer {
  width: 100%;
  padding: 48px 40px 24px;
  margin-top: auto;
  position: relative;
  z-index: 20;
  background-color: var(--color-canvas-white);
  border-top: 1px solid var(--color-wordmark-black);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-nav);
}

.footer-primary {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(210px, 1fr) minmax(130px, 0.7fr) minmax(110px, 0.55fr);
  gap: 36px;
}

.footer-brand-name {
  font-size: 18px;
  line-height: 1;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 200px;
  font-size: 9px;
  line-height: 1.55;
  margin-top: 4px;
  opacity: 0.58;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-column h2 {
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 7px;
  opacity: 0.5;
}

.footer-email,
.footer-nav-link,
.footer-secondary a {
  transition: opacity 0.2s ease;
}

.footer-email {
  font-size: 10px;
  text-transform: none;
}

.footer-nav-link {
  font-size: 9px;
  line-height: 1.35;
}

.footer-navigation-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 8px;
}

.footer-navigation-grid a {
  font-size: 9px;
  line-height: 1.35;
  transition: opacity 0.2s ease;
}

.footer-navigation-grid a:hover {
  opacity: 0.5;
}

.footer-email:hover,
.footer-nav-link:hover,
.footer-secondary a:hover {
  opacity: 0.5;
}

.footer-socials {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-socials a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials svg {
  width: 100%;
  height: 100%;
}

.footer-socials a:hover {
  opacity: 0.52;
  transform: translateY(-1px);
}

.footer-secondary {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  margin-top: 42px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  opacity: 0.5;
}

.legal-page {
  min-height: 100vh;
  padding: 28px 40px 0;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #000;
  padding-bottom: 18px;
}

.legal-logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.legal-back {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
}

.legal-content {
  display: block;
  width: min(100%, 920px);
  padding: 92px 0 100px;
}

.legal-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: var(--tracking-nav);
  opacity: 0.5;
}

.legal-content h1 {
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.04;
  font-weight: 700;
  margin: 14px 0 18px;
}

.legal-intro {
  max-width: 650px;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.72;
}

.legal-sections {
  margin-top: 72px;
  border-top: 1px solid #000;
}

.legal-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 36px;
  padding: 29px 0 34px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.legal-section h2 {
  font-size: 13px;
  line-height: 1.35;
}

.legal-section h2 span {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: var(--tracking-nav);
  opacity: 0.5;
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  line-height: 1.75;
}

.legal-section p + p {
  margin-top: 13px;
}

.legal-section ul {
  padding-left: 18px;
}

.legal-section a {
  border-bottom: 1px solid #000;
}

/* Responsive Scaling Constraints */
@media(max-width: 768px) {
  .site-header {
    padding: 15px 20px !important;
    height: 70px !important;
    background-color: inherit !important; /* Keep variable opaque backdrop on mobile */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }
  
  .logo-svg {
    height: 26px;
  }
  
  .content-wrapper {
    padding: 0;
  }
  
  .wordmark-overlay {
    display: none !important;
  }

  .logo-container {
    left: 20px !important;
    top: 15px !important;
  }

  .site-footer {
    padding: 34px 20px 20px;
  }

  .footer-primary {
    grid-template-columns: 1fr 1fr;
    gap: 34px 22px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-secondary {
    margin-top: 34px;
    flex-direction: column;
    gap: 10px;
  }

  .legal-page {
    padding: 20px 20px 0;
  }

  .legal-content {
    padding: 62px 0 70px;
  }

  .legal-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0 29px;
  }

  /* Morph Draggable Canvas to Native Vertical Scroll Feed on Mobile */
  .canvas-viewport {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 100vw !important;
    height: 100vh !important;
    position: absolute !important;
    cursor: default !important;
    background-color: var(--color-canvas-white);
    -webkit-overflow-scrolling: touch;
    z-index: 10;
  }

  .infinite-canvas {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 95px 15px 80px 15px !important; /* Sit cleanly below the 70px mobile header */
    box-sizing: border-box !important;
  }

  .canvas-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 8px !important;
    transform: none !important;
    opacity: 1 !important;
    z-index: 20 !important;
  }

  .canvas-image-wrapper {
    height: auto !important;
  }

  .canvas-image-wrapper.ratio-16-9 {
    aspect-ratio: 16/9 !important;
  }

  .canvas-image-wrapper.ratio-2-3 {
    aspect-ratio: 2/3 !important;
  }

  /* Hide hover overlay star on touch screen (since touch hover triggers sticky click states) */
  .card-hover-overlay {
    display: none !important;
  }
  
  .project-meta {
    font-size: 10px;
    margin-top: 10px;
  }
  
  .project-title {
    font-size: 14px;
  }

  /* Hamburger Overlay mobile scaling */
  .menu-close-btn {
    top: 20px;
    right: 20px;
    font-size: 38px;
  }

  .menu-overlay-content {
    padding: 20px;
  }

  .menu-overlay-links {
    gap: 15px;
  }

  .menu-link-text {
    font-size: 30px;
  }

  .overlay-lang-switcher {
    margin-top: 30px;
    padding-left: 0;
  }

  /* Vertical Detail Gallery mobile adjustments */
  .project-detail-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    padding: 90px 0px 80px 0px !important; /* Photos go 100% edge-to-edge horizontally on mobile screen! */
  }

  .project-scroll-viewport {
    width: 100% !important;
    order: 1 !important; /* Stack gallery images at the top */
  }

  .project-scroll-gallery {
    gap: 30px !important;
  }

  .project-gallery-item.ratio-2-3 {
    max-width: 100% !important; /* Spans full screen on mobile */
  }

  .project-info-panel {
    width: 100% !important;
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow-y: visible !important;
    padding: 30px 20px 0px 20px !important; /* Indent text on mobile so it doesn't touch screen edges */
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-sizing: border-box !important;
    order: 2 !important; /* Stack details below the images */
  }
}

/* Premium Minimalist Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-canvas-white);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  user-select: none;
}

.loading-screen.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-brand {
  font-family: 'Cleor', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: var(--color-wordmark-black);
}

.progress-container {
  width: 240px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  margin-bottom: 12px;
}

.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-wordmark-black);
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.progress-percentage {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-wordmark-black);
  opacity: 0.5;
  letter-spacing: 1px;
}

/* Fullscreen Lightbox Photo Viewer */
.lightbox-viewer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.lightbox-viewer.active {
  opacity: 1;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lightbox-viewer.active .lightbox-image {
  transform: scale(1);
}

.lightbox-close-btn {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 48px;
  font-weight: 300;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.lightbox-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media(max-width: 768px) {
  .lightbox-close-btn {
    top: 20px;
    right: 20px;
    font-size: 38px;
  }
}

/* Image Protection - Disable dragging and right clicking */
img {
  -webkit-user-drag: none !important;
  user-select: none !important;
  -moz-user-select: none !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
}

.canvas-card img,
.project-gallery-item img,
.lightbox-image {
  pointer-events: none !important; /* Disables dragging and browser context menus natively */
}

/* Lightbox Navigation Controls (Prev/Next Arrows) */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 80px;
  font-weight: 200;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 100000;
  padding: 30px;
  line-height: 1;
  user-select: none;
}

.lightbox-nav-btn:hover {
  opacity: 0.9;
  transform: translateY(-50%) scale(1.1);
  color: #ffffff;
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

/* Hide navigation buttons or make them compact on mobile touch devices */
@media(max-width: 768px) {
  .lightbox-nav-btn {
    font-size: 55px;
    padding: 15px;
  }
  .lightbox-nav-btn.prev {
    left: 5px;
  }
  .lightbox-nav-btn.next {
    right: 5px;
  }
}

/* Full-Screen Menu Link Hover Image Previews */
.menu-side-image {
  position: absolute;
  width: 310px;
  height: 465px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #f7f7f7;
}

.menu-side-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s ease;
}

.menu-side-image.left {
  left: 8vw;
  top: 13vh; /* Aligned higher up */
  transform: scale(0.96) translateY(-25px);
}

.menu-side-image.right {
  right: 8vw;
  bottom: 13vh; /* Aligned lower down */
  transform: scale(0.96) translateY(25px);
}

.menu-side-image.visible {
  opacity: 0.75;
  transform: scale(1) translateY(0);
}

.menu-side-image.visible img {
  transform: scale(1.02);
}

/* Staggered Alternating Layouts for Residential & Exhibition categories */
.menu-overlay.menu-hover-reversed .menu-side-image.left {
  top: auto;
  bottom: 13vh;
  transform: scale(0.96) translateY(25px);
}

.menu-overlay.menu-hover-reversed .menu-side-image.right {
  bottom: auto;
  top: 13vh;
  transform: scale(0.96) translateY(-25px);
}

.menu-overlay.menu-hover-reversed .menu-side-image.visible {
  transform: scale(1) translateY(0);
}

@media(max-width: 990px) {
  .menu-side-image {
    display: none !important; /* Prevent overlap with links on smaller viewports */
  }
}

/* Custom Cursor Floating UX Hint */
.canvas-ux-hint {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-wordmark-black);
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 6px 12px;
  border-radius: 30px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: var(--font-cleor);
  white-space: nowrap;
  user-select: none;
}

.canvas-ux-hint.visible {
  opacity: 0.95;
  transform: scale(1);
}

.canvas-ux-hint.hidden {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile Fallback layout - centered fixed at bottom viewport */
@media(max-width: 768px) {
  .canvas-ux-hint {
    left: 50% !important;
    top: auto !important;
    bottom: 30px !important;
    transform: translateX(-50%) scale(0.9) !important;
    animation: hintPulse 2.5s infinite ease-in-out;
  }
  .canvas-ux-hint.visible {
    opacity: 0.85;
    transform: translateX(-50%) scale(1) !important;
  }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

/* Header Category Status Indicator */
.header-category-status {
  display: flex;
  align-items: center;
  margin-left: 20px;
  font-family: var(--font-cleor);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-wordmark-black);
  opacity: 0.55;
  text-transform: uppercase;
  user-select: none;
  pointer-events: none;
}

.status-separator {
  margin-right: 18px;
  opacity: 0.35;
  font-weight: 300;
  font-size: 15px;
}

.status-text {
  transition: opacity 0.3s ease;
}

@media(max-width: 520px) {
  .header-category-status {
    display: none !important; /* Hide next to logo on extremely small viewports */
  }
}
