/* ─── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #FAFAFA;
  --bg2:       #F0EEEB;
  --dark:      #1A1A1A;
  --ink:       #1A1A1A;
  --muted:     #6B6B6B;
  --divide:    #DEDEDE;
  --accent:    #E8523A;
  --accent-lt: #FFF0EE;
  --serif:     'Barlow Condensed', sans-serif;
  --sans:      'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}

/* ─── CUSTOM CURSOR ────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, background 0.2s ease, width 0.2s ease, height 0.2s ease;
  will-change: left, top;
}
#cursor.hover {
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--accent);
  opacity: 0.8;
}

/* ─── NAV ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
nav.scrolled {
  background: rgba(12, 12, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex; gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Mobile nav */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1px; background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: #0C0C0A; z-index: 99;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--serif); font-size: 2.5rem; font-weight: 200;
  color: rgba(255,255,255,0.78); text-decoration: none; letter-spacing: -0.02em;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: var(--accent);
  opacity: 1;
  outline: none;
}

/* ─── SECTIONS — SHARED ────────────────────────────────── */
section { padding: clamp(80px, 10vw, 140px) clamp(24px, 5vw, 80px); }
.section-label {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 56px;
  display: flex; align-items: center; gap: 16px;
}
.section-label .label-num { font-family: var(--serif); font-size: 0.8rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.section-label .label-badge { background: var(--accent); color: #fff; font-family: var(--sans); font-size: 0.65rem; font-weight: 600; padding: 2px 8px; letter-spacing: 0.1em; }
.section-label::after { display: none; }

/* ─── FADE-IN ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── HERO ─────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px;
  position: relative;
  padding-bottom: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 400px);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
  width: 100%;
}
.hero-text { min-width: 0; }
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 5.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 100%;
  margin-bottom: 40px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  color: var(--muted);
  max-width: 460px;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
}
.hero-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg2);
  border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(26,26,26,0.25);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(8%) contrast(1.02);
  transition: filter 0.6s ease, transform 0.8s ease;
}
.hero-portrait:hover img {
  filter: grayscale(0%) contrast(1.02);
  transform: scale(1.02);
}
.hero-scroll {
  position: absolute; bottom: 40px; left: clamp(24px, 5vw, 80px);
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll::before {
  content: ''; display: block; width: 1px; height: 40px; background: var(--divide);
  animation: scrollline 2s ease-in-out infinite;
}
@keyframes scrollline {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.4; }
}

/* Hero line-by-line reveal */
.hero-line {
  display: block;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.hero-line.visible { opacity: 1; transform: translateY(0); }

/* ─── ABOUT ────────────────────────────────────────────── */
#about { border-top: 1px solid var(--divide); }
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 80px;
  align-items: start;
}
.about-text {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.85;
  color: var(--ink);
  font-weight: 400;
}
.about-text p + p { margin-top: 1.4em; }
.pull-quote {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
  line-height: 1.6;
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 40px 0;
}
.about-aside {
  padding-top: 8px;
}
.about-aside-label {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  border-bottom: 1px solid var(--divide); padding-bottom: 12px;
}
.about-detail {
  font-family: var(--sans); font-size: 0.88rem; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.about-detail div {
  padding: 11px 0;
  border-bottom: 1px solid var(--divide);
  letter-spacing: 0.03em;
  transition: color 0.2s, padding-left 0.2s;
  cursor: default;
}
.about-detail div:hover {
  color: var(--accent);
  padding-left: 6px;
}
.about-num {
  font-family: var(--serif);
  font-size: clamp(4rem, 6vw, 7rem);
  font-weight: 600;
  color: var(--divide);
  line-height: 1;
  margin-bottom: 32px;
  display: block;
  letter-spacing: -0.03em;
}

/* ─── SERVICES ─────────────────────────────────────────── */
#services { border-top: none; background: var(--dark); color: #fff; padding-top: 100px; padding-bottom: 100px; position: relative; overflow: hidden; }
#services .section-label { color: rgba(255,255,255,0.4); }
#services .section-label .label-num { color: var(--accent); }
#services::before { content: 'SERVICES'; position: absolute; top: 40px; left: clamp(24px,5vw,80px); font-family: var(--serif); font-size: clamp(5rem,12vw,13rem); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.07); pointer-events: none; line-height: 1; user-select: none; }
.services-list { list-style: none; }
.service-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.service-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.service-header {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  cursor: none;
  transition: background 0.2s;
}
.service-header:hover .service-title { color: var(--accent); }
.service-num {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.14em;
  transition: color 0.3s;
  text-transform: uppercase;
}
.service-item.open .service-num { color: var(--accent); }
.service-item.open .service-title { color: var(--accent); }
.service-title-wrap { }
.service-title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
  display: block;
  letter-spacing: -0.01em;
}
.service-tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 300;
  margin-top: 5px;
  display: block;
  letter-spacing: 0.02em;
}
.service-toggle {
  width: 24px; height: 24px;
  position: relative; flex-shrink: 0;
}
.service-toggle::before, .service-toggle::after {
  content: ''; position: absolute;
  background: rgba(255,255,255,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.service-toggle::before { width: 14px; height: 1px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.service-toggle::after { width: 1px; height: 14px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.service-item.open .service-toggle::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.service-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}
.service-item.open .service-body { grid-template-rows: 1fr; }
.service-body-inner {
  min-height: 0;
  padding-bottom: 0;
  transition: padding 0.4s ease;
}
.service-item.open .service-body-inner { padding-bottom: 36px; }
.service-desc {
  font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.7);
  line-height: 1.8; max-width: 680px; margin-bottom: 24px;
}
.service-includes-label {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px;
}
.service-includes {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0;
}
.service-includes li {
  font-size: 0.95rem; font-weight: 400; color: rgba(255,255,255,0.8);
  padding: 4px 0; width: 50%;
  display: flex; align-items: baseline; gap: 10px;
}
.service-includes li::before {
  content: '–'; color: var(--accent); flex-shrink: 0;
}

/* ─── CASE STUDIES ─────────────────────────────────────── */
#work { border-top: none; background: var(--bg); position: relative; overflow: hidden; }
#work::before { content: 'WORK'; position: absolute; top: 40px; right: clamp(24px,5vw,80px); font-family: var(--serif); font-size: clamp(5rem,14vw,16rem); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(0,0,0,0.04); pointer-events: none; line-height: 1; user-select: none; }
.case-studies { display: flex; flex-direction: column; }
.case {
  border-bottom: 1px solid var(--divide);
  padding: clamp(56px, 7vw, 96px) 0;
}
.case-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.case-heading {
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
}
.case-detail {
  min-width: 0;
  grid-column: 1;
  grid-row: 2;
}
.case:nth-child(even) .case-inner { direction: rtl; }
.case:nth-child(even) .case-inner > * { direction: ltr; }

.case-meta {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 24px;
}
.case-num {
  font-family: var(--serif); font-size: 0.72rem;
  font-weight: 400; color: var(--muted); line-height: 1; letter-spacing: 0.14em;
  transition: color 0.4s ease; text-transform: uppercase; padding-top: 6px;
}
.case:hover .case-num { color: var(--accent); }
.case-brand { font-family: var(--serif); font-size: clamp(2rem,3.5vw,4rem); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); line-height: 1; display: inline-block; border: 3px solid var(--ink); padding: 2px 14px; margin-top: 8px; }
.case-tags {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.tag { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--divide); padding: 4px 10px; font-weight: 500; background: var(--bg2); }
.case-section-label { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; margin-top: 20px; font-weight: 600; }
.case-brief { font-size: 1rem; font-weight: 400; color: var(--ink); line-height: 1.8; }

.case-gap-block {
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  background: var(--bg2);
  margin-top: 20px;
}
.case-gap-text {
  font-family: var(--sans); font-size: 1rem; font-style: normal;
  font-weight: 400; color: var(--ink); line-height: 1.8;
}
.case-position {
  font-family: var(--sans); font-size: clamp(0.85rem, 1.1vw, 0.95rem);
  font-style: normal; font-weight: 400; color: var(--accent); line-height: 1.75;
  margin-top: 20px; border-left: 2px solid var(--accent); padding-left: 16px;
}
.case-delivered {
  font-size: 0.95rem; font-weight: 400; color: var(--ink);
  line-height: 1.9; margin-top: 16px;
}
.case-delivered strong { color: var(--ink); font-weight: 500; }

/* EcoModa special: testimonial */
.case-testimonial {
  margin-top: 28px;
  border: 1px solid var(--divide);
  padding: 24px 28px;
  position: relative;
  background: var(--bg2);
}
.grade-badge {
  position: absolute; top: -14px; right: 20px;
  background: var(--accent); color: #0E0E10;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  padding: 5px 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.testimonial-quote {
  font-family: var(--sans); font-size: 0.95rem; font-style: normal;
  font-weight: 400; color: var(--ink); line-height: 1.85; margin-bottom: 16px;
}
.testimonial-attr {
  font-family: var(--sans); font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.04em;
}

/* Right panel: visual placeholder */
.case-visual {
  grid-column: 2;
  grid-row: 1 / -1;
  position: sticky;
  top: 100px;
  align-self: start;
  min-width: 0;
}
.case-visual-inner {
  aspect-ratio: 3/4;
  background: #2A2A2A;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.case-visual-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 8px,
    rgba(255,255,255,0.03) 8px, rgba(255,255,255,0.03) 9px
  );
}
.case-visual-label {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); text-align: center;
  position: relative; z-index: 1;
}

/* ─── CREATIVES ─────────────────────────────────────────── */
#creatives { border-top: none; background: var(--dark); position: relative; overflow: hidden; }
#creatives::before { content: 'VISUALS'; position: absolute; top: 40px; left: clamp(24px,5vw,80px); z-index: 0; font-family: var(--serif); font-size: clamp(5rem,12vw,13rem); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.07); pointer-events: none; line-height: 1; user-select: none; }
#creatives .section-label { color: rgba(255,255,255,0.4); position: relative; z-index: 1; }
#creatives .section-label .label-num { color: var(--accent); }
#creatives > div,
#creatives > p { position: relative; z-index: 1; }
.gallery-filter {
  display: flex; gap: 0; margin-bottom: 48px;
  border-bottom: 1px solid var(--divide);
  flex-wrap: wrap;
  align-items: center;
}
.filter-sep {
  width: 1px; height: 16px;
  background: var(--divide);
  margin: 0 16px;
  align-self: center;
}
.filter-btn {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  background: none; border: none; cursor: none;
  padding: 12px 24px 14px;
  position: relative; transition: color 0.2s;
}
.filter-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.filter-btn.active { color: #fff; }
.filter-btn.active::after { transform: scaleX(1); }
.filter-btn:hover { color: #fff; }

.gallery-grid {
  columns: 6;
  column-gap: 10px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item.hidden {
  display: none;
}
.gallery-item-inner {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.gallery-item-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--ink);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-item-inner::after { opacity: 0.08; }

.gallery-thumb {
  width: 100%;
  display: block;
  background: #161614;
  position: relative;
  overflow: hidden;
}
.gallery-thumb img,
.gallery-thumb video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
  object-fit: contain;
}
.gallery-thumb-lines {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent, transparent 6px,
    rgba(255,255,255,0.03) 6px, rgba(255,255,255,0.03) 7px
  );
}
.gallery-thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(12,12,10,0.85), transparent);
}
.gallery-thumb-cat {
  font-family: var(--sans); font-size: 0.65rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
}
.gallery-thumb-type {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 300;
  color: rgba(255,255,255,0.55); font-style: normal;
}
.gallery-note {
  font-family: var(--sans); font-size: 0.75rem;
  color: rgba(255,255,255,0.35); margin-top: 32px;
}

/* ─── LIGHTBOX ─────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(26,26,24,0.93);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 12px 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
#lightbox.open { opacity: 1; pointer-events: all; cursor: none; }
.lightbox-dialog {
  max-width: min(1600px, 98vw);
  max-height: min(100dvh - 24px, 1600px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.lightbox-media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.lightbox-media img,
.lightbox-media video {
  max-width: min(96vw, 1400px);
  max-height: min(calc(100dvh - 108px), 92vh, 1400px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 2px;
}
.lightbox-media video {
  background: #000;
}
.lightbox-meta {
  flex-shrink: 0;
  text-align: center;
  max-width: 640px;
}
#lightbox-label {
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
#lightbox-type {
  font-family: var(--serif); font-size: 1.05rem; font-style: normal;
  color: rgba(255,255,255,0.35); font-weight: 300;
  margin-top: 4px;
}
#lightbox-close {
  position: fixed; top: 32px; right: 40px;
  font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
  background: none; border: none; cursor: none;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 201;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#lightbox.open .lightbox-nav { display: flex; }
.lightbox-nav:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
}
#lightbox-prev { left: clamp(12px, 3vw, 40px); }
#lightbox-next { right: clamp(12px, 3vw, 40px); }
#lightbox-counter {
  font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-top: 8px;
}

.gallery-carousel-badge {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
}
.gallery-carousel-badge svg { display: block; opacity: 0.9; }

@media (max-width: 560px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.5rem; }
}

/* ─── CONTACT ───────────────────────────────────────────── */
#contact { border-top: none; background: var(--bg); position: relative; overflow: hidden; }
#contact::before { content: 'HELLO'; position: absolute; bottom: 0; left: 0; font-family: var(--serif); font-size: clamp(5rem,14vw,18rem); font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(0,0,0,0.04); pointer-events: none; line-height: 0.9; user-select: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
  color: var(--ink);
  margin-bottom: 40px;
}
/* removed duplicate */
.contact-headline-SKIP__REMOVED {
  font-weight: 600;
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}
.contact-text {
  font-size: 1rem; font-weight: 400; color: var(--ink);
  line-height: 1.85; margin-bottom: 1.4em;
}
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  border: 3px solid var(--ink);
  padding: 12px 24px;
  margin-top: 40px;
  margin-bottom: 20px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-email:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact-location {
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.04em;
}
.contact-aside { padding-top: 12px; }
.contact-aside-label {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 20px;
}
.contact-available {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.avail-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5CB85C;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.avail-text {
  font-family: var(--sans); font-size: 0.82rem; color: var(--ink);
}
.contact-meta {
  font-family: var(--sans); font-size: 0.8rem; color: var(--muted);
  line-height: 1.9; font-weight: 300;
}

/* ─── FOOTER ────────────────────────────────────────────── */
footer {
  padding: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--dark);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-name { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-copy { font-family: var(--sans); font-size: 0.72rem; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }

/* ─── MOBILE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-portrait {
    max-width: 260px;
    margin: 0 auto;
    order: -1;
  }
  .hero-headline { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { display: none; }
  .case-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .case:nth-child(even) .case-inner { direction: ltr; }
  .case-heading {
    grid-column: 1;
    grid-row: 1;
  }
  .case-visual {
    grid-column: 1;
    grid-row: 2;
    position: static;
    display: block;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }
  .case-detail {
    grid-column: 1;
    grid-row: 3;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .service-header { grid-template-columns: 60px 1fr auto; gap: 16px; }
  .service-includes li { width: 100%; }

  /* Better touch behavior on mobile/tablet */
  body {
    cursor: auto;
  }
  .hamburger,
  .mobile-menu a,
  .filter-btn,
  #lightbox-close,
  .service-header,
  .gallery-item {
    cursor: pointer;
  }
}

/* Disable custom cursor on touch devices */
@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }
  #cursor {
    display: none;
  }
}
@media (max-width: 1300px) {
  .gallery-grid { columns: 5; column-gap: 10px; }
}
@media (max-width: 1100px) {
  .gallery-grid { columns: 4; column-gap: 10px; }
}
@media (max-width: 900px) {
  .gallery-grid { columns: 3; column-gap: 10px; }
}
@media (max-width: 560px) {
  .gallery-grid { columns: 2; column-gap: 8px; }
}

/* ─── LANGUAGE SWITCHER ─────────────────────────────────── */
.lang-switcher {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 16px;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  text-transform: uppercase;
}
.lang-btn:hover { color: var(--ink); border-color: var(--divide); }
.lang-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-lt); }

/* Hide/show by language */
[data-lang] { display: none; }
body.lang-en [data-lang="en"],
body.lang-ru [data-lang="ru"],
body.lang-es [data-lang="es"] { display: inherit; }
/* For block-level elements */
p[data-lang], span[data-lang], h1[data-lang], h2[data-lang], h3[data-lang] {
  display: none;
}
body.lang-en p[data-lang="en"],
body.lang-en span[data-lang="en"],
body.lang-en h1[data-lang="en"],
body.lang-en h2[data-lang="en"],
body.lang-en h3[data-lang="en"],
body.lang-ru p[data-lang="ru"],
body.lang-ru span[data-lang="ru"],
body.lang-ru h1[data-lang="ru"],
body.lang-ru h2[data-lang="ru"],
body.lang-ru h3[data-lang="ru"],
body.lang-es p[data-lang="es"],
body.lang-es span[data-lang="es"],
body.lang-es h1[data-lang="es"],
body.lang-es h2[data-lang="es"],
body.lang-es h3[data-lang="es"] { display: block; }
