/* ==========================================================================
   MELINA DESIGN STUDIO — ARCHITECTURAL VISUALIZATION
   Cinematic Editorial Design System (Mir / The Boundary / Brick Visual Inspired)
   ========================================================================== */

:root {
  /* Dark Charcoal & Obsidian (Hero, Contact, Footer, Lightbox) */
  --charcoal-black: #080a0e;
  --charcoal-deep: #0d1016;
  --charcoal-surface: #131720;
  --charcoal-card: #181d28;
  --charcoal-border: rgba(255, 255, 255, 0.09);
  --charcoal-border-light: rgba(255, 255, 255, 0.16);

  /* Light Editorial Canvas (Work, Services, Methodology, Studio) */
  --paper: #f7f6f2;
  --paper-warm: #f1efea;
  --paper-card: #ffffff;
  --line: #dedad2;
  --line-light: #eae7df;

  /* Typography Colors */
  --ink: #0f131a;
  --ink-secondary: #3c424e;
  --muted: #5e6472;
  --light-text: #f3f4f6;
  --light-secondary: #c5cbd6;
  --light-muted: #8b92a0;

  /* Architectural Metallic Accent */
  --gold: #b8934a;
  --gold-light: #dfc187;
  --gold-text-dark: #dfc187;
  --gold-text-light: #8a6226;
  --gold-period: #c5a059;

  /* Typography Stacks */
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "DM Sans", -apple-system, sans-serif;
  --serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --wrap: min(1320px, calc(100% - 64px));
  color-scheme: dark light;
  font-synthesis: none;
  scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Global Resets & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--charcoal-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  background: var(--gold-light);
  color: var(--charcoal-black);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 2px;
  transform: translateY(-180%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 96px;
}

/* --------------------------------------------------------------------------
   Studio Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--charcoal-border);
  color: var(--light-text);
  transition: background 0.3s ease;
}

.nav {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--light-text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--charcoal-border-light);
  background: rgba(255, 255, 255, 0.03);
  font: 700 12px var(--display);
  letter-spacing: 0.12em;
  color: var(--gold-light);
  transition: border-color 0.2s, background 0.2s;
}

.brand:hover .brand-mark {
  border-color: var(--gold-light);
  background: rgba(184, 147, 74, 0.08);
}

.brand-name {
  font: 700 14px/1.2 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-name small {
  display: block;
  color: var(--light-muted);
  font: 500 9px var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--light-secondary);
}

.nav-links a {
  transition: color 0.2s;
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-contact {
  border: 1px solid var(--charcoal-border-light);
  padding: 10px 18px !important;
  color: var(--light-text) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.nav-contact span {
  color: var(--gold-light);
  margin-left: 8px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-contact:hover {
  border-color: var(--gold-light);
  background: rgba(223, 193, 135, 0.06);
}

.nav-contact:hover span {
  transform: translate(2px, -2px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--charcoal-border);
  background: transparent;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  border-radius: 2px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--light-text);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Cinematic Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(440px, 1.12fr);
  gap: 6%;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  min-height: 640px;
  color: var(--light-text);
}

.hero-copy {
  padding: 20px 0;
}

.eyebrow {
  font: 600 10px var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin: 0;
}

.eyebrow-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  margin-right: 10px;
  vertical-align: middle;
}

.hero h1 {
  font: 500 clamp(42px, 4.7vw, 68px)/1.08 var(--display);
  letter-spacing: -0.05em;
  margin: 24px 0 16px;
  max-width: 620px;
  color: #ffffff;
}

.gold-period {
  color: var(--gold-period);
}

.hero-subtitle {
  font: italic 400 clamp(20px, 2.2vw, 24px)/1.4 var(--serif);
  color: var(--light-secondary);
  margin: 0 0 24px;
}

.hero-bio {
  max-width: 520px;
  color: var(--light-secondary);
  font-size: 14px;
  line-height: 1.85;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  min-height: 44px;
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.button-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--charcoal-border-light);
  color: #ffffff;
}

.button-dark span {
  color: var(--gold-light);
  font-size: 14px;
}

.button-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold-light);
  color: var(--charcoal-black);
  border-color: var(--gold-light);
}

.button-gold:hover {
  background: #ecd5a4;
  transform: translateY(-2px);
}

.text-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.text-link span {
  color: var(--gold-light);
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--gold-light);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  color: var(--light-muted);
  font: 500 10px var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-line {
  height: 1px;
  width: 44px;
  background: var(--gold-light);
}

/* Cinematic Hero Render Stage */
.hero-art {
  position: relative;
  margin: 0;
  min-height: 500px;
  background: var(--charcoal-card);
  overflow: hidden;
  border: 1px solid var(--charcoal-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-art:hover img {
  transform: scale(1.03);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(10, 13, 18, 0.85));
  pointer-events: none;
}

.hero-art figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-art figcaption span:first-child {
  font-weight: 600;
  color: #ffffff;
}

.hero-art figcaption span:last-child {
  color: var(--light-muted);
  font-size: 10px;
}

.hero-project-link {
  position: absolute;
  right: 20px;
  top: 20px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(13, 16, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 11px 18px;
  min-height: 44px;
  font: 600 11px var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-project-link span {
  margin-left: 10px;
  color: var(--gold-light);
}

.hero-project-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-light);
}

.hero-project-link:disabled {
  display: none;
}

/* --------------------------------------------------------------------------
   Studio Facts & Metrics Ticker
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  align-items: center;
  border-top: 1px solid var(--charcoal-border);
  border-bottom: 1px solid var(--charcoal-border);
  padding: 24px 0;
  margin-bottom: 0;
  color: var(--light-text);
}

.facts div {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid var(--charcoal-border);
  min-height: 44px;
  padding: 0 28px;
}

.facts div:first-child {
  padding-left: 0;
}

.facts strong {
  font: 500 28px var(--display);
  letter-spacing: -0.05em;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.facts div span {
  font-size: 11px;
  color: var(--light-muted);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.facts > p {
  margin: 0;
  padding-left: 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--light-secondary);
  text-align: right;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Editorial Work Section (Light Paper Background)
   -------------------------------------------------------------------------- */
.work-section {
  padding: 100px 0 110px;
  background: var(--paper);
  color: var(--ink);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-label {
  color: var(--gold-text-light);
  margin: 0 0 14px;
  font-weight: 700;
}

.section-heading h2,
.services-lead h2,
.about-copy h2,
.contact-inner h2 {
  font: 500 clamp(34px, 4vw, 54px)/1.14 var(--display);
  letter-spacing: -0.055em;
  margin: 0;
  color: var(--ink);
}

.section-heading h2 em,
.services-lead h2 em,
.about-copy h2 em,
.contact-inner h2 em {
  font: italic 400 1em var(--serif);
  letter-spacing: -0.03em;
  color: var(--ink-secondary);
}

.section-intro {
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* Filter Bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 18px;
}

.filter-button {
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 11px 18px;
  min-height: 44px;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.filter-button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.filter-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  margin-left: 6px;
  font-size: 11px;
}

.project-result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 20px;
  font-variant-numeric: tabular-nums;
}

/* Project Cards Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.project-card {
  min-width: 0;
}

.project-image-button {
  position: relative;
  display: block;
  border: 0;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  background: #e6e3da;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 2px;
}

.project-image-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-image-button:hover img {
  transform: scale(1.035);
}

.view-count {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 2px;
  background: rgba(13, 16, 22, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 16px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.project-image-button:hover .project-zoom {
  transform: scale(1.08);
  background: #ffffff;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-top: 14px;
}

.project-meta h3 {
  font: 500 18px var(--display);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}

.project-meta p {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 0;
}

.project-category {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-text-light);
  font-weight: 700;
  padding-top: 4px;
  text-align: right;
  white-space: nowrap;
}

.grid-note {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Refined Services Section
   -------------------------------------------------------------------------- */
.services-section {
  background: var(--paper-warm);
  padding: 105px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.services-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10%;
}

.services-lead h2 {
  margin-bottom: 20px;
}

.services-lead > p:not(.eyebrow) {
  color: var(--ink-secondary);
  font-size: 14px;
  max-width: 360px;
  line-height: 1.85;
}

.services-lead .text-link {
  color: var(--ink);
  display: inline-flex;
  margin-top: 20px;
}

.services-lead .text-link span {
  color: var(--gold-text-light);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 36px 1fr 20px;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  transition: padding-left 0.2s ease;
}

.service-number {
  color: var(--gold-text-light);
  font-size: 11px;
  font-weight: 700;
  padding-top: 3px;
  letter-spacing: 0.08em;
}

.service-item h3 {
  font: 500 18px var(--display);
  margin: 0 0 6px;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.service-item p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  max-width: 520px;
  line-height: 1.75;
}

.service-arrow {
  color: #9a958b;
  font-size: 15px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.service-item:hover .service-arrow {
  color: var(--gold-text-light);
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Working Methodology (Process) Section
   -------------------------------------------------------------------------- */
.process-section {
  padding-block: 95px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin: 44px 0 28px;
  padding: 0;
  list-style: none;
}

.process-steps li {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.process-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-text-light);
  letter-spacing: 0.1em;
}

.process-steps h3 {
  font: 500 20px var(--display);
  margin: 14px 0 10px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.process-steps p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.process-section .text-link {
  color: var(--ink);
  margin-top: 10px;
}

.process-section .text-link span {
  color: var(--gold-text-light);
}

/* --------------------------------------------------------------------------
   About Studio & Philosophy Section
   -------------------------------------------------------------------------- */
.about-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10%;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 115px;
  background: var(--paper);
  color: var(--ink);
}

.about-stamp {
  aspect-ratio: 1;
  width: min(290px, 100%);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--gold-text-light);
  background: var(--paper-warm);
}

.about-stamp::before,
.about-stamp::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(138, 98, 38, 0.2);
  border-radius: 50%;
}

.about-stamp::after {
  inset: 28px;
  border-color: rgba(138, 98, 38, 0.12);
}

.about-stamp span {
  font: 700 64px/0.95 var(--display);
  letter-spacing: -0.06em;
  color: var(--gold-text-light);
}

.about-stamp i {
  width: 36px;
  height: 1px;
  background: var(--gold-text-light);
  margin: 14px 0;
}

.about-stamp small {
  font: 700 8px/1.6 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.about-copy h2 {
  margin-bottom: 22px;
}

.about-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 16px;
}

.toolkit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.toolkit-label {
  font: 700 10px var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-right: 6px;
}

.toolkit span:not(.toolkit-label) {
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Studio & Project Inquiry Section (Deep Charcoal)
   -------------------------------------------------------------------------- */
.contact-section {
  background: var(--charcoal-deep);
  color: var(--light-text);
  padding: 100px 0 105px;
  border-top: 1px solid var(--charcoal-border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10%;
  align-items: flex-start;
}

.contact-inner .section-label {
  color: var(--gold-light);
}

.contact-inner h2 {
  font-size: clamp(38px, 4.5vw, 60px);
  color: #ffffff;
}

.contact-inner h2 em {
  color: var(--light-secondary);
}

.contact-copy {
  padding-top: 10px;
}

.contact-copy > p {
  max-width: 520px;
  color: var(--light-secondary);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.8;
}

.brief-checklist {
  padding-left: 20px;
  margin: 0 0 22px;
  color: var(--light-text);
  font-size: 13px;
  line-height: 1.9;
}

.brief-checklist li {
  margin-bottom: 4px;
}

.contact-note {
  font-size: 12px;
  color: var(--light-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 8px;
  font: 500 clamp(18px, 2.2vw, 24px) var(--display);
  letter-spacing: -0.03em;
  color: #ffffff;
  transition: border-color 0.2s, color 0.2s;
}

.contact-email span {
  color: var(--gold-light);
  font-size: 18px;
  transition: transform 0.2s ease;
}

.contact-email:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.contact-email:hover span {
  transform: translate(2px, -2px);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
}

.contact-actions > span {
  font-size: 11px;
  color: var(--light-muted);
  letter-spacing: 0.04em;
}

.linkedin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  color: var(--light-secondary);
  font-size: 12px;
  border-top: 1px solid var(--charcoal-border);
  padding-top: 22px;
}

.linkedin-links a {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color 0.2s, color 0.2s;
}

.linkedin-links a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Studio Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal-black);
  color: var(--light-muted);
  border-top: 1px solid var(--charcoal-border);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}

.footer-brand {
  font: 700 11px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-brand span {
  color: var(--light-muted);
  font-weight: 400;
}

.footer-inner > a:last-child {
  color: var(--light-secondary);
  transition: color 0.2s;
}

.footer-inner > a:last-child:hover {
  color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   Gallery Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox {
  border: 0;
  padding: 0;
  background: var(--charcoal-deep);
  color: #ffffff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7);
}

.lightbox::backdrop {
  background: rgba(6, 8, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
  width: min(1200px, 96vw);
  max-width: 96vw;
  max-height: 94dvh;
  margin: auto;
  border-radius: 4px;
  border: 1px solid var(--charcoal-border-light);
  overflow: auto;
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--charcoal-border);
  flex-shrink: 0;
  background: rgba(13, 16, 22, 0.95);
}

.lightbox-top h2 {
  font: 500 20px/1.3 var(--display);
  letter-spacing: -0.02em;
  margin: 0;
  color: #ffffff;
}

.lightbox-top p {
  font-size: 12px;
  color: var(--light-muted);
  margin: 4px 0 0;
}

.lightbox-top #lightbox-credit {
  font-size: 11px;
  color: var(--gold-light);
  margin-top: 6px;
  max-width: 800px;
}

.lightbox-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  background: var(--charcoal-card);
  border: 1px solid var(--charcoal-border);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-light);
}

/* Lightbox View Stage */
.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  height: auto;
  max-height: 60vh;
  min-height: 200px;
  flex: 1 1 auto;
  background: #07090d;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.lightbox-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.lightbox-image.is-loading {
  opacity: 0;
}

.view-loading {
  position: relative;
  z-index: 1;
  color: var(--light-muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.view-loading[hidden] {
  display: none;
}

/* Lightbox Caption Bar */
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 14px 24px;
  border-top: 1px solid var(--charcoal-border);
  flex-shrink: 0;
  background: rgba(13, 16, 22, 0.95);
  font-size: 13px;
}

.lightbox-caption > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.lightbox-caption span {
  color: var(--light-muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.view-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--charcoal-border-light);
  border-radius: 50%;
  background: var(--charcoal-card);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.view-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--gold-light);
}

.project-contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.project-inquiry,
.project-whatsapp {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.project-inquiry:hover,
.project-whatsapp:hover {
  color: #ffffff;
}

/* Lightbox Thumbnails */
.view-thumbnails {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 16px 16px;
  flex-shrink: 0;
  background: rgba(13, 16, 22, 0.95);
}

.view-thumbnail {
  border: 2px solid transparent;
  padding: 0;
  background: var(--charcoal-card);
  cursor: pointer;
  border-radius: 2px;
  min-height: 44px;
  overflow: hidden;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  opacity: 0.65;
}

.view-thumbnail:hover {
  opacity: 0.9;
}

.view-thumbnail.is-active {
  border-color: var(--gold-light);
  opacity: 1;
}

.view-thumbnail img {
  display: block;
  width: 78px;
  height: 52px;
  object-fit: cover;
}

/* Lightbox Project Context */
.project-context {
  border-top: 1px solid var(--charcoal-border);
  padding: 16px 24px 22px;
  flex-shrink: 0;
  background: var(--charcoal-black);
}

.project-context .project-role {
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.project-context p {
  max-width: 880px;
  color: var(--light-secondary);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive Adaptations (Tablet & Mobile Down to 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    gap: 4%;
  }

  .facts div {
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  :root {
    --wrap: min(100% - 44px, 800px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-art {
    min-height: 420px;
    aspect-ratio: 16 / 10;
  }

  .facts {
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
    padding: 20px 0;
  }

  .facts div:nth-child(2) {
    border-right: none;
  }

  .facts > p {
    text-align: left;
    padding-left: 16px;
    grid-column: span 2;
    border-top: 1px solid var(--charcoal-border);
    padding-top: 14px;
    margin-top: 4px;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 80px;
    padding-bottom: 85px;
  }

  .about-stamp {
    width: 220px;
    margin: 0 auto;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  :root {
    --wrap: calc(100% - 32px);
  }

  .nav {
    height: 72px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 11px;
  }

  .brand-name {
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .brand-name small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 20px 20px 28px;
    background: rgba(13, 16, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--charcoal-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 60;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--charcoal-border);
    font-size: 14px;
  }

  .nav-links .nav-contact {
    margin-top: 14px;
    padding: 14px !important;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
    margin: 18px 0 12px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .hero-bio {
    font-size: 13.5px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero-note {
    display: none;
  }

  .hero-art {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .hero-art figcaption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    font-size: 9px;
  }

  .hero-art figcaption span:last-child {
    display: none;
  }

  .hero-project-link {
    right: 12px;
    top: 12px;
    padding: 9px 12px;
    font-size: 10px;
  }

  .work-section {
    padding: 70px 0 75px;
  }

  .section-heading {
    display: block;
  }

  .section-intro {
    margin-top: 14px;
    max-width: 100%;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 24px;
    scrollbar-width: thin;
  }

  .filter-button {
    white-space: nowrap;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .services-section {
    padding: 70px 0;
  }

  .service-item {
    grid-template-columns: 28px 1fr 14px;
    gap: 12px;
    padding: 20px 0;
  }

  .service-item h3 {
    font-size: 16px;
  }

  .process-section {
    padding-block: 65px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 30px;
  }

  .about-stamp {
    width: 180px;
  }

  .about-stamp span {
    font-size: 52px;
  }

  .contact-section {
    padding: 70px 0 75px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-inner {
    padding: 20px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .footer-brand {
    width: 100%;
  }

  .footer-brand span {
    display: block;
    margin-top: 4px;
  }

  /* Lightbox Mobile Adjustments */
  .lightbox-top {
    padding: 14px;
  }

  .lightbox-top h2 {
    font-size: 17px;
  }

  .lightbox-stage {
    max-height: 52vh;
  }

  .lightbox-caption {
    padding: 12px 14px;
    gap: 10px;
  }

  .lightbox-caption > div:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .project-contact-links {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--charcoal-border);
    padding-top: 10px;
  }

  .view-thumbnails {
    padding: 0 10px 12px;
    gap: 6px;
  }

  .view-thumbnail img {
    width: 64px;
    height: 44px;
  }

  .project-context {
    padding: 14px;
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Final art direction: image-led studio opening and editorial work. */
.hero.wrap{width:100%;max-width:none;position:relative;display:flex;align-items:flex-end;min-height:740px;height:calc(100svh - 84px);max-height:1000px;padding:80px max(6vw,24px) 115px;isolation:isolate;overflow:hidden}
.hero .hero-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;min-height:0;margin:0;border:0;box-shadow:none;aspect-ratio:auto}
.hero .hero-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%}
.hero .hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,9,13,.77),rgba(4,9,13,.2) 70%),linear-gradient(0deg,rgba(4,9,13,.7),transparent 65%);pointer-events:none}
.hero .hero-copy{max-width:850px;padding:0;position:relative;z-index:1}
.hero h1{font-size:clamp(48px,6.7vw,92px);line-height:1.04;max-width:880px;margin:25px 0 24px;letter-spacing:-.055em}
.hero .hero-subtitle{font:400 17px/1.6 var(--sans);color:#eee;max-width:550px;margin:0 0 28px}
.hero .hero-bio,.hero .hero-note{display:none}
.hero .eyebrow{color:#eee;font-size:11px}.hero .hero-actions{margin-top:0}
.hero .button-dark{background:#efe9dd;color:#14171b;border-color:#efe9dd}.hero .button-dark span{color:#554222}.hero .text-link{color:#fff}
.hero .hero-art figcaption{left:max(6vw,24px);right:auto;bottom:32px;max-width:50%;display:block;color:#fff;font-size:11px;z-index:1}.hero .hero-art figcaption span:last-child{display:none}
.hero .hero-project-link{top:auto;bottom:22px;right:max(6vw,24px);z-index:3;background:rgba(8,12,16,.8);border-color:#999;color:#fff}
.project-card:first-child{grid-column:1/-1}.project-card:first-child .project-image-button{aspect-ratio:2.12}.project-grid{gap:50px 26px}
@media(max-width:900px){.hero.wrap{min-height:680px;height:calc(100svh - 74px)}.hero .hero-copy{max-width:650px}.hero h1{font-size:clamp(48px,8vw,72px)}}
@media(max-width:640px){.hero.wrap{min-height:650px;height:calc(100svh - 70px);max-height:850px;padding:65px 22px 135px}.hero h1{font-size:clamp(42px,10.7vw,66px)}.hero .hero-subtitle{font-size:15px;max-width:320px}.hero .eyebrow{font-size:9px;line-height:1.7;max-width:260px}.hero .hero-actions{gap:18px;flex-wrap:wrap}.hero .hero-art img{object-position:60% center}.hero .hero-art:after{background:linear-gradient(90deg,rgba(4,9,13,.69),rgba(4,9,13,.22)),linear-gradient(0deg,rgba(4,9,13,.85),transparent 90%)}.hero .hero-art figcaption{left:22px;bottom:90px;max-width:90%;font-size:10px}.hero .hero-project-link{bottom:24px;right:auto;left:22px}.project-card:first-child{grid-column:auto}.project-card:first-child .project-image-button{aspect-ratio:1.3}.project-grid{gap:32px}}


/* ==========================================================================
   MEDIA SHOWCASE SECTIONS (360° VR Tour & Cinematic Walkthrough)
   ========================================================================== */
.media-showcase-section {
  background: var(--charcoal-deep);
  color: var(--light-text);
  padding: 105px 0 110px;
  border-top: 1px solid var(--charcoal-border);
  position: relative;
  isolation: isolate;
}

.media-showcase-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 193, 135, 0.25), transparent);
  pointer-events: none;
}

.media-showcase-section.walkthrough-section {
  background: var(--charcoal-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.media-showcase-section .section-label {
  color: var(--gold-text-dark);
}

.media-showcase-section .section-heading h2 {
  color: var(--light-text);
}

.media-showcase-section .section-heading h2 em {
  color: var(--gold-light);
}

.media-showcase-section .section-intro {
  color: var(--light-secondary);
}

.media-frame-container {
  margin-top: 48px;
}

.tour-frame-wrap,
.video-player-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--charcoal-border-light);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease;
}

.tour-frame-wrap:hover,
.video-player-wrap:hover {
  border-color: rgba(223, 193, 135, 0.35);
}

.tour-iframe {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background: #06080b;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  outline: none;
  object-fit: cover;
}

.media-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding: 0 4px;
}

.media-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.media-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--light-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  margin-right: 6px;
  flex-shrink: 0;
}

.media-action .text-link {
  color: var(--gold-light);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.media-action .text-link:hover {
  color: #fff;
  text-decoration: underline;
  transform: translateX(2px);
}

/* Responsive adjustments for media showcases */
@media (max-width: 900px) {
  .media-showcase-section {
    padding: 80px 0;
  }
  .tour-iframe {
    height: 480px;
  }
}

@media (max-width: 640px) {
  .media-showcase-section {
    padding: 60px 0;
  }
  .media-frame-container {
    margin-top: 32px;
  }
  .tour-iframe {
    height: 380px;
  }
  .media-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .tour-iframe {
    height: 300px;
  }
}

/* The restaurant's portrait views get a full-screen, uncropped mobile viewer. */
@media (max-width: 680px) {
  .lightbox[data-project-id="restaurant-interior"][open] {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
  }
  .lightbox[data-project-id="restaurant-interior"] .lightbox-top {
    padding: max(8px, env(safe-area-inset-top)) 14px 8px;
  }
  .lightbox[data-project-id="restaurant-interior"] .lightbox-stage {
    flex: 1 1 0;
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto !important;
  }
  .lightbox[data-project-id="restaurant-interior"] .lightbox-caption {
    padding: 8px 14px max(8px, env(safe-area-inset-bottom));
    flex-wrap: nowrap;
  }
  .lightbox[data-project-id="restaurant-interior"] .lightbox-caption > div:first-child {
    width: auto;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
    gap: 2px 10px;
  }
  .lightbox[data-project-id="restaurant-interior"] .project-contact-links,
  .lightbox[data-project-id="restaurant-interior"] .view-thumbnails,
  .lightbox[data-project-id="restaurant-interior"] .project-context {
    display: none;
  }
}

/* Keep the entrance water feature in view on the restaurant interior cover. */
.project-image-button img[src="assets/projects/vb-interior-01.webp"]{object-position:center bottom}
