/* ============================================
   GULIMAN Design Studio — Global Stylesheet
   ============================================ */

:root {
  --header-h: 66px;
  --bottom-h: calc(var(--header-h) / 2);
}

/* ---------- RESET & BASE ---------- */
.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;
}

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

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

body {
  overflow-x: hidden;
  font-family: 'Montserrat', sans-serif;
  color: #464646;
  background: #fff;
  min-height: calc(100vh * var(--counter-zoom, 1));
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

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

/* ---------- FOCUS VISIBLE ---------- */
:focus-visible {
  outline: 2px solid rgb(238,120,37);
  outline-offset: 2px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  padding: 0.9rem 2.5% 0.7rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  box-shadow: none;
}

.site-header .logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 0;
}

.nav-btn {
  width: 20px;
  height: 20px;
  background: #464646;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  line-height: 0;
  transition: background 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-btn:hover {
  background: #464646;
  transform: scale(1.15);
}
.nav-btn:hover svg {
  transform: translate(-50%, -50%) scale(0.87);
}

.nav-btn:active {
  transform: scale(0.95);
}

.nav-btn[aria-current="page"] {
  background: rgb(238,120,37);
}

.nav-btn::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateY(-3px);
  margin-bottom: 4px;
  background: rgb(238,120,37);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  letter-spacing: 0.03em;
  line-height: normal;
  zoom: var(--counter-zoom, 1);
}

.nav-btn:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-btn svg {
  width: 13px;
  height: 13px;
  fill: white;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   BOTTOM BAR
   ============================================ */
/* Project content stack on portfolio page */

.bottom-bar {
  position: relative;
  width: 100%;
  text-align: center;
  padding: 0;
  background: rgb(238,120,37);
  z-index: 1100;
  height: var(--bottom-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none;
  filter: none;
  /* Layout isolation so the bottom bar never participates in a reflow
     triggered by other fixed elements. Visually identical. */
  contain: layout;
}

.bottom-bar span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
}

.bottom-bar a {
  font-size: 0.9rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.2s ease;
}

.bottom-bar a:hover {
  text-decoration-color: #fff;
}

.bottom-bar-sep {
  opacity: 0.6;
}

/* ============================================
   AWWWARDS ENTRANCE ANIMATIONS
   ============================================ */
@keyframes aww-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes aww-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aww-kenBurns {
  from { transform: scale(1.3); }
  to { transform: scale(1); }
}

/* ============================================
   HOMEPAGE — SLIDER
   ============================================ */
.slide-wrapper {
  width: 100%;
  height: calc(100vh * var(--counter-zoom, 1) - var(--header-h));
  position: relative;
  background: #dddee0;
  overflow: hidden;
  animation: aww-fadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Promote ONLY the active slide image to a GPU layer. Keeping
   will-change on all 4 full-HD images held 4 permanent layers,
   which exhausted GPU memory and froze scrolling on mobile.
   Visually identical — the animation still runs the same. */
.slide.active img {
  will-change: transform;
  animation: aww-kenBurns 4.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide-text {
  position: absolute;
  bottom: 8%;
  left: 0;
  top: auto;
  transform: none;
  background: transparent;
  padding: 1.5rem 3.5rem 1.5rem 2.5%;
  text-align: left;
  will-change: opacity, transform;
  z-index: 10;
}

@media (min-width: 1024px) {
  #slide-welding .slide-text,
  #slide-katana .slide-text,
  #slide-kintsugi .slide-text,
  #slide-european .slide-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4em;
  }
  /* line1 mai lung -> pauza mai mare inainte de line2 (IDEAS / TOGETHER) */
  #slide-katana .slide-text,
  #slide-welding .slide-text {
    gap: 0.6em;
  }
}

#slide-welding.active .line1 { animation: none !important; opacity: 1; }

#slide-welding .line1,
#slide-welding .line2,
#slide-katana .line1,
#slide-katana .line2,
#slide-european .line1,
#slide-european .line2 {
  color: #fff;
}

#slide-kintsugi .line2 { color: #464646; }


.slide.active .slide-text {
  animation: aww-fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

.slide-text .line1 {
  font-size: 24pt;
  font-weight: 200;
  text-transform: uppercase;
  color: #464646;
  letter-spacing: normal;
  line-height: 1.25;
  will-change: opacity, transform;
}

.slide.active .line1 {
  animation: aww-slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.slide-text .line2 {
  font-size: 24pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.25;
  will-change: opacity, transform;
}

.slide.active .line2 {
  animation: aww-slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

/* Dots */
.dots-row {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8.5px;
  z-index: 100;
}

.dot {
  width: 17px;
  height: 17px;
  background: rgb(238,120,37);
  border: none;
  cursor: pointer;
  position: relative;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: white;
}

.dot.active { opacity: 1; }
.dot:not(.active) { opacity: 0.4; }
.dot:hover { transform: scale(1.15); opacity: 0.8; }
.dot:active { transform: scale(0.9); }
.dot.active:hover { opacity: 1; }

/* ============================================
   PORTFOLIO — GRID
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  background: #dddee0;
  scroll-margin-top: var(--header-h);
}

.p-cell {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: zoom-in;
  transition: background 0.15s;
  margin: 0;
  padding: 0;
  border: none;
  background: #f6f6f6;
}

.p-img {
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  position: relative;
  order: -1;
  aspect-ratio: 3 / 2;
  background: #f6f6f6;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.p-cell:hover .p-img img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* Hover slideshow layer (project works cycling over the button image) */
.p-img img.p-hover-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: none;
  filter: none;
  background: #f6f6f6;
  transition: opacity 0.2s ease;
}
.p-cell:hover .p-img img.p-hover-slide {
  transform: none;
  filter: none;
}
.p-img img.p-hover-slide.is-on { opacity: 1; }

.p-txt {
  width: 100%;
  padding: 0.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #f6f6f6;
  transition: background 0.15s;
  position: relative;
  overflow: visible;
  aspect-ratio: 3 / 2;
  min-height: auto;
}

/* Bachmann — first cell, centered vertically */
.portfolio-grid > a:first-of-type .p-txt {
  padding: 0.8rem 1.4rem;
  justify-content: center;
}

.p-txt::before {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  height: 20px;
  background: transparent;
  box-shadow: 0 15px 10px -12px rgba(0,0,0,0.25);
  transform: rotate(-1.5deg);
  z-index: -1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.p-txt::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 10px;
  right: 10px;
  height: 20px;
  background: transparent;
  box-shadow: 0 15px 10px -12px rgba(0,0,0,0.25);
  transform: rotate(1.5deg);
  z-index: -1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.p-cell:hover .p-txt::before {
  box-shadow: 0 18px 12px -14px rgba(0,0,0,0.35);
  transform: rotate(-2deg);
}

.p-cell:hover .p-txt::after {
  box-shadow: 0 18px 12px -14px rgba(0,0,0,0.35);
  transform: rotate(2deg);
}

.p-cell:hover .p-txt {
  background: rgb(238,120,37);
}

.grid-separator {
  grid-column: 1 / -1;
  height: 0;
  background: #dddee0;
  pointer-events: none;
}

.p-cell:hover .p-txt h3,
.p-cell:hover .p-txt ul li {
  color: #fff;
}

.p-txt h3 {
  font-size: 24pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #464646;
  letter-spacing: normal;
  margin-bottom: 0.25rem;
  line-height: 1.05;
}

.p-txt ul {
  list-style: none;
}

.p-txt ul li {
  font-size: 12pt;
  font-weight: 400;
  text-transform: uppercase;
  color: #464646;
  letter-spacing: normal;
  line-height: 1.3;
}

/* ============================================
   PROJECT PAGE — NAVIGATION & CLOSE
   ============================================ */
.lb-close-bottom {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  background: rgb(238,120,37);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 1.5rem;
  position: relative;
  top: -10px;
  transition: background 0.3s ease;
}

.lb-close-bottom:hover {
  background: rgb(238,120,37);
  transform: scale(1.15);
}
.lb-close-bottom:hover svg {
  transform: scale(0.87);
}

.lb-close-bottom svg {
  width: 15px;
  height: 15px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}

/* ============================================
   PROJECT PAGES
   ============================================ */
.project-page {
  padding: 0 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh * var(--counter-zoom, 1) - var(--header-h));
  max-width: 1920px;
  margin: 0 auto;
  background: #fff;
  overflow-x: hidden;
}

.project-nav-top {
  position: fixed;
  top: calc(var(--header-h) + 28px);
  left: calc(2.5% + 2px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  z-index: 90;
  pointer-events: none;
}

.project-nav-top .proj-nav-btn,
.project-nav-top .lb-close-bottom {
  pointer-events: auto;
}

.project-nav-top .lb-close-bottom {
  text-decoration: none;
  margin: 0;
  position: static;
  top: auto;
  order: 3;
}

.project-nav-top .proj-nav-btn:first-child { order: 2; }
.project-nav-top .proj-nav-btn:last-child  { order: 1; }

.proj-nav-btn {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex-shrink: 0;
  background: #464646;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.proj-nav-btn:hover {
  background: #464646;
  transform: scale(1.15);
}
.proj-nav-btn:hover svg {
  transform: translate(-50%, -50%) scale(0.87);
}

.proj-nav-btn svg {
  width: 13px;
  height: 13px;
  fill: white;
  stroke: none;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ============================================
   IMAGE ZOOM POPUP
   ============================================ */
.img-zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  overflow: hidden;
}
.img-zoom-overlay.active {
  display: flex;
}
.img-zoom-overlay img {
  max-width: 94%;
  max-height: 94%;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  will-change: transform, opacity;
}
.zoom-close, .zoom-prev, .zoom-next {
  position: fixed;
  left: calc(2.5% + 2px);
  width: 20px; height: 20px;
  background: #464646;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background 0.3s ease;
}
.zoom-close:hover, .zoom-prev:hover, .zoom-next:hover { background: #464646; transform: scale(1.15); }
.zoom-close:hover svg, .zoom-prev:hover svg, .zoom-next:hover svg { transform: translate(-50%, -50%) scale(0.87); }
.zoom-next { top: calc(50% - 40px); }
.zoom-prev { top: calc(50% - 10px); }
.zoom-close { top: calc(50% + 20px); }
.zoom-close svg {
  width: 15px; height: 15px;
  stroke: white; stroke-width: 3; fill: none;
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.zoom-prev svg, .zoom-next svg {
  width: 13px; height: 13px;
  fill: white; stroke: none;
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* Grid images hover effect on project pages */
.project-page .lb-gallery-grid img {
  cursor: pointer;
}
.project-page .lb-gallery-grid img:hover {
  filter: brightness(0.85);
}

/* Toate imaginile din galerie sunt clickabile */
.project-page .lb-gallery-grid img:first-of-type {
  cursor: zoom-in;
  pointer-events: auto;
}

.lb-hero-img {
  width: calc(100% + 2rem);
  max-width: none;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-bottom: 6px;
  height: auto;
  display: block;
}


.lb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--lb-cols, 3), minmax(0, 1fr));
  gap: 6px;
  max-width: none;
  width: calc(100% + 2rem);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-bottom: 6px;
}

.lb-gallery-grid .lb-description {
  grid-column: 5 / -1;
  grid-row: 1;
  max-width: none;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.lb-gallery-grid .lb-description + img {
  grid-column: 1 / span 4;
  grid-row: 1;
  object-fit: cover;
  width: 100%;
  height: 100%;
  align-self: stretch;
}

.lb-gallery-grid img {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: auto;
  display: block;
}

.lb-description {
  background: #e8e8e8;
  max-width: 1100px;
  width: 100%;
  padding: 2rem 2.5rem;
  margin-bottom: 0;
}

.lb-desc-title {
  font-size: 36pt;
  font-weight: 600;
  color: #464646;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.lb-description p.lb-desc-services {
  font-size: 1rem;
  font-weight: 400;
  color: #464646;
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 0.8rem;
}

.lb-description p {
  font-size: 1rem;
  font-weight: 400;
  color: #464646;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}

.lb-description p:last-child {
  margin-bottom: 0;
}

/* Full-width intro box (Straight Out of Camera): keep text clear of the fixed side arrows */
@media (min-width: 769px) {
  .lb-description.lb-intro { padding-left: 6rem; }
}

/* ============================================
   10 DESIGN PRINCIPLES
   ============================================ */
.principles-section {
  background: #f6f6f6;
  padding: 4rem 0 4rem 0;
  width: 100%;
}

.principles-section .principles-title,
.principles-section .principles-subtitle,
.principles-section .principle h3,
.principles-section .principle p {
  color: #464646;
}

.principles-layout {
  padding: 0 2.5%;
}

.principles-title-col {
  margin-bottom: 3rem;
}

.principles-title {
  text-align: left;
  font-size: 36pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.1;
  margin: 0;
}

.principles-subtitle {
  text-transform: none;
  font-size: 16pt;
  font-weight: 400;
  display: block;
  margin-top: 0.1rem;
  color: #fff;
}

.principles-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 1rem 4rem;
  max-width: 750px;
  margin: 0 auto;
}

.principle {
  margin-bottom: 0.8rem;
}

.principle h3 {
  font-size: 16pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  margin-bottom: 0.05rem;
  line-height: 1.3;
  white-space: nowrap;
  text-align: left;
}

.principle p {
  font-size: 12pt;
  font-weight: 400;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.6;
  text-align: left;
}

/* ============================================
   ABOUT US — TEXT ONLY
   ============================================ */
/* Wrapper for the hero zone — anchors the marquee, clips overflow */
.about-hero-wrap {
  position: relative;
  overflow: visible;
}

/* Solid overlay that hides the marquee to the left of the TRADITIONAL VALUES column */
@media (min-width: 769px) {
  .about-hero-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(8% + 84% * (1.06 / 3.12));
    height: 100%;
    background: rgb(238,120,37);
    z-index: 2;
    pointer-events: none;
  }
}

.about-text-only {
  display: grid;
  grid-template-columns: 1fr 0.06fr 1fr 0.06fr 1fr;
  align-content: center;
  min-height: calc(100vh * var(--counter-zoom, 1) - var(--header-h));
  padding: calc(1rem + 20px) 8% calc(3rem + 200px) 8%;
  gap: 0;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.about-block {
  pointer-events: auto;
}

/* About Us marquee headline — same style as .contact-tall-headline */
.about-tall-headline {
  position: absolute;
  left: 0;
  bottom: calc(50% - min(35vh, 275px) + 10px);
  top: auto;
  transform: translateX(100vw);
  z-index: 4;
  font-weight: 100;
  font-size: 120pt;
  line-height: 1;
  color: #fff;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  opacity: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  touch-action: pan-y;
  will-change: transform;
}

@media (max-width: 768px) {
  .about-tall-headline {
    display: block;
    bottom: 40px;
    top: auto;
  }
}

.about-block:nth-child(1) { grid-column: 1; }
.about-block:nth-child(2) { grid-column: 3; }
.about-block:nth-child(3) { grid-column: 5; }

.h3-light {
  font-weight: 200;
}

.about-block h3 {
  font-size: 36pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  margin-bottom: 0.05rem;
  line-height: 1.05;
}

.about-block p {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.6;
  max-width: 560px;
  text-wrap: pretty;
}

.about-signature {
  margin-top: 2.5rem;
  max-width: 220px;
  height: auto;
  display: block;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  animation: signDraw 10s ease-out forwards;
}

@keyframes signDraw {
  0% { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  60% { clip-path: polygon(0 0, 110% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 110% 0, 100% 100%, 0 100%); }
}

/* ============================================
   CONTACT
   ============================================ */
.page-about {
  background: rgb(238,120,37);
}
.page-about .site-header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.page-contact {
  background: rgb(238,120,37);
}
.page-contact .site-header {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.contact-wrap {
  display: flex;
  min-height: calc(100vh * var(--counter-zoom, 1) - var(--header-h));
  align-items: center;
  justify-content: center;
  padding: 2rem 5%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

/* Contact headline: marquee + drag + inertia (X only, Y fixed via bottom) */
.contact-wrap > .contact-left {
  pointer-events: none;
  position: relative;
  z-index: 2;
}



.contact-tall-headline {
  position: absolute;
  left: 0;
  bottom: calc(50% - min(35vh, 275px) + 10px); /* vertical position relative to brush base */
  top: auto;
  /* Y is fixed by bottom; X is driven entirely by JS marquee */
  transform: translateX(100vw);
  z-index: 1; /* below brush container */
  font-weight: 100;
  font-size: 120pt;
  line-height: 1;
  color: #fff;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  opacity: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  /* No CSS animation — motion handled by requestAnimationFrame in main.js */
  touch-action: pan-y;
  will-change: transform;
}

.contact-left {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-right: calc(2rem + 16px);
  margin-left: -15px;
}

.contact-left img {
  height: 70vh;
  max-height: 550px;
  width: auto;
  object-fit: contain;
  margin-bottom: -10px;
}

.contact-right {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -65px;
  margin-top: -3px;
  position: relative;
  z-index: 5;
}

.contact-right h2 {
  font-size: 36pt;
  font-weight: 200;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  margin-bottom: 0.6rem;
}

.contact-info {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-info a {
  color: #fff;
  transition: text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
}

.contact-info a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.contact-tagline {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: calc(-0.5rem - 5px);
  letter-spacing: normal;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .slide { transition: opacity 0.3s ease; }
  .slide.active img { animation: none; }
}

/* ============================================
   RESPONSIVE — TABLET (<=768px)
   ============================================ */
@media (max-width: 768px) {
  /* overflow-x: clip is honored by iOS Safari on the root element, while
     overflow-x: hidden is NOT — that's why wide off-screen elements (the
     120pt About marquee) widened the page on iPhone and clipped the text.
     clip prevents any horizontal overflow site-wide on mobile. */
  html, body { overflow-x: hidden; overflow-x: clip; }

  :root { --header-h: 61px; }
  .site-header { padding: 0.8rem 4% 0.5rem; }
  .nav-btn:hover { background: #464646; transform: none; }
  .nav-btn:hover::after { opacity: 0; }

  /* Slider mobile */
  .slide-wrapper {
    height: calc(100dvh - var(--header-h) - 6px);
    overflow-x: hidden;
  }

  .slide-text { padding: 1.4rem 2rem 1.4rem 4%; background: rgba(255,255,255,0.65); }
  #slide-welding .slide-text { display: flex; flex-direction: column; gap: 0; }
  #slide-katana .slide-text,
  #slide-kintsugi .slide-text,
  #slide-european .slide-text { display: flex; flex-direction: row; align-items: baseline; gap: 0.4em; }
  #slide-welding .line1, #slide-welding .line2,
  #slide-katana .line1, #slide-katana .line2,
  #slide-kintsugi .line1, #slide-kintsugi .line2,
  #slide-european .line1, #slide-european .line2 { color: #464646; }
  /* marime unica pentru toate sloganele = referinta WELDING (fara diferente pe mobil) */
  .slide-text .line1,
  .slide-text .line2 { font-size: min(1.4rem, 5.6vw); }
  /* acelasi bold ca textele mari pe desktop (700) */
  .slide-text .line2 { font-weight: 700; }
  .together-fs-overlay { font-weight: 700; }
  /* hover GE pe mobil: stanga pe sigla (4%); litera putin mai mare */
  .ge-fs-inner { --ge-side: 4%; --ge-vis: 103%; }

  .slide img {
    object-fit: cover;
    object-position: 85% 50%;
  }

  /* KATANA — position on mobile */
  #slide-welding img {
    object-position: 75% 50%;
  }
  #slide-katana img {
    object-position: 25% center;
  }
  #slide-katana .slide-text {
    left: 0;
    padding-left: 0.8rem;
    padding-right: 1.5rem;
  }
  #slide-european img {
    object-position: center center;
  }

  /* KINTSUGI stays centered */
  #slide-kintsugi img {
    object-position: center center;
  }

  .slide.active img {
    animation-duration: 4.5s;
  }
  /* Portfolio mobile — single column, image always on top */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .p-cell { flex-direction: column; }
  .p-img { width: 100% !important; order: -1; aspect-ratio: 3 / 2; flex-shrink: 0; }
  .p-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; object-position: center center !important; display: block; }
  .p-cell { gap: 0; }
  .p-txt { width: 100% !important; order: 1; padding: 1.8rem 1.4rem; background: #f6f6f6; aspect-ratio: 3 / 2; min-height: auto; flex-shrink: 0; flex-grow: 1; overflow: visible; justify-content: center; }
  .p-txt h3 { font-size: 23pt; color: #464646; line-height: 1.05; }
  .p-txt ul li { font-size: 13pt; font-weight: 400; color: #464646; letter-spacing: normal; line-height: 1.3; text-transform: none; }
  .p-cell:hover .p-img img { transform: none; filter: none; }
  .p-cell:hover .p-txt { background: #f6f6f6; }
  .p-cell:hover .p-txt h3,
  .p-cell:hover .p-txt ul li { color: #464646; }
  .p-cell:hover .p-txt::before,
  .p-cell:hover .p-txt::after { box-shadow: none; transform: none; }

  /* Lightbox & Project page mobile */
  .project-page { padding: 0 0.5rem 0; }
  .lb-hero-img { width: calc(100% + 1rem); margin-left: -0.5rem; margin-right: -0.5rem; }
.lb-gallery-grid { grid-template-columns: 1fr; width: calc(100% + 1rem); margin-left: -0.5rem; margin-right: -0.5rem; }
  .lb-gallery-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .lb-gallery-grid img[style] { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .lb-gallery-grid .lb-description { grid-column: 1 / -1 !important; grid-row: auto !important; order: 9999 !important; align-self: auto; padding: 1.5rem 1.2rem; }
  .project-page { background: #dddee0; }
  .page-project { background: #dddee0; }
  .lb-desktop-only { display: none; }
  .lb-description p { line-height: 1.6; }
  .lb-desc-title { font-size: clamp(1.6rem, 8vw, 36pt); }
  .lb-gallery-grid .lb-description + img { grid-column: 1 / -1 !important; grid-row: auto !important; height: auto; }
  .lb-close-bottom { display: flex !important; width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; }
  .proj-nav-btn { display: flex !important; width: 20px; height: 20px; min-height: 20px; flex-shrink: 0; }
  .project-nav-top {
    left: auto;
    right: 4%;
    top: calc(var(--header-h) + (100dvh - var(--header-h) - 6px) / 2);
    transform: translateY(-50%);
    align-items: flex-end;
  }

  /* Disable zoom popup on mobile */
  .project-page .lb-gallery-grid img { pointer-events: none !important; cursor: default !important; }
  .img-zoom-overlay { display: none !important; }

  /* Principles mobile */
  .principles-section { padding: 2rem 1.2rem 110px 1.2rem; }
  body { padding-bottom: 0; }
  .portfolio-grid { padding-bottom: 60px; background: #dddee0; }
  .project-page { padding-bottom: 85px; }
  .principles-layout { flex-direction: column; gap: 2rem; padding: 0; }
  .principles-title-col { min-width: 0; }
  .principles-title { padding: 0; }
  .principles-grid-2col { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .principle h3 { white-space: normal; word-wrap: break-word; }

  /* About Us mobile */
  /* iOS Safari ignores overflow-x:hidden on html/body, so the 120pt
     marquee (.about-tall-headline, translateX(100vw)) widens the page
     and the headlines/text get clipped on the right. Clipping it on a
     normal container (which iOS DOES respect) keeps the page exactly
     screen-width. Off-screen content stays off-screen => no visual change. */
  .about-hero-wrap { overflow-x: hidden; overflow-x: clip; }
  .about-text-only { grid-template-columns: 1fr; padding: 2rem 1.2rem 160px 1.2rem; gap: 2rem; }
  .about-block:nth-child(1),
  .about-block:nth-child(2),
  .about-block:nth-child(3) { grid-column: 1; }
  .about-block h3 { font-size: clamp(1.6rem, 8vw, 2.4rem); }

  /* Contact mobile */
  .contact-wrap { flex-direction: column; padding: 2rem 1.2rem 60px 1.2rem !important; margin-left: 0 !important; align-items: stretch; justify-content: flex-start; min-height: 0; height: calc(100dvh - var(--header-h) - 6px); overflow: hidden; }
  .contact-left { padding-right: 0; padding-bottom: 2rem; display: flex; justify-content: center; margin-left: 0; }
  .contact-left img { height: 40vh; }
  .contact-right { margin-left: 0 !important; width: 100%; }
  /* Align marquee bottom with brush bottom on mobile */
  .contact-tall-headline {
    top: calc(2rem + 40vh - 120pt - 5px);
    bottom: auto;
  }

  /* Slide dots mobile — higher */
  .dots-row { bottom: 16px; }

  /* Bottom bar mobile — Guliman 2026 */
  .bottom-bar {
    position: relative;
    height: auto;
    padding: 7px 0;
    box-shadow: none;
  }
  .portfolio-grid { padding-bottom: 0; }
  .project-page { padding-bottom: 0; }
  .principles-section { padding-bottom: 2rem; }
}

/* ============================================
   RESPONSIVE — MEDIUM SCREENS (769px–1200px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1200px) {
  .about-block h3 { font-size: 2rem; }
  .about-text-only { padding: calc(1rem + 20px) 5% calc(3rem + 200px) 5%; grid-template-columns: 1fr 0.04fr 1fr 0.04fr 1fr; }
  .principle h3 { white-space: normal; overflow-wrap: break-word; }
  .principles-grid-2col { gap: 1rem 2rem; }
}

/* ============================================
   RESPONSIVE — LARGE DESKTOP (1200px–1919px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1919px) {
  .p-txt h3 { font-size: 18pt; }
  .p-txt ul li { font-size: 10pt; }
}

@media (min-width: 1025px) and (max-width: 1919px) {
  .lb-hero-img {
    width: calc(100% + 2rem);
    height: calc(100vh - var(--header-h));
    object-fit: cover;
    object-position: center center;
  }
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .p-txt { aspect-ratio: 3 / 2; overflow: visible; flex-grow: 1; padding-left: 2.8rem; padding-right: 2.8rem; }
  .portfolio-grid > a:first-of-type .p-txt { padding-left: 2.8rem; padding-right: 2.8rem; }
}

@media (min-width: 1920px) {
  .p-txt { padding-left: 2.8rem; padding-right: 2.8rem; }
  .portfolio-grid > a:first-of-type .p-txt { padding-left: 2.8rem; padding-right: 2.8rem; }
  .lb-hero-img {
    width: calc(100% + 2rem);
    height: calc(100vh - var(--header-h));
    object-fit: cover;
    object-position: center center;
  }
}

/* ============================================
   RESPONSIVE — MID DESKTOP (769px–1199px)
   ============================================ */
@media (min-width: 769px) and (max-width: 820px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #slide-kintsugi .line1, #slide-kintsugi .line2 { color: #464646; }
  .lb-gallery-grid { grid-template-columns: 1fr !important; width: calc(100% + 2rem); margin-left: -1rem; margin-right: -1rem; }
  .lb-gallery-grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .lb-gallery-grid img[style] { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .lb-gallery-grid .lb-description { grid-column: 1 / -1 !important; grid-row: auto !important; order: 9999 !important; align-self: auto; padding: 1.5rem 1.2rem; }
  .lb-gallery-grid .lb-description + img { grid-column: 1 / -1 !important; grid-row: auto !important; height: auto; }
  .lb-desktop-only { display: none; }
}

@media (min-width: 769px) and (max-width: 1199px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .p-txt { aspect-ratio: 3 / 2; overflow: visible; flex-grow: 1; }
}

/* ============================================
   RESPONSIVE — TABLET GALLERY (601px–768px)
   ============================================ */
@media (min-width: 601px) and (max-width: 768px) {
  #slide-welding .slide-text { display: flex; flex-direction: column; gap: 0; }
  #slide-katana .slide-text,
  #slide-kintsugi .slide-text,
  #slide-european .slide-text { display: flex; flex-direction: row; align-items: baseline; gap: 0.4em; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .p-cell { flex-direction: column; }
  .p-img { width: 100% !important; order: -1; }
  .p-txt { width: 100% !important; order: 1; overflow: visible; aspect-ratio: 3 / 2; flex-grow: 1; }
  .p-txt h3 { font-size: 19pt; }
  .p-txt ul li { font-size: 12pt; line-height: 1.3; }
  .lb-gallery-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lb-gallery-grid .lb-description { grid-column: 1 / -1 !important; }
  .lb-gallery-grid .lb-description + img { grid-column: 1 / -1 !important; }
}

/* ============================================
   RESPONSIVE — SMALL MOBILE (<=480px)
   ============================================ */
@media (max-width: 480px) {

  .slide-text { padding: 1.1rem 1.6rem 1.1rem 1.5rem; background: rgba(255,255,255,0.65); }
  /* aceeasi marime ca WELDING, fara diferente intre slogane */
  .slide-text .line1,
  .slide-text .line2 { font-size: min(1.4rem, 5.6vw); }

  .slide img { object-position: 90% 50%; }
  #slide-katana img { object-position: 25% center; }
  #slide-kintsugi img { object-position: center center; }

  .nav-btn:hover { transform: none; }
  .dot:hover { transform: none; }

  .p-txt { padding: 0.8rem 1rem; }
  .p-txt h3 { font-size: 23pt; margin-bottom: 0.25rem; line-height: 1.05; }
  .p-txt ul li { font-size: 13pt; font-weight: 400; line-height: 1.3; text-transform: none; }

}

/* ============================================
   MOBIL — slide WELDING: caption pe 2 randuri
   ("WELDING GREAT PROJECTS" pe un singur rand + "TOGETHER")
   ============================================ */
@media (max-width: 600px) {
  #slide-welding .line1 { white-space: nowrap; }
  #slide-welding .line1,
  #slide-welding .line2 { font-size: min(1.4rem, 5.6vw); }
}

/* Mobil: ascunde animatia GE doar pe pagina About */
@media (max-width: 768px) {
  .page-about .ge-page-fixed { display: none; }
}

/* Mobil: hover GE mare centrat vertical pe aceeasi zona ca TOGETHER
   (slide-wrapper foloseste 100dvh, nu 100vh) */
@media (max-width: 768px) {
  .ge-fs-overlay {
    height: calc(100dvh - var(--header-h) - 6px);
    bottom: auto;
  }
}

/* ============================================
   TOUCH DEVICE FIX
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  .lb-desktop-only { display: none !important; }
  .p-cell:hover .p-img img { transform: none; filter: none; }
  .p-cell:hover .p-txt { background: #f6f6f6; }
  .p-cell:hover .p-txt h3,
  .p-cell:hover .p-txt ul li { color: #464646; }
  .p-cell:hover .p-txt::before,
  .p-cell:hover .p-txt::after { box-shadow: none; transform: none; }
  .nav-btn:hover { background: #464646; }
  .nav-btn:hover::after { opacity: 0; }
}

/* ============================================
   HOMEPAGE SEO SECTION
   (full-width dark band; inner blocks aligned with .principles-grid-2col)
   ============================================ */
.seo-section {
  background: #fff;
  width: 100%;
  padding: 4rem 0;
  margin-bottom: -1px;
}


.seo-section-light {
  background: #f6f6f6;
}

.seo-marquee {
  position: absolute;
  left: 0;
  top: calc(4rem + 2rem + 2.8rem * 1.05 - clamp(3rem, 14vh, 11rem));
  white-space: nowrap;
  font-weight: 400;
  font-size: clamp(3rem, 14vh, 11rem);
  line-height: 1;
  color: rgb(238,120,37);
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  letter-spacing: -0.02em;
  transform: translateX(100vw);
  z-index: 1;
  touch-action: pan-y;
  will-change: transform;
}


.seo-section:not(.seo-section-orange) .seo-intro-block,
.seo-section:not(.seo-section-orange) .seo-intro-block h2,
.seo-section:not(.seo-section-orange) .seo-intro-block h3,
.seo-section:not(.seo-section-orange) .seo-intro-block p,
.seo-section:not(.seo-section-orange) .seo-intro-block li,
.seo-section:not(.seo-section-orange) .seo-intro-block strong {
  color: #464646;
}

.seo-intro-block {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 2.5%;
  color: #fff;
}

.seo-intro-block h2 {
  font-size: 36pt;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.05;
  margin: 2rem 0 1.2rem 0;
  white-space: nowrap;
}

.seo-h2-light {
  font-weight: 200;
}

/* Tagline (services) directly under the BRANDING & DESIGN STUDIO title */
.seo-section .seo-intro-block p.seo-h2-tagline {
  font-size: clamp(0.72rem, 2vw, 0.98rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(238,120,37);
  margin: -0.4rem 0 1.6rem 0;
  max-width: 100%;
}

.seo-intro-block h3.seo-h3-big {
  font-size: 36pt;
  font-weight: 600;
  line-height: 1.05;
  margin: 2rem 0 1.2rem 0;
}

@media (max-width: 768px) {
  .seo-intro-block h3.seo-h3-big { font-size: 36pt; }
}

.seo-intro-block h3 {
  font-size: 16pt;
  font-weight: 600;
  max-width: 750px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: normal;
  line-height: 1.3;
  margin: 1rem auto 0.05rem auto;
}

.seo-intro-block h3:not(.seo-h3-big) {
  padding-left: 1.4rem;
  position: relative;
}

.seo-intro-block h3:not(.seo-h3-big)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0.85em;
  height: 0.85em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='8,4 20,12 8,20'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='8,4 20,12 8,20'/%3E%3C/svg%3E") no-repeat center / contain;
}

.seo-intro-block p {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin: 0 auto 1rem auto;
  max-width: 750px;
}

.seo-intro-block ul {
  list-style: none;
  margin: 0.5rem auto 1.2rem auto;
  padding: 0;
  max-width: 750px;
}

.seo-intro-block li {
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 0;
}

.seo-intro-block strong {
  color: #fff;
  font-weight: 600;
}

.seo-intro-block li strong {
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  font-size: 16pt;
  line-height: 1.3;
  margin-bottom: 0.05rem;
}

.seo-intro-block li:has(strong) {
  margin-bottom: 1rem;
  padding-left: 1.4rem;
}

.seo-intro-block li:has(strong) strong {
  position: relative;
}

.seo-intro-block li:has(strong) strong::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: currentColor;
  -webkit-mask: none;
  mask: none;
}

/* Small square bullet sub-list */
.sq-list {
  list-style: none;
  padding: 0.3rem 0 0 0;
  margin: 0;
}
.sq-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}
.sq-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: currentColor;
}


@media (max-width: 768px) {
  .ge-slide-wrap {
    right: calc(4% - 2px) !important;
    left: auto !important;
    transform: none !important;
  }
}

/* TOGETHER fullscreen hover */
.together-fs-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: min(calc((100vh - var(--header-h)) * 0.3116), 16.5vw);
  line-height: 1;
  color: #fff;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 998;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Peste 1920px pagina aplica deja zoom global; folosim valoarea
   absoluta de la Full HD (316px) si lasam zoom-ul sa o scaleze
   proportional, exact ca restul textului din slide. */
@media (min-width: 1921px) {
  .together-fs-overlay { font-size: 316px; }
}

.together-fs-overlay.active {
  opacity: 0.7;
}

/* Efect intrare: fade + glisare in sus, re-declansat la fiecare slide */
@keyframes together-rise {
  from { opacity: 0; transform: translateY(0.18em); }
  to   { opacity: 0.7; transform: translateY(0); }
}
.together-fs-overlay.rise {
  /* sincronizat cu textul mic .line2 (acelasi cuvant): 0.7s durata, 0.55s intarziere */
  animation: together-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}
@media (prefers-reduced-motion: reduce) {
  .together-fs-overlay.rise { animation: none; }
}



#geSlideAnim {
  pointer-events: auto !important;
  cursor: pointer;
}

/* Compensare zoom pe rezolutii >1920px pentru elementele fixed */
.ge-slide-wrap, .ge-page-fixed {
  width: calc(84px * var(--counter-zoom, 1));
  height: calc(84px * var(--counter-zoom, 1));
}

/* GE fullscreen hover overlay */
.ge-fs-overlay {
  position: fixed;
  /* centrat pe aceeasi zona ca textul mare TOGETHER (sub header),
     nu pe tot ecranul */
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  /* ancorat la stanga, la sigla; litera creste spre dreapta/jos */
  justify-content: flex-start;
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ge-fs-overlay.active {
  opacity: 1;
}

.ge-fs-inner {
  position: relative;
  /* --ge-side = marginea siglei; --ge-vis = latimea VIZIBILA a literei (in % din cadru).
     Litera G umple 93.633% din imagine (padding 3.167%), deci cutia = vizibil * 1.068.
     margin-left compenseaza padding-ul ca marginea stanga a literei sa cada pe sigla.
     Ancorata la stanga (justify-content:flex-start) => creste spre dreapta. */
  --ge-side: 2.5%;
  --ge-vis: 105%;      /* stanga pe sigla (2.5%); litera putin mai mare, creste spre dreapta */
  width: calc(var(--ge-vis) * 1.068);
  aspect-ratio: 1 / 1;
  height: auto;
  margin-left: calc(var(--ge-side) - var(--ge-vis) * 0.03382);
  opacity: 0.3;
}

.ge-fs-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

.ge-fs-inner img:first-child  { animation: ge-spin-g 8s ease-in-out infinite alternate; }
.ge-fs-inner img:nth-child(2) { animation: ge-spin-e 10.4s ease-in-out infinite alternate; }
.ge-fs-inner img:nth-child(3) { animation: ge-spin-g 8s ease-in-out infinite alternate; }
.ge-fs-inner img:nth-child(4) { animation: ge-spin-e 10.4s ease-in-out infinite alternate; }

/* normal vs neg in overlay */
.ge-fs-overlay .ge-normal { opacity: 1; }
.ge-fs-overlay .ge-neg    { opacity: 0; }
.slide-wrapper:has(#slide-welding.active) ~ .ge-fs-overlay .ge-normal,
.slide-wrapper:has(#slide-katana.active) ~ .ge-fs-overlay .ge-normal,
.slide-wrapper:has(#slide-european.active) ~ .ge-fs-overlay .ge-normal,
.slide-wrapper:has(#slide-kintsugi.active) ~ .ge-fs-overlay .ge-normal { opacity: 0; }
.slide-wrapper:has(#slide-welding.active) ~ .ge-fs-overlay .ge-neg,
.slide-wrapper:has(#slide-katana.active) ~ .ge-fs-overlay .ge-neg,
.slide-wrapper:has(#slide-european.active) ~ .ge-fs-overlay .ge-neg,
.slide-wrapper:has(#slide-kintsugi.active) ~ .ge-fs-overlay .ge-neg { opacity: 1; }

.ge-fs-overlay.ge-orange img { filter: invert(57%) sepia(88%) saturate(1017%) hue-rotate(347deg) brightness(101%) contrast(95%); }

/* GE orange tint — rgb(238,120,37) */
.ge-page-fixed img {
  transition: filter 0.3s ease;
}

.ge-orange img {
  filter: invert(57%) sepia(88%) saturate(1017%) hue-rotate(347deg) brightness(101%) contrast(95%);
}

/* GE fixed on contact/about pages */
.ge-page-fixed {
  position: fixed !important;
  top: calc(var(--header-h) + 0.9rem + 4px) !important;
  z-index: 1050 !important;
}

/* GE slide wrap */
/* GE slide — color switching via opacity, animation never resets */
.ge-slide-wrap .ge-normal { opacity: 1; transition: opacity 0.4s ease; }
.ge-slide-wrap .ge-neg    { opacity: 0; transition: opacity 0.4s ease; }

/* Slide 1, 2, 4 = negativ */
.slide-wrapper:has(#slide-welding.active) .ge-normal,
.slide-wrapper:has(#slide-katana.active) .ge-normal,
.slide-wrapper:has(#slide-european.active) .ge-normal,
.slide-wrapper:has(#slide-kintsugi.active) .ge-normal { opacity: 0; }

.slide-wrapper:has(#slide-welding.active) .ge-neg,
.slide-wrapper:has(#slide-katana.active) .ge-neg,
.slide-wrapper:has(#slide-european.active) .ge-neg,
.slide-wrapper:has(#slide-kintsugi.active) .ge-neg { opacity: 1; }

.ge-slide-wrap {
  position: absolute;
  top: calc(0.9rem + 4px);
  right: calc(2.5% - 2px);
  left: auto;
  width: 84px;
  height: 84px;
  pointer-events: none;
  z-index: 10;
}

.ge-slide-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

.ge-slide-wrap img:first-child {
  animation: ge-spin-g 8s ease-in-out infinite alternate;
}

.ge-slide-wrap img:last-child {
  animation: ge-spin-e 10.4s ease-in-out infinite alternate;
}

/* GE letters animation */
.impressum-block {
  position: relative;
}

.ge-letter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
}

.ge-letter-g {
  animation: ge-spin-g 8s ease-in-out infinite alternate;
}

.ge-letter-e {
  animation: ge-spin-e 10.4s ease-in-out infinite alternate;
}

@keyframes ge-spin-g {
  0%   { transform: rotate(0deg); }
  10%  { transform: rotate(160deg); }
  15%  { transform: rotate(140deg); }
  30%  { transform: rotate(720deg); }
  35%  { transform: rotate(700deg); }
  50%  { transform: rotate(1080deg); }
  55%  { transform: rotate(1080deg); }
  70%  { transform: rotate(1360deg); }
  80%  { transform: rotate(1440deg); }
  88%  { transform: rotate(1440deg); }
  100% { transform: rotate(1440deg); }
}

@keyframes ge-spin-e {
  0%   { transform: rotate(0deg); }
  8%   { transform: rotate(-240deg); }
  20%  { transform: rotate(-480deg); }
  25%  { transform: rotate(-472deg); }
  40%  { transform: rotate(-960deg); }
  50%  { transform: rotate(-960deg); }
  60%  { transform: rotate(-1200deg); }
  75%  { transform: rotate(-1420deg); }
  82%  { transform: rotate(-1440deg); }
  90%  { transform: rotate(-1440deg); }
  100% { transform: rotate(-1440deg); }
}

/* GE animation — tablet & mobile: sub text */
@media (max-width: 1024px) {
  .impressum-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .impressum-block p {
    width: 100%;
    text-align: left;
  }
}

/* Impressum block */
.impressum-block {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}
.impressum-block p {
  font-size: 1rem;
  font-weight: 400;
  color: #464646;
  line-height: 1.7;
  margin-bottom: 0;
}
.impressum-block p strong {
  font-weight: 600;
}
.impressum-block a {
  color: #464646;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Side-by-side image + text inside a SEO block */
.seo-image-text {
  max-width: 750px;
  margin: 0 auto;
  overflow: hidden;
}

.seo-side-image {
  float: left;
  height: auto;
  max-height: 230px;
  width: auto;
  display: block;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.seo-image-text-body p {
  margin-left: 0;
  max-width: none;
}

@media (max-width: 768px) {
  .seo-image-text {
    padding-bottom: 0;
  }
  .seo-side-image {
    position: static;
    height: auto;
    width: 100%;
    max-height: 170px;
    object-fit: contain;
    margin-bottom: 1rem;
  }
}

.seo-intro-block p.seo-p-caps {
  text-transform: uppercase;
}

.seo-intro-block + .seo-intro-block {
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .seo-section {
    padding: 2.5rem 0;
  }
  .seo-intro-block {
    padding: 0 1.2rem;
  }
  .seo-intro-block + .seo-intro-block {
    margin-top: 2rem;
  }
  .seo-intro-block h2 { font-size: 36pt; white-space: normal; }
  .seo-intro-block h3 { font-size: 16pt; }
  .about-block h3 { font-size: 36pt; }
  .principles-subtitle { font-size: 16pt; }
  .principle h3 { font-size: 16pt; }
  .seo-intro-block li strong { font-size: 16pt; }
  .seo-intro-block p br { display: none; }
  .seo-intro-block p.seo-p-caps br { display: block; }
}

/* ============================================
   BOTTOM BAR — LEGAL LINK
   ============================================ */
.bar-legal-link {
  position: absolute;
  left: calc(2.5% + 26px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .bar-legal-link { left: calc(4% + 24px); font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .bar-legal-link { display: none; }
}

/* ============================================
   LARGE SCREENS (> 1920px) — Layout frozen at 1920px
   Design is pixel-perfect identical to 1920px.
   ============================================ */
@media (min-width: 1921px) {
  html {
    background: #dddee0;
  }
  .p-txt h3 { font-size: 24pt; }
  body {
    max-width: 1920px;
    margin: 0 auto;
    overflow-x: hidden;
  }
  /* hover GE: acelasi cadru de 1920px centrat ca restul continutului,
     ca regula (centrat + marginea stanga la sigla) sa ramana identica */
  .ge-fs-overlay {
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
  }
  .nav-btn::after {
    top: calc(100% * var(--counter-zoom, 1));
    margin-top: calc(4px * var(--counter-zoom, 1));
    transform: translateY(calc(3px * var(--counter-zoom, 1)));
  }
  .nav-btn:hover::after {
    transform: translateY(0);
  }
  .lb-hero-img {
    width: calc(100% + 2rem);
    height: calc(100vh * var(--counter-zoom, 1) - var(--header-h));
    object-fit: cover;
    object-position: center center;
  }
}

/* ============================================================
   SMALL-PHONE FIT (<=480px: SE / mini / 12-13 / 11 / XR / Pro Max).
   Goal: NOTHING gets clipped on the right edge. Two parts:
   (A) fluid-scale only the very large fixed-size headings via
       clamp(), capped at their original size — so phones >=~436px
       keep the exact same size and tablets/desktop are untouched;
   (B) hard-contain horizontal overflow so the big decorative
       120pt marquee can't widen the page and push real text off
       the right edge. Pure font-size / overflow / max-width — no
       spacing, color or layout changes. Appended last so it wins.
   ============================================================ */
@media (max-width: 480px) {
  /* (A) Large headings — all scaled identically, capped at original */
  .principles-title { font-size: clamp(2.1rem, 11vw, 36pt); }
  .about-block h3 { font-size: clamp(2.1rem, 11vw, 36pt); }
  .seo-intro-block h2 { font-size: clamp(2.1rem, 11vw, 36pt); }
  .seo-intro-block h3.seo-h3-big { font-size: clamp(2.1rem, 11vw, 36pt); }
  .p-txt h3 { font-size: clamp(1.34rem, 7vw, 23pt); }

  /* Safety net: if a single long uppercase word is still too wide,
     let it wrap instead of being cut on the right. */
  .about-block h3,
  .principles-title,
  .seo-intro-block h2,
  .seo-intro-block h3.seo-h3-big { overflow-wrap: break-word; word-break: break-word; }

  /* (B) Stop the decorative marquee from widening the page on iOS
     (iOS ignores overflow-x on html/body, so we clip on real
     containers, which it DOES respect). */
  .about-hero-wrap,
  .seo-section { overflow-x: hidden; overflow-x: clip; }

  /* Keep About content strictly within the visible viewport width
     so headings and paragraphs never run past the right edge. */
  .about-text-only { width: 100%; max-width: 100%; box-sizing: border-box; }
  .about-block { min-width: 0; max-width: 100%; }
  .about-block p { max-width: 100%; }
}
