:root {
  --bg: #f3f1ec;
  --bg-elevated: #fffdf9;
  --soft: #e8e4dc;
  --text: #141820;
  --muted: #5a6170;
  --panel: rgba(255, 253, 249, 0.82);
  --panel-strong: rgba(255, 253, 249, 0.96);
  --line: rgba(20, 24, 32, 0.12);
  --red: #e31145;
  --orange: #f0a33a;
  --champagne: #b89b6a;
  --cyan: #1bb8c9;
  --shadow: 0 28px 80px rgba(20, 24, 32, 0.12);
  --glow: 0 0 34px rgba(227, 17, 69, 0.22);
  --radius: 1.5rem;
  --header-h: 5.5rem;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --scroll-progress: 0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  --bg: #0a0c10;
  --bg-elevated: #12161f;
  --soft: #0f131b;
  --text: #f4f6fa;
  --muted: #a8b0c0;
  --panel: rgba(18, 22, 31, 0.78);
  --panel-strong: rgba(22, 27, 38, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --champagne: #d4b57a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(227, 17, 69, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 0%, rgba(227, 17, 69, 0.12), transparent 34rem),
    radial-gradient(circle at 88% 8%, rgba(184, 155, 106, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--soft));
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button {
  cursor: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 70;
  width: 100%;
  height: 3px;
  transform: scaleX(var(--scroll-progress));
  transform-origin: left center;
  background: linear-gradient(90deg, var(--red), var(--champagne), var(--cyan));
  box-shadow: 0 0 18px rgba(227, 17, 69, 0.35);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.55;
  animation: drift 22s var(--ease-out) infinite alternate;
}

.ambient-orb-a {
  width: 38vw;
  height: 38vw;
  top: -8%;
  right: -10%;
  background: radial-gradient(circle, rgba(227, 17, 69, 0.18), transparent 70%);
}

.ambient-orb-b {
  width: 42vw;
  height: 42vw;
  bottom: 5%;
  left: -14%;
  background: radial-gradient(circle, rgba(184, 155, 106, 0.16), transparent 70%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 130, 152, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 152, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

/* Loader */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  gap: 1.25rem;
  background:
    radial-gradient(circle at center, rgba(227, 17, 69, 0.16), transparent 40%),
    var(--bg);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s var(--ease-out);
}

.site-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-stage {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}

.loader-ring-outer {
  inset: 0;
  border-top-color: var(--red);
  border-right-color: rgba(227, 17, 69, 0.25);
  animation: spin 1.8s linear infinite;
  box-shadow: 0 0 28px rgba(227, 17, 69, 0.25);
}

.loader-ring-mid {
  inset: 16px;
  border-bottom-color: var(--champagne);
  border-left-color: rgba(184, 155, 106, 0.3);
  animation: spin 2.4s linear infinite reverse;
}

.loader-ring-inner {
  inset: 34px;
  border-top-color: var(--cyan);
  animation: spin 1.3s linear infinite;
  box-shadow: inset 0 0 18px rgba(27, 184, 201, 0.18);
}

.loader-particles i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: particle 2.8s linear infinite;
}

.loader-particles i:nth-child(1) { top: 8%; left: 48%; animation-delay: 0s; }
.loader-particles i:nth-child(2) { top: 30%; right: 6%; animation-delay: 0.3s; background: var(--champagne); }
.loader-particles i:nth-child(3) { bottom: 18%; right: 18%; animation-delay: 0.6s; background: var(--cyan); }
.loader-particles i:nth-child(4) { bottom: 8%; left: 42%; animation-delay: 0.9s; }
.loader-particles i:nth-child(5) { top: 36%; left: 4%; animation-delay: 1.2s; background: var(--champagne); }
.loader-particles i:nth-child(6) { top: 12%; right: 22%; animation-delay: 1.5s; background: var(--cyan); }

.loader-core {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--glow), var(--shadow);
  animation: pulse-core 1.8s ease-in-out infinite;
}

.loader-core img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.loader-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.loader-label span {
  color: var(--text);
  margin-right: 0.4rem;
}

/* Cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  will-change: transform;
  transition: opacity 220ms ease, width 220ms var(--ease-soft), height 220ms var(--ease-soft), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

body.cursor-visible .cursor-dot,
body.cursor-visible .cursor-ring {
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(227, 17, 69, 0.75);
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 181, 122, 0.85);
  background: rgba(227, 17, 69, 0.05);
  backdrop-filter: blur(2px);
}

.cursor-active .cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(27, 184, 201, 0.85);
}

.cursor-active .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(227, 17, 69, 0.9);
  background: rgba(227, 17, 69, 0.08);
}

.cursor-pressed .cursor-ring {
  width: 28px;
  height: 28px;
  border-color: var(--champagne);
}

/* Header / Nav */
.site-header {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  transition: inset 280ms var(--ease-soft);
}

body.is-scrolled .site-header {
  inset: 0.65rem 0 auto;
}

.nav-wrap {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: var(--shadow);
  transition: padding 280ms var(--ease-soft), box-shadow 280ms ease, transform 280ms var(--ease-soft);
}

body.is-scrolled .nav-wrap {
  padding: 0.5rem 0.65rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.brand img,
.brand-footer img {
  width: 176px;
  height: auto;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
  transition: transform 220ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: auto;
}

.nav-links a {
  padding: 0.62rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: rgba(227, 17, 69, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  box-shadow: inset 0 0 0 1px rgba(227, 17, 69, 0.28);
}

.theme-toggle,
.nav-toggle {
  border: 0;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.68rem 0.9rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), #ff6a3d);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.theme-toggle i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset -4px -2px 0 0 rgba(20, 24, 32, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle i {
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 200ms ease;
}

/* Typography & sections */
.eyebrow,
.brand-mark {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.28em;
  color: #fff;
  text-shadow: 0 0 24px rgba(227, 17, 69, 0.35);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 800;
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 750;
  max-width: 18ch;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0.9rem 0 0;
  max-width: 58ch;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.section-tight {
  padding-top: 2.5rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn,
.form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--red), #ff6a3d 55%, var(--orange));
  background-size: 160% 160%;
  box-shadow: 0 14px 34px rgba(227, 17, 69, 0.22);
  transition: transform 220ms var(--ease-soft), box-shadow 220ms ease, background-position 320ms ease;
  cursor: pointer;
}

.btn:hover,
.form button:hover {
  background-position: 100% 50%;
}

.btn.secondary,
.form .btn.secondary {
  background: var(--panel-strong);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn:hover,
.btn:focus-visible,
.form button:hover,
.form button:focus-visible,
.theme-toggle:hover,
.theme-toggle:focus-visible,
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--glow), 0 18px 40px rgba(227, 17, 69, 0.2);
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--champagne);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  will-change: transform;
}

.hero-veil,
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.28), rgba(8, 10, 14, 0.72) 70%, rgba(8, 10, 14, 0.9)),
    linear-gradient(90deg, rgba(8, 10, 14, 0.55), transparent 55%);
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 8.5rem 0 5rem;
}

.hero-content h1,
.hero-content p,
.page-hero-content h1,
.page-hero-content p {
  color: #f7f8fb;
}

.hero-content p,
.page-hero-content p:not(.eyebrow) {
  color: rgba(244, 246, 250, 0.82);
  max-width: 42ch;
  font-size: 1.05rem;
}

.page-hero {
  min-height: 78vh;
}

.page-hero-compact {
  min-height: 62vh;
}

/* Feature / service / team grids — avoid heavy card chrome unless interactive */
.feature-grid,
.service-grid,
.team-grid,
.instagram-grid,
.thought-list {
  display: grid;
  gap: 1.1rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-item {
  padding: 1.4rem 0.2rem 0;
  border-top: 1px solid var(--line);
  transition: transform 220ms var(--ease-out);
}

.feature-item:hover {
  transform: translateY(-6px);
}

.feature-index {
  display: block;
  margin-bottom: 1rem;
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

.service-tile {
  display: grid;
  grid-template-rows: 220px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.35rem);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 240ms var(--ease-out), border-color 240ms ease, box-shadow 240ms ease;
}

.service-tile:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 17, 69, 0.35);
  box-shadow: var(--shadow), var(--glow);
}

.service-media {
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.service-tile:hover .service-media img {
  transform: scale(1.06);
}

.service-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.service-body span,
.team-card span,
.thought-item time {
  display: block;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-body em,
.team-card em {
  display: inline-block;
  margin-top: 1rem;
  font-style: normal;
  font-weight: 800;
  color: var(--champagne);
}

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

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  background: var(--panel);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(184, 155, 106, 0.45);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--red), #ff7a45 55%, var(--champagne));
  box-shadow: 0 10px 28px rgba(227, 17, 69, 0.25);
}

.team-avatar-lg {
  width: 96px;
  height: 96px;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.instagram-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.instagram-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.instagram-item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.1rem;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.45;
  background: linear-gradient(180deg, transparent, rgba(8, 10, 14, 0.88));
  transform: translateY(18%);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 280ms ease;
}

.instagram-item:hover img {
  transform: scale(1.05);
}

.instagram-item:hover figcaption {
  transform: none;
  opacity: 1;
}

.thought-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thought-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  transition: transform 220ms var(--ease-out);
}

.thought-item:hover {
  transform: translateY(-4px);
}

/* Work stage */
.work-stage {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.25rem 2rem;
  align-items: end;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: clamp(1.5rem, 4vw, 2.75rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(227, 17, 69, 0.14), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
  min-height: 360px;
}

.work-copy h2 {
  max-width: 14ch;
}

.slide-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(227, 17, 69, 0.75);
}

.carousel {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.55rem;
}

.carousel button {
  width: 48px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(120, 130, 152, 0.28);
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.carousel button.active {
  width: 78px;
  background: linear-gradient(90deg, var(--red), var(--champagne));
}

/* Contact / forms / details */
.contact-shell,
.detail-grid,
.profile-grid {
  display: grid;
  gap: 1.5rem;
}

.contact-shell,
.detail-grid {
  grid-template-columns: 1.05fr 0.95fr;
}

.contact-shell,
.detail-panel,
.detail-list,
.profile-aside {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form label {
  display: grid;
  gap: 0.4rem;
}

.form label span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(227, 17, 69, 0.55);
  box-shadow: 0 0 0 4px rgba(227, 17, 69, 0.12);
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
}

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  font-weight: 700;
}

.form-alert-success {
  background: rgba(37, 211, 102, 0.12);
  color: #1f9d55;
  border: 1px solid rgba(37, 211, 102, 0.28);
}

:root[data-theme="dark"] .form-alert-success {
  color: #7dffa8;
}

.form-alert-error {
  background: rgba(227, 17, 69, 0.1);
  color: var(--red);
  border: 1px solid rgba(227, 17, 69, 0.28);
}

.detail-list p {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  max-width: none;
}

.detail-list p:last-child {
  border-bottom: 0;
}

.profile-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.profile-aside .btn,
.profile-aside .btn.secondary {
  width: 100%;
  margin-top: 0.75rem;
}

.profile-main {
  display: grid;
  gap: 1.1rem;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(20, 24, 32, 0.04));
}

:root[data-theme="dark"] .site-footer {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.28));
}

.footer-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 1rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-cols h3 {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  color: var(--champagne);
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-cols a {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-cols a:hover,
.footer-cols a:focus-visible {
  color: var(--text);
}

.footer-base {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-base p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 55;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem 0.7rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: #25d366;
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.3);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  filter: blur(4px);
  transition:
    opacity 900ms var(--ease-soft),
    transform 900ms var(--ease-soft),
    filter 900ms var(--ease-soft);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal.reveal-left {
  transform: translate3d(-28px, 18px, 0);
}

.reveal.reveal-scale {
  transform: translate3d(0, 24px, 0) scale(0.96);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

[data-slide] {
  animation: slide-in 520ms var(--ease-soft);
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

body.is-ready .hero-content .reveal,
body.is-ready .page-hero-content .reveal {
  transition-delay: calc(var(--delay, 0ms) + 120ms);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -30px, 0) scale(1.08); }
}

@keyframes pulse-core {
  0%, 100% { transform: scale(1); box-shadow: var(--glow), var(--shadow); }
  50% { transform: scale(1.04); box-shadow: 0 0 46px rgba(227, 17, 69, 0.35), var(--shadow); }
}

@keyframes particle {
  0% { transform: scale(0.6); opacity: 0.2; }
  40% { opacity: 1; }
  100% { transform: scale(1.4) translateY(-10px); opacity: 0; }
}

/* Responsive */
@media (max-width: 1040px) {
  .nav-wrap {
    border-radius: 1.5rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-wrap.is-open .nav-panel {
    display: flex;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 1.2rem;
  }

  .feature-grid,
  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .thought-list,
  .contact-shell,
  .detail-grid,
  .profile-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .work-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-content,
  .page-hero-content {
    padding-top: 9.5rem;
    padding-bottom: 3.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .service-grid,
  .team-grid,
  .feature-grid,
  .instagram-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .actions,
  .footer-base {
    flex-direction: column;
  }

  .btn,
  .form button {
    width: 100%;
  }

  .cursor-dot,
  .cursor-ring,
  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.65rem;
  }

  .brand img {
    width: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
