/* =========================================================
   BrandBay Innovation Studios — main stylesheet
   ========================================================= */

:root {
  --ink: #0a0c18;
  --ink-2: #10131f;
  --ink-3: #181c2b;
  --line: rgba(255, 255, 255, 0.09);
  --paper: #f6f3ee;
  --paper-2: #ece7df;
  --text: #e9ecf2;
  --muted: #9aa3b5;
  --text-dark: #12151c;
  --muted-dark: #5b6272;
  --accent: #f5b13f;
  --accent-deep: #e89e25;
  --gold-light: #ffe770;
  --on-accent: #0a0c18;
  --accent-2: #ffe770;
  --accent-soft: rgba(245, 177, 63, 0.14);
  --gold-grad: linear-gradient(180deg, #ffe770 0%, #f9c04b 55%, #e89e25 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45);
  --max: 1200px;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.accent { color: var(--accent); }
.grad {
  background: linear-gradient(180deg, #ffe770 10%, #f9c04b 55%, #e89e25 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--light .lead, .section--light .muted { color: var(--muted-dark); }
.section--alt { background: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap; background: transparent;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: linear-gradient(180deg, #ffd85e, #f0a830); color: var(--on-accent); box-shadow: 0 12px 30px -10px rgba(245, 177, 63, .6); }
.btn--primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, #ffe770, #f5b13f); }
.btn--ghost { border-color: rgba(255,255,255,.25); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,.06); }
.section--light .btn--ghost { border-color: rgba(0,0,0,.2); color: var(--text-dark); }
.section--light .btn--ghost:hover { border-color: var(--text-dark); background: rgba(0,0,0,.04); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(10, 13, 20, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
  padding: 10px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; line-height: 1; }
.logo img { width: 40px; height: auto; flex-shrink: 0; }
.logo .wordmark { display: flex; flex-direction: column; gap: 3px; }
.logo .wordmark b {
  font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #f9c04b, #e89e25); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo .wordmark small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.footer-logo img { width: 190px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 15px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 22px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); cursor: pointer; position: relative;
}
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  padding: 110px 24px 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
}
.menu-open .mobile-menu { transform: none; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--font-display); font-size: 2rem; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu a.m-link.active { color: var(--accent); }
.mobile-menu .btn { margin-top: 26px; }
.mobile-menu .socials { margin-top: auto; }
.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; position: relative; overflow: hidden;
  padding: 130px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(245, 177, 63, .22), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(255, 231, 112, .10), transparent 70%),
    linear-gradient(180deg, rgba(10,13,20,.4) 0%, var(--ink) 100%);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: end; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.tagline-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pill {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
}
.pill b { color: var(--accent); }
.hero-card {
  background: rgba(17, 22, 34, .7); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-card h4 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; margin-bottom: 6px; }
.stat span { font-size: .88rem; color: var(--muted); }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--muted), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Page hero (inner pages) */
.page-hero { padding: 170px 0 90px; position: relative; overflow: hidden; }
.page-hero .hero-bg img { opacity: .18; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); max-width: 16ch; }
.breadcrumb { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--ink-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.8rem); white-space: nowrap; display: flex; align-items: center; gap: 48px; color: var(--muted); }
.marquee-track span::after { content: "✦"; color: var(--accent); font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.split-media .badge {
  position: absolute; bottom: -22px; right: -12px; background: var(--gold-grad); color: var(--on-accent);
  padding: 20px 24px; border-radius: 16px; font-family: var(--font-display); font-weight: 700; max-width: 230px; line-height: 1.2;
  box-shadow: var(--shadow);
}
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.pillar {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 1px solid rgba(0,0,0,.06); font-weight: 600; font-size: .95rem;
}
.section:not(.section--light) .pillar { background: rgba(255,255,255,.04); border-color: var(--line); }
.pillar i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; font-style: normal; }
.pillar i svg { width: 18px; height: 18px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  position: relative; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(245, 177, 63, .5); }
.service-card .media { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .num { position: absolute; top: 14px; left: 14px; background: rgba(10,13,20,.75); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.service-card .body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 10px; }
.service-card .tag { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.chip { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text); }
.service-card .more { margin-top: auto; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .25s; }
.service-card:hover .more svg { transform: translateX(4px); }

/* Services detail page */
.svc-detail { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(50px, 7vw, 80px) 0; border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail:nth-child(even) .svc-media { order: 2; }
.svc-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-detail .big-num { font-family: var(--font-display); font-size: 1rem; color: var(--accent); font-weight: 700; letter-spacing: .1em; margin-bottom: 12px; display: block; }
.svc-detail .quote { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; padding-left: 16px; border-left: 3px solid var(--accent); margin-top: 24px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-list li::before {
  content: ""; width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e89e25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid rgba(0,0,0,.06); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--accent-deep); opacity: .9; display: block; margin-bottom: 14px; line-height: 1; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted-dark); font-size: .95rem; margin: 0; }

/* ---------- Logo wall / gallery ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-wall .tile { aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ink-3); cursor: zoom-in; position: relative; border: 1px solid var(--line); padding: 0; }
.logo-wall .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .5s; }
.logo-wall .tile:hover img { transform: scale(1.07); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .25s; }
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.filter-btn .count { opacity: .7; font-weight: 500; margin-left: 4px; }
.masonry { columns: 4 240px; column-gap: 16px; }
.masonry .tile { break-inside: avoid; margin-bottom: 16px; border-radius: 14px; overflow: hidden; cursor: zoom-in; position: relative; background: var(--ink-3); display: block; width: 100%; border: 1px solid var(--line); padding: 0; }
.masonry .tile img { width: 100%; height: auto; transition: transform .5s var(--ease); }
.masonry .tile:hover img { transform: scale(1.04); }
.tile .tile-label {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(10,13,20,.8); backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: all .3s; color: #fff;
}
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; transform: none; }
.tile.hide { display: none; }

/* Projects */
.projects-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.project-card { border-radius: var(--radius); overflow: hidden; position: relative; background: var(--ink-3); border: 1px solid var(--line); cursor: zoom-in; padding: 0; display: block; width: 100%; text-align: left; }
.project-card img { width: 100%; aspect-ratio: 768/406; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover img { transform: scale(1.04); }
.project-card .cap { position: absolute; inset: auto 0 0 0; padding: 50px 22px 18px; background: linear-gradient(transparent, rgba(10,13,20,.92)); display: flex; justify-content: space-between; align-items: end; gap: 10px; color: #fff; }
.project-card .cap strong { font-family: var(--font-display); font-size: 1.15rem; }
.project-card .cap span { font-size: .8rem; color: var(--muted); }
.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.projects-grid .tile { aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--ink-3); border: 1px solid var(--line); padding: 0; position: relative; }
.projects-grid .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.projects-grid .tile:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,7,12,.94); display: none; align-items: center; justify-content: center; padding: 70px 16px; }
.lightbox.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox img { max-width: min(1000px, 100%); max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: .85rem; color: var(--muted); letter-spacing: .1em; }

/* ---------- Testimonials ---------- */
.testi-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .6s var(--ease); }
.testimonial { min-width: 100%; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: #fff; border: 1px solid rgba(0,0,0,.06); }
.stars { color: var(--accent-2); letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 18px; }
.testimonial blockquote { margin: 0 0 26px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.4; color: var(--text-dark); }
.author { display: flex; align-items: center; gap: 14px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--gold-grad); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.author strong { display: block; color: var(--text-dark); }
.author span { font-size: .88rem; color: var(--muted-dark); }
.slider-nav { display: flex; gap: 10px; margin-top: 22px; align-items: center; }
.slider-nav button.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text-dark); transition: all .2s; }
.slider-nav button.arrow:hover { background: var(--text-dark); color: #fff; }
.slider-nav svg { width: 20px; height: 20px; }
.dots { display: flex; gap: 8px; margin-left: 10px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(0,0,0,.18); cursor: pointer; padding: 0; transition: all .3s; }
.dots button.active { background: var(--accent); width: 28px; border-radius: 6px; }

/* ---------- Why us / features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 34px 30px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.feature:hover { border-color: rgba(245,177,63,.45); transform: translateY(-4px); }
.feature .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.feature .icon svg { width: 26px; height: 26px; }
.feature p { color: var(--muted); margin: 0; }
.section--light .feature { background: #fff; border-color: rgba(0,0,0,.06); }
.section--light .feature p { color: var(--muted-dark); }

.branding-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.brand-box { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.brand-box.hl { background: var(--gold-grad); border-color: transparent; color: var(--on-accent); }
.brand-box.hl p { color: rgba(10,12,24,.8); }
.brand-box p { color: var(--muted); margin: 0; }

/* Compliance docs */
.docs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.doc { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(0,0,0,.08); cursor: zoom-in; padding: 0; box-shadow: 0 10px 30px -18px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.doc:hover { transform: translateY(-5px); }
.doc img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item { border-radius: 16px; background: #fff; border: 1px solid rgba(0,0,0,.07); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 26px; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 20px; cursor: pointer; color: var(--text-dark); }
.faq-q .pm { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; position: relative; transition: transform .3s, background .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); border-radius: 2px; }
.faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq-item.open .pm { background: var(--accent); color: var(--on-accent); }
.faq-item.open .pm::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a .inner { padding: 0 26px 24px; color: var(--muted-dark); }
.faq-a ul { margin: 6px 0 0; padding-left: 20px; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 28px; overflow: hidden; padding: clamp(40px, 7vw, 80px); background: var(--ink-3); border: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 90% at 100% 0%, rgba(245,177,63,.26), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(255,231,112,.10), transparent 60%); }
.cta-band > * { position: relative; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); align-items: center; }
.cta-band .tagline { font-family: var(--font-display); font-weight: 700; color: var(--accent-2); letter-spacing: .02em; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 17px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.04);
  transition: border-color .2s, background .2s; outline: none; font-size: 1rem;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3b5' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--ink-2); color: var(--text); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: rgba(255,255,255,.07); }
.field.error input, .field.error select, .field.error textarea { border-color: #ff4d6d; }
.field .err-msg { font-size: .82rem; color: #ff6b85; display: none; }
.field.error .err-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.send-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn--wa { background: #25d366; color: #0a0d14; }
.btn--wa:hover { transform: translateY(-2px); background: #2ee673; }
.form-success { display: none; padding: 18px 20px; border-radius: 12px; background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .4); color: #8ff0b5; font-weight: 500; }
.form-success.show { display: block; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 60px); }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 18px; padding: 22px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); align-items: flex-start; transition: border-color .25s; }
a.c-card:hover { border-color: rgba(245,177,63,.5); }
.c-card .icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.c-card .icon svg { width: 22px; height: 22px; }
.c-card h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 2px 0 4px; }
.c-card p { margin: 0; font-weight: 600; word-break: break-word; }
.form-panel { padding: clamp(26px, 4vw, 42px); border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.9) invert(.92) contrast(.9); }

/* ---------- Footer ---------- */
.site-footer { background: #06080d; padding: clamp(60px, 8vw, 90px) 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h5 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text); opacity: .85; transition: color .2s, opacity .2s; }
.footer-grid ul a:hover { color: var(--accent); opacity: 1; }
.footer-about p { color: var(--muted); max-width: 34ch; margin: 18px 0 24px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; transition: all .25s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.newsletter { display: flex; gap: 8px; margin-top: 4px; }
.newsletter input { flex: 1; min-width: 0; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255,255,255,.04); outline: none; }
.newsletter input:focus { border-color: var(--accent); }
.newsletter button { padding: 13px 18px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; cursor: pointer; }
.newsletter-msg { font-size: .85rem; margin-top: 10px; min-height: 1.2em; color: #8ff0b5; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-size: .88rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* Floating WhatsApp + back to top */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6); transition: transform .25s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; color: #fff; }
.to-top { position: fixed; right: 26px; bottom: 90px; z-index: 80; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17,22,34,.85); backdrop-filter: blur(8px); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .3s; color: var(--text); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Legal page */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted-dark); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .hero-inner, .split, .testi-wrap, .cta-grid, .contact-grid, .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-media { order: 0; }
  .features { grid-template-columns: 1fr 1fr; }
  .branding-pair { grid-template-columns: 1fr; }
  .split-media .badge { right: 12px; }
  .projects-feature { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid, .features, .process, .pillars, .form-row, .check-list, .send-choice { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .masonry { columns: 2; column-gap: 10px; }
  .masonry .tile { margin-bottom: 10px; }
  .hero { padding-top: 120px; }
  .scroll-cue { display: none; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
  .lb-count { bottom: 30px; }
  .page-hero { padding: 140px 0 70px; }
}

/* Grid children may shrink below content width (prevents slider overflow) */
.testi-wrap > *, .cta-grid > *, .split > *, .contact-grid > *, .hero-inner > *, .svc-detail > * { min-width: 0; }

/* Gold on light backgrounds: use the deeper tone for legibility */
.section--light .eyebrow, .section--light .big-num, .section--light .grad { color: #c9851a; }
.section--light .grad { background: none; -webkit-text-fill-color: #c9851a; }
.section--light .pillar i, .section--light .feature .icon { color: #c9851a; }
.section--light .faq-q .pm { color: #c9851a; }
.section--light .faq-item.open .pm { color: var(--on-accent); }
.section--light .stars { color: #e89e25; }
.legal a { color: #c9851a !important; }
.hero-mark { position: absolute; right: -6%; top: 50%; transform: translateY(-50%); width: min(46vw, 620px); opacity: .05; pointer-events: none; z-index: 0; }
@media (max-width: 900px) { .hero-mark { display: none; } }
