/*
Theme Name: Arte-Miss New
Theme URI: /arte-miss-new
Author: John Boe
Description: New sales-focused WordPress theme concept for Arte-Miss, a ceramic studio by Agnieszka Miszke.
Version: 2.0.0
Text Domain: arte-miss
*/

:root {
  color-scheme: light;
  --ink: #181412;
  --muted: #6c625b;
  --paper: #f8f3ec;
  --cream: #fffaf2;
  --clay: #c84f31;
  --berry: #8a2f5f;
  --teal: #0f6670;
  --leaf: #687341;
  --gold: #d49c38;
  --line: rgba(24, 20, 18, 0.14);
  --line-strong: rgba(24, 20, 18, 0.26);
  --shadow: 0 22px 70px rgba(55, 37, 24, 0.16);
  --soft-shadow: 0 12px 34px rgba(55, 37, 24, 0.1);
  --radius: 8px;
  --header-h: 76px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fff6ea;
  --muted: #c8baad;
  --paper: #12100f;
  --cream: #1d1916;
  --clay: #f06d49;
  --berry: #d672a5;
  --teal: #67c6d0;
  --leaf: #a5b56f;
  --gold: #efbd58;
  --line: rgba(255, 246, 234, 0.14);
  --line-strong: rgba(255, 246, 234, 0.28);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(200, 79, 49, 0.07), transparent 26%),
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--cream) 82%, var(--paper)));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 68%, white);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 7vw, 7.6rem);
  line-height: 0.9;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2.35rem, 5vw, 5rem);
  line-height: 0.96;
}

h3 {
  margin: 0;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.12;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--teal));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(16px, 3.5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(20px);
}

.brand,
.footer-brand,
.studio-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(from 150deg, var(--clay), var(--gold), var(--teal), var(--berry), var(--clay));
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.brand-text,
.footer-brand div,
.studio-wordmark {
  display: grid;
  gap: 0.05rem;
}

.brand-text strong,
.footer-brand strong,
.studio-wordmark strong {
  font-weight: 930;
  line-height: 1;
}

.brand-text small,
.footer-brand span,
.studio-wordmark span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.05;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  box-shadow: var(--soft-shadow);
  font-size: 0.84rem;
  font-weight: 820;
}

.nav li {
  display: inline-flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav .current-menu-item > a,
.nav a.is-active {
  color: var(--ink);
  background: color-mix(in srgb, var(--gold) 24%, var(--cream));
}

.theme-toggle,
.menu-toggle,
.language-switch {
  appearance: none;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  min-height: 44px;
  padding: 0.3rem;
  border-radius: 999px;
}

.language-switch a {
  display: inline-grid;
  min-width: 34px;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a.is-active {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.48rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-weight: 850;
}

.theme-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), var(--teal));
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 180ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(20px);
}

.theme-toggle-label {
  font-size: 0.76rem;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}

.studio-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 82;
  display: flex;
  width: min(calc(100% - 36px), 1160px);
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  box-shadow: var(--soft-shadow);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.studio-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.2rem;
}

.studio-nav div a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.studio-nav div a:hover {
  background: color-mix(in srgb, var(--gold) 24%, var(--cream));
  color: var(--ink);
}

.new-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(24px, 4vw, 64px);
  min-height: calc(100svh - var(--header-h));
  align-items: center;
  padding: clamp(54px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(42px, 5vw, 78px);
}

.new-hero-copy {
  display: grid;
  gap: 1.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 930;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker,
.section-lead p,
.sales-copy p,
.raku-copy p,
.workshop-sales p,
.final-contact p {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.24rem);
  line-height: 1.72;
}

.hero-actions,
.mini-cta,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.04rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 890;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.button.primary {
  border-color: color-mix(in srgb, var(--clay) 78%, black);
  background: linear-gradient(135deg, var(--clay), var(--berry));
  color: #fff8ed;
}

.button.ghost,
.button.secondary {
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  color: var(--ink);
}

.showcase-wall {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  grid-auto-rows: 220px;
  gap: 0.9rem;
}

.showcase-wall img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.showcase-wall .tile-large {
  grid-row: span 2;
}

.buy-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.buy-strip div {
  min-height: 116px;
  padding: 1.2rem clamp(18px, 4vw, 42px);
  background: var(--cream);
}

.buy-strip strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.buy-strip span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 760;
}

.section {
  padding: clamp(64px, 8vw, 122px) clamp(18px, 5vw, 72px);
}

.section-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.section-lead {
  display: grid;
  max-width: 900px;
  gap: 1rem;
  margin-bottom: clamp(24px, 4vw, 54px);
}

.section-action {
  margin: clamp(22px, 3vw, 38px) 0 0;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.offer-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--soft-shadow);
}

.offer-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.offer-grid h3,
.offer-grid p {
  margin-inline: 1rem;
}

.offer-grid h3 {
  margin-top: 1rem;
}

.offer-grid p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.sales-section {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 14%, transparent), transparent),
    var(--cream);
}

.sales-grid,
.raku-feature-grid,
.workshop-sales-grid,
.final-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.sales-copy {
  display: grid;
  gap: 1rem;
}

.raku-feature {
  color: #fff8ed;
  background:
    radial-gradient(circle at 74% 16%, rgba(216, 79, 49, 0.36), transparent 28rem),
    linear-gradient(135deg, #1c1110, #10282c);
}

.raku-feature .eyebrow,
.raku-feature p {
  color: color-mix(in srgb, #fff8ed 78%, transparent);
}

.raku-copy {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 1rem;
}

.raku-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.8rem;
}

.raku-gallery img {
  grid-column: span 2;
  width: 100%;
  min-height: 320px;
  border: 1px solid rgba(255, 248, 237, 0.16);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.raku-gallery img:nth-child(n + 4) {
  grid-column: span 3;
}

.workshop-sales {
  background: color-mix(in srgb, var(--gold) 10%, var(--paper));
}

.workshop-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 1.4rem;
  color: var(--muted);
  font-weight: 760;
}

.shop-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.shop-gallery img {
  grid-column: span 2;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  object-fit: cover;
}

.shop-gallery img.wide {
  grid-column: span 3;
  aspect-ratio: 1.35 / 1;
}

.final-contact {
  padding-top: 0;
}

.final-contact-panel {
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--clay) 12%, var(--cream)), color-mix(in srgb, var(--teal) 12%, var(--cream)));
  box-shadow: var(--shadow);
}

.contact-actions {
  align-content: start;
}

.map-frame {
  overflow: hidden;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.page-main,
.page-shell {
  padding: clamp(52px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.detail-main {
  padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 72px) clamp(72px, 8vw, 120px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(24px, 5vw, 70px);
  width: min(1220px, 100%);
  margin: 0 auto;
  align-items: center;
}

.detail-hero h1 {
  max-width: 12ch;
  margin: 0.25rem 0 1rem;
  font-size: clamp(3rem, 6.6vw, 7rem);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  line-height: 1.72;
}

.detail-hero-gallery {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  grid-auto-rows: 190px;
  gap: 0.75rem;
}

.detail-hero-gallery img,
.detail-gallery img {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.detail-hero-gallery img:first-child {
  grid-row: span 2;
}

.detail-body {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  width: min(1220px, 100%);
  margin: clamp(44px, 7vw, 88px) auto 0;
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-blocks article {
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  box-shadow: var(--soft-shadow);
}

.detail-blocks h2 {
  max-width: 13ch;
  font-size: clamp(1.55rem, 2.5vw, 2.4rem);
}

.detail-blocks p {
  color: var(--muted);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 0.75rem;
}

.detail-gallery img.wide {
  grid-column: span 2;
}

.page-content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  box-shadow: var(--soft-shadow);
}

.page-content h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 6rem);
  line-height: 0.92;
}

.page-content h2 {
  max-width: 18ch;
  margin-top: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  line-height: 1;
}

.page-content p,
.page-content li {
  color: var(--muted);
}

.raku-page-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.raku-page-gallery img {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #171412;
  color: #fff8ed;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.footer-links a {
  color: color-mix(in srgb, #fff8ed 78%, transparent);
  font-weight: 780;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1080px) {
  .new-hero,
  .detail-hero,
  .sales-grid,
  .raku-feature-grid,
  .workshop-sales-grid,
  .final-contact-panel {
    grid-template-columns: 1fr;
  }

  .showcase-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buy-strip,
  .offer-grid,
  .detail-blocks {
    grid-template-columns: 1fr;
  }

  .raku-copy {
    position: static;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    margin-top: 0;
  }

  .header-actions {
    max-width: calc(100% - 174px);
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .theme-toggle-label {
    display: none;
  }

  .language-switch {
    order: 2;
    min-height: 36px;
    padding: 0.22rem;
  }

  .language-switch a {
    min-width: 30px;
    min-height: 28px;
  }

  .menu-toggle {
    display: inline-block;
    order: 2;
  }

  .nav {
    position: fixed;
    top: 126px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border-radius: var(--radius);
    background: var(--cream);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    justify-content: center;
  }
  .studio-nav {
    position: sticky;
    top: 10px;
    left: auto;
    width: calc(100% - 24px);
    margin: 10px auto 0;
    border-radius: 28px;
    transform: none;
  }

  .new-hero {
    padding-top: 34px;
  }

  .showcase-wall,
  .raku-gallery,
  .shop-gallery,
  .raku-page-gallery,
  .detail-hero-gallery,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .showcase-wall .tile-large,
  .detail-hero-gallery img:first-child,
  .detail-gallery img.wide,
  .raku-gallery img,
  .raku-gallery img:nth-child(n + 4),
  .shop-gallery img,
  .shop-gallery img.wide {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .studio-nav {
    align-items: flex-start;
    border-radius: 26px;
  }

  .studio-nav div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.1rem;
  }

  .new-hero,
  .section,
  .page-main,
  .page-shell {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .button {
    width: 100%;
  }
}

/* WOW UI layer: kiln-glaze motion, spotlight surfaces and cinematic media. */
body {
  position: relative;
  min-height: 100vh;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -2;
  background:
    conic-gradient(from 120deg at 18% 22%, color-mix(in srgb, var(--clay) 32%, transparent), transparent 28%, color-mix(in srgb, var(--teal) 24%, transparent), transparent 58%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 82%),
    linear-gradient(135deg, color-mix(in srgb, var(--berry) 10%, transparent), transparent 42%, color-mix(in srgb, var(--leaf) 12%, transparent)),
    var(--paper);
  filter: saturate(1.12);
  animation: glaze-field 24s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  opacity: 0.3;
  background:
    repeating-linear-gradient(112deg, transparent 0 18px, color-mix(in srgb, var(--ink) 6%, transparent) 19px 20px),
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--paper) 70%, transparent));
  mix-blend-mode: multiply;
  transform: translateY(calc(var(--scroll-y, 0) * -0.015px));
}

@keyframes glaze-field {
  to {
    background-position: 18% 6%, 0 14%, 0 0;
  }
}

.site-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cream) 80%, transparent), color-mix(in srgb, var(--paper) 70%, transparent)),
    color-mix(in srgb, var(--paper) 74%, transparent);
  box-shadow: 0 12px 42px color-mix(in srgb, var(--ink) 8%, transparent);
  backdrop-filter: blur(22px) saturate(1.25);
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  position: absolute;
  inset: -35%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.64), transparent 62%);
  content: "";
  transform: translateX(-80%) rotate(12deg);
  animation: mark-shine 5.5s ease-in-out infinite;
}

@keyframes mark-shine {
  0%, 62% {
    transform: translateX(-85%) rotate(12deg);
  }

  88%, 100% {
    transform: translateX(85%) rotate(12deg);
  }
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 34%, transparent), transparent);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.button::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: inherit;
  content: "";
}

.button:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 18px 46px color-mix(in srgb, var(--clay) 22%, transparent);
}

.button:hover::before {
  opacity: 1;
}

.showcase-wall {
  --hero-lift: 0px;
  perspective: 1000px;
  transform: translateY(calc(var(--hero-lift) * -1));
  transition: transform 240ms ease-out;
}

.showcase-wall img,
.shop-gallery img,
.detail-gallery img,
.raku-page-gallery img,
.raku-gallery img {
  transition: transform 280ms ease, filter 280ms ease, box-shadow 280ms ease;
}

.showcase-wall img:nth-child(2) {
  transform: rotate(1.4deg);
}

.showcase-wall img:nth-child(3) {
  transform: rotate(-1.2deg);
}

.showcase-wall img:hover,
.shop-gallery img:hover,
.detail-gallery img:hover,
.raku-page-gallery img:hover,
.raku-gallery img:hover {
  filter: saturate(1.2) contrast(1.04);
  box-shadow: 0 26px 72px color-mix(in srgb, var(--clay) 18%, transparent);
  transform: translateY(-8px) scale(1.02);
}

.buy-strip div,
.offer-grid article,
.detail-blocks article,
.final-contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.buy-strip div::after {
  position: absolute;
  right: -12%;
  bottom: -65%;
  width: 46%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-radius: 999px;
  content: "";
  transform: rotate(20deg);
}

.offer-grid article,
.detail-blocks article {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.offer-grid article::after,
.detail-blocks article::after,
.final-contact-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), color-mix(in srgb, var(--gold) 26%, transparent), transparent 38%);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.offer-grid article:hover,
.detail-blocks article:hover {
  border-color: color-mix(in srgb, var(--gold) 64%, var(--line));
  box-shadow: 0 28px 70px color-mix(in srgb, var(--ink) 13%, transparent);
  transform: translateY(-8px);
}

.offer-grid article:hover::after,
.detail-blocks article:hover::after,
.final-contact-panel:hover::after {
  opacity: 1;
}

.raku-feature {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 90px),
    conic-gradient(from 35deg at 68% 18%, rgba(239, 189, 88, 0.28), transparent 24%, rgba(103, 198, 208, 0.18), transparent 56%, rgba(240, 109, 73, 0.24), transparent 84%),
    linear-gradient(135deg, #1c1110, #10282c);
}

.raku-feature::before {
  position: absolute;
  inset: -20%;
  background: repeating-linear-gradient(100deg, transparent 0 42px, rgba(255, 255, 255, 0.05) 43px 44px);
  content: "";
  transform: translateX(-4%);
  animation: kiln-lines 16s linear infinite;
}

.raku-feature-grid {
  position: relative;
  z-index: 1;
}

@keyframes kiln-lines {
  to {
    transform: translateX(4%);
  }
}

.final-contact-panel::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, white 20%, transparent), transparent);
  content: "";
  transform: translateX(-100%);
  animation: panel-sheen 7s ease-in-out infinite;
}

@keyframes panel-sheen {
  0%, 58% {
    transform: translateX(-105%);
  }

  86%, 100% {
    transform: translateX(105%);
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--teal), var(--berry), var(--clay));
  content: "";
  animation: footer-current 8s linear infinite;
}

@keyframes footer-current {
  to {
    transform: translateX(-50%);
  }
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms cubic-bezier(0.2, 0.72, 0.16, 1) var(--reveal-delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.motion-ready .showcase-wall.reveal.is-visible {
  transform: translateY(calc(var(--hero-lift) * -1));
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .brand-mark::after,
  .raku-feature::before,
  .final-contact-panel::before,
  .site-footer::before {
    animation: none !important;
  }
}

/* Visual QA refinement: calmer display type and Leaflet map panel. */
h1,
h2 {
  overflow-wrap: normal;
  text-wrap: balance;
  hyphens: none;
}

h1 {
  max-width: 14ch;
  font-size: clamp(3.05rem, 5.35vw, 5.9rem);
  line-height: 0.98;
}

h2 {
  max-width: 16ch;
  font-size: clamp(2.05rem, 3.6vw, 4.15rem);
  line-height: 1;
}

.detail-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 5vw, 5.6rem);
  line-height: 0.98;
}

.page-content h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.9rem);
}

/* Kontakt i stopka. */
.contact-actions--stack {
  display: grid;
  gap: 0.7rem;
}

.contact-card,
.detail-contact-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.contact-card:hover,
.detail-contact-links a:hover {
  border-color: var(--clay);
  transform: translateX(3px);
}

.contact-card span,
.detail-contact-links span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 760;
}

.contact-card strong,
.detail-contact-links strong {
  font-size: 0.94rem;
}

.contact-card b {
  color: var(--clay);
  font-size: 1.15rem;
}

.detail-contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.detail-contact-links a {
  grid-template-columns: 1.25rem minmax(0, 1fr);
  column-gap: 0.8rem;
}

.detail-contact-links svg {
  grid-row: span 2;
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.detail-contact-links svg[fill="none"] {
  fill: none;
}

.detail-contact-links strong {
  grid-column: 2;
}

.site-footer {
  display: block;
  padding: 0 clamp(18px, 5vw, 72px);
  border-top: 0;
  background: #241f1b;
  color: #fff8ed;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(28px, 5vw, 72px);
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 80px) 0;
  border-bottom: 1px solid rgba(255, 248, 237, 0.14);
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 500;
}

.footer-brand span,
.footer-brand p,
.footer-links a,
.footer-contact a,
.footer-contact address {
  color: rgba(255, 248, 237, 0.68);
}

.footer-brand p {
  max-width: 34ch;
  margin: 0;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.footer-links p,
.footer-contact > p {
  margin: 0 0 0.45rem;
  color: rgba(255, 248, 237, 0.45);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a,
.footer-contact a {
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.footer-contact-link {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-contact-link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-contact-link svg[fill="none"] {
  fill: none;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-contact address {
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 248, 237, 0.14);
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 1.35rem 0;
  color: rgba(255, 248, 237, 0.42);
  font-size: 0.78rem;
}

@media (max-width: 780px) {
  .detail-contact-links,
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.page-content h2,
.detail-blocks h2 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.04;
}

.new-hero {
  grid-template-columns: minmax(0, 0.86fr) minmax(450px, 1.14fr);
  gap: clamp(30px, 5vw, 80px);
}

.new-hero-copy {
  max-width: 680px;
}

.showcase-wall {
  grid-auto-rows: clamp(180px, 17vw, 250px);
}

.map-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: stretch;
  padding: clamp(18px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, transparent), transparent),
    color-mix(in srgb, var(--cream) 90%, transparent);
  box-shadow: var(--shadow);
}

.map-showcase h2 {
  max-width: 12ch;
  margin: 0.4rem 0 1rem;
  font-size: clamp(1.7rem, 3vw, 3.2rem);
}

.map-showcase p {
  color: var(--muted);
}

.leaflet-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.leaflet-card::before {
  position: absolute;
  inset: 0;
  z-index: 450;
  pointer-events: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--clay) 16%, transparent), transparent 32%),
    linear-gradient(315deg, color-mix(in srgb, var(--teal) 18%, transparent), transparent 34%);
  content: "";
}

.leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 430px;
  background: color-mix(in srgb, var(--cream) 70%, var(--paper));
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--cream);
  color: var(--ink);
}

.leaflet-control-zoom a {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .new-hero,
  .map-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: clamp(2.58rem, 12vw, 4.6rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.35rem);
  }

  .new-hero {
    gap: 1.25rem;
  }

  .showcase-wall {
    grid-auto-rows: 178px;
  }

  .leaflet-card,
  .leaflet-map {
    min-height: 360px;
  }
}
