/* ================================================================
   CHAIN REACTION CONSULTING — Modernised Design System v2
   Black & White · CSS Grid · 3D Transforms · Intersection Observer
   ================================================================ */

/* ── GOOGLE FONTS (loaded in HTML) ── */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Roboto', sans-serif; color: #1a1a1a; background: #fff; line-height: 1.7; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --black:    #0a0a0a;
  --black2:   #141414;
  --black3:   #1e1e1e;
  --grey-d:   #2e2e2e;
  --grey-m:   #666;
  --grey-l:   #999;
  --grey-xl:  #e8e8e8;
  --off-white:#f6f6f6;
  --white:    #ffffff;
  --border:   rgba(0,0,0,.08);
  --border-w: rgba(255,255,255,.12);
  --font-h:   'Space Grotesk', 'Raleway', sans-serif;
  --font-b:   'Roboto', sans-serif;
  --r4:       4px;
  --r8:       8px;
  --r16:      16px;
  --shadow-s: 0 4px 16px rgba(0,0,0,.08);
  --shadow-m: 0 8px 32px rgba(0,0,0,.12);
  --shadow-l: 0 20px 60px rgba(0,0,0,.16);
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
  --t2:       .2s var(--ease);
  --t3:       .35s var(--ease);
  --t5:       .55s var(--ease-out);
}

/* ── CONTAINER ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px,4vw,60px); }
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 860px; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-h); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.6rem,6vw,5rem); }
h2 { font-size: clamp(2rem,4vw,3.2rem); }
h3 { font-size: clamp(1.3rem,2.5vw,1.75rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; color: var(--grey-m); }

/* ── SECTION WRAPPER ─────────────────────────────────────────── */
.section { padding: clamp(60px,10vw,120px) 0; }

/* ── SECTION LABEL ───────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-h);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-m);
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--black);
}

/* ── SECTION HEADING ─────────────────────────────────────────── */
.section-heading { margin-bottom: .75rem; color: var(--black); }
.section-heading em { font-style: normal; position: relative; }
.section-heading em::after {
  content: '';
  position: absolute;
  left: 0; bottom: .08em;
  width: 100%; height: .12em;
  background: var(--black);
  opacity: .15;
}
.section-intro { max-width: 580px; color: var(--grey-m); font-size: 1.05rem; }

/* centred variant */
.section-head--center { text-align: center; }
.section-head--center .section-label { margin-inline: auto; }
.section-head--center .section-intro { margin-inline: auto; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 2rem;
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--r4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t3), box-shadow var(--t3), background var(--t3), color var(--t3), border-color var(--t3);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-dark  { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover  { background: var(--grey-d); border-color: var(--grey-d); box-shadow: 0 8px 24px rgba(0,0,0,.25); }

.btn-white { background: #fff; color: var(--black); border-color: #fff; }
.btn-white:hover { background: var(--off-white); box-shadow: 0 8px 24px rgba(255,255,255,.2); }

.btn-outline-dark  { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover  { background: var(--black); color: #fff; }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-icon { padding: .85rem; border-radius: 50%; }

/* ─────────────────────────────────────────────────────────────
   HEADER
   ───────────────────────────────────────────────────────────── */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--t3), box-shadow var(--t3), padding var(--t3);
}
#header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 8px 32px rgba(0,0,0,.06);
}
#header.dark-header { background: transparent; }
#header.dark-header.scrolled { background: rgba(10,10,10,.95); backdrop-filter: blur(12px); }

.header-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 2rem;
}
.main-logo img { height: 55px; width: auto; transition: opacity var(--t3); }
.main-logo:hover img { opacity: .8; }

/* Nav */
.navmenu { margin-left: auto; }
.navmenu > ul { display: flex; align-items: center; gap: .1rem; }
.navmenu ul li { position: relative; }

.navmenu ul li > a {
  display: block;
  padding: .5rem .85rem;
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-d);
  border-radius: var(--r4);
  transition: color var(--t2), background var(--t2);
  white-space: nowrap;
}
.navmenu ul li > a:hover,
.navmenu ul li > a.active { color: var(--black); background: var(--off-white); }

/* active underline */
.navmenu ul li > a.active { position: relative; }
.navmenu ul li > a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: .85rem; right: .85rem;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* dark header nav text */
#header.dark-header:not(.scrolled) .navmenu ul li > a { color: rgba(255,255,255,.75); }
#header.dark-header:not(.scrolled) .navmenu ul li > a:hover,
#header.dark-header:not(.scrolled) .navmenu ul li > a.active { color: #fff; background: rgba(255,255,255,.1); }

/* Dropdown */
.navmenu .dropdown > ul {
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border-radius: var(--r8);
  box-shadow: var(--shadow-l);
  min-width: 170px;
  padding: .5rem 0;
  border-top: 3px solid var(--black);
}
.navmenu .dropdown:hover > ul,
.navmenu .dropdown.open > ul { display: flex; }
.navmenu .dropdown > ul li a {
  padding: .6rem 1.2rem;
  font-size: .82rem;
  color: var(--grey-d);
  border-radius: 0;
}
.navmenu .dropdown > ul li a:hover { background: var(--off-white); color: var(--black); }
.toggle-dropdown { font-size: .65rem; margin-left: .2rem; }

/* Apply Now pill */
.navmenu .nav-apply > a {
  background: var(--black) !important;
  color: #fff !important;
  border-radius: 30px !important;
  padding: .5rem 1.2rem !important;
}
.navmenu .nav-apply > a:hover { background: var(--grey-d) !important; }
#header.dark-header:not(.scrolled) .navmenu .nav-apply > a { background: #fff !important; color: var(--black) !important; }

/* Social */
.header-social {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.header-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  color: var(--grey-m);
  background: var(--off-white);
  transition: background var(--t2), color var(--t2);
}
.header-social a:hover { background: var(--black); color: #fff; }
#header.dark-header:not(.scrolled) .header-social a { background: rgba(255,255,255,.12); color: rgba(255,255,255,.7); }
#header.dark-header:not(.scrolled) .header-social a:hover { background: #fff; color: var(--black); }

/* Mobile toggle */
.mobile-nav-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--black);
  cursor: pointer;
  padding: .3rem;
}
#header.dark-header:not(.scrolled) .mobile-nav-toggle { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   PAGE TITLE BANNER
   ───────────────────────────────────────────────────────────── */
.page-banner {
  background: var(--black);
  padding: 140px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255,255,255,.04) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,.03) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,.03) 80px);
}
.page-banner__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-banner h1 { color: #fff; font-size: clamp(2.2rem,5vw,4rem); }
.page-banner .breadcrumbs ol { display: flex; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.5); }
.page-banner .breadcrumbs li + li::before { content: '/'; margin-right: .5rem; }
.page-banner .breadcrumbs a { color: rgba(255,255,255,.5); transition: color var(--t2); }
.page-banner .breadcrumbs a:hover { color: #fff; }
.page-banner .breadcrumbs .current { color: rgba(255,255,255,.85); }

/* ─────────────────────────────────────────────────────────────
   PRELOADER
   ───────────────────────────────────────────────────────────── */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
#preloader.done { opacity: 0; pointer-events: none; }
.preloader-logo { height: 50px; filter: invert(1) brightness(10); animation: plPulse 1.5s ease-in-out infinite; }
@keyframes plPulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.preloader-bar {
  width: 120px; height: 2px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar::after {
  content: '';
  display: block;
  height: 100%;
  background: #fff;
  width: 0;
  animation: plBar 1.8s var(--ease) forwards;
}
@keyframes plBar { to { width: 100%; } }

/* ─────────────────────────────────────────────────────────────
   SCROLL TOP
   ───────────────────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  border-radius: var(--r8);
  background: var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t3), transform var(--t3);
  z-index: 998;
  cursor: pointer;
}
#scroll-top.show { opacity: 1; pointer-events: auto; }
#scroll-top:hover { transform: translateY(-4px); }

/* ─────────────────────────────────────────────────────────────
   INTERSECTION OBSERVER ANIMATIONS
   ───────────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="down"]  { transform: translateY(-30px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"]  { transform: scale(.92); }
[data-reveal="flip"]  { transform: perspective(600px) rotateX(20deg); transform-origin: top center; }
[data-reveal].revealed { opacity: 1 !important; transform: none !important; }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────
   3D HERO
   ───────────────────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  background: var(--black);
  overflow: hidden;
}

.hero-slider { position: relative; width: 100%; height: 100%; perspective: 1400px; }

.hero-slide {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
  transform: scale(1.04) translateZ(-180px);
}
.hero-slide.active   { opacity: 1; pointer-events: auto; z-index: 2; transform: scale(1) translateZ(0); }
.hero-slide.outgoing { opacity: 0; transform: scale(.96) translateZ(-120px); }

/* bg */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.hero-slide.active .hero-bg { transform: scale(1); }

/* noise overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: .6;
  pointer-events: none;
}

/* gradient overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.55) 50%,
    rgba(0,0,0,.35) 100%
  );
}

/* content */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-content__inner {
  max-width: 760px;
  transform: translateY(30px);
  opacity: 0;
  transition: transform .9s var(--ease-out) .3s, opacity .9s var(--ease-out) .3s;
}
.hero-slide.active .hero-content__inner { transform: translateY(0); opacity: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}
.hero-tag::before { content: ''; display: block; width: 20px; height: 1px; background: rgba(255,255,255,.5); }

.hero-content h1 {
  color: #fff;
  font-size: clamp(2.8rem,6vw,5.5rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero-content h1 em { font-style: normal; color: rgba(255,255,255,.55); }

.hero-content p {
  font-size: clamp(1rem,1.8vw,1.15rem);
  color: rgba(255,255,255,.7);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* slide counter */
.hero-counter {
  position: absolute;
  bottom: 3rem;
  left: clamp(20px,4vw,60px);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  color: rgba(255,255,255,.45);
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
}
.hero-counter__current { color: #fff; font-size: 1.1rem; font-weight: 800; }
.hero-counter__line { flex: 1; max-width: 60px; height: 1px; background: rgba(255,255,255,.2); position: relative; }
.hero-counter__line::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  background: #fff;
  width: 0;
  transition: width 6s linear;
}
.hero-counter__line.running::after { width: 100%; }

/* arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: var(--r8);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--t3), transform var(--t3);
  backdrop-filter: blur(8px);
}
.hero-arrow:hover { background: rgba(255,255,255,.2); }
.hero-arrow--prev { left: 1.5rem; }
.hero-arrow--next { right: 1.5rem; }

/* dots */
.hero-dots {
  position: absolute;
  bottom: 3rem;
  right: clamp(20px,4vw,60px);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 10;
}
.hero-dot {
  width: 6px; height: 20px;
  border-radius: 3px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background var(--t3), height var(--t3);
}
.hero-dot.active { background: #fff; height: 36px; }

/* scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.35);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 10;
}
.hero-scroll-hint .mouse {
  width: 22px; height: 34px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero-scroll-hint .mouse::before {
  content: '';
  width: 3px; height: 6px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  animation: mouseScroll 2s ease-in-out infinite;
}
@keyframes mouseScroll { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(8px); opacity: 0; } }

/* ─────────────────────────────────────────────────────────────
   MARQUEE TICKER
   ───────────────────────────────────────────────────────────── */
.ticker {
  background: var(--black);
  padding: .85rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerScroll 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.ticker-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 2rem;
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  white-space: nowrap;
}
.ticker-item span { color: rgba(255,255,255,.15); }

/* ─────────────────────────────────────────────────────────────
   ABOUT SPLIT
   ───────────────────────────────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,7rem);
  align-items: center;
}
.about-split--reverse { }
.about-visual { position: relative; }
.about-visual__main {
  border-radius: var(--r16);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  aspect-ratio: 4/5;
}
.about-visual__main img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s linear; }
.about-visual:hover .about-visual__main img { transform: scale(1.06); }

.about-visual__accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--black);
  color: #fff;
  border-radius: var(--r16);
  padding: 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-l);
  min-width: 140px;
}
.about-visual__accent .num { display: block; font-family: var(--font-h); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.about-visual__accent .lbl { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }

.about-text .section-label { }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1rem; }
.about-checklist { margin: 1.8rem 0; }
.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
  font-size: .95rem;
  color: var(--grey-d);
}
.about-checklist li .check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.about-quote {
  border-left: 3px solid var(--black);
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-radius: 0 var(--r8) var(--r8) 0;
  margin-top: 1.8rem;
  font-style: italic;
  color: var(--grey-d);
}

/* ─────────────────────────────────────────────────────────────
   STATS STRIP
   ───────────────────────────────────────────────────────────── */
.stats-strip {
  background: var(--black);
  padding: clamp(50px,8vw,80px) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
}
.stat-card {
  background: var(--black);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background var(--t3);
}
.stat-card:hover { background: var(--black3); }
.stat-card .num {
  display: block;
  font-family: var(--font-h);
  font-size: clamp(2.5rem,5vw,4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-card .suf { color: rgba(255,255,255,.4); }
.stat-card .lbl {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: .6rem;
}

/* ─────────────────────────────────────────────────────────────
   SERVICES GRID
   ───────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 1.5px;
  background: var(--grey-xl);
  border: 1.5px solid var(--grey-xl);
  border-radius: var(--r16);
  overflow: hidden;
}
.service-card {
  background: #fff;
  padding: 3rem 2.5rem;
  transition: background var(--t3);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t3);
}
.service-card:hover { background: var(--off-white); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__num {
  font-family: var(--font-h);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--grey-l);
  margin-bottom: 2rem;
}
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r8);
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 1.5rem;
  transition: background var(--t3);
}
.service-card:hover .service-card__icon { background: var(--black); color: #fff; }
.service-card h3 { margin-bottom: .75rem; color: var(--black); font-size: 1.2rem; }
.service-card p  { font-size: .9rem; margin-bottom: 1.5rem; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--black);
  transition: gap var(--t3);
}
.service-card:hover .service-card__link { gap: .8rem; }

/* ─────────────────────────────────────────────────────────────
   WHY CHOOSE US
   ───────────────────────────────────────────────────────────── */
.why-section { background: var(--off-white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,7rem);
  align-items: center;
}
.why-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.why-card {
  background: #fff;
  border-radius: var(--r16);
  padding: 1.8rem;
  border: 1px solid var(--grey-xl);
  transition: border-color var(--t3), box-shadow var(--t3), transform var(--t3);
}
.why-card:hover { border-color: var(--black); box-shadow: var(--shadow-m); transform: translateY(-4px); }
.why-card i { font-size: 1.6rem; color: var(--black); display: block; margin-bottom: 1rem; }
.why-card h4 { margin-bottom: .4rem; color: var(--black); font-size: .95rem; }
.why-card p  { font-size: .85rem; margin: 0; }
.why-list { margin-top: 2rem; }
.why-list li {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.why-list .icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r8);
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}
.why-list h4 { margin-bottom: .25rem; color: var(--black); }
.why-list p  { font-size: .9rem; margin: 0; }

/* ─────────────────────────────────────────────────────────────
   TEAM
   ───────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.team-card {
  border-radius: var(--r16);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--grey-xl);
  transition: transform var(--t3), box-shadow var(--t3);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-l); }
.team-card__photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--off-white);
}
.team-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t5);
  filter: grayscale(20%);
}
.team-card:hover .team-card__photo img { transform: scale(1.06); filter: grayscale(0%); }
.team-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  opacity: 0;
  transition: opacity var(--t3);
}
.team-card:hover .team-card__overlay { opacity: 1; }
.team-card__overlay a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .85rem;
  transition: background var(--t2);
}
.team-card__overlay a:hover { background: rgba(255,255,255,.35); }
.team-card__info {
  padding: 1.2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--grey-xl);
}
.team-card__info h4 { font-size: .95rem; color: var(--black); margin-bottom: .2rem; }
.team-card__info span { font-size: .78rem; color: var(--grey-m); font-weight: 500; }

/* ─────────────────────────────────────────────────────────────
   SKILLS
   ───────────────────────────────────────────────────────────── */
.skills-section { background: var(--black); }
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 5rem;
}
.skill-item { }
.skill-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.skill-head span { font-family: var(--font-h); font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.8); }
.skill-head .val  { color: rgba(255,255,255,.4); }
.skill-track {
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}
.skill-bar {
  height: 100%;
  background: #fff;
  border-radius: 3px;
  width: 0;
  transition: width 1.4s var(--ease-out);
}

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO GALLERY
   ───────────────────────────────────────────────────────────── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.pf-btn {
  padding: .5rem 1.3rem;
  border-radius: 30px;
  border: 1.5px solid var(--grey-xl);
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-m);
  cursor: pointer;
  transition: all var(--t3);
  letter-spacing: .04em;
}
.pf-btn:hover, .pf-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.portfolio-item {
  position: relative;
  border-radius: var(--r16);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--off-white);
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t5);
}
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t3);
  padding: 1.5rem;
  text-align: center;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { color: #fff; font-size: 1rem; margin-bottom: .3rem; }
.portfolio-overlay .cat { font-size: .72rem; color: rgba(255,255,255,.55); letter-spacing: .12em; text-transform: uppercase; }
.portfolio-overlay .icons { display: flex; gap: .75rem; margin-top: 1.2rem; }
.portfolio-overlay .icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem;
  transition: background var(--t2);
}
.portfolio-overlay .icons a:hover { background: rgba(255,255,255,.35); }

/* ─────────────────────────────────────────────────────────────
   PROCESS STEPS
   ───────────────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 1px;
  background: var(--grey-xl);
  border-radius: var(--r16);
  overflow: hidden;
  margin-top: 3rem;
  counter-reset: step;
}
.process-step {
  background: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  transition: background var(--t3);
  counter-increment: step;
}
.process-step:hover { background: var(--off-white); }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-h);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--off-white);
  line-height: 1;
  margin-bottom: .5rem;
  transition: color var(--t3);
}
.process-step:hover::before { color: var(--grey-xl); }
.process-step i { font-size: 1.8rem; color: var(--black); display: block; margin-bottom: .75rem; }
.process-step h4 { color: var(--black); margin-bottom: .5rem; font-size: .95rem; }
.process-step p  { font-size: .85rem; margin: 0; }

/* ─────────────────────────────────────────────────────────────
   TRUSTED LOGOS MARQUEE
   ───────────────────────────────────────────────────────────── */
.trusted-marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
          mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  margin-top: 3rem;
}
.trusted-marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.trusted-marquee-wrap:hover .trusted-marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.client-logo {
  flex-shrink: 0;
  width: 150px; height: 80px;
  background: var(--off-white);
  border: 1px solid var(--grey-xl);
  border-radius: var(--r8);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  transition: border-color var(--t3), box-shadow var(--t3);
}
.client-logo:hover { border-color: var(--black); box-shadow: var(--shadow-s); }
.client-logo img { max-height: 45px; object-fit: contain; filter: grayscale(100%); opacity: .5; transition: all var(--t3); }
.client-logo:hover img { filter: grayscale(0%); opacity: 1; }

/* ─────────────────────────────────────────────────────────────
   CONTACT
   ───────────────────────────────────────────────────────────── */
.contact-map iframe { width: 100%; height: 400px; border: 0; display: block; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: .75rem; }
.contact-info p { font-size: .95rem; margin-bottom: 2rem; }
.info-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--off-white);
  border-radius: var(--r8);
  margin-bottom: 1rem;
  border: 1px solid var(--grey-xl);
  transition: border-color var(--t3);
}
.info-card:hover { border-color: var(--black); }
.info-card .ic-icon {
  width: 42px; height: 42px;
  border-radius: var(--r8);
  background: var(--black);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.info-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grey-m); margin-bottom: .3rem; }
.info-card p  { font-size: .88rem; color: var(--grey-d); margin: 0; }
.info-card a  { color: var(--grey-d); transition: color var(--t2); }
.info-card a:hover { color: var(--black); }

/* Form */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey-d);
  margin-bottom: .5rem;
}
.form-control {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--grey-xl);
  border-radius: var(--r8);
  font-family: var(--font-b);
  font-size: .95rem;
  color: var(--black);
  background: #fff;
  outline: none;
  transition: border-color var(--t3), box-shadow var(--t3);
}
.form-control:focus { border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,.06); }
textarea.form-control { resize: vertical; min-height: 150px; }
select.form-control { appearance: none; }
.form-file { padding: .7rem 0; }
.form-status {
  padding: .85rem 1rem;
  border-radius: var(--r8);
  margin-top: 1rem;
  display: none;
  font-size: .9rem;
}
.form-status.success { background: #f0faf0; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-status.error   { background: #fdf5f5; color: #c62828; border: 1px solid #ffcdd2; }

/* ─────────────────────────────────────────────────────────────
   JOBS
   ───────────────────────────────────────────────────────────── */
.jobs-perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 1.5rem;
  margin-bottom: 5rem;
}
.perk-card {
  background: #fff;
  border: 1px solid var(--grey-xl);
  border-radius: var(--r16);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color var(--t3), transform var(--t3), box-shadow var(--t3);
}
.perk-card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--shadow-m); }
.perk-card i { font-size: 2rem; color: var(--black); display: block; margin-bottom: .75rem; }
.perk-card h4 { font-size: .95rem; margin-bottom: .4rem; }
.perk-card p  { font-size: .82rem; margin: 0; }

.jobs-form-card {
  background: var(--off-white);
  border-radius: var(--r16);
  padding: clamp(2rem,4vw,3.5rem);
  border: 1px solid var(--grey-xl);
  max-width: 780px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────────
   SERVICE DETAILS
   ───────────────────────────────────────────────────────────── */
.sd-grid {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 3rem;
  align-items: start;
}
.sd-sidebar-nav { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 2rem; }
.sd-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--off-white);
  border-radius: var(--r8);
  font-family: var(--font-h);
  font-size: .82rem;
  font-weight: 600;
  color: var(--grey-d);
  border: 1px solid transparent;
  transition: all var(--t3);
}
.sd-sidebar-nav a:hover, .sd-sidebar-nav a.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.sd-cta-box {
  background: var(--black);
  color: #fff;
  border-radius: var(--r16);
  padding: 2rem;
  text-align: center;
}
.sd-cta-box h4 { color: #fff; margin-bottom: .75rem; }
.sd-cta-box p  { font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }
.sd-img { border-radius: var(--r16); margin-bottom: 2rem; width: 100%; }
.sd-check-list { margin: 1.5rem 0; }
.sd-check-list li { display: flex; gap: .75rem; margin-bottom: .75rem; font-size: .95rem; color: var(--grey-d); }
.sd-check-list i { color: var(--black); margin-top: .15rem; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────────
   PORTFOLIO DETAILS
   ───────────────────────────────────────────────────────────── */
.pd-slider-wrap { position: relative; border-radius: var(--r16); overflow: hidden; }
.pd-track { display: flex; transition: transform .6s var(--ease); }
.pd-slide { min-width: 100%; }
.pd-slide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.pd-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: var(--r8);
  background: rgba(0,0,0,.5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5;
  transition: background var(--t2);
}
.pd-nav-btn:hover { background: rgba(0,0,0,.8); }
.pd-nav-btn.prev { left: 1rem; }
.pd-nav-btn.next { right: 1rem; }
.pd-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.pd-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-xl); cursor: pointer; transition: background var(--t3); }
.pd-dot.active { background: var(--black); }
.pd-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-top: 3rem; }
.pd-info-card {
  background: var(--off-white);
  border-radius: var(--r16);
  padding: 2rem;
  border: 1px solid var(--grey-xl);
}
.pd-info-card h3 { margin-bottom: 1.2rem; }
.pd-info-card ul li {
  display: flex; gap: .5rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--grey-xl);
  font-size: .88rem;
}
.pd-info-card ul li:last-child { border: none; }
.pd-info-card ul li strong { color: var(--black); min-width: 110px; }

/* ─────────────────────────────────────────────────────────────
   CTA BANNER
   ───────────────────────────────────────────────────────────── */
.cta-banner {
  background: var(--black);
  padding: clamp(60px,10vw,110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,255,255,.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; font-size: clamp(2rem,4vw,3.5rem); }
.cta-banner p  { color: rgba(255,255,255,.6); max-width: 540px; margin: 0 auto 2.5rem; }
.cta-banner .btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────── */
#footer {
  background: var(--black2);
  color: rgba(255,255,255,.6);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.8fr;
  gap: 3rem;
  padding: clamp(60px,8vw,90px) 0 50px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand img { height: 70px; width: auto; margin-bottom: 1.5rem; }
.footer-brand p { font-size: .88rem; line-height: 1.8; }
.footer-brand strong { color: #fff; }
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--r8);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  transition: all var(--t3);
}
.footer-social a:hover { background: #fff; color: var(--black); border-color: #fff; }
.footer-col h5 {
  font-family: var(--font-h);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--t2), padding-left var(--t2);
  display: inline-block;
}
.footer-col ul li a:hover { color: #fff; padding-left: .3rem; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
}
.footer-bottom strong { color: #fff; }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--t2); }
.footer-bottom a:hover { color: #fff; }

/* ─────────────────────────────────────────────────────────────
   LIGHTBOX
   ───────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.93);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lbFadeIn .25s var(--ease);
}
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--r8);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  cursor: default;
  animation: lbZoomIn .35s var(--ease-out);
}
@keyframes lbZoomIn { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--t2);
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .sd-grid     { grid-template-columns: 1fr; }
  .pd-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .about-split, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid  { grid-template-columns: 1fr; }
  .why-cards    { grid-template-columns: 1fr 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .footer-top   { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-arrow   { display: none; }
  .navmenu > ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: min(320px,100vw);
    height: 100vh;
    background: #fff;
    padding: 5rem 2rem 2rem;
    box-shadow: -20px 0 60px rgba(0,0,0,.15);
    gap: .25rem;
    overflow-y: auto;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .navmenu > ul.open { display: flex; transform: translateX(0); }
  .navmenu ul li > a { padding: .75rem 1rem; font-size: .88rem; }
  .navmenu .dropdown > ul {
    position: static; box-shadow: none;
    border-top: none; border-radius: 0;
    border-left: 2px solid var(--grey-xl);
    margin-left: 1.2rem;
    padding: .25rem 0;
  }
  .mobile-nav-toggle { display: block; }
  .header-social { display: none; }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 1000;
  }
  .nav-overlay.show { display: block; }
  .hero-dots { display: none; }
  .hero-scroll-hint { display: none; }
  .about-visual__accent { right: 0; bottom: 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .why-cards  { grid-template-columns: 1fr; }
  .hero-btns  { flex-direction: column; }
  .cta-banner .btns { flex-direction: column; align-items: center; }
  .jobs-form-card { padding: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   MASONRY GALLERY  (replaces portfolio.html)
   ───────────────────────────────────────────────────────────── */
.gallery-section { background: var(--off-white); }

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}
.gf-btn {
  padding: .5rem 1.3rem;
  border-radius: 30px;
  border: 1.5px solid var(--grey-xl);
  font-family: var(--font-h);
  font-size: .78rem;
  font-weight: 600;
  color: var(--grey-m);
  background: #fff;
  cursor: pointer;
  transition: all var(--t3);
}
.gf-btn:hover, .gf-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* Masonry columns via CSS columns */
.masonry-grid {
  columns: 3 320px;
  column-gap: 1.2rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--r16);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  background: var(--grey-xl);
  transition: transform var(--t3), box-shadow var(--t3);
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t5);
  filter: grayscale(10%);
}
.masonry-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.masonry-item:hover img { transform: scale(1.04); filter: grayscale(0%); }

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  opacity: 0;
  transition: opacity var(--t3);
  padding: 1.5rem;
  text-align: center;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay h4 { color: #fff; font-size: .95rem; margin: 0; }
.masonry-overlay .cat {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.masonry-overlay .zoom-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1rem;
  margin-top: .5rem;
  transition: background var(--t2);
  cursor: pointer;
  text-decoration: none;
}
.masonry-overlay .zoom-btn:hover { background: rgba(255,255,255,.35); }

/* Hidden items (filtered out) */
.masonry-item.hidden {
  display: none;
}

@media (max-width: 600px) {
  .masonry-grid { columns: 2 160px; }
}

/* ── LOGO SWAP TRANSITION ──────────────────────────────────── */
.main-logo img {
  transition: opacity .25s ease;
}
.main-logo img.swapping {
  opacity: 0;
}
