/* ===== Sun Beach Studio — Stylesheet ===== */

:root {
  --gold: #C9A84C;
  --gold-light: #E4C976;
  --blue-deep: #2C4A5A;
  --blue-mid: #4A7C8C;
  --blue-light: #9FB8C2;
  --blue-pale: #EAF1F3;
  --bg: #FBFAF7;
  --ink: #1E2E35;
  --ink-soft: #566873;
  --white: #ffffff;

  --font-title: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 60px -20px rgba(44, 74, 90, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(44, 74, 90, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
input, textarea { font-family: inherit; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (hover: none), (pointer: coarse) {
  button { cursor: pointer; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 { font-family: var(--font-title); font-weight: 600; color: var(--blue-deep); }

h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.light h2, .section-head.light p { color: var(--white); }

.text-gradient {
  background: linear-gradient(90deg, var(--gold), var(--blue-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ===== Custom cursor ===== */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 8px; height: 8px;
  background: var(--gold);
}
.cursor-outline {
  width: 38px; height: 38px;
  border: 1.5px solid var(--blue-mid);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-outline.is-active {
  width: 64px; height: 64px;
  background: rgba(201, 168, 76, 0.12);
  border-color: var(--gold);
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: auto; }
}

/* ===== Scroll progress wave ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 998;
  background: rgba(255,255,255,0.08);
}
.scroll-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--blue-mid));
  transform-origin: left;
  transition: width 0.08s linear;
}

/* ===== Loader ===== */
.loader {
  position: fixed; inset: 0;
  background: var(--blue-deep);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader-logo {
  width: 72px; height: 72px;
  animation: pulse-rotate 1.6s ease-in-out infinite;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse-rotate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(180deg); }
}

/* ===== WhatsApp floating CTA ===== */
.whatsapp-fab {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6);
  z-index: 850;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: whatsapp-pulse 2.8s ease-in-out infinite;
}
.whatsapp-fab svg { width: 30px; height: 30px; }
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 14px 32px -8px rgba(37, 211, 102, 0.75); }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 26px -8px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab { animation: none; }
}
@media (max-width: 640px) {
  .whatsapp-fab { right: 18px; bottom: 18px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 26px; height: 26px; }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 22px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; }
.logo-full {
  height: 52px;
  width: auto;
  transition: height 0.4s var(--ease);
}
.site-header.is-scrolled .logo-full { height: 42px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold);
  color: var(--blue-deep) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold-light); }

.site-header.is-scrolled {
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px -12px rgba(44, 74, 90, 0.2);
  padding: 14px 0;
}
.site-header.is-scrolled .nav-link { color: var(--blue-deep); }
.site-header.is-scrolled .logo-word { color: var(--blue-deep); }
.site-header.is-scrolled .logo-word strong { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  z-index: 901;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.site-header.is-scrolled .nav-toggle span { background: var(--blue-deep); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 100px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn-primary {
  background: linear-gradient(120deg, var(--gold), #d9b95c);
  color: var(--blue-deep);
  box-shadow: 0 10px 30px -8px rgba(201, 168, 76, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(201, 168, 76, 0.7); }
.btn-ghost {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn.full { width: 100%; }

/* ===== Reveal base ===== */
.reveal, .reveal-left, .reveal-right, .reveal-line span {
  opacity: 0;
  will-change: transform, opacity;
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-line { display: block; overflow: hidden; }
.reveal-line span { display: inline-block; transform: translateY(110%); }

.reveal.is-visible, .reveal-left.is-visible, .reveal-right.is-visible, .reveal-line.is-visible span {
  opacity: 1;
  transform: translate(0, 0);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* ===== Section divider ===== */
.wave-divider {
  position: relative;
  height: 1px;
  margin-top: -1px;
}
.wave-divider-top::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  border-radius: 100px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== Section base ===== */
.section {
  position: relative;
  padding: 130px 0;
}
.section.is-hidden { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 30% 20%, #35586a 0%, var(--blue-deep) 55%, #203945 100%);
  overflow: hidden;
  padding: 140px 0 96px;
}

.hero-mesh { position: absolute; inset: 0; overflow: hidden; }

.mesh-blob-wrap {
  position: absolute;
  inset: 0;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  animation: mesh-drift 22s ease-in-out infinite;
}
.mesh-blob-1 {
  top: -10%; left: -8%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  animation-duration: 26s;
}
.mesh-blob-2 {
  bottom: -18%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, var(--blue-mid) 0%, transparent 70%);
  animation-duration: 32s;
  animation-delay: -8s;
}
.mesh-blob-3 {
  top: 30%; right: 18%;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--blue-light) 0%, transparent 70%);
  opacity: 0.35;
  animation-duration: 20s;
  animation-delay: -4s;
}
@keyframes mesh-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5%, 6%) scale(1.08); }
  66% { transform: translate(-4%, -3%) scale(0.96); }
}

.hero-watermark-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
.hero-watermark {
  width: 900px; height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: watermark-rotate 90s linear infinite;
}
.hero-watermark-logo {
  width: 100%;
  height: auto;
  opacity: 0.05;
}
@keyframes watermark-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .mesh-blob, .hero-watermark { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 32px;
}
.hero .eyebrow { color: var(--gold-light); }
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--blue-light);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stat strong {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}
.hero-stat span {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.03em;
}
.hero-stat-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.18); }
@media (max-width: 640px) {
  .hero-stat-sep { display: none; }
  .hero-stats { gap: 20px 32px; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.scroll-indicator span {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  position: relative;
}
.scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scroll-dot 1.6s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { opacity: 1; top: 6px; }
  60% { opacity: 0; top: 18px; }
  100% { opacity: 0; top: 18px; }
}
.scroll-indicator small { color: rgba(255,255,255,0.6); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ===== About ===== */
.about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}
.about-visual { display: flex; justify-content: center; }
.sun-badge {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.sun-badge::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed var(--blue-light);
  animation: sun-badge-rotate 60s linear infinite;
}
@keyframes sun-badge-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.sun-badge-icon { width: 55%; }
.about-copy p { color: var(--ink-soft); margin-bottom: 18px; max-width: 540px; }
.about-points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.about-points li { color: var(--ink-soft); padding-left: 22px; position: relative; }
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.about-points strong { color: var(--blue-deep); }

/* ===== Services ===== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 38px 32px;
  transition: box-shadow 0.4s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow-card); z-index: 2; }
.service-icon {
  width: 56px; height: 56px;
  color: var(--blue-mid);
  margin-bottom: 22px;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.service-card:hover .service-icon { color: var(--gold); transform: scale(1.08); }
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ===== Filters & Tags (shared) ===== */
.filter-btn {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  padding: 9px 20px;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--blue-deep); }
.filter-btn.is-active { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--white); }

@keyframes portfolio-in {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-pale);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

/* ===== Il Nostro Lavoro (contenitore Social + Siti) ===== */
.work { background: var(--white); padding-bottom: 0; }
.work .section-head { margin-bottom: 36px; }

.work-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: var(--blue-pale);
  border-radius: 100px;
}
.work-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 12px 24px;
  border-radius: 100px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-tab svg { width: 19px; height: 19px; flex-shrink: 0; }
.work-tab:hover { color: var(--blue-deep); }
.work-tab.is-active {
  background: var(--blue-deep);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(44,74,90,0.45);
}
.work-tab.is-active svg { color: var(--gold-light); }

.work-panel { display: none; padding-top: 56px; }
.work-panel.is-active { display: block; }
.work-panel-head { max-width: 620px; margin: 0 auto 36px; padding: 0 32px; }
.work-panel-eyebrow {
  display: block;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

#work-panel-social { background: var(--white); overflow: hidden; }
#work-panel-siti { background: var(--white); padding-bottom: 90px; }
#work-panel-siti .work-panel-eyebrow { color: var(--blue-mid); }

/* ===== Clienti (Social) ===== */
.clients .section-head { margin-bottom: 44px; }

.clients-marquee {
  width: 100%;
  overflow: hidden;
  margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 54px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-logo {
  height: 42px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.marquee-logo:hover { filter: grayscale(0); opacity: 1; }
.marquee-logo img { height: 100%; width: auto; object-fit: contain; }
.marquee-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-deep);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track { animation: none; }
}

.clients-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.portfolio-count {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.portfolio-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 60px 20px;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 26px;
}
.client-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
}
.client-card.is-hidden { display: none; }
.client-card.is-filtering { animation: portfolio-in 0.5s var(--ease); }
.client-card:hover { box-shadow: var(--shadow-soft); z-index: 2; }
.client-card-lg { grid-column: span 2; }
@media (max-width: 980px) {
  .client-card-lg { grid-column: span 2; }
}
@media (max-width: 640px) {
  .client-card-lg { grid-column: span 1; }
}

.client-card.sector-food { border-top-color: #E08E45; }
.client-card.sector-beauty { border-top-color: #C9628F; }
.client-card.sector-retail { border-top-color: var(--blue-mid); }
.client-card.sector-servizi { border-top-color: var(--gold); }
.client-card.sector-turismo { border-top-color: var(--blue-light); }

.client-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.client-logo {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 14px -6px rgba(44,74,90,0.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.client-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-logo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
}
.client-name-wrap h3 { font-size: 1.05rem; margin-bottom: 4px; }
.client-sector {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-mid);
}
.client-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.client-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--blue-pale);
}
.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2f8f5b;
  background: rgba(47, 143, 91, 0.12);
  padding: 5px 12px;
  border-radius: 100px;
}
.client-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2f8f5b;
  box-shadow: 0 0 0 3px rgba(47,143,91,0.18);
}
.client-socials {
  position: absolute;
  top: 26px; right: 22px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.client-card:hover .client-socials { opacity: 1; transform: translateY(0); }
.client-socials span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
}
/* ===== Portfolio Siti Web ===== */
.web-portfolio { background: var(--white); }
.web-portfolio-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  margin-top: -24px;
}
.web-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.web-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid rgba(44, 74, 90, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.5s var(--ease);
}
.web-card.is-hidden { display: none; }
.web-card.is-filtering { animation: portfolio-in 0.5s var(--ease); }
.web-card:hover { box-shadow: var(--shadow-soft); }
.web-card-clickable { cursor: pointer; }
.web-card-clickable a, .web-card-clickable button { cursor: pointer; }

.web-preview {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.web-preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1);
  transform-origin: bottom center;
  transition: transform 0.7s var(--ease);
}
.web-card:hover .web-preview-img { transform: scale(1.08); }
.web-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale), var(--white));
}
.web-preview-logo {
  width: 55%;
  max-width: 220px;
  height: auto;
  transition: transform 0.5s var(--ease);
}
.web-card:hover .web-preview-logo { transform: scale(1.06); }
.web-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,46,53,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.web-card:hover .web-preview-overlay { opacity: 1; }
.web-preview-overlay .btn { padding: 11px 24px; font-size: 0.85rem; }

.web-card-info { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
.web-card-info-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.web-card-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.web-card-info p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.web-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-mid);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.web-card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.web-card-link:hover { color: var(--gold); gap: 12px; }
.web-card-link:hover svg { transform: translate(2px, -2px); }

/* ===== Process / Timeline ===== */
.process { background: var(--white); }
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline-line {
  position: absolute;
  left: 27px; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue-pale);
}
.timeline-line-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--gold), var(--blue-mid));
  transition: height 0.1s linear;
}
.timeline-item {
  position: relative;
  padding-left: 76px;
  margin-bottom: 56px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 16px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue-light);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.timeline-item.is-visible .timeline-dot { border-color: var(--gold); background: var(--gold); }
.timeline-index {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 0.1em;
}
.timeline-content h3 { margin: 6px 0 10px; }
.timeline-content p { color: var(--ink-soft); max-width: 480px; }

/* ===== Testimonials ===== */
.testimonials { background: var(--bg); }
.testimonial-slider { max-width: 720px; margin: 0 auto; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial-card {
  min-width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 48px;
  text-align: center;
}
.testimonial-card p {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--blue-deep);
  line-height: 1.5;
  margin-bottom: 22px;
}
.testimonial-card footer { color: var(--ink-soft); font-size: 0.9rem; }
.testimonial-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.testimonial-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue-light);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.testimonial-dots button.is-active { opacity: 1; background: var(--gold); transform: scale(1.2); }

/* ===== Contact ===== */
.contact { background: var(--white); }
.contact .section-head {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
.contact-divider { position: relative; margin-bottom: 40px; }
.contact .section-head p { color: var(--ink-soft); margin-top: 14px; }

.contact-card {
  max-width: 920px;
  margin: 56px auto 0;
  background: var(--blue-deep);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
}
.contact-card-intro {
  color: var(--blue-light);
  max-width: 520px;
  margin: 0 auto 36px;
}
.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s var(--ease);
}
a.contact-card-item:hover { border-color: rgba(255,255,255,0.3); }
.contact-card-item-featured { border-color: rgba(201,168,76,0.4); }
.contact-card-item-featured:hover { border-color: var(--gold); }
.contact-card-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.contact-card-icon svg { width: 18px; height: 18px; }
.contact-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-light);
  font-weight: 600;
}
.contact-card-value {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
}
.contact-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.contact-card-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.social-link:hover { background: var(--gold); color: var(--blue-deep); transform: translateY(-3px); }

/* ===== Footer ===== */
.site-footer {
  background: var(--blue-deep);
  color: var(--blue-light);
  padding: 44px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-logo { height: 28px; }
.footer-inner p { font-size: 0.85rem; }
.footer-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-contacts a svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-contacts a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 0.85rem; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--gold); }
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Magnetic button wrapper ===== */
.magnetic { will-change: transform; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 46px; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .web-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--blue-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 900;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav .nav-link { color: var(--white); font-size: 1.1rem; }
  .nav-cta { color: var(--blue-deep) !important; }
  .nav-toggle { display: flex; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 46, 53, 0.5);
    backdrop-filter: blur(2px);
    z-index: 899;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
}

@media (max-width: 640px) {
  .section { padding: 90px 0; }
  .hero { padding: 120px 0 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-watermark { width: 480px; height: 480px; }
  .contact-card { padding: 40px 24px; }
  .contact-card-footer { justify-content: center; }
  .contact-card-actions { justify-content: center; }
  .contact-card-grid { grid-template-columns: 1fr; gap: 8px; }
  .testimonial-card { padding: 32px 24px; }
  .clients-grid { grid-template-columns: 1fr; }
  .web-portfolio-grid { grid-template-columns: 1fr; }
  .work-tabs { width: 100%; }
  .work-tab { flex: 1; justify-content: center; padding: 12px 14px; font-size: 0.82rem; }
  .work-tab span { white-space: nowrap; }
}
