/* =========================================================
   TORONJA MEDIA — Design System
   ========================================================= */

:root {
  /* Brand */
  --brand: #BA3B0A;
  --brand-l: #E8772E;
  --brand-d: #8E2A05;
  --accent-bg: #FDE8D5;
  --accent-bg-2: #FFF5EC;

  /* Neutrals */
  --bg: #FFFCF8;
  --bg-2: #F5EFE8;
  --bg-dark: #1A1108;
  --bg-darker: #0E0905;
  --text: #1A1108;
  --text-2: #6B5A4E;
  --text-3: #A89080;
  --text-inv: #FAF6F1;
  --border: rgba(186, 59, 10, 0.14);
  --border-2: rgba(26, 17, 8, 0.08);

  /* Typography */
  --font-display: 'Antonio', sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  /* Scale */
  --container: min(1320px, 92vw);
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--brand); color: #fff; }

/* =========================================================
   GRAIN TEXTURE OVERLAY
   ========================================================= */

.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* =========================================================
   CUSTOM CURSOR (desktop only)
   ========================================================= */

.cursor, .cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.18s var(--ease), opacity 0.2s, background 0.2s, border-color 0.2s;
  opacity: 0;
}
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid var(--brand-l);
  border-radius: 50%;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--brand-l);
  border-radius: 50%;
}
.cursor.is-active {
  transform: translate(-50%, -50%) scale(1.6);
  border-color: var(--brand);
  background: rgba(232, 119, 46, 0.12);
}
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  background: rgba(255, 252, 248, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.nav.scrolled {
  padding: 12px var(--gutter);
  border-bottom-color: var(--border-2);
}

.nav-logo {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img { height: 76px; width: auto; object-fit: contain; transition: height 0.3s var(--ease); }
.nav.scrolled .nav-logo img { height: 60px; }
.footer-logo img { height: 88px; }

.nav-links {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 245, 236, 0.6);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 999px;
}
.nav-links a {
  position: relative;
  padding: 9px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--brand); }
.nav-links a.is-active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(186, 59, 10, 0.08);
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  background: var(--bg-dark); color: var(--text-inv);
  font-size: 14px; font-weight: 500;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s var(--ease);
  position: relative;
}
.nav-cta:hover { background: var(--brand); }
.nav-cta i { font-size: 16px; transition: transform 0.25s var(--ease); }
.nav-cta:hover i { transform: rotate(45deg); }

.nav-burger {
  display: none;
  flex-direction: column; gap: 6px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.nav-burger span {
  display: block; width: 22px; height: 1.8px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg);
  padding: 100px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer nav { display: flex; flex-direction: column; }
.mobile-drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border-2);
}
.mobile-drawer nav a i { font-size: 22px; color: var(--brand-l); }
.mobile-drawer .drawer-cta { color: var(--brand); }
.drawer-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; }
.drawer-foot a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.drawer-foot a i { color: var(--brand); font-size: 18px; }

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 160px var(--gutter) 100px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg svg { width: 100%; height: 100%; }
.orb { transform-origin: center; animation: orbFloat 14s ease-in-out infinite; }
.orb-b { animation-delay: -7s; animation-duration: 18s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
}

.hero-inner { position: relative; z-index: 1; max-width: 1200px; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 32px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--brand);
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 18ch;
}
.hero-word {
  display: inline-block;
  margin-right: 0.18em;
}
.hero-word.ital { font-style: italic; font-weight: 500; color: var(--brand-l); }
.accent-wrap { color: var(--brand); position: relative; }
.underline {
  position: absolute; left: 0; right: 0; bottom: -0.02em;
  width: 100%; height: 0.2em;
  overflow: visible;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 540px;
  margin: 72px 0 0;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin: 40px 0 0;
}

.hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-2);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item strong {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--text); line-height: 1;
  letter-spacing: -0.02em;
}
.meta-item span { font-size: 13px; color: var(--text-2); }
.meta-divider { width: 1px; height: 32px; background: var(--border); }

.hero-scroll {
  position: absolute; bottom: 28px; left: var(--gutter);
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2);
  z-index: 2;
}
.hero-scroll i {
  font-size: 16px; color: var(--brand);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn i { font-size: 18px; transition: transform 0.3s var(--ease); }
.btn-lg { padding: 18px 34px; font-size: 16px; }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(186, 59, 10, 0.5);
}
.btn-primary:hover {
  background: var(--brand-d);
  box-shadow: 0 18px 40px -12px rgba(186, 59, 10, 0.6);
  transform: translateY(-2px);
}
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--brand-l);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 1.5px solid var(--text);
  margin-top: 28px;
}
.btn-outline:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-outline:hover i { transform: translateX(4px); }

/* =========================================================
   SECTION HEADERS
   ========================================================= */

.section-header { max-width: 820px; margin: 0 auto 64px; text-align: center; }
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand);
  padding: 6px 14px;
  background: var(--accent-bg);
  border-radius: 999px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title em { font-style: italic; font-weight: 500; color: var(--brand-l); }
.section-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--text-2);
  max-width: 580px;
  margin: 22px auto 0;
}

/* =========================================================
   VALUE BULLETS
   ========================================================= */

.value {
  padding: 100px var(--gutter);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border-2);
}
.value-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}
.value-card {
  position: relative;
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  overflow: hidden;
}
.value-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-l));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-l);
  box-shadow: 0 20px 50px -20px rgba(186, 59, 10, 0.25);
}
.value-card:hover::before { transform: scaleX(1); }
.value-num {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: var(--brand-l);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.value-icon {
  font-size: 32px;
  color: var(--brand);
  margin-bottom: 20px;
  display: block;
}
.value-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.value-card p {
  font-size: 14px; line-height: 1.55;
  color: var(--text-2);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  padding: 120px var(--gutter);
  background: var(--bg);
  position: relative;
}
.services-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}
.service {
  position: relative;
  padding: 32px 28px 28px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.service:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--brand-l);
}
.services-grid:hover .service:not(:hover) {
  opacity: 0.55;
  filter: saturate(0.7);
}
.service-num {
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.08em;
}
.service-icon {
  font-size: 30px;
  color: var(--brand);
  margin-bottom: 22px;
  display: block;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.service p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.service-pill {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 999px;
}
.service-pill-new { background: var(--text); }
.service-feature { background: var(--text); color: var(--text-inv); border-color: transparent; }
.service-feature .service-num { color: rgba(255, 255, 255, 0.4); }
.service-feature .service-icon { color: var(--brand-l); }
.service-feature p { color: rgba(255, 255, 255, 0.7); }
.service-feature:hover { background: var(--text); }
.service-ai {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-l) 100%);
  color: #fff;
  border-color: transparent;
}
.service-ai .service-num,
.service-ai .service-icon { color: rgba(255, 255, 255, 0.85); }
.service-ai p { color: rgba(255, 255, 255, 0.85); }
.service-ai:hover { background: linear-gradient(135deg, var(--brand-d), var(--brand)); }

/* =========================================================
   METHODOLOGY
   ========================================================= */

.method {
  padding: 120px var(--gutter);
  background: var(--bg-dark);
  color: var(--text-inv);
}
.method-header .section-title { color: var(--text-inv); }
.method-header .section-title em { color: var(--brand-l); }
.method-header .section-eyebrow {
  background: rgba(232, 119, 46, 0.18);
  color: var(--brand-l);
}

.method-steps {
  position: relative;
  display: grid; gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}
.method-line {
  position: absolute;
  top: 240px; left: 12%; right: 12%;
  width: 76%; height: 6px;
  z-index: 0;
  pointer-events: none;
}
.method-line-path {
  stroke-dasharray: 12 12;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.method-line.is-visible .method-line-path { stroke-dashoffset: 0; }

.step {
  position: relative;
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  z-index: 1;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s;
}
.step:hover {
  transform: translateY(-6px);
  background: rgba(232, 119, 46, 0.08);
  border-color: var(--brand-l);
}
.step-num {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-l), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.step-icon {
  font-size: 30px;
  color: var(--brand-l);
  margin-bottom: 16px;
  display: block;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 12px;
  color: var(--text-inv);
}
.step p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.65); }

/* =========================================================
   ABOUT
   ========================================================= */

.about {
  padding: 120px var(--gutter);
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--border-2);
}
.about-grid {
  display: grid; gap: 80px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.about-text .section-eyebrow { margin-left: 0; }
.about-text .section-title { text-align: left; }
.about-text p {
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--text-2);
  margin-top: 20px;
  max-width: 480px;
}
.about-text p strong { color: var(--text); font-weight: 500; }

.about-visual {
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}

/* Partner badge */
.partner-badge {
  position: relative;
  width: 260px; height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.partner-ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: ringRotate 24s linear infinite;
}
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
.partner-inner {
  width: 168px; height: 168px;
  background: #fff;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px -10px rgba(186, 59, 10, 0.2);
}
.partner-inner strong {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}
.partner-inner span {
  font-size: 11px; color: var(--text-2);
  text-transform: uppercase; letter-spacing: 0.08em;
}

.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 460px;
}
.stat {
  text-align: center;
  padding: 20px 12px;
  background: var(--accent-bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.stat strong {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 700;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat em { font-family: var(--font-display); font-size: 22px; color: var(--brand); font-style: normal; }
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 12px; color: var(--text-2);
}

/* =========================================================
   CLIENTS MARQUEE
   ========================================================= */

.clients {
  padding: 100px 0;
  background: var(--bg);
  overflow: hidden;
  border-top: 1px solid var(--border-2);
}
.clients-header { padding: 0 var(--gutter); }

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marqueeRoll 50s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.client-mark {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 160px;
  min-width: 240px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: -0.02em;
  color: var(--text-3);
  padding: 22px 34px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: #fff;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.client-mark:hover {
  color: var(--brand);
  border-color: var(--brand-l);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -16px rgba(186, 59, 10, 0.3);
}
.client-img { padding: 18px 28px; }
.client-img img {
  max-height: 120px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  filter: grayscale(100%) contrast(0.85);
  opacity: 0.7;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease);
}
.client-img:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

/* =========================================================
   PORTFOLIO
   ========================================================= */

.portfolio {
  padding: 120px var(--gutter);
  background: var(--bg-2);
}
.portfolio-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--container);
  margin: 0 auto;
}
.portfolio-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-l);
  box-shadow: 0 30px 60px -20px rgba(186, 59, 10, 0.25);
}

.portfolio-frame {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #fff;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.browser-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #EFEAE4;
  border-bottom: 1px solid var(--border-2);
  z-index: 2;
}
.browser-bar > span {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.browser-bar > span:nth-child(1) { background: #E67358; }
.browser-bar > span:nth-child(2) { background: #E8B547; }
.browser-bar > span:nth-child(3) { background: #6FBA6E; }
.browser-url {
  margin-left: auto;
  padding: 3px 12px;
  background: #fff;
  border-radius: 999px;
  font-size: 11px; color: var(--text-2);
  border: 1px solid var(--border-2);
  max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.portfolio-screen {
  position: relative;
  flex: 1;
  background: #fff;
  overflow: hidden;
}
.portfolio-shot {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 3.2s var(--ease);
  will-change: transform;
}
.portfolio-card:hover .portfolio-shot {
  transform: translateY(-32%);
}
.portfolio-click {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
  background: transparent;
  transition: background 0.25s;
}
.portfolio-click:hover {
  background: rgba(186, 59, 10, 0.06);
}

.portfolio-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
}
.portfolio-cat {
  display: block;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand-l);
  margin-bottom: 4px;
}
.portfolio-meta h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.portfolio-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 500;
  color: var(--brand);
  white-space: nowrap;
  transition: gap 0.25s var(--ease);
}
.portfolio-link:hover { gap: 8px; }
.portfolio-link i { font-size: 16px; }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 140px var(--gutter);
  background: var(--bg-dark);
  color: var(--text-inv);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--brand-l) 0%, transparent 70%);
  opacity: 0.25;
  pointer-events: none;
}
.contact-inner {
  position: relative; z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.contact-eyebrow {
  background: rgba(232, 119, 46, 0.18);
  color: var(--brand-l);
}
.contact-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-inv);
  max-width: 14ch;
  margin: 0 auto;
}
.contact-h .ital { font-style: italic; font-weight: 500; color: var(--brand-l); }
.contact-h .accent { color: var(--brand-l); }
.contact-h [data-split] { display: inline-block; margin-right: 0.2em; }

.contact-lead {
  font-size: clamp(15px, 1.3vw, 18px);
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 32px auto 0;
}
.contact-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 40px 0 0;
}
.contact-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.contact-actions .btn-ghost:hover {
  background: #fff; color: var(--text);
}

.contact-promises {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  margin: 48px 0 0;
  list-style: none;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}
.contact-promises li { display: inline-flex; align-items: center; gap: 8px; }
.contact-promises i { color: var(--brand-l); font-size: 16px; }

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--bg-darker);
  color: var(--text-inv);
  padding: 80px var(--gutter) 32px;
}
.footer-grid {
  display: grid; gap: 48px;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  max-width: var(--container);
  margin: 0 auto;
}
.footer-brand .nav-logo { color: var(--text-inv); margin-bottom: 20px; }
.footer-brand .nav-logo-text span { color: var(--brand-l); }
.footer-brand p { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.55); max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand-l);
  margin-bottom: 18px;
}
.footer-col a, .footer-col span {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  padding: 7px 0;
  transition: color 0.2s, transform 0.2s var(--ease);
}
.footer-col a:hover { color: var(--brand-l); transform: translateX(3px); }
.footer-col a i, .footer-col span i { color: var(--brand-l); font-size: 16px; min-width: 16px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  padding: 0;
  transition: background 0.25s, transform 0.25s var(--ease);
}
.footer-social a i { color: var(--text-inv); font-size: 18px; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-social a:hover i { color: #fff; }

.footer-base {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  max-width: var(--container);
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */

.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.5);
  z-index: 90;
  transition: transform 0.3s var(--ease);
  animation: waBob 3s ease-in-out infinite;
}
.wa-float i { color: #fff; font-size: 28px; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes waBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

[data-split] {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-split].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-text .section-title { text-align: left; }
}

@media (max-width: 760px) {
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav { padding: 14px var(--gutter); }

  .hero { padding-top: 110px; min-height: auto; }
  .hero-h1 { line-height: 1; }
  .hero-meta { gap: 18px; margin-top: 44px; }
  .meta-divider { display: none; }
  .meta-item strong { font-size: 28px; }
  .hero-scroll { display: none; }

  .value { padding: 70px var(--gutter); }
  .value-grid { grid-template-columns: 1fr; }
  .services { padding: 80px var(--gutter); }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .method { padding: 80px var(--gutter); }
  .method-steps { grid-template-columns: 1fr; gap: 20px; }
  .method-line { display: none; }
  .about { padding: 80px var(--gutter); }
  .portfolio { padding: 80px var(--gutter); }
  .portfolio-grid { grid-template-columns: 1fr; gap: 16px; }
  .clients { padding: 70px 0; }
  .contact { padding: 90px var(--gutter); }
  .contact-promises { gap: 14px; font-size: 12px; }
  .contact-promises li { flex: 1 1 100%; justify-content: center; }

  .partner-badge { width: 220px; height: 220px; }
  .partner-inner { width: 142px; height: 142px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat strong { font-size: 26px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 56px var(--gutter) 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; }

  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .wa-float i { font-size: 24px; }

  .section-header { margin-bottom: 44px; }
  .cursor, .cursor-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], [data-split] { opacity: 1; transform: none; }
}
