/* ============================================================
   WUJOYI — Line Art Minimal CSS
   Spatial metaphor naming: canvas, stage, gallery, shelf, drawer, spotlight
   ============================================================ */


:root {
  --color-bg: #f7f5f2;
  --color-bg-alt: #f0ede8;
  --color-surface: #fdfcfb;
  --color-ink: #1e1c1a;
  --color-ink-soft: #4a4642;
  --color-ink-muted: #7a746e;
  --color-line: #d8d2cb;
  --color-line-light: #ece8e2;
  --color-accent: #8b7355;
  --color-accent-light: #c4a882;
  --color-accent-pale: #f0e8dc;
  --color-night: #1a1825;
  --color-night-soft: #2d2b3d;

  --shadow-sm: 0 1px 3px rgba(30,28,26,0.06), 0 1px 2px rgba(30,28,26,0.04);
  --shadow-md: 0 4px 12px rgba(30,28,26,0.08), 0 2px 4px rgba(30,28,26,0.05);
  --shadow-lg: 0 12px 32px rgba(30,28,26,0.10), 0 4px 8px rgba(30,28,26,0.06);
  --shadow-xl: 0 24px 48px rgba(30,28,26,0.12), 0 8px 16px rgba(30,28,26,0.07);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --font-body: 'Outfit', sans-serif;

  --nav-h: 68px;

  --transition-fast: 0.18s ease;
  --transition-base: 0.28s ease;
  --transition-slow: 0.45s ease;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body.canvas {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
select, input, textarea { font-family: inherit; }


h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

p { line-height: 1.75; color: var(--color-ink-soft); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--color-accent); }

/* ============================================================
   NAVIGATION — shelf-nav
   ============================================================ */

.shelf-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(247,245,242,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
  transform: translateY(-100%);
  transition: transform var(--transition-slow);
  height: var(--nav-h);
}

.shelf-nav--visible {
  transform: translateY(0);
}

.shelf-nav.shelf-nav--shown {
  transform: translateY(0);
}

.shelf-nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.shelf-nav__logo { flex-shrink: 0; display: flex; align-items: center; }
.shelf-nav__logo img { height: 32px; width: auto; }

.shelf-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 auto;
}

.shelf-nav__link {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-ink-soft);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

.shelf-nav__link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0.85rem; right: 0.85rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.shelf-nav__link:hover,
.shelf-nav__link.active {
  color: var(--color-ink);
}

.shelf-nav__link:hover::after,
.shelf-nav__link.active::after {
  transform: scaleX(1);
}

.shelf-nav__cta {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-ink);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.shelf-nav__cta:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.shelf-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.shelf-nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* ============================================================
   MOBILE TAB BAR — drawer--mobile
   ============================================================ */

.drawer--mobile {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  background: rgba(247,245,242,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-line);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}

.drawer__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0.4rem 0.5rem;
  flex: 1;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--color-ink-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  min-height: 44px;
  justify-content: center;
}

.drawer__tab i { font-size: 1.1rem; transition: color var(--transition-fast); }

.drawer__tab.active,
.drawer__tab:hover {
  color: var(--color-accent);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
}

.btn--primary {
  background: var(--color-ink);
  color: var(--color-bg);
  border-color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--outline:hover {
  background: var(--color-ink);
  color: var(--color-bg);
  transform: translateY(-2px);
}

.btn--text {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  padding-left: 0;
  font-size: 0.875rem;
}
.btn--text:hover { color: var(--color-ink); gap: 0.75rem; }

.btn--large {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   HERO STAGE
   ============================================================ */

.stage--hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-night);
  overflow: hidden;
}

.stage__icon-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  pointer-events: none;
  overflow: hidden;
}

.stage__icon-grid i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(255,255,255,0.04);
  aspect-ratio: 1;
}

.stage__accent {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,115,85,0.15) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.stage__accent--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,115,85,0.08) 0%, transparent 70%);
  bottom: 50px; left: -50px;
  top: auto; right: auto;
}

.stage__content {
  position: relative;
  z-index: 2;
  padding: var(--space-md);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.stage__card {
  max-width: 680px;
  background: rgba(253,252,251,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 4rem);
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 64px rgba(0,0,0,0.4),
    0 8px 16px rgba(0,0,0,0.2);
}

.stage__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  border-bottom: 1px solid var(--color-accent-light);
  padding-bottom: 0.25rem;
  margin-bottom: 1.25rem;
}

.stage__headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: #f7f5f2;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.stage__subtext {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(247,245,242,0.65);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.stage__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.stage__sentinel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
}


.stage--page-hero {
  padding: calc(var(--nav-h) + var(--space-xl)) var(--space-md) var(--space-xl);
  background: var(--color-night);
  position: relative;
  overflow: hidden;
}

.stage--page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(139,115,85,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.stage--page-hero--sm {
  padding-top: calc(var(--nav-h) + var(--space-lg));
  padding-bottom: var(--space-lg);
}

.stage__content--centered { text-align: center; }

.stage__headline--md { font-size: clamp(2rem, 5vw, 3.5rem); color: #f7f5f2; }
.stage__headline--sm { font-size: clamp(1.6rem, 3vw, 2.5rem); color: #f7f5f2; }

.stage__subtext--narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================================
   GALLERY — SECTIONS
   ============================================================ */

.gallery {
  padding: var(--space-xl) 0;
  position: relative;
}

.gallery__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.gallery__container--narrow {
  max-width: 800px;
}

.gallery__container--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.gallery__container--reverse {
  direction: rtl;
}
.gallery__container--reverse > * { direction: ltr; }

.gallery__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-light);
  padding-bottom: 0.2rem;
  margin-bottom: 0.75rem;
}

.gallery__title {
  margin-bottom: 1rem;
}

.gallery__desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}


.gallery--intro { background: var(--color-surface); }
.gallery--visual { background: var(--color-bg); }
.gallery--services { background: var(--color-bg-alt); }
.gallery--approach { background: var(--color-surface); }
.gallery--image-break { background: var(--color-bg); }
.gallery--text-wide { background: var(--color-surface); }
.gallery--principles { background: var(--color-bg); }
.gallery--visual-alt { background: var(--color-bg-alt); }
.gallery--timeline { background: var(--color-surface); }
.gallery--services-full { background: var(--color-bg); }
.gallery--guide-intro { background: var(--color-surface); }
.gallery--guide-section { background: var(--color-bg); }
.gallery--guide-screens { background: var(--color-surface); }
.gallery--contact { background: var(--color-bg); }
.gallery--map { background: var(--color-bg-alt); padding: 0; }
.gallery--legal { background: var(--color-surface); padding: var(--space-xl) 0; }

/* ============================================================
   SHELF — CARDS
   ============================================================ */

.shelf--three {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.shelf--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.shelf--four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.shelf__card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.shelf__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}


.shelf__card:has(.shelf__card-img) {
  padding: 0;
  overflow: hidden;
}

.shelf__card-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.shelf__card:hover .shelf__card-icon {
  border-color: var(--color-accent);
  background: var(--color-accent-pale);
}

.shelf__card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}

.shelf__card-text {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  line-height: 1.65;
  margin-bottom: 0;
}


.shelf__card.spotlight {
  border-color: var(--color-accent-light);
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-accent-pale) 100%);
}

.shelf__card-ribbon {
  position: absolute;
  top: 18px; right: -24px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 32px;
  transform: rotate(45deg);
  transform-origin: center;
  width: 110px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(139,115,85,0.3);
}


.shelf__card--image {
  display: flex;
  flex-direction: column;
}

.shelf__card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.shelf__card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.shelf__card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.shelf__card-body p {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  flex: 1;
  margin-bottom: 1rem;
}


.shelf__step {
  border-left: 1px solid var(--color-line);
  padding: 0 0 0 1.5rem;
  position: relative;
  transition: border-color var(--transition-base);
}

.shelf__step:hover { border-color: var(--color-accent); }

.shelf__step-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.shelf__step h4 { margin-bottom: 0.4rem; }
.shelf__step p { font-size: 0.875rem; color: var(--color-ink-muted); margin: 0; }


.shelf--principles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.shelf__principle {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.shelf__principle:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.shelf__principle-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--color-accent);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.shelf__principle:hover .shelf__principle-icon {
  border-color: var(--color-accent);
  background: var(--color-accent-pale);
}

.shelf__principle h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.shelf__principle p { font-size: 0.875rem; color: var(--color-ink-muted); margin: 0; }


.shelf--timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.shelf__timeline-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.shelf__timeline-item:last-child { padding-bottom: 0; }

.shelf__timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 25px; top: 52px; bottom: 0;
  width: 1px;
  background: var(--color-line);
}

.shelf__timeline-marker {
  width: 52px;
  height: 52px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.shelf__timeline-marker span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
}

.shelf__timeline-content { padding-top: 0.75rem; }
.shelf__timeline-content h4 { margin-bottom: 0.4rem; }
.shelf__timeline-content p { font-size: 0.9rem; color: var(--color-ink-muted); margin: 0; }


.shelf__service-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.shelf__service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.shelf__service-card--alt {
  grid-template-columns: 1.2fr 1fr;
}
.shelf__service-card--alt .shelf__service-visual { order: 2; }
.shelf__service-card--alt .shelf__service-content { order: 1; }

.shelf__service-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.shelf__service-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shelf__service-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid var(--color-accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  align-self: flex-start;
}

.shelf__service-content h2 { font-size: 1.6rem; }
.shelf__service-content p { color: var(--color-ink-soft); margin: 0; }

.shelf__service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.shelf__service-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

.shelf__service-list li i {
  color: var(--color-accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}


.shelf--guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.shelf__guide-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.shelf__guide-card:hover {
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.shelf__guide-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.shelf__guide-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.shelf__guide-card p { font-size: 0.875rem; color: var(--color-ink-muted); margin: 0; }


.shelf__guide-tip {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  margin-bottom: 1rem;
  transition: border-color var(--transition-fast);
}

.shelf__guide-tip:hover { border-color: var(--color-accent-light); }

.shelf__guide-tip > i {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.shelf__guide-tip strong { display: block; font-size: 0.9rem; margin-bottom: 0.2rem; color: var(--color-ink); }
.shelf__guide-tip p { font-size: 0.85rem; color: var(--color-ink-muted); margin: 0; }


.shelf--checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.shelf__check-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-line-light);
}

.shelf__check-item:last-child { border-bottom: none; }

.shelf__check-item i {
  color: var(--color-accent);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   VISUAL ELEMENTS
   ============================================================ */

.gallery__visual-side {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gallery__img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  display: block;
  transition: transform var(--transition-slow);
}

.gallery__visual-side:hover .gallery__img {
  transform: scale(1.02);
}

.gallery__visual-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(253,252,251,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-line);
  border-radius: 100px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
  box-shadow: var(--shadow-md);
}

.gallery__visual-badge i { color: var(--color-accent); }

.gallery__text-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery__text-side h2 { margin-bottom: 0.5rem; }

/* ============================================================
   GRADIENT FADE TRANSITION
   ============================================================ */

.stage-curtain--fade {
  height: 120px;
  background: linear-gradient(to bottom, var(--color-bg-alt), var(--color-night));
  pointer-events: none;
}


.gallery--image-break + .spotlight--cta,
.gallery--approach + .spotlight--cta {
  background: var(--color-night);
}

/* ============================================================
   SPOTLIGHT — CTA
   ============================================================ */

.spotlight--cta {
  background: var(--color-night);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spotlight--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,115,85,0.15) 0%, transparent 65%);
  pointer-events: none;
}

.spotlight__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.spotlight__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #f7f5f2;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.spotlight__text {
  color: rgba(247,245,242,0.65);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.65;
}

.spotlight--cta .gallery__label {
  color: var(--color-accent-light);
  border-color: var(--color-accent-light);
}

/* ============================================================
   CONTACT
   ============================================================ */

.gallery__container--contact {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-xl);
  align-items: start;
}

.gallery__contact-info h2 { margin-bottom: 1.5rem; }

.shelf__contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line-light);
}

.shelf__contact-item:last-of-type { border-bottom: none; }

.shelf__contact-item > i {
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.shelf__contact-item strong { display: block; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-ink-muted); margin-bottom: 0.2rem; }
.shelf__contact-item p { margin: 0; font-size: 0.95rem; color: var(--color-ink-soft); }
.shelf__contact-item a { color: var(--color-accent); }
.shelf__contact-item a:hover { color: var(--color-ink); }

.gallery__contact-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

.shelf__fact {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.shelf__fact > i {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.shelf__fact strong { display: block; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-ink-muted); margin-bottom: 0.15rem; }
.shelf__fact span { font-size: 0.875rem; color: var(--color-ink-soft); }


.gallery__contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.gallery__contact-form h2 { margin-bottom: 1.5rem; font-size: 1.5rem; }

.shelf__form-group {
  margin-bottom: 1.25rem;
}

.shelf__form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-ink-soft);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.shelf__form-group input,
.shelf__form-group select,
.shelf__form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
}

.shelf__form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4642' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}


.shelf__form-group:has(:focus) label { color: var(--color-accent); }
.shelf__form-group:has(:focus) input,
.shelf__form-group:has(:focus) select,
.shelf__form-group:has(:focus) textarea {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,115,85,0.1);
}

.shelf__form-group textarea { resize: vertical; min-height: 120px; }

.shelf__form-group--check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.shelf__form-group--check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.shelf__form-group--check label {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-ink-soft);
  margin: 0;
  cursor: pointer;
}

.shelf__form-group--check label a { color: var(--color-accent); text-decoration: underline; }


.gallery__map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  margin: var(--space-md);
}

/* ============================================================
   THANKS PAGE
   ============================================================ */

.canvas--thanks .canvas__main--thanks {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg);
}

.spotlight--thanks {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.spotlight__quote-card {
  width: 100%;
  background: var(--color-night);
  border-radius: var(--radius-xl);
  padding: 3rem;
  position: relative;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.06);
}

.spotlight__quote-icon {
  color: var(--color-accent-light);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.spotlight__quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(247,245,242,0.85);
  line-height: 1.6;
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.spotlight__quote-attr {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.spotlight__thanks-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.spotlight__thanks-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.5rem;
}

.spotlight__thanks-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.spotlight__thanks-text { color: var(--color-ink-soft); max-width: 420px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.gallery--legal .gallery__container--narrow h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-line-light);
  color: var(--color-ink);
}

.gallery--legal .gallery__container--narrow p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.gallery--legal .gallery__container--narrow a {
  color: var(--color-accent);
  text-decoration: underline;
}

.gallery--legal-terms .gallery__legal-intro {
  background: var(--color-accent-pale);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.gallery--legal-terms .gallery__legal-section {
  margin-bottom: 1.5rem;
}

.gallery--legal-cookies .gallery__cookie-block {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gallery--legal-cookies .gallery__cookie-block h2 {
  background: var(--color-bg-alt);
  margin: 0;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-line);
  border-radius: 0;
}

.gallery__cookie-detail {
  padding: 1.5rem;
}

.gallery__cookie-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.gallery__cookie-badge--required { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.gallery__cookie-badge--analytics { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.gallery__cookie-badge--marketing { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

.gallery__cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 1rem;
}

.gallery__cookie-table th,
.gallery__cookie-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--color-line-light);
  color: var(--color-ink-soft);
}

.gallery__cookie-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
  background: var(--color-bg-alt);
}

/* ============================================================
   FOOTER
   ============================================================ */

.stage-footer {
  background: var(--color-night);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.stage-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.stage-footer__brand img { margin-bottom: 1rem; }

.stage-footer__brand p {
  font-size: 0.875rem;
  color: rgba(247,245,242,0.5);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.stage-footer__brand address {
  font-size: 0.82rem;
  color: rgba(247,245,242,0.4);
  line-height: 1.8;
}

.stage-footer__brand address a {
  color: rgba(247,245,242,0.55);
  transition: color var(--transition-fast);
}
.stage-footer__brand address a:hover { color: var(--color-accent-light); }

.stage-footer__col h5 {
  color: rgba(247,245,242,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.stage-footer__col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.stage-footer__col a {
  font-size: 0.875rem;
  color: rgba(247,245,242,0.55);
  transition: color var(--transition-fast);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.stage-footer__col a:hover {
  color: rgba(247,245,242,0.9);
  border-color: rgba(247,245,242,0.2);
}

.stage-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem var(--space-md);
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stage-footer__bottom p {
  font-size: 0.78rem;
  color: rgba(247,245,242,0.3);
  margin: 0;
}

/* ============================================================
   INNER PAGE LAYOUT
   ============================================================ */

.canvas--inner .canvas__main {
  min-height: calc(100vh - var(--nav-h));
}

/* ============================================================
   COOKIE CONSENT — RIGHT PANEL
   ============================================================ */

.cookie-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,24,37,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.cookie-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cookie-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 320px;
  background: var(--color-surface);
  border-left: 1px solid var(--color-line);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(30,28,26,0.15);
}

.cookie-panel.active {
  transform: translateX(0);
}

.cookie-panel__header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-panel__header i {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.cookie-panel__header h3 {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.cookie-panel__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.cookie-panel__close:hover { border-color: var(--color-ink); color: var(--color-ink); }

.cookie-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-panel__intro {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  line-height: 1.65;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-line-light);
  margin: 0;
}

.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.cookie-category__info { flex: 1; }
.cookie-category__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 0.2rem;
  display: block;
}
.cookie-category__desc {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  line-height: 1.5;
  margin: 0;
}


.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-line);
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition-base);
}

.cookie-toggle__slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: transform var(--transition-base);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-toggle__slider::before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-panel__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-panel__footer .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
}

.cookie-panel__footer .btn--outline {
  border-color: var(--color-line);
  color: var(--color-ink-soft);
}
.cookie-panel__footer .btn--outline:hover {
  border-color: var(--color-ink);
  color: var(--color-ink);
  background: transparent;
  transform: none;
}

.cookie-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9997;
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.cookie-trigger:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-accent-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .shelf--four { grid-template-columns: repeat(2, 1fr); }
  .stage-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .shelf__service-card { grid-template-columns: 1fr; }
  .shelf__service-card--alt .shelf__service-visual { order: 0; }
  .shelf__service-card--alt .shelf__service-content { order: 0; }
  .shelf__service-visual img { min-height: 260px; }
  .gallery__container--contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
  }

  .shelf-nav__links,
  .shelf-nav__cta { display: none; }

  .shelf-nav__hamburger { display: flex; }

  .drawer--mobile { display: flex; }

  .canvas { padding-bottom: 70px; }

  .gallery__container--split {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .gallery__container--reverse { direction: ltr; }

  .gallery__img { height: 280px; }

  .shelf--two { grid-template-columns: 1fr; }
  .shelf--three { grid-template-columns: 1fr; }
  .shelf--four { grid-template-columns: 1fr 1fr; }
  .shelf--principles { grid-template-columns: 1fr 1fr; }

  .stage-footer__inner { grid-template-columns: 1fr 1fr; }
  .stage-footer__brand { grid-column: 1 / -1; }

  .stage__card { padding: 2rem 1.5rem; }
  .stage__headline { font-size: clamp(2rem, 8vw, 3rem); }

  .gallery__contact-facts { grid-template-columns: 1fr; }

  .shelf__service-content { padding: 1.5rem; }

  .spotlight--cta { padding: var(--space-xl) var(--space-sm); }

  .cookie-panel { width: 100%; }
  .cookie-trigger { bottom: calc(70px + 1rem); }
}

@media (max-width: 480px) {
  .shelf--four { grid-template-columns: 1fr; }
  .shelf--principles { grid-template-columns: 1fr; }
  .stage-footer__inner { grid-template-columns: 1fr; }
  .stage-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stage__actions { flex-direction: column; }
  .stage__actions .btn { width: 100%; justify-content: center; }
  .gallery__contact-facts { grid-template-columns: 1fr; }
}

/* ============================================================
   :has() RELATIONAL STYLING
   ============================================================ */


.gallery:has(.spotlight) {
  background: var(--color-bg-alt);
}


.shelf__card:has(img) {
  padding-top: 0;
}


.shelf__form-group:has(input:invalid:not(:placeholder-shown)) label {
  color: #c0392b;
}

.shelf__form-group:has(input:invalid:not(:placeholder-shown)) input {
  border-color: #e74c3c;
}


.gallery__container--split:has(.gallery__img) .gallery__text-side {
  justify-content: center;
}

/* ============================================================
   SCROLL SNAP (Homepage)
   ============================================================ */

.stage-scroll {
  
}

/* ============================================================
   UTILITY
   ============================================================ */

.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;
}


a, button, input, select, textarea {
  transition: all var(--transition-fast);
}


:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}