/* =========================================================================
   MÍLA FÜRSTOVÁ — vizuální systém
   Koncept: "Stříbrná linka vystupující z tmy." Tmavé plátno, dílo svítí.
   Barva: inkoustová čerň / teplá stříbřitá bílá / šampaňský akcent (zlatá křídla).
   ========================================================================= */

:root {
  --ink:        #0B0B0E;   /* plátno */
  --ink-2:      #101218;   /* sekce o odstín světlejší */
  --ink-3:      #14161d;
  --silver:     #EDEBE6;   /* teplá bílá jako tisk na ručním papíře */
  --silver-dim: rgba(237, 235, 230, 0.60);
  --silver-faint: rgba(237, 235, 230, 0.34);
  --gold:       #C8B48A;   /* šampaň / zlatá křídla Coldplay */
  --gold-dim:   rgba(200, 180, 138, 0.5);
  --paper:      #F3F0E9;   /* světlé sekce pro čtení */
  --paper-ink:  #1a1a1e;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --edge: clamp(20px, 5vw, 90px);   /* vnější okraj */
  --maxw: 1500px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--silver);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: default;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--ink); }

/* jemný filmový šum přes celý web — tiskový/leptový nádech */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- typografie ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 300; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 8vw, 8.5rem);
}
.h-lg { font-family: var(--serif); font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.05; }
.lede { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.4rem); line-height: 1.35; font-style: italic; color: var(--silver); }
.body-lg { font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--silver-dim); max-width: 60ch; }
.mono { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-faint); }

/* ---------- layout ---------- */
section { position: relative; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--edge); }
.pad-y { padding-block: clamp(90px, 14vh, 200px); }

/* =========================================================================
   PRELOADER — pomalé proявení z černé
   ========================================================================= */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}
#preloader.done { opacity: 0; visibility: hidden; }
#preloader .line {
  width: 1px; height: 0; background: var(--gold);
  animation: growline 1.6s var(--ease) forwards;
}
@keyframes growline { to { height: 120px; } }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--edge);
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), border-color 0.5s;
  border-bottom: 1px solid transparent;
  mix-blend-mode: difference;   /* zůstane čitelný na tmavém i světlém */
}
.nav.solid {
  mix-blend-mode: normal;
  background: rgba(11, 11, 14, 0.72);
  backdrop-filter: blur(14px);
  padding-block: 14px;
  border-color: rgba(237,235,230,0.08);
}
.nav .brand { font-family: var(--serif); font-size: 1.25rem; letter-spacing: 0.14em; color: #fff; }
.nav .brand span { color: var(--gold); }
.nav .menu { display: flex; gap: clamp(14px, 2.4vw, 40px); align-items: center; }
.nav .menu a { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; opacity: 0.82; transition: opacity 0.3s; position: relative; }
.nav .menu a::after { content:""; position:absolute; left:0; bottom:-6px; height:1px; width:0; background: var(--gold); transition: width 0.4s var(--ease); }
.nav .menu a:hover { opacity: 1; }
.nav .menu a:hover::after { width: 100%; }
.nav .lang { font-size: 0.72rem; letter-spacing: 0.2em; opacity: 0.6; }
.nav .lang b { color: var(--gold); opacity: 1; font-weight: 400; }
.nav-toggle { display: none; }

/* =========================================================================
   HERO — jeden lept přes obrazovku, kurzor odhaluje detail linky
   ========================================================================= */
.hero { height: 100svh; min-height: 640px; position: relative; overflow: hidden; }
.hero__plate { position: absolute; inset: 0; }
.hero__plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* dvě vrstvy: základní (tlumená) + jasnější "detail", odhalovaný světelnou maskou u kurzoru */
.hero__base { opacity: 0.55; }
.hero__detail {
  opacity: 0.95;
  -webkit-mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 42%), #000 0%, rgba(0,0,0,0.35) 45%, transparent 72%);
          mask-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 42%), #000 0%, rgba(0,0,0,0.35) 45%, transparent 72%);
}
.hero__veil { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 8%, transparent 40%, rgba(11,11,14,0.55) 100%),
  linear-gradient(to bottom, transparent 55%, var(--ink) 100%); }
.hero__content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--edge) clamp(48px, 9vh, 120px);
}
.hero__content .eyebrow { opacity: 0; animation: fadeUp 1.2s var(--ease) 1.4s forwards; }
.hero__title { max-width: 20ch; margin-top: 0.4em; }
.hero__title .l { display: block; opacity: 0; transform: translateY(40px); animation: fadeUp 1.4s var(--ease) forwards; }
.hero__title .l:nth-child(1){ animation-delay: 1.6s; }
.hero__title .l:nth-child(2){ animation-delay: 1.8s; }
.hero__title .l em { font-style: italic; color: var(--gold); }
.hero__meta { display:flex; gap: 28px; margin-top: 2.4rem; opacity: 0; animation: fadeUp 1.2s var(--ease) 2.2s forwards; flex-wrap: wrap; }
.hero__scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display:flex; flex-direction:column; align-items:center; gap:10px; opacity:0; animation: fadeUp 1s ease 2.6s forwards; }
.hero__scroll .dot { width:5px; height:5px; border-radius:50%; background: var(--gold); animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0); opacity:0.4 } 50%{ transform: translateY(9px); opacity:1 } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* =========================================================================
   INTRO + medailony prestiže
   ========================================================================= */
.intro__lede { max-width: 24ch; }
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(50px, 8vh, 110px); background: rgba(237,235,230,0.08); border: 1px solid rgba(237,235,230,0.08); }
.proof__cell { background: var(--ink); padding: clamp(28px, 4vw, 54px) clamp(22px, 3vw, 42px); transition: background 0.5s var(--ease); }
.proof__cell:hover { background: var(--ink-2); }
.proof__cell .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--gold); line-height: 1; }
.proof__cell h3 { font-size: 1.3rem; margin: 0.5em 0 0.4em; letter-spacing: 0.01em; }
.proof__cell p { font-size: 0.92rem; color: var(--silver-dim); }

/* =========================================================================
   VYBRANÁ DÍLA — editorial galerie
   ========================================================================= */
.works { display: flex; flex-direction: column; gap: clamp(80px, 12vh, 180px); }
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; }
.work__figure { position: relative; overflow: hidden; background: #060608; aspect-ratio: 4 / 5; }
.work__figure canvas { width: 100%; height: 100%; transition: transform 1.4s var(--ease); }
.work:hover .work__figure canvas { transform: scale(1.06); }
.work__figure::after { content:""; position:absolute; inset:0; box-shadow: inset 0 0 120px 20px rgba(0,0,0,0.6); pointer-events:none; }
.work__cap .idx { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.work__cap h3 { font-size: clamp(1.8rem, 3.4vw, 3.2rem); margin: 0.2em 0 0.5em; }
.work__cap .meta { color: var(--silver-faint); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; }
.work__cap p { margin: 1.2em 0 1.6em; color: var(--silver-dim); max-width: 42ch; }
/* střídání stran */
.work:nth-child(odd)  .work__figure { grid-column: 1 / 8; }
.work:nth-child(odd)  .work__cap    { grid-column: 8 / 13; }
.work:nth-child(even) .work__figure { grid-column: 6 / 13; order: 2; }
.work:nth-child(even) .work__cap    { grid-column: 1 / 6; }

.link-under { display:inline-flex; align-items:center; gap:12px; font-size:0.78rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--silver); border-bottom:1px solid var(--gold-dim); padding-bottom:6px; transition: gap 0.4s var(--ease), border-color 0.4s; }
.link-under:hover { gap: 20px; border-color: var(--gold); }

/* =========================================================================
   COLDPLAY — fullscreen filmová sekce, zlatá křídla
   ========================================================================= */
.coldplay { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; background: #060608; }
.coldplay canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.coldplay__glow { position:absolute; inset:0; background: radial-gradient(60% 50% at 50% 42%, rgba(200,180,138,0.10), transparent 70%); }
.coldplay__in { position: relative; z-index: 2; padding: 0 var(--edge); }
.coldplay .eyebrow { color: var(--gold); }
.coldplay h2 { font-size: clamp(2.4rem, 6.5vw, 6rem); margin: 0.25em 0; }
.coldplay .lede { color: var(--silver); max-width: 30ch; margin: 0 auto; }
.coldplay .stat { margin-top: 2.6rem; font-family: var(--serif); }
.coldplay .stat b { color: var(--gold); font-weight: 300; }

/* =========================================================================
   ATELIÉR / TECHNIKA
   ========================================================================= */
.studio { background: var(--ink-2); }
.studio__grid { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(30px, 6vw, 90px); align-items:center; }
.studio__steps { display:flex; flex-direction:column; gap: 0; margin-top: 2rem; border-top:1px solid rgba(237,235,230,0.1); }
.studio__step { display:grid; grid-template-columns: auto 1fr; gap: 22px; padding: 22px 0; border-bottom:1px solid rgba(237,235,230,0.1); }
.studio__step .n { font-family: var(--serif); color: var(--gold); font-size: 1.2rem; }
.studio__step h4 { font-size: 1.15rem; font-weight: 400; }
.studio__step p { color: var(--silver-dim); font-size: 0.92rem; }
.studio__plate { aspect-ratio: 3/4; background:#060608; position:relative; overflow:hidden; }
.studio__plate canvas { width:100%; height:100%; }

/* =========================================================================
   SALON / EDICE
   ========================================================================= */
.salon { background: var(--paper); color: var(--paper-ink); }
.salon .eyebrow { color: #8a7748; }
.salon .mono { color: rgba(26,26,30,0.5); }
.salon__grid { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,80px); align-items:center; }
.salon__fig { aspect-ratio: 1/1; background: #0B0B0E; position:relative; overflow:hidden; }
.salon__fig canvas { width:100%; height:100%; }
.salon h2 { color: var(--paper-ink); font-size: clamp(2rem, 4.5vw, 4rem); }
.salon .card { margin-top: 1.8rem; border-top:1px solid rgba(26,26,30,0.18); }
.salon .row { display:flex; justify-content:space-between; gap: 20px; padding: 13px 0; border-bottom:1px solid rgba(26,26,30,0.12); font-size:0.9rem; }
.salon .row span:first-child { color: rgba(26,26,30,0.55); letter-spacing:0.08em; text-transform:uppercase; font-size:0.72rem; }
.salon .row span:last-child { font-family: var(--serif); font-size:1.05rem; }
.btn { display:inline-flex; align-items:center; gap:14px; margin-top:2rem; background: var(--paper-ink); color: var(--paper); padding: 16px 30px; font-size:0.76rem; letter-spacing:0.22em; text-transform:uppercase; transition: transform 0.4s var(--ease), background 0.4s; }
.btn:hover { transform: translateY(-3px); background: #000; }
.btn--ghost { background: transparent; color: var(--silver); border:1px solid rgba(237,235,230,0.35); }
.btn--ghost:hover { background: var(--silver); color: var(--ink); }

/* =========================================================================
   DENÍK + NEWSLETTER
   ========================================================================= */
.journal__head { display:flex; justify-content:space-between; align-items:flex-end; flex-wrap:wrap; gap:20px; margin-bottom: clamp(30px,5vh,60px); }
.journal__list { display:grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(237,235,230,0.08); border:1px solid rgba(237,235,230,0.08); }
.journal__item { background: var(--ink); padding: clamp(26px,3vw,40px); transition: background 0.5s var(--ease); }
.journal__item:hover { background: var(--ink-2); }
.journal__item .mono { color: var(--gold); }
.journal__item h3 { font-size: 1.5rem; margin: 0.7em 0 0.5em; }
.journal__item p { color: var(--silver-dim); font-size: 0.92rem; }
.news { margin-top: clamp(70px,10vh,120px); text-align:center; border:1px solid rgba(237,235,230,0.14); padding: clamp(40px,7vw,90px); background:
  radial-gradient(80% 120% at 50% 0%, rgba(200,180,138,0.06), transparent 60%); }
.news h2 { margin-bottom: 0.4em; }
.news form { display:flex; gap:12px; max-width:520px; margin: 2rem auto 0; }
.news input { flex:1; background: transparent; border:1px solid rgba(237,235,230,0.25); color: var(--silver); padding: 16px 18px; font-family: var(--sans); font-size:0.9rem; }
.news input::placeholder { color: var(--silver-faint); }
.news input:focus { outline:none; border-color: var(--gold); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.foot { background: #060608; border-top:1px solid rgba(237,235,230,0.08); }
.foot__top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { font-size: 0.74rem; letter-spacing:0.24em; text-transform:uppercase; color: var(--silver-faint); margin-bottom: 1.2em; font-weight:400; }
.foot ul { list-style:none; }
.foot li { margin-bottom: 0.7em; }
.foot li a { color: var(--silver-dim); font-size:0.95rem; transition: color 0.3s; }
.foot li a:hover { color: var(--gold); }
.foot .brand { font-family: var(--serif); font-size: 2.4rem; line-height:1; }
.foot .brand span { color: var(--gold); }
.foot__bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; margin-top: clamp(50px,8vh,90px); padding-top: 24px; border-top:1px solid rgba(237,235,230,0.08); font-size:0.78rem; color: var(--silver-faint); }
.foot__bottom .made { color: var(--silver-faint); }
.foot__bottom .made b { color: var(--gold); font-weight:400; }

/* =========================================================================
   SCROLL REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: 0.12s; }
.reveal[data-d="2"]{ transition-delay: 0.24s; }
.reveal[data-d="3"]{ transition-delay: 0.36s; }

/* spotlight kurzoru (jemné dosvětlení plátna) */
.spotlight { position: fixed; width: 520px; height: 520px; border-radius:50%; pointer-events:none; z-index: 5;
  background: radial-gradient(circle, rgba(200,180,138,0.05), transparent 60%);
  transform: translate(-50%,-50%); left:-999px; top:-999px; transition: opacity 0.6s; mix-blend-mode: screen; }

/* =========================================================================
   SUBPAGE (dílo / salon) společné
   ========================================================================= */
.page-head { padding-top: clamp(130px, 20vh, 220px); }
.crumbs { font-size:0.74rem; letter-spacing:0.2em; text-transform:uppercase; color: var(--silver-faint); margin-bottom: 1.4em; }
.crumbs a:hover { color: var(--gold); }
.detail { display:grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px,5vw,80px); align-items:start; }
.detail__fig { position: sticky; top: 100px; aspect-ratio: 4/5; background:#060608; overflow:hidden; }
.detail__fig canvas { width:100%; height:100%; cursor: zoom-in; transition: transform 1.6s var(--ease); }
.detail__fig.zoom canvas { transform: scale(2.1); cursor: zoom-out; }
.zoomhint { position:absolute; bottom:16px; left:16px; z-index:3; }
.spec { border-top:1px solid rgba(237,235,230,0.14); margin-top: 2rem; }
.spec .row { display:flex; justify-content:space-between; gap:18px; padding: 15px 0; border-bottom:1px solid rgba(237,235,230,0.1); }
.spec .row span:first-child { color: var(--silver-faint); font-size:0.72rem; letter-spacing:0.18em; text-transform:uppercase; }
.spec .row span:last-child { font-family: var(--serif); font-size:1.1rem; }
.spec .row .info { cursor: help; border-bottom:1px dotted var(--gold-dim); }
.badge { display:inline-block; padding:5px 12px; border:1px solid var(--gold-dim); color: var(--gold); font-size:0.68rem; letter-spacing:0.2em; text-transform:uppercase; margin-bottom:1.4em; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px) {
  .nav .menu { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 30px; transform: translateX(100%); transition: transform 0.6s var(--ease); mix-blend-mode: normal; }
  .nav.open .menu { transform: none; }
  .nav .menu a { font-size: 1.2rem; }
  .nav-toggle { display:flex; flex-direction:column; gap:6px; z-index: 210; background:none; border:none; cursor:pointer; padding:6px; }
  .nav-toggle span { width:26px; height:1.5px; background:#fff; transition: transform 0.4s, opacity 0.4s; }
  .nav.open .nav-toggle span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2){ opacity:0; }
  .nav.open .nav-toggle span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

  .work, .studio__grid, .salon__grid, .detail { grid-template-columns: 1fr; gap: 28px; }
  .work__figure, .work:nth-child(even) .work__figure { grid-column: 1 / -1; order: 0; }
  .work__cap, .work:nth-child(even) .work__cap { grid-column: 1 / -1; }
  .proof, .journal__list { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .detail__fig { position: relative; top: 0; }
  .news form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal { opacity:1; transform:none; }
}
