/* Gox Ink Tattoo — multi-page split layout matching PC mockups */
:root {
  --bg: #000;
  --panel: #000;
  --nav-bg: rgba(48, 48, 48, 0.92);
  --text: #f0f0f0;
  --text-muted: #b0b0b0;
  --text-dim: #7a7a7a;
  --line: #fff;
  --focus: #e8e8e8;
  --font: "Courier New", Courier, ui-monospace, monospace;
  --left-w: 58%;
  --right-w: 42%;
  --pad-x: clamp(1.25rem, 3.5vw, 2.75rem);
  --pad-y: clamp(1rem, 2.5vw, 1.75rem);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: clamp(0.9rem, 1.05vw, 1.05rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

picture {
  display: contents;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #111;
  color: #fff;
  padding: 0.5rem 1rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========== Split page shell ========== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.page-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

.page-split > .panel-left {
  grid-column: 1;
  grid-row: 1;
}

.page-split > .panel-right {
  grid-column: 1;
  grid-row: 2;
}

.page-split > .divider-jagged {
  grid-column: 1;
  grid-row: 1;
  pointer-events: none;
}

.panel-left {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--text);
  padding: var(--pad-y) var(--pad-x) 1.25rem;
  z-index: 2;
  overflow-x: clip;
  overflow-y: visible;
  min-height: 0;
}

.panel-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--skull);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: min(72%, 480px) auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.panel-left > * {
  position: relative;
  z-index: 1;
}

.page-home,
.page-concept,
.page-studio {
  --skull: url("assets/skull-a-web.png");
  --skull: -webkit-image-set(url("assets/skull-a-web.webp") 1x, url("assets/skull-a-web.png") 1x);
  --skull: image-set(url("assets/skull-a-web.webp") type("image/webp"), url("assets/skull-a-web.png") type("image/png"));
}

.page-portofoliu,
.page-informatii {
  --skull: url("assets/skull-b-web.png");
  --skull: -webkit-image-set(url("assets/skull-b-web.webp") 1x, url("assets/skull-b-web.png") 1x);
  --skull: image-set(url("assets/skull-b-web.webp") type("image/webp"), url("assets/skull-b-web.png") type("image/png"));
}

.page-contact,
.page-consultatie {
  --skull: url("assets/skull-c-web.png");
  --skull: -webkit-image-set(url("assets/skull-c-web.webp") 1x, url("assets/skull-c-web.png") 1x);
  --skull: image-set(url("assets/skull-c-web.webp") type("image/webp"), url("assets/skull-c-web.png") type("image/png"));
}

.panel-right {
  position: relative;
  background: #0a0a0a;
  min-height: 42vh;
  overflow: hidden;
}

.panel-right img.hero-photo,
.panel-right video.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.panel-right video.hero-media {
  background: #000;
  pointer-events: none; /* ambiance loop — no controls UI */
}

/* Edge overlay lives on .panel-right (desktop); hide legacy node */
.divider-jagged {
  display: none !important;
}

/* Header / logo / nav */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
}

.brand {
  display: block;
  width: fit-content;
  margin: 0;
}

.brand img {
  width: clamp(4.5rem, 10vw, 6.25rem);
  height: auto;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--nav-bg);
  padding: 0.65rem 1.05rem;
  margin: 0 0 1.25rem;
  max-width: 44rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #c8c8c8;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.nav-links a[aria-current="page"] {
  color: #f5a623;
  border-bottom-color: #f5a623;
}

/* Submenu variant B — full panel under nav bar */
.nav-bar {
  position: relative;
}

.nav-links .subnav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 40;
}

.nav-links .subnav a {
  color: #aaa;
  border-bottom: 0;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links .subnav a:hover {
  color: #fff;
  border-bottom-color: transparent;
}

@media (min-width: 900px) {
  .nav-bar {
    position: relative;
    /* reserve room for submenu panel so it does not cover the title */
    margin-bottom: 3.25rem;
  }
  /* keep hover while moving into the panel */
  .nav-links > li.has-sub {
    padding-bottom: 0.55rem;
    margin-bottom: -0.55rem;
  }
  .nav-links .subnav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    margin-top: 0;
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.85rem;
    padding: 0.85rem 1.05rem;
    background: #0d0d0d;
    border: 1px solid #333;
    border-top: 1px solid #2a2a2a;
    box-sizing: border-box;
    pointer-events: auto;
  }
  .nav-links > li.has-sub:hover > .subnav,
  .nav-links > li.has-sub:focus-within > .subnav,
  .nav-bar.is-sub-open .nav-links > li.has-sub.is-open > .subnav,
  .nav-links > li.has-sub.is-current-section > .subnav {
    display: flex;
  }
  .nav-links > li.has-sub.is-current-section > a {
    color: #f5a623;
    border-bottom-color: #f5a623;
  }
  .nav-links .subnav a[aria-current="page"] {
    color: #f5a623;
    border-bottom-color: #f5a623;
  }
  .nav-links .subnav a {
    display: inline-block;
    padding: 0.15rem 0;
    background: transparent;
  }
  .nav-links > li.has-sub:hover > a,
  .nav-links > li.has-sub:focus-within > a,
  .nav-links > li.has-sub.is-open > a {
    color: #fff;
    border-bottom-color: #fff;
  }
  .nav-links > li.has-sub.is-current-section > a,
  .nav-links > li.has-sub.is-current-section:hover > a,
  .nav-links > li.has-sub.is-current-section.is-open > a {
    color: #f5a623;
    border-bottom-color: #f5a623;
  }
}


.nav-toggle {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid #888;
  background: #1a1a1a;
  cursor: pointer;
  z-index: 60;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.25rem;
  margin-inline: auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header {
  display: contents;
}

.nav-rule {
  height: 2px;
  width: min(100%, 40rem);
  margin: -0.65rem 0 1.5rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #fff 4%,
    #fff 96%,
    transparent 100%
  );
  clip-path: polygon(
    0 40%,
    8% 0,
    18% 100%,
    28% 20%,
    40% 90%,
    52% 10%,
    64% 100%,
    76% 30%,
    88% 80%,
    100% 40%,
    100% 60%,
    88% 100%,
    76% 50%,
    64% 100%,
    52% 30%,
    40% 100%,
    28% 40%,
    18% 100%,
    8% 20%,
    0 60%
  );
  opacity: 0.85;
}

/* Content */
.content {
  flex: 1;
  display: block; /* block so .page-feature can float; text wraps */
  max-width: min(36rem, 100%);
  min-width: 0;
  width: 100%;
  overflow-x: clip;
}
.content::after {
  content: "";
  display: table;
  clear: both;
}

.content h1 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
  color: #fff;
}

.content h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 1.35rem 0 0.55rem;
  color: #fff;
}

.content p {
  margin: 0 0 0.9rem;
  color: var(--text);
}

/* Language visibility: one language at a time */
html[lang="ro"] .en,
html[lang="ro"] .de { display: none !important; }
html[lang="en"] .ro,
html[lang="en"] .de { display: none !important; }
html[lang="de"] .ro,
html[lang="de"] .en { display: none !important; }

/* Active language body copy looks normal (not muted) */
.content .en,
.content .de {
  color: var(--text);
}

/* Language switcher (logo band) */
.header-util {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin: 0;
}
.header-quick {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.header-quick a,
.header-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c8c8c8;
  text-decoration: none;
  line-height: 0;
  padding: 0.2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-quick-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
.header-quick a:hover,
.header-quick a:focus-visible,
.header-quick-link:hover,
.header-quick-link:focus-visible {
  color: #fff;
}
.header-quick a[aria-current="page"],
.header-quick-link[aria-current="page"] {
  color: #f5a623;
}

/* Home/Contact: beside flags on desktop, inside burger on mobile */
.nav-mobile-only {
  display: none;
}


.lang-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.lang-btn {
  padding: 0.15rem;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  opacity: 0.55;
  line-height: 0;
}

.lang-btn:hover {
  opacity: 0.85;
}

.lang-btn[aria-pressed="true"],
.lang-btn.is-active,
.lang-btn[aria-pressed="true"] {
  opacity: 1;
  border-color: #f5a623;
}

.lang-flag {
  display: block;
  width: 22px;
  height: 16px;
}

.artist-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: -0.15rem 0 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.artist-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e8e8e8;
  text-decoration: none;
}

.artist-social-link:hover,
.artist-social-link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.artist-social-icon {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
  flex-shrink: 0;
}

.artist-social-sep {
  margin: 0 0.55rem;
  opacity: 0.55;
}

.content .statement {
  margin: 0 0 1.1rem;
  padding: 0.15rem 0 0.15rem 0.85rem;
  border-left: 2px solid #444;
  color: var(--text-muted);
  font-style: italic;
}

.content .prose {
  margin: 0 0 0.9rem;
  color: var(--text);
}

.content .facts {

  list-style: none;
  margin: 0.5rem 0 1.25rem;
  padding: 0;
}

.content .facts li {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.content .facts li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #fff;
}

.content a.inline {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.content a.inline:hover {
  color: #ccc;
}

/* Page feature image (first CMS media item, inline in content) */
.page-feature {
  /* ~1.6× one thumb (2× minus 20%); text wraps around */
  --page-thumb: calc((22rem - 1.3rem) / 3);
  --page-feature-size: calc(var(--page-thumb) * 1.6 * 1.35); /* +35% vs previous */
  float: left;
  shape-outside: margin-box;
  margin: 0.15rem 1.1rem 0.85rem 0;
  max-width: var(--page-feature-size);
  width: var(--page-feature-size);
}
.page-feature figure {
  margin: 0;
  overflow: hidden;
  background: #111;
  border: 1px solid #2a2a2a;
  aspect-ratio: 1;
  width: 100%;
}
.page-feature img,
.page-feature video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-feature[hidden],
.thumbs[hidden] {
  display: none !important;
}

/* Clear float before end gallery / after wrapped text */
.content .thumbs,
.content .facts,
.content .hub-preview,
.content .consult-form {
  clear: both;
}

@media (max-width: 619px) {
  .page-feature {
    float: none;
    shape-outside: none;
    width: min(100%, var(--page-feature-size));
    max-width: min(100%, var(--page-feature-size));
    margin: 0.75rem 0 1rem;
  }
}

/* Thumbnail grid */
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
  max-width: 22rem;
}

.thumbs a,
.thumbs figure {
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: #111;
  border: 1px solid #2a2a2a;
}

.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.thumbs a:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.thumbs-wide {
  max-width: 28rem;
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 700px) {
  .thumbs-wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Portfolio works CMS output */
.portfolio-works {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.portfolio-work {
  border: 1px solid #333;
  background: rgba(8, 8, 8, 0.82);
  padding: clamp(0.65rem, 1.8vw, 0.9rem);
  min-width: 0;
}

/* Portfolio card title: single line; full text in lightbox */
.content .portfolio-work-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  margin: 0.55rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.content .portfolio-work-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #c8c8c8;
  white-space: normal;
}

.portfolio-work-feature {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto 0.65rem;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
  aspect-ratio: 1;
}

.portfolio-work-feature-btn {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.portfolio-work-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.portfolio-work-feature-btn:hover img {
  transform: scale(1.02);
  opacity: 0.92;
}

.portfolio-work-feature video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  max-height: none;
  background: #000;
  object-fit: cover;
}

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

.portfolio-work-gallery .portfolio-work-thumb {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #111;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  width: 100%;
}

.portfolio-work-gallery img,
.portfolio-work-gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.portfolio-work-gallery video {
  aspect-ratio: 1;
  object-fit: cover;
}

/* Video thumb: static poster + play cue (no live <video> in list) */
.portfolio-work-feature-btn.is-video,
.portfolio-work-thumb.is-video {
  position: relative;
}
.portfolio-work-feature-btn.is-video::after,
.portfolio-work-thumb.is-video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  margin: -1.2rem 0 0 -1.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
  pointer-events: none;
}
.portfolio-work-feature-btn.is-video::before,
.portfolio-work-thumb.is-video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: -0.45rem 0 0 -0.25rem;
  border-style: solid;
  border-width: 0.5rem 0 0.5rem 0.85rem;
  border-color: transparent transparent transparent #fff;
  z-index: 1;
  pointer-events: none;
}

.portfolio-work-gallery .portfolio-work-thumb:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

@media (max-width: 619px) {
  .portfolio-work-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .portfolio-work-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Portfolio lightbox */
body.gox-lightbox-open {
  overflow: hidden;
}

.gox-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gox-lightbox.is-open {
  display: flex;
}

.gox-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}

.gox-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 64rem);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  outline: none;
}

.gox-lightbox-stage {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  max-height: 94vh;
  overflow: auto;
}

.gox-lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
}

.gox-lightbox-media img,
.gox-lightbox-media video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.gox-lightbox-meta {
  color: #e8e8e8;
  text-align: left;
  padding: 0 0.15rem 0.25rem;
}

.gox-lightbox-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #f2f2f2;
}

.gox-lightbox-body {
  margin: 0;
  color: #bdbdbd;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-line;
}

.gox-lightbox-counter {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #9a9a9a;
}

.gox-lightbox-close,
.gox-lightbox-prev,
.gox-lightbox-next {
  position: absolute;
  z-index: 2;
  border: 1px solid #3a3a3a;
  background: rgba(18, 18, 18, 0.9);
  color: #f0f0f0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.gox-lightbox-close {
  top: -0.15rem;
  right: -0.15rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
  border-radius: 999px;
}

.gox-lightbox-prev,
.gox-lightbox-next {
  top: 38%;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.15rem;
}

.gox-lightbox-prev { left: -0.35rem; }
.gox-lightbox-next { right: -0.35rem; }

.gox-lightbox-close:hover,
.gox-lightbox-prev:hover,
.gox-lightbox-next:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: #555;
}

@media (min-width: 800px) {
  .gox-lightbox-stage {
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
  }

  .gox-lightbox-media {
    flex: 1 1 auto;
    min-width: 0;
  }

  .gox-lightbox-media img,
  .gox-lightbox-media video {
    max-height: 86vh;
  }

  .gox-lightbox-meta {
    flex: 0 0 15rem;
    max-width: 17rem;
    align-self: center;
    padding: 0.5rem 0.25rem;
  }

  .gox-lightbox-prev { left: -2.6rem; }
  .gox-lightbox-next { right: -2.6rem; }
}

@media (max-width: 799px) {
  .gox-lightbox {
    padding: 0.65rem;
    align-items: flex-start;
    padding-top: 2.75rem;
  }

  .gox-lightbox-media img,
  .gox-lightbox-media video {
    max-height: 58vh;
  }

  .gox-lightbox-prev,
  .gox-lightbox-next {
    top: auto;
    bottom: 0.35rem;
  }

  .gox-lightbox-prev { left: 0.35rem; }
  .gox-lightbox-next { right: 0.35rem; }

  .gox-lightbox-close {
    top: -2.35rem;
    right: 0;
  }
}

/* Contact form */
.consult-form {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  max-width: 28rem;
}

.consult-form label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.consult-form input[type="file"] {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: #ddd;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #3a3a3a;
  padding: 0.55rem 0.65rem;
}

.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid #3a3a3a;
  padding: 0.55rem 0.65rem;
  border-radius: 0;
}

.consult-form input:focus,
.consult-form select:focus,
.consult-form textarea:focus {
  outline: 1px solid #aaa;
  border-color: #888;
}

.consult-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 1.75rem;
}

.consult-form select option {
  background: #111;
  color: #fff;
}

.consult-form .row-2 {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .consult-form .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.consult-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.consult-form .note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #000;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  width: fit-content;
}

.btn:hover {
  background: #fff;
}

.consult-form[hidden],
.consult-form.is-hidden {
  display: none !important;
}

.form-success {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #666;
  background: rgba(30, 30, 30, 0.95);
  font-size: 1.02rem;
  line-height: 1.55;
  color: #f0f0f0;
}

.form-success[hidden] {
  display: none !important;
}

.contact-meta {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-meta a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Footer — social + copyright (all pages, desktop + mobile) */
.panel-footer {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: auto;
  padding-top: 1.5rem;
  padding-bottom: 0.85rem;
  flex-shrink: 0;
  background: #000;
}


.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.25rem;
  max-width: 40rem;
}
@media (min-width: 620px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem 1.5rem;
  }
}
.footer-heading {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b8b8b8;
}
.footer-links,
.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-links a,
.footer-contact a {
  color: #b8b8b8;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #f5a623;
}
.footer-address {
  font-size: 0.8rem;
  color: #b8b8b8;
  line-height: 1.4;
}
.footer-col--contact .social {
  margin-top: 0.75rem;
}

.footer-rule {
  height: 2px;
  width: min(100%, 40rem);
  margin: 0 0 1.25rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #fff 4%,
    #fff 96%,
    transparent 100%
  );
  opacity: 0.85;
  clip-path: polygon(
    0 40%,
    8% 0,
    18% 100%,
    28% 20%,
    40% 90%,
    52% 10%,
    64% 100%,
    76% 30%,
    88% 80%,
    100% 40%,
    100% 60%,
    88% 100%,
    76% 50%,
    64% 100%,
    52% 30%,
    40% 100%,
    28% 40%,
    18% 100%,
    8% 20%,
    0 60%
  );
}

.social {
  display: flex;
  gap: 1rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  color: #fff;
  opacity: 0.9;
}

.social a:hover {
  opacity: 1;
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.footer-copy {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: #777;
}

/* ========== Desktop split ========== */
@media (min-width: 900px) {
  .page-split {
    grid-template-columns: var(--left-w) var(--right-w);
    grid-template-rows: 1fr;
  }

  .page-split > .panel-left {
    grid-column: 1;
    grid-row: 1;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 4;
  }

  .page-split > .panel-right {
    grid-column: 2;
    grid-row: 1;
    min-height: 100vh;
    min-height: 100dvh;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 2;
    overflow: hidden;
    background-color: #000;
  }

  /* Photo as cover background layer */
  .panel-right img.hero-photo,
  .panel-right video.hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* Paul's edge PNG: black left / transparent right, left-aligned, repeats on height */
  .panel-right::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 8rem;
    z-index: 2;
    pointer-events: none;
    /* PNG first for Safari/macOS 11; image-set type() can invalidate the whole rule there */
    background-image: url("assets/divider-edge-seamless-web.png");
    background-image: -webkit-image-set(url("assets/divider-edge-seamless-web.webp") 1x, url("assets/divider-edge-seamless-web.png") 1x);
    background-image: image-set(url("assets/divider-edge-seamless-web.webp") type("image/webp"), url("assets/divider-edge-seamless-web.png") type("image/png"));
    background-position: left top;
    background-size: 100% auto;
    background-repeat: repeat-y;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}

/* ========== Mobile nav ========== */
@media (max-width: 899px) {
  .page-split {
    overflow: visible;
    max-width: 100%;
    min-height: 0;
    height: auto;
  }

  .panel-footer {
    display: block !important;
    background: #000;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }

  .panel-left {
    overflow-x: clip;
    overflow-y: visible;
    max-width: 100%;
    max-height: none;
    height: auto;
    min-height: 0;
  }

  .panel-left > *,
  .content,
  .hub-preview {
    max-width: 100%;
    min-width: 0;
  }

  .content {
    overflow: visible;
  }

  .panel-right {
    min-height: 42vw;
    max-height: 55vh;
    aspect-ratio: 3 / 4;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 50;
    background: #000;
    padding: 0.65rem 0 0.85rem;
    margin: 0 0 0.25rem;
  }

  .site-header .brand-row {
    margin: 0;
    padding-right: 3.5rem; /* room for fixed burger */
    align-items: center;
  }

  .site-header .brand {
    margin: 0;
  }

  .site-header .brand img {
    width: clamp(3.25rem, 18vw, 4.5rem);
  }

  .site-header .nav-rule {
    display: none;
  }

  .nav-toggle {
    display: flex;
    position: fixed;
    top: 0.85rem;
    right: var(--pad-x);
  }

  .header-quick {
    display: none;
  }
  .nav-mobile-only {
    display: list-item;
  }
  .header-util {
    gap: 0.55rem;
  }
  .lang-switch {
    position: static;
    z-index: 1;
    margin: 0;
    background: transparent;
    padding: 0;
  }

  .nav-bar {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    position: static;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 5.75rem var(--pad-x) 2rem;
    background: #000;
    border: 0;
  }

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

  .nav-links li {
    border-bottom: 1px solid #333;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 0.15rem;
    border-bottom: none;
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: #ddd;
  }

  .nav-links a[aria-current="page"] {
    background: transparent;
    color: #f5a623;
  }
  .nav-links > li.has-sub.is-current-section > a {
    color: #f5a623;
  }
  .nav-links .subnav a[aria-current="page"] {
    color: #f5a623;
  }

  .nav-links a:hover {
    background: transparent;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.35em;
  }

  /* Accordion submenus inside burger */
  .nav-links .subnav {
    display: none;
    position: static;
    left: auto;
    right: auto;
    top: auto;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
    padding: 0 0 0.5rem 0.75rem;
    background: transparent;
    border: 0;
    border-left: 1px solid #444;
  }
  .nav-links > li.has-sub.is-open > .subnav {
    display: flex;
  }
  .nav-links > li.has-sub > a::after {
    content: " +";
    font-weight: 400;
    color: #888;
  }
  .nav-links > li.has-sub.is-open > a::after {
    content: " −";
    color: #ccc;
  }
  .nav-links .subnav a {
    display: block;
    padding: 0.65rem 0.35rem;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: #bbb;
  }
  .nav-links .subnav li {
    border-bottom: 0;
  }

  .nav-rule {
    display: none;
  }

  .thumbs {
    max-width: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}


.consult-form .style-checks {
  border: 1px solid #3a3a3a;
  margin: 0;
  padding: 0.65rem 0.75rem 0.75rem;
}

.consult-form .style-checks legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.consult-form .style-checks .check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0 0;
  color: #eee;
  font-size: 0.95rem;
  cursor: pointer;
}

.consult-form .style-checks input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.consult-form .cover-checks {
  border: 1px solid #3a3a3a;
  margin: 0;
  padding: 0.65rem 0.75rem 0.75rem;
}

.consult-form .cover-checks legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.consult-form .cover-checks .check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0 0;
  color: #eee;
  font-size: 0.95rem;
  cursor: pointer;
}

.consult-form .cover-checks input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #fff;
  cursor: pointer;
}

.consult-form textarea#description {
  min-height: 9rem;
}

.consult-form .refs-block {
  border: 1px solid #3a3a3a;
  margin: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.consult-form .refs-block legend {
  padding: 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.consult-form .note-emphasis {
  color: #c8c8c8;
  margin-top: 0.35rem;
}

.consult-form .consult-when {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 700px) {
  .consult-form .consult-when {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2.25rem;
    align-items: start;
  }
}

.consult-form .consult-intro {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #e8e8e8;
  line-height: 1.45;
}


/* Hub section previews (parent menu pages) */
.hub-preview {
  margin-bottom: 2.75rem;
  padding-bottom: 0;
  position: relative;
}
/* Same white jagged rule as under the menu (.nav-rule) */
.hub-preview:not(:last-of-type)::after {
  content: "";
  display: block;
  clear: both;
  height: 2px;
  width: min(100%, 40rem);
  margin: 2rem 0 0.5rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #fff 4%,
    #fff 96%,
    transparent 100%
  );
  clip-path: polygon(
    0 40%,
    8% 0,
    18% 100%,
    28% 20%,
    40% 90%,
    52% 10%,
    64% 100%,
    76% 30%,
    88% 80%,
    100% 40%,
    100% 60%,
    88% 100%,
    76% 50%,
    64% 100%,
    52% 30%,
    40% 100%,
    28% 40%,
    18% 100%,
    8% 20%,
    0 60%
  );
  opacity: 0.85;
}
.hub-preview:last-of-type {
  margin-bottom: 1.5rem;
}
.hub-preview .see-more {
  margin-top: 2.4rem;
  margin-bottom: 0.25rem;
}
.hub-preview-body .hub-preview-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}
.see-more {
  margin-top: 2.4rem;
  clear: both;
}
.hub-preview .hub-preview-body {
  /* allow text to wrap beside .hub-preview-photo */
  display: block;
  overflow: visible;
}

.see-more-btn {
  display: inline-block;
  padding: 0.32rem 0.7rem;
  background: var(--nav-bg);
  color: #e8e8e8 !important;
  text-decoration: none !important;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid #3a3a3a;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.see-more-btn:hover,
.see-more-btn:focus-visible {
  background: rgba(70, 70, 70, 0.95);
  color: #f5a623 !important;
  border-color: #f5a623;
}
.portfolio-works--preview {
  margin-bottom: 1.85rem;
}

.hub-preview-photo.page-feature {
  float: left;
  shape-outside: margin-box;
  --hub-thumb: 9.25rem;
  width: var(--hub-thumb);
  max-width: var(--hub-thumb);
  margin: 0.1rem 0.95rem 0.75rem 0;
}
.page-home .hub-preview-photo.page-feature {
  --hub-thumb: min(10rem, 42vw);
}
@media (min-width: 620px) {
  .hub-preview-photo.page-feature {
    --hub-thumb: 10.5rem;
  }
  .page-home .hub-preview-photo.page-feature {
    --hub-thumb: 11.25rem;
  }
}
.hub-preview-photo.page-feature figure {
  aspect-ratio: 1;
}
.hub-preview-body {
  display: block;
  overflow: visible;
}
@media (max-width: 619px) {
  .hub-preview-photo.page-feature {
    float: none;
    shape-outside: none;
    width: var(--hub-thumb);
    max-width: var(--hub-thumb);
    margin: 0 0 0.75rem;
  }
}

.portfolio-works--preview .portfolio-work-feature {
  max-width: calc((22rem - 1.3rem) / 3);
  width: 100%;
}
.portfolio-works--preview .portfolio-work-feature-btn,
.portfolio-works--preview .portfolio-work-feature video {
  aspect-ratio: 1;
  width: 100%;
  display: block;
}
.portfolio-works--preview .portfolio-work-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-works--preview .portfolio-work {
  padding: 0.5rem;
}


/* Home — larger section subtitles */
.page-home .content h2 {
  font-size: 1.22rem;
  letter-spacing: 0.04em;
}

/* Home — dedicated Consultație zone */
.home-consult {
  margin-top: 0.35rem;
  padding: 1.35rem 1.15rem 1.5rem;
  border: 1px solid #3a3a3a;
  background: rgba(28, 28, 28, 0.92);
}
.home-consult.hub-preview:not(:last-of-type)::after {
  /* keep jagged rule below the bordered block */
  margin-top: 2.25rem;
}
.home-consult-label {
  margin: 0 0 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.home-consult h2 {
  margin-top: 0;
}
.home-consult .hub-preview-body p {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  margin: 0.55rem 0 0;
  color: #e0e0e0;
  line-height: 1.5;
  font-size: 0.92rem;
}
.home-consult-cta {
  margin-top: 1.55rem;
}
.see-more-btn--primary {
  background: #e8e8e8;
  color: #111 !important;
  border-color: #e8e8e8;
  padding: 0.48rem 0.95rem;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
}
.see-more-btn--primary:hover,
.see-more-btn--primary:focus-visible {
  background: #fff;
  color: #000 !important;
  border-color: #fff;
}


/* Home — latest works as one horizontal line */
.portfolio-works--row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  padding-bottom: 0.35rem;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  scroll-snap-type: x proximity;
}
.portfolio-works--row .portfolio-work--tile {
  flex: 0 0 auto;
  width: 8.75rem;
  max-width: 8.75rem;
  margin: 0;
  scroll-snap-align: start;
}
@media (min-width: 620px) {
  .portfolio-works--row .portfolio-work--tile {
    width: 9.5rem;
    max-width: 9.5rem;
  }
}
.portfolio-works--row .portfolio-work-title {
  display: none;
}
.portfolio-works--row .portfolio-work-feature {
  max-width: none;
  width: 100%;
  margin: 0;
}
.portfolio-works--row .portfolio-work-feature-btn,
.portfolio-works--row .portfolio-work-thumb,
.portfolio-works--row .portfolio-work-feature video {
  aspect-ratio: 1;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}
.portfolio-works--row .portfolio-work-feature img,
.portfolio-works--row .portfolio-work-thumb img,
.portfolio-works--row .portfolio-work-feature video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Home — latest works 2×2 square grid */
.portfolio-works--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 1rem;
  margin-bottom: 0.55rem;
  overflow: visible;
}
.portfolio-works--grid .portfolio-work--grid-tile,
.portfolio-works--grid .portfolio-work--tile {
  width: 100%;
  max-width: none;
  margin: 0;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.portfolio-works--grid .portfolio-work-feature {
  border: 0;
  background: transparent;
}
.portfolio-works--grid .portfolio-work-title {
  display: none;
}
.portfolio-works--grid .portfolio-work-feature {
  max-width: none;
  width: 100%;
  margin: 0;
}
.portfolio-works--grid .portfolio-work-feature-btn,
.portfolio-works--grid .portfolio-work-thumb,
.portfolio-works--grid .portfolio-work-feature video {
  aspect-ratio: 1;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: #111;
  cursor: pointer;
}
.portfolio-works--grid .portfolio-work-feature img,
.portfolio-works--grid .portfolio-work-thumb img,
.portfolio-works--grid .portfolio-work-feature video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* —— Review page —— */
.page-review .site-header--minimal .nav-bar { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.consult-form.review-form .rating-stars {
  border: 0;
  margin: 0;
  padding: 0;
}

.consult-form.review-form .rating-stars legend {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted, #aaa);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.consult-form.review-form .rating-options {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.15rem;
}

.consult-form.review-form .rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.consult-form.review-form .rating-options label {
  cursor: pointer;
  font-size: 1.95rem;
  line-height: 1;
  color: #444;
  margin: 0;
  padding: 0.15rem 0.1rem;
  transition: color 0.12s ease;
}

.consult-form.review-form .rating-options label:hover,
.consult-form.review-form .rating-options label:hover ~ label,
.consult-form.review-form .rating-options input:checked ~ label {
  color: #f5a623;
}

.consult-form.review-form .rating-options input:focus-visible + label {
  outline: 1px solid #aaa;
  outline-offset: 2px;
}


/* Home — reviews carousel (one-at-a-time fade) */
.home-reviews .reviews-carousel {
  position: relative;
  margin-top: 0.85rem;
  max-width: 100%;
  min-width: 0;
}
.reviews-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 2.25rem;
}
.reviews-track {
  display: block;
  width: 100%;
  position: relative;
  min-height: 6rem;
  transform: none !important;
}
.review-slide {
  display: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 0.35rem 0.15rem 0.55rem;
  border: 0;
  background: transparent;
}
.review-slide.is-active {
  display: block;
}
.content .review-slide-stars,
.review-slide-stars {
  color: #f5a623;
  letter-spacing: 0.14em;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.55rem;
}
.content .review-slide-stars .star-off,
.review-slide-stars .star-off {
  color: #5a5a5a;
}
.review-slide-body {
  margin: 0 0 0.75rem;
  color: #e8e8e8;
  line-height: 1.55;
  font-size: 1.05rem;
  font-style: italic;
}
.content .review-slide-name,
.review-slide-name {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5a623;
  font-style: normal;
}
.review-slide-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
}
.review-slide-photos img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border: 0;
  display: block;
}
.reviews-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid #555;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.reviews-nav--prev { left: 0; }
.reviews-nav--next { right: 0; }
.reviews-nav:hover,
.reviews-nav:focus-visible {
  border-color: #aaa;
  background: rgba(20, 20, 20, 0.95);
}
.reviews-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
}
.reviews-dots button {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #555;
  cursor: pointer;
}
.reviews-dots button.is-active {
  background: #f5a623;
}
.home-reviews[hidden],
.reviews-carousel[data-empty="1"] {
  display: none !important;
}

.review-read-more {
  display: inline-block;
  margin: -0.35rem 0 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b0b0b0;
  font: inherit;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.review-read-more:hover,
.review-read-more:focus-visible {
  color: #fff;
}


/* Portfolio hub — section links only (no snippets) */
.portfolio-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.75rem 0 1rem;
  max-width: 40rem;
}
.portfolio-section-link {
  display: block;
  padding: 1.15rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
  transition: color 0.15s ease, padding-left 0.15s ease;
}
.portfolio-sections .portfolio-section-link:first-child {
  border-top: 1px solid #333;
}
.portfolio-section-link:hover,
.portfolio-section-link:focus-visible {
  color: #f5a623;
  padding-left: 0.35rem;
}

/* —— Site chat (Receptioner) —— */
.gox-chat-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9000;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  border: 1px solid #444;
  background: #111;
  color: #f0f0f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.gox-chat-fab:hover,
.gox-chat-fab:focus-visible,
.gox-chat-fab[aria-expanded="true"] {
  color: #f5a623;
  border-color: #f5a623;
  outline: none;
}
.gox-chat-fab:focus-visible {
  box-shadow: 0 0 0 2px #000, 0 0 0 4px #f5a623;
}
.gox-chat-fab svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gox-chat-panel {
  position: fixed;
  right: 1.1rem;
  bottom: 4.75rem;
  z-index: 9000;
  width: min(22.5rem, calc(100vw - 1.5rem));
  height: min(32rem, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid #333;
  color: #f0f0f0;
  font-family: var(--font);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  transform: translateY(0.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.gox-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.gox-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  background: #111;
}
.gox-chat-header-text {
  min-width: 0;
}
.gox-chat-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f5f5f5;
}
.gox-chat-sub {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: #a8a8a8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.gox-chat-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: 1px solid #444;
  background: transparent;
  color: #ddd;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.gox-chat-close:hover,
.gox-chat-close:focus-visible {
  color: #f5a623;
  border-color: #f5a623;
  outline: none;
}

.gox-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  scroll-behavior: smooth;
}
.gox-chat-msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #2e2e2e;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.gox-chat-msg--bot {
  align-self: flex-start;
  background: #121212;
  color: #e8e8e8;
}
.gox-chat-msg--user {
  align-self: flex-end;
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: #f5f5f5;
}
.gox-chat-msg a {
  color: #f5a623;
  text-decoration: underline;
}

.gox-chat-form {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid #2a2a2a;
  background: #0d0d0d;
}
.gox-chat-input {
  flex: 1;
  min-width: 0;
  background: #000;
  border: 1px solid #3a3a3a;
  color: #f0f0f0;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
}
.gox-chat-input::placeholder {
  color: #777;
}
.gox-chat-input:focus {
  outline: none;
  border-color: #f5a623;
}
.gox-chat-send {
  flex-shrink: 0;
  border: 1px solid #555;
  background: #161616;
  color: #f0f0f0;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}
.gox-chat-send:hover,
.gox-chat-send:focus-visible {
  color: #111;
  background: #f5a623;
  border-color: #f5a623;
  outline: none;
}
.gox-chat-send:disabled {
  opacity: 0.45;
  cursor: wait;
}
.gox-chat-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 520px) {
  .gox-chat-fab {
    right: 0.85rem;
    bottom: 0.85rem;
  }
  .gox-chat-panel {
    right: 0.5rem;
    left: 0.5rem;
    width: auto;
    bottom: 4.4rem;
    height: min(70vh, calc(100vh - 5.5rem));
  }
}

@media print {
  .gox-chat-fab,
  .gox-chat-panel {
    display: none !important;
  }
}


/* Lightbox: thumbnail strip when a work has multiple media */
.gox-lightbox-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  max-width: min(92vw, 52rem);
  margin: 0.65rem auto 0;
  padding: 0.15rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
}
.gox-lightbox-thumb {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid #444;
  background: #111;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
}
.gox-lightbox-thumb.is-active {
  opacity: 1;
  border-color: #f5a623;
}
.gox-lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Portfolio load more */
.portfolio-load-more {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.25rem;
  padding: 0.75rem 0 0.25rem;
}
.portfolio-load-more-btn {
  appearance: none;
  border: 1px solid #555;
  background: #141414;
  color: #f2f2f2;
  font: inherit;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0.7rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.portfolio-load-more-btn:hover {
  border-color: #f5a623;
  color: #f5a623;
}
.portfolio-load-more-count {
  margin: 0;
  font-size: 0.8rem;
  color: #888;
}


/* Studio reviews list page */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.review-card {
  border: 1px solid #333;
  background: #0a0a0a;
  padding: 1rem 1.1rem;
}
.review-card-name {
  margin: 0 0 0.35rem;
  color: #e87722;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.review-card-stars {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}
.review-card-stars .star-on { color: #e87722; }
.review-card-stars .star-off { color: #555; }
.review-card-body {
  margin: 0;
  font-style: italic;
  line-height: 1.55;
  color: #ddd;
}
.review-card-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.review-card-photos img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
  border: 1px solid #333;
}


/* Chat CTA button (same look as see-more link) */
button.see-more-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.home-consult-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
