/* =========================================================
   Sami AlBassam Engineering Consultants
   Static site — shared stylesheet
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Monochrome black & white theme */
  --navy-900: #0d0d0d;
  --navy-800: #161616;
  --navy-700: #1f1f1f;
  --navy-600: #2c2c2c;
  --ink: #141414;
  --slate-500: #666666;
  --slate-400: #8a8a8a;
  --slate-300: #b8b8b8;
  --line: #e6e6e6;
  --paper: #f4f4f4;
  --white: #ffffff;

  --gold-500: #111111;
  --gold-400: #f2f2f2;
  --gold-600: #000000;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 16px rgba(15, 36, 56, .06);
  --shadow: 0 18px 48px rgba(15, 36, 56, .12);
  --shadow-lg: 0 40px 90px rgba(11, 26, 43, .22);

  --maxw: 1200px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-head: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; margin: 0; color: var(--navy-900); letter-spacing: -.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; position: relative; }
.section--tint { background: var(--paper); }
.section--ink { background: var(--navy-900); color: #dfe7ef; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); display: inline-block; }
.section--ink .eyebrow, .page-hero .eyebrow { color: var(--gold-400); }
.section--ink .eyebrow::before, .page-hero .eyebrow::before { background: var(--gold-400); }
.section--ink .stat .plus { color: var(--gold-400); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.section-head p { color: var(--slate-500); font-size: 1.06rem; margin: 18px 0 0; }
.section--ink .section-head p { color: var(--slate-300); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: #111; color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.btn--gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.btn--light { background: #fff; color: #111; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, .38); }
.btn--ghost { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-3px); }
.btn--dark { background: var(--navy-900); color: #fff; }
.btn--dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn--outline { border: 1.5px solid var(--line); color: var(--navy-900); }
.btn--outline:hover { border-color: var(--navy-900); transform: translateY(-3px); }

/* =========================================================
   Header / Nav
   ========================================================= */
.topbar {
  background: var(--navy-900); color: var(--slate-300);
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; gap: 20px; }
.topbar a { color: var(--slate-300); transition: color .2s; }
.topbar a:hover { color: var(--gold-400); }
.topbar-left { display: flex; gap: 24px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-social { display: flex; gap: 16px; }
@media (max-width: 720px){ .topbar-left span.hide-sm { display: none; } }

.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: 0 8px 30px rgba(15,36,56,.08); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 46px; height: 46px; flex: 0 0 auto; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-family: var(--font-head); font-size: 1.28rem; color: var(--navy-900); letter-spacing: .01em; }
.brand-text small { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.menu { display: flex; align-items: center; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 12px 16px; font-weight: 500; font-size: .95rem;
  color: var(--navy-800); border-radius: 8px; transition: color .2s;
}
.menu > li > a:hover, .menu > li.active > a { color: var(--gold-600); }
.menu > li > a.has-caret::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .25s var(--ease);
}
.menu > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 9px;
  font-size: .92rem; font-weight: 500; color: var(--navy-700); transition: background .18s, color .18s;
}
.dropdown a:hover { background: var(--paper); color: var(--gold-600); }
.dropdown a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); flex: 0 0 auto; }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 12px 24px; }

.burger { display: none; width: 44px; height: 44px; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1){ top: 15px; } .burger span:nth-child(2){ top: 21px; } .burger span:nth-child(3){ top: 27px; }
body.menu-open .burger span:nth-child(1){ top: 21px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2){ opacity: 0; }
body.menu-open .burger span:nth-child(3){ top: 21px; transform: rotate(-45deg); }

@media (max-width: 980px){
  .menu, .nav-cta .btn { display: none; }
  .burger { display: block; }
}

/* Mobile nav panel */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); z-index: 200;
  background: var(--navy-900); color: #fff; transform: translateX(100%);
  transition: transform .4s var(--ease); padding: 92px 30px 40px; overflow-y: auto;
  box-shadow: var(--shadow-lg); display: none;
}
@media (max-width: 980px){ .mobile-nav { display: block; } }
body.menu-open .mobile-nav { transform: translateX(0); }
.mobile-nav a { display: block; padding: 15px 0; font-size: 1.15rem; font-family: var(--font-head); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a:hover { color: var(--gold-400); }
.mobile-nav .sub { font-size: .95rem; padding-left: 16px; color: var(--slate-300); font-family: var(--font-body); }
.scrim { position: fixed; inset: 0; background: rgba(6,14,23,.55); opacity: 0; visibility: hidden; transition: .3s; z-index: 150; }
body.menu-open .scrim { opacity: 1; visibility: visible; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -10%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 46%, #0a1622 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(900px 500px at 70% 30%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0 108px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.03; }
.hero h1 em { font-style: italic; color: var(--gold-400); }
.hero p.lead { color: var(--slate-300); font-size: 1.16rem; max-width: 520px; margin: 26px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-badges { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-badge b { font-family: var(--font-head); font-size: 2rem; color: #fff; display: block; }
.hero-badge span { font-size: .82rem; color: var(--slate-300); letter-spacing: .04em; }
.hero-badge .plus { color: var(--gold-400); }

.hero-visual { position: relative; }
.hero-card {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1); background: #0a1622; aspect-ratio: 4/5;
}
.hero-float {
  position: absolute; background: rgba(255,255,255,.96); color: var(--navy-900);
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 13px; backdrop-filter: blur(6px);
}
.hero-float.tl { top: 26px; left: -34px; }
.hero-float.br { bottom: 30px; right: -30px; }
.hero-float .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--gold-500); display: grid; place-items: center; flex: 0 0 auto; }
.hero-float .ic svg { width: 22px; height: 22px; color: #fff; }
.hero-float b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.hero-float span { font-size: .78rem; color: var(--slate-500); }
@media (max-width: 940px){
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 72px; }
  .hero-visual { max-width: 440px; }
  .hero-float.tl { left: 0; } .hero-float.br { right: 0; }
}

/* Marquee of disciplines */
.marquee { background: var(--navy-800); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); overflow: hidden; }
.marquee-track { display: flex; gap: 56px; padding: 20px 0; white-space: nowrap; animation: scroll 32s linear infinite; width: max-content; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { color: var(--slate-300); font-family: var(--font-head); font-size: 1.15rem; font-style: italic; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "◆"; color: var(--gold-400); font-size: .7rem; font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* =========================================================
   Services
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px){ .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.svc-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold-500); transition: width .4s var(--ease); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc-card:hover::before { width: 100%; }
.svc-ic { width: 58px; height: 58px; border-radius: 15px; background: linear-gradient(150deg, var(--navy-800), var(--navy-600)); display: grid; place-items: center; margin-bottom: 22px; transition: transform .35s var(--ease); }
.svc-card:hover .svc-ic { transform: rotate(-6deg) scale(1.05); }
.svc-ic svg { width: 27px; height: 27px; color: var(--gold-400); }
.svc-card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.svc-card p { color: var(--slate-500); font-size: .95rem; margin: 0 0 18px; }
.svc-link { font-weight: 600; font-size: .88rem; color: var(--navy-900); display: inline-flex; align-items: center; gap: 7px; }
.svc-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.svc-card:hover .svc-link { color: var(--gold-600); }
.svc-card:hover .svc-link svg { transform: translateX(4px); }

/* =========================================================
   About / split
   ========================================================= */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px){ .split { grid-template-columns: 1fr; gap: 40px; } }
.split.rev .split-visual { order: 2; }
@media (max-width: 900px){ .split.rev .split-visual { order: 0; } }

.about-figure { position: relative; }
.about-figure .frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5/6; background: var(--navy-800); }
.about-figure .accent { position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--gold-500); border-radius: var(--radius-lg); z-index: -1; }
.exp-chip {
  position: absolute; left: -26px; bottom: -26px; background: #111; color: #fff;
  border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); text-align: center;
}
.exp-chip b { font-family: var(--font-head); font-size: 2.4rem; display: block; line-height: 1; }
.exp-chip span { font-size: .8rem; font-weight: 600; letter-spacing: .04em; }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 26px 0 32px; }
@media (max-width: 480px){ .check-list { grid-template-columns: 1fr; } }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; font-size: .96rem; color: var(--navy-800); }
.check-list .tick { width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.06); display: grid; place-items: center; flex: 0 0 auto; margin-top: 1px; }
.check-list .tick svg { width: 13px; height: 13px; color: var(--gold-600); }

/* =========================================================
   Process
   ========================================================= */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 820px){ .process-grid { grid-template-columns: 1fr; } }
.process-card { position: relative; padding: 40px 30px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); transition: transform .35s var(--ease), background .35s; }
.process-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.process-num { font-family: var(--font-head); font-size: 3.4rem; color: rgba(255,255,255,.16); line-height: 1; margin-bottom: 14px; }
.process-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.process-card p { color: var(--slate-300); font-size: .96rem; margin: 0; }
.process-card .line { position: absolute; top: 62px; right: -13px; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.4) 0 6px, transparent 6px 12px); }
@media (max-width: 820px){ .process-card .line { display: none; } }

/* =========================================================
   Stats
   ========================================================= */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 760px){ .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 20px; }
.stat b { font-family: var(--font-head); font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--navy-900); display: block; line-height: 1; }
.section--ink .stat b { color: #fff; }
.stat .plus { color: var(--gold-500); }
.stat > span { display: block; margin-top: 10px; font-weight: 600; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); }
.section--ink .stat > span { color: var(--slate-300); }

/* =========================================================
   Projects (shared card grid + filter)
   ========================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px; border-radius: 100px; border: 1.5px solid var(--line);
  font-weight: 600; font-size: .88rem; color: var(--slate-500); background: #fff;
  transition: all .22s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--navy-900); }
.filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-btn .count { opacity: .55; margin-left: 6px; font-size: .8em; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px){ .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .proj-grid { grid-template-columns: 1fr; } }

.proj-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3.4; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  transform-origin: center;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.proj-card .thumb { position: absolute; inset: 0; background: #0d0d0d; }
.proj-card .thumb svg, .proj-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.proj-card:hover .thumb img { transform: scale(1.06); }
/* Full-colour photo treatment (reused for hero / about / blog) */
.mono-img { transition: transform .6s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.proj-card .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,26,43,0) 30%, rgba(11,26,43,.82) 100%); transition: background .4s; }
.proj-card:hover .veil { background: linear-gradient(180deg, rgba(11,26,43,.15) 0%, rgba(11,26,43,.9) 100%); }
.proj-tag {
  position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.92); color: var(--navy-900);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 100px;
}
.proj-body { position: absolute; left: 22px; right: 22px; bottom: 22px; color: #fff; transform: translateY(8px); transition: transform .4s var(--ease); }
.proj-card:hover .proj-body { transform: translateY(0); }
.proj-body h3 { color: #fff; font-size: 1.28rem; margin-bottom: 4px; }
.proj-meta { font-size: .84rem; color: var(--slate-300); display: flex; gap: 14px; }
.proj-meta span { display: inline-flex; align-items: center; gap: 6px; }
.proj-plus {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px);
  display: grid; place-items: center; opacity: 0; transform: scale(.7) rotate(-30deg); transition: .4s var(--ease);
}
.proj-card:hover .proj-plus { opacity: 1; transform: scale(1) rotate(0); }
.proj-plus svg { width: 20px; height: 20px; color: #fff; }
.proj-card.is-hidden { display: none; }

/* =========================================================
   FAQ accordion
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 4px; font-family: var(--font-head); font-size: 1.22rem; color: var(--navy-900); font-weight: 600; }
.faq-q .icon { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; border: 1.5px solid var(--line); position: relative; transition: .3s; }
.faq-q .icon::before, .faq-q .icon::after { content: ""; position: absolute; background: var(--navy-900); border-radius: 2px; transition: .3s var(--ease); }
.faq-q .icon::before { width: 13px; height: 2px; top: 15px; left: 9.5px; }
.faq-q .icon::after { width: 2px; height: 13px; top: 9.5px; left: 15px; }
.faq-item.open .faq-q .icon { background: var(--gold-500); border-color: var(--gold-500); }
.faq-item.open .faq-q .icon::before, .faq-item.open .faq-q .icon::after { background: #fff; }
.faq-item.open .faq-q .icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { color: var(--slate-500); padding: 0 4px 26px; margin: 0; max-width: 680px; }

/* =========================================================
   Team
   ========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px){ .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.team-photo svg { width: 100%; height: 100%; }
.team-social { position: absolute; inset: auto 0 -60px 0; display: flex; justify-content: center; gap: 10px; padding: 16px; background: linear-gradient(0deg, rgba(11,26,43,.85), transparent); transition: bottom .35s var(--ease); }
.team-card:hover .team-social { bottom: 0; }
.team-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; transition: background .2s; }
.team-social a:hover { background: var(--gold-500); }
.team-social svg { width: 16px; height: 16px; color: #fff; }
.team-card h3 { font-size: 1.2rem; }
.team-card p { color: var(--gold-600); font-weight: 600; font-size: .86rem; margin: 4px 0 0; letter-spacing: .03em; }

/* =========================================================
   Testimonials
   ========================================================= */
.testi-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.testi-track { position: relative; min-height: 260px; }
.testi {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease); text-align: center;
}
.testi.active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }
.testi .quote-mark { font-family: var(--font-head); font-size: 4.5rem; color: var(--gold-500); line-height: .6; }
.testi blockquote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.8vw, 1.85rem); font-style: italic; color: #fff; margin: 20px 0 28px; line-height: 1.4; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testi-person .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold-500); }
.testi-person b { color: #fff; font-family: var(--font-head); display: block; }
.testi-person span { color: var(--slate-300); font-size: .85rem; }
.testi-person .txt { text-align: left; }
.testi-dots { display: flex; gap: 10px; justify-content: center; margin-top: 34px; }
.testi-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); transition: .3s; }
.testi-dot.active { background: var(--gold-500); width: 30px; border-radius: 10px; }

/* =========================================================
   Clients (auto-scrolling logo carousel)
   ========================================================= */
.logo-carousel { position: relative; overflow: hidden; }
.logo-carousel::before, .logo-carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.logo-carousel::before { left: 0; background: linear-gradient(90deg, var(--white), transparent); }
.logo-carousel::after { right: 0; background: linear-gradient(270deg, var(--white), transparent); }
.section--tint .logo-carousel::before { background: linear-gradient(90deg, var(--paper), transparent); }
.section--tint .logo-carousel::after { background: linear-gradient(270deg, var(--paper), transparent); }
.logo-track { display: flex; gap: 20px; width: max-content; animation: scroll 48s linear infinite; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex: 0 0 auto; width: 190px; height: 118px; display: grid; place-items: center; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.logo-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.logo-item img { max-height: 74px; max-width: 100%; width: auto; object-fit: contain; }
@media (prefers-reduced-motion: reduce){ .logo-track { animation: none; flex-wrap: wrap; justify-content: center; } }
@media (max-width: 520px){ .logo-item { width: 150px; height: 100px; } }

/* =========================================================
   Blog / news
   ========================================================= */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 860px){ .blog-grid { grid-template-columns: 1fr; } }
.blog-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.blog-thumb svg { width: 100%; height: 100%; }
.blog-date { position: absolute; top: 14px; left: 14px; background: #111; color: #fff; border-radius: 10px; padding: 8px 12px; text-align: center; font-weight: 700; line-height: 1; }
.blog-date b { display: block; font-family: var(--font-head); font-size: 1.3rem; }
.blog-date span { font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.blog-content { padding: 24px 24px 28px; }
.blog-cat { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.blog-content h3 { font-size: 1.24rem; margin: 10px 0 12px; transition: color .2s; }
.blog-card:hover .blog-content h3 { color: var(--gold-600); }
.blog-content p { color: var(--slate-500); font-size: .93rem; margin: 0 0 16px; }
.blog-more { font-weight: 600; font-size: .86rem; display: inline-flex; align-items: center; gap: 7px; }
.blog-more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.blog-card:hover .blog-more svg { transform: translateX(4px); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: 66px 60px; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); position: relative; }
.cta-band p { color: var(--slate-300); margin: 12px 0 0; position: relative; max-width: 460px; }
.cta-band .actions { display: flex; gap: 14px; position: relative; flex-wrap: wrap; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 720px; margin: 0 auto; }
.contact-info li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .ic { width: 48px; height: 48px; border-radius: 13px; background: rgba(0,0,0,.05); display: grid; place-items: center; flex: 0 0 auto; }
.contact-info .ic svg { width: 22px; height: 22px; color: var(--gold-600); }
.contact-info b { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--navy-900); }
.contact-info span { color: var(--slate-500); font-size: .95rem; }
.contact-info a { color: var(--slate-500); }
.contact-info a:hover { color: var(--gold-600); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px){ .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 8px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: var(--paper); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #111; box-shadow: 0 0 0 4px rgba(0,0,0,.10); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.form .btn { width: 100%; justify-content: center; }
.form-note { text-align: center; font-size: .82rem; color: var(--slate-400); margin: 14px 0 0; }
.form-success { display: none; text-align: center; padding: 12px; margin-top: 14px; border-radius: 11px; background: rgba(46,160,90,.1); color: #1f7a45; font-weight: 600; font-size: .9rem; }
.form-success.show { display: block; }

/* =========================================================
   Footer
   ========================================================= */
.footer { background: #08131f; color: var(--slate-300); padding: 76px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
@media (max-width: 860px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 500px){ .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 22px; }
.footer p { font-size: .93rem; margin: 0 0 18px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: .93rem; transition: color .2s, padding .2s; }
.footer-links a:hover { color: var(--gold-400); padding-left: 5px; }
.footer .brand-text b { color: #fff; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: .93rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-400); flex: 0 0 auto; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; transition: .25s; }
.footer-social a:hover { background: var(--gold-500); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 0; flex-wrap: wrap; font-size: .86rem; }
.footer-bottom a:hover { color: var(--gold-400); }

/* Newsletter mini form */
.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input { flex: 1; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); color: #fff; font-family: inherit; font-size: .9rem; }
.news-form input::placeholder { color: var(--slate-400); }
.news-form input:focus { outline: none; border-color: var(--gold-500); }
.news-form button { width: 46px; border-radius: 10px; background: var(--gold-500); display: grid; place-items: center; flex: 0 0 auto; }
.news-form button svg { width: 18px; height: 18px; color: #fff; }

/* =========================================================
   Page hero (interior pages)
   ========================================================= */
.page-hero {
  position: relative; color: #fff; padding: 78px 0 84px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(160deg, var(--navy-900), #0a1622);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(700px 400px at 80% 20%, #000, transparent 75%);
}
.page-hero .container { position: relative; z-index: 2; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: .86rem; color: var(--slate-300); margin-bottom: 18px; }
.crumbs a:hover { color: var(--gold-400); }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--gold-400); }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-hero p { color: var(--slate-300); max-width: 560px; margin: 18px 0 0; font-size: 1.08rem; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s 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){
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* Back to top */
.to-top {
  position: fixed; right: 26px; bottom: 26px; width: 50px; height: 50px; border-radius: 14px;
  background: var(--navy-900); color: #fff; display: grid; place-items: center; z-index: 90;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px); transition: .3s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #fff; color: #000; }
.to-top svg { width: 20px; height: 20px; }

/* =========================================================
   Lightbox image viewer
   ========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; }
.lightbox.open { display: block; }
.lb-scrim { position: absolute; inset: 0; background: rgba(6,8,12,.92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.lightbox.open .lb-scrim { opacity: 1; }

.lb-stage {
  position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto;
  padding: 66px clamp(16px, 8vw, 110px) 30px; box-sizing: border-box;
}
.lb-frame { position: relative; display: grid; place-items: center; min-height: 0; }
.lb-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  opacity: 0; transform: scale(.97); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.lightbox.open .lb-img { opacity: 1; transform: scale(1); }
.lb-img.swap { opacity: 0; transform: scale(.98); }

.lb-cap { text-align: center; color: #fff; padding-top: 22px; }
.lb-cap .proj-tag {
  position: static; display: inline-block; margin-bottom: 12px;
  background: rgba(255,255,255,.14); color: #fff;
}
.lb-cap h3 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.7rem); margin-bottom: 14px; }
.lb-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; margin-bottom: 14px; }
.lb-meta span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-meta b { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-400); font-weight: 700; }
.lb-meta i { font-style: normal; color: #fff; font-size: .98rem; font-weight: 500; }
.lb-counter { color: var(--slate-400); font-size: .82rem; letter-spacing: .14em; }
@media (max-width: 640px){ .lb-meta { gap: 8px 20px; } .lb-meta i { font-size: .9rem; } }

.lb-btn {
  position: absolute; z-index: 3; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; border-radius: 50%; transition: background .2s, transform .2s, opacity .2s;
  backdrop-filter: blur(4px);
}
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 26px; height: 26px; }
.lb-close { top: 20px; right: 22px; width: 48px; height: 48px; }
.lb-close svg { width: 22px; height: 22px; }
.lb-close:hover { transform: rotate(90deg); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: clamp(12px, 3vw, 40px); }
.lb-next { right: clamp(12px, 3vw, 40px); }
@media (max-width: 640px){
  .lb-stage { padding: 60px 12px 24px; }
  .lb-nav { width: 46px; height: 46px; bottom: 26px; top: auto; transform: none; }
  .lb-nav:hover { transform: scale(1.08); }
  .lb-prev { left: 24%; } .lb-next { right: 24%; }
  .lb-cap { padding-bottom: 64px; }
}

/* Load more */
.load-wrap { text-align: center; margin-top: 48px; }
.empty-note { text-align: center; color: var(--slate-400); padding: 40px; display: none; }
.empty-note.show { display: block; }
