/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --bg: #171717;
  --header: #171717;
  --panel: #171717;
  --text: #ffffff;
  --muted: #c5c5c5;
  --accent: #deb841;
  --border: rgba(197, 197, 197, 0.18);
  --radius: 18px;
  --container: 1180px;
  --space-section: 3.2rem;
  --space-section-mobile: 2rem;
  --box-bg: #252525;
  --button-border-radius: 9999px;
  --button-border-width: 2px;
  --button-border-gradient-angle: 262deg;
  --button-gradient-colorstop-1: 14.51%;
  --button-gradient-colorstop-2: 95.96%;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; }

html {
  background: var(--bg);
  min-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(222, 184, 65, 0.75) rgba(23, 23, 23, 0.85);
}

@media (prefers-reduced-motion: reduce) {
  .button-pulse { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: transparent;
  color: var(--text);
  position: relative;
  z-index: 1;
  min-height: 100vh;
  isolation: isolate;
}

main#app.app-shell { background: transparent; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(23, 23, 23, 0.85); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(222, 184, 65, 0.85), rgba(222, 184, 65, 0.55));
  border-radius: 999px;
  border: 2px solid rgba(23, 23, 23, 0.85);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(222, 184, 65, 0.95), rgba(222, 184, 65, 0.7));
}
::-webkit-scrollbar-corner { background: rgba(23, 23, 23, 0.85); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: min(var(--container), 92vw);
  margin: 0 auto;
}

.app-shell {
  min-height: calc(100vh - 220px);
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(2rem, 5vw, 3.6rem);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(23, 23, 23, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  min-height: 62px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand-logo {
  height: clamp(36px, 5vw, 50px);
  width: auto;
  display: block;
  filter: brightness(1.05);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-self: end;
}

.header-social { display: flex; gap: 0.45rem; }

.header-social a {
  color: var(--text);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  opacity: 0.85;
  transition: color 0.22s, opacity 0.22s;
}

.header-social a svg { width: 16px; height: 16px; }
.header-social a:hover { color: var(--accent); opacity: 1; }

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--header);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, color 0.2s;
}

.menu-btn:hover { border-color: rgba(222, 184, 65, 0.4); color: var(--accent); }

.nav { display: flex; justify-content: center; gap: 0.2rem; }

.nav a {
  text-decoration: none;
  color: var(--text);
  font-family: inherit;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.5;
  font-weight: 600;
  opacity: 0.82;
  padding: 0.35rem 0.65rem;
  border-radius: 7px;
  transition: color 0.22s, opacity 0.22s;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a.active,
.nav a:hover { color: var(--accent); opacity: 1; }

.nav a.active::after,
.nav a:hover::after { width: 55%; }

/* ============================================================
   PAGE TRANSITIONS
   ============================================================ */
.loading { color: var(--muted); margin: 0; padding: 1rem 0; }

.page-fade-out { opacity: 0.18; transition: opacity 160ms ease; }
.page-fade-in  { opacity: 1;    transition: opacity 300ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered grid children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1)  { transition-delay: 0.04s; }
.stagger-children.visible > *:nth-child(2)  { transition-delay: 0.10s; }
.stagger-children.visible > *:nth-child(3)  { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4)  { transition-delay: 0.22s; }
.stagger-children.visible > *:nth-child(5)  { transition-delay: 0.28s; }
.stagger-children.visible > *:nth-child(6)  { transition-delay: 0.34s; }
.stagger-children.visible > *:nth-child(7)  { transition-delay: 0.40s; }
.stagger-children.visible > *:nth-child(8)  { transition-delay: 0.46s; }
.stagger-children.visible > *:nth-child(n+9) { transition-delay: 0.52s; }

.stagger-children.visible > * { opacity: 1; transform: translateY(0); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(0.5rem, 3vw, 1.5rem);
}

.hero-content { text-align: center; }

.hero-tagline {
  color: var(--muted);
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  margin: -0.5rem auto 1.5rem;
  max-width: 560px;
  line-height: 1.6;
}

.footer-location-tag {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.7;
}

.hero-neuros h1 {
  margin: 0 0 clamp(1rem, 2.5vw, 1.6rem);
  font-family: inherit;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  letter-spacing: -0.03em;
  font-weight: 800;
  text-align: center;
  text-transform: capitalize;
  line-height: 1.05;
}

.hero-neuros h1 .highlight-gold {
  position: relative;
  display: inline-block;
}

.highlight-gold { color: var(--accent); font-weight: 800; }

/* ============================================================
   BUTTON
   ============================================================ */
.neuros-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  padding: clamp(0.6rem, 1.2vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--button-border-radius);
  background: transparent;
  border: var(--button-border-width) solid transparent;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.neuros-button::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--button-border-width));
  border-radius: var(--button-border-radius);
  padding: var(--button-border-width);
  background: linear-gradient(
    var(--button-border-gradient-angle),
    var(--accent) var(--button-gradient-colorstop-1),
    #9b9b9b var(--button-gradient-colorstop-2)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.neuros-button .button-inner {
  position: relative;
  z-index: 1;
  font-family: inherit;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 700;
  white-space: nowrap;
}

.neuros-button:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.neuros-button:active { transform: translateY(0); }

.button-pulse { animation: pulse-glow 2.5s ease-in-out infinite; }

@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0    rgba(222, 184, 65, 0.65); }
  50%  { box-shadow: 0 0 0 12px rgba(222, 184, 65, 0); }
  100% { box-shadow: 0 0 0 0    rgba(222, 184, 65, 0); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { margin-top: var(--space-section); }
.section h2 { margin-bottom: 1rem; }

.muted { color: var(--muted); margin: 0.5rem 0 0; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 1.2rem;
  gap: 1rem;
}

.section-title-row h2,
.section-title-row h3 {
  font-family: inherit;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  background: linear-gradient(90deg, var(--text) 65%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-cta { flex-shrink: 0; display: flex; gap: 1rem; }

.section-title-cta .neuros-button { padding: 0.55rem 1rem; white-space: nowrap; }

/* Gold accent line under standalone h2 */
.section > h2 {
  position: relative;
  display: inline-block;
}

.section > h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin-top: 0.35rem;
  animation: line-grow 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes line-grow {
  to { width: clamp(36px, 7vw, 72px); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section .services-title-row h2 {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  letter-spacing: -0.03em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-card-item {
  background: var(--box-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  min-height: 60px;
  padding: clamp(0.65rem, 1.2vw, 0.9rem) clamp(0.75rem, 1.5vw, 1rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  cursor: default;
}

.service-card-item:hover {
  transform: translateY(-4px);
  border-color: rgba(222, 184, 65, 0.3);
  box-shadow: 0 10px 32px rgba(222, 184, 65, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-label {
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  line-height: 1.2;
  color: #fff;
}

.service-icon-img {
  width: clamp(22px, 2.5vw, 30px);
  height: clamp(22px, 2.5vw, 30px);
  object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-list { display: grid; gap: 1.1rem; }

.process-card {
  background: var(--box-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  min-height: 200px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(1rem, 3vw, 1.8rem);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  cursor: default;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: rgba(222, 184, 65, 0.22);
  box-shadow: 0 20px 56px rgba(222, 184, 65, 0.1), 0 4px 18px rgba(0, 0, 0, 0.4);
}

.process-title {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.accent-word { color: var(--accent); }

.process-text {
  margin: 0;
  color: #ffffff;
  opacity: 0.82;
  max-width: 58ch;
  line-height: 1.45;
  font-size: clamp(0.87rem, 1.3vw, 1rem);
}

.process-badges { margin-top: 1rem; display: flex; justify-content: center; gap: 0.6rem; }

.process-badges img {
  width: clamp(44px, 7vw, 64px);
  height: auto;
  object-fit: contain;
}

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: rgba(222, 184, 65, 0.22);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

.card h3 { margin: 0 0 0.45rem; font-size: clamp(1rem, 1.5vw, 1.15rem); }
.card p  { margin: 0.35rem 0; color: var(--muted); font-size: clamp(0.85rem, 1.1vw, 0.95rem); }

/* ============================================================
   LISTS
   ============================================================ */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.75rem;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  padding: 0.9rem;
}

/* ============================================================
   POLICY / TERMS
   ============================================================ */
.policy-section { max-width: 980px; margin-inline: auto; }
.policy-list { gap: 1rem; }
.policy-list li { display: block; padding: 1rem 1.1rem; }

.policy-list strong {
  display: block;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  margin-bottom: 0.42rem;
  color: #ffffff;
}

.policy-list p {
  margin: 0;
  color: #c5c5c5;
  line-height: 1.6;
  max-width: 78ch;
  font-size: clamp(0.87rem, 1.2vw, 0.95rem);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { margin-top: 0.8rem; }

.contact-top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.6rem;
  align-items: start;
}

.contact-left h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.contact-subtitle {
  margin: 0 0 1rem;
  max-width: 52ch;
  color: #ffffff;
  opacity: 0.88;
  line-height: 1.4;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
}

.contact-list { display: grid; gap: 0.45rem; }

.contact-row { margin: 0; font-size: clamp(0.9rem, 1.3vw, 1.02rem); font-weight: 700; }

.contact-row a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s;
}

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

.contact-form { display: grid; gap: 0.78rem; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(197, 197, 197, 0.35);
  color: #ffffff;
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(222, 184, 65, 0.55);
  box-shadow: 0 0 0 3px rgba(222, 184, 65, 0.09);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #888; }

.contact-form button {
  border: 0;
  background: var(--accent);
  color: #111;
  border-radius: 4px;
  min-height: 44px;
  font-family: inherit;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.22s, transform 0.2s;
}

.contact-form button:hover { opacity: 0.88; transform: translateY(-1px); }

.contact-map-wrap { margin-top: 1.1rem; border-radius: 22px 22px 0 0; overflow: hidden; }

.contact-map-wrap iframe { width: 100%; min-height: 480px; border: 0; display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section h2 { margin-bottom: 1.2rem; }

.faq-list { display: grid; gap: 0; }

.faq-item {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.1rem 0;
  transition: padding-left 0.25s ease;
}

.faq-item:hover { padding-left: 0.4rem; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-question {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  line-height: 1.2;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.faq-arrow {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.9;
  flex-shrink: 0;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-arrow { transform: rotate(90deg); }

.faq-answer {
  margin: 0 0 1rem;
  color: #c5c5c5;
  font-size: clamp(0.87rem, 1.2vw, 0.96rem);
  max-width: 82ch;
  line-height: 1.55;
}

/* ============================================================
   CTA BLOCK (luxury shimmer)
   ============================================================ */
.cta-block {
  border: 1px solid var(--border);
  background:
    radial-gradient(800px 420px at 20% 0%, rgba(222, 184, 65, 0.14), transparent 60%),
    linear-gradient(180deg, #1a1a1a, #171717);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3.5vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.cta-block:hover {
  box-shadow: 0 0 80px rgba(222, 184, 65, 0.07);
}

/* Animated gold shimmer line at top */
.cta-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222, 184, 65, 0.8), transparent);
  animation: cta-shimmer 4s ease-in-out infinite;
}

@keyframes cta-shimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

.cta-block h2 {
  margin: 0 0 0.55rem;
  font-family: inherit;
  letter-spacing: -0.05em;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.cta-block p {
  margin: 0 0 1.2rem;
  color: var(--muted);
  max-width: 70ch;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(1.8rem, 3vw, 2.6rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.footer-wrap { display: grid; gap: 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-left { display: grid; gap: 0.9rem; max-width: 520px; }

.footer-logo {
  width: clamp(40px, 5vw, 54px);
  height: clamp(40px, 5vw, 54px);
  object-fit: contain;
  border-radius: 4px;
}

.footer-description {
  margin: 0;
  color: #ffffff;
  opacity: 0.72;
  font-size: clamp(0.84rem, 1.1vw, 0.92rem);
  line-height: 1.4;
}

.footer-right {
  display: grid;
  gap: 0.55rem;
  min-width: 180px;
}

.footer-right h4,
.footer-service-links h4 {
  margin: 0 0 0.2rem;
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 700;
}

.footer-right a,
.footer-right p,
.footer-right span,
.footer-right address,
.footer-right address a,
.footer-right address span,
.service-links-row a {
  margin: 0;
  color: #ffffff;
  opacity: 0.82;
  text-decoration: none;
  font-size: clamp(0.86rem, 1.1vw, 0.98rem);
  transition: color 0.2s, opacity 0.2s;
}

.footer-right address { font-style: normal; display: contents; }

.footer-right a:hover,
.footer-right address a:hover,
.service-links-row a:hover { color: var(--accent); opacity: 1; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.footer-service-links { display: grid; gap: 0.55rem; }
.service-links-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.footer-copy {
  margin: 0;
  color: #ffffff;
  opacity: 0.55;
  font-size: clamp(0.78rem, 1vw, 0.88rem);
}

/* ============================================================
   COMPANIES CAROUSEL
   ============================================================ */
.logos-marquee {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 0;
}

.companies-section { position: relative; padding-top: 0.4rem; }

.companies-title {
  text-align: center;
  color: var(--accent);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 1.3rem;
  letter-spacing: -0.02em;
}

.companies-carousel {
  overflow: hidden;
  border-radius: 8px;
  padding: 1rem 0;
  background: transparent;
}

.companies-track {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: max-content;
  animation: companies-scroll 30s linear infinite;
}

.companies-carousel:hover .companies-track { animation-play-state: paused; }

.companies-track .logo-item {
  width: clamp(120px, 14vw, 190px);
  min-width: clamp(120px, 14vw, 190px);
  height: clamp(76px, 10vw, 120px);
  padding: 0.3rem;
}

.companies-track .logo-item img { width: 100%; height: 100%; object-fit: contain; }

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

.logos-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  align-items: center;
  animation: logos-scroll 38s linear infinite;
}

.logo-item {
  width: 150px;
  height: 88px;
  display: grid;
  place-items: center;
  padding: 0.4rem;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.logo-item img:hover { opacity: 1; }

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

/* ============================================================
   PORTFOLIO GRID & CARDS
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.portfolio-card {
  border-radius: var(--radius);
  min-height: 400px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: #111;
  transition: box-shadow 0.4s ease,
              border-color 0.4s ease,
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover {
  box-shadow: 0 0 0 1px rgba(222, 184, 65, 0.24),
              0 28px 70px rgba(0, 0, 0, 0.55);
  border-color: rgba(222, 184, 65, 0.24);
  transform: translateY(-5px);
}

/* Gold shimmer on hover */
.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, transparent 30%, rgba(222, 184, 65, 0.1) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.portfolio-card:hover::before { opacity: 1; }

.portfolio-img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.18) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(0.7rem, 2vw, 1rem);
}

.portfolio-meta { display: grid; gap: 0.22rem; width: 100%; }

.portfolio-name {
  font-family: inherit;
  font-size: clamp(0.78rem, 1.2vw, 0.98rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.portfolio-role {
  color: #c5c5c5;
  font-size: clamp(0.64rem, 0.9vw, 0.74rem);
  line-height: 1.25;
  font-weight: 500;
}

.card-social-links {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: grid;
  gap: 0.45rem;
}

.card-social-links a {
  width: clamp(28px, 3.5vw, 34px);
  height: clamp(28px, 3.5vw, 34px);
  border-radius: 9px;
  background: rgba(23, 23, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: background 0.22s, border-color 0.22s, transform 0.22s;
}

.card-social-links a:hover {
  background: rgba(222, 184, 65, 0.22);
  border-color: rgba(222, 184, 65, 0.55);
  transform: scale(1.1);
}

.card-social-links a svg { width: 16px; height: 16px; }

/* Client card */
.client-card .portfolio-name {
  font-size: clamp(1rem, 2.8vw, 1.55rem);
  font-weight: 700;
}

.client-card .portfolio-role {
  font-size: clamp(0.76rem, 1.1vw, 0.88rem);
  color: #ffffff;
}

.card-growth { display: grid; gap: 0.28rem; margin-top: 0.5rem; }
.client-card .card-growth { margin-top: 0.5rem; gap: 0.35rem; }

.client-card .growth-line { font-size: clamp(1.1rem, 2vw, 1.2rem); }

.growth-line {
  display: flex;
  gap: 0.48rem;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.growth-line:hover { color: var(--accent); }

.growth-platform { color: var(--accent); font-weight: 800; min-width: 20px; }

.growth-platform-icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  min-width: 16px;
  color: #ffffff;
}

.growth-platform-icon svg { width: 14px; height: 14px; fill: currentColor; }

.growth-number { color: var(--accent); font-weight: 800; }

.card-shows {
  margin-top: 0.48rem;
  font-size: clamp(0.7rem, 1.1vw, 0.82rem);
  color: #c5c5c5;
  line-height: 1.35;
}

.card-shows-label { color: var(--accent); font-weight: 700; }

/* ============================================================
   TEAM
   ============================================================ */
.team-group { margin-top: 2rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.team-card { min-height: 360px; }

.team-member { aspect-ratio: 3 / 4; min-height: 260px; }

.team-card .portfolio-name {
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  line-height: 1.12;
  font-weight: 600;
}

.team-card .portfolio-role {
  font-size: clamp(0.68rem, 0.9vw, 0.8rem);
  line-height: 1.25;
  font-weight: 500;
  color: #c5c5c5;
}


/* ============================================================
   TABLET BREAKPOINT  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .contact-top {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }
}

/* ============================================================
   MOBILE BREAKPOINT  ≤ 760px
   ============================================================ */
@media (max-width: 760px) {
  :root {
    --space-section: var(--space-section-mobile);
  }

  .app-shell { padding: 1.1rem 0 2rem; }

  .header-inner { min-height: 56px; }

  .header-social { display: none; }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.5rem 0.9rem;
  }

  .nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    padding: 0.6rem 4vw 1rem;
    z-index: 30;
  }

  .nav.open { display: flex; }

  .nav a::after { display: none; }

  .section-title-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }

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

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

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

  .contact-top { grid-template-columns: 1fr; gap: 1rem; }

  .contact-map-wrap iframe { min-height: 300px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-right { min-width: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Horizontal swipe on mobile */
  .slider-on-mobile {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .slider-on-mobile::-webkit-scrollbar { height: 4px; }
  .slider-on-mobile::-webkit-scrollbar-thumb {
    background: rgba(222, 184, 65, 0.35);
    border-radius: 999px;
  }

  .slider-on-mobile .portfolio-card {
    flex: 0 0 80%;
    scroll-snap-align: start;
    min-height: 54vw;
  }

  .team-grid.slider-on-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    scroll-snap-type: unset;
    padding-bottom: 0;
  }

  .team-grid.slider-on-mobile .portfolio-card {
    flex: unset;
    scroll-snap-align: unset;
    min-height: 200px;
    aspect-ratio: 3 / 4;
  }

  .portfolio-card { min-height: 250px; aspect-ratio: 3 / 4; }

  .slider-list-on-mobile {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
  }

  .slider-list-on-mobile > li { flex: 0 0 88%; scroll-snap-align: start; }

  .slider-chips-on-mobile {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scroll-snap-type: x mandatory;
  }

  .slider-chips-on-mobile .chip { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
}

/* ============================================================
   SMALL PHONE  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }

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

  .slider-on-mobile .portfolio-card { flex: 0 0 88%; }

  .process-card { min-height: 150px; }

  .hero-neuros h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  
   .companies-track .logo-item {
    width: 170px;
    min-width: 170px;
    height: 108px;
  }
}
