/* Sztuka Obiektywu — shared stylesheet */
/* Edit existing component rules. Responsive blocks intentionally retain source order. */

/* Fonts and shared design tokens */
@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "HK Grotesk";
  src: url("assets/fonts/HKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --ink: #111;
  --soft: #f2f2f0;
  --line: #d8d8d4;
  --gold: #bea468;
  --gold-dark: #80652f;

  /* Text colour roles — always respect the background surface. */
  --text-primary: var(--ink);
  --text-secondary: #5f5f5f;
  --text-muted: #6b6b6b;
  --text-inverse: #fff;
  --text-inverse-secondary: #c1c1c1;
  --text-inverse-muted: #d5d5d5;
  --text-accent-on-light: var(--gold-dark);
  --text-accent-on-dark: var(--gold);
  --motion-hover-in: 180ms;
  --motion-hover-out: 140ms;
  --motion-press: 100ms;
  --motion-hero: 680ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
  --motion-ease-enter: cubic-bezier(.22,1,.36,1);
  --gold-gradient: linear-gradient(105deg,#80652f 0%,#a98746 22%,#e3d091 48%,#bea468 68%,#e8d9a2 100%);
  --font: "HK Grotesk",Arial,sans-serif;
  --gutter: clamp(24px,3vw,64px);
  --content: 1680px;

  /* Single semantic type scale — values change only at device breakpoints. */
  --weight-regular: 400;
  --weight-bold: 700;
  /* Desktop typography scale — every semantic role has its own size. */
  --type-h1: 78.2px;
  --type-h2: 66.3px;
  --type-h3: 40.8px;
  --type-h4: 32.3px;
  --type-h5: 27.2px;
  --type-body: 21.25px;
  --type-lead: 24.65px;
  --type-body-secondary: 19.55px;
  --type-body-emphasis: 22.95px;
  --type-small: 15.3px;
  --type-label: 12.75px;
  --type-section-label: 22.1px;
  --type-meta: 14.45px;
  --type-caption: 13.6px;
  --type-footnote: 10.2px;
  --type-feedback: 11.9px;
  --type-ui: 18.7px;
  --type-nav: 16.3625px;
  --type-button: 23.8px;
  --type-number: 34px;
  --type-statement: 30.6px;
  --type-tagline: 16.575px;
  --type-emoji: 16.15px;

  /* Dedicated desktop roles for homepage copy and supporting descriptions. */
  --type-home-title: 68px;
  --type-hero-copy: 19.125px;
  --type-location: 18.275px;
  --type-section-aside: 17.85px;
  --type-about-copy: 17.425px;
  --type-about-statement: 28.05px;
  --type-about-button: 20.4px;
  --type-contact-copy: 17px;
  --type-contact-value: 18.4875px;
  --type-contact-label: 12.325px;

  --line-h1: 1.06;
  --line-h2: 1.1;
  --line-h3: 1.18;
  --line-h4: 1.24;
  --line-h5: 1.3;
  --line-body: 1.68;
  --line-lead: 1.62;
  --line-body-secondary: 1.65;
  --line-body-emphasis: 1.45;
  --line-small: 1.5;
  --line-label: 1.3;
  --line-meta: 1.5;
  --line-caption: 1.5;
  --line-footnote: 1.45;
  --line-feedback: 1.45;
  --line-ui: 1.35;
  --line-number: 1;
  --line-statement: 1.12;
  --line-tagline: 1.2;
  --line-emoji: 1;
  --line-home-title: 1.14;
  --line-hero-copy: 1.5;
  --line-location: 1.3;
  --line-section-aside: 1.5;
  --line-about-copy: 1.55;
  --line-about-statement: 1.12;
  --line-contact-copy: 1.55;
  --line-contact-value: 1.35;
  --line-contact-label: 1.3;

  --tracking-h1: -.045em;
  --tracking-h2: -.04em;
  --tracking-h3: -.025em;
  --tracking-h4: -.02em;
  --tracking-h5: -.015em;
  --tracking-body: 0;
  --tracking-label: .1em;
  --tracking-meta: .02em;
  --tracking-nav: -.015em;
  --tracking-ui: 0;
  --tracking-number: -.04em;
  --tracking-statement: -.035em;
}

@media (max-width: 1439px) {
  :root {
    --type-h1: clamp(50px, 4.8vw, 64px);
    --type-h2: clamp(42px, 3.6vw, 48px);
    --type-h3: 30px;
    --type-h4: 23px;
    --type-h5: 19px;
    --type-body: 18px;
    --type-lead: 21px;
    --type-body-secondary: 17px;
    --type-body-emphasis: 18px;
    --type-small: 15px;
    --type-label: 13px;
    --type-section-label: 18px;
    --type-meta: 14px;
    --type-caption: 13px;
    --type-footnote: 12px;
    --type-feedback: 14px;
    --type-ui: 15px;
    --type-nav: 17px;
    --type-button: 16px;
    --type-number: 26px;
    --type-statement: 36px;
    --type-tagline: 18px;
    --type-emoji: 22px;
  }
}
@media (max-width: 1023px) {
  :root {
    --type-h1: 46px;
    --type-h2: 40px;
    --type-h3: 28px;
    --type-h4: 22px;
    --type-h5: 19px;
    --type-body: 18px;
    --type-lead: 20px;
    --type-body-secondary: 16px;
    --type-body-emphasis: 17px;
    --type-small: 15px;
    --type-label: 13px;
    --type-section-label: 17px;
    --type-meta: 14px;
    --type-caption: 13px;
    --type-footnote: 12px;
    --type-feedback: 14px;
    --type-ui: 15px;
    --type-nav: 16px;
    --type-button: 16px;
    --type-number: 24px;
    --type-statement: 32px;
    --type-tagline: 17px;
    --type-emoji: 22px;
  }
}
@media (max-width: 767px) {
  :root {
    --type-h1: clamp(30px, 9.2vw, 38px);
    --type-h2: 34px;
    --type-h3: 25px;
    --type-h4: 21px;
    --type-h5: 18px;
    --type-body: 16px;
    --type-lead: 18px;
    --type-body-secondary: 16px;
    --type-body-emphasis: 16px;
    --type-small: 14px;
    --type-label: 13px;
    --type-section-label: 16px;
    --type-meta: 13px;
    --type-caption: 12px;
    --type-footnote: 12px;
    --type-feedback: 13px;
    --type-ui: 14px;
    --type-nav: 15px;
    --type-button: 15px;
    --type-number: 22px;
    --type-statement: 28px;
    --type-tagline: 16px;
    --type-emoji: 20px;
  }
}
* {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  color: inherit;
  font-family: var(--font);
  font-weight: var(--weight-bold);
  text-wrap: balance;
}
h1 {
  font-size: var(--type-h1);
  line-height: var(--line-h1);
  letter-spacing: var(--tracking-h1);
}
h2 {
  font-size: var(--type-h2);
  line-height: var(--line-h2);
  letter-spacing: var(--tracking-h2);
}
h3 {
  font-size: var(--type-h3);
  line-height: var(--line-h3);
  letter-spacing: var(--tracking-h3);
}
h4 {
  font-size: var(--type-h4);
  line-height: var(--line-h4);
  letter-spacing: var(--tracking-h4);
}
h5 {
  font-size: var(--type-h5);
  line-height: var(--line-h5);
  letter-spacing: var(--tracking-h5);
}
p {
  font-size: var(--type-body);
  line-height: var(--line-body);
}
small {
  font-size: var(--type-small);
  line-height: var(--line-small);
}
figcaption {
  font-size: var(--type-caption);
  line-height: var(--line-caption);
}

[data-feedback],
[role="alert"],
[role="status"] {
  font-size: var(--type-feedback);
  line-height: var(--line-feedback);
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--type-body);
  line-height: var(--line-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
em {
  font-style: normal;
  color: var(--gold-dark);
}
.container {
  width: min(100% - var(--gutter)*2,var(--content));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border: 2px solid var(--gold-dark);
  border-radius: 999px;
  background: #fff;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 4px;
}
/* Shared header and navigation */
.site-header {
  color: #111;
  border-bottom: 1px solid #222;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current],
.mobile-nav nav a[aria-current] {
  color: var(--gold-dark);
}
.desktop-nav a[aria-current] {
  text-decoration-color: var(--gold);
  text-underline-offset: 7px;
}
.mobile-nav summary span {
  margin-left: 10px;
  color: var(--gold);
}
.mobile-nav nav a:last-child {
  border: 0;
}

.hero-copy h1 {
  max-width: 870px;
  margin: 0 0 28px;
  font-size: var(--type-h1);
  line-height: var(--line-h1);
  letter-spacing: var(--tracking-h1);
  font-weight: var(--weight-bold);
}
.hero-lead {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--text-secondary);
  font-size: var(--type-lead);
  line-height: var(--line-lead);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: var(--weight-bold);
  line-height: var(--line-ui);
  transition: transform var(--motion-hover-out) var(--motion-ease),background-color var(--motion-hover-out) var(--motion-ease);
}

.button-gold {
  color: #18130a;
  background: var(--gold-gradient);
}
.portrait-slot {
  place-items: center;
}

.section {
  padding: clamp(76px,9vw,126px) 0;
  background: #fff;
}
.section-soft {
  background: var(--soft);
}
.section-dark {
  background: #101010;
  color: var(--text-inverse);
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(220px,.6fr);
  align-items: end;
  gap: 42px;
  margin-bottom: 48px;
}
.section-heading h2 {
  margin: 0;
  font-size: var(--type-h2);
  line-height: var(--line-h2);
  letter-spacing: var(--tracking-h2);
}
.section-aside {
  max-width: 560px;
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--type-lead);
  line-height: var(--line-lead);
}
.service-grid {
  border-top: 1px solid #cfcfca;
}
.service-card {
  display: grid;
  grid-template-columns: 36px 40px minmax(0,1fr) 26px;
  align-items: center;
  gap: 18px;
  min-height: 118px;
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid #cfcfca;
  transition: transform var(--motion-hover-out) var(--motion-ease),background-color var(--motion-hover-out) var(--motion-ease);
}
.service-card:nth-child(odd) {
  margin-right: 34px;
}
.service-card:nth-child(even) {
  margin-left: 34px;
}

.service-icon {
  fill: none;
  stroke: #171717;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-arrow {
  color: var(--gold-dark);
}

.body-copy {
  max-width: 680px;
  color: var(--text-secondary);
  line-height: var(--line-body);
}
.body-copy p {
  margin-bottom: 18px;
}

.section-dark h2 em {
  color: var(--gold);
}

/* Shared footer */
.site-footer {
  padding: 38px 0 24px;
}
.footer-bottom {
  flex-wrap: wrap;
  padding-top: 18px;
}
@media (max-width:1180px) {
  .desktop-nav {
    gap: 9px;
    font-size: var(--type-nav);
  }
  .brand img {
    width: 142px;
  }
  .header-inner {
    gap: 18px;
  }
}
@media (max-width:1080px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
    margin-left: auto;
  }
}
@media (max-width:760px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-copy h1 {
    font-size: var(--type-h1);
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }
  .service-card:nth-child(odd),
.service-card:nth-child(even) {
    margin: 0;
  }
  .service-card {
    min-height: 100px;
    grid-template-columns: 30px 34px minmax(0,1fr) 22px;
    gap: 13px;
    padding: 18px 5px 18px 0;
  }








  .footer-bottom {
    align-items: flex-start;
  }

}
@media (max-width:420px) {
  .hero-copy h1 {
    font-size: var(--type-h1);
  }
  .locations {
    font-size: var(--type-meta);
    line-height: var(--line-meta);
  }
  .service-copy small {
    max-width: 220px;
  }

}
:root {
  --nav-black: #080808;
  --gold-ink: #b08b48;
  --header-height: 92px;
  --gold-text-gradient: linear-gradient(105deg,#745A2E 0%,#94733B 24%,#AC884B 48%,#806333 72%,#9A7941 100%);
}
html {
  scroll-padding-top: calc(var(--header-height) + 20px);
}
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.brand img {
  display: block;
  height: auto;
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: var(--type-nav);
  font-weight: var(--weight-bold);
  line-height: var(--line-ui);
  letter-spacing: var(--tracking-nav);
}
.desktop-nav a,
.mobile-nav nav a {
  position: relative;
  color: var(--text-inverse);
  text-decoration: none;
  transition: opacity .2s ease,color .2s ease;
}
.desktop-nav a:hover,
.mobile-nav nav a:hover {
  color: var(--text-inverse);
  opacity: .72;
}
.desktop-nav a[aria-current],
.mobile-nav nav a[aria-current] {
  opacity: 1;
}
.desktop-nav a[aria-current]::after,
.mobile-nav nav a[aria-current]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
}
.mobile-nav {
  display: none;
  position: relative;
  z-index: 5;
  margin-left: auto;
  color: var(--text-inverse);
}
.mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: var(--line-ui);
  min-width: 104px;
  min-height: 48px;
  padding: 8px 15px;
  border: 1px solid #fff7;
  border-radius: 0;
  background: #080808;
  color: var(--text-inverse);
  font-size: var(--type-ui);
  font-weight: var(--weight-bold);
  cursor: pointer;
  list-style: none;
  touch-action: manipulation;
}
.mobile-nav summary::-webkit-details-marker {
  display: none;
}
.mobile-nav summary img {
  width: 21px;
  height: 21px;
  filter: brightness(0) invert(1);
}
.mobile-nav nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  min-width: min(360px,calc(100vw - 36px));
  max-height: calc(100svh - 130px);
  overflow: auto;
  padding: 10px 20px;
  background: #080808;
  border: 1px solid #ffffff35;
  box-shadow: 0 18px 48px #0004;
}
.mobile-nav nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 4px;
  border-bottom: 1px solid #ffffff24;
  color: var(--text-inverse);
  font-size: var(--type-ui);
  line-height: var(--line-ui);
}
.mobile-nav nav a:last-child {
  border-bottom: 0;
}
.mobile-nav nav a[aria-current]::after {
  right: auto;
  bottom: 5px;
  width: 72px;
}
.skip-link {
  z-index: 2000;
}
/* Homepage hero */
.hero-home {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.hero-home>.container {
  width: min(100% - var(--gutter)*2,var(--content));
  margin-inline: auto;
}
.hero-grid {
  display: grid;
  align-items: stretch;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: clamp(44px,5.8vw,86px) 0 54px;
}
.hero-copy h1 {
  max-width: 820px;
  margin: 0 0 28px;
  font-size: var(--type-h1);
  text-wrap: balance;
}
.hero-lead {
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: var(--type-lead);
  line-height: var(--line-lead);
  text-wrap: pretty;
}
.locations {
  margin: 20px 0 30px;
  color: var(--text-secondary);
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-meta);
}
.locations span {
  padding-inline: 8px;
  color: var(--gold-ink);
}
.button {
  min-height: 54px;
  padding: 0 25px;
  gap: 17px;
  font-size: var(--type-button);
  touch-action: manipulation;
}
.button-dark {
  background: #080808;
  color: var(--text-inverse);
  border-color: #080808;
}

.portrait-slot {
  display: flex;
  align-self: end;
  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 540px;
  max-height: 940px;
  margin: 0;
  background: transparent;
}
.portrait-slot picture {
  display: flex;
  width: 100%;
  height: 100%;
  background: transparent;
}
.portrait-slot picture img {
  display: block;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
}
/* Homepage service index */
.services {
  padding-block: clamp(90px,10vw,142px);
}
.services-heading {
  gap: clamp(32px,6vw,92px);
}
.services-heading h2 {
  letter-spacing: var(--tracking-h2);
  text-wrap: balance;
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  position: relative;
  background: #fff;
  transition: transform var(--motion-hover-out) var(--motion-ease),border-color var(--motion-hover-out) var(--motion-ease),background-color var(--motion-hover-out) var(--motion-ease);
}

.service-number {
  padding-top: 5px;
  color: #967642;
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-number);
}
.service-icon-wrap {
  display: grid;
  place-items: center;
  background: #080808;
  border: 1px solid #080808;
  transition: background .2s ease,border-color .2s ease;
}

.service-icon {
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.service-copy {
  display: grid;
  min-width: 0;
}
.service-copy strong {
  letter-spacing: var(--tracking-h4);
}
.service-copy small {
  color: #686868;
}
.service-arrow {
  transition: transform .22s ease;
}

/* Homepage About section */
.about-preview {
  padding-block: clamp(90px,10vw,140px);
}
.about-grid {
  display: grid;
}
.about-visual h2 {
  font-size: var(--type-h2);
  line-height: var(--line-h2);
  letter-spacing: var(--tracking-h2);
}
.about-copy p {
  color: var(--text-secondary);
}
.about-signature {
  margin-top: 28px !important;
  color: #151515 !important;
  font-weight: var(--weight-bold);
}
/* Homepage contact section */
.home-contact {
  padding-block: clamp(88px,10vw,136px);
  background: #080808;
  color: var(--text-inverse);
}
.home-contact-grid {
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  gap: clamp(38px,7vw,110px);
}
.contact-item {
  display: grid;
  align-items: center;
  transition: transform var(--motion-hover-out) var(--motion-ease),color var(--motion-hover-out) var(--motion-ease);
}
.contact-icon {
  display: grid;
  place-items: center;
}
.contact-item>span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.contact-item small {
  color: #aaa;
  text-transform: uppercase;
}
.contact-item strong {
  overflow-wrap: anywhere;
  color: inherit;
  font-weight: var(--weight-bold);
  line-height: var(--line-body-emphasis);
}
.site-footer {
  background: #080808;
  color: var(--text-inverse);
  border-top: 1px solid #ffffff35;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(320px,.8fr);
  gap: 56px;
  padding-block: 64px 52px;
  align-items: end;
}
.footer-watermark img {
  max-height: none;
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 0 28px;
}
.footer-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid #ffffff28;
  color: var(--text-inverse-muted);
  font-size: var(--type-ui);
  line-height: var(--line-ui);
  transition: color var(--motion-hover-out) var(--motion-ease),transform var(--motion-hover-out) var(--motion-ease);
}

.footer-bottom {
  display: flex;
  gap: 24px;
  padding-block: 18px 24px;
  border-top: 1px solid #ffffff36;
  color: var(--text-inverse-muted);
  font-size: var(--type-footnote);
  line-height: var(--line-footnote);
}
.back-to-top {
  position: fixed;
  right: max(20px,env(safe-area-inset-right));
  bottom: max(20px,env(safe-area-inset-bottom));
  z-index: 990;
  transition: transform var(--motion-hover-out) var(--motion-ease),background-color var(--motion-hover-out) var(--motion-ease),border-color var(--motion-hover-out) var(--motion-ease);
}

.back-to-top:focus-visible {
  outline: 2px solid #b08b48;
  outline-offset: 4px;
}
/* Scroll reveal removed: editorial content remains visible without script and while scrolling. */
@media (max-width:1180px) {
  .desktop-nav {
    display: none;
  }
  .mobile-nav {
    display: block;
  }
  .hero-copy h1 {
    font-size: var(--type-h1);
  }
  .service-icon-wrap {
    width: 56px;
    height: 56px;
  }
}
@media (max-width:900px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,.95fr);
    gap: 24px;
  }
  .hero-copy h1 {
    font-size: var(--type-h1);
  }
  .hero-lead {
    font-size: var(--type-lead);
  }
  .about-grid {
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    gap: 38px;
  }
  .home-contact-grid {
    gap: 38px;
  }
}
@media (max-width:820px) {
  .hero-grid {
    min-height: 0;
  }
  .hero-copy {
    padding: clamp(48px,7vw,66px) 0 20px;
  }
  .hero-lead {
    max-width: 700px;
  }
  .portrait-slot {
    width: 100%;
    height: clamp(390px,62svh,560px);
    height: clamp(390px,62vh,560px);
    min-height: 0;
    max-height: 560px;
    margin: 0;
  }
  .portrait-slot picture img {
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
}
@media (max-width:760px) {
  .site-header {
    padding-bottom: 10px;
  }
  .header-inner {
    padding-inline: 18px;
  }
  .header-rule {
    width: calc(100% - 36px);
  }
  .mobile-nav summary {
    min-width: 100px;
    min-height: 48px;
    padding: 8px 14px;
    font-size: var(--type-ui);
  }
  .mobile-nav nav {
    right: 0;
    min-width: min(330px,calc(100vw - 36px));
  }
  .hero-home {
    min-height: calc(100svh - var(--header-height));
    padding: 0;
    overflow: hidden;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
  }
  .hero-copy {
    padding: 44px 0 22px;
  }
  .hero-copy h1 {
    font-size: var(--type-h1);
    margin-bottom: 20px;
  }
  .hero-lead {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
    margin-bottom: 12px;
  }
  .locations {
    margin: 16px 0 22px;
    font-size: var(--type-meta);
  }
  .portrait-slot {
    width: 100%;
    height: clamp(330px,58vh,560px);
    height: clamp(330px,58svh,560px);
    min-height: 0;
    max-height: 560px;
    margin: 0;
  }
  .portrait-slot picture img {
    width: 100%;
    max-width: 560px;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }
  .services,
.about-preview,
.home-contact {
    padding-block: 76px;
  }
  .services-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-visual h2 {
    font-size: var(--type-h2);
  }
  .about-portrait {
    width: min(100%,420px);
  }
  .about-copy {
    padding-top: 0;
    line-height: var(--line-body);
  }
  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-main {
    padding-block: 48px 34px;
  }
  .footer-watermark {
    margin-bottom: 12px;
  }
  .footer-nav {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .footer-bottom {
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
  }
  .back-to-top {
    right: max(14px,env(safe-area-inset-right));
    bottom: max(14px,env(safe-area-inset-bottom));
  }
}
@media (max-width:440px) {
  .hero-copy h1 {
    font-size: var(--type-h1);
  }
  .hero-lead {
    font-size: var(--type-lead);
  }
  .button {
    min-height: 50px;
    padding-inline: 19px;
    font-size: var(--type-button);
  }
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    padding-inline: 10px;
  }
  .footer-nav {
    gap: 0 14px;
  }
  .footer-nav a {
    font-size: var(--type-ui);
  }
  .contact-item strong {
    font-size: var(--type-body-emphasis);
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
*::before,
*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.header-inner {
  min-height: 72px;
  padding: 0 var(--gutter);
  background: #080808;
  color: var(--text-inverse);
}
.brand img {
  width: clamp(180px,16.2vw,240px);
  max-height: 60px;
}
.desktop-nav {
  gap: clamp(16px,1.25vw,24px);
  font-size: var(--type-nav);
  font-weight: var(--weight-bold);
}
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--text-inverse);
  text-decoration: none !important;
}
.desktop-nav a[aria-current] {
  color: #d7c18f;
  text-decoration: none !important;
}
.desktop-nav a[aria-current]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--gold-gradient);
}
.desktop-nav a:hover {
  color: #e1d2b0;
}
.header-rule {
  display: block;
  width: 100%;
  height: 8px;
  margin: 12px 0 0;
  background: #080808;
}
.hero-grid {
  grid-template-columns: minmax(0,.91fr) minmax(0,1.09fr);
  gap: clamp(26px,3.4vw,54px);
}
.portrait-slot {
  overflow: visible;
  align-items: end;
  justify-content: end;
  margin-bottom: -10px;
}
.portrait-slot picture {
  align-items: end;
  justify-content: end;
}
.portrait-slot picture img {
  width: 100%;
  max-width: 1000px;
  max-height: none;
  transform: translate(0,8px) scale(1);
  transform-origin: right bottom;
}
.locations {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 4px;
}
.services-heading {
  display: block;
  grid-template-columns: 1fr;
  margin-bottom: clamp(38px,4.8vw,62px);
}
.services-heading-copy {
  max-width: 960px;
}
.services-heading .section-aside {
  display: block;
  margin: 24px 0 0;
  color: #505050;
}
.service-grid {
  border: 0;
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  margin: 0;
  border: 1px solid #e6e4df;
}
.about-grid {
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  align-items: stretch;
  gap: clamp(38px,6vw,88px);
}
.about-visual {
  flex-direction: column;
  min-width: 0;
}
.about-visual h2 {
  margin: 0 0 24px;
}
.about-portrait {
  background: #f2f2f0;
}
.about-portrait img {
  aspect-ratio: auto;
}
.about-copy {
  max-width: 760px;
  height: 100%;
  padding-top: 0;
  font-size: var(--type-body);
  line-height: var(--line-body);
}
.about-copy p {
  font-size: var(--type-body);
  line-height: var(--line-body);
  margin: 0 0 18px;
}
.home-contact-intro h2 {
  color: #fff !important;
}
.home-contact-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #ffffff45;
}
.contact-item {
  gap: 20px;
  min-height: 96px;
  padding: 18px 0;
  border-bottom: 1px solid #ffffff45;
  color: var(--text-inverse);
}
/* Contact hover feedback is gated by fine-pointer support below. */
.contact-icon {
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
}
.contact-icon img {
  width: 29px;
  height: 29px;
  filter: brightness(0) invert(1);
}
.contact-item small {
  font-size: var(--type-label);
  letter-spacing: var(--tracking-label);
}
.contact-item strong {
  font-size: var(--type-body-emphasis);
}
.footer-brand-block p {
  color: var(--text-inverse);
}
.footer-bottom {
  justify-content: flex-start;
}
@media (max-width:1180px) {
  :root {
    --header-height: 94px;
  }
  .header-inner {
    min-height: 74px;
  }
}
@media (max-width:820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .portrait-slot {
    margin-bottom: 0;
    justify-content: center;
  }
  .portrait-slot picture {
    justify-content: center;
  }
  .portrait-slot picture img {
    width: 100%;
    max-width: 620px;
    transform: translateY(0) scale(1.02);
    transform-origin: center bottom;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-portrait {
    width: 100%;
    margin: 0;
  }
  .about-portrait picture,
.about-portrait img {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .about-copy {
    height: auto;
    font-size: var(--type-body);
    line-height: var(--line-body);
  }
  .footer-watermark {
    width: min(100%,300px);
  }
  .footer-brand-block {
    width: min(100%,300px);
    max-width: 300px;
  }
}
@media (max-width:760px) {
  :root {
    --header-height: 84px;
  }
  .site-header {
    padding: 0;
  }
  .header-inner {
    min-height: 68px;
  }
  .brand img {
    width: 162px;
    max-height: 48px;
  }
  .header-rule {
    height: 8px;
    margin-top: 8px;
  }
  .about-visual h2 {
    margin-bottom: 20px;
  }
  .about-copy {
    font-size: var(--type-body);
  }
  .home-contact-intro h2 {
    font-size: var(--type-h2);
  }
  .home-contact-intro>p:last-child {
    font-size: var(--type-lead);
  }
  .contact-item {
    gap: 12px;
    min-height: 82px;
    padding: 14px 0;
  }
  .contact-icon {
    width: 44px;
    height: 44px;
  }
  .contact-icon img {
    width: 26px;
    height: 26px;
  }
  .contact-item strong {
    font-size: var(--type-body-emphasis);
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.about-visual {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}
.about-visual h2 {
  display: none;
}
.about-copy h2 {
  margin: 0 0 28px;
  font-size: var(--type-h2);
  line-height: var(--line-h2);
  letter-spacing: var(--tracking-h2);
}
.about-portrait {
  flex: 1;
  width: 100%;
  min-height: 560px;
  margin: 0;
}
.about-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}
.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 42% center;
}
@media (max-width:820px) {
  .about-visual {
    display: block;
    min-height: 0;
  }
  .about-copy h2 {
    margin-bottom: 20px;
  }
  .about-portrait {
    height: clamp(420px,112vw,620px);
    min-height: 0;
  }
  .about-portrait img {
    height: 100%;
    min-height: 0;
  }
}
@media (max-width:760px) {
  .about-portrait {
    height: clamp(360px,112vw,520px);
  }
  .about-copy h2 {
    font-size: var(--type-h2);
  }
}
.hero-copy .button-dark {
  width: max-content;
  max-width: 100%;
  padding-inline: 12px;
  font-size: var(--type-button);
}
@media (min-width:821px) and (max-width:1279px) {
  .portrait-slot picture img {
    transform: translate(6%,54px) scale(1.26);
    transform-origin: right bottom;
  }
}
@media (min-width:1280px) {
  .portrait-slot picture img {
    transform: translate(10%,76px) scale(1.3);
    transform-origin: right bottom;
  }
}

.footer-nav {
  border-top: 0;
}
.footer-nav a:nth-child(-n/**/+2) {
  border-top: 1px solid #ffffff38;
}
@media (max-width:1180px) {

  .services-heading .section-aside {
    font-size: var(--type-lead);
  }
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    grid-template-columns: 70px 58px minmax(0,1fr) 24px;
    gap: 18px;
    min-height: 190px;
    padding: 26px 22px;
  }

  .service-number {
    font-size: var(--type-number);
  }
  .service-copy strong {
    font-size: var(--type-h4);
  }
  .service-copy small {
    font-size: var(--type-small);
  }
  .about-signature {
    font-size: var(--type-statement);
  }

  .home-contact-intro>p:last-child {
    font-size: var(--type-lead);
  }
  .footer-brand-block p {
    font-size: var(--type-tagline);
  }
}
@media (max-width:820px) {


  .services-heading .section-aside {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
    margin-top: 20px;
  }
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    grid-template-columns: 38px 46px minmax(0,1fr) 20px;
    gap: 11px;
    min-height: 160px;
    padding: 18px 12px;
  }

  .service-number {
    font-size: var(--type-number);
  }
  .service-copy strong {
    font-size: var(--type-h4);
  }
  .service-copy small {
    font-size: var(--type-small);
    line-height: var(--line-small);
  }
  .about-signature {
    font-size: var(--type-statement);
  }


  .footer-brand-block p {
    font-size: var(--type-tagline);
  }
}
@media (max-width:440px) {

  .services-heading .section-aside {
    font-size: var(--type-lead);
  }
  .service-copy strong {
    font-size: var(--type-h4);
  }
  .service-copy small {
    font-size: var(--type-small);
  }
  .about-signature {
    font-size: var(--type-statement);
  }

  .home-contact-intro>p:last-child {
    font-size: var(--type-lead);
  }
  .footer-brand-block p {
    font-size: var(--type-tagline);
  }
}
@media (min-width:1181px) {
  .hero-proof {
    display: block;
    width: max-content;
    max-width: none;
    margin: -10px 0 18px;
    color: var(--text-secondary);
    font-size: var(--type-body);
    line-height: var(--line-body);
    letter-spacing: var(--tracking-body);
    white-space: nowrap;
  }
}
@media (max-width:1180px) {
  .hero-proof {
    margin: -8px 0 18px;
    color: var(--text-secondary);
    font-size: var(--type-body);
    line-height: var(--line-body);
  }
}

.services-heading h2 {
  font-size: var(--type-h2);
  line-height: var(--line-h2);
}
.services-heading .section-aside {
  max-width: 760px;
  margin-top: 18px;
  font-size: var(--type-lead);
  line-height: var(--line-lead);
}
/* Fill the two desktop columns top-to-bottom: 01–03 left, 04–05 right. */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-rows: repeat(3,minmax(0,1fr));
  grid-auto-flow: column;
  gap: 12px 16px;
  align-items: stretch;
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  display: grid;
  align-items: center;
}
.service-copy strong {
  font-size: var(--type-h4);
  line-height: var(--line-h4);
}
.service-copy small {
  font-size: var(--type-small);
  line-height: var(--line-small);
}
@media (max-width:1000px) {
  .service-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-flow: row;
  }
  .service-copy strong {
    font-size: var(--type-h4);
  }
  .service-copy small {
    font-size: var(--type-small);
  }
}
@media (max-width:760px) {

  .services-heading h2 {
    font-size: var(--type-h2);
  }
  .services-heading .section-aside {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
    margin-top: 16px;
  }
  .service-copy strong {
    font-size: var(--type-h4);
  }
  .service-copy small {
    font-size: var(--type-small);
  }
}
.about-button {
  display: inline-flex;
  align-items: center;
}
.home-contact-grid {
  align-items: stretch;
}
.home-contact-intro {
  display: flex;
  flex-direction: column;
}

.home-contact-intro>p:last-child {
  color: #c6c6c6;
}
@media (max-width:820px) {
  .home-contact-intro {
    min-height: 0;
    justify-content: flex-start;
  }

  .home-contact-intro>p:last-child {
    margin: 0;
  }
}
.footer-watermark {
  display: block;
  margin-bottom: 12px;
}
.hero-copy h1 {
  line-height: var(--line-h1);
  letter-spacing: var(--tracking-h1);
  padding: 0 .12em .09em 0;
  overflow: visible;
}
.hero-proof {
  width: auto;
  max-width: 640px;
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: var(--type-body);
  line-height: var(--line-body);
  letter-spacing: var(--tracking-body);
  white-space: normal;
  text-wrap: pretty;
}
.hero-lead {
  margin-bottom: 10px;
}
.hero-copy .locations {
  margin-top: 20px;
  font-size: var(--type-meta);
  line-height: var(--line-meta);
}
@media (max-width:900px) {
  .hero-copy h1 {
    line-height: var(--line-h1);
    letter-spacing: var(--tracking-h1);
  }
  .hero-lead,
.hero-proof {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
  }
}
@media (max-width:760px) {
  .hero-copy h1 {
    line-height: var(--line-h1);
    letter-spacing: var(--tracking-h1);
    padding-bottom: .1em;
  }
  .hero-lead,
.hero-proof {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
  }
  .hero-copy .locations {
    font-size: var(--type-meta);
    line-height: var(--line-meta);
  }
}
@media (max-width:440px) {
  .hero-lead,
.hero-proof {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
  }
  .hero-copy .locations {
    font-size: var(--type-meta);
  }
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  gap: 18px;
  min-height: 152px;
  padding: 20px 20px;
}

.service-number {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding: 0;
  font-size: var(--type-number);
  line-height: var(--line-number);
  text-align: center;
}
.service-icon-wrap {
  width: 64px;
  height: 64px;
  padding: 2px;
}
.service-icon {
  width: 56px;
  height: 56px;
}
.service-copy {
  gap: 7px;
}
@media (max-width:1000px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    gap: 15px;
    min-height: 138px;
    padding: 18px 18px;
  }

  .service-icon-wrap {
    width: 62px;
    height: 62px;
    padding: 2px;
  }
  .service-icon {
    width: 54px;
    height: 54px;
  }
  .service-number {
    font-size: var(--type-number);
  }
}
@media (max-width:760px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    gap: 12px;
    min-height: 122px;
    padding: 14px 14px;
  }

  .service-icon-wrap {
    width: 58px;
    height: 58px;
    padding: 2px;
  }
  .service-icon {
    width: 52px;
    height: 52px;
  }
  .service-number {
    font-size: var(--type-number);
  }
}
@media (max-width:440px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    gap: 10px;
    min-height: 116px;
    padding: 12px 10px;
  }

  .service-icon-wrap {
    width: 54px;
    height: 54px;
    padding: 1px;
  }
  .service-icon {
    width: 50px;
    height: 50px;
  }
  .service-number {
    font-size: var(--type-number);
  }
}
.about-button {
  min-height: 60px;
  padding-inline: 32px;
  font-size: var(--type-button);
  margin-top: 22px;
}
.home-contact-intro {
  justify-content: flex-start;
  gap: 18px;
  min-height: 0;
}

.home-contact-intro h2 {
  margin: 0;
}
.home-contact-intro>p:last-child {
  margin: 0;
  margin-top: 4px;
  max-width: 540px;
  font-size: var(--type-lead);
  line-height: var(--line-lead);
}
@media (max-width:820px) {
  .home-contact-intro {
    gap: 16px;
  }
  .home-contact-intro>p:last-child {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
  }
}
.footer-brand-block {
  width: min(100%,390px);
  max-width: 390px;
}
.footer-watermark {
  width: 100%;
  margin: 0;
}
.footer-watermark img {
  display: block;
  width: 100%;
  height: auto;
}
/* Align the tagline to the visible watermark artwork, not the SVG's transparent canvas. */
.footer-brand-block p {
  display: block;
  width: 95.33%;
  margin: -3px 0 0 3.89%;
  font-size: var(--type-tagline);
  line-height: var(--line-tagline);
  letter-spacing: var(--tracking-ui);
  white-space: nowrap;
  text-align: left;
  text-align-last: auto;
}
@media (max-width:760px) {
  .footer-brand-block {
    width: min(100%,300px);
    max-width: 300px;
  }
  .footer-watermark {
    width: 100%;
    margin: 0;
  }
  .footer-brand-block p {
    width: 95.33%;
    margin: -3px 0 0 3.89%;
    font-size: var(--type-tagline);
  }
}
:root {
  --gold-on-dark-gradient: linear-gradient(105deg,#e4d7ad 0%,#f5e9c2 44%,#cfb477 100%);
  --gold-on-light-gradient: linear-gradient(105deg,#65491f 0%,#84602c 36%,#9a7538 68%,#6f5126 100%);
}
.gold-gradient {
  background: var(--gold-on-light-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
@media (min-width:1181px) {
  .hero-title-line {
    display: block;
  }
}
@media (max-width:1180px) {
  .hero-title-line {
    display: inline;
  }
}
.home-contact-intro h2 {
  max-width: none;
  width: 100%;
  font-size: var(--type-h2);
  letter-spacing: var(--tracking-h2);
  text-wrap: initial;
}
@media (max-width:820px) {
  .home-contact-intro h2 {
    font-size: var(--type-h2);
    line-height: var(--line-h2);
    letter-spacing: var(--tracking-h2);
  }
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  overflow: visible;
}
.contact-item {
  overflow: visible;
}
@media (max-width:760px) {
  .service-arrow {
    width: 29px;
    height: 29px;
  }
  .contact-arrow {
    width: 29px;
    height: 29px;
  }
}
@media (min-width:1181px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(26px,3.4vw,54px);
  }
  .hero-copy h1 {
    max-width: 100%;
    font-size: var(--type-h1);
    line-height: var(--line-h1);
    letter-spacing: var(--tracking-h1);
    padding: .04em .14em .18em 0;
    margin-bottom: 26px;
    overflow: visible;
    text-wrap: initial;
  }
}
@media (min-width:821px) and (max-width:1180px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(20px,3vw,36px);
  }
  .hero-copy h1 {
    font-size: var(--type-h1);
    line-height: var(--line-h1);
    letter-spacing: var(--tracking-h1);
    padding: .04em .12em .18em 0;
    overflow: visible;
    text-wrap: initial;
  }
}
/* Keep the approved two-line homepage headline from wrapping into extra lines. */
.hero-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width:820px) {
  .hero-copy h1 {
    font-size: var(--type-h1);
    line-height: var(--line-h1);
    letter-spacing: var(--tracking-h1);
    padding: 0 .12em .18em 0;
    overflow: visible;
    text-wrap: initial;
  }
  .hero-title-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }
}
.desktop-nav a[aria-current],
.mobile-nav nav a[aria-current] {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.desktop-nav a[aria-current]::after,
.mobile-nav nav a[aria-current]::after {
  background: var(--gold-gradient);
}
.home-contact-intro h2 .gold-gradient {
  background: var(--gold-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}
.about-signature {
  font-size: var(--type-statement);
  line-height: var(--line-statement);
  letter-spacing: var(--tracking-statement);
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
@media (max-width:760px) {
  .about-signature {
    width: auto;
    max-width: 100%;
    white-space: normal;
  }
}
.home-contact-intro h2 {
  line-height: var(--line-h2);
  padding: .08em .18em .28em 0;
  overflow: visible;
}
/* Extra descender room keeps the final Polish y fully visible. */
.home-contact-intro h2 .gold-gradient {
  display: inline-block;
  line-height: var(--line-h2);
  padding-bottom: .2em;
  margin-bottom: -.2em;
  vertical-align: baseline;
  overflow: visible;
}
.service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
  grid-template-columns: 44px 64px minmax(0,1fr) 52px;
}
.service-arrow {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  overflow: visible;
  justify-self: center;
  filter: brightness(0) saturate(100%) invert(61%) sepia(19%) saturate(768%) hue-rotate(6deg) brightness(91%) contrast(89%);
}
.contact-item {
  grid-template-columns: 48px minmax(0,1fr) 52px;
}
.contact-arrow {
  display: block;
  width: 48px;
  height: 48px;
  max-width: none;
  object-fit: contain;
  overflow: visible;
  justify-self: center;
  filter: brightness(0) saturate(100%) invert(61%) sepia(19%) saturate(768%) hue-rotate(6deg) brightness(91%) contrast(89%);
  opacity: 1;
}
.back-to-top {
  overflow: visible;
}
.back-to-top img {
  overflow: visible;
}
@media (max-width:1000px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    grid-template-columns: 44px 62px minmax(0,1fr) 48px;
  }
  .contact-item {
    grid-template-columns: 46px minmax(0,1fr) 48px;
  }
}
@media (max-width:760px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    grid-template-columns: 40px 58px minmax(0,1fr) 44px;
  }
  .service-arrow,
.contact-arrow {
    width: 42px;
    height: 42px;
  }
  .contact-item {
    grid-template-columns: 42px minmax(0,1fr) 44px;
  }
}
@media (max-width:440px) {
  .service-card,
.service-card:nth-child(odd),
.service-card:nth-child(even) {
    grid-template-columns: 34px 54px minmax(0,1fr) 42px;
  }
  .service-arrow,
.contact-arrow {
    width: 40px;
    height: 40px;
  }
  .contact-item {
    grid-template-columns: 40px minmax(0,1fr) 42px;
  }
}
@media (min-width: 1024px) {
  .hero-lead,
.hero-proof {
    font-size: var(--type-lead);
    line-height: var(--line-lead);
  }

  .body-copy {
    font-size: var(--type-body);
    line-height: var(--line-body);
  }
  .body-copy p {
    font-size: var(--type-body);
    line-height: var(--line-body);
  }


  .service-copy small {
    font-size: var(--type-small);
    line-height: var(--line-small);
  }


  .locations {
    font-size: var(--type-meta);
  }
}
@media (min-width: 1280px) {
  .about-grid {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: clamp(34px, 4vw, 58px);
  }
  .about-signature {
    font-size: var(--type-statement);
    line-height: var(--line-statement);
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .about-signature {
    font-size: var(--type-statement);
  }
}

@media (min-width: 821px) {
  .about-copy p {
    font-size: var(--type-body);
    line-height: var(--line-body);
    margin-bottom: 19px;
  }
}
.contact-icon img,
.contact-arrow {
  filter: brightness(0) invert(1) !important;
  opacity: 1;
}
.back-to-top {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 0;
  background: #080808;
  box-shadow: 0 8px 26px #0003;
}
.back-to-top img {
  display: block;
  width: 28px;
  height: 28px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.back-to-top:hover {
  background: #202020;
  border-color: rgba(255, 255, 255, .9);
}
@media (max-width: 760px) {
  .back-to-top {
    width: 56px;
    height: 56px;
  }
  .back-to-top img {
    width: 26px;
    height: 26px;
  }
}
@media (min-width: 821px) {
  .about-preview .container.about-grid {
    width: min(100% - var(--gutter) * 2, 1600px);
    grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
    gap: clamp(34px, 3.3vw, 54px);
    align-items: stretch;
  }
  .about-visual {
    display: block;
    height: 100%;
    min-height: 0;
  }
  .about-portrait {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.08 / 1;
    margin: 0;
    overflow: hidden;
  }
  .about-portrait picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .about-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 78% center;
  }
  .about-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 100%;
    height: 100%;
    padding-top: 0;
    font-size: var(--type-body);
    line-height: var(--line-body);
  }
  .about-copy h2 {
    margin: 0 0 10px;
    font-size: var(--type-h2);
    line-height: var(--line-h2);
    letter-spacing: var(--tracking-h2);
  }
  .about-copy > p:not(.about-signature) {
    margin: 0;
    font-size: var(--type-body);
    line-height: var(--line-body);
    color: var(--text-secondary);
  }
  .about-signature {
    margin: 14px 0 0 !important;
    color: #151515 !important;
  }
  .about-button {
    align-self: flex-start;
    margin: 14px 0 0;
  }
}
@media (min-width: 821px) and (max-width: 1279px) {
  .about-preview .container.about-grid {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(26px, 3vw, 38px);
  }
  .about-copy {
    font-size: var(--type-body);
    line-height: var(--line-body);
  }
  .about-copy h2 {
    font-size: var(--type-h2);
  }
}
@media (min-width: 821px) {
  .about-signature {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    font-size: var(--type-statement);
    line-height: var(--line-statement);
    letter-spacing: var(--tracking-statement);
    margin-top: 12px !important;
  }
  .about-button {
    min-height: 68px;
    padding-inline: 38px;
    font-size: var(--type-button);
    margin-top: 18px;
  }
}
@media (min-width: 821px) and (max-width: 1279px) {
  .about-signature {
    font-size: var(--type-statement);
  }
  .about-button {
    min-height: 64px;
    padding-inline: 32px;
    font-size: var(--type-button);
  }
}
@media (max-width: 760px) {
  .about-signature {
    font-size: var(--type-statement);
    line-height: var(--line-statement);
  }
  .about-button {
    min-height: 62px;
    padding-inline: 30px;
    font-size: var(--type-button);
  }
}
@media (min-width: 821px) {
  /* Keep this line independent from the general About paragraph size. */
  .about-copy p.about-signature {
    font-size: var(--type-statement);
  }
}
@media (min-width: 821px) and (max-width: 1279px) {
  .about-copy p.about-signature {
    font-size: var(--type-statement);
  }
}
@media (max-width: 760px) {
  .about-copy p.about-signature {
    font-size: var(--type-statement);
  }
}

/* Purposeful, low-cost motion: page entrance and direct interaction feedback. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes so-hero-enter {
    from { opacity: 0.01; transform: translate3d(0, 24px, 0) scale(.985); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  @keyframes so-hero-image-enter {
    from { opacity: 0.01; transform: translate3d(32px, 18px, 0) scale(.95); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  }

  .hero-copy h1 {
    animation: so-hero-enter var(--motion-hero) var(--motion-ease-enter) both;
  }

  .hero-copy .hero-lead,
  .hero-copy .hero-proof,
  .hero-copy .locations,
  .hero-copy .button {
    animation: so-hero-enter var(--motion-hero) var(--motion-ease-enter) both;
  }

  .hero-copy .hero-lead { animation-delay: 100ms; }
  .hero-copy .hero-proof { animation-delay: 150ms; }
  .hero-copy .locations { animation-delay: 190ms; }
  .hero-copy .button { animation-delay: 230ms; }

  .portrait-slot {
    animation: so-hero-image-enter 900ms var(--motion-ease-enter) 100ms both;
  }
}

@media (hover: hover) and (pointer: fine) {
  .button-dark:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
  }

  .button:hover,
  .service-card:hover,
  .back-to-top:hover {
    transform: translateY(-3px);
    transition-duration: var(--motion-hover-in);
  }

  .service-card:hover {
    background: #fff;
    border-color: #b79a62;
  }

  .service-card:hover .service-icon-wrap {
    background: #181818;
    border-color: #b79a62;
  }

  .service-card:hover .service-arrow {
    transform: translateX(5px);
  }

  .back-to-top:hover {
    background: #202020;
  }

  .footer-nav a:hover {
    color: #e7d49f;
    transform: translateX(4px);
  }

  .contact-item:hover {
    transform: translateX(6px);
    color: #e4d29d;
  }

  .contact-item:hover .contact-arrow {
    transform: translateX(5px);
  }

  .desktop-nav a:hover {
    transform: translateY(-1px);
  }
}

.button:active {
  transform: translateY(0) scale(.975);
  transition-duration: var(--motion-press);
}

.service-card:active {
  transform: translateY(0) scale(.99);
  transition-duration: var(--motion-press);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy h1,
  .hero-copy .hero-lead,
  .hero-copy .hero-proof,
  .hero-copy .locations,
  .hero-copy .button,
  .portrait-slot {
    animation: none !important;
  }

  .button,
  .service-card,
  .back-to-top,
  .footer-nav a {
    transition-duration: 0.01ms !important;
  }
}

/* Keep the enlarged desktop hero headline within its half of the composition. */
@media (min-width: 1280px) {
  .hero-copy h1 {
    max-width: 700px;
    font-size: 76px;
  }
}

/* Desktop refinements requested for the 12 November layout review. */
@media (min-width: 1440px) {
  :root {
    /* Double the current horizontal page gutter across every desktop container. */
    --gutter: clamp(96px, 12vw, 256px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  }

  .hero-copy h1 {
    max-width: 820px;
    font-size: var(--type-home-title);
    line-height: var(--line-home-title);
    padding: .04em .14em .24em 0;
  }

  .hero-lead,
  .hero-proof {
    font-size: var(--type-hero-copy);
    line-height: var(--line-hero-copy);
    max-width: 640px;
  }

  .hero-lead {
    margin-bottom: 8px;
  }

  .hero-proof {
    margin-top: 0;
    margin-bottom: 14px;
  }

  .portrait-slot picture img {
    width: 112%;
    max-width: 1100px;
    transform: translate(0, 8px) scale(1.12);
    transform-origin: right bottom;
    object-fit: contain;
  }

  .hero-copy .locations {
    font-size: var(--type-location);
    line-height: var(--line-location);
  }

  .hero-copy .button {
    min-height: 70px;
    padding-inline: 44px;
    font-size: var(--type-button);
  }

  .services-heading .section-aside {
    max-width: 560px;
    font-size: var(--type-section-aside);
    line-height: var(--line-section-aside);
    white-space: pre-line;
  }

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    grid-template-columns: 48px 64px minmax(0, 1fr) 40px;
    column-gap: 20px;
    min-height: 148px;
    padding: 20px 22px;
  }

  .service-copy {
    gap: 9px;
  }

  .service-arrow {
    width: 40px;
    height: 40px;
  }

  .about-preview .container.about-grid {
    width: min(100% - var(--gutter) * 2, var(--content));
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(40px, 3.4vw, 64px);
    align-items: stretch;
  }

  .about-copy {
    width: 100%;
    max-width: none;
    margin-right: 0;
    font-size: var(--type-about-copy);
    line-height: var(--line-about-copy);
  }

  .about-copy > p:not(.about-signature) {
    font-size: var(--type-about-copy);
    line-height: var(--line-about-copy);
  }

  .about-signature,
  .about-copy p.about-signature {
    font-size: var(--type-about-statement);
    line-height: var(--line-about-statement);
  }

  .about-button {
    min-height: 68px;
    padding-inline: 38px;
    font-size: var(--type-button);
  }

  .home-contact-intro > p:last-child {
    font-size: var(--type-contact-copy);
    line-height: var(--line-contact-copy);
  }

  .contact-item {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 16px;
    min-height: 88px;
    padding: 14px 0;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .contact-icon img {
    width: 24px;
    height: 24px;
  }

  .contact-item small {
    font-size: var(--type-contact-label);
    line-height: var(--line-contact-label);
  }

  .contact-item strong {
    font-size: var(--type-contact-value);
    line-height: var(--line-contact-value);
  }

  .contact-arrow {
    width: 40px;
    height: 40px;
  }

  /* Keep the tagline on one line and aligned with the visible watermark artwork. */
  .footer-brand-block p {
    width: 95.33%;
    margin: -3px 0 0 3.89%;
    font-size: var(--type-tagline);
    line-height: var(--line-tagline);
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

/* Desktop refinements requested for the homepage services and about sections. */
@media (min-width: 1440px) {
  .services {
    padding-top: clamp(72px, 6.7vw, 100px);
  }

  .service-card,
  .service-card:nth-child(odd),
  .service-card:nth-child(even) {
    min-height: 136px;
    padding: 16px 16px;
    gap: 14px;
  }

  /* Let the portrait fill the same grid-row height as the complete text column. */
  .about-preview .container.about-grid {
    align-items: stretch;
  }

  .about-visual {
    height: 100%;
    min-height: 0;
  }

  .about-portrait {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .about-portrait picture,
  .about-portrait img {
    height: 100%;
    min-height: 0;
  }

  .about-portrait img {
    object-fit: cover;
  }

  .about-copy p.about-signature {
    font-size: var(--type-about-statement);
    line-height: var(--line-about-statement);
  }

  .about-button {
    min-height: 60px;
    padding-inline: 30px;
    font-size: var(--type-about-button);
  }
}

/* Keep all About section copy black while preserving the white button label. */
.about-copy,
.about-copy h2,
.about-copy p {
  color: var(--ink);
}

.about-copy .about-button {
  color: var(--text-inverse);
}

/* About page refinements — compact values, illustrated timeline and continuous gallery. */

/* The values section is deliberately compact and fits a typical desktop viewport. */

/* Global footer: keep the tagline aligned with the visible watermark, and right-align the remaining elements. */
.site-footer .footer-brand-block p{box-sizing:border-box;width:95.8%;margin:0 0 0 4.2%;padding:0;font-size:calc(var(--type-tagline) + 3px);line-height:1.25;letter-spacing:var(--tracking-ui);white-space:nowrap;text-align:left;text-align-last:auto}
.site-footer .footer-nav{justify-items:end}
.site-footer .footer-nav a{justify-content:flex-end;width:100%;text-align:right}
.site-footer .footer-bottom{justify-content:flex-end;text-align:right;font-size:12.5px;line-height:1.45}

@media(max-width:760px){



















 .site-footer .footer-brand-block p{width:95.8%;margin-left:4.2%;font-size:calc(var(--type-tagline) + .8px);white-space:normal;line-height:1.3}
 .site-footer .footer-nav a{justify-content:flex-start;text-align:left}
 .site-footer .footer-bottom{justify-content:flex-start;text-align:left}
}

/* About page layout corrections — restore readable proportions and place section copy under titles. */

/* Gallery: automatic movement plus visible manual navigation, touch and mouse drag. */

/* Footer bottom line: copyright on the left, location on the right. */
.site-footer .footer-brand-block p{font-size:calc(var(--type-tagline) + 2px)}
.site-footer .footer-bottom{justify-content:space-between;align-items:center;text-align:left}
.site-footer .footer-bottom>:first-child{margin-right:auto;text-align:left}
.site-footer .footer-bottom>:last-child{margin-left:auto;text-align:right}

@media(max-width:760px){












 .site-footer .footer-brand-block p{font-size:calc(var(--type-tagline) + .3px)}
 .site-footer .footer-bottom{align-items:stretch;justify-content:space-between;text-align:left}
 .site-footer .footer-bottom>:first-child{align-self:flex-start;margin-right:0;text-align:left}
 .site-footer .footer-bottom>:last-child{align-self:flex-end;margin-left:0;text-align:right}
}

/* Gallery arrows stay anchored to the frame and do not move with the scrollable images. */

/* Continuous gallery movement: linear right-to-left loop, paused only while hovered/focused. */

/* Photos share one corner radius */
.about-portrait, .about-portrait img { border-radius: 12px; }

/* Sub-pages. All rules are namespaced .sp-* and own their elements.
   Everything sits inside .container, so sub-pages keep the home page margins. No decorative rules or underlines. */
.sp-icon { width: 36px; height: 36px; flex: none; color: var(--gold-dark); }
.sp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button-line { border: 1px solid #080808; background: #fff; color: var(--text-primary); }

.sp-hero { padding-block: clamp(32px,4vw,64px) clamp(56px,6vw,104px); }

.sp-hero-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); align-items: center; gap: clamp(32px,4vw,64px); }
.sp-hero-copy h1 { margin: 0 0 24px; }
.sp-hero-copy p { max-width: 44ch; margin: 0; color: var(--text-secondary); font-size: var(--type-lead); line-height: var(--line-lead); }
.sp-hero-media { display: flex; justify-content: flex-end; margin: 0; }
.sp-hero-media img { width: min(100%,calc(min(76svh,760px)*var(--r))); height: auto; border-radius: 12px; }
.sp-hero--cut .sp-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); }
/* cut-out with its own soft shadow: never cropped, and the faint shadow at the file edges fades out instead of ending in a line (the bottom edge is the cropped figure, so it stays) */
.sp-hero--cut .sp-hero-media img { width: min(100%, calc((100vh - var(--header-height) - 128px) * var(--r))); width: min(100%, calc((100svh - var(--header-height) - 128px) * var(--r))); border-radius: 0; }

.sp-band { padding-block: clamp(64px,7vw,120px); }
.sp-band--tight { padding-block: clamp(24px,3vw,48px); }
.sp-band--soft { background: var(--soft); }
.sp-band--dark { background: #080808; color: var(--text-inverse); }
.sp-head { margin-bottom: clamp(28px,3vw,48px); }
.sp-head h2 { margin: 0; }
.sp-head p { max-width: 62ch; margin: 16px 0 0; color: var(--text-secondary); }
.sp-band--dark .sp-head p { color: var(--text-inverse-secondary); }
.sp-head a { text-decoration: underline; text-underline-offset: 5px; }
.sp-prose p { max-width: 62ch; margin: 0 0 1em; color: var(--text-secondary); }
.sp-prose p:last-child { margin-bottom: 0; }

.sp-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; gap: clamp(32px,6vw,104px); }
.sp-intro h2 { margin: 0; font-size: var(--type-h3); line-height: var(--line-h3); letter-spacing: var(--tracking-h3); }
.sp-stat { display: flex; align-items: center; gap: 20px; margin: 32px 0 0; padding: 24px 28px; border-radius: 12px; background: #fff; }
.sp-stat strong { display: block; font-size: var(--type-number); line-height: var(--line-number); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.sp-chips li { padding: 6px 16px; border-radius: 999px; background: #fff; font-size: var(--type-small); }
.sp-band:not(.sp-band--soft) .sp-chips li { background: var(--soft); }

.sp-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(32px,6vw,104px); }
.sp-split h2 { margin-bottom: 24px; }
.sp-split>.sp-head { margin: 0; }
.sp-split--reverse>.sp-media { order: 2; }
.sp-media { margin: 0; }
.sp-media img { display: block; width: min(100%,calc(min(78svh,720px)*var(--r))); height: auto; margin-inline: auto; border-radius: 12px; }

.sp-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-cards--3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.sp-cards--5 { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.sp-card { box-sizing: border-box; padding: 28px; border-radius: 12px; background: var(--soft); }
.sp-band--soft .sp-card { background: #fff; }
.sp-card h3 { margin: 24px 0 10px; font-size: var(--type-h5); line-height: var(--line-h5); }
.sp-card p { margin: 0; color: var(--text-secondary); font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }

.sp-steps { display: grid; grid-template-columns: repeat(var(--n),minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sp-step { padding: 32px 24px; border-radius: 12px; background: var(--soft); text-align: center; }
.sp-band--dark .sp-step { background: #171717; }
.sp-band--dark .sp-icon { color: var(--gold); }
.sp-step-top { display: flex; align-items: center; justify-content: center; }
.sp-step .sp-icon { width: 48px; height: 48px; }
.sp-step h3 { margin: 22px 0 12px; font-size: var(--type-h5); line-height: var(--line-h5); }
.sp-step p { margin: 0; color: var(--text-secondary); font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }
.sp-band--dark .sp-step p { color: var(--text-inverse-secondary); }

.sp-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-tile { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; border-radius: 12px; background: #111; color: var(--text-inverse); }
.sp-tile>img:first-child { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.sp-tile::after { position: absolute; inset: 45% 0 0; background: linear-gradient(transparent,#000000eb 80%); content: ""; }
.sp-tile-copy { position: absolute; right: 64px; bottom: 24px; left: 24px; z-index: 1; display: grid; gap: 8px; }
.sp-tile-copy strong { font-size: var(--type-h4); line-height: var(--line-h4); }
.sp-tile-copy small { color: var(--text-inverse-muted); }
.sp-tile>img:last-child { filter: brightness(0) invert(1); }
.sp-event img, .sp-more-link img { filter: brightness(0) saturate(100%) invert(61%) sepia(19%) saturate(768%) hue-rotate(6deg) brightness(91%) contrast(89%); }
.sp-tile>img:last-child { position: absolute; right: 24px; bottom: 30px; z-index: 1; }

.sp-show { padding-block: clamp(32px,4vw,64px) clamp(56px,6vw,104px); }
.sp-show-copy { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); align-items: center; gap: clamp(24px,5vw,88px); margin-bottom: clamp(28px,3vw,48px); }
.sp-show-copy h1 { margin: 0; }
.sp-show-copy p { max-width: 60ch; margin: 0; color: var(--text-secondary); font-size: var(--type-lead); line-height: var(--line-lead); }

.sp-carousel { position: relative; }
.sp-track { display: flex; gap: 12px; margin: 0; padding: 0; overflow-x: auto; list-style: none; border-radius: 12px; scrollbar-width: none; }
.sp-track::-webkit-scrollbar { display: none; }
.sp-track li { flex: none; height: clamp(260px,48svh,500px); }
.sp-track img { width: auto; max-width: none; height: 100%; border-radius: 12px; }
.sp-carousel--marks .sp-track li { height: clamp(200px,32svh,320px); }
.sp-ctrl { position: absolute; z-index: 2; display: grid; place-items: center; box-sizing: border-box; width: 52px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 50%; background: #000000c7; color: #fff; cursor: pointer; }
.sp-ctrl img { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.sp-ctrl--prev { top: 50%; left: 12px; margin-top: -26px; }
.sp-ctrl--prev img { transform: rotate(180deg); }
.sp-ctrl--next { top: 50%; right: 12px; margin-top: -26px; }
.sp-ctrl:hover, .sp-ctrl:focus-visible { border-color: #fff; outline: 0; }
.sp-carousel:not(.is-ready) .sp-ctrl { display: none; }

.sp-projects { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-project { grid-column: span 2; display: flex; flex-direction: column; padding: 16px 16px 28px; border-radius: 12px; background: #fff; }
.sp-project:nth-child(-n+2) { grid-column: span 3; }
.sp-project figure { aspect-ratio: 16/10; margin: 0; overflow: hidden; border-radius: 12px; background: var(--soft); }
.sp-project figure img { width: 100%; height: 100%; object-fit: cover; }
.sp-project figure.sp-fit { background: #fff; }
.sp-project figure.sp-fit img { object-fit: contain; }
.sp-project h3 { margin: 22px 8px 10px; font-size: var(--type-h4); line-height: var(--line-h4); }
.sp-project>p { margin: 0 8px; color: var(--text-secondary); font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }
.sp-project .sp-chips { margin: auto 8px 0; padding-top: 20px; }
.sp-project .sp-chips li { background: var(--soft); }

.sp-gallery { columns: 3; column-gap: 12px; }
.sp-shot { display: block; margin-bottom: 12px; overflow: hidden; break-inside: avoid; border-radius: 12px; background: #e6e6e2; }
.sp-shot img { width: 100%; height: auto; }

.sp-reels { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,328px),1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
/* One dark card per film, so the embedded player reads as part of the site. */
.sp-reels>li { display: flex; flex-direction: column; justify-self: center; box-sizing: border-box; width: 100%; max-width: 420px; overflow: hidden; border: 1px solid #2b2b2b; border-radius: 20px; background: #121212; color: var(--text-inverse); }
.sp-reels>li:hover, .sp-reels>li:focus-within { border-color: var(--gold); }
.sp-player { position: relative; overflow: hidden; background: #000; }
.sp-player--ig { aspect-ratio: 4/5; }
/* The mark shows while the film loads. A refused embed covers it with the browser's own error page. */
.sp-player--ig::before { content: ""; position: absolute; inset: 0; width: 48px; height: 48px; margin: auto; background: #ffffff4d; mask: url(assets/icons/thesvg-ui/instagram-brand.svg) center/contain no-repeat; }
/* shortcut: header and footer of the embed are cropped by fixed pixels, recheck if Instagram changes its embed layout */
/* embed.js sets its own inline size, margin and shadow on the iframe, so !important is needed here */
.sp-player--ig iframe { position: absolute !important; top: -57px !important; left: -3px !important; width: calc(100% + 6px) !important; min-width: 0 !important; max-width: none !important; height: calc(100% + 223px) !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
/* the plain link inside the blockquote is only a fallback for no-script, embed.js removes or hides it */
.sp-player--ig blockquote { position: absolute; inset: 0; margin: 0; visibility: hidden; }
.sp-player--video { aspect-ratio: 9/16; }
.sp-player video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.sp-play { position: absolute; right: 16px; bottom: 16px; display: grid; place-items: center; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.sp-play .sp-icon { width: 24px; height: 24px; color: #080808; }
.sp-play .sp-icon:last-child, .sp-player.is-playing .sp-play .sp-icon:first-child { display: none; }
.sp-player.is-playing .sp-play .sp-icon:last-child { display: block; }
.sp-reel-link { display: flex; flex: 1; align-items: center; gap: 14px; min-height: 80px; padding: 14px 18px 14px 14px; }
.sp-reel-mark { display: grid; flex: none; box-sizing: border-box; width: 48px; height: 48px; padding: 2px; border-radius: 50%; background: var(--gold-gradient); }
.sp-reel-mark img { box-sizing: border-box; width: 100%; height: 100%; padding: 5px; border-radius: 50%; background: #080808; object-fit: contain; }
.sp-reel-text { display: grid; flex: 1; gap: 2px; min-width: 0; line-height: 1.3; }
.sp-reel-text strong { font-size: var(--type-ui); }
.sp-reel-text small { color: var(--text-inverse-secondary); font-size: var(--type-meta); }
.sp-reel-link>img { flex: none; filter: brightness(0) invert(1); }
.sp-reel-link:hover small, .sp-reel-link:focus-visible small { color: var(--gold); }
.sp-reel-link:focus-visible { outline-offset: -4px; }

.sp-events { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-event { position: relative; display: grid; align-content: start; gap: 8px; box-sizing: border-box; height: 100%; min-height: 210px; padding: 28px 72px 28px 28px; border-radius: 12px; background: #171717; }
.sp-event .sp-year { color: var(--gold); }
.sp-event strong { font-size: var(--type-h4); line-height: var(--line-h4); }
.sp-event small { color: var(--text-inverse-secondary); }
.sp-event img { position: absolute; right: 28px; bottom: 34px; }
.sp-year { margin: 0 0 12px; color: var(--gold-dark); font-size: var(--type-number); font-weight: var(--weight-bold); line-height: var(--line-number); }

.sp-faq { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); align-items: start; gap: clamp(32px,6vw,104px); }
.sp-faq h2 { margin: 0; }
.sp-qa { display: grid; gap: 10px; }
.sp-qa-item { border-radius: 12px; background: var(--soft); }
.sp-band--soft .sp-qa-item { background: #fff; }
.sp-qa label { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 52px; padding: 20px 24px; border-radius: 12px; font-size: var(--type-body-emphasis); font-weight: var(--weight-bold); line-height: var(--line-body-emphasis); cursor: pointer; }
.sp-qa label img { flex: none; }
.sp-qa-a { display: none; box-sizing: border-box; min-height: var(--qa-h,0); padding: 0 24px 24px; }
.sp-qa input:checked~.sp-qa-a { display: block; }
.sp-qa-item:has(input:checked) { background: #080808; color: var(--text-inverse); }
.sp-qa input:checked~label img { transform: rotate(90deg); filter: brightness(0) invert(1); }
.sp-qa input:checked~.sp-qa-a .sp-prose p { color: var(--text-inverse-secondary); }
.sp-qa input:focus-visible~label { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.sp-faq a { text-decoration: underline; text-underline-offset: 5px; }

.sp-gain { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: start; gap: clamp(32px,6vw,104px); }
.sp-gain-lead h2 { margin: 0 0 20px; }
.sp-gain-lead p { max-width: 34ch; margin: 0; color: var(--text-secondary); font-size: var(--type-lead); line-height: var(--line-lead); }
.sp-gain-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sp-gain-list li { display: flex; align-items: flex-start; gap: 24px; padding: 28px; border-radius: 12px; background: var(--soft); }
.sp-gain-list .sp-icon { width: 44px; height: 44px; }
.sp-gain-list h3 { margin: 0 0 8px; font-size: var(--type-h4); line-height: var(--line-h4); }
.sp-gain-list p { margin: 0; color: var(--text-secondary); font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }

.sp-timeline { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.sp-timeline li { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: center; gap: clamp(24px,5vw,80px); padding: clamp(16px,2vw,28px); border-radius: 16px; background: var(--soft); }
.sp-timeline li:nth-child(even)>:first-child { order: 2; }
.sp-timeline h3 { margin-bottom: 14px; }

.sp-contacts { grid-template-columns: repeat(6,minmax(0,1fr)); }
.sp-contacts>li { grid-column: span 2; }
.sp-contacts>li:nth-child(-n+2) { grid-column: span 3; }
.sp-contact-card { display: flex; align-items: center; gap: 20px; height: 100%; }
.sp-badge { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #080808; }
.sp-badge img { filter: brightness(0) invert(1); }
.sp-contact-card>span:last-child { display: grid; gap: 4px; min-width: 0; }
.sp-contact-card small { color: var(--text-muted); }
.sp-contact-card strong { overflow-wrap: anywhere; font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }
.sp-topic { display: flex; flex-direction: column; height: 100%; }
.sp-more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; font-size: var(--type-ui); font-weight: var(--weight-bold); }

/* Contact panel closing a sub-page: same layout as on the home page, rows as tiles instead of ruled lines. */
.sp-cta .home-contact-list { display: grid; gap: 10px; border: 0; }
.sp-cta .contact-item { padding-inline: 20px; border: 0; border-radius: 12px; background: #171717; }

.sp-locked { padding-block: clamp(64px,8vw,128px); }
.sp-locked p { max-width: 62ch; color: var(--text-secondary); }
.sp-lost { min-height: 52svh; }
.sp-lost p { max-width: 52ch; margin-bottom: 32px; color: var(--text-secondary); }

/* Gallery pages: menu and embedded shop only; the page itself never scrolls. */
.sp-fill { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.sp-fill .site-header { flex: none; }
.sp-fill main { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: auto; }
.sp-gallery-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; }

.sp-lightbox { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; padding: 0; border: 0; background: transparent; }
.sp-lightbox::backdrop { background: #000000f0; }
.sp-lightbox>img { position: absolute; inset: 0; max-width: calc(100% - 32px); max-height: calc(100% - 140px); margin: auto; }
.sp-lightbox button:hover, .sp-lightbox button:focus-visible { border-color: #fff; }
.sp-lightbox button { position: absolute; min-width: 52px; min-height: 52px; border: 1px solid #ffffff80; border-radius: 999px; background: #000000b3; color: var(--text-inverse); font: inherit; font-size: var(--type-ui); cursor: pointer; }
.sp-lightbox button img { width: 22px; height: 22px; margin: auto; filter: brightness(0) invert(1); }
.sp-lightbox [data-step="-1"] { bottom: 16px; left: 16px; transform: rotate(180deg); }
.sp-lightbox [data-step="1"] { right: 16px; bottom: 16px; }
.sp-lightbox [data-close] { top: 16px; right: 16px; padding: 0 22px; }

@media (max-width: 1280px) {
  .sp-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .sp-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sp-cards--5 { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
}
@media (max-width: 1000px) {
  .sp-contacts>li, .sp-contacts>li:nth-child(-n+2) { grid-column: span 3; }
  .sp-hero-grid, .sp-hero--cut .sp-hero-grid, .sp-show-copy, .sp-split, .sp-intro, .sp-faq, .sp-gain { grid-template-columns: minmax(0,1fr); }
  .sp-hero-media { order: -1; justify-content: center; }
  .sp-split--reverse>.sp-media { order: 0; }
  .sp-tiles, .sp-events, .sp-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .sp-project, .sp-project:nth-child(-n+2) { grid-column: span 3; }
}
@media (max-width: 760px) {
  .sp-contacts>li, .sp-contacts>li:nth-child(-n+2) { grid-column: 1/-1; }
  .sp-cards, .sp-cards--3, .sp-cards--5, .sp-steps, .sp-events, .sp-timeline li { grid-template-columns: minmax(0,1fr); }
  .sp-timeline li:nth-child(even)>:first-child { order: 0; }
  .sp-project, .sp-project:nth-child(-n+2) { grid-column: 1/-1; }
  .sp-card { padding: 22px; }
  .sp-card h3 { margin-top: 16px; }
  .sp-tiles { gap: 8px; }
  .sp-tile-copy { right: 12px; bottom: 14px; left: 14px; }
  .sp-tile-copy strong { font-size: var(--type-body-emphasis); line-height: var(--line-body-emphasis); }
  .sp-tile-copy small, .sp-tile>img:last-child { display: none; }
  .sp-gallery { columns: 2; column-gap: 6px; }
  .sp-shot { margin-bottom: 6px; border-radius: 12px; }
  .sp-ctrl--prev, .sp-ctrl--next { width: 44px; height: 44px; margin-top: -22px; }
  .sp-event { min-height: 150px; }
}

/* Motion: entrances on load, gentle lift while scrolling, feedback on hover. Content is never hidden while scrolling. */
@media (prefers-reduced-motion: no-preference) {
  .sp-hero-copy>*, .sp-show-copy>* { animation: sp-rise var(--motion-hero) var(--motion-ease-enter) both; }
  .sp-hero-copy>:nth-child(2), .sp-show-copy>:nth-child(2) { animation-delay: 90ms; }
  .sp-hero-copy>:nth-child(3) { animation-delay: 180ms; }
  .sp-hero-media img { animation: sp-reveal 1100ms var(--motion-ease-enter) both; }
  .sp-card, .sp-step, .sp-tile, .sp-event, .sp-reels>li { transition: transform 260ms var(--motion-ease), box-shadow 260ms var(--motion-ease); }
  .sp-card .sp-icon, .sp-step .sp-icon { transition: transform 300ms cubic-bezier(.34,1.56,.64,1); }
  .sp-tile>img:first-child, .sp-shot img, .sp-project figure img { transition: transform 600ms var(--motion-ease); }
  @supports (animation-timeline: view()) {
    .sp-cards>li, .sp-steps>li, .sp-tiles>li, .sp-projects>li, .sp-events>li, .sp-timeline>li, .sp-reels>li { animation: sp-lift linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    .sp-media img { animation: sp-drift linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .sp-card .sp-icon, .sp-step .sp-icon { animation: sp-pop linear both; animation-timeline: view(); animation-range: entry 20% cover 30%; }
  }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  a.sp-card:hover, li.sp-card:hover, .sp-step:hover, .sp-tile:hover, .sp-event:hover, .sp-reels>li:hover { box-shadow: 0 18px 40px #00000026; transform: translateY(-6px); }
  .sp-card:hover .sp-icon, .sp-step:hover .sp-icon { transform: rotate(-8deg) scale(1.15); }
  .sp-tile:hover>img:first-child, .sp-shot:hover img, .sp-project:hover figure img { transform: scale(1.05); }
}
@keyframes sp-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sp-reveal { from { clip-path: inset(0 0 100% 0 round 12px); transform: scale(1.04); } to { clip-path: inset(0 round 12px); transform: none; } }
@keyframes sp-lift { from { translate: 0 56px; scale: .96; } to { translate: 0 0; scale: 1; } }
@keyframes sp-drift { from { scale: .92; } to { scale: 1; } }
@keyframes sp-pop { from { scale: .4; rotate: -25deg; } to { scale: 1; rotate: 0deg; } }

/* On a desktop screen the first section fills the view under the header, its content centred */
@media (min-width: 901px) {
  .sp-hero, .sp-lost { display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); }
}
/* Section of photo tiles: exactly one window tall, tiles share the remaining height and carry larger text */
@media (min-width: 1001px) {
  .sp-fullview { --pad: clamp(32px,4vw,56px); display: flex; flex-direction: column; box-sizing: border-box; min-height: calc(100vh - var(--header-height)); min-height: calc(100svh - var(--header-height)); padding-block: var(--pad); }
  .sp-fullview>.container { display: flex; flex: 1; flex-direction: column; }
  .sp-fullview .sp-head { margin-bottom: 24px; }
  .sp-fullview .sp-tiles { flex: 1; grid-template-rows: repeat(2,minmax(170px,1fr)); }
  .sp-fullview .sp-tiles>li { min-height: 0; }
  .sp-fullview .sp-tile { aspect-ratio: auto; height: 100%; }
  .sp-fullview .sp-tile>img:first-child { position: absolute; inset: 0; }
  .sp-fullview .sp-tile::after { inset: 30% 0 0; }
  .sp-fullview .sp-tile-copy strong { font-size: var(--type-h4); line-height: var(--line-h4); }
  .sp-fullview .sp-tile-copy small { font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }
}

/* Site-wide switch in the header that stops every animation (also remembered by site.js) */
.motion-toggle { display: grid; flex: none; place-items: center; box-sizing: border-box; width: 44px; height: 44px; padding: 0; border: 1px solid #fff7; border-radius: 50%; background: transparent; cursor: pointer; }
.motion-toggle img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.motion-toggle:hover, .motion-toggle:focus-visible { border-color: #fff; }
.motion-toggle[aria-pressed=true] { background: #ffffff2e; border-color: #fff; }
/* where the page gutter is wide, the switch sits in the right margin so the menu keeps its width */
@media (min-width: 1440px) {
  .header-inner { position: relative; }
  .motion-toggle { position: absolute; top: 50%; right: calc(var(--gutter) / 2 - 22px); margin-top: -22px; }
}
@media (max-width: 1180px) {
  .motion-toggle { margin-left: auto; }
  .motion-toggle + .mobile-nav { margin-left: 0; }
}
/* narrow phones: logo, switch and menu button must fit one row */
@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .brand img { width: clamp(118px, 36vw, 170px); }
  .motion-toggle { width: 40px; height: 40px; }
  .mobile-nav summary { min-width: 0; gap: 8px; padding: 8px 10px; }
}
html[data-motion=off] *, html[data-motion=off] *::before, html[data-motion=off] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

/* About and contact: the person fills the frame, name in gold, photo credit */
.sp-gold { color: transparent; background: var(--gold-on-light-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sp-hero--tight .sp-hero-media img { width: min(100%, calc((100vh - var(--header-height) - 96px) * var(--r))); width: min(100%, calc((100svh - var(--header-height) - 96px) * var(--r))); }
.sp-media figcaption { margin-top: 8px; color: var(--text-muted); font-size: var(--type-caption); text-align: center; }
.sp-track>li { transform: translate3d(calc(var(--auto, 0) * -1px), 0, 0); will-change: transform; }

/* Values: the lead stays on one line where there is room for it */
#wartosci .sp-head p { max-width: none; text-wrap: balance; }

/* Closing contact panel: arrow turns gold together with the row; no empty paragraph */
.sp-cta .home-contact-intro p:empty { display: none; }
.sp-cta .contact-item:hover .contact-arrow, .sp-cta .contact-item:focus-visible .contact-arrow { filter: brightness(0) saturate(100%) invert(72%) sepia(23%) saturate(747%) hue-rotate(6deg) brightness(93%) contrast(87%) !important; }

/* Desktop first section: exactly one window tall, the same side margins as the rest of the site, photo sized like on the contact page */
@media (min-width: 1001px) {
  .sp-hero { padding-block: 48px; }
  .sp-hero:not(.sp-hero--tight) .sp-hero-grid { grid-template-columns: minmax(min-content,.7fr) minmax(0,1.3fr); }
  .sp-hero .sp-hero-media img { width: min(100%, calc((100vh - var(--header-height) - 96px) * var(--r))); width: min(100%, calc((100svh - var(--header-height) - 96px) * var(--r))); }
}

@media (min-width: 1001px) {
  .sp-hero--tight .sp-hero-grid:has(img[src*="kontakt-"]) { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
}

/* The photo itself follows the window height. Framed photos fill it; cut-outs sit a little above centre, never cropped or faded */
@media (min-width: 1001px) {
  .sp-hero:not(.sp-hero--tight):not(.sp-hero--cut) .sp-hero-media img { width: 100%; height: calc(100vh - var(--header-height) - 96px); height: calc(100svh - var(--header-height) - 96px); object-fit: cover; }
  .sp-hero.sp-hero--cut { padding-block: 24px 0; }
  .sp-hero.sp-hero--cut .sp-hero-grid { flex: 1; align-items: end; }
  .sp-hero.sp-hero--cut .sp-hero-copy { align-self: center; }
  .sp-hero.sp-hero--cut .sp-hero-media img { display: block; }
  .sp-hero.sp-hero--cut .sp-hero-grid { grid-template-columns: minmax(min-content,.55fr) minmax(0,1.45fr); }
  .sp-hero.sp-hero--cut .sp-hero-media img { width: min(100%, calc((100vh - var(--header-height) - 48px) * var(--r))); width: min(100%, calc((100svh - var(--header-height) - 48px) * var(--r))); }
  /* design: a bit smaller */
  .sp-hero.sp-hero--cut .sp-hero-media img[src*="laptop-i-narzedzia"] { width: min(94%, calc((100svh - var(--header-height) - 80px) * var(--r))); }
  /* social media: title on one line, graphic a bit smaller */
  .sp-hero.sp-hero--cut:has(img[src*="telefon-i-ikony"]) h1 { white-space: nowrap; }
  .sp-hero.sp-hero--cut .sp-hero-media img[src*="telefon-i-ikony"] { width: min(100%, calc((100svh - var(--header-height) - 56px) * var(--r))); }
  /* AI: a horizontal frame as wide as the column */
  .sp-hero:not(.sp-hero--tight):not(.sp-hero--cut) .sp-hero-media img[src*="robot-ai"] { width: 100%; height: auto; max-height: calc(100svh - var(--header-height) - 96px); aspect-ratio: 7/5; }
  .sp-hero:not(.sp-hero--tight):not(.sp-hero--cut) .sp-hero-media img[src*="teleobiektywem-w-hali"] { width: min(100%, calc((100svh - var(--header-height) - 96px) * 1.21)); height: auto; }
  .sp-hero:has(img[src*="robot-ai"]) h1 { white-space: nowrap; font-size: var(--type-h2); }
  /* film: right half is the black photo itself, edge to edge */
  .sp-hero:has(img[src*="montaz-filmu"]) { position: relative; padding-block: 0; }
  .sp-hero:has(img[src*="montaz-filmu"])>.container { flex: 1; width: 100%; max-width: none; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: stretch; gap: 0; }
  .sp-hero:has(img[src*="montaz-filmu"]) .sp-hero-copy { align-self: center; padding: 48px 48px 48px var(--gutter); }
  .sp-hero:has(img[src*="montaz-filmu"]) .sp-hero-media { position: relative; background: #010101; }
  .sp-hero:has(img[src*="montaz-filmu"]) .sp-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
}

/* About: horizontal photo, so its column gets more room */
@media (min-width: 1001px) {
  .sp-hero--tight .sp-hero-grid:has(img[src*="o-mnie-pociag"]) { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
}

/* Service pages: smaller name, then what the client gets. */
.sp-hero .sp-hero-copy h1:has(+.sp-promise) { margin-bottom: 16px; font-size: var(--type-h3); line-height: var(--line-h3); letter-spacing: var(--tracking-h3); white-space: normal; }
.sp-hero .sp-hero-copy p.sp-promise { max-width: 24ch; margin-bottom: 20px; color: transparent; background: var(--gold-on-light-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: var(--type-h2); font-weight: var(--weight-bold); line-height: var(--line-h2); text-wrap: balance; }
.sp-cta .home-contact-intro p { max-width: 24ch; font-size: var(--type-h5); line-height: var(--line-lead); }

/* Longer hero descriptions: one size on every service page, smaller on smaller desktops. */
.sp-hero-copy .sp-promise+p { font-size: var(--type-body); line-height: var(--line-body); }
@media (min-width: 1001px) and (max-width: 1500px), (min-width: 1001px) and (max-height: 760px) {
  .sp-hero .sp-hero-copy .sp-promise+p { font-size: var(--type-body-secondary); line-height: var(--line-body-secondary); }
  .sp-hero .sp-hero-copy .sp-actions { margin-top: 20px; }
}
/* Service heroes: text and picture share the width almost equally. */
@media (min-width: 1001px) {
  .sp-hero:has(.sp-promise):not(:has(img[src*="montaz-filmu"])) .sp-hero-grid { grid-template-columns: minmax(0,.93fr) minmax(0,1.07fr); }
  .sp-hero:has(.sp-promise):not(.sp-hero--cut):not(:has(img[src*="montaz-filmu"])):not(:has(img[src*="robot-ai"])) .sp-hero-media img { width: 100%; height: auto; aspect-ratio: 6/5; max-height: calc(100svh - var(--header-height) - 96px); object-fit: cover; }
  .sp-hero:has(.sp-promise):not(.sp-hero--cut):has(img[src*="teleobiektywem-w-hali"]) .sp-hero-media img { width: min(100%, calc((100svh - var(--header-height) - 96px) * 1.2)); aspect-ratio: 4/3; object-position: 50% 0; }
  /* Film: the laptop sits between the middle of the window and the right page margin. */
  .sp-hero:has(img[src*="montaz-filmu"]) .sp-hero-media { overflow: hidden; }
  .sp-hero:has(.sp-promise):has(img[src*="montaz-filmu"]) .sp-hero-media img { --m: max(var(--gutter), (100vw - var(--content)) / 2); --w: min(calc((50vw - 48px - var(--m)) / .565), calc((100svh - var(--header-height)) * 1.5)); inset: auto; top: calc(50% - var(--w) / 3); left: calc(50vw - var(--m) - var(--w) * .821); width: var(--w); max-width: none; height: auto; max-height: none; }
}
/* Reel picture: a link under the embed; on top of it for films Instagram will not play here. */
.sp-player-link { position: absolute; inset: 0; }
.sp-player--link .sp-player-link { z-index: 2; }
.sp-reels--one { margin: 0; justify-content: center; grid-template-columns: minmax(0,360px); }
@media (min-width: 1001px) and (max-height: 700px) {
  .sp-hero:has(.sp-promise):not(.sp-hero--cut):not(:has(img[src*="montaz-filmu"])) { padding-block: 32px; }
}
.sp-timeline .sp-reels--one li { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border-radius: 20px; background: #121212; }
/* Graphic design and social media: the cut-out grows past the right page margin up to the window edge. */
@media (min-width: 1001px) {
  .sp-hero.sp-hero--cut:has(.sp-promise) { overflow: clip; }
  .sp-hero.sp-hero--cut:has(.sp-promise) .sp-hero-media { min-width: 0; justify-content: flex-start; margin-left: calc(-1 * clamp(16px, 5vw, 112px)); }
  .sp-hero.sp-hero--cut:has(.sp-promise) .sp-hero-media img[src] { flex: none; max-width: none; margin: 0; width: min(112%, calc((100svh - var(--header-height) - 24px) * var(--r))); pointer-events: none; }
}


/* Desktop: every service hook fits two lines, one size on all pages (sized to the longest one) */
@media (min-width: 1001px) {
  .sp-hero:has(.sp-promise):not(:has(img[src*="montaz-filmu"])) .sp-hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .sp-hero:has(.sp-promise) .sp-hero-copy { container-type: inline-size; }
  .sp-hero .sp-hero-copy p.sp-promise { max-width: none; font-size: min(var(--type-h2), 6.95cqi); }
}

/* Reel Instagram will not play here: our own tile, nothing to stretch */
.sp-player--card { display: block; color: var(--text-inverse); }
.sp-player--card span { position: absolute; inset: calc(50% + 40px) 16px auto; text-align: center; font-size: var(--type-small); }

/* Footer: logo top level with the first line of links, tagline exactly as wide as the watermark */
.site-footer .footer-main>* { align-self: start; }
.site-footer .footer-brand-block { container-type: inline-size; margin-top: 0; padding-top: 0; }
.site-footer .footer-watermark { display: block; margin-top: -3.22%; }
.site-footer .footer-brand-block p { width: 95%; margin: -3px 0 0 3.9%; font-size: 5.6cqi; line-height: 1.3; white-space: nowrap; }
.site-footer .footer-nav a:hover { color: #e1d2b0; text-decoration: none; }
.site-footer .footer-bottom { justify-content: center; }
.site-footer .footer-bottom>span:last-child { margin-inline: auto; align-self: center; text-align: center; text-wrap: balance; }

.back-to-top { width: 50px; height: 50px; }
.back-to-top img { width: 24px; height: 24px; }

/* Phone and tablet menu: three large lines, a panel sliding in from the right */
@media (max-width: 1180px) {
  .mobile-nav summary { min-width: 52px; width: 52px; min-height: 52px; padding: 0; border: 0; background: transparent; }
  .mobile-nav summary span { display: none; }
  .mobile-nav summary img { width: 34px; height: 34px; }
  .mobile-nav nav { position: fixed; top: var(--header-height); right: 0; bottom: 0; box-sizing: border-box; width: min(340px, 86vw); min-width: 0; height: calc(100dvh - var(--header-height)); max-height: none; align-content: start; padding: 8px 0 24px; border-width: 0 0 0 1px; overflow: hidden auto; overscroll-behavior: contain; }
  .mobile-nav nav a { min-height: 58px; padding: 14px 24px; font-size: var(--type-lead); font-weight: var(--weight-bold); }
  .mobile-nav nav a[aria-current]::after { left: 0; right: 0; bottom: 0; width: auto; }
}
@media (max-width: 1180px) and (prefers-reduced-motion: no-preference) {
  .mobile-nav[open] nav { animation: sp-menu 280ms var(--motion-ease) both; }
}
@keyframes sp-menu { from { translate: 100% 0; } to { translate: 0 0; } }

@media (max-width: 760px) {
  .back-to-top { width: 44px; height: 44px; }
  .back-to-top img { width: 22px; height: 22px; }
  .site-footer { padding-bottom: 56px; }
  .hero-home .hero-copy { padding-top: 32px; padding-bottom: 8px; }
  .hero-home .portrait-slot { margin-top: -48px; pointer-events: none; }
}

/* On wide screens a card is small against the window, so the scroll lift runs longer to be seen */
@media (min-width: 1001px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sp-cards>li, .sp-steps>li, .sp-tiles>li, .sp-projects>li, .sp-events>li, .sp-timeline>li, .sp-reels>li { animation-range: entry 0% cover 32%; }
  }
}

/* Gold call button: last in the header, and at the bottom of the phone menu */
.header-phone, .mobile-nav nav a.menu-phone { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; border-radius: 999px; background: var(--gold-gradient); color: #080808; font-weight: var(--weight-bold); text-decoration: none; white-space: nowrap; }
.header-phone { min-height: 44px; padding: 0 20px; font-size: var(--type-nav); }
.header-phone:hover, .mobile-nav nav a.menu-phone:hover { color: #080808; filter: brightness(1.08); }
.header-phone img, .menu-phone img { width: 20px; height: 20px; filter: brightness(0); }
.mobile-nav nav a.menu-phone { min-height: 52px; margin: 24px 20px 0; padding: 0 16px; border: 0; }
@media (max-width: 1499px) {
  .header-phone { width: 44px; padding: 0; }
  .header-phone span { display: none; }
}
@media (max-width: 1180px) {
  .motion-toggle + .header-phone + .mobile-nav { margin-left: 0; }
}
/* the switch no longer sits in the right gutter: the phone button is the last thing in the header */
@media (min-width: 1440px) {
  .motion-toggle { position: static; margin: 0; }
}
/* menu, switch and phone need the room: the header takes narrower side margins on mid-size screens */
@media (min-width: 1181px) {
  .header-inner { gap: 22px; padding-inline: 60px; }
  .desktop-nav { gap: clamp(20px, 1.8vw, 34px); }
}
@media (min-width: 1181px) and (max-width: 1300px) {
  .header-inner { gap: 12px; padding-inline: 40px; }
  .brand img { width: 160px; }
  .desktop-nav { gap: 14px; }
}

/* Footer: current page marked like in the top menu */
.site-footer .footer-nav a[aria-current] { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.footer-br { display: none; }
.site-footer .footer-brand-block p { width: max-content; font-size: 5.12cqi; }

@media (max-width: 760px) {
  .footer-br { display: inline; }
  .site-footer { padding-block: 32px 8px; }
  .site-footer .footer-main { padding-block: 0 16px; gap: 20px; }
  /* the white artwork spans 3.9%-98.9% of the file, so its centre sits 1.4% right of the box centre */
  .site-footer .footer-brand-block { justify-self: center; position: relative; left: -1.4%; }
  .site-footer .footer-bottom { padding-block: 12px 0; margin-bottom: 0; }
}

/* Phone header: larger watermark, controls pushed to the right edge */
@media (max-width: 760px) {
  .header-inner { gap: 6px; padding-inline: 18px 6px; }
  .brand img { width: clamp(132px, 48vw, 220px); max-height: none; }
  .mobile-nav summary { width: 44px; min-width: 44px; }
}

/* Phone: the first section of every page is one screen, picture first */
@media (max-width: 760px) {
  .hero-home { min-height: calc(100svh - var(--header-height)); padding: 0; }
  .hero-home .hero-grid { flex: 0 0 calc(100% - 48px); width: calc(100% - 48px); margin-inline: auto; display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height)); padding-bottom: 16px; }
  .hero-home .portrait-slot { position: relative; order: -1; flex: 1 1 0; width: 100%; height: auto; min-height: 150px; margin: 0; }
  .hero-home .portrait-slot picture, .hero-home .portrait-slot picture img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-width: none; max-height: none; margin: 0; transform: none; object-fit: cover; object-position: 50% 12%; }
  .hero-home .hero-copy { flex: none; padding: 12px 0 0; }
  .hero-home .hero-copy h1 { margin-bottom: 8px; }
  .hero-home .hero-lead, .hero-home .hero-proof { margin: 0 0 8px; font-size: var(--type-small); line-height: 1.45; }
  .hero-home .locations { margin: 0 0 12px; }

  .sp-hero { display: flex; flex-direction: column; box-sizing: border-box; min-height: calc(100svh - var(--header-height)); padding-block: 12px 16px; }
  .sp-hero.sp-hero--cut { padding-bottom: 16px; }
  .sp-hero>.container { display: flex; flex: 1; flex-direction: column; }
  .sp-hero .sp-hero-grid { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 12px; }
  .sp-hero .sp-hero-media { position: relative; order: -1; flex: 1 1 0; min-height: 130px; margin: 0; }
  .sp-hero .sp-hero-media picture { display: contents; }
  .sp-hero .sp-hero-media img[src] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; object-fit: cover; }
  .sp-hero.sp-hero--cut .sp-hero-media img[src] { object-fit: contain; object-position: 50% 100%; }
  .sp-hero .sp-hero-copy { flex: none; align-self: stretch; }
  .sp-hero .sp-hero-copy h1 { margin-bottom: 8px; }
  .sp-hero .sp-hero-copy h1:has(+.sp-promise) { margin-bottom: 4px; font-size: 20px; line-height: 1.2; }
  .sp-hero .sp-hero-copy p.sp-promise { max-width: none; margin-bottom: 8px; font-size: 25px; line-height: 1.15; }
  .sp-hero .sp-hero-copy p:not(.sp-promise) { max-width: none; font-size: var(--type-small); line-height: 1.45; }
  .sp-hero .sp-actions { gap: 8px; margin-top: 12px; }
  .sp-hero .sp-actions>* { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: 8px 14px; font-size: var(--type-small); }
  /* contact: a flatter crop, less of the top and a little of the bottom */
  .sp-hero:has(img[src*="kontakt-pomost"]) .sp-hero-media img[src] { object-position: 50% 68%; }
}

/* nothing to go back to at the very top, and the arrow would cover the first buttons */
.back-to-top { transition: opacity 200ms, visibility 200ms; }
html.at-top .back-to-top { visibility: hidden; opacity: 0; }

/* Phone proportions: picture near the top, about 38% of the screen section; the text gets the rest, with room to breathe */
@media (max-width: 760px) {
  .sp-hero, .hero-home { --shot: calc((100svh - var(--header-height)) * .38); }
  .sp-hero .sp-hero-grid { gap: 0; }
  .sp-hero .sp-hero-media { flex: 0 0 var(--shot); min-height: 0; }
  .sp-hero .sp-hero-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; container-type: inline-size; padding-top: 12px; }
  .sp-hero .sp-hero-copy h1 { margin: 0 0 clamp(10px, 2svh, 20px); font-size: clamp(30px, 4.8svh, 42px); line-height: 1.12; }
  .sp-hero .sp-hero-copy h1:has(+.sp-promise) { margin-bottom: clamp(4px, 1svh, 10px); font-size: clamp(18px, 2.5svh, 21px); }
  .sp-hero .sp-hero-copy p.sp-promise { margin-bottom: clamp(10px, 2.2svh, 22px); font-size: 6.75cqi; line-height: 1.18; text-wrap: balance; }
  .sp-hero .sp-hero-copy p:not(.sp-promise) { font-size: clamp(14px, 2.05svh, 18px); line-height: 1.55; }
  .sp-hero .sp-actions { margin-top: clamp(14px, 3svh, 32px); }
  .sp-hero .sp-actions>* { min-height: clamp(44px, 6svh, 54px); font-size: clamp(14px, 1.9svh, 16px); }

  .hero-home .portrait-slot { flex: 0 0 var(--shot); min-height: 0; }
  .hero-home .portrait-slot picture img { object-position: 50% 26%; }
  .hero-home .hero-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: flex-start; }
  .hero-home .hero-copy h1 { margin-bottom: clamp(10px, 2.2svh, 22px); }
  .hero-home .hero-lead, .hero-home .hero-proof { margin-bottom: clamp(8px, 1.8svh, 18px); font-size: clamp(14px, 2.1svh, 18px); line-height: 1.55; }
  .hero-home .locations { margin-bottom: clamp(14px, 3svh, 30px); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .sp-hero, .hero-home { --shot: calc((100svh - var(--header-height)) * .3); }
  .sp-hero .sp-hero-copy { padding-top: 8px; }
  .sp-hero .sp-hero-copy p:not(.sp-promise) { font-size: 13.5px; line-height: 1.45; }
  .sp-hero .sp-actions { margin-top: 10px; }
  .sp-hero .sp-actions>* { min-height: 44px; }
}

/* Fotografia: the kinds of photography open under the menu item (desktop on hover or focus, phone as an accordion) */
.nav-drop { position: relative; display: inline-flex; margin-bottom: -16px; padding-bottom: 16px; }
.nav-sub { position: absolute; top: calc(100% - 4px); left: -14px; z-index: 5; display: none; flex-direction: column; min-width: 270px; padding: 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: #080808; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.nav-drop:hover .nav-sub, .nav-drop:focus-within .nav-sub { display: flex; animation: sp-rise 180ms var(--motion-ease) both; }
.desktop-nav .nav-sub a { min-height: 44px; padding: 10px 14px; border-radius: 8px; font-weight: var(--weight-regular, 400); white-space: nowrap; }
.desktop-nav .nav-sub a:hover, .desktop-nav .nav-sub a:focus-visible { background: rgba(255,255,255,.07); color: #e1d2b0; }
.m-drop { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 58px; }
.m-drop > a { grid-column: 1 / -1; grid-row: 1; }
.m-drop-btn { position: relative; z-index: 1; grid-column: 2; grid-row: 1; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.m-drop-btn img { transition: rotate 200ms var(--motion-ease); }
.m-drop-btn[aria-expanded="true"] img { rotate: 90deg; }
.m-sub { grid-column: 1 / -1; display: none; }
.m-drop.is-open .m-sub { display: grid; }
.mobile-nav nav .m-sub a { min-height: 48px; padding: 10px 24px 10px 44px; font-size: var(--type-ui); font-weight: var(--weight-regular, 400); color: #d9d9d9; }
@media (min-width: 1181px) { .m-drop { display: none; } }
@media (max-width: 1180px) { .nav-drop { display: none; } }

/* Pop-up announcing the newest tournament */
.sp-popup { box-sizing: border-box; width: min(560px, calc(100vw - 40px)); padding: clamp(28px, 5vw, 44px); border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: #080808; color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.sp-popup::backdrop { background: rgba(0,0,0,.62); }
.sp-popup[open] { animation: sp-rise 260ms var(--motion-ease) both; }
.sp-popup h2 { margin: 0 0 12px; font-size: clamp(26px, 6.5vw, 38px); line-height: 1.1; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.sp-popup p { margin: 0 0 22px; color: #e6e6e6; }
.sp-popup .sp-popup-kicker { margin-bottom: 10px; color: #d7c18f; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .08em; font-size: var(--type-small); }
.sp-popup .sp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.sp-popup-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.sp-popup-close:hover { color: #e1d2b0; }
.sp-popup .button-dark { background: var(--gold-gradient); color: #080808; border-color: transparent; }
.sp-popup .button-dark:hover { filter: brightness(1.08); color: #080808; }

/* Photography sub-pages: one endless row instead of a grid */
.sp-strip-link { display: block; height: 100%; }
.sp-strip-link img { display: block; }

/* Graphic design and social media: the cut-outs are larger and sit further left; a little may pass the page margin */
@media (min-width: 1001px) {
  .sp-hero.sp-hero--cut:has(.sp-promise) .sp-hero-media img[src*="laptop-i-narzedzia"] { width: min(142%, calc((100svh - var(--header-height) - 24px) * var(--r))); margin-left: -4%; }
  .sp-hero.sp-hero--cut:has(.sp-promise) .sp-hero-media img[src*="telefon-i-ikony"] { width: min(146%, calc((100svh - var(--header-height) - 24px) * var(--r))); margin-left: -9%; }
}

/* Fotografia: the picture is cut from the top of the photograph; on a phone the frame keeps its top edge */
@media (max-width: 760px) {
  .sp-hero .sp-hero-media img[src*="teleobiektywem-w-hali"] { object-position: 50% 0; }
}

/* Phone menu: the arrow beside Fotografia is white and large enough to hit */
.m-drop-btn img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.m-drop-btn { border-left: 1px solid rgba(255,255,255,.14); margin-block: 10px; }

/* Everything below the first section floats up from below as it comes into view: photographs, texts, buttons, icons.
   A clipped ancestor (overflow: hidden) becomes the scroll container of a view timeline, so the clipped frame itself is animated, never its picture. */
@keyframes sp-photo-in { from { opacity: .01; translate: 16px 72px; scale: .92; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes sp-text-in { from { opacity: .01; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .sp-hero-media img { animation: so-hero-image-enter 900ms var(--motion-ease-enter) 100ms both; }
  @supports (animation-timeline: view()) {
    .sp-media img, .sp-shot, .sp-project figure, .about-portrait, .sp-timeline img, .sp-carousel { animation: sp-photo-in linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    main :is(h2, h3, p, .sp-actions, .about-button, .contact-item, .service-card):not(:is(.sp-hero, .hero-home, .sp-popup, .sp-cards > li, .sp-steps > li, .sp-tiles > li, .sp-projects > li, .sp-events > li, .sp-timeline > li, .sp-reels > li, .sp-qa-item, .service-card, .contact-item, .sp-lightbox) *) { animation: sp-text-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .service-card, .contact-item { animation: sp-text-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .service-card .service-icon, .service-card .service-number, .contact-item .contact-icon { animation: sp-pop linear both; animation-timeline: view(); animation-range: entry 15% cover 22%; }
  }
}

/* Slightly smaller icons in the service cards and contact rows */
.service-icon-wrap { width: 52px; height: 52px; }
.service-icon { width: 44px; height: 44px; }
.contact-icon img { width: 24px; height: 24px; }
@media (max-width: 440px) { .service-icon-wrap { width: 48px; height: 48px; } .service-icon { width: 40px; height: 40px; } .contact-icon img { width: 22px; height: 22px; } }

/* Accordion: the open item is black with a gold title and arrow; panels slide open and closed smoothly */
.sp-qa-item { transition: background-color 360ms var(--motion-ease), color 360ms var(--motion-ease); }
.sp-qa label { transition: color 360ms var(--motion-ease); }
.sp-qa label img { transition: transform 460ms cubic-bezier(.34,1.56,.64,1), filter 360ms var(--motion-ease); }
.sp-qa input:checked~label { color: var(--gold); }
.sp-qa input:checked~label img { filter: brightness(0) saturate(100%) invert(72%) sepia(27%) saturate(560%) hue-rotate(7deg) brightness(92%) contrast(88%); transform: rotate(90deg) scale(1.12); }
.sp-qa-a, .sp-qa input:checked~.sp-qa-a { display: block; min-height: 0; overflow: hidden; }
.sp-qa-a { height: 0; padding-bottom: 0; opacity: 0; visibility: hidden; translate: 0 -8px; }
.sp-qa input:checked~.sp-qa-a { height: var(--qa-h, auto); padding-bottom: 24px; opacity: 1; visibility: visible; translate: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .sp-qa-a { transition: height 480ms var(--motion-ease), padding-bottom 480ms var(--motion-ease), opacity 320ms var(--motion-ease), translate 480ms var(--motion-ease), visibility 0s linear 480ms; }
  .sp-qa input:checked~.sp-qa-a { transition-delay: 0s, 0s, 120ms, 0s, 0s; }
}
@media (hover: hover) and (pointer: fine) {
  .sp-qa input:not(:checked)~label:hover img { transform: translateX(4px); }
}

/* Contact page cards (icon badge and texts) and the footer animate on scroll as well */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sp-contact-card .sp-badge { animation: sp-pop linear both; animation-timeline: view(); animation-range: entry 15% cover 22%; }
    .sp-contact-card small, .sp-contact-card strong, .footer-watermark, .footer-brand-block p, .footer-nav a, .footer-bottom span { animation: sp-text-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
  }
}

/* Phone: landscape frames in the scrolling galleries fit the screen width; portrait ones keep the gallery height (--r is the image ratio) */
@media (max-width: 760px) {
  .sp-track li { height: auto; }
  .sp-track img, .sp-strip-link img { width: auto; height: min(clamp(260px,48svh,500px), calc((100vw - 40px) / var(--r, .01))); max-width: none; }
  .sp-carousel--marks .sp-track img { height: min(clamp(200px,32svh,320px), calc((100vw - 40px) / var(--r, .01))); }
}

/* Galleries: frames of different heights are centred vertically */
.sp-track { align-items: center; }

/* Stopka: polityka prywatności i ustawienia zgód. */
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.footer-legal a, .footer-legal button { color: inherit; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }

/* Dokument prawny (polityka prywatności). */
.legal-doc { max-width: 880px; }
.legal-doc h2 { margin: 48px 0 16px; font-size: var(--type-h5); line-height: 1.2; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { margin: 0 0 16px; color: var(--text-secondary); font-size: var(--type-body-secondary); line-height: 1.55; }
.legal-doc code { font-size: .9em; }
.legal-table { overflow-x: auto; margin: 0 0 24px; }
.legal-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--type-small); line-height: 1.45; }
.legal-table th, .legal-table td { padding: 12px 14px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid #00000024; }
.legal-table th { font-weight: 700; color: var(--text-primary); }
.legal-inline { padding: 0; border: 0; background: none; color: var(--text-accent-on-light); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
