/* =============================================
   VERONICA BACCARIN - PORTFOLIO WEBSITE
   Modern - Fluid - Professional
   ============================================= */

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

:root {
  --bg: #f8f4ec;
  --bg2: #fdf9f2;
  --surface: #fdf9f2;
  --surface-soft: #f2eadf;
  --border: #d8cebf;
  --accent: #8a6a3d;
  --accent-hover: #a17a45;
  --accent2: #c9bba8;
  --accent-rgb: 138, 106, 61;
  --bg-rgb: 248, 244, 236;
  --text: #2f2a23;
  --text-muted: #6d6255;
  --white: #2f2a23;
  --on-accent: #fdf9f2;
  --font-head: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  background:
    radial-gradient(1200px 620px at 110% -20%, rgba(138, 106, 61, 0.11), transparent 58%),
    radial-gradient(980px 520px at -10% 110%, rgba(201, 172, 128, 0.09), transparent 64%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

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

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

ul {
  list-style: none;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

/* ---------- CURSOR ---------- */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width var(--transition), height var(--transition), border-color var(--transition);
}

body.is-hovering-interactive .cursor-follower {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
}

/* ---------- UTIL ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 112px 0;
}

.accent,
.dot {
  color: var(--accent);
}

.mt-2 {
  margin-top: 2rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.35rem;
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.24);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.full-width {
  width: 100%;
  border-radius: 14px;
}

/* ---------- NAV ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(var(--bg-rgb), 0.86);
  backdrop-filter: blur(20px);
  padding: 12px 48px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  border-radius: 12px;
  background: rgba(253, 249, 242, 0.86);
  box-shadow: 0 10px 20px rgba(53, 37, 19, 0.08);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 82px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
  animation: blobFloat 9s ease-in-out infinite;
}

.blob-1 {
  width: 620px;
  height: 620px;
  background: var(--accent);
  top: -220px;
  right: -120px;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: var(--accent2);
  bottom: -80px;
  left: -120px;
  animation-delay: 3s;
}

.blob-3 {
  width: 340px;
  height: 340px;
  background: var(--accent2);
  top: 36%;
  left: 30%;
  animation-delay: 5s;
}

@keyframes blobFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(16px, -24px) scale(1.05);
  }
  66% {
    transform: translate(-15px, 20px) scale(0.96);
  }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1260px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(64px, 8vw, 140px);
  align-items: center;
  padding-right: clamp(8px, 2vw, 30px);
}

.hero-intro {
  max-width: 700px;
}

.hero-logo-wrap {
  justify-self: end;
  width: min(30vw, 360px);
  margin-left: auto;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: 24px;
  padding: clamp(12px, 1.8vw, 20px);
  background: linear-gradient(180deg, rgba(161, 122, 69, 0.1), rgba(201, 172, 128, 0.14));
  box-shadow: 0 24px 50px rgba(53, 37, 19, 0.14);
  transform: translateX(clamp(8px, 2vw, 28px));
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(var(--bg-rgb), 0.48));
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7.4vw, 6.7rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-title .line {
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 120px;
  right: 48px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.4;
    transform: scaleY(0.7);
  }
}

.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(253, 249, 242, 0.72);
  backdrop-filter: blur(10px);
}

.marquee-track {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-size: 0.78rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-track .sep {
  color: var(--accent);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s var(--transition) forwards;
}

.reveal:nth-child(1) {
  animation-delay: 0.1s;
}

.reveal:nth-child(2) {
  animation-delay: 0.3s;
}

.reveal:nth-child(3) {
  animation-delay: 0.5s;
}

.reveal:nth-child(4) {
  animation-delay: 0.7s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--bg2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 78px;
  align-items: center;
}

.about-img-wrapper {
  position: relative;
  max-width: 400px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-number {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
}

.badge-text {
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 600;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.5rem 0;
}

.skill-tag {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  background: var(--bg);
}

.portfolio-filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.filter-btn {
  padding: 8px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: var(--transition);
  background: var(--surface);
  border: 1px solid var(--border);
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.portfolio-card:nth-child(1),
.portfolio-card:nth-child(4) {
  grid-row: span 2;
  aspect-ratio: auto;
}

.card-bg {
  position: absolute;
  inset: 0;
}

.card-gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background: rgba(253, 249, 242, 0.9);
  backdrop-filter: blur(8px);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.card-gallery-icon {
  position: relative;
  width: 14px;
  height: 10px;
}

.card-gallery-icon::before,
.card-gallery-icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 7px;
  border-radius: 2px;
}

.card-gallery-icon::before {
  top: 0;
  left: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.1);
}

.card-gallery-icon::after {
  top: 3px;
  left: 4px;
  border: 1px solid rgba(161, 122, 69, 0.7);
  background: rgba(161, 122, 69, 0.2);
}

.card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.55s ease;
}

.portfolio-card:hover .card-bg img {
  transform: scale(1.08);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.12) 66%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: var(--transition);
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.card-category {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.card-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.6);
  transition: var(--transition);
}

.portfolio-card:hover .card-arrow {
  opacity: 1;
  transform: scale(1);
}

.portfolio-empty {
  grid-column: 1 / -1;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-muted);
}

.portfolio-count {
  margin-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- SERVICES ---------- */
.services {
  background: var(--bg2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-block;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ---------- STATS ---------- */
.stats-section {
  background: var(--accent);
  padding: 78px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 24px;
}

.stat-item {
  color: var(--on-accent);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
}

.stat-item p {
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 6px;
  opacity: 0.75;
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 72px;
  align-items: start;
}

.contact-left p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-icon {
  color: var(--accent);
}

.contact-item a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
  transition: var(--transition);
}

.form-group textarea ~ label {
  top: 22px;
  transform: none;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  font-size: 0.72rem;
  background: var(--surface);
  padding: 0 6px;
  color: var(--accent);
  border-radius: 4px;
}

.form-group select option {
  background: var(--surface-soft);
}

.form-success {
  display: none;
  color: var(--accent);
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 26px 0 10px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
}

.foot-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.foot-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  transition: var(--transition);
}

.foot-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.back-top {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.back-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-meta {
  margin-top: 12px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-disclaimer {
  background: rgba(var(--bg-rgb), 0.98);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.74rem;
  padding: 10px 16px;
}

/* ---------- POLICY BANNERS ---------- */
body.has-policy-banner .site-footer {
  margin-bottom: 120px;
}

body.has-policy-banner .site-disclaimer {
  margin-bottom: 124px;
}

.privacy-banner,
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(var(--bg-rgb), 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px;
  z-index: 21000;
  display: none;
  max-width: 760px;
  margin: 0 auto;
}

.privacy-banner.open,
.cookie-banner.open {
  display: block;
}

.privacy-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.privacy-text,
.cookie-text {
  font-family: var(--font-body);
  font-size: 0.83rem;
  line-height: 1.6;
  color: #c5d0e8;
  margin-bottom: 10px;
}

.privacy-actions,
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-size: 0.78rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.pb-btn.primary {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.5);
}

.pb-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legal-link {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- LEGAL MODAL ---------- */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(94, 73, 46, 0.28);
  z-index: 22000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow: auto;
}

.legal-modal.open {
  display: flex;
}

.legal-card {
  width: min(980px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.legal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.legal-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.legal-close {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 50%;
}

.legal-content {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-height: 74vh;
  overflow: auto;
  padding-right: 6px;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 14px 0 6px;
}

.legal-content p {
  margin: 0 0 10px;
}

.legal-content ul {
  margin: 0 0 10px 18px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 6px;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(var(--bg-rgb), 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(20px);
}

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

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 30px;
  background: rgba(253, 249, 242, 0.95);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-content {
  width: min(980px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 14px;
}

.lightbox-media {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #f2eadf;
}

.lightbox-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.lightbox-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(47, 42, 35, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.72rem;
  color: #fdf9f2;
  padding: 4px 10px;
}

.lightbox-nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  background: rgba(253, 249, 242, 0.96);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lightbox-meta {
  grid-column: 1 / -1;
  padding: 8px 6px 2px;
}

.lightbox-cat {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.lightbox-title {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.lightbox-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---------- REVEAL ---------- */
.reveal-scroll {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}

.reveal-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: clamp(36px, 5vw, 60px);
    padding-right: 0;
  }

  .hero-logo-wrap {
    width: min(30vw, 290px);
    transform: translateX(10px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .about-img-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-card:nth-child(1),
  .portfolio-card:nth-child(4) {
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lightbox-content {
    width: min(900px, 94vw);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 16px 24px;
  }

  .navbar.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 22px;
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-rgb), 0.98);
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
  }

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

  .hamburger {
    display: flex;
    z-index: 1100;
  }

  .hero {
    padding: 100px 24px 80px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-intro {
    max-width: 100%;
  }

  .hero-logo-wrap {
    justify-self: center;
    width: min(70vw, 300px);
    transform: none;
  }

  .hero-scroll {
    display: none;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-links {
    flex-wrap: wrap;
  }

  .lightbox-content {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .lightbox-nav {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .lightbox-nav.prev {
    left: 16px;
  }

  .lightbox-nav.next {
    right: 16px;
  }
}

@media (max-width: 540px) {
  .container {
    padding: 0 18px;
  }

  .section {
    padding: 88px 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-logo-wrap {
    width: min(76vw, 250px);
  }

  .btn {
    width: 100%;
  }

  .about-badge {
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-banner,
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 12px;
  }

  .privacy-actions,
  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-modal {
    padding: 10px;
  }

  .legal-card {
    padding: 12px;
  }

  .legal-content {
    font-size: 0.84rem;
    max-height: 76vh;
  }
}

@media (hover: none), (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor,
  .cursor-follower {
    display: none;
  }
}
