/* ==========================================================================
   iART Studio — Luxury Art Gallery Styling
   Inspired by Dessine Art (dessineart.com)
   Palette: Warm museum paper, crisp ink, delicate lines, editorial serif
   ========================================================================== */

:root {
  --paper: #fdfcfa;
  --paper-2: #f6f2eb;
  --paper-3: #efeae2;
  --line: #e7e2d9;
  --line-dark: #33312e;
  --ink: #111111;
  --ink-2: #5c5750;
  --ink-3: #8a847b;
  --white: #ffffff;
  --gold: #b38b2d;
  --accent: #1e7046;
  
  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --gutter: clamp(20px, 4vw, 64px);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Container */
.w {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sec {
  padding-top: clamp(60px, 8vw, 110px);
  padding-bottom: clamp(60px, 8vw, 110px);
}

/* Typography */
.font-serif {
  font-family: var(--serif);
}

.font-sans {
  font-family: var(--sans);
}

.eb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}

.sh {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 54px);
  flex-wrap: wrap;
}

.sh h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  margin-top: 10px;
}

.sh h2 em, h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
}

/* Buttons (Dessine Art signature buttons) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--ink);
  padding: 14px 28px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
  background: transparent;
  color: var(--ink);
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.dk {
  background: var(--ink);
  color: var(--paper);
}

.btn.dk:hover {
  background: #2a2a2a;
}

.btn.sm {
  padding: 10px 20px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
}

.lnk {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.lnk:hover {
  opacity: 0.7;
}

/* Top Announcement Bar */
.top-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 9px var(--gutter);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: all 0.25s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  transition: transform 0.2s ease;
}

.nav-brand:hover .brand-logo-img {
  transform: translateY(-1px);
}

.brand-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}

.brand-subtitle {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

/* Hero Section (Exact Dessine Art Layout - Compact & Refined) */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: auto;
  max-height: 580px;
  border-bottom: 1px solid var(--line);
}

.hero .tx {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 54px) clamp(24px, 4vw, 64px) clamp(28px, 4vw, 44px) var(--gutter);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.8vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 16px 0 18px;
  color: var(--ink);
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
}

.hero p {
  max-width: 440px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 400;
}

.hero .ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.edit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.edit-l {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
}

.edit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.edit-row a {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  transition: transform 0.2s, border-color 0.2s;
}

.edit-row a:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.edit-row a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edit-row .more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.1;
  text-align: center;
}

.edit-row .more small {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.proof {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 16px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #cca33d;
}

/* Hero Stage & Interactive Carousel */
.hero .im,
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  border-left: 1px solid var(--line);
  max-height: 580px;
  width: 100%;
  max-width: 100%;
  height: 100%;
  user-select: none;
}

.carousel-track {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img,
.hero .im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Slide Caption Overlay */
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 24px 22px;
  background: linear-gradient(180deg, transparent 0%, rgba(17, 17, 17, 0.76) 45%, rgba(17, 17, 17, 0.94) 100%);
  color: #ffffff;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.carousel-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e5b85a;
}

.carousel-caption h4 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.25;
}

/* Carousel Header Controls (Prev/Next & Counter) */
.carousel-top-bar {
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none;
}

.carousel-counter {
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: 2px;
}

.carousel-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-btn:hover {
  background: #111111;
  border-color: #ffffff;
  transform: scale(1.08);
}

.carousel-btn svg {
  width: 16px;
  height: 16px;
}

.carousel-indicators {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(17, 17, 17, 0.6);
  padding: 6px 10px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  pointer-events: auto;
}

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

.indicator-dot.active {
  background: #ffffff;
  width: 18px;
  border-radius: 10px;
}

/* Category Discover Strip */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.cat-item {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: background 0.25s ease;
  cursor: pointer;
}

.cat-item:last-child {
  border-right: none;
}

.cat-item:hover {
  background: var(--paper-2);
}

.cat-num {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-3);
}

.cat-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-top: 14px;
}

.cat-meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Filter Bar in Portfolio */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 8px;
  max-width: 100%;
  width: 100%;
  min-width: 0; /* CRITICAL: allows flex child to scroll horizontally without expanding parent */
  scrollbar-width: thin;
}

.filter-pill {
  padding: 8px 18px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 380px;
  min-width: 0;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 0;
}

.gallery-counter {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 34px;
  font-size: 12px;
  font-family: var(--sans);
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--ink);
}

.search-box svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-3);
}

/* Artwork Product Cards (.pc - Dessine Art style) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 24px;
}

.pc {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  background: transparent;
}

.pc .tl {
  position: relative;
  background: #f3efe8;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.pc .tl img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.pc:hover .tl img {
  transform: scale(1.05);
}

.pc .tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  background: rgba(253, 252, 250, 0.92);
  padding: 4px 9px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
}

.pc .view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  padding: 12px;
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}

.pc:hover .view-overlay {
  transform: translateY(0);
}

.pc .mt {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
}

.pc h3 {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  transition: color 0.2s;
  word-break: break-word;
}

.pc:hover h3 {
  color: var(--accent);
}

.pc small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.pc-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s ease;
}

.pc:hover .pc-btn {
  color: var(--accent);
}

/* Process Section (Dark Editorial - like Dessine Art .proc) */
.proc {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proc .top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
  margin-bottom: clamp(48px, 6vw, 84px);
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.proc h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.05;
  font-weight: 400;
}

.proc h2 em {
  opacity: 0.7;
}

.proc .top p {
  color: #bdb6aa;
  font-size: 15px;
  line-height: 1.7;
  max-width: 480px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.step-num {
  font-family: var(--serif);
  font-size: 36px;
  color: #cca33d;
  line-height: 1;
  margin-bottom: 16px;
}

.step h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--paper);
}

.step p {
  color: #9c9589;
  font-size: 13px;
  line-height: 1.6;
}

/* Case Studies Section */
.case-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--line);
  background: var(--white);
  margin-bottom: 40px;
}

.case-card.reverse {
  grid-template-columns: 1.15fr 1fr;
}

.case-tx {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-tx h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  margin: 14px 0 16px;
  font-weight: 400;
}

.case-tx p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
}

.case-im {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-2);
  border-left: 1px solid var(--line);
}

.case-card.reverse .case-im {
  border-left: none;
  border-right: 1px solid var(--line);
}

.case-im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Artist Feature (.db - Dessine Art style) */
.artist-sec {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.artist-im {
  background: var(--paper-3);
  position: relative;
  border-right: 1px solid var(--line);
}

.artist-im img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-tx {
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artist-tx h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1.05;
  margin: 18px 0 24px;
  font-weight: 400;
}

.artist-tx p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Consultation & Inquiries */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  border: 1px solid var(--line);
  background: var(--white);
}

.inquiry-info {
  padding: clamp(40px, 5vw, 70px);
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.inquiry-form-wrap {
  padding: clamp(40px, 5vw, 70px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 13.5px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--ink);
}

/* Lightbox Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--ink);
  color: var(--white);
}

.modal-im {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-im img {
  max-height: 80vh;
  width: auto;
  object-contain: true;
}

.modal-tx {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.modal-tx h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.modal-tx p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.modal-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.modal-meta-row:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

/* Footer (Dessine Art style) */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--ink);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Mobile Drawer & Navigation
   ========================================================================== */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  padding: 28px 20px;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.close-drawer-btn {
  font-size: 26px;
  color: var(--ink);
  padding: 8px;
  line-height: 1;
}

.mobile-drawer-links {
  list-style: none;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

.mobile-link.highlight {
  color: var(--accent);
  font-weight: 700;
}

.mobile-drawer-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Floating WhatsApp Quick Action Button
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: #25d366;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Version Switcher Bar */
.version-switcher-bar {
  background: #111111;
  color: #ffffff;
  padding: 8px var(--gutter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

.version-switcher-link {
  color: #a7f3d0;
  text-decoration: underline;
  font-weight: 700;
}

.version-switcher-link:hover {
  color: #ffffff;
}

/* Responsive adjustments & Zero-Overflow Rules */
@media (max-width: 1080px) {
  .nav-links {
    display: none !important;
  }
  .nav-actions a.btn {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 6px;
    color: var(--ink);
    cursor: pointer;
    background: transparent;
    border: none;
  }
  .nav-container {
    height: 66px;
  }
  .brand-logo-img {
    height: 38px;
    max-width: 135px;
  }
  .hero {
    grid-template-columns: 1fr !important;
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
    width: 100%;
    overflow: visible;
  }
  .hero .tx {
    padding: 36px var(--gutter) 28px !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .hero .im,
  .hero-carousel {
    border-left: none !important;
    border-top: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: 270px !important;
    max-height: 350px !important;
    height: 310px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .carousel-track {
    min-height: 270px !important;
    height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .carousel-slide img {
    object-position: center 15% !important;
  }
  .carousel-caption {
    padding: 24px 16px 14px !important;
  }
  .carousel-caption h4 {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }
  .carousel-top-bar {
    top: 12px !important;
    left: 12px !important;
    right: 12px !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 32px 18px !important;
  }
  .cat-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .proc .top {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 36px !important;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .case-card, .case-card.reverse {
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .case-tx, .case-im {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .case-im {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid var(--line) !important;
    min-height: 240px;
  }
  .artist-sec {
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
  }
  .artist-im {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    min-height: 320px !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .artist-tx {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .inquiry-grid {
    grid-template-columns: 1fr !important;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .inquiry-info {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .inquiry-form-wrap {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .modal-box {
    grid-template-columns: 1fr !important;
    max-height: 94vh;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 680px) {
  .brand-logo-img {
    height: 36px;
    max-width: 125px;
  }
  .hero h1 {
    font-size: clamp(32px, 8vw, 48px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero .ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .hero .ctas .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    box-sizing: border-box;
  }
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .cat-strip {
    grid-template-columns: 1fr !important;
  }
  .cat-item {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 20px 16px !important;
    min-height: auto !important;
  }
  .cat-item:last-child {
    border-bottom: none !important;
  }
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .case-tx {
    padding: 24px 16px !important;
  }
  .artist-tx {
    padding: 32px 16px !important;
  }
  .inquiry-info {
    padding: 28px 16px !important;
  }
  .inquiry-form-wrap {
    padding: 28px 16px !important;
  }
  .search-row {
    max-width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .search-box {
    width: 100% !important;
    min-width: 0 !important;
  }
  .gallery-counter {
    align-self: flex-start !important;
  }
  .archive-banner {
    padding: 30px 16px !important;
    margin: 40px 0 0 !important;
  }
  .archive-banner a.btn {
    width: 100% !important;
    white-space: normal !important;
    text-align: center !important;
    padding: 14px 16px !important;
    font-size: 11px !important;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .top-bar {
    font-size: 9px !important;
    letter-spacing: 0.12em !important;
    padding: 8px 12px !important;
  }
  .floating-wa-btn span {
    display: none !important;
  }
  .floating-wa-btn {
    padding: 14px !important;
    bottom: 18px !important;
    right: 18px !important;
    border-radius: 50% !important;
  }
}

/* ==========================================================================
   Homepage Archive Call-To-Action Banner
   ========================================================================== */
.archive-banner {
  margin: 64px 0 0;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4vw, 56px);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.archive-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.archive-banner-text h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin: 10px 0 12px;
}

.archive-banner-text p {
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 580px;
  line-height: 1.65;
}

/* ==========================================================================
   Loading Skeleton Effects & Smooth Image Fade-In
   ========================================================================== */
.pc-skeleton {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.skeleton-thumb {
  aspect-ratio: 4 / 5;
  background: linear-gradient(90deg, #ede7de 25%, #f7f3ec 50%, #ede7de 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 1px;
}

.skeleton-line {
  height: 14px;
  width: 80%;
  margin-top: 14px;
  background: linear-gradient(90deg, #ede7de 25%, #f7f3ec 50%, #ede7de 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
}

.skeleton-sub {
  height: 10px;
  width: 50%;
  margin-top: 8px;
  background: linear-gradient(90deg, #ede7de 25%, #f7f3ec 50%, #ede7de 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
  border-radius: 2px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Smooth Image Loading Fade-In */
.pc .tl img {
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.pc .tl img.loaded {
  opacity: 1;
}

/* ==========================================================================
   Catalog Pagination & On-Scroll Progress
   ========================================================================== */
.catalog-status {
  margin-top: 50px;
  padding: 36px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.catalog-progress-bar {
  width: 240px;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.catalog-progress-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}

.scroll-trigger {
  width: 100%;
  height: 20px;
  margin-top: 20px;
}

.scroll-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.06em;
}

.spinner-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulseDot 0.8s infinite alternate;
}

.spinner-dot:nth-child(2) { animation-delay: 0.2s; }
.spinner-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulseDot {
  0% { opacity: 0.2; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

