:root {
  --bg: #0b0b0c;
  --fg: #f4f2ef;
  --fg-dim: rgba(244, 242, 239, 0.55);
  --fg-faint: rgba(244, 242, 239, 0.72);
  --veil: 0.4;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: Archivo, Helvetica, sans-serif;
  color: var(--fg);
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

img { max-width: 100%; }

::-webkit-scrollbar { height: 3px; width: 3px; }
::-webkit-scrollbar-track { background: rgba(244, 242, 239, 0.06); }
::-webkit-scrollbar-thumb { background: rgba(244, 242, 239, 0.28); }

.view { display: none; }
.view.active { display: block; }

/* ---------- shared header / nav ---------- */

.site-header {
  padding: clamp(22px, 3.2vh, 38px) clamp(24px, 4vw, 64px) clamp(14px, 2vh, 22px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: Anton, Helvetica, sans-serif;
  text-transform: uppercase;
  font-size: clamp(18px, 1.5vw, 26px);
  letter-spacing: 0.02em;
}

.logo-hidden { visibility: hidden; }

.nav {
  display: flex;
  gap: 26px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--fg-dim);
  transition: color 250ms ease;
}
.nav-link:hover { color: var(--fg); }
.nav-link.nav-active { color: var(--fg); }

.nav-hej {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.wave {
  position: absolute;
  left: calc(100% + 3px);
  top: -22px;
  width: 23px;
  height: 31px;
  pointer-events: none;
  opacity: 0;
  transform: rotate(-78deg);
  transform-origin: 17% 96%;
  transition: opacity 200ms ease, transform 520ms cubic-bezier(0.34, 1.4, 0.5, 1);
}
.nav-hej:hover .wave { opacity: 1; transform: rotate(0deg); }

.wave svg { display: block; overflow: visible; }

.wave-fingers {
  transform-box: view-box;
  transform-origin: 18px 30px;
  animation: jb-wave-fore 2700ms ease-in-out infinite;
}

@keyframes jb-wave-fore {
  0% { transform: rotate(-6deg); }
  12% { transform: rotate(-26deg); }
  30% { transform: rotate(26deg); }
  48% { transform: rotate(-22deg); }
  66% { transform: rotate(24deg); }
  84% { transform: rotate(-16deg); }
  100% { transform: rotate(-6deg); }
}

/* ---------- home ---------- */

.view-home {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.home-split {
  display: flex;
  flex-wrap: wrap;
  align-content: stretch;
  width: 100%;
  min-height: 100vh;
}

.split-panel {
  position: relative;
  flex: 1 1 420px;
  min-height: 50vh;
  display: block;
  overflow: hidden;
}

.split-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.005);
  transition: filter 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.split-left .split-bg {
  filter: grayscale(0.9) contrast(1.05) brightness(0.78);
}
.split-right .split-bg {
  filter: grayscale(0.9) contrast(1.05) brightness(0.74);
}
.split-panel:hover .split-bg {
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.045);
}

.split-veil {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, var(--veil));
  opacity: 1;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.split-veil.veil-off { opacity: 0; }

.split-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px clamp(24px, 4vw, 64px) clamp(40px, 6vh, 72px);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.split-title {
  font-size: clamp(30px, 3.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.split-sub {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.home-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(244, 242, 239, 0.28);
  pointer-events: none;
}

.home-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}
.home-header .nav { pointer-events: auto; }

.home-title-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 56px);
  pointer-events: none;
}

.home-title {
  margin: 0;
  width: 100%;
  font-family: Anton, Helvetica, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 12vw;
  line-height: 1.05;
  letter-spacing: -0.035em;
  animation: jb-spread 5.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
  padding: 0 clamp(12px, 2vw, 32px);
  position: relative;
  height: 1.05em;
  white-space: nowrap;
  text-shadow: 0 4px 80px rgba(11, 11, 12, 0.45);
}

.title-joachim {
  position: absolute;
  top: 0;
  right: 50%;
  animation: jb-trail 5.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
  margin-right: 0.185em;
  opacity: 1;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.title-joachim.dim { opacity: 0.45; }

.title-binder {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: 0.15em;
  opacity: 1;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.title-binder.dim { opacity: 0.45; }

@keyframes jb-trail {
  from { margin-right: 0.185em; }
  to { margin-right: 0.092em; }
}
@keyframes jb-spread {
  from { letter-spacing: -0.035em; }
  to { letter-spacing: 0.058em; }
}

/* ---------- gallery ---------- */

.view-gallery {
  position: relative;
  width: 100%;
}

.gallery-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-heading {
  flex: 0 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) clamp(18px, 2.4vh, 30px);
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.gallery-heading h1 {
  margin: 0;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.gallery-sub {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.gallery-strip {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: clamp(34px, 2.6vw, 46px);
  overflow-x: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0 clamp(24px, 4vw, 64px) clamp(20px, 3vh, 34px);
}
.gallery-strip::-webkit-scrollbar { display: none; }

.strip-item {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
}

.strip-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.15);
  transition: filter 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.strip-item:hover .strip-item-bg { filter: grayscale(0); }

.strip-item-n {
  position: absolute;
  bottom: 0;
  left: 100%;
  margin-left: 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(244, 242, 239, 0.4);
}

.gallery-track {
  flex: 0 0 auto;
  position: relative;
  height: 14px;
  margin: 0 clamp(24px, 4vw, 64px) clamp(18px, 2.6vh, 30px);
  cursor: grab;
  touch-action: none;
}
.gallery-track:active { cursor: grabbing; }

.track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: rgba(244, 242, 239, 0.16);
}

.track-progress {
  position: absolute;
  left: 0;
  top: 6px;
  height: 2px;
  width: 0%;
  background: rgba(244, 242, 239, 0.85);
}

/* ---------- about ---------- */

.view-about {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(34px, 3.4vw, 62px);
  align-items: start;
  padding: clamp(24px, 4vh, 52px) clamp(24px, 4vw, 64px) clamp(24px, 3vh, 40px);
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.about-col h1, .about-col h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.about-col p {
  margin: 0;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.65;
  color: var(--fg-faint);
  text-wrap: pretty;
}

.about-portrait {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(0.15);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(244, 242, 239, 0.16);
}
.contact-links a {
  font-size: clamp(16px, 1.15vw, 19px);
  transition: opacity 250ms ease;
}
.contact-links a:hover { opacity: 0.6; }

.testimonials {
  border-top: 1px solid rgba(244, 242, 239, 0.14);
  padding: clamp(48px, 7vh, 78px) clamp(24px, 4vw, 64px) clamp(24px, 4vh, 44px);
}

.testimonials-label {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.45);
  text-align: center;
}

.testimonial-quote {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 88px;
  margin: 16px auto 0;
  max-width: 52ch;
  text-align: center;
  animation: jb-quote 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.testimonial-quote p {
  margin: 0;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-wrap: pretty;
}

.quote-name {
  margin-top: 12px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.55);
}

@keyframes jb-quote {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- legal link (about page) ---------- */

.legal-link {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.4);
  transition: color 250ms ease;
}
.legal-link:hover { color: var(--fg); }

/* ---------- cookie consent ---------- */

.cookie-banner {
  position: fixed;
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(14px, 3vh, 24px);
  z-index: 1000;
  width: min(300px, calc(100vw - 28px));
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: rgba(24, 24, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(244, 242, 239, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: jb-qa 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.cookie-banner[hidden] { display: none; }

.cookie-label {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.cookie-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-faint);
}

.cookie-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 2px;
  border-top: 1px solid rgba(244, 242, 239, 0.14);
}
.cookie-details[hidden] { display: none; }

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding-top: 12px;
}
.cookie-row:first-child { padding-top: 0; }

.cookie-row-text { display: flex; flex-direction: column; gap: 3px; }

.cookie-row-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.cookie-row-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--fg-dim);
}

.cookie-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: var(--fg);
}

.cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cookie-btn {
  width: 100%;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 16px;
  border: 1px solid rgba(244, 242, 239, 0.35);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: opacity 250ms ease, background 250ms ease, color 250ms ease, border-color 250ms ease;
}
.cookie-btn:hover { opacity: 0.7; }

.cookie-btn-solid {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.cookie-save[hidden] { display: none; }

.cookie-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cookie-link-btn {
  all: unset;
  cursor: pointer;
  font-size: 11px;
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 250ms ease;
}
.cookie-link-btn:hover { color: var(--fg); }

.cookie-link {
  font-size: 11px;
  color: var(--fg-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 250ms ease;
}
.cookie-link:hover { color: var(--fg); }

.cookie-reopen {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vh, 28px);
  z-index: 999;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 242, 239, 0.4);
  background: rgba(24, 24, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(244, 242, 239, 0.16);
  padding: 10px 14px;
  cursor: pointer;
  transition: color 250ms ease, opacity 250ms ease;
}
.cookie-reopen:hover { color: var(--fg); }
.cookie-reopen[hidden] { display: none; }

@media (max-width: 520px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 18px;
  }
  .cookie-reopen {
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    order: -1;
  }
}
