/* ── MIGULA STUDIO — Shared Bible Base CSS ─────────────────────────────
   Reset · Variables · Accessibility · Grain · Cursor · Nav · Magnetic
   Auto-generated. Edit source pages to update.
   ─────────────────────────────────────────────────────────────────── */
/* ── RESET & BIBLE BASE (same as index) ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #050505;
  --off-black:  #0f0f0f;
  --dark:       #161616;
  --mid:        #2a2a2a;
  --gold:       #c8a97e;
  --gold-light: #d9bc98;
  --white:      #f4f0eb;
  --muted:      #999;
  --serif:      'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans:       'Satoshi', 'Helvetica Neue', system-ui, sans-serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}


@media (scripting: none) {
  body, body * { cursor: auto !important; }
  .cur-dot { display: none !important; }
}
@media (hover: none) and (pointer: coarse) {
  body, body * { cursor: auto !important; }
  .cur-dot { display: none !important; }
}

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

/* ── ACCESSIBILITY ──────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold);
  color: var(--black);
  padding: 8px 20px;
  font-size: 13px;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
#main-content:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

/* ── GRAIN & VIGNETTE (SVG fractal noise) ───────────────────────────────── */
.ms-grain {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9990;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  opacity: 0.04;
}
.ms-vignette {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9989;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(5,5,5,.65) 85%, rgba(5,5,5,.9) 100%);
}

/* ── CURSOR (golden dot with lerp) ─────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}
.cur-dot {
  position: fixed; top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%; pointer-events: none; z-index: 99999;
  transform: translate(-50%,-50%); will-change: transform;
  opacity: 0; transition: opacity .3s, width .12s ease, height .12s ease;
  box-shadow: 0 0 18px rgba(200,169,126,.75), 0 0 6px rgba(200,169,126,.4);
}
.cur-dot.hover-link     { width: 10px; height: 10px; }
.cur-dot.hover-magnetic { width: 16px; height: 16px; box-shadow: 0 0 28px rgba(200,169,126,.95); }

/* ── NAVIGATION ─────────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10000;
  background: rgba(5,5,5,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  border-bottom: 1px solid rgba(42,42,42,.5);
  transition: transform .4s var(--ease);
}
#nav.scrolled { border-bottom-color: var(--mid); }
#nav.hide { transform: translateY(-100%); }

.nav-logo { font-family: var(--serif); font-size: 18px; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 32px; align-items: center; }
.nav-links a { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.nav-links a:hover            { color: var(--gold); }
.nav-links a.lang-link        { font-size: 10px; opacity: .6; letter-spacing: .06em; }
.nav-links a.lang-link:hover  { opacity: 1; }
.nav-links a.active-lang      { opacity: 1; color: var(--gold); pointer-events: none; }
.nav-links a.nav-highlight,
.mobile-menu a.nav-highlight  { color: var(--gold-light); font-weight: 700; }
.nav-links a.nav-highlight:hover,
.mobile-menu a.nav-highlight:hover { color: var(--gold); }

/* ── NAV CONTEXT TOOLTIPS ──────────────────────────────────────────────── */
.nav-links li { position: relative; }
.nav-context {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: var(--off-black); border: 1px solid var(--mid);
  padding: 14px 18px; min-width: 200px; max-width: 240px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 5100; margin-top: 10px;
}
.nav-links li:hover .nav-context,
.nav-links li:focus-within .nav-context {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}
.nav-links li:first-child .nav-context { left: 0; transform: translateY(2px); }
.nav-links li:first-child:hover .nav-context,
.nav-links li:first-child:focus-within .nav-context { transform: translateY(8px); }
.nav-links li a[href$="/archive.html"] + .nav-context { left: auto; right: 0; transform: translateY(2px); }
.nav-links li a[href$="/archive.html"]:hover + .nav-context,
.nav-links li:focus-within a[href$="/archive.html"] + .nav-context { transform: translateY(8px); }
.nav-context .ctx-title {
  font-family: var(--sans); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 6px;
}
.nav-context .ctx-desc {
  font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: .01em;
  text-transform: none; color: rgba(244,240,235,.65); line-height: 1.55; white-space: normal;
}
.nav-context .ctx-meta {
  font-family: var(--sans); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-light); margin-top: 8px;
}
@media (max-width: 1180px) { .nav-context { display: none; } }

/* ── NAV GROUP DROPDOWNS (Ladder+Works, Method+Cut, Studio) ──────────────── */
.nav-item-group { position: relative; }
.nav-group-label { cursor: default; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(2px);
  background: var(--off-black); border: 1px solid var(--mid);
  padding: 6px 0; min-width: 150px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 5100; margin-top: 10px;
}
.nav-item-group:hover .nav-dropdown,
.nav-item-group:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(8px);
}
.nav-dropdown a {
  display: block; padding: 9px 20px; white-space: nowrap;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav-dropdown a:hover { color: var(--gold); }
@media (max-width: 1180px) { .nav-dropdown { display: none; } }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 12px 8px; z-index: 10001;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 26px; height: 1.5px; background: var(--white); transition: all .3s var(--ease); border-radius: 2px; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(.5); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.hamburger:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }

.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5,5,5,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 18px; z-index: 9999;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s var(--ease), visibility .4s;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(68px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--white); letter-spacing: .08em; transition: color .3s; text-align: center; padding: 2px 16px; display: block; }
.mobile-menu-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mobile-menu-label { font-family: var(--sans); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: rgba(200,169,126,.8); margin-bottom: 2px; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-lang-row { display: flex; gap: .6rem; margin-top: .3rem; flex-wrap: nowrap; justify-content: center; }
.mobile-lang-row a { font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; padding: 8px 8px; display: inline-block; }
.mobile-lang-row a.active-lang { opacity: 1; color: var(--gold); pointer-events: none; }
.mobile-menu a[aria-current="page"] { color: var(--gold); pointer-events: none; }

@media (max-height: 820px) {
  .mobile-menu { gap: 14px; padding: calc(60px + env(safe-area-inset-top, 0px)) 24px calc(22px + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu-group { gap: 8px; }
  .mobile-menu a { font-size: 1.1rem; }
  .mobile-lang-row a { font-size: .7rem; letter-spacing: .12em; padding: 6px 8px; }
}
@media (max-height: 700px) {
  .mobile-menu { gap: 10px; padding: calc(52px + env(safe-area-inset-top, 0px)) 24px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu-group { gap: 6px; }
  .mobile-menu a { font-size: .95rem; padding: 1px 16px; }
  .mobile-menu-label { font-size: 8px; }
  .mobile-lang-row { margin-top: .15rem; }
  .mobile-lang-row a { font-size: .65rem; padding: 5px 8px; }
}
@media (max-height: 600px) {
  .mobile-menu { gap: 8px; padding: calc(48px + env(safe-area-inset-top, 0px)) 24px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .mobile-menu-group { gap: 4px; }
  .mobile-menu a { font-size: .85rem; }
}

@media (max-width: 1180px) {
  #nav { padding: 20px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── MAGNETIC BUTTON (unified) ─────────────────────────────────────────── */
.magnetic-wrap    { display: inline-block; position: relative; }
.concierge-btn {
  display: inline-block; background: rgba(5,5,5,.6);
  border: 1px solid rgba(200,169,126,.4); padding: 14px 32px;
  transition: border-color .35s, background .35s;
  font-family: var(--sans); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); backdrop-filter: blur(4px);
  position: relative !important; overflow: hidden !important;
}
.concierge-btn:hover { border-color: var(--gold); background: rgba(200,169,126,.1); }
.concierge-btn::before,
.concierge-btn::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200,169,126,.9) 50%, transparent 100%);
  transform: translateX(-110%); opacity: 0; pointer-events: none;
}
.concierge-btn::before { top: 0; }
.concierge-btn::after  { bottom: 0; }
.concierge-btn:hover::before { animation: neon-sweep .75s cubic-bezier(.25,.46,.45,.94) forwards; }
.concierge-btn:hover::after  { animation: neon-sweep .75s cubic-bezier(.25,.46,.45,.94) .07s forwards; }
@keyframes neon-sweep {
  0%   { transform: translateX(-110%); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: .8; }
  100% { transform: translateX(110%); opacity: 0; }
}
.magnetic-content  { display: inline-block; will-change: transform; transition: transform .55s var(--ease-expo); }
/* ── SECTION LABEL ──────────────────────────────────────────────────────── */
.section-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

/* ── COOKIE CONSENT (DSGVO/RODO/APPI) ──────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: auto; z-index: 9000;
  max-width: 340px; background: var(--off-black); border: 1px solid var(--gold);
  border-radius: 2px; padding: 20px 22px; display: flex; flex-direction: column;
  gap: 14px; font-size: 12px; line-height: 1.6; color: var(--muted);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.5s var(--ease, ease), transform 0.5s var(--ease, ease);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-close {
  align-self: flex-end; background: var(--gold); border: none; padding: 8px 22px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--black); cursor: pointer; transition: background 0.2s;
}
.cookie-close:hover { background: var(--gold-light); }
body.is-fullscreen .cookie-banner { opacity: 0 !important; pointer-events: none !important; }
@media print { .cookie-banner { display: none !important; } }
@media (max-width: 480px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  body.cookie-open .utility-buttons { bottom: 130px; transition: bottom 0.2s ease; }
}

/* ── UTILITY BUTTONS (scroll-top / fullscreen) — global rules ─────────────── */
@media (hover: none) and (pointer: coarse) {
  .fullscreen-toggle, #fullscreen-btn { display: none !important; }
}

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
.main-footer { background: var(--off-black); border-top: 1px solid rgba(255,255,255,.06); padding: 80px 40px 48px; font-size: 11px; color: var(--muted); text-align: center; }
.footer-body { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-brand { font-family: var(--serif); font-size: 24px; letter-spacing: .35em; color: var(--white); font-weight: 300; }
.footer-origin { letter-spacing: .1em; font-size: 11px; }
.footer-nav, .footer-social, .footer-lang { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; }
.footer-nav a, .footer-social a, .footer-lang a { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .2s; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; }
.footer-nav a:hover, .footer-social a:hover, .footer-lang a:hover, .footer-lang a.active-lang { color: var(--gold); }
.footer-contact { font-size: 11px; letter-spacing: .08em; }
.footer-contact a { color: var(--muted); text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.05); margin-top: 28px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 16px; font-size: 10px; }
.footer-legal a { color: rgba(255,255,255,.5); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--muted); }
.footer-copyright { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-depth { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-depth a { font-family: 'Courier New', Courier, monospace; font-size: 9px; letter-spacing: .15em; color: rgba(180,180,180,.7); text-decoration: none; transition: color .3s; }
.footer-depth a:not([href*="private-room"]) { color: rgba(244,240,235,.92); }
.footer-depth a:hover { color: var(--gold); }
/* compat: non-migrated pages */
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 560px; margin: 0 auto; }
.footer-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-col a, .footer-social a { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--gold); }
@media (max-width: 768px) { .main-footer { padding: 60px 24px 36px; } }

/* ── SCROLL TO TOP ──────────────────────────────────────────────────────── */
#scroll-top { width: 44px; height: 44px; border: 1px solid rgba(200,169,126,.4); background: rgba(5,5,5,.88); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: .3s; backdrop-filter: blur(8px); border-radius: 50%; cursor: pointer; }
#scroll-top.visible { opacity: 1; }
#scroll-top:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ── REVEAL ANIMATION ───────────────────────────────────────────────────── */
.reveal { opacity: 1; transform: translateY(0); }

/* ── PAGE TRANSITIONS ───────────────────────────────────────────────────── */
@keyframes page-out { from { opacity: 1; } to { opacity: 0; } }
body.page-exit { animation: page-out .28s ease forwards; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body.page-exit { animation: none !important; } }

/* ── LAW OF THE HOUSE ───────────────────────────────────────────────────── */
.law-house { background: var(--black); color: var(--white); padding: 140px 24px; font-family: var(--serif); border-top: 1px solid var(--mid); border-bottom: 1px solid var(--mid); }
.law-house .law-inner { max-width: 1040px; margin: 0 auto; }
.law-house .law-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 40px; }
.law-house .law-statement { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.3; text-align: center; max-width: 820px; margin: 0 auto; color: var(--white); }
.law-house .law-statement em { font-style: italic; color: var(--gold-light); }
.law-house .law-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 96px 0 0; border-top: 1px solid var(--mid); }
.law-house .law-col { padding: 48px 36px 8px; border-right: 1px solid var(--mid); }
.law-house .law-col:last-child { border-right: none; }
.law-house .law-no { font-family: var(--sans); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 18px; }
.law-house .law-col h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 32px); margin: 0 0 14px; color: var(--white); line-height: 1.05; }
.law-house .law-col p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; color: #cdc9c2; margin: 0; }
.law-house .law-close { font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 84px 0 0; }
.law-house .law-close b { color: var(--gold-light); font-weight: 500; }
@media (max-width: 760px) {
  .law-house { padding: 96px 22px; }
  .law-house .law-grid { grid-template-columns: 1fr; }
  .law-house .law-col { border-right: none; border-bottom: 1px solid var(--mid); padding: 40px 4px 28px; }
  .law-house .law-col:last-child { border-bottom: none; }
}

/* ── VIEW TRANSITIONS (progressive enhancement; JS exit disabled when supported) ── */
@view-transition { navigation: auto; }
@keyframes vt-in { from { opacity: 0; } to { opacity: 1; } }
::view-transition-old(root) { animation: page-out .28s ease forwards; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-in .32s ease both; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }

/* ── YOUTUBE EMBED ─────────────────────────────────────── */
.yt-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #050505;
  overflow: hidden;
}
.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.yt-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 64px;
}
@media (max-width: 768px) {
  .yt-section { padding: 48px 24px; }
}

/* ── YOUTUBE REEL (vertical 9:16) ───────────────────────── */
.yt-wrap.reel {
  padding-bottom: 177.78%;
  max-width: 360px;
  margin: 0 auto;
}

/* ── TEMP: YouTube media disabled site-wide — placeholders were test content, real media coming 2026-07-06 ── */
/* Usuń ten blok, gdy prawdziwe media będą gotowe do wdrożenia. */
a[href*="youtube.com"],
a[href*="youtu.be"],
.yt-section,
.reel-trigger {
  display: none !important;
}
