/* P&P Klampiarstvo */

:root {
  --gutter: clamp(16px, 4.5vw, 72px);
  --ink: #1b2732;
  --ink-soft: #435262;
  --line: rgba(27, 39, 50, .28);
  --scrim: rgba(241, 244, 247, .78);
  --card: rgba(243, 246, 248, .93);
  --copper: #b8642f;
  --copper-ink: #94491d;
  --copper-light: #f0ab7c;
  --btn: #9c4c20;
  --btn-hover: #b25a29;
  --paper: #eef2f5;
  --night: #16202b;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
}

/* text-on-dusk palette, applied per section and to the header */
[data-tone="light"] {
  --ink: #f6f1ea;
  --ink-soft: rgba(246, 241, 234, .82);
  --line: rgba(246, 241, 234, .35);
  --scrim: rgba(17, 25, 34, .74);
  --card: rgba(20, 29, 39, .9);
  --copper-ink: var(--copper-light);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 4px;
}

/* ---------- scene layers ---------- */

#scene {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
}

#veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(120% 90% at 50% 50%, rgba(255, 255, 255, .96), rgba(236, 241, 245, .92));
}

html.no-webgl #scene { display: none; }
html.no-webgl body {
  background:
    linear-gradient(180deg, rgba(238, 242, 245, .9), rgba(238, 242, 245, .72) 40%, rgba(22, 32, 43, .9)),
    url("../img/jobs/job-01.webp") center / cover fixed;
}

main { position: relative; z-index: 2; }

/* ---------- loader ---------- */

#loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--paper);
  color: #1b2732;
  transition: opacity .9s var(--ease), visibility .9s;
}
.loader-mark { width: 64px; height: 64px; fill: currentColor; }
.loader-line { width: 120px; height: 1px; background: rgba(27, 39, 50, .15); overflow: hidden; }
.loader-line i {
  display: block; height: 100%; width: 40%;
  background: var(--copper);
  animation: load 1.2s var(--ease) infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
body.ready #loader { opacity: 0; visibility: hidden; }
html:not(.js) #loader { display: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--ink);
  transition: background .5s, color .5s, height .4s var(--ease);
}
.site-header.scrolled {
  height: 64px;
  background: rgba(238, 242, 245, .93);
  box-shadow: 0 1px 0 rgba(27, 39, 50, .08);
}
body[data-tone="light"] .site-header.scrolled { background: rgba(18, 26, 35, .9); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 38px; height: 38px; fill: currentColor; }
.brand-name {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.nav { display: flex; gap: 30px; }
.nav a, .header-call {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.header-call {
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .3s, border-color .3s;
}
.header-call:hover { border-color: var(--copper); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0 10px 10px;
  color: inherit;
  font: inherit;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-btn-lines {
  width: 22px; height: 8px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 90px var(--gutter) 40px;
  background: rgb(238, 242, 245);
  color: #1b2732;
}
#mobile-menu a {
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
#mobile-menu .mobile-call {
  margin-top: 24px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--btn);
}
body.menu-open .site-header { color: #1b2732; background: transparent; box-shadow: none; }

/* ---------- progress rail ---------- */

.hud {
  position: fixed;
  right: calc(var(--gutter) * .5);
  bottom: 40px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--ink);
  transition: color .5s;
}
body[data-tone="light"] .hud { --ink: #f6f1ea; }
.hud-line {
  width: 1px; height: 84px;
  background: var(--line);
  overflow: hidden;
}
body[data-tone="light"] .hud-line { background: rgba(246, 241, 234, .3); }
.hud-line i {
  display: block; width: 100%; height: 100%;
  background: var(--copper);
  transform-origin: top;
  transform: scaleY(0);
}
.hud-total { opacity: .55; }

/* ---------- stations ---------- */

.station {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 16vh var(--gutter);
  color: var(--ink);
}
.station.service { min-height: 135vh; }
.station[data-side="right"] { justify-content: flex-end; }
.station[data-side="center"] { justify-content: center; }

.copy {
  position: relative;
  width: 100%;
  max-width: 35rem;
}
.copy.wide { max-width: 78rem; }
.copy::before {
  content: "";
  position: absolute;
  inset: -16% -20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--scrim), transparent);
}
.copy.wide::before { inset: -10% -6%; }

.station[data-side="right"] .copy { margin-right: clamp(0px, 3vw, 48px); }

.eyebrow, .label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--copper-ink);
}

.display {
  margin: 0 0 26px;
  font-size: clamp(1.9rem, 1.2rem + 2.7vw, 3.9rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-wrap: balance;
  hyphens: manual;
}

.copy p {
  margin: 0 0 14px;
  max-width: 31rem;
  color: var(--ink-soft);
}
.copy p:last-of-type { margin-bottom: 0; }

/* hero */

.hero { min-height: 100vh; min-height: 100svh; }
.hero .copy { max-width: 40rem; }

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  margin: 0 0 28px;
  font-weight: 300;
}
.lockup-mark {
  width: clamp(64px, 8vw, 104px);
  height: clamp(64px, 8vw, 104px);
  fill: var(--ink);
  flex: none;
}
.lockup-text {
  display: flex;
  flex-direction: column;
  padding-left: clamp(16px, 2.4vw, 30px);
  border-left: 1px solid var(--line);
}
.lockup-pp {
  font-size: clamp(.8rem, .7rem + .3vw, 1rem);
  font-weight: 500;
  letter-spacing: .5em;
}
.lockup-word {
  font-size: clamp(2rem, 1rem + 4.4vw, 4.8rem);
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem);
  font-weight: 300;
  letter-spacing: .02em;
  color: var(--ink) !important;
  max-width: 26rem !important;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 30px;
  margin-top: 34px;
}

.scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.scroll-hint i {
  width: 1px; height: 46px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-hint i::after {
  content: "";
  position: absolute; left: 0; top: 0;
  width: 1px; height: 40%;
  background: var(--copper);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* links & buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn);
  color: #fff;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, transform .3s var(--ease);
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .3s;
}
.copy > .link-arrow, .copy > .reveal > .link-arrow { margin-top: 30px; }
.link-arrow svg {
  width: 30px; height: 30px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.link-arrow:hover { border-color: var(--copper); }
.link-arrow:hover svg { transform: translateX(4px); border-color: var(--copper); }

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin-top: 30px;
}

/* numbered gable marker */

.marker {
  position: relative;
  width: 46px; height: 46px;
  margin-bottom: 26px;
  color: var(--copper-ink);
}
.marker svg { width: 100%; height: 100%; }
.marker span {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink);
}

/* towns */

.towns {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  border-top: 1px solid var(--line);
}
.towns li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.towns b {
  font-weight: 400;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.towns span {
  font-size: .78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* steps */

.steps {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 34px;
}
.steps .marker { width: 38px; height: 38px; margin-bottom: 14px; }
.steps .marker span { bottom: 4px; font-size: .74rem; }
.steps h3 {
  margin: 0 0 8px;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.steps p { font-size: .95rem; }
#postup .copy { max-width: 40rem; }

/* gallery */

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-bottom: 30px;
}
.gallery-head .display { margin-bottom: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
  background: rgba(255, 255, 255, .06);
}

/* contact */

.phone {
  display: inline-block;
  font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4.6rem);
  font-weight: 300;
  letter-spacing: .04em;
  line-height: 1.1;
  text-decoration: none;
  color: var(--ink);
}
.phone:hover { color: var(--copper-light); }
.email {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem);
  letter-spacing: .06em;
  color: var(--ink-soft);
  text-underline-offset: 6px;
}
.addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.addresses h3 {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.addresses p { margin: 0; font-size: .95rem; }

#kontakt { min-height: 105vh; }

/* footer */

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 26px var(--gutter) 30px;
  background: rgba(14, 21, 29, .86);
  color: rgba(246, 241, 234, .7);
  font-size: .78rem;
  letter-spacing: .08em;
}
.site-footer p { margin: 0; }

/* ---------- reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- small screens ---------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-call { display: none; }
  .hud { display: none; }
}

@media (max-width: 820px) {
  .site-header { height: 64px; }
  .brand-mark { width: 34px; height: 34px; }

  .station,
  .station[data-side="right"],
  .station[data-side="center"] {
    align-items: flex-end;
    justify-content: stretch;
    padding: 46vh 16px 8vh;
  }
  .station.service { min-height: 120vh; }

  .copy {
    max-width: none;
    padding: 24px 22px 26px;
    border-radius: 4px;
    background: var(--card);
  }
  .copy::before { display: none; }
  .station[data-side="right"] .copy { margin-right: 0; }

  .hero { padding-top: 30vh; padding-bottom: 14vh; }
  .lockup { gap: 14px; }
  .lockup-mark { width: 54px; height: 54px; }
  .lockup-text { padding-left: 14px; }
  .lockup-word { font-size: clamp(1.45rem, .55rem + 5.6vw, 2.4rem); letter-spacing: .12em; }
  .hero .copy { background: none; padding: 0; }
  .hero .copy::before {
    display: block;
    inset: -30% -16px -40%;
    background: radial-gradient(closest-side, var(--scrim), transparent);
  }
  .scroll-hint { left: 16px; bottom: 20px; }

  .towns { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .addresses { grid-template-columns: 1fr; gap: 18px; }

  #praca .copy { padding: 22px 18px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity .4s; }
  .loader-line i, .scroll-hint i::after { animation: none; }
}

/* ---------- service pages ---------- */


.service-page { background: var(--paper); }

.page-hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 12vh;
  color: var(--ink);
}
.page-hero .copy { max-width: 37rem; }
.page-hero .display { font-size: clamp(2.1rem, 1.2rem + 3.3vw, 4.4rem); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--copper-ink); }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-decoration: none;
  background: rgba(255, 255, 255, .35);
  transition: border-color .3s, background .3s;
}
.jump a:hover { border-color: var(--copper); background: rgba(255, 255, 255, .7); }

.section {
  position: relative;
  z-index: 2;
  padding: 12vh var(--gutter);
  color: var(--ink);
}
.section-head { max-width: 46rem; margin-bottom: 7vh; }
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px clamp(30px, 6vw, 100px);
  align-items: start;
}
.section-head p { color: var(--ink-soft); max-width: 34rem; margin: 0 0 14px; }
.display.small { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem); }

.metals {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.metals li { display: flex; align-items: center; gap: 10px; }

/* swatches shared by the legend and the buttons */
.sw, .mat i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), inset 0 2px 3px rgba(255, 255, 255, .55);
}
[data-mat="med"] > i, .sw[data-mat="med"] { background: linear-gradient(135deg, #f7c9a6, #c9733f 52%, #874019); }
[data-mat="titanzinok"] > i, .sw[data-mat="titanzinok"] { background: linear-gradient(135deg, #b8bfc5, #7f878f 55%, #5b6269); }
[data-mat="pozink"] > i, .sw[data-mat="pozink"] { background: linear-gradient(135deg, #eef0f2, #b3b8bd 50%, #8c9298); }
[data-mat="hlinik"] > i, .sw[data-mat="hlinik"] { background: linear-gradient(135deg, #fbfcfc, #d2d6d9 50%, #a9aeb3); }
[data-mat="nerez"] > i, .sw[data-mat="nerez"] { background: linear-gradient(135deg, #ffffff, #c4c8cc 45%, #8e9399 60%, #e3e6e8); }
[data-mat="farba"] > i, .sw[data-mat="farba"] { background: linear-gradient(135deg, #5d6670, #3a414a 55%, #22272d); }

/* product rows */

.group { padding-top: 6vh; }
.group-head { margin-bottom: 2vh; }

.catalog { display: grid; }

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px clamp(30px, 6vw, 96px);
  align-items: center;
  padding: 7vh 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.catalog .product:nth-child(even) .viewer { order: 2; }

.viewer {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 42%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #e1e6e9, #d0d6db);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.viewer.grabbing { cursor: grabbing; }
.viewer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8%;
  mix-blend-mode: multiply;
}
.viewer.live img { visibility: hidden; }
.viewer-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #5a6774;
  pointer-events: none;
}
html:not(.viewers-live) .viewer-hint { display: none; }

.product-text h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.product-text p { margin: 0 0 12px; color: var(--ink-soft); max-width: 32rem; }
.product-text .marker { margin-bottom: 20px; }
.product-text .link-arrow { margin-top: 26px; }

.notes-title {
  margin: 22px 0 10px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.notes {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 32rem;
}
.notes li {
  position: relative;
  padding: 0 0 0 22px;
  margin-bottom: 8px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 11px;
  height: 1px;
  background: var(--copper);
}

.mats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.mat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .74rem;
  letter-spacing: .04em;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}
.mat:hover { border-color: var(--copper); }
.mat[aria-pressed="true"] { border-color: var(--copper); background: rgba(184, 100, 47, .1); }
html:not(.viewers-live) .mat { pointer-events: none; }

/* diagnostics */

.methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}
.methods li { border-top: 1px solid var(--line); padding-top: 26px; }
.methods .marker { width: 38px; height: 38px; margin-bottom: 16px; }
.methods .marker span { bottom: 4px; font-size: .74rem; }
.methods h3, .credit h3 {
  margin: 0 0 8px;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.methods p, .credit p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pack {
  --metal: #c9733f;
  position: relative;
  padding: 30px 26px 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(27, 39, 50, .12);
  overflow: hidden;
}
.pack::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--metal);
}
.pack.bronze { --metal: linear-gradient(90deg, #f0b48a, #b8642f, #7d3d18); }
.pack.silver { --metal: linear-gradient(90deg, #f2f4f5, #aab1b7, #6d757c); }
.pack.gold   { --metal: linear-gradient(90deg, #f7e3a1, #caa040, #8a6a1c); }
.pack.zinc   { --metal: linear-gradient(90deg, #5d6670, #3a414a, #22272d); }
.pack-tier {
  margin: 0 0 6px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.pack h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pack .price {
  margin: 14px 0 18px;
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
}

.credit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px clamp(30px, 5vw, 80px);
  margin-top: 6vh;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
.price-table caption {
  text-align: left;
  margin-bottom: 12px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.price-table th, .price-table td {
  text-align: left;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.price-table td:last-child, .price-table th:last-child { text-align: right; padding-left: 16px; }

.video {
  max-width: 62rem;
  border-radius: 6px;
  overflow: hidden;
  background: #16202b;
  aspect-ratio: 16 / 9;
}
.video video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* contact band at the end of each service page */

.cta-band {
  position: relative;
  z-index: 2;
  margin: 4vh var(--gutter) 10vh;
  padding: clamp(30px, 6vw, 84px);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 30px clamp(30px, 6vw, 90px);
  align-items: end;
  color: var(--ink);
  background:
    radial-gradient(80% 120% at 100% 100%, rgba(217, 140, 88, .55), transparent 60%),
    linear-gradient(160deg, #1d2b3b 10%, #2b2f38 60%, #4a3226);
}
.cta-band .display { margin-bottom: 16px; }
.cta-band p { color: var(--ink-soft); margin: 0; max-width: 30rem; }
.cta-band .actions { margin-top: 28px; }

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

@media (max-width: 820px) {
  .page-hero { align-items: flex-end; padding: 46vh 16px 8vh; }
  .page-hero .copy::before {
    display: block;
    inset: -12% -16px -10%;
    background: radial-gradient(closest-side, var(--scrim), transparent);
  }
  .page-hero .copy { background: none; padding: 0; }
  .section { padding: 9vh 16px; }
  .section .copy, .section-head .copy { background: none; }
  .section-head.split { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 6vh 0; }
  .catalog .product:nth-child(even) .viewer { order: 0; }
  .methods, .packages, .credit { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; margin: 2vh 16px 8vh; padding: 28px 22px; }
}

/* without WebGL, service pages keep a plain page and show the photo only in the hero */
html.no-webgl body.service-page { background: var(--paper); }
html.no-webgl .page-hero {
  background:
    linear-gradient(90deg, rgba(238, 242, 245, .94), rgba(238, 242, 245, .7) 55%, rgba(238, 242, 245, .2)),
    url("../img/jobs/job-01.webp") center / cover;
}

/* homepage: first rendered frame shows before the scroll sequence loads */
#poster img {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

/* service pages: Blender hero render behind the title */
.page-hero { overflow: hidden; isolation: isolate; }
.hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.06);
  will-change: transform;
}
html.no-webgl .page-hero { background: none; }

@media (max-width: 820px) {
  /* phones: light fade behind the hero title so it reads over any part of the render */
  .page-hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 62%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(238, 242, 245, .97) 45%, rgba(238, 242, 245, 0));
  }
}

/* each product card draws its own 3D view */
.viewer-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- content pages: albums, videos, calculator, terms, booking ---------- */

.page-head {
  position: relative;
  z-index: 2;
  padding: 140px var(--gutter) 6vh;
  color: var(--ink);
}
.page-head .display { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.8rem); margin-bottom: 18px; }
.page-head .lead { max-width: 40rem !important; color: var(--ink-soft) !important; }
.page-head .copy { max-width: 52rem; }
.page-head .copy::before { display: none; }

.content { position: relative; z-index: 2; padding: 0 var(--gutter) 10vh; color: var(--ink); }
.content > * + * { margin-top: 8vh; }
.content h2.display.small { margin-bottom: 22px; }

/* photo grids */
.album {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.album a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #dfe4e8;
  aspect-ratio: 4 / 3;
}
.album img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.album a:hover img { transform: scale(1.04); }
.album a:focus-visible { outline-offset: 2px; }

.years {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.year-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  background: #2b333c;
}
.year-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.year-card:hover img { transform: scale(1.05); }
.year-card span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(14, 20, 27, .82), rgba(14, 20, 27, 0));
}
.year-card b { font-size: 1.5rem; font-weight: 400; letter-spacing: .06em; }
.year-card small { font-size: .78rem; letter-spacing: .08em; opacity: .9; }

.year-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6vh;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(12, 17, 23, .95);
  color: #fff;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; grid-column: 2; }
.lightbox img { max-width: 100%; max-height: 84vh; object-fit: contain; border-radius: 2px; }
.lightbox figcaption { font-size: .8rem; letter-spacing: .14em; opacity: .75; }
.lightbox button {
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
  opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { position: absolute; top: 10px; right: 14px; font-size: 2.2rem !important; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }
body.lb-open { overflow: hidden; }

/* videos */
.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6vh clamp(24px, 4vw, 56px);
}
.video-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.video-card p { margin: 0 0 14px; color: var(--ink-soft); }
.video-card .video { max-width: none; }

/* service price calculator */
.calc { max-width: 52rem; }
.calc .fld { display: grid; gap: 6px; margin-bottom: 18px; }
.calc label { font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.calc input, .calc select, .calc textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(27, 39, 50, .22);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.calc textarea { min-height: 96px; resize: vertical; }
.calc input:focus, .calc select:focus, .calc textarea:focus { outline: 2px solid var(--copper); outline-offset: 1px; border-color: transparent; }
.calc .hint { font-size: .82rem; color: var(--ink-soft); }
.calc .g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.calc .g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.calc details {
  margin: 6px 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
}
.calc summary { cursor: pointer; padding: 14px 18px; font-weight: 500; }
.calc .dwrap { padding: 4px 18px 6px; }
.calc .cena {
  margin: 10px 0 34px;
  padding: 26px 26px 20px;
  border-radius: 6px;
  color: #f6f1ea;
  background:
    radial-gradient(80% 120% at 100% 100%, rgba(217, 140, 88, .45), transparent 60%),
    linear-gradient(160deg, #1d2b3b 10%, #2b2f38 60%, #4a3226);
}
.calc .big { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 300; line-height: 1.1; margin-bottom: 16px; }
.calc .big small { display: block; margin-top: 6px; font-size: .85rem; letter-spacing: .06em; opacity: .8; }
.calc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc td { padding: 8px 0; border-bottom: 1px solid rgba(246, 241, 234, .18); }
.calc td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.calc tr.b td { font-weight: 500; }
.calc .msg { margin: 14px 0 0; font-size: .9rem; opacity: .85; }
.calc .msg.hi { color: var(--copper-light); opacity: 1; }
.calc h3 { margin: 0 0 16px; font-size: .9rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.calc button.btn { border: 0; cursor: pointer; margin: 6px 12px 0 0; }
.calc button.btn.sec { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.calc button.btn.sec:hover { border-color: var(--copper); background: transparent; }
.calc .foot { margin-top: 30px; font-size: .85rem; color: var(--ink-soft); }
.calc .lead { display: none; }

/* terms */
.legal { max-width: 46rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal p strong { color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-size: .74rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.legal .foot { margin-top: 30px; font-size: .85rem; }

/* booking */
.booking {
  width: 100%;
  max-width: 60rem;
  height: 1000px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 820px) {
  .page-head { padding: 110px 16px 5vh; }
  .content { padding: 0 16px 8vh; }
  .album { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .years { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .year-card b { font-size: 1.15rem; }
  .videos { grid-template-columns: 1fr; }
  .calc .g2, .calc .g3 { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .booking { height: 1100px; }
}

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.before-after .album { grid-template-columns: repeat(2, minmax(0, 1fr)); }
