/* ==========================================================================
   ATELIER HOFSTETTER MALEREI · OPFIKON (SEIT 1956)
   Bespoke Design System: "Atelier Hofstetter — Chalk, Espresso, Cobalt & Pigment Rust"
   Created from scratch by PerSoZ Opfikon
   ========================================================================== */

:root {
  --canvas: #f4f1ea;
  --canvas-2: #eae5da;
  --white: #ffffff;
  --espresso: #161311;
  --espresso-2: #231f1c;
  --cobalt: #1b3b6f;
  --rust: #c24b27;
  --rust-hover: #a53c1c;
  --rust-tint: #f9ece7;
  --brass: #b58d42;
  --ink: #171412;
  --muted: #5d564f;
  --soft: #857d74;
  --danger: #b91c1c;
  --line: rgba(22, 19, 17, 0.1);
  --line-strong: rgba(22, 19, 17, 0.22);

  /* Live interactive hero pigment token */
  --hero-pigment: #1b3b6f;

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-card: 0 12px 32px rgba(22, 19, 17, 0.06);
  --shadow-lift: 0 24px 56px rgba(22, 19, 17, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.62;
  font-size: 16px;
  overflow-x: clip;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Scroll Reveal Motion ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Top Studio Ribbon (PerSoZ) ---------- */
.studio-ribbon {
  background: var(--espresso);
  color: rgba(244, 241, 234, 0.85);
  font-size: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-ribbon-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.studio-ribbon strong {
  color: #f3a683;
}

.ribbon-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f1ea;
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 11px;
  cursor: pointer;
}

.ribbon-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ---------- Architectural Floating Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 241, 234, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand-meta {
  border-left: 1px solid var(--line-strong);
  padding-left: 13px;
  line-height: 1.12;
}

.brand-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--espresso);
  white-space: nowrap;
}

.brand-meta span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-rail {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(22, 19, 17, 0.04);
}

.nav-rail a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 180ms ease;
}

.nav-rail a:hover {
  color: var(--espresso);
}

.nav-rail a.active {
  background: var(--espresso);
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--espresso);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--espresso);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 220ms var(--ease);
}

.btn-sm {
  padding: 9px 17px;
  font-size: 13px;
}

.btn-dark {
  background: var(--espresso);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--rust);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(194, 75, 39, 0.28);
}

.btn-rust {
  background: var(--rust);
  color: #ffffff;
}

.btn-rust:hover {
  background: var(--rust-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(194, 75, 39, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--espresso);
  color: #ffffff;
  border-color: var(--espresso);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-ghost-light:hover {
  background: #ffffff;
  color: var(--espresso);
}

.btn-wa {
  background: #15803d;
  color: #ffffff;
}

.btn-wa:hover {
  background: #166534;
}

/* ---------- Typography Helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 16px;
}

.kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
}

.h1-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 22px;
  color: var(--espresso);
}

.h1-xl em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
  letter-spacing: -0.01em;
  font-size: 1.08em;
}

.h2-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  color: var(--espresso);
}

.h2-lg em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rust);
}

.lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* ==========================================================================
   1. BESPOKE HERO STAGE (Full-Canvas Architectural Split + Live Pigment Bar)
   ========================================================================== */
.hero-stage {
  padding: 40px 0 64px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: stretch;
}

.hero-editorial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-editorial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--hero-pigment);
  transition: background 420ms ease;
}

.hero-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.heritage-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--espresso);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 34px;
}

/* Live Interactive Pigment Selector inside Hero */
.pigment-bar {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pigment-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pigment-label strong {
  display: block;
  color: var(--espresso);
  font-size: 12.5px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}

.pigment-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pigment-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease;
}

.pigment-dot:hover {
  transform: scale(1.12);
}

.pigment-dot.active {
  border-color: var(--espresso);
  box-shadow: 0 0 0 2px #ffffff inset;
}

/* Right Hero Visual Stage */
.hero-visual {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  min-height: 520px;
  background: var(--espresso);
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 420ms ease, transform 650ms var(--ease);
}

.hero-visual-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 19, 17, 0.14) 0%,
    rgba(22, 19, 17, 0.12) 45%,
    rgba(22, 19, 17, 0.86) 100%
  );
  pointer-events: none;
}

.hero-visual-top {
  position: relative;
  z-index: 2;
  padding: 20px;
  margin-bottom: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.scene-switcher {
  display: inline-flex;
  background: rgba(22, 19, 17, 0.72);
  backdrop-filter: blur(12px);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.scene-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.scene-btn.active {
  background: #ffffff;
  color: var(--espresso);
}

.hero-visual-bottom {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.hero-master-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 10px 14px 10px 10px;
  border-radius: var(--r-md);
  color: var(--espresso);
  max-width: 310px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero-master-badge img {
  width: 56px;
  height: 66px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 10px;
  flex-shrink: 0;
}

.hero-master-badge strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.2;
}

.hero-master-badge span {
  font-size: 11.5px;
  color: var(--muted);
}

.hero-stat-pill {
  text-align: right;
  color: #ffffff;
}

.hero-stat-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.hero-stat-pill span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Scrolling Craft Trust Ticker ---------- */
.ticker-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 16px 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 36px;
  width: max-content;
  animation: ticker 34s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.ticker-track span::after {
  content: '◆';
  color: var(--rust);
  font-size: 9px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   2. ASYMMETRIC ARCHITECTURAL BENTO (Replaces 3-column generic grid!)
   ========================================================================== */
.section {
  padding: 84px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.bento-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.bento-span-7 {
  grid-column: span 7;
  min-height: 410px;
}

.bento-span-5 {
  grid-column: span 5;
  min-height: 410px;
}

.bento-span-4 {
  grid-column: span 4;
  min-height: 350px;
}

.bento-photo-bg {
  position: relative;
  color: #ffffff;
  background: var(--espresso);
}

.bento-photo-bg > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

.bento-photo-bg:hover > img {
  transform: scale(1.04);
}

.bento-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 19, 17, 0.08) 0%, rgba(22, 19, 17, 0.88) 100%);
}

.bento-overlay-content {
  position: relative;
  z-index: 2;
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-tag {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.bento-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.12;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.bento-overlay-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 16px;
  max-width: 440px;
}

.bento-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #f3a683;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-story-card {
  background: linear-gradient(155deg, #1b3b6f 0%, #112547 100%);
  color: #ffffff;
  padding: 32px;
}

.bento-story-card h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.12;
  margin: 12px 0;
}

.bento-story-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
  margin: 0;
}

/* ==========================================================================
   3. INTERACTIVE DAYLIGHT/EVENING ROOM + QUICK m² BAND
   ========================================================================== */
.atelier-band {
  background: var(--espresso);
  color: #ffffff;
  padding: 88px 0;
}

.atelier-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.light-sim-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.sim-wall {
  height: 290px;
  position: relative;
  background-color: #f4f1ea;
  transition: background-color 420ms ease, filter 420ms ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.sim-wall.evening {
  filter: brightness(0.84) sepia(0.14) saturate(1.1);
}

.sim-sunbeam {
  position: absolute;
  inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.04) 48%, rgba(22, 19, 17, 0.14) 100%);
  pointer-events: none;
}

.sim-frame {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 122px;
  height: 150px;
  background: #faf9f6;
  border: 6px solid var(--espresso);
  padding: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.sim-frame-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #e7e1d4 0%, #c6b59f 62%, #1b3b6f 62%, #1b3b6f 100%);
}

.sim-skirting {
  height: 12px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}

.sim-floor {
  height: 50px;
  background: repeating-linear-gradient(90deg, #c6ac87 0px, #c6ac87 48px, #ba9f7a 48px, #ba9f7a 50px, #ceb592 50px, #ceb592 98px);
  position: relative;
  z-index: 2;
}

.sim-controls {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

.sim-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-swatch {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 160ms ease;
}

.sim-swatch.active {
  border-color: var(--espresso);
  transform: scale(1.12);
}

.light-mode-pills {
  display: inline-flex;
  background: var(--canvas);
  padding: 3px;
  border-radius: 999px;
}

.light-pill {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.light-pill.active {
  background: var(--white);
  color: var(--espresso);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.quick-calc-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 32px;
}

.quick-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.quick-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  padding: 10px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.quick-tab.active {
  background: var(--rust);
  color: #ffffff;
}

.range-ui {
  width: 100%;
  accent-color: var(--rust);
  cursor: pointer;
}

/* ==========================================================================
   4. SUBPAGE HERO & CALCULATOR (rechner.html)
   ========================================================================== */
.sub-hero {
  padding: 56px 0 48px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: end;
}

.sub-hero-note {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 18px 20px;
  border-left: 3px solid var(--rust);
  font-size: 14px;
  color: var(--muted);
}

.calc-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 32px;
  align-items: start;
}

.calc-shell > * {
  min-width: 0;
}

.panel-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0;
  color: var(--espresso);
}

.panel-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid-2 > *,
.grid-3 > * {
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  text-align: left;
  padding: 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--canvas);
  cursor: pointer;
  transition: all 180ms ease;
}

.choice-card:hover {
  border-color: var(--rust);
  background: var(--white);
}

.choice-card.active {
  background: var(--espresso);
  color: #ffffff;
  border-color: var(--espresso);
}

.choice-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.choice-card span {
  display: block;
  font-size: 12.5px;
  opacity: 0.8;
}

.rate-tag {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(194, 75, 39, 0.16);
}

.sqm-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.sqm-bar input[type='range'] {
  flex: 1;
}

.sqm-box {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--espresso);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  background: var(--white);
  flex-shrink: 0;
}

.sqm-box input {
  width: 72px;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  text-align: right;
  color: var(--espresso);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--canvas);
  color: var(--espresso);
  cursor: pointer;
}

.chip-btn:hover {
  background: var(--rust-tint);
  border-color: var(--rust);
  color: var(--rust);
}

.helper-drawer {
  display: none;
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--canvas);
  border: 1px dashed var(--line-strong);
}

.helper-drawer.open {
  display: block;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--espresso);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(194, 75, 39, 0.14);
}

.field .input-error {
  border-color: var(--danger);
}

.toggle-tile {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--canvas);
  cursor: pointer;
}

.toggle-tile input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--rust);
  margin-top: 2px;
  flex-shrink: 0;
}

.toggle-tile strong {
  display: block;
  font-size: 14px;
}

.toggle-tile span {
  font-size: 12px;
  color: var(--muted);
}

/* Sticky Estimate Receipt */
.receipt-card {
  position: sticky;
  top: 94px;
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  background: linear-gradient(160deg, #1d1917 0%, #12100e 100%);
  color: #f4f1ea;
  border-radius: var(--r-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-lift);
}

.receipt-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #f3a683;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
}

.receipt-rows {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  margin-bottom: 16px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-row span:first-child {
  color: rgba(244, 241, 234, 0.72);
}

.receipt-row strong {
  font-family: var(--font-mono);
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}

.receipt-price {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 600;
  color: #f3a683;
  margin: 4px 0;
}

.receipt-duration {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 59, 111, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dbeafe;
  margin: 6px 0 12px;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}

.receipt-actions .btn {
  width: 100%;
}

/* ==========================================================================
   5. SERVICES, GALLERY, CHRONICLE & CONTACT
   ========================================================================== */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.photo-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  box-shadow: var(--shadow-card);
  margin: 0;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.photo-card figcaption {
  padding: 10px 6px 4px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  border-top: 1px solid var(--line);
}

.spec-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.spec-list li::after {
  content: '→';
  color: var(--rust);
  font-family: var(--font-mono);
}

.cases-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.case-tile {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.case-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.case-tile-body {
  padding: 22px;
}

.case-tile-body h3 {
  font-family: var(--font-display);
  margin: 6px 0 8px;
  font-size: 20px;
}

.case-tile-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Gallery */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--espresso);
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--espresso);
  color: #ffffff;
  border-color: var(--espresso);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gal-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px;
  margin: 0;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 240ms var(--ease), box-shadow 240ms ease;
}

.gal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.gal-card.hidden {
  display: none;
}

.gal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.gal-card figcaption {
  padding: 10px 6px 4px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.gal-card strong {
  font-size: 13.5px;
}

.gal-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--rust);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 12, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
}

.lightbox.open {
  display: flex;
}

.lightbox-box {
  max-width: 960px;
  width: 100%;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 14px;
}

.lightbox-box img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  background: #161311;
  border-radius: 12px;
}

.lightbox-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 6px 4px;
}

/* Chronicle */
.chronicle-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.sticky-portrait {
  position: sticky;
  top: 94px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-card);
  margin: 0;
}

.sticky-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 14px;
}

.year-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.year-row.accent {
  background: var(--rust-tint);
  padding: 18px;
  margin: 8px -18px;
  border-radius: var(--r-md);
  border-bottom-color: transparent;
}

.year-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--rust);
}

/* Contact Equalized Columns */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

.contact-grid > * {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-grid .panel-card {
  flex: 1;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso);
  color: rgba(244, 241, 234, 0.78);
  padding: 58px 0 34px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-plaque {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  color: var(--espresso);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}

.footer-plaque img {
  height: 30px;
}

.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f3a683;
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-btn {
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: 14px;
}

.footer a:hover,
.footer-btn:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-base {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(244, 241, 234, 0.5);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 13, 12, 0.72);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 120;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px;
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-lift);
}

@media print {
  .studio-ribbon,
  .topbar,
  .sub-hero,
  .calc-shell > div:first-child,
  .receipt-actions,
  .footer {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .calc-shell {
    display: block;
  }

  .receipt-card {
    position: static;
    max-height: none;
    background: #ffffff;
    color: #161311;
    border: 2px solid #161311;
    box-shadow: none;
  }

  .receipt-head,
  .receipt-price,
  .receipt-row strong,
  .receipt-row span {
    color: #161311 !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .status-chip {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-shell,
  .atelier-grid,
  .sub-hero-grid,
  .calc-shell,
  .split-2,
  .cases-3,
  .gallery-grid,
  .chronicle-split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }

  .hero-visual {
    min-height: 440px;
  }

  .nav-rail {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav-rail.open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    border-radius: var(--r-md);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    box-shadow: var(--shadow-lift);
  }

  .receipt-card,
  .sticky-portrait {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-editorial,
  .panel-card,
  .receipt-card,
  .quick-calc-box {
    padding: 20px 18px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-visual-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stat-pill {
    text-align: left;
  }

  .brand-meta {
    display: none;
  }
}


/* ==========================================================================
   Unified PerSoZ Showcase Bar & Live Demo Feedback Toast
   ========================================================================== */
html,
body {
  overflow-x: clip;
  max-width: 100%;
}

.proof-strip,
.studio-ribbon {
  display: none !important;
}

.persoz-showcase-bar {
  position: relative;
  z-index: 90;
  background: #060909;
  color: #f3f8f6;
  border-bottom: 1px solid rgba(0, 220, 142, 0.34);
  font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
}

.persoz-showcase-inner {
  width: min(100% - 28px, 1260px);
  margin-inline: auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.persoz-showcase-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5d8d2;
}

.persoz-showcase-label strong {
  color: #ffffff;
}

.persoz-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00dc8e;
  box-shadow: 0 0 0 3px rgba(0, 220, 142, 0.25);
  flex-shrink: 0;
}

.persoz-showcase-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ps-link {
  color: #9cb5ae;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 6px;
}

.ps-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.ps-cta {
  background: linear-gradient(135deg, #00e092 0%, #059b6d 100%);
  color: #04130e !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 12px;
  border-radius: 7px;
  white-space: nowrap;
}

.ps-cta:hover {
  filter: brightness(1.07);
}

.persoz-demo-toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  max-width: min(92vw, 520px);
  background: rgba(6, 9, 9, 0.96);
  color: #f3f8f6;
  border: 1px solid rgba(0, 220, 142, 0.55);
  border-radius: 14px;
  padding: 13px 18px;
  font-family: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.persoz-demo-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.persoz-demo-toast a {
  color: #68fde0;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 6px;
}

@media (max-width: 680px) {
  .ps-hide-sm {
    display: none;
  }
  .persoz-showcase-inner {
    font-size: 11.5px;
  }
}


/* === PRO VISUAL ELEVATION: Atelier Hofstetter (Architectural Gallery & Living Pigment Accents) === */
.hero-stage {
  background:
    radial-gradient(620px 380px at 85% 20%, color-mix(in srgb, var(--hero-pigment) 14%, transparent), transparent 64%),
    var(--canvas) !important;
  transition: background 0.35s ease;
}

.heritage-pill {
  border-color: color-mix(in srgb, var(--hero-pigment) 45%, transparent) !important;
  color: var(--hero-pigment) !important;
}

.h1-xl em {
  color: var(--hero-pigment) !important;
  transition: color 0.3s ease;
}

.brand img,
.footer-plaque img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 9px !important;
}
