:root {
  --dark: #000;
  --light: #ffffff;
  --dark-gray: #2c2c2d;
  --dark-brown: #3d271d;
  --brown-sec1: #685042;
  --brown-sec2: #a8978d;
}

@font-face {
  font-family: 'SilkSansDisplay';
  src: url('fonts/SilkSansDisplay-TRIAL-Regular-BF67453e7a8e12a.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Montserrat', sans-serif;
  height: 100%;
  background: var(--dark);
  scroll-behavior: smooth;
  overflow: hidden
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.16);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.2s ease, transform 0.18s ease;
  z-index: 2000;
}

.custom-cursor.is-visible {
  opacity: 1;
}

.custom-cursor.is-hidden {
  opacity: 0;
}

.custom-cursor.is-hovering {
  transform: translate(-50%, -50%) scale(1.35);
}

@media (pointer: fine) {
  body,
  a,
  button,
  [role="button"],
  .dot,
  .scroll-down,
  .menu-toggle,
  .chat-toggle,
  .chat-close,
  .graphic-gallery-card,
  .graphic-gallery-close,
  .graphic-gallery-credit a,
  .btn-clear,
  .icon-inner {
    cursor: none !important;
  }

  input,
  textarea,
  select {
    cursor: text !important;
  }
}

section { height: 100vh; }

#main-content {
  position: relative;
  height: 100vh;
  background: var(--dark);
  overflow: hidden;
}

.section-wrapper {
  position: absolute;
  inset: 0;
  height: 100vh;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.52s ease, transform 0.52s ease, visibility 0s linear 0.52s;
}

.section-wrapper.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  z-index: 1;
  transition-delay: 0s;
}

.section-wrapper.is-entering {
  opacity: 0;
  transform: translateY(30px);
}

.section-wrapper.is-leaving {
  opacity: 0;
  visibility: visible;
  transform: translateY(-30px);
  pointer-events: none;
  z-index: 0;
  transition-delay: 0s;
}

.section-wrapper:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"]) {
  background: var(--dark);
}

.section-wrapper:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"]) .graphic-shell {
  opacity: 0;
  transform: none;
  transition: opacity 0.52s ease;
}

.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"]) .graphic-shell {
  opacity: 1;
  transform: none;
}

.section-wrapper.is-leaving:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"]) .graphic-shell {
  opacity: 0;
  transform: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

.header.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

#header-hover-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px; 
  z-index: 999;
  display: none; 
}
.logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 30px;
  display: block;
}

.logo-light {
  display: none;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 30px;
}
.main-nav a {
  text-decoration: none;
  color: var(--dark);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--brown-sec1);
  transition: width 0.5s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

.header-item {
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(0,0,0,0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2.5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Home Page */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-wrapper {
  display: flex;
  height: 100%;
  width: 100%;
  position: relative;
  padding: 50px 60px 60px;
  padding-right: calc(55% + 60px); 
  align-items: flex-start;
  justify-content: center; 
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dark);
  position: absolute;
  left: 2.5%;
  top: 25%;
  transform: translateY(-50%) rotate(180deg);
}

.hero-center-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin-left: 30px;
  width: 100%;
}

.hero-text-content {
  max-width: 520px;
  color: var(--dark);
  text-align: left;
  margin-left: 0;
  padding: 40px;
}

.label {
  font-size: 20px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.main-heading {
  font-size: 100px;
  font-weight: 700;
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  margin: 0 0 15px;
}

.description {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 25px;
}

.btn-clear {
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  background-color: transparent;
  border: 2px solid var(--dark);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear:hover {
  background-color: var(--dark);
  color: var(--light);
}

.pagination {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1100; 
}

.current-page {
  writing-mode: vertical-rl;
  transform: rotate(360deg);
  font-size: 20px;
  color: var(--dark);
  margin-bottom: 40px;
}

.pagination-line {
  width: 2px;
  height: 40px;
  background-color: var(--dark);
  margin-bottom: 20px;
}

/* Dots */
.dots {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brown-sec2);
  margin: 2px 0;
  cursor: pointer;
}
.dot.active { background-color: var(--dark); }
.dot:hover { opacity: 0.7; }

.hero-background {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--light);
  overflow: hidden;
  height: 100vh;
  background-color: var(--light);
}

.hero-background::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 55%;
  background-image: url('images/hero.webp');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  transform: translateX(35%);
  opacity: 0;
}

.hero-background .hero-center-content {
  transform: translateY(30px);
  opacity: 0;
}

.hero-background.hero-animate::after {
  animation: hero-slide-in 1s ease-out 0.15s forwards;
}

.hero-background.hero-animate .hero-center-content {
  animation: hero-rise 0.85s ease-out 0.2s forwards;
}

@keyframes hero-rise {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes hero-slide-in {
  from { transform: translateX(35%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Strelica za skrolovanje */
.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--dark);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 1100;
}

.scroll-down.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.corner-icons {
  position: fixed;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 16px;
  z-index: 1200; 
}

.corner-icons a {
  font-size: 18px;
  color: var(--dark);
  transition: color 0.3s;
}
.corner-icons a:hover, .scroll-down:hover, .header-item:hover { color: var(--brown-sec1); }

.icon-inner {
  cursor: pointer;
}

/* Graphic Design */
.graphic-section {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
}

.graphic-shell {
  width: min(1360px, 100%);
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
  padding: 100px 72px 112px 40px;
}

.graphic-index {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-size: clamp(170px, 23vw, 320px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  margin-top: 18px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.48);
  text-stroke: 1.5px rgba(255,255,255,0.48);
  opacity: 0;
  transform: translateY(-72px);
}

.amber-valletta.amber-animate .graphic-index {
  animation: graphic-index-drop 0.9s ease-out forwards;
}

.graphic-content {
  align-self: start;
  max-width: 860px;
  gap: 0;
  padding-top: 12px;
  opacity: 0;
  transform: translateX(96px);
}

.amber-valletta.amber-animate .graphic-content {
  animation: graphic-content-slide 1s ease-out 0.12s forwards;
}

@keyframes graphic-index-drop {
  from { opacity: 0; transform: translateY(-72px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes graphic-content-slide {
  from { opacity: 0; transform: translateX(96px); }
  to { opacity: 1; transform: translateX(0); }
}

.graphic-title {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 100px;
  line-height: 1;
  color: var(--light);
}

.graphic-title[data-gallery-trigger] {
  display: inline-block;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.graphic-title[data-gallery-trigger]::after {
  content: none;
}

.graphic-title[data-gallery-trigger]:hover,
.graphic-title[data-gallery-trigger]:focus-visible {
  color: rgba(255,255,255,0.8);
  transform: translateX(6px);
  outline: none;
}

.graphic-description {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
}

.graphic-service-list {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.graphic-service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.graphic-service-name {
  font-size: 16px;
  line-height: 1.45;
  color: var(--light);
}

.graphic-service-number {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.56);
}

/* Amber section base */
.amber-valletta {
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.amber-text {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--light);
  padding-top: 40px;
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .header-item,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .main-nav a,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .current-page,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .corner-icons a,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .scroll-down {
  color: var(--light);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .pagination-line {
  background-color: var(--light);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .dot {
  background-color: rgba(255,255,255,0.45);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .dot.active {
  background-color: var(--light);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .main-nav a::after {
  background: rgba(255,255,255,0.75);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .logo-dark {
  display: none;
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .logo-light {
  display: block;
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .menu-toggle {
  border-color: var(--light);
  color: var(--light);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .menu-toggle span {
  background: currentColor;
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .chat-window {
  border-color: var(--light);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .chat-toggle {
  border-color: var(--light);
  color: var(--light);
  background: transparent;
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .chat-header {
  background: var(--light);
  color: var(--dark);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .chat-close {
  color: var(--dark);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .chat-form button {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--dark);
}

body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .corner-icons a:hover,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .scroll-down:hover,
body:has(.section-wrapper.is-active:is([data-section="graphic-design"], [data-section="web-design"], [data-section="web-site"], [data-section="education"])) .header-item:hover {
  color: rgba(255,255,255,0.72);
}

/* Graphic Design gallery */
.graphic-gallery {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(120,93,75,0.18), transparent 38%),
    rgba(0, 0, 0, 0.932);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.graphic-gallery.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.graphic-gallery__dialog {
  position: relative;
  width: min(1200px, 100%);
  height: min(860px, calc(100vh - 56px));
}

.graphic-gallery__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.graphic-gallery__title {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 0.95;
}

.graphic-gallery__hint {
  max-width: 28rem;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.68);
}

.graphic-gallery-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--light);
  font-size: 30px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.graphic-gallery-close:hover,
.graphic-gallery-close:focus-visible {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.36);
  transform: scale(1.04);
  outline: none;
}

.graphic-gallery__content {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 320px);
  gap: 28px;
  align-items: stretch;
  min-height: 0;
}

.graphic-gallery__scene {
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  perspective: 2200px;
  perspective-origin: center;
  overflow: hidden;
}

.graphic-gallery-ring {
  --gallery-rotation: 0deg;
  --radius: 390px;
  --card-width: min(48vw, 560px);
  --card-height: min(72vh, 680px);

  position: relative;
  width: var(--card-width);
  height: var(--card-height);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--radius) * -1)) rotateY(var(--gallery-rotation));
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.graphic-gallery-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  transform: rotateY(calc(var(--i) * 1turn / var(--n))) translateZ(var(--radius));
  z-index: 1;
}

.graphic-gallery-card.is-active {
  z-index: 5;
}

.graphic-gallery-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
  filter: saturate(0.68) brightness(0.72);
  opacity: 0.75;
}

.graphic-gallery-card.is-active .graphic-gallery-frame {
  transform: scale(1);
  filter: saturate(1) brightness(1);
  opacity: 1;
}

.graphic-gallery-card:not(.is-active) .graphic-gallery-frame {
  transform: scale(0.48);
}

.graphic-gallery-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.graphic-gallery-card.is-active .graphic-gallery-image {
  max-width: min(48vw, 560px);
  max-height: min(72vh, 680px);
}

.graphic-gallery-card:not(.is-active) .graphic-gallery-image {
   max-width: min(48vw, 560px);
  max-height: min(72vh, 680px);
}

.graphic-gallery-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.graphic-gallery-card.is-active .graphic-gallery-image {
  max-width: min(54vw, 640px);
  max-height: min(78vh, 760px);
}

.graphic-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 20px 22px;
  display: grid;
  gap: 8px;
  color: var(--light);
}

.graphic-gallery-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.graphic-gallery-name {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 0.95;
}

.graphic-gallery-credit {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}

.graphic-gallery__meta {
  display: grid;
  gap: 18px;
  align-content: center;
  color: var(--light);
  padding: 48px 0 32px;
}

.graphic-gallery-counter {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-size: clamp(94px, 12vw, 160px);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.22);
  text-stroke: 1px rgba(255,255,255,0.22);
}

.graphic-gallery-meta-title {
  font-family: 'SilkSansDisplay', 'Montserrat', sans-serif;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 0.95;
}

.graphic-gallery-meta-type {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.graphic-gallery-meta-description {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

.graphic-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.graphic-gallery-thumb {
  display: block;
  padding: 0;
  appearance: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.graphic-gallery-thumb.is-active {
  border-color: rgba(255,255,255,0.44);
  transform: translateY(-4px);
}

.graphic-gallery-thumb img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
}

body.gallery-open .header,
body.gallery-open .pagination,
body.gallery-open .scroll-down,
body.gallery-open .corner-icons,
body.gallery-open .chat-widget {
  opacity: 0;
  pointer-events: none;
}

/* Chat widget */
.chat-widget{
  position: fixed;
  bottom: 20px;
  left: 40px;
  z-index: 1250;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}

.chat-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease;
  pointer-events: auto;
}

.chat-toggle:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.chat-toggle ion-icon{
  font-size: 20px;
}

.chat-widget.is-open .chat-toggle{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.chat-window{
  width: min(360px, calc(100vw - 40px));
  max-height: 520px;
  background: var(--light);
  border: 2px solid var(--dark);
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
}

.chat-window.is-open{
  display: flex;
}

.chat-header{
  padding: 14px 16px;
  background: var(--dark);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-title{
  font-weight: 700;
  font-size: 16px;
}

.chat-subtitle{
  font-size: 12px;
  opacity: 0.8;
}

.chat-close{
  background: transparent;
  border: none;
  color: var(--light);
  font-size: 20px;
  cursor: pointer;
}

.chat-body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  background: #f5f3f0;
}

.chat-bubble{
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 82%;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.chat-bubble.bot{
  background: var(--dark-brown);
  color: var(--light);
  align-self: flex-start;
}

.chat-bubble.user{
  background: var(--light);
  color: var(--dark);
  align-self: flex-end;
  border: 1px solid #dedad5;
}

.chat-form{
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: var(--light);
  border-top: 1px solid #e1ddd8;
}

.chat-form input{
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #d7d1c9;
  border-radius: 12px;
  outline: none;
}

.chat-form button{
  padding: 10px 14px;
  border-radius: 12px;
  border: none;
  background: var(--dark);
  color: var(--light);
  cursor: pointer;
  font-weight: 600;
}

.chat-form button:hover{
  opacity: 0.9;
}

@media (min-width: 1600px) {
  .header {
    padding: 20px 56px;
  }

  .logo img {
    height: 34px;
  }

  .main-nav {
    gap: 42px;
  }

  .hero-wrapper {
    padding: 72px 88px 88px;
    padding-right: calc(55% + 88px);
  }

  .main-heading {
    font-size: 120px;
  }

  .graphic-shell {
    width: min(1500px, 100%);
    padding: 112px 96px 124px 56px;
  }

  .graphic-title {
    font-size: 118px;
  }

  .graphic-description,
  .graphic-service-name {
    font-size: 18px;
  }

  .pagination {
    right: 56px;
  }

  .corner-icons {
    right: 56px;
  }

  .chat-widget {
    left: 56px;
  }
}

@media (max-width: 1100px) {
  .header {
    padding: 16px 24px;
  }

  .header-item,
  .vertical-text {
    display: none;
  }

  .main-nav {
    left: auto;
    right: 24px;
    transform: none;
    gap: 14px;
    width: auto;
    justify-content: flex-end;
  }

  .main-nav a {
    font-size: 13px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .pagination {
    display: none;
  }

  .hero-wrapper {
    padding: 92px 32px 84px;
    padding-right: calc(48% + 24px);
  }

  .hero-center-content {
    margin-left: 0;
  }

  .hero-text-content {
    padding: 24px 0;
  }

  .main-heading {
    font-size: clamp(72px, 9vw, 90px);
  }

  .description {
    display: none;
  }

  .pagination {
    right: 24px;
  }

  .corner-icons {
    right: 24px;
    bottom: 24px;
  }

  .chat-widget {
    left: 24px;
    bottom: 24px;
  }

  .graphic-section {
    align-items: stretch;
    padding: 88px 0 96px;
  }

  .graphic-shell {
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 28px;
    height: 100%;
    min-height: 0;
    padding: 8px 40px 0 24px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.45) transparent;
  }

  .graphic-title {
    font-size: clamp(72px, 8vw, 88px);
  }

  .graphic-gallery {
    padding: 22px;
  }

  .graphic-gallery__dialog {
    height: min(820px, calc(100vh - 44px));
  }

  .graphic-gallery__content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .graphic-gallery__scene {
    min-height: 460px;
  }

  .graphic-gallery__meta {
    max-width: 720px;
    padding: 0 0 18px;
  }

  .graphic-shell::-webkit-scrollbar {
    width: 6px;
  }

  .graphic-shell::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.45);
    border-radius: 999px;
  }
}

@media (max-width: 720px) {
  .custom-cursor {
    display: none;
  }

  .header {
    padding: 14px 18px;
  }

  .logo img {
    height: 26px;
  }

  .header-item {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    z-index: 1201;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 18px;
    right: 18px;
    transform: translateY(-12px);
    background: rgba(255,255,255,0.98);
    padding: 16px 18px;
    box-shadow: 10px 18px 32px rgba(0,0,0,0.12);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .header.menu-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .main-nav a {
    width: 100%;
    padding-bottom: 0;
    color: var(--dark) !important;
  }

  .main-nav a::after {
    display: none;
  }

  .hero-wrapper {
    padding: 86px 18px 86px;
    padding-right: 18px;
  }

  .vertical-text {
    display: none;
  }

  .hero-center-content {
    margin-left: 0;
    width: 100%;
  }

  .hero-text-content {
    max-width: 100%;
    padding: 0;
  }

  .main-heading {
    font-size: 50px;
  }

  .label {
    font-size: 14px;
  }
  
  .hero-background::after {
    top: 44%;
    width: 100%;
  }

  .pagination {
    display: none;
  }

  .corner-icons {
    right: 18px;
    bottom: 18px;
  }

  .chat-widget {
    left: 18px;
    bottom: 18px;
  }

  .graphic-section {
    align-items: stretch;
    padding: 82px 0 92px;
  }

  .graphic-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    height: 100%;
    min-height: 0;
    padding: 6px 18px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.45) transparent;
  }

  .graphic-shell::-webkit-scrollbar {
    width: 6px;
  }

  .graphic-shell::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.45);
    border-radius: 999px;
  }

  .graphic-index {
    font-size: clamp(100px, 30vw, 150px);
    margin-top: 0;
  }

  .graphic-content {
    max-width: 100%;
    padding-top: 0;
  }

  .graphic-title {
    font-size: clamp(44px, 14vw, 64px);
  }

  .graphic-title[data-gallery-trigger] {
    transform: none !important;
  }

  .graphic-description,
  .graphic-service-name {
    font-size: 15px;
  }

  .graphic-service {
    gap: 12px;
    padding: 14px 0;
  }

  .graphic-service-number {
    font-size: 11px;
  }

  .graphic-service-list {
    overflow: visible;
    max-height: none;
    padding-right: 0;
    padding-bottom: 0;
  }

  .graphic-gallery {
    padding: 16px;
  }

  .graphic-gallery__dialog {
    height: calc(100vh - 32px);
  }

  .graphic-gallery__content {
    gap: 0;
  }

  .graphic-gallery__topbar {
    position: relative;
    z-index: 2;
    padding: 25px 40px 10px 0;
  }

  .graphic-gallery-close {
    display: inline-flex;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 22px;
    z-index: 3;
  }

  .graphic-gallery__eyebrow {
    display: block;
    margin: 0;
    color: rgba(255,255,255,0.72);
  }

  .graphic-gallery__hint {
    display: none;
  }

  .graphic-gallery__scene {
    min-height: 300px;
    touch-action: pan-y;
  }

  .graphic-gallery-ring {
    --radius: 210px;
    --card-width: min(68vw, 270px);
    --card-height: 420px;
    height: var(--card-height);
  }

  .graphic-gallery-frame {
    overflow: hidden;
  }

  .graphic-gallery-card:not(.is-active) .graphic-gallery-frame {
    transform: scale(0.32);
  }

  .graphic-gallery-image,
  .graphic-gallery-card.is-active .graphic-gallery-image,
  .graphic-gallery-card:not(.is-active) .graphic-gallery-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .graphic-gallery-caption {
    padding: 16px 16px 18px;
  }

  .graphic-gallery-name {
    font-size: 24px;
  }

  .graphic-gallery-counter {
    display: none;
  }

  .graphic-gallery-meta-title {
    font-size: 32px;
  }

  .graphic-gallery-meta-description {
    font-size: 14px;
  }

  .graphic-gallery-thumbs {
    display: none;
  }

  .graphic-gallery-thumb img {
    height: 54px;
  }

  .graphic-gallery__meta {
    align-content: start;
    gap: 10px;
    padding: 0;
    margin-top: -20px;
  }
}
