/*
 * Concept 01 — Materiały / Atelier
 * Warm, material-led showroom styling. Every override is scoped so the
 * shared semantic markup can continue to serve all three concepts.
 */

body[data-theme="cinematic"] {
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  --bg: #f3eee5;
  --surface: #fbf8f2;
  --surface-soft: #cec3b5;
  --ink: #181512;
  --muted: #6e655b;
  --line: rgba(24, 21, 18, 0.18);
  --accent: #8b1e26;
  --accent-strong: #70151c;
  --on-accent: #fffaf2;
  --header-bg: rgba(48, 42, 36, 0.97);
  --header-ink: #f8f2e8;
  --dark: #211e1a;
  --on-dark: #f4eee4;
  --atelier-walnut: #3a332c;
  --atelier-bronze: #8a7762;
  --atelier-stone: #cec3b5;
  --atelier-paper: #fbf8f2;
  --radius: 2px;
  --radius-small: 2px;
  --shadow: 0 24px 64px rgba(45, 36, 28, 0.16);
  --container: 1340px;
  --section-space: clamp(5.5rem, 8.5vw, 9rem);
  --h1: clamp(4rem, 6vw, 5.75rem);
  --h2: clamp(2.75rem, 4.5vw, 4.25rem);
  --h3: clamp(1.4rem, 2vw, 1.9rem);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

body[data-theme="cinematic"] ::selection {
  background: var(--accent);
  color: var(--on-accent);
}

body[data-theme="cinematic"] :focus-visible {
  outline: 3px solid #e1a260;
  outline-offset: 4px;
}

body[data-theme="cinematic"] main {
  overflow: clip;
}

body[data-theme="cinematic"] .container {
  width: min(calc(100% - 4rem), var(--container));
}

body[data-theme="cinematic"] .skip-link {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}

/* Typography and shared controls */

body[data-theme="cinematic"] h1,
body[data-theme="cinematic"] h2,
body[data-theme="cinematic"] h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
}

body[data-theme="cinematic"] h1 {
  letter-spacing: -0.045em;
}

body[data-theme="cinematic"] h2 {
  letter-spacing: -0.035em;
}

body[data-theme="cinematic"] h3 {
  letter-spacing: -0.02em;
}

body[data-theme="cinematic"] .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

body[data-theme="cinematic"] .eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  flex: 0 0 auto;
  background: currentColor;
}

body[data-theme="cinematic"] .lede,
body[data-theme="cinematic"] .home-hero__content > p:not(.eyebrow),
body[data-theme="cinematic"] .section-heading > p:last-child {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.68;
}

body[data-theme="cinematic"] .button {
  min-height: 54px;
  padding: 0.9rem 1.5rem;
  border-radius: 1px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-transform: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body[data-theme="cinematic"] .button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 28px rgba(112, 21, 28, 0.16);
}

body[data-theme="cinematic"] .button--primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  box-shadow: 0 16px 34px rgba(112, 21, 28, 0.24);
}

body[data-theme="cinematic"] .button--ghost {
  border-color: rgba(24, 21, 18, 0.55);
  background: transparent;
  color: var(--ink);
}

body[data-theme="cinematic"] .button--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface);
}

body[data-theme="cinematic"] .actions {
  gap: 0.75rem;
  margin-top: 2rem;
}

body[data-theme="cinematic"] .text-link {
  display: inline-flex;
  width: max-content;
  padding-bottom: 0.16rem;
  border-bottom: 1px solid currentColor;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* Header */

body[data-theme="cinematic"] .site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--header-bg);
  color: var(--header-ink);
  backdrop-filter: blur(18px) saturate(0.85);
}

body[data-theme="cinematic"][data-route="home"] .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, rgba(36, 31, 26, 0.74), rgba(36, 31, 26, 0.12));
  backdrop-filter: none;
}

body[data-theme="cinematic"] .site-header__inner {
  grid-template-columns: auto 1fr auto auto;
  min-height: 88px;
  gap: clamp(1rem, 2vw, 2rem);
}

body[data-theme="cinematic"] .brand {
  width: 210px;
  max-width: 18vw;
}

body[data-theme="cinematic"] .brand__logo {
  width: 100%;
  height: auto;
  background: transparent;
  filter: invert(1) sepia(0.12) saturate(0.65) brightness(1.22);
}

body[data-theme="cinematic"] .site-nav {
  gap: clamp(0.85rem, 1.55vw, 1.55rem);
  font-size: 0.74rem;
  font-weight: 620;
  letter-spacing: 0.035em;
}

body[data-theme="cinematic"] .site-nav a,
body[data-theme="cinematic"] .header-phone {
  color: rgba(248, 242, 232, 0.8);
}

body[data-theme="cinematic"] .site-nav a:hover,
body[data-theme="cinematic"] .header-phone:hover,
body[data-theme="cinematic"] .site-nav a[aria-current="page"] {
  color: #fffaf2;
}

body[data-theme="cinematic"] .site-nav a::after {
  height: 2px;
  background: #bf5e63;
}

body[data-theme="cinematic"] .site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

body[data-theme="cinematic"] .header-phone {
  font-size: 0.78rem;
  font-weight: 630;
  letter-spacing: 0.025em;
}

body[data-theme="cinematic"] .header-cta {
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  box-shadow: none;
}

body[data-theme="cinematic"] .menu-toggle {
  border-color: rgba(248, 242, 232, 0.34);
  color: var(--on-dark);
}

/* Home — materials atelier */

body[data-theme="cinematic"] .home-hero--materials {
  position: relative;
  display: grid;
  min-height: max(920px, 100svh);
  isolation: isolate;
  overflow: hidden;
  background: var(--atelier-walnut);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .home-hero--materials::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(52, 45, 38, 0.98) 0%, rgba(52, 45, 38, 0.91) 31%, rgba(52, 45, 38, 0.54) 54%, rgba(52, 45, 38, 0.08) 78%),
    linear-gradient(180deg, rgba(32, 27, 23, 0.18) 0%, transparent 47%, rgba(32, 27, 23, 0.62) 100%);
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__media,
body[data-theme="cinematic"] .home-hero--materials .home-hero__content,
body[data-theme="cinematic"] .home-hero--materials .trust-strip,
body[data-theme="cinematic"] .home-hero--materials .home-hero__materials {
  grid-area: 1 / 1;
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__media {
  position: absolute;
  inset: 0;
  background: #302a24;
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -12rem 12rem -9rem rgba(25, 20, 16, 0.65);
}

body[data-theme="cinematic"] .home-hero__poster,
body[data-theme="cinematic"] .home-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 46%;
  background: #302a24;
}

body[data-theme="cinematic"] .home-hero__poster {
  filter: brightness(0.84) saturate(0.98) contrast(1.02);
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__content {
  position: relative;
  z-index: 3;
  align-self: start;
  padding-top: clamp(10rem, 17vh, 13rem);
  padding-bottom: 25rem;
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__content h1 {
  max-width: 9.2ch;
  margin-bottom: 1.5rem;
  color: #f8f1e7;
  font-size: clamp(4.3rem, 6.2vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-shadow: 0 8px 32px rgba(24, 19, 15, 0.18);
}

body[data-theme="cinematic"] .home-hero--materials .home-hero__content > p:not(.eyebrow) {
  max-width: 48ch;
  color: rgba(248, 241, 231, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

body[data-theme="cinematic"] .home-hero--materials .eyebrow {
  color: #d79283;
}

body[data-theme="cinematic"] .home-hero--materials .button--ghost {
  border-color: rgba(248, 241, 231, 0.64);
  background: rgba(41, 34, 28, 0.18);
  color: #f8f1e7;
  backdrop-filter: blur(8px);
}

body[data-theme="cinematic"] .home-hero--materials .button--ghost:hover {
  border-color: #f8f1e7;
  background: #f8f1e7;
  color: #2b2520;
}

body[data-theme="cinematic"] .home-hero--materials .trust-strip {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 17.5rem;
  align-self: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(47, 40, 34, 0.22);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}

body[data-theme="cinematic"] .home-hero--materials .trust-strip span {
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(248, 241, 231, 0.74);
  font-size: 0.63rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

body[data-theme="cinematic"] .home-hero--materials .trust-strip span:last-child {
  border-right: 0;
}

body[data-theme="cinematic"] .home-hero__materials {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.4rem;
  align-self: auto;
  transform: translateX(-50%);
}

body[data-theme="cinematic"] .video-control {
  position: absolute;
  z-index: 6;
  top: 7rem;
  right: 2rem;
  bottom: auto;
  display: inline-flex;
  width: auto;
  height: 42px;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 1px;
  background: rgba(42, 35, 29, 0.34);
  color: #fffaf2;
  font-size: 0.68rem;
  backdrop-filter: blur(10px);
}

body[data-theme="cinematic"] .video-control:hover {
  background: rgba(42, 35, 29, 0.72);
}

/* Material laboratory */

body[data-theme="cinematic"] .material-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 45%),
    var(--atelier-stone);
}

body[data-theme="cinematic"] .material-lab {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body[data-theme="cinematic"] .material-lab__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding-block: 0 2rem;
}

body[data-theme="cinematic"] .material-lab__head h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

body[data-theme="cinematic"] .material-lab__tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid rgba(24, 21, 18, 0.24);
}

body[data-theme="cinematic"] .material-lab__tabs button {
  min-width: 88px;
  padding: 0.75rem 1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

body[data-theme="cinematic"] .material-lab__tabs button:hover {
  color: var(--ink);
}

body[data-theme="cinematic"] .material-lab__tabs button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

body[data-theme="cinematic"] .material-lab__samples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

body[data-theme="cinematic"] .material-lab__samples article {
  min-width: 0;
  padding: 1rem;
  background: rgba(251, 248, 242, 0.82);
}

body[data-theme="cinematic"] .material-lab__samples h3 {
  margin: 1rem 0 0.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 680;
  letter-spacing: 0;
  line-height: 1.25;
}

body[data-theme="cinematic"] .material-lab__samples p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

body[data-theme="cinematic"] .material-sample {
  position: relative;
  display: block;
  height: clamp(150px, 17vw, 230px);
  overflow: hidden;
  border: 1px solid rgba(24, 21, 18, 0.2);
  background: #d8d1c8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 10px 24px rgba(39, 31, 24, 0.08);
}

body[data-theme="cinematic"] .sample--black {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 27%),
    linear-gradient(135deg, #181817, #070707);
}

body[data-theme="cinematic"] .sample--graphite {
  background:
    repeating-linear-gradient(95deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(120deg, #5d5a55, #2e2e2d 48%, #4d4a46);
}

body[data-theme="cinematic"] .sample--wine {
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.13), transparent 26%, transparent 70%, rgba(0, 0, 0, 0.18)),
    #7e1721;
}

body[data-theme="cinematic"] .sample--white {
  background: linear-gradient(130deg, #fffdf8, #ddd7ce 72%, #f3eee6);
}

body[data-theme="cinematic"] .sample--clear {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.66), rgba(172, 191, 190, 0.18)),
    repeating-linear-gradient(45deg, #ddd6cc 0 10px, #ece7df 10px 20px);
  box-shadow: inset 5px 0 rgba(116, 178, 176, 0.35), inset -5px 0 rgba(116, 178, 176, 0.25);
}

body[data-theme="cinematic"] .sample--ribbed {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 40%, rgba(77, 99, 100, 0.12)),
    repeating-linear-gradient(90deg, rgba(221, 229, 226, 0.85) 0 5px, rgba(139, 159, 158, 0.38) 5px 8px, rgba(247, 247, 240, 0.76) 8px 13px);
}

body[data-theme="cinematic"] .sample--milk {
  background: linear-gradient(135deg, #f2f1eb, #cfcfc9 48%, #e8e5de);
}

body[data-theme="cinematic"] .sample--smoke {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(74, 72, 68, 0.72), rgba(139, 137, 130, 0.42));
}

body[data-theme="cinematic"] .sample--handle,
body[data-theme="cinematic"] .sample--muntin,
body[data-theme="cinematic"] .sample--hinge,
body[data-theme="cinematic"] .sample--custom {
  background: linear-gradient(145deg, #d7d0c5, #f1ece4);
}

body[data-theme="cinematic"] .sample--handle::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 48%;
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #151513, #67615a 48%, #151513);
  box-shadow: 16px 0 22px rgba(36, 31, 27, 0.18);
}

body[data-theme="cinematic"] .sample--muntin::before,
body[data-theme="cinematic"] .sample--muntin::after {
  content: "";
  position: absolute;
  background: #27231f;
}

body[data-theme="cinematic"] .sample--muntin::before {
  top: 0;
  bottom: 0;
  left: calc(50% - 4px);
  width: 8px;
}

body[data-theme="cinematic"] .sample--muntin::after {
  top: calc(50% - 4px);
  right: 0;
  left: 0;
  height: 8px;
}

body[data-theme="cinematic"] .sample--hinge::before,
body[data-theme="cinematic"] .sample--hinge::after {
  content: "";
  position: absolute;
  top: 27%;
  width: 26%;
  height: 46%;
  border: 4px solid #29251f;
  background: #777067;
}

body[data-theme="cinematic"] .sample--hinge::before {
  right: 50%;
  border-right-width: 8px;
}

body[data-theme="cinematic"] .sample--hinge::after {
  left: 50%;
  border-left-width: 8px;
}

body[data-theme="cinematic"] .sample--custom {
  background:
    linear-gradient(90deg, #111 0 25%, #7e1721 25% 50%, #e9e4da 50% 75%, #817467 75%),
    #ddd;
}

body[data-theme="cinematic"] .material-lab__note {
  margin: 0;
  padding: 0.8rem 0;
  color: var(--muted);
  font-size: 0.69rem;
}

body[data-theme="cinematic"] .material-lab--embedded {
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8f1e7;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__head {
  display: flex;
  justify-content: flex-start;
  padding: 0 0 0.4rem;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__head > div:first-child {
  display: none;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__tabs {
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__tabs button {
  min-width: 72px;
  padding: 0.45rem 0.85rem;
  color: rgba(248, 241, 231, 0.66);
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__tabs button[aria-selected="true"] {
  border-bottom-color: #ca5961;
  color: #fffaf2;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.18);
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples article {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: end;
  min-height: 104px;
  padding: 0.65rem;
  background: rgba(48, 41, 35, 0.66);
  backdrop-filter: blur(13px);
}

body[data-theme="cinematic"] .material-lab--embedded .material-sample {
  grid-row: 1 / 3;
  width: 76px;
  height: 86px;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples h3 {
  align-self: end;
  margin: 0 0 0.25rem;
  color: #fffaf2;
  font-family: var(--font-body);
  font-size: 0.78rem;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples p {
  align-self: start;
  color: rgba(248, 241, 231, 0.62);
  font-size: 0.65rem;
  line-height: 1.35;
}

body[data-theme="cinematic"] .material-lab--embedded .material-lab__note {
  display: none;
}

/* Interior heroes */

body[data-theme="cinematic"] .page-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(139, 30, 38, 0.16), transparent 28rem),
    var(--atelier-walnut);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .page-hero__grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(410px, 1.14fr);
  min-height: 680px;
  align-items: stretch;
  gap: clamp(3rem, 7vw, 8rem);
}

body[data-theme="cinematic"] .page-hero__copy {
  align-self: center;
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

body[data-theme="cinematic"] .page-hero__copy h1 {
  max-width: 10.5ch;
  margin-bottom: 1.5rem;
  color: #f8f1e7;
  font-size: clamp(3.7rem, 5.5vw, 5.5rem);
  line-height: 0.94;
}

body[data-theme="cinematic"] .page-hero__copy .lede {
  max-width: 48ch;
  color: rgba(248, 241, 231, 0.72);
}

body[data-theme="cinematic"] .page-hero .eyebrow {
  color: #d79283;
}

body[data-theme="cinematic"] .page-hero .button--ghost {
  border-color: rgba(248, 241, 231, 0.58);
  color: #f8f1e7;
}

body[data-theme="cinematic"] .page-hero .button--ghost:hover {
  background: #f8f1e7;
  color: var(--ink);
}

body[data-theme="cinematic"] .page-hero__media {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  box-shadow: none;
}

body[data-theme="cinematic"] .page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(49, 42, 36, 0.24), transparent 32%), linear-gradient(180deg, transparent 70%, rgba(35, 29, 24, 0.22));
}

body[data-theme="cinematic"] .page-hero__media img {
  object-position: center;
}

body[data-theme="cinematic"] .page-hero__media figcaption {
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(47, 40, 34, 0.64);
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

body[data-theme="cinematic"] .page-hero--compact .page-hero__grid {
  min-height: 520px;
}

body[data-theme="cinematic"] .page-hero--compact .page-hero__media {
  min-height: 520px;
}

body[data-theme="cinematic"] .page-hero--compact .page-hero__copy h1 {
  font-size: clamp(3.3rem, 4.8vw, 4.75rem);
}

body[data-theme="cinematic"] .page-hero--text {
  background:
    linear-gradient(120deg, rgba(139, 30, 38, 0.1), transparent 32%),
    var(--surface);
  color: var(--ink);
}

body[data-theme="cinematic"] .page-hero--text .page-hero__grid {
  grid-template-columns: 1fr;
  min-height: 390px;
}

body[data-theme="cinematic"] .page-hero--text .page-hero__copy {
  max-width: 900px;
}

body[data-theme="cinematic"] .page-hero--text .page-hero__copy h1 {
  color: var(--ink);
}

body[data-theme="cinematic"] .page-hero--text .page-hero__copy .lede {
  color: var(--muted);
}

body[data-theme="cinematic"] .page-hero--text .eyebrow {
  color: var(--accent);
}

body[data-theme="cinematic"] .breadcrumbs {
  padding-block: 1.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 620;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="cinematic"] .breadcrumbs i {
  color: rgba(24, 21, 18, 0.34);
  font-style: normal;
}

body[data-theme="cinematic"] .breadcrumbs a:hover {
  color: var(--accent);
}

body[data-theme="cinematic"][data-route="uslugi"] .page-hero__media img {
  object-position: 54% center;
}

body[data-theme="cinematic"][data-route="realizacje"] .page-hero__media img {
  object-position: center 34%;
}

body[data-theme="cinematic"][data-route="kalkulator"] .page-hero__media img {
  object-position: center 45%;
}

body[data-theme="cinematic"][data-route="o-nas"] .page-hero__media img,
body[data-theme="cinematic"][data-route="blog"] .page-hero__media img,
body[data-theme="cinematic"][data-route="blog-etapy-realizacji"] .page-hero__media img {
  object-position: center 42%;
}

body[data-theme="cinematic"][data-route="drzwi-loftowe-warszawa"] .page-hero__media img {
  object-position: center 32%;
}

/* Sections and headings */

body[data-theme="cinematic"] .section {
  position: relative;
  background: var(--bg);
}

body[data-theme="cinematic"] .section + .section {
  border-top-color: var(--line);
}

body[data-theme="cinematic"] .section-heading {
  max-width: 980px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

body[data-theme="cinematic"] .section-heading h2 {
  max-width: 14ch;
}

body[data-theme="cinematic"] .section-heading > p:last-child {
  margin-top: 0.3rem;
  max-width: 58ch;
}

body[data-theme="cinematic"] .section--services,
body[data-theme="cinematic"] .values-section {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.25), transparent 42%),
    #d8cec0;
}

body[data-theme="cinematic"] .section--projects,
body[data-theme="cinematic"] .related-projects {
  background: var(--surface);
}

body[data-theme="cinematic"] .calculator-teaser {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 52%),
    var(--bg);
}

/* Service cards */

body[data-theme="cinematic"] .service-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

body[data-theme="cinematic"] .service-card {
  grid-template-rows: auto 300px auto auto 1fr;
  gap: 1rem;
  padding: 1rem 1rem 1.35rem;
  border: 0;
  background: rgba(251, 248, 242, 0.82);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

body[data-theme="cinematic"] .service-card:hover {
  z-index: 1;
  background: #fffdf8;
  box-shadow: 0 20px 48px rgba(43, 34, 27, 0.14);
  transform: translateY(-6px);
}

body[data-theme="cinematic"] .service-card__number {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent-strong);
  font-size: 0.67rem;
  font-weight: 720;
  letter-spacing: 0.12em;
}

body[data-theme="cinematic"] .service-card__number::after {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: currentColor;
}

body[data-theme="cinematic"] .service-card figure,
body[data-theme="cinematic"] .project-card figure,
body[data-theme="cinematic"] .article-card figure {
  position: relative;
  overflow: hidden;
  background: var(--atelier-stone);
}

body[data-theme="cinematic"] .service-card figure::after,
body[data-theme="cinematic"] .project-card figure::after,
body[data-theme="cinematic"] .article-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 72%, rgba(38, 31, 25, 0.16));
}

body[data-theme="cinematic"] .service-card figure img,
body[data-theme="cinematic"] .project-card figure img,
body[data-theme="cinematic"] .article-card figure img {
  transition: transform 500ms ease;
}

body[data-theme="cinematic"] .service-card:hover figure img,
body[data-theme="cinematic"] .project-card:hover figure img,
body[data-theme="cinematic"] .article-card:hover figure img {
  transform: scale(1.025);
}

body[data-theme="cinematic"] .service-card h3 {
  margin-top: 0.15rem;
  font-size: clamp(1.65rem, 2.2vw, 2.25rem);
}

body[data-theme="cinematic"] .service-card p,
body[data-theme="cinematic"] .project-card p,
body[data-theme="cinematic"] .article-card p,
body[data-theme="cinematic"] .value-grid p {
  color: var(--muted);
}

/* Project grids and detail */

body[data-theme="cinematic"] .project-grid {
  gap: clamp(3rem, 5vw, 5.5rem) clamp(1.5rem, 3vw, 3rem);
}

body[data-theme="cinematic"] .project-card {
  align-self: start;
}

body[data-theme="cinematic"] .project-card figure {
  margin-bottom: 1.2rem;
  box-shadow: 0 16px 38px rgba(43, 34, 27, 0.1);
}

body[data-theme="cinematic"] .project-card:nth-child(even) {
  margin-top: clamp(1rem, 4vw, 4rem);
}

body[data-theme="cinematic"] .project-card__meta {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.1em;
}

body[data-theme="cinematic"] .project-card h3 {
  max-width: 22ch;
  margin-top: 0.9rem;
  font-size: clamp(1.75rem, 2.8vw, 2.8rem);
}

body[data-theme="cinematic"] .project-card h3 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size 220ms ease;
}

body[data-theme="cinematic"] .project-card:hover h3 a {
  background-size: 100% 1px;
}

body[data-theme="cinematic"] .section-action {
  margin-top: clamp(3.5rem, 6vw, 6rem);
}

body[data-theme="cinematic"][data-route="realizacje"] .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3.5rem 1.5rem;
}

body[data-theme="cinematic"][data-route="realizacje"] .project-card figure,
body[data-theme="cinematic"][data-route="realizacje"] .project-card:nth-child(4n + 2) figure,
body[data-theme="cinematic"][data-route="realizacje"] .project-card:nth-child(4n + 3) figure {
  height: clamp(380px, 42vw, 560px);
}

body[data-theme="cinematic"][data-route="realizacje"] .project-card:nth-child(3n + 2) figure {
  height: clamp(330px, 36vw, 480px);
}

body[data-theme="cinematic"][data-route="realizacje"] .project-card:nth-child(even) {
  margin-top: 0;
}

body[data-theme="cinematic"] .filter-bar {
  position: sticky;
  z-index: 8;
  top: 0;
  gap: 0;
  margin-bottom: clamp(3rem, 5vw, 5rem);
  padding-top: 0.45rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px);
}

body[data-theme="cinematic"] .filter-bar button {
  padding: 0.8rem 1.2rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

body[data-theme="cinematic"] .filter-bar button:hover {
  color: var(--ink);
}

body[data-theme="cinematic"] .filter-bar button.is-active {
  border-bottom-color: var(--accent);
  background: transparent;
  color: var(--accent-strong);
}

body[data-theme="cinematic"] .case-meta {
  border-color: var(--line);
  background: rgba(251, 248, 242, 0.5);
}

body[data-theme="cinematic"] .case-meta > div {
  min-height: 145px;
  align-content: space-between;
  padding: 1.5rem;
  border-color: var(--line);
}

body[data-theme="cinematic"] .case-meta span {
  color: var(--accent-strong);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

body[data-theme="cinematic"] .case-meta strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.25;
}

body[data-theme="cinematic"] .project-focus {
  background: var(--dark);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .project-focus figure {
  max-width: 920px;
  margin-inline: auto;
}

body[data-theme="cinematic"] .project-focus img {
  width: 100%;
  max-height: 920px;
  object-fit: contain;
  background: #171512;
}

body[data-theme="cinematic"] .project-focus figcaption {
  padding-top: 0.8rem;
  color: rgba(244, 238, 228, 0.64);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

body[data-theme="cinematic"] .related-projects .project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body[data-theme="cinematic"] .related-projects .project-card,
body[data-theme="cinematic"] .related-projects .project-card:nth-child(even) {
  margin-top: 0;
}

body[data-theme="cinematic"] .related-projects .project-card figure,
body[data-theme="cinematic"] .related-projects .project-card:nth-child(4n + 2) figure,
body[data-theme="cinematic"] .related-projects .project-card:nth-child(4n + 3) figure {
  height: clamp(340px, 34vw, 500px);
}

/* Process and editorial split layouts */

body[data-theme="cinematic"] .section--process {
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 30, 38, 0.15), transparent 28rem),
    var(--dark);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .section--process .eyebrow {
  color: #d79283;
}

body[data-theme="cinematic"] .section--process .section-heading > p:last-child,
body[data-theme="cinematic"] .section--process .process-grid p {
  color: rgba(244, 238, 228, 0.62);
}

body[data-theme="cinematic"] .process-grid {
  border-top-color: rgba(244, 238, 228, 0.26);
}

body[data-theme="cinematic"] .process-grid article {
  position: relative;
  min-height: 320px;
  padding: 2rem clamp(1.25rem, 2vw, 2rem);
  border-right-color: rgba(244, 238, 228, 0.16);
}

body[data-theme="cinematic"] .process-grid article::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #a83a42;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

body[data-theme="cinematic"] .process-grid article:hover::after {
  transform: scaleX(1);
}

body[data-theme="cinematic"] .process-grid article > span {
  margin-bottom: 4.5rem;
  color: #c8bbae;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body[data-theme="cinematic"] .process-grid h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

body[data-theme="cinematic"] .split-panel,
body[data-theme="cinematic"] .feature-grid,
body[data-theme="cinematic"] .story-grid,
body[data-theme="cinematic"] .local-grid {
  gap: clamp(3rem, 8vw, 8.5rem);
}

body[data-theme="cinematic"] .split-panel figure,
body[data-theme="cinematic"] .feature-grid figure,
body[data-theme="cinematic"] .story-grid figure {
  position: relative;
  height: min(72vw, 740px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

body[data-theme="cinematic"] .split-panel figure::after,
body[data-theme="cinematic"] .feature-grid figure::after,
body[data-theme="cinematic"] .story-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, transparent 72%, rgba(39, 31, 24, 0.14));
}

body[data-theme="cinematic"] .check-list li {
  padding: 1rem 0 1rem 2.1rem;
  border-bottom-color: var(--line);
  color: #3d3731;
}

body[data-theme="cinematic"] .check-list li::before {
  content: "＋";
  top: 1rem;
  color: var(--accent-strong);
  font-weight: 700;
}

body[data-theme="cinematic"] .value-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

body[data-theme="cinematic"] .value-grid article {
  min-height: 330px;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border: 0;
  background: rgba(251, 248, 242, 0.74);
}

body[data-theme="cinematic"] .value-grid article > span {
  margin-bottom: 5rem;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

body[data-theme="cinematic"] .value-grid h3 {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

/* Final CTA */

body[data-theme="cinematic"] .final-cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 8vw, 8rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 42%, rgba(255, 228, 210, 0.13), transparent 28rem),
    linear-gradient(120deg, #761820, #962b32 62%, #71161d);
  color: var(--on-accent);
}

body[data-theme="cinematic"] .final-cta::after {
  content: "ATELIER";
  position: absolute;
  z-index: -1;
  right: -0.03em;
  bottom: -0.3em;
  color: rgba(255, 255, 255, 0.05);
  font-family: var(--font-body);
  font-size: clamp(7rem, 20vw, 19rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

body[data-theme="cinematic"] .final-cta__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 6rem);
}

body[data-theme="cinematic"] .final-cta h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
}

body[data-theme="cinematic"] .final-cta p {
  color: rgba(255, 250, 242, 0.78);
}

body[data-theme="cinematic"] .final-cta .eyebrow {
  color: rgba(255, 250, 242, 0.68);
}

body[data-theme="cinematic"] .final-cta .button--light {
  border-color: rgba(255, 250, 242, 0.78);
  background: rgba(68, 12, 16, 0.12);
  color: #fffaf2;
}

body[data-theme="cinematic"] .final-cta .button--light:hover {
  background: #fffaf2;
  color: #65141a;
}

/* Article, case and FAQ content */

body[data-theme="cinematic"] .article-layout > article {
  color: #39332d;
}

body[data-theme="cinematic"] .article-layout > article > h2 {
  margin-top: 3rem;
}

body[data-theme="cinematic"] .article-layout > aside,
body[data-theme="cinematic"] .article-aside,
body[data-theme="cinematic"] .area-card {
  top: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), transparent 60%),
    #ddd3c5;
  box-shadow: 0 18px 42px rgba(43, 34, 27, 0.08);
}

body[data-theme="cinematic"] .article-layout > aside h2,
body[data-theme="cinematic"] .article-aside h2 {
  font-size: clamp(2rem, 3.2vw, 3.1rem);
}

body[data-theme="cinematic"] .faq {
  border-top-color: rgba(24, 21, 18, 0.3);
}

body[data-theme="cinematic"] .faq details {
  border-bottom-color: rgba(24, 21, 18, 0.22);
}

body[data-theme="cinematic"] .faq summary {
  position: relative;
  padding: 1.6rem 3.25rem 1.6rem 0;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  list-style: none;
}

body[data-theme="cinematic"] .faq summary::-webkit-details-marker {
  display: none;
}

body[data-theme="cinematic"] .faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.4rem;
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

body[data-theme="cinematic"] .faq details[open] summary::after {
  content: "−";
}

body[data-theme="cinematic"] .faq details p {
  color: var(--muted);
}

/* Calculator and forms */

body[data-theme="cinematic"] .calculator-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.75fr);
  gap: clamp(3rem, 8vw, 8rem);
}

body[data-theme="cinematic"] .calculator-form {
  gap: 2.5rem;
}

body[data-theme="cinematic"] .calculator-form__header {
  padding-bottom: 2rem;
  border-bottom-color: var(--line);
}

body[data-theme="cinematic"] .calculator-form__header h2 {
  max-width: 13ch;
}

body[data-theme="cinematic"] .calculator-form__header p {
  color: var(--muted);
}

body[data-theme="cinematic"] .calculator-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.5rem;
}

body[data-theme="cinematic"] .calculator-fields label {
  align-content: start;
  margin-bottom: 0.5rem;
}

body[data-theme="cinematic"] .calculator-fields :where(input, select),
body[data-theme="cinematic"] .field-help,
body[data-theme="cinematic"] .field-error {
  width: 100%;
}

body[data-theme="cinematic"] label {
  color: #4c443c;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.035em;
}

body[data-theme="cinematic"] input:not([type="checkbox"]):not([type="range"]),
body[data-theme="cinematic"] select,
body[data-theme="cinematic"] textarea {
  min-height: 56px;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(24, 21, 18, 0.32);
  border-radius: 1px;
  background: rgba(251, 248, 242, 0.5);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 430;
  letter-spacing: 0;
}

body[data-theme="cinematic"] textarea {
  min-height: 150px;
}

body[data-theme="cinematic"] input:not([type="checkbox"]):not([type="range"]):focus,
body[data-theme="cinematic"] select:focus,
body[data-theme="cinematic"] textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
}

body[data-theme="cinematic"] textarea::placeholder {
  color: #7b7167;
  opacity: 1;
}

body[data-theme="cinematic"] .field-help {
  color: var(--muted);
}

body[data-theme="cinematic"] .required-marker {
  color: var(--accent);
}

body[data-theme="cinematic"] .field-error {
  border-radius: 1px;
  background: var(--accent);
  color: var(--on-accent);
}

body[data-theme="cinematic"] .calculator-fields input[aria-invalid="true"] {
  border-color: var(--accent);
}

body[data-theme="cinematic"] .calculator-preview {
  top: 2rem;
  gap: 0.7rem;
  padding: clamp(2rem, 4vw, 3.6rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, 0.52), transparent 16rem),
    #d5cabb;
  box-shadow: var(--shadow);
}

body[data-theme="cinematic"] .calculator-preview strong {
  color: var(--ink);
  font-size: clamp(2.7rem, 4.5vw, 4.5rem);
  font-weight: 400;
}

body[data-theme="cinematic"] .calculator-preview > span {
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

body[data-theme="cinematic"] .calculator-price-label {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

body[data-theme="cinematic"] .calculator-preview small {
  color: var(--muted);
  line-height: 1.55;
}

body[data-theme="cinematic"] .contact-layout {
  gap: clamp(3rem, 9vw, 10rem);
}

body[data-theme="cinematic"] .contact-details {
  gap: 1rem;
}

body[data-theme="cinematic"] .contact-details > a {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  font-size: clamp(1.55rem, 2.8vw, 2.65rem);
}

body[data-theme="cinematic"] .contact-details > a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-strong);
}

body[data-theme="cinematic"] .contact-form {
  padding: clamp(1.8rem, 4.5vw, 4rem);
  border-color: var(--line);
  background: var(--surface);
  box-shadow: 0 20px 58px rgba(43, 34, 27, 0.1);
}

body[data-theme="cinematic"] .checkbox {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 430;
  letter-spacing: 0;
  line-height: 1.55;
}

body[data-theme="cinematic"] .checkbox input {
  accent-color: var(--accent);
}

body[data-theme="cinematic"] .form-status {
  color: var(--accent-strong);
  font-weight: 620;
}

/* Blog and prose */

body[data-theme="cinematic"] .article-grid {
  gap: clamp(4rem, 7vw, 7rem);
}

body[data-theme="cinematic"] .article-card {
  gap: clamp(2.5rem, 6vw, 6rem);
}

body[data-theme="cinematic"] .article-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

body[data-theme="cinematic"] .article-card:nth-child(even) > a {
  grid-column: 2;
  grid-row: 1;
}

body[data-theme="cinematic"] .article-card figure {
  height: clamp(390px, 43vw, 570px);
  box-shadow: var(--shadow);
}

body[data-theme="cinematic"] .article-card span {
  color: var(--accent-strong);
  font-size: 0.65rem;
  font-weight: 680;
  letter-spacing: 0.1em;
}

body[data-theme="cinematic"] .article-card h2 {
  margin-top: 1rem;
  font-size: clamp(2.4rem, 4.3vw, 4.6rem);
}

body[data-theme="cinematic"] .prose {
  color: #39332d;
  font-size: 1.08rem;
  line-height: 1.82;
}

body[data-theme="cinematic"] .prose h2 {
  margin-top: 4.25rem;
  color: var(--ink);
  font-size: clamp(2.2rem, 3.6vw, 3.8rem);
}

body[data-theme="cinematic"] .prose figure {
  margin-block: 3.5rem;
  box-shadow: var(--shadow);
}

body[data-theme="cinematic"] .prose figure img {
  max-height: 760px;
}

body[data-theme="cinematic"] .prose figcaption {
  padding-top: 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.045em;
}

body[data-theme="cinematic"] .lead-paragraph {
  color: #3d362f;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.35vw, 1.95rem);
  line-height: 1.47;
}

/* Local map */

body[data-theme="cinematic"] .local-map-section {
  background: #d7ccbd;
}

body[data-theme="cinematic"] .local-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(24, 21, 18, 0.22);
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    #c7bbab;
  box-shadow: var(--shadow);
}

body[data-theme="cinematic"] .local-map__drawing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

body[data-theme="cinematic"] .local-map__roads {
  fill: none;
  stroke: rgba(66, 56, 47, 0.25);
  stroke-width: 2;
}

body[data-theme="cinematic"] .local-map__river {
  fill: none;
  stroke: rgba(139, 30, 38, 0.4);
  stroke-width: 12;
}

body[data-theme="cinematic"] .local-map__city {
  position: absolute;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  background: rgba(251, 248, 242, 0.78);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.5rem);
  backdrop-filter: blur(8px);
}

body[data-theme="cinematic"] .local-map__city--warsaw {
  top: 43%;
  left: 58%;
}

body[data-theme="cinematic"] .local-map__city--pruszkow {
  bottom: 18%;
  left: 28%;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

body[data-theme="cinematic"] .map-project {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 180px;
  padding: 0.55rem;
  border: 1px solid rgba(24, 21, 18, 0.2);
  background: rgba(251, 248, 242, 0.92);
  box-shadow: 0 14px 34px rgba(43, 34, 27, 0.14);
}

body[data-theme="cinematic"] .map-project img {
  height: 126px;
}

body[data-theme="cinematic"] .map-project strong {
  padding-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

body[data-theme="cinematic"] .map-project__pin {
  position: absolute;
  z-index: 2;
  top: -0.7rem;
  left: -0.7rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.7rem;
}

body[data-theme="cinematic"] .map-project--one {
  top: 12%;
  left: 10%;
}

body[data-theme="cinematic"] .map-project--two {
  top: 15%;
  right: 12%;
}

body[data-theme="cinematic"] .map-project--three {
  right: 25%;
  bottom: 8%;
}

body[data-theme="cinematic"] .area-card h2 {
  color: var(--accent-strong);
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
}

/* Legal, empty state and footer */

body[data-theme="cinematic"] .legal {
  max-width: 820px;
}

body[data-theme="cinematic"] .notice {
  padding: 1.5rem 1.7rem;
  border-left-color: var(--accent);
  background: #ddd3c5;
  color: #433b34;
}

body[data-theme="cinematic"] .not-found {
  min-height: 70vh;
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 30, 38, 0.16), transparent 26rem),
    var(--dark);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .not-found h1 {
  max-width: 10ch;
  margin-inline: auto;
}

body[data-theme="cinematic"] .not-found p:not(.eyebrow) {
  color: rgba(244, 238, 228, 0.66);
}

body[data-theme="cinematic"] .not-found .button--ghost {
  border-color: rgba(244, 238, 228, 0.6);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .site-footer {
  padding-top: clamp(5rem, 8vw, 8rem);
  background:
    linear-gradient(180deg, #302a24, #211e1a),
    var(--dark);
  color: var(--on-dark);
}

body[data-theme="cinematic"] .site-footer__grid {
  gap: clamp(2.5rem, 5vw, 5rem);
}

body[data-theme="cinematic"] .site-footer .brand {
  width: 220px;
  max-width: 100%;
}

body[data-theme="cinematic"] .site-footer__grid > div:not(:first-child) {
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

body[data-theme="cinematic"] .site-footer h2 {
  color: #d79283;
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body[data-theme="cinematic"] .site-footer a {
  width: fit-content;
  color: rgba(244, 238, 228, 0.84);
}

body[data-theme="cinematic"] .site-footer a:hover {
  color: #fffaf2;
}

body[data-theme="cinematic"] .site-footer p,
body[data-theme="cinematic"] .site-footer span {
  color: rgba(244, 238, 228, 0.58);
}

body[data-theme="cinematic"] .site-footer__bottom {
  margin-top: 5rem;
  border-top-color: rgba(255, 255, 255, 0.14);
}

body[data-theme="cinematic"] .concept-switcher {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(34, 30, 26, 0.94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
}

body[data-theme="cinematic"] .concept-switcher button {
  border-radius: 1px;
}

body[data-theme="cinematic"] .concept-switcher button span {
  color: rgba(255, 255, 255, 0.5);
}

body[data-theme="cinematic"] .concept-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: #fffaf2;
}

body[data-theme="cinematic"] .concept-switcher button[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.72);
}

/* Tablet and compact desktop */

@media (max-width: 1100px) {
  body[data-theme="cinematic"] .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  body[data-theme="cinematic"] .brand {
    width: 185px;
    max-width: 30vw;
  }

  body[data-theme="cinematic"] .site-nav {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    background: rgba(35, 31, 27, 0.98);
    color: var(--on-dark);
    box-shadow: 0 26px 50px rgba(26, 21, 18, 0.26);
  }

  body[data-theme="cinematic"] .site-nav a {
    border-bottom-color: rgba(255, 255, 255, 0.13);
    color: rgba(248, 242, 232, 0.88);
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content h1 {
    font-size: clamp(4rem, 7vw, 5.4rem);
  }

  body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples article {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  body[data-theme="cinematic"] .material-lab--embedded .material-sample {
    width: 60px;
  }

  body[data-theme="cinematic"] .service-grid,
  body[data-theme="cinematic"] .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="cinematic"] .process-grid article:nth-child(2) {
    border-right: 0;
  }

  body[data-theme="cinematic"] .process-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(244, 238, 228, 0.16);
  }

  body[data-theme="cinematic"] .page-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  body[data-theme="cinematic"] .page-hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-theme="cinematic"] .page-hero__copy {
    max-width: 720px;
    padding-block: 4.5rem;
  }

  body[data-theme="cinematic"] .page-hero__media,
  body[data-theme="cinematic"] .page-hero--compact .page-hero__media {
    min-height: 520px;
  }

  body[data-theme="cinematic"] .page-hero--compact .page-hero__grid {
    min-height: auto;
  }

  body[data-theme="cinematic"] .material-lab__head {
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .material-lab__tabs {
    width: fit-content;
  }

  body[data-theme="cinematic"] .material-lab__samples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="cinematic"][data-route="realizacje"] .project-grid,
  body[data-theme="cinematic"] .related-projects .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="cinematic"] .calculator-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 3rem;
  }

  body[data-theme="cinematic"] .map-project--three {
    right: 12%;
  }
}

/* Mobile */

@media (max-width: 760px) {
  body[data-theme="cinematic"] {
    --section-space: 4.5rem;
    --h1: clamp(3rem, 14vw, 4.8rem);
    --h2: clamp(2.45rem, 11vw, 4rem);
  }

  body[data-theme="cinematic"] .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  body[data-theme="cinematic"] .site-header__inner {
    min-height: 70px;
    gap: 0.65rem;
  }

  body[data-theme="cinematic"] .brand {
    width: 158px;
    max-width: 55vw;
  }

  body[data-theme="cinematic"] .menu-toggle {
    width: 42px;
    height: 42px;
  }

  body[data-theme="cinematic"] .site-nav {
    padding: 0.75rem 1rem 1.2rem;
    background: var(--surface);
    color: var(--ink);
  }

  body[data-theme="cinematic"] .site-nav a {
    padding: 1rem 0;
    border-bottom-color: var(--line);
    color: var(--ink);
    font-size: 0.78rem;
  }

  body[data-theme="cinematic"] .site-nav a[aria-current="page"] {
    color: var(--accent-strong);
  }

  body[data-theme="cinematic"] .home-hero--materials {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    overflow: visible;
    background: var(--atelier-walnut);
  }

  body[data-theme="cinematic"] .home-hero--materials::before {
    display: none;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__media,
  body[data-theme="cinematic"] .home-hero--materials .home-hero__content,
  body[data-theme="cinematic"] .home-hero--materials .trust-strip,
  body[data-theme="cinematic"] .home-hero--materials .home-hero__materials {
    position: relative;
    inset: auto;
    grid-area: auto;
    align-self: auto;
    transform: none;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__media {
    height: clamp(390px, 55svh, 560px);
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__media::after {
    background: linear-gradient(180deg, rgba(39, 32, 27, 0.16), transparent 55%, rgba(54, 46, 39, 0.36));
    box-shadow: none;
  }

  body[data-theme="cinematic"] .home-hero__poster,
  body[data-theme="cinematic"] .home-hero__video {
    object-position: center 44%;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content {
    padding-block: 3.2rem 2.5rem;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content h1 {
    max-width: 10ch;
    margin-bottom: 1.2rem;
    font-size: clamp(3.05rem, 14.5vw, 5rem);
    line-height: 0.94;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content > p:not(.eyebrow) {
    max-width: 36ch;
    font-size: 0.97rem;
    line-height: 1.58;
  }

  body[data-theme="cinematic"] .home-hero--materials .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 390px);
    margin-top: 1.5rem;
  }

  body[data-theme="cinematic"] .home-hero--materials .button {
    width: 100%;
  }

  body[data-theme="cinematic"] .home-hero--materials .trust-strip {
    grid-template-columns: repeat(3, 1fr);
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto 1rem;
  }

  body[data-theme="cinematic"] .home-hero--materials .trust-strip span {
    display: grid;
    min-height: 58px;
    place-items: center;
    padding: 0.5rem 0.35rem;
    font-size: 0.55rem;
    line-height: 1.35;
  }

  body[data-theme="cinematic"] .home-hero__materials {
    width: 100%;
    padding-bottom: 1rem;
  }

  body[data-theme="cinematic"] .material-lab--embedded {
    width: 100%;
    padding-inline: 1rem;
    border-bottom: 0;
  }

  body[data-theme="cinematic"] .material-lab--embedded .material-lab__head {
    padding-top: 0.25rem;
  }

  body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 76vw);
    grid-template-columns: none;
    padding-bottom: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }

  body[data-theme="cinematic"] .material-lab--embedded .material-lab__samples article {
    scroll-snap-align: start;
  }

  body[data-theme="cinematic"] .video-control {
    top: 5.2rem;
    right: 1rem;
  }

  body[data-theme="cinematic"] .page-hero,
  body[data-theme="cinematic"] .page-hero--compact {
    padding: 0;
  }

  body[data-theme="cinematic"] .page-hero__grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-theme="cinematic"] .page-hero__copy {
    padding-block: 3.5rem;
  }

  body[data-theme="cinematic"] .page-hero__copy h1,
  body[data-theme="cinematic"] .page-hero--compact .page-hero__copy h1 {
    max-width: 11ch;
    font-size: clamp(3.05rem, 14vw, 5rem);
  }

  body[data-theme="cinematic"] .page-hero__copy .lede {
    font-size: 1rem;
    line-height: 1.58;
  }

  body[data-theme="cinematic"] .page-hero .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .page-hero .button {
    width: 100%;
  }

  body[data-theme="cinematic"] .page-hero__media,
  body[data-theme="cinematic"] .page-hero--compact .page-hero__media {
    width: calc(100% + 2rem);
    min-height: 450px;
    margin-left: -1rem;
  }

  body[data-theme="cinematic"] .page-hero--text .page-hero__grid {
    min-height: 320px;
  }

  body[data-theme="cinematic"] .section-heading {
    margin-bottom: 3rem;
  }

  body[data-theme="cinematic"] .section-heading h2 {
    max-width: 12ch;
  }

  body[data-theme="cinematic"] .service-grid,
  body[data-theme="cinematic"] .project-grid,
  body[data-theme="cinematic"] .process-grid,
  body[data-theme="cinematic"] .value-grid,
  body[data-theme="cinematic"] .case-meta,
  body[data-theme="cinematic"] .site-footer__grid,
  body[data-theme="cinematic"][data-route="realizacje"] .project-grid,
  body[data-theme="cinematic"] .related-projects .project-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .service-card {
    grid-template-rows: auto min(112vw, 430px) auto auto 1fr;
  }

  body[data-theme="cinematic"] .project-grid {
    gap: 3.5rem;
  }

  body[data-theme="cinematic"] .project-card,
  body[data-theme="cinematic"] .project-card:nth-child(even) {
    margin-top: 0;
  }

  body[data-theme="cinematic"] .project-card figure,
  body[data-theme="cinematic"] .project-card:nth-child(4n + 2) figure,
  body[data-theme="cinematic"] .project-card:nth-child(4n + 3) figure,
  body[data-theme="cinematic"][data-route="realizacje"] .project-card figure,
  body[data-theme="cinematic"][data-route="realizacje"] .project-card:nth-child(3n + 2) figure,
  body[data-theme="cinematic"] .related-projects .project-card figure {
    height: min(128vw, 530px);
  }

  body[data-theme="cinematic"] .process-grid article,
  body[data-theme="cinematic"] .process-grid article:nth-child(2) {
    min-height: 235px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 238, 228, 0.16);
  }

  body[data-theme="cinematic"] .process-grid article > span {
    margin-bottom: 3rem;
  }

  body[data-theme="cinematic"] .split-panel,
  body[data-theme="cinematic"] .feature-grid,
  body[data-theme="cinematic"] .story-grid,
  body[data-theme="cinematic"] .local-grid,
  body[data-theme="cinematic"] .contact-layout,
  body[data-theme="cinematic"] .calculator-layout,
  body[data-theme="cinematic"] .article-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  body[data-theme="cinematic"] .split-panel figure,
  body[data-theme="cinematic"] .feature-grid figure,
  body[data-theme="cinematic"] .story-grid figure {
    height: min(128vw, 560px);
  }

  body[data-theme="cinematic"] .material-lab__head {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-theme="cinematic"] .material-lab__tabs {
    width: 100%;
    overflow-x: auto;
  }

  body[data-theme="cinematic"] .material-lab__tabs button {
    flex: 1 0 auto;
  }

  body[data-theme="cinematic"] .material-lab:not(.material-lab--embedded) .material-lab__samples {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 76vw);
    grid-template-columns: none;
    padding-bottom: 0.4rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  body[data-theme="cinematic"] .material-lab:not(.material-lab--embedded) .material-lab__samples article {
    scroll-snap-align: start;
  }

  body[data-theme="cinematic"] .material-sample {
    height: 220px;
  }

  body[data-theme="cinematic"] .value-grid article {
    min-height: 260px;
  }

  body[data-theme="cinematic"] .value-grid article > span {
    margin-bottom: 3.5rem;
  }

  body[data-theme="cinematic"] .final-cta__inner {
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .final-cta h2 {
    font-size: clamp(3rem, 13.5vw, 5.2rem);
  }

  body[data-theme="cinematic"] .final-cta .button {
    width: 100%;
  }

  body[data-theme="cinematic"] .filter-bar {
    flex-wrap: nowrap;
    margin-right: -1rem;
    margin-left: -1rem;
    padding-inline: 1rem;
    overflow-x: auto;
  }

  body[data-theme="cinematic"] .filter-bar button {
    flex: 0 0 auto;
  }

  body[data-theme="cinematic"] .case-meta > div {
    min-height: 106px;
  }

  body[data-theme="cinematic"] .project-focus img {
    max-height: 720px;
  }

  body[data-theme="cinematic"] .calculator-fields {
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .calculator-preview,
  body[data-theme="cinematic"] .article-layout > aside,
  body[data-theme="cinematic"] .article-aside,
  body[data-theme="cinematic"] .area-card {
    position: static;
  }

  body[data-theme="cinematic"][data-route="kalkulator"] .calculator-preview {
    order: -1;
  }

  body[data-theme="cinematic"] .article-card,
  body[data-theme="cinematic"] .article-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  body[data-theme="cinematic"] .article-card:nth-child(even) > a {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-theme="cinematic"] .article-card figure {
    height: min(112vw, 470px);
  }

  body[data-theme="cinematic"] .article-card h2 {
    font-size: clamp(2.45rem, 11vw, 4rem);
  }

  body[data-theme="cinematic"] .local-map {
    display: grid;
    min-height: 0;
    gap: 1px;
    padding: 1rem;
    background: #c7bbab;
  }

  body[data-theme="cinematic"] .local-map__drawing,
  body[data-theme="cinematic"] .local-map__city {
    display: none;
  }

  body[data-theme="cinematic"] .map-project,
  body[data-theme="cinematic"] .map-project--one,
  body[data-theme="cinematic"] .map-project--two,
  body[data-theme="cinematic"] .map-project--three {
    position: relative;
    inset: auto;
    width: 100%;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }

  body[data-theme="cinematic"] .map-project img {
    width: 104px;
    height: 92px;
  }

  body[data-theme="cinematic"] .map-project strong {
    padding: 0;
  }

  body[data-theme="cinematic"] .site-footer__grid {
    gap: 2.5rem;
  }

  body[data-theme="cinematic"] .site-footer__bottom {
    flex-direction: column;
    margin-top: 3.5rem;
  }

  body[data-theme="cinematic"] .concept-switcher {
    right: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    justify-content: center;
    border-radius: 2px;
    overflow-x: auto;
  }

  body[data-theme="cinematic"] .concept-switcher__label {
    display: none;
  }
}

@media (max-width: 520px) {
  body[data-theme="cinematic"] .home-hero--materials .trust-strip span:nth-child(2) {
    display: none;
  }

  body[data-theme="cinematic"] .home-hero--materials .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  body[data-theme="cinematic"] .field-row {
    grid-template-columns: 1fr;
  }

  body[data-theme="cinematic"] .contact-details > a {
    width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(1.25rem, 7vw, 2rem);
  }
}

@media (max-width: 380px) {
  body[data-theme="cinematic"] .container {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  body[data-theme="cinematic"] .brand {
    width: 140px;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__media {
    height: 400px;
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content h1,
  body[data-theme="cinematic"] .page-hero__copy h1,
  body[data-theme="cinematic"] .page-hero--compact .page-hero__copy h1 {
    font-size: clamp(2.75rem, 14vw, 3.55rem);
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content .eyebrow {
    font-size: 0.58rem;
  }

  body[data-theme="cinematic"] .service-card {
    grid-template-rows: auto 330px auto auto 1fr;
  }

  body[data-theme="cinematic"] .concept-switcher {
    padding: 0.3rem;
  }

  body[data-theme="cinematic"] .concept-switcher button {
    padding: 0.48rem 0.5rem;
    font-size: 0.64rem;
  }

  body[data-theme="cinematic"] .concept-switcher button span {
    display: none;
  }
}

@media (hover: none) {
  body[data-theme="cinematic"] .service-card:hover,
  body[data-theme="cinematic"] .project-card:hover,
  body[data-theme="cinematic"] .article-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="cinematic"] .service-card:hover figure img,
  body[data-theme="cinematic"] .project-card:hover figure img,
  body[data-theme="cinematic"] .article-card:hover figure img {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  body[data-theme="cinematic"] {
    --muted: #554d45;
    --line: rgba(24, 21, 18, 0.38);
  }

  body[data-theme="cinematic"] .home-hero--materials .home-hero__content > p:not(.eyebrow),
  body[data-theme="cinematic"] .page-hero__copy .lede {
    color: #fffaf2;
  }
}
