/* ==========================================================================
   JAMAL & COMPANY LIMITED — ARCHITECTURAL INTERIORS & SPATIAL DESIGN
   Monochrome Editorial Design System
   Dhaka, Bangladesh · Est. 2018 · Reg: C-172356/2018
   ========================================================================== */

:root {
  /* Dark / Obsidian Monochrome Palette (Default) */
  --bg-main: #0c0d0e;
  --bg-card: #131416;
  --bg-card-hover: #1a1c1e;
  --bg-glass: rgba(12, 13, 14, 0.82);
  --bg-glass-card: rgba(25, 27, 30, 0.65);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-bright: rgba(255, 255, 255, 0.35);
  --text-main: #f5f5f7;
  --text-muted: #8e9196;
  --text-faint: #55585d;
  --accent-white: #ffffff;
  --accent-black: #000000;
  --badge-bg: rgba(255, 255, 255, 0.06);
  --highlight-box: #16181b;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --container-max: 1400px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light / Gallery Monochrome Theme */
[data-theme="light"] {
  --bg-main: #fafaf9;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f3f2;
  --bg-glass: rgba(250, 250, 249, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.85);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.16);
  --border-bright: rgba(0, 0, 0, 0.35);
  --text-main: #111213;
  --text-muted: #64686e;
  --text-faint: #a0a4ab;
  --accent-white: #000000;
  --accent-black: #ffffff;
  --badge-bg: rgba(0, 0, 0, 0.05);
  --highlight-box: #f1f2f3;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Custom Cursor Follower (Desktop only) */
.custom-cursor {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-white);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background-color 0.25s, border-color 0.25s, transform 0.06s linear;
  z-index: 9999;
  mix-blend-mode: difference;
}
.custom-cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--accent-white);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  mix-blend-mode: difference;
}
.custom-cursor.active {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Top Live Ticker Bar */
.top-status-bar {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  position: relative;
  z-index: 101;
}
.top-status-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: pulse-dot 2.2s infinite ease-in-out;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text-main);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-white);
  transition: width var(--transition-fast);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  transition: var(--transition-fast);
}
.theme-toggle-btn:hover {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-main);
  border: 1px solid var(--text-main);
  padding: 0.65rem 1.4rem;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.btn-primary:hover {
  background: transparent;
  color: var(--text-main);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 0.65rem 1.4rem;
  font-size: 0.825rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.btn-secondary:hover {
  border-color: var(--text-main);
  background: var(--badge-bg);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-height) - 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08) brightness(0.68);
  transform: scale(1.02);
  transition: transform 12s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-section:hover .hero-backdrop img {
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 13, 14, 0.4) 0%,
    rgba(12, 13, 14, 0.6) 40%,
    rgba(12, 13, 14, 0.94) 95%,
    var(--bg-main) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xs);
  margin-bottom: 1.75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 1050px;
  margin-bottom: 1.75rem;
  color: #ffffff;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: #cccccc;
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Hero Stats Strip */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-medium);
}
.hero-stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* ==========================================================================
   Trust & Incorporation Credential Banner
   ========================================================================== */
.credential-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 0;
}
.credential-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2.5rem;
}
.credential-icon-box {
  width: 54px;
  height: 54px;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--badge-bg);
}
.credential-text h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.credential-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.credential-meta-tags {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.meta-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.credential-actions {
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Section Header Utility
   ========================================================================== */
.section {
  padding: 7rem 0;
  position: relative;
}
.section-header {
  margin-bottom: 4rem;
}
.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-title em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-top: 1rem;
  line-height: 1.7;
}
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Portfolio Works Section
   ========================================================================== */
.portfolio-filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}
.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: var(--radius-xs);
  transition: var(--transition-fast);
}
.filter-btn:hover {
  color: var(--text-main);
  background: var(--badge-bg);
}
.filter-btn.active {
  color: var(--bg-main);
  background: var(--text-main);
  border-color: var(--text-main);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}
.project-card {
  grid-column: span 6;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}
.project-card.featured {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.project-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.project-media {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/10;
}
.project-card.featured .project-media {
  aspect-ratio: auto;
  min-height: 480px;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.project-card:hover .project-media img {
  transform: scale(1.05);
  filter: grayscale(100%) contrast(1.15) brightness(1.05);
}
.project-overlay-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
}
.project-info {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.project-category {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.project-year {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.project-excerpt {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.project-specs {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}
.spec-box {
  display: flex;
  flex-direction: column;
}
.spec-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--text-faint);
}
.spec-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.15rem;
}
.project-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  font-weight: 600;
}
.project-cta-link svg {
  transition: transform var(--transition-fast);
}
.project-card:hover .project-cta-link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Before & After Spatial Transformation Slider
   ========================================================================== */
.transformation-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 620px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
  user-select: none;
  background: #000;
}
.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.slider-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-image.before-image img {
  filter: grayscale(100%) contrast(1.3) brightness(0.75);
}
.slider-image.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--accent-white);
  z-index: 2;
}
.slider-image.after-image .inner-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  /* width will be kept in sync with container width in JS */
}
.slider-image.after-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  z-index: 10;
  cursor: ew-resize;
  pointer-events: none;
}
.slider-badge {
  position: absolute;
  bottom: 1.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  z-index: 5;
}
.slider-badge.badge-before {
  right: 1.5rem;
}
.slider-badge.badge-after {
  left: 1.5rem;
}
.slider-instruction {
  text-align: center;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Design Manifesto / Notion-Inspired Editorial Cards
   ========================================================================== */
.notion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.notion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.notion-card:hover {
  border-color: var(--border-medium);
  background: var(--bg-card-hover);
}
.notion-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.notion-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.notion-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.7;
}
.notion-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.notion-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 0.25rem 0.5rem;
  background: var(--badge-bg);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Interactive Materiality Archive
   ========================================================================== */
.material-archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.material-preview-box {
  position: relative;
  border: 1px solid var(--border-medium);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #000;
}
.material-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.material-live-callout {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: rgba(12, 13, 14, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
}
.callout-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.callout-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.swatch-selector-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.swatch-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.swatch-item:hover, .swatch-item.active {
  border-color: var(--text-main);
  background: var(--bg-card-hover);
}
.swatch-info-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.swatch-indicator {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-bright);
}
.swatch-indicator.swatch-marquina {
  background: #080808;
  border-color: #444;
}
.swatch-indicator.swatch-limestone {
  background: #d8d8d4;
}
.swatch-indicator.swatch-oak {
  background: #2a2521;
}
.swatch-indicator.swatch-steel {
  background: #6c7075;
}
.swatch-indicator.swatch-linen {
  background: #e7e5df;
}
.swatch-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.swatch-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.swatch-status {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Cost & Spatial Estimator
   ========================================================================== */
.estimator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}
.estimator-form-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.est-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.est-group label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.segment-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}
.segment-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-main);
}
.segment-btn.active {
  background: var(--text-main);
  color: var(--bg-main);
  border-color: var(--text-main);
  font-weight: 600;
}

/* Range input styling */
.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--border-medium);
  outline: none;
  border-radius: 2px;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-white);
  cursor: pointer;
  border: 2px solid var(--accent-black);
}

.checkbox-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.chip-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
}
.chip-label input[type="checkbox"] {
  accent-color: var(--accent-white);
}

/* Estimator Result Box */
.estimator-result-col {
  background: var(--highlight-box);
  border: 1px solid var(--border-subtle);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.result-header h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.result-header p {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.price-display {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.price-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}
.price-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-top: 0.25rem;
}
.price-timeline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}
.breakdown-list {
  list-style: none;
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.breakdown-list li {
  display: flex;
  justify-content: space-between;
}

/* ==========================================================================
   Consultation & Inquiry Form
   ========================================================================== */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
}
.inquiry-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.studio-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.875rem;
}
.studio-meta-table tr {
  border-bottom: 1px solid var(--border-subtle);
}
.studio-meta-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.725rem;
  color: var(--text-muted);
  padding: 1rem 0;
  width: 35%;
  text-transform: uppercase;
}
.studio-meta-table td {
  padding: 1rem 0;
  color: var(--text-main);
}

.inquiry-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  padding: 2.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  background: var(--bg-main);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--text-main);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 320px;
  margin-top: 1rem;
  line-height: 1.6;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-nav a:hover {
  color: var(--text-main);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Modals & Drawers
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}
.modal-backdrop.active .modal-box {
  transform: translateY(0);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}
.modal-close-btn:hover {
  color: var(--text-main);
}
.modal-body {
  padding: 2rem;
}

/* Project Drawer */
.project-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 760px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-medium);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
}
.project-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2.25rem;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-content {
  padding: 2.25rem;
  overflow-y: auto;
  flex: 1;
}
.drawer-media-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  margin-bottom: 2rem;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}
.drawer-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

/* Toast Notifications */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--text-main);
  color: var(--bg-main);
  padding: 1rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  z-index: 9999;
  border-radius: var(--radius-xs);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}
.toast-notice.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Architecture & Mobile Optimization
   ========================================================================== */

/* Shared Layout Grids for Modals & Drawers */
.cert-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Touch & Cursor Optimizations */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* Tablet & Medium Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .notion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .estimator-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
  }
  .material-archive-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .inquiry-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Mobile & Tablet Portrait (<= 768px) */
@media (max-width: 768px) {
  /* Layout Spacing */
  .container {
    padding: 0 1.25rem;
  }
  .section {
    padding: 4.5rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem);
  }
  .section-desc {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  /* Top Status Bar */
  .top-status-bar {
    padding: 0.45rem 0;
    font-size: 0.68rem;
  }
  .top-status-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  /* Sticky Header & Mobile Navigation */
  .header-inner {
    height: 64px;
  }
  .brand-name {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
  }
  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .header-actions {
    gap: 0.65rem;
  }
  .header-actions .btn-primary {
    padding: 0.45rem 0.85rem;
    font-size: 0.725rem;
  }
  .theme-toggle-btn {
    padding: 0.45rem 0.65rem;
    font-size: 0.7rem;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
    line-height: 1;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-medium);
  }

  /* Slide-down Mobile Navigation Panel */
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--bg-main);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem 3rem;
    gap: 0;
    border-bottom: 1px solid var(--border-medium);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
    z-index: 99;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links .nav-link {
    display: block;
    width: 100%;
    font-size: 1.2rem;
    font-family: var(--font-display);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
  }
  .nav-links .nav-link:hover {
    color: var(--text-main);
    padding-left: 0.5rem;
  }
  .nav-links .nav-link::after {
    display: none;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding: 3.5rem 0 2.5rem;
  }
  .hero-tag {
    font-size: 0.65rem;
    gap: 0.45rem;
    padding: 0.35rem 0.65rem;
    flex-wrap: wrap;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }
  .hero-title {
    font-size: clamp(2rem, 7.5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    padding-top: 1.75rem;
  }
  .stat-num {
    font-size: 1.65rem;
  }
  .stat-label {
    font-size: 0.68rem;
  }

  /* Credential Banner */
  .credential-banner {
    padding: 1.75rem 0;
  }
  .credential-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: left;
  }
  .credential-icon-box {
    width: 46px;
    height: 46px;
  }
  .credential-meta-tags {
    gap: 0.4rem;
  }
  .meta-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
  }
  .credential-actions {
    width: 100%;
  }
  .credential-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Selected Works Filter & Grid */
  .portfolio-filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    gap: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    white-space: nowrap;
    font-size: 0.7rem;
    padding: 0.45rem 0.85rem;
    flex-shrink: 0;
  }
  .portfolio-grid {
    gap: 1.5rem;
  }
  .project-card {
    grid-column: span 12;
  }
  .project-card.featured {
    grid-template-columns: 1fr;
  }
  .project-card.featured .project-media {
    aspect-ratio: 16/10;
    min-height: 220px;
  }
  .project-info {
    padding: 1.5rem 1.25rem;
  }
  .project-title {
    font-size: 1.35rem;
  }
  .project-excerpt {
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
  }
  .project-specs {
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  /* Before & After Slider */
  .slider-container {
    aspect-ratio: 4/3;
    max-height: 400px;
    touch-action: pan-y;
  }
  .slider-handle {
    width: 38px;
    height: 38px;
  }
  .slider-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
    bottom: 0.75rem;
  }
  .slider-badge.badge-before {
    right: 0.75rem;
  }
  .slider-badge.badge-after {
    left: 0.75rem;
  }

  /* Design Manifesto */
  .notion-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .notion-card {
    padding: 1.5rem 1.25rem;
  }
  .notion-num {
    margin-bottom: 1rem;
  }
  .notion-card h3 {
    font-size: 1.2rem;
  }
  .notion-tags {
    margin-top: 1.25rem;
  }

  /* Materiality Archive */
  .material-preview-box {
    aspect-ratio: 16/10;
  }
  .material-live-callout {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 0.85rem;
  }
  .callout-name {
    font-size: 1rem;
  }
  .callout-desc {
    font-size: 0.75rem;
  }
  .swatch-item {
    padding: 1rem;
  }
  .swatch-info-left {
    gap: 0.85rem;
  }
  .swatch-indicator {
    width: 28px;
    height: 28px;
  }
  .swatch-name {
    font-size: 0.875rem;
  }
  .swatch-status {
    font-size: 0.65rem;
  }

  /* Scope & Estimator */
  .estimator-card {
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }
  .segmented-control {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .segment-btn {
    padding: 0.65rem;
  }
  .checkbox-chip-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .estimator-result-col {
    padding: 1.5rem 1.25rem;
  }
  .price-value {
    font-size: 2rem;
  }

  /* Inquiry Form & Address */
  .inquiry-grid {
    gap: 2.5rem;
  }
  .inquiry-form-card {
    padding: 1.75rem 1.25rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 0;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 0 2rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Modals & Drawer */
  .modal-backdrop {
    padding: 1rem;
  }
  .modal-box {
    max-height: 94vh;
  }
  .modal-header {
    padding: 1rem 1.25rem;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .cert-modal-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project-drawer {
    max-width: 100%;
  }
  .drawer-header {
    padding: 1.25rem;
  }
  .drawer-content {
    padding: 1.25rem;
  }
  .toast-notice {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    text-align: center;
  }
}

/* Small Smartphone Breakpoint (<= 560px) */
@media (max-width: 560px) {
  .section {
    padding: 3.25rem 0;
  }
  .container {
    padding: 0 1rem;
  }
  .studio-meta-table tr {
    display: flex;
    flex-direction: column;
    padding: 0.75rem 0;
  }
  .studio-meta-table th {
    width: 100%;
    padding: 0 0 0.25rem 0;
  }
  .studio-meta-table td {
    padding: 0;
    word-break: break-word;
  }
  .drawer-meta-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
  .theme-toggle-btn .theme-label {
    display: none;
  }
  .brand-name {
    font-size: 1.05rem;
  }
  .brand-sub {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
