/* Final visual layer for the development concept. Product-specific construction stays local. */
:root {
  --concept-accent: #502988;
  --concept-accent-dark: #3c1c6b;
  --concept-ink: #202020;
  --concept-muted: #626262;
  --concept-intro: #eee8f5;
  --concept-surface: #f6f3f9;
  --concept-line: #dcdcdc;
  --concept-width: 1280px;
  --concept-gutter: 56px;
  --concept-section: clamp(72px, 8vw, 112px);
  --concept-gap: clamp(32px, 5vw, 72px);
  --concept-heading-gap: clamp(28px, 3vw, 44px);
  --concept-heading: clamp(40px, 4.3vw, 62px);
  --concept-hero: clamp(78px, 10.5vw, 148px);
  --concept-ease: cubic-bezier(.22, 1, .36, 1);
  --concept-reveal: 800ms;
  --concept-entrance: 1000ms;
  --accent: var(--concept-accent);
  --accent-dark: var(--concept-accent-dark);
  --ink: var(--concept-ink);
  --muted: var(--concept-muted);
  --tint: var(--concept-intro);
  --line: var(--concept-line);
}

.wrap { width: min(var(--concept-width), calc(100% - 2 * var(--concept-gutter))); }
body :is(.button, .s-btn) { min-height: 54px; font-size: 14px; font-weight: 500; line-height: 1.45; }
body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

/* Large photographs and editorial type share the cover; the object is never cropped. */
body:is(.print-product-page, .editorial-concept) .hero .hero-layout { grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); }
body:is(.print-product-page, .editorial-concept) .hero .hero-copy { position: relative; z-index: auto; min-width: 0; }
body:is(.print-product-page, .editorial-concept) .hero .hero-layout h1 {
  position: relative; z-index: 3; width: max-content; max-width: min(var(--concept-width), calc(100vw - 2 * var(--concept-gutter))); font-size: var(--concept-hero); font-weight: 600;
  line-height: .98; letter-spacing: -.06em; overflow-wrap: normal; word-break: normal; hyphens: none;
}
body.print-product-page[data-kind='memorandumi'] { --concept-hero: clamp(70px, 8.4vw, 120px); }
body.catalog-product-page[data-product='Vodootporne nalepnice'] { --concept-hero: clamp(72px, 9.2vw, 132px); }
body:is(.print-product-page, .editorial-concept) .hero .hero-lead { max-width: 34ch; font-size: 18px; line-height: 1.65; margin-top: 32px; padding-right: 24px; }
body:is(.print-product-page, .editorial-concept) .hero .hero-actions { margin-top: 28px; }
body:is(.print-product-page, .editorial-concept) .hero .hero-picture { padding-top: 80px; }
body:is(.print-product-page, .editorial-concept) .hero-picture > img { width: 100%; height: auto; aspect-ratio: auto; }

body:is(.cal-page, .fld-page, .lny-page, .bdg-page) :is(.cal-hero, .fld-hero, .lny-hero, .bdg-hero) h1 {
  position: relative; z-index: 3; width: max-content; max-width: min(var(--concept-width), calc(100vw - 2 * var(--concept-gutter)));
  font-size: var(--concept-hero); overflow-wrap: normal; word-break: normal;
}
body:is(.cal-page, .fld-page, .lny-page, .bdg-page) main > :is(.cal-hero, .fld-hero, .lny-hero, .bdg-hero) { padding-bottom: 56px; }
body :is(.hero-layout, .cal-hero, .fld-hero, .bdg-hero, .lny-hero, .home-hero) h1 :is(.type-line, .type-line-inner) { width: fit-content; max-width: 100%; }
body :is(.hero-picture, .cal-hero-picture, .fld-hero-picture, .bdg-hero-picture, .lny-hero-picture, .home-hero-image) { position: relative; z-index: 1; }
body :is(.cal-hero-picture, .fld-hero-picture, .bdg-hero-picture, .lny-hero-picture, .home-hero-image) > img { width: 100%; height: auto; aspect-ratio: auto; }

/* A single solid ink color also carries across the photograph. */
body :is(.hero-layout, .cal-hero, .fld-hero, .bdg-hero, .lny-hero, .home-hero) h1 {
  color: var(--concept-ink); mix-blend-mode: normal;
}

@media (min-width: 901px) {
  body:is(.cal-page, .fld-page, .lny-page) :is(.cal-hero, .fld-hero, .lny-hero) { grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); column-gap: 0; }
  body:is(.cal-page, .fld-page) :is(.cal-hero-copy, .fld-hero-copy) { position: relative; z-index: auto; }
  body.lny-page .lny-hero-copy { position: relative; z-index: 3; }
  body:is(.cal-page, .fld-page) :is(.cal-hero-bottom, .fld-hero-bottom), body.lny-page .lny-hero-copy { padding-right: 28px; }
  body.bdg-page .bdg-hero { display: grid; grid-template-columns: minmax(0, .28fr) minmax(0, .72fr); align-items: start; }
  body.bdg-page .bdg-hero-top { grid-column: 1 / -1; grid-row: 1; }
  body.bdg-page .bdg-hero h1 { grid-column: 1 / -1; grid-row: 2; }
  body.bdg-page .bdg-hero-layout { display: contents; }
  body.bdg-page .bdg-hero-copy { position: relative; z-index: 3; grid-column: 1; grid-row: 3; padding: 24px 28px 0 0; }
  body.bdg-page .bdg-hero-picture { grid-column: 2; grid-row: 2 / 4; margin-top: 16px; }
  body.home-concept .home-hero-image { grid-column: 2 / -1; margin-top: -36px; }
  body.home-concept .home-hero h1 { z-index: 3; }
}

/* The lavender introduction is the same full-width pause throughout the concept. */
body .wrap:is(.intro, .home-intro, .cal-intro, .fld-intro, .bdg-intro, .lny-intro) {
  width: 100%; max-width: none; padding-inline: max(var(--concept-gutter), calc((100% - var(--concept-width)) / 2));
  padding-block: var(--concept-section); margin-bottom: var(--concept-section); background: var(--concept-intro);
}
body .wrap:is(.intro, .cal-intro, .fld-intro, .bdg-intro, .lny-intro) { column-gap: var(--concept-gap); }
body:is(.print-product-page, .cal-page, .fld-page, .bdg-page, .lny-page) main :is(.intro, .cal-intro, .fld-intro, .bdg-intro, .lny-intro) h2 {
  font-size: var(--concept-heading); font-weight: 500; line-height: 1.08; letter-spacing: -.05em;
}
body.editorial-concept .ed-band { background: var(--concept-intro); padding-block: var(--concept-section); }

/* One hierarchy for section headings, without resizing dialog titles or the homepage cover. */
body.print-product-page .choice-section .section-heading h2,
body.print-product-page main :is(.banner-preparation-heading, .backwall-preparation-heading, .counter-preparation-heading, .rollup-prep-heading) h2,
body:is(.print-product-page, .cal-page, .fld-page, .bdg-page, .lny-page, .editorial-concept) main :is(.section-heading, .prepress-heading, .companions-heading, .portfolio-heading, .cal-section-head, .fld-section-head, .bdg-section-head, .lny-section-head, .ed-section-head, .pr-section-heading) h2,
body.home-concept :is(.home-section-head, .home-collection, .home-work-intro) h2 {
  font-size: var(--concept-heading); font-weight: 500; line-height: 1.08; letter-spacing: -.05em;
}
body:is(.print-product-page, .cal-page, .fld-page, .bdg-page, .lny-page, .editorial-concept) main :is(.section-heading, .prepress-heading, .cal-section-head, .fld-section-head, .bdg-section-head, .lny-section-head, .ed-section-head, .pr-section-heading) { gap: var(--concept-gap); margin-bottom: var(--concept-heading-gap); }
body.print-product-page .choice-section > .wrap > .section-heading { gap: var(--concept-gap); margin-bottom: var(--concept-heading-gap); }
body.home-concept .home-section-head { gap: var(--concept-gap); margin-bottom: var(--concept-heading-gap); }
body.print-product-page main :is(.banner-preparation-heading, .backwall-preparation-heading, .counter-preparation-heading, .rollup-prep-heading) { gap: var(--concept-gap); margin-bottom: var(--concept-heading-gap); }
body.print-product-page main :is(.banner-preparation-heading, .backwall-preparation-heading, .counter-preparation-heading, .rollup-prep-heading) > p { font-size: 15px; line-height: 1.75; }
body:is(.print-product-page, .cal-page, .fld-page, .bdg-page, .lny-page, .editorial-concept) main :is(.section-heading, .prepress-heading, .cal-section-head, .fld-section-head, .bdg-section-head, .lny-section-head, .ed-section-head, .pr-section-heading) p { font-size: 15px; line-height: 1.75; }

/* Rhythmic section spacing, with family-specific internal layouts left intact. */
body main > :is(.choice-section, .gallery-section, .cal-catalog, .cal-works, .cal-preparation, .cal-related, .fld-choice, .fld-works, .fld-preparation, .fld-related, .bdg-choice, .bdg-works, .bdg-preparation, .bdg-related, .lny-choice, .lny-works, .lny-preparation, .lny-related, .home-offer, .home-collections, .home-work) { padding-bottom: var(--concept-section); }
body.print-product-page main > :is(.prepress, .catalog-preparation, .banner-preparation, .backwall-preparation, .counter-preparation, .rollup-preparation) { padding-block: var(--concept-section); background: var(--concept-surface); }
body main > .companions { padding-block: var(--concept-section); gap: var(--concept-gap); }
body.editorial-concept .ed-section, body.editorial-concept .pr-section { padding-block: var(--concept-section); }
body .studio-visit { padding-block: var(--concept-section); }
body .studio-visit-copy { gap: var(--concept-gap); margin-bottom: clamp(36px, 4.5vw, 64px); }

/* Photographs follow their source, including square details and panoramic packaging. */
body.print-product-page .model-study,
body:is(.cal-page, .fld-page, .bdg-page, .lny-page) :is(.cal-workbench, .fld-workbench, .bdg-workbench, .lny-workbench) { column-gap: var(--concept-gap); }
body :is(.hero-picture, .cal-hero-picture, .fld-hero-picture, .bdg-hero-picture, .lny-hero-picture) > figcaption,
body :is(.model-preview, .cal-model-gallery, .fld-model-gallery, .bdg-live-preview, .lny-live-preview) > figcaption { font-size: 12px; line-height: 1.65; }
body .work-image { aspect-ratio: auto; }
body .work-image img { width: 100%; height: auto; object-fit: contain; }
body .companion figure { aspect-ratio: auto; }
body .companion img { width: 100%; height: auto; object-fit: contain; }

@media (min-width: 1101px) {
  body.print-product-page .portfolio-layout { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  body.print-product-page .portfolio-layout { grid-template-columns: 250px minmax(0, 1fr); }
}

@media (max-width: 1100px) {
  :root { --concept-gutter: 36px; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-lead { font-size: 17px; }
}
@media (max-width: 800px) {
  :root { --concept-gap: 36px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  body.print-product-page .portfolio-layout { grid-template-columns: 220px minmax(0, 1fr); column-gap: 32px; }
}
@media (max-width: 700px) {
  :root { --concept-section: 72px; --concept-heading: clamp(36px, 8.5vw, 46px); --concept-gap: 32px; }
  body .wrap:is(.intro, .cal-intro, .fld-intro, .bdg-intro, .lny-intro) { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body:is(.print-product-page, .cal-page, .fld-page, .bdg-page, .lny-page, .editorial-concept) main :is(.section-heading, .prepress-heading, .cal-section-head, .fld-section-head, .bdg-section-head, .lny-section-head, .ed-section-head, .pr-section-heading) p { font-size: 14px; }
  body :is(.hero-picture, .cal-hero-picture, .fld-hero-picture, .bdg-hero-picture, .lny-hero-picture) > figcaption,
  body :is(.model-preview, .cal-model-gallery, .fld-model-gallery, .bdg-live-preview, .lny-live-preview) > figcaption { font-size: 11px; }
}
@media (max-width: 540px) { :root { --concept-gutter: 22px; } }

/* On phones and portrait tablets, the complete photograph follows the title. */
@media (max-width: 900px) {
  body:is(.print-product-page, .editorial-concept) { --concept-hero: clamp(54px, 15.5vw, 100px); }
  body.print-product-page[data-kind='memorandumi'] { --concept-hero: clamp(36px, 10.1vw, 92px); }
  body.catalog-product-page[data-product='Vodootporne nalepnice'] { --concept-hero: clamp(46px, 11.2vw, 95px); }
  body:is(.print-product-page, .editorial-concept) .hero { padding-bottom: 0; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-layout { display: flex; flex-direction: column; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-copy { display: contents; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-category { order: 0; margin: 0 0 25px; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-layout h1 { order: 1; width: auto; max-width: 100%; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-picture { order: 2; width: calc(100% + 2 * var(--concept-gutter)); padding: 0; margin: 28px calc(-1 * var(--concept-gutter)) 0; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-picture figcaption { padding-inline: var(--concept-gutter); }
  body:is(.print-product-page, .editorial-concept) .hero .hero-lead { order: 3; max-width: 42ch; margin-top: 28px; padding-right: 0; font-size: 18px; }
  body:is(.print-product-page, .editorial-concept) .hero .hero-actions { order: 4; margin-top: 24px; }
  body:is(.cal-page, .fld-page, .lny-page, .bdg-page) main > :is(.cal-hero, .fld-hero, .lny-hero, .bdg-hero) { display: flex; flex-direction: column; padding-bottom: 0; }
  body:is(.cal-page, .fld-page) :is(.cal-hero-copy, .fld-hero-copy), body:is(.bdg-page, .lny-page) :is(.bdg-hero-layout, .lny-hero-layout) { display: contents; }
  body:is(.cal-page, .fld-page) :is(.cal-breadcrumb, .fld-breadcrumb) { order: 0; margin-bottom: 24px; }
  body:is(.cal-page, .fld-page) :is(.cal-hero-copy, .fld-hero-copy) > :is(.cal-eyebrow, .fld-eyebrow) { order: 1; margin-bottom: 20px; }
  body:is(.bdg-page, .lny-page) :is(.bdg-hero-top, .lny-hero-top) { order: 0; }
  body:is(.cal-page, .fld-page, .lny-page, .bdg-page) :is(.cal-hero, .fld-hero, .lny-hero, .bdg-hero) h1 { order: 2; width: auto; max-width: 100%; font-size: clamp(58px, 14.5vw, 100px); }
  body.bdg-page .bdg-hero h1 { font-size: clamp(46px, 10.8vw, 96px); }
  body:is(.cal-page, .fld-page, .lny-page, .bdg-page) :is(.cal-hero-picture, .fld-hero-picture, .lny-hero-picture, .bdg-hero-picture) { order: 3; width: calc(100% + 2 * var(--concept-gutter)); margin: 28px calc(-1 * var(--concept-gutter)) 0; }
  body:is(.cal-page, .fld-page, .lny-page, .bdg-page) :is(.cal-hero-picture, .fld-hero-picture, .lny-hero-picture, .bdg-hero-picture) > figcaption { padding-inline: var(--concept-gutter); }
  body:is(.cal-page, .fld-page) :is(.cal-hero-bottom, .fld-hero-bottom), body:is(.bdg-page, .lny-page) :is(.bdg-hero-copy, .lny-hero-copy) { order: 4; width: 100%; max-width: 48ch; margin-top: 28px; padding-top: 0; }
  body.home-concept .home-hero-image { grid-column: 1 / -1; grid-row: 3; width: calc(100% + 2 * var(--concept-gutter)); margin: 28px calc(-1 * var(--concept-gutter)) 0; }
  body.home-concept .home-hero-image > figcaption { padding-inline: var(--concept-gutter); }
  body.home-concept .home-hero-bottom { grid-row: 4; margin-top: 28px; }
  body .wrap:is(.intro, .cal-intro, .fld-intro, .bdg-intro, .lny-intro) { margin-top: 40px; }
}

/* Use the existing reveal choreography; only its pace is shared. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal] .type-line-inner { transition-duration: var(--concept-reveal); transition-timing-function: var(--concept-ease); }
  .motion-ready [data-reveal='hero'] .type-line-inner { transition-duration: var(--concept-entrance); }
  .motion-ready [data-hero-motion] { transition-duration: var(--concept-entrance), var(--concept-entrance), 600ms; }
}
@media (hover: none) {
  body :is(.work-image, .companion, .ed-season-item):hover img { transform: none; }
  body .companion:hover h3 { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  body :is(.work-image img, .companion img, .companion h3, .ed-season-item img) { transition: none; transform: none; }
}

/* Product families and their dedicated editions */
.ed-edition-links {padding-block:clamp(36px,6vw,84px)}
.ed-edition-links h2 {margin:0 0 24px;font-size:clamp(28px,3.4vw,52px);font-weight:500;letter-spacing:-.045em}
.ed-edition-links nav {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));column-gap:clamp(22px,3vw,50px)}
.ed-edition-links nav a {display:flex;gap:16px;justify-content:space-between;align-items:center;min-height:54px;padding:12px 0;color:#502988;border-top:1px solid #d6cddd;text-decoration:none}
.ed-edition-links nav a:hover {text-decoration:underline;text-underline-offset:.22em}
.edition-config,.edition-details {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(32px,7vw,110px);align-items:start}
.edition-figure {margin:0;position:sticky;top:108px}
.edition-figure img {display:block;width:100%;height:auto}
.edition-figure figcaption,.edition-part p,.edition-options p {color:#625b6b;font-size:.92rem;line-height:1.55;margin:12px 0}
.edition-options {display:grid;gap:22px;min-width:0}
.edition-options fieldset {min-width:0;margin:0;padding:0;border:0}
.edition-options legend,.edition-options label {font:inherit;font-weight:500}
.edition-options legend {margin:0 0 12px}
.edition-options label:not(.edition-check) {display:grid;gap:7px;min-width:0}
.edition-options :is(input:not([type=checkbox]),select,textarea) {box-sizing:border-box;width:100%;min-width:0;min-height:48px;background:white;color:#242027;border:1px solid #aaa1b4;border-radius:0;font:inherit;padding:10px 12px}
.edition-options textarea {resize:vertical}
.edition-options [hidden] {display:none!important}
.edition-options :focus-visible,.ed-edition-links a:focus-visible {outline:2px solid #502988;outline-offset:3px}
.edition-part {border-top:1px solid #d6cddd;padding-block:4px 8px}
.edition-check {display:flex;gap:12px;align-items:center;min-height:44px;cursor:pointer}
.edition-check input {width:1.1rem;height:1.1rem;accent-color:#502988;flex:none}
.edition-checks,.edition-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
.edition-part .edition-pair {margin:16px 0 12px}
.edition-options .button {justify-self:start}
.edition-details details {border-top:1px solid #c9c2cf}
.edition-details summary {padding:16px 0;cursor:pointer;line-height:1.45;font-weight:500}
.edition-details details p {padding:0 0 18px;line-height:1.65;color:#514a59}
@media(max-width:760px){
 .edition-config,.edition-details {grid-template-columns:minmax(0,1fr);gap:28px}
 .edition-figure {position:static;order:-1}
 .edition-figure img {max-height:38vh;object-fit:contain;background:#f4f2f5}
 .edition-checks {grid-template-columns:1fr}
}

.edition-extra {border-top:1px solid #d6cddd;border-bottom:1px solid #d6cddd}
.edition-extra summary {padding:14px 0;cursor:pointer;color:#502988}
.edition-extra label {margin:0 0 16px}
