@font-face {
  font-family: 'Manrope';
  src: url(assets/prototype/manrope.ttf) format('truetype');
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url(assets/prototype/eb-garamond.ttf) format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: var(--bg);
  --ink: #1A1A1A;
  --ink-soft: #555555;
  --line: #DDDDDD;
  --deep: #262626;
  --on-deep: #FFFFFF;

  --gutter: clamp(20px, 5vw, 64px);
  --language-space: 150px;
  --max: 1240px;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.7rem, 3vw, 2.3rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.4rem);
  --fs-body: 1rem;
  --fs-small: 0.85rem;

  --ease: cubic-bezier(.4,0,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  overflow-x:clip;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:var(--fs-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
button{ font:inherit; }

.wrap{
  max-width:var(--max);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}

.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

.skip-link{
  position:absolute; left:var(--gutter); top:-60px;
  background:var(--deep); color:var(--on-deep);
  padding:10px 18px; z-index:200; transition:top .2s var(--ease);
  font-size:var(--fs-small);
}
.skip-link:focus{ top:12px; }
.visually-hidden{
  position:absolute !important; width:1px; height:1px; margin:-1px;
  padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

:focus-visible{
  outline:2px solid var(--deep);
  outline-offset:3px;
}

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
  width:100vw; max-width:none;
  padding-right:calc(var(--gutter) + var(--language-space));
}
.wordmark{
  display:inline-flex; align-items:center; gap:12px;
  font-family:var(--font-body); font-weight:700;
  font-size:clamp(0.85rem, 1.6vw, 1.05rem); letter-spacing:0.2em; text-transform:uppercase;
  text-decoration:none; color:#000;
  white-space:nowrap;
}
.wordmark .wordmark-name{ font-weight:700; }
.wordmark .wordmark-suffix{ font-weight:400; opacity:.82; }
.wordmark-name, .wordmark-suffix{ display:inline-block; }
.logo-mark{
  height:32px; width:auto; flex-shrink:0;
  fill:currentColor;
}
.logo-mark, .lv2-mark{ shape-rendering:geometricPrecision; }
.mobile-brand-mark{ display:none; }

.site-nav{
  display:flex; gap:clamp(18px,2.6vw,40px);
  list-style:none; margin:0; padding:0;
}
.site-nav a{
  text-decoration:none;
  font-size:0.82rem; letter-spacing:0.11em; text-transform:uppercase;
  font-weight:600; color:var(--ink-soft);
  padding:12px 2px; border-bottom:1px solid transparent;
  transition:color .2s var(--ease), border-color .2s var(--ease);
  display:inline-block;
}
.site-nav a:hover, .site-nav a:focus-visible{
  color:var(--ink); border-color:var(--deep);
}
.site-nav a[aria-current="page"]{
  color:var(--ink); border-color:var(--deep);
}

.nav-toggle-label{
  display:none; cursor:pointer; width:44px; height:44px;
  align-items:center; justify-content:center;
  background:none; border:0; padding:0; color:inherit;
}
.nav-toggle-input{ position:absolute; opacity:0; pointer-events:none; }

.lang-switch{
  display:flex; align-items:center; gap:2px;
  border-left:0; padding-left:clamp(10px,2vw,24px);
}
.lang-btn{
  background:none; border:none; cursor:pointer;
  font-family:var(--font-body); font-size:0.78rem; font-weight:600;
  letter-spacing:0.06em; color:var(--ink-soft);
  padding:10px 7px; min-height:44px;
  border-bottom:1px solid transparent;
}
.lang-btn:hover{ color:var(--ink); }
.lang-btn[aria-current="true"]{ color:var(--ink); border-bottom-color:var(--deep); }

/* One persistent selector: its viewport position never changes with the route. */
.site-language{
  position:fixed; top:16px; left:calc(100vw - var(--gutter));
  transform:translateX(-100%); z-index:350;
}
.is-landing .site-language .lang-btn{ color:rgba(255,255,255,.82); }
.is-landing .site-language .lang-btn[aria-current="true"]{ color:var(--bg); border-bottom-color:var(--bg); }
.is-landing .site-language :focus-visible{ outline-color:var(--bg); }

.header-right{ display:flex; align-items:center; gap:clamp(10px,2vw,24px); }

@media (max-width: 1100px){
  :root{ --language-space:110px; }
  .nav-toggle-label{ display:flex; }
  .wordmark{ font-size:0.72rem; letter-spacing:0.07em; gap:8px; }
  .logo-mark{ height:24px; }
  .header-right{ gap:8px; }
  .lang-switch{ padding-left:8px; gap:0; }
  .lang-btn{ padding:10px 5px; }
  .site-nav{
    position:fixed; inset:76px 0 0 0;
    background:var(--bg);
    flex-direction:column; align-items:flex-start;
    gap:0; padding:8px var(--gutter) 40px;
    transform:translateY(-8px);
    opacity:0; visibility:hidden;
    transition:opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
    overflow-y:auto;
  }
  .site-nav a{
    width:100%; padding:16px 0; border-bottom:1px solid var(--line);
    font-size:1rem;
  }
  .nav-toggle-input:checked ~ .site-nav{
    opacity:1; visibility:visible; transform:translateY(0);
  }
}
@media (max-width: 600px){
  .site-header .wordmark-text{ display:none; }
  .site-header .mobile-brand-mark{ display:block; height:32px; }
}

/* ---------- Sections (generic) ---------- */
.section{ padding:clamp(56px,10vh,112px) 0; }
.section--surface{ background:var(--surface); }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:24px; margin-bottom:clamp(32px,5vw,56px);
}
.section-head h2{
  font-family:var(--font-display);

  font-weight:440;
  font-size:var(--fs-h2);
  margin:0;
}
.section-head p{
  margin:0; color:var(--ink-soft); font-size:var(--fs-small);
  max-width:34ch; text-align:right;
}
@media (max-width:640px){
  .section-head{ flex-direction:column; align-items:flex-start; gap:10px; }
  .section-head p{ text-align:left; }
}

/* ---------- O nas ---------- */
.about-grid{
  display:grid; grid-template-columns: 0.85fr 1fr; gap:clamp(32px,6vw,80px);
  align-items:start;
}
.about-grid figure{ margin:0; }
.about-visual{
  aspect-ratio:4/5; background:var(--surface-2);
  position:relative; overflow:hidden;
}
.about-visual img{ width:100%; height:100%; object-fit:cover; display:block; }
.about-copy p{ margin:0 0 20px; max-width:56ch; color:var(--ink); }
.about-copy p:last-child{ margin-bottom:0; }
.about-copy p.lede{
  font-family:var(--font-display);
  font-size:1.2rem; font-weight:400; color:var(--ink);
}
@media (max-width:820px){
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ aspect-ratio:16/9; }
}
/* ---------- Usługi ---------- */
.services{
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(28px,4vw,48px);
}
.service{
  border-top:1px solid var(--line); padding-top:24px;
}
.service h3{
  font-family:var(--font-display);
  font-weight:450; font-size:var(--fs-h3); margin:0 0 12px;
}
.service p{ margin:0; color:var(--ink-soft); max-width:36ch; }
@media (max-width:820px){
  .services{ grid-template-columns:1fr; gap:32px; }
}

/* ---------- Projekty / Sklep grids ---------- */

.grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(24px,3vw,40px);
}
.card{ display:flex; flex-direction:column; }
.card-visual{
  aspect-ratio:4/3; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.card-visual svg{ width:30%; height:30%; opacity:.2; color:var(--deep); }
.card-visual img{ width:100%; height:100%; object-fit:cover; display:block; }
.card-tag{
  position:absolute; top:12px; left:12px;
  font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase;
  font-weight:700; color:var(--ink-soft);
  background:rgba(255,255,255,0.88);
  padding:5px 9px;
}
.card h3{
  font-family:var(--font-body); font-weight:700; font-size:0.98rem;
  margin:0 0 4px; color:var(--ink-soft); font-style:italic;
}
.card .meta{ font-size:var(--fs-small); color:var(--ink-soft); margin:0 0 14px; font-style:italic;}
.card .btn-line{ margin-top:auto; }
.product-card-link{ text-decoration:none; }
.product-card-title{ text-decoration:none; }
.product-card-title:hover{ text-decoration:underline; text-underline-offset:4px; }

/* Project carousels */
.portfolio-project{ width:min(100%,900px); margin:0 auto; }
.interior-project{ width:min(100%,680px); }
.interior-project .product-photograph{ aspect-ratio:3/4; background:var(--bg); }
.architecture-project .product-photograph{ aspect-ratio:16/9; }
.architecture-project .gallery-arrow{ color:#fff; }
.architecture-project .gallery-arrow svg{ filter:drop-shadow(0 1px 2px rgba(0,0,0,.7)); }
.portfolio-project .gallery-thumbnails{ grid-template-columns:repeat(2,minmax(0,100px)); }
.portfolio-project .gallery-thumbnail{ aspect-ratio:16/9; }
.portfolio-project figcaption{ margin:16px 0 0; color:var(--ink-soft); font-size:.875rem; font-style:italic; }

/* Furniture product detail */
#meble{ scroll-margin-top:76px; }
.product-page{ padding:28px 0 clamp(56px,8vw,96px); }
.product-breadcrumb{ margin-bottom:28px; font-size:.82rem; }
.product-breadcrumb a{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--ink-soft); min-height:36px; }
.product-breadcrumb a:hover{ color:var(--ink); }
.product-hero{ display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.85fr); align-items:start; gap:clamp(32px,5vw,72px); }
.product-gallery{ min-width:0; }
.product-photograph{ position:relative; margin:0; aspect-ratio:3/2; background:#eeeeee; overflow:hidden; touch-action:pan-y pinch-zoom; }
.product-photograph>img{ width:100%; height:100%; object-fit:contain; user-select:none; }
.gallery-arrow{ position:absolute; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); cursor:pointer; }
.gallery-arrow:hover{ background:transparent; opacity:.65; }
.gallery-arrow svg{ width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; }
.gallery-previous{ left:14px; }
.gallery-next{ right:14px; }
.gallery-thumbnails{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:12px; }
#komoda-gallery .gallery-thumbnails{ grid-template-columns:repeat(6,minmax(0,1fr)); }
.gallery-thumbnail{ display:block; min-width:0; min-height:44px; aspect-ratio:1; padding:3px; background:transparent; border:1px solid transparent; cursor:pointer; }
.gallery-thumbnail img{ display:block; width:100%; height:100%; object-fit:cover; }
.gallery-thumbnail[aria-current="true"]{ border-color:var(--ink); }
.gallery-thumbnail:hover{ border-color:var(--ink-soft); }
.gallery-arrow:focus-visible,.gallery-thumbnail:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
@media(max-width:480px){ .gallery-previous{ left:8px; }.gallery-next{ right:8px; }.gallery-thumbnails{ gap:5px; }.gallery-thumbnail{ padding:2px; } }
.product-information{ padding:20px 0; }
.product-category{ margin:0 0 14px; color:var(--ink-soft); font-size:.75rem; text-transform:uppercase; letter-spacing:.13em; }
.product-information h1{ font:440 clamp(2.4rem,4.5vw,3.8rem)/1.05 var(--font-display); margin:0 0 24px; }
.product-description{ margin:0 0 30px; color:var(--ink-soft); max-width:34ch; font-size:.95rem; }
.product-specifications{ margin:0 0 32px; font-size:.82rem; }
.product-specifications>div{ padding:15px 0; border-top:1px solid var(--line); }
.product-specifications dt{ font-weight:700; margin-bottom:5px; }
.product-specifications dd{ margin:0; color:var(--ink-soft); }
.product-specifications small{ display:block; font-size:.72rem; margin-top:4px; }
.product-actions{ display:flex; flex-wrap:wrap; gap:18px 24px; align-items:center; }
.product-actions .btn{ justify-content:center; }
.product-enquiry{ font-size:.82rem; text-underline-offset:5px; }
@media(max-width:760px){
  .product-page{ padding-top:20px; }
  .product-breadcrumb{ margin-bottom:20px; }
  .product-hero{ grid-template-columns:1fr; gap:28px; }
  .product-information{ padding:0; }
  .product-information h1{ font-size:2.6rem; }
}


.tone-a{ background:linear-gradient(155deg,#eeeeee,#dddddd); }
.tone-b{ background:linear-gradient(155deg,#e8e8e8,#d6d6d6); }
.tone-c{ background:linear-gradient(155deg,#f3f3f3,#dedede); }

@media (max-width:960px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .grid{ grid-template-columns:1fr; } }

/* ---------- buttons / links ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--deep); color:var(--on-deep);
  text-decoration:none; padding:13px 22px;
  font-size:0.88rem; font-weight:600; letter-spacing:0.02em;
  border:1px solid var(--deep);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.btn:hover, .btn:focus-visible{ background:transparent; color:var(--deep); }

.btn-outline{
  display:inline-flex; align-items:center; gap:10px;
  background:transparent; color:var(--deep);
  text-decoration:none; padding:11px 20px;
  font-size:0.85rem; font-weight:600;
  border:1px solid var(--deep);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.btn-outline:hover, .btn-outline:focus-visible{ background:var(--deep); color:var(--on-deep); }

/* ---------- Kontakt ---------- */
.contact-inner{ max-width:640px; margin:0; }
.contact-inner p.lede{
  font-family:var(--font-display);
  font-size:1.75rem; font-weight:400; margin:0 0 14px;
}
.contact-sub{ color:var(--ink-soft); margin:0 0 28px; max-width:48ch; }
.contact-actions{ display:flex; flex-wrap:wrap; gap:16px; align-items:center; }

/* ---------- Footer ---------- */
.site-footer{ --deep:#fff; --ink:#fff; --ink-soft:#d4d4d4; --line:#444; background:#262626; border-top:1px solid var(--line); padding:32px 0; }
.site-footer .wrap{
  display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:space-between;
  font-size:var(--fs-small); color:var(--ink-soft);
}
.site-footer a{ text-decoration:none; color:var(--ink-soft); }
.site-footer a:hover{ color:var(--ink); }

/* ---------- Splash / entry gate ---------- */
.landing-v2{
  height:100vh;
  height:100dvh;
  min-height:0;
  display:flex; flex-direction:column;
  position:relative;
}
html.is-landing, html.is-landing body{ height:100%; overflow:hidden; }
.splash-top{
  display:flex; align-items:center; justify-content:space-between;
  padding:22px var(--gutter);
  flex:0 0 auto;
}
.splash-brand{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--ink);
  font-family:var(--font-body); font-weight:700;
  font-size:0.85rem; letter-spacing:0.14em; text-transform:uppercase;
}
.splash-brand svg{ height:24px; width:auto; fill:var(--ink); flex-shrink:0; }
.splash-brand span{ font-weight:400; color:var(--ink-soft); }

.splash-panels{
  display:flex; flex:1 1 auto; min-height:0;
}
.splash-panel{
  position:relative; flex:1; overflow:hidden;
  display:flex; align-items:flex-end;
  text-decoration:none;
  padding:clamp(24px,3vw,40px);
  border-left:1px solid var(--line);
}
.splash-panel:first-child{ border-left:none; }
.splash-panel img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease);
}
.splash-panel:hover img{ transform:scale(1.04); }
.splash-panel-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.64) 100%);
}
.splash-panel-label{ position:relative; z-index:1; color:var(--bg); }
.splash-panel-title{
  display:block; font-family:var(--font-display);
  font-size:clamp(1.3rem,2.1vw,1.8rem); font-weight:420; margin:0 0 8px;
}
.splash-panel-sub{
  display:block; font-size:0.88rem; max-width:26ch; line-height:1.5;
  color:rgba(255,255,255,0.82);
}

@media (max-width:760px){
  .splash-panels{ flex-direction:column; }
  .splash-panel{ min-height:260px; border-left:none; border-top:1px solid var(--line); }
  .splash-panel:first-child{ border-top:none; }
}

/* ---------- Landing (single full-bleed kitchen image) ---------- */
.landing-v2{
  position:relative; overflow:hidden;
}
.lv2-media{ position:absolute; inset:0; z-index:0; }
.lv2-image{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.lv2-scrim{
  position:absolute; inset:0; z-index:1;
  background:linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.72) 100%);
}
.lv2-top{
  flex:0 0 76px;
}
.lv2-content{
  position:relative; z-index:2;
  flex:1; min-height:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:min(40px, 4dvh) var(--gutter) min(100px, 10dvh);
  color:var(--bg);
}
.lv2-mark{
  width:min(clamp(58px, 8.5vw, 92px), 13dvh); height:auto; flex-shrink:0; fill:#fff; margin:0 auto min(26px, 3dvh);
}
.lv2-wordmark{
  font-family:var(--font-body); font-weight:700;
  font-size:clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing:0.2em; text-transform:uppercase;
  margin:0 0 min(44px, 5dvh); line-height:1.3;
  text-shadow:0 2px 14px rgba(0,0,0,0.5);
}
.lv2-wordmark span{ display:inline-block; }
.lv2-wordmark .wordmark-suffix{ font-weight:400; opacity:.82; }
.lv2-menu{
  display:flex; align-items:center; gap:20px; flex-wrap:wrap; justify-content:center;
}
.lv2-menu a{
  text-decoration:none; color:rgba(255,255,255,0.92);
  font-size:0.8rem; letter-spacing:0.14em; text-transform:uppercase; font-weight:600;
  padding:6px 0; border-bottom:1px solid transparent;
  transition:color .2s var(--ease), border-color .2s var(--ease);
  text-shadow:0 2px 12px rgba(0,0,0,0.45);
}
.lv2-menu a:hover, .lv2-menu a:focus-visible{ color:var(--bg); border-color:var(--bg); }
.landing-v2 :focus-visible{ outline-color:var(--bg); }
.lv2-sep{ color:rgba(255,255,255,0.4); font-size:0.8rem; }

/* Content enters gently as it reaches the viewport; the header stays still. */
.reveal-pending{ opacity:0; transform:translateY(24px); }
.reveal-visible{
  animation:content-reveal .9s ease var(--reveal-delay, 0ms) both;
}
@keyframes content-reveal{
  from{ opacity:0; transform:translateY(24px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (prefers-reduced-motion:reduce){
  .reveal-pending, .reveal-visible{ opacity:1; transform:none; animation:none; }
}
@media (max-width:600px){
  .lv2-wordmark{ letter-spacing:0.01em; }
  .lv2-menu{ gap:14px; row-gap:10px; }
}
