/* ==========================================================================
   Alongi Media — shared styles for every page
   --------------------------------------------------------------------------
   Pieces used on every page (background, navigation bar, contact panel,
   buttons) live here, so a change here changes the whole site.
   Section-specific layout is still written inline on each page.
   The "hover" rules at the bottom were generated from the design file.
   ========================================================================== */

/* ---- Fonts: Barlow + Barlow Condensed, stored with the site (SIL Open Font License, see assets/fonts/) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

/* ---- Base --------------------------------------------------------------- */
html { background: #05070b; scroll-behavior: smooth; }
body { margin: 0; background: #05070b; font-family: Barlow, system-ui, sans-serif; color: #eef2f7; }
a { color: #c9d8ea; }
a:hover { color: #ffffff; }
img, video { max-width: 100%; }
:focus-visible { outline: 2px solid #9fd3f7; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #ffffff; color: #06121f; font: 500 12px/1 Barlow, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.skip-link:focus { top: 16px; }

@keyframes am-bloom { 0% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(2%,-2%,0) scale(1.08); } 100% { transform: translate3d(0,0,0) scale(1); } }
@keyframes am-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Page background (dark gradient + two slow glowing "blooms") -------- */
.page { position: relative; overflow: hidden; min-height: 100vh; background: radial-gradient(120% 80% at 18% 12%, #1b2b3d 0%, #0b1220 42%, #05070b 100%); }
.bloom { position: absolute; width: 70%; height: 70%; pointer-events: none; }
.bloom-a { left: -10%; top: -14%; background: radial-gradient(50% 50% at 50% 50%, rgba(120,170,255,.22) 0%, rgba(90,60,160,.12) 45%, rgba(0,0,0,0) 72%); filter: blur(40px); animation: am-bloom 18s ease-in-out infinite; }
.bloom-b { right: -16%; bottom: -20%; background: radial-gradient(50% 50% at 50% 50%, rgba(160,90,180,.18) 0%, rgba(40,90,150,.12) 48%, rgba(0,0,0,0) 74%); filter: blur(50px); animation: am-bloom 24s ease-in-out infinite reverse; }

/* ---- Navigation bar ----------------------------------------------------- */
.site-header { position: relative; z-index: 3; padding: 22px 34px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 22px; border: 1px solid rgba(190,215,255,.18); border-radius: 18px; background: linear-gradient(140deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 rgba(255,255,255,.28) inset, 0 -1px 0 rgba(120,180,255,.18) inset, 0 18px 50px rgba(0,0,0,.45); }
.nav-logo { display: block; flex: none; }
.nav-logo img { height: 68px; width: auto; display: block; object-fit: contain; }
.nav-links { display: flex; gap: 26px; flex-wrap: nowrap; margin: 0; padding: 0; list-style: none; font: 500 11px/1 Barlow, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.nav-links a { color: rgba(238,242,247,.62); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #ffffff; }

/* ---- Buttons ------------------------------------------------------------ */
.btn-primary { display: inline-block; padding: 15px 28px; border-radius: 999px; text-decoration: none; font: 500 12px/1 Barlow, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #06121f; background: linear-gradient(180deg, #ffffff, #c4d9f2); box-shadow: 0 10px 30px rgba(140,190,255,.28); }
.btn-primary:hover { color: #06121f; background: linear-gradient(180deg, #ffffff, #dceaf9); }

/* ---- "We'd love to work with you" contact panel (bottom of every page) --- */
.contact-section { position: relative; z-index: 2; padding: 56px 34px 64px; }
.contact-card { padding: 44px 40px; border: 1px solid rgba(190,215,255,.18); border-radius: 24px; background: linear-gradient(140deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(255,255,255,.24) inset, 0 30px 70px rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.contact-kicker { font: 500 10px/1 Barlow, system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(160,200,255,.9); margin-bottom: 16px; }
.contact-title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: clamp(38px, 5vw, 64px); line-height: 1; color: #f4f8fd; }
.contact-details { margin-left: auto; flex: 1; min-width: 280px; text-align: right; }
.contact-lines { font: 400 14px/1.8 Barlow, system-ui, sans-serif; color: rgba(222,232,244,.8); }
.contact-lines a { color: inherit; text-decoration: none; }
.contact-lines a:hover { color: #ffffff; text-decoration: underline; }
.contact-details .btn-primary { margin-top: 16px; }

/* ---- About: leadership cards (bio opens on hover, or tap/click) ----------- */
.lead-toggle { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lead-toggle .lead-more { display: inline-block; margin-top: 12px; font: 500 10px/1 Barlow, system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: rgba(222,232,244,.55); }
.lead-toggle[aria-expanded="true"] .lead-more { color: rgba(160,200,255,.9); }
[data-lead].is-open { border-color: rgba(190,215,255,.34) !important; }
[data-lead].is-open [data-lead-bio] { opacity: 1 !important; max-height: 2400px !important; margin-top: 22px !important; }

/* ---- MU-1 specs accordion ---------------------------------------------- */
.spec-card { padding: 22px 30px; border: 1px solid rgba(190,215,255,.16); border-radius: 20px; background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 20px 50px rgba(0,0,0,.4); transition: border-color .3s ease; }
.spec-card.is-open { border-color: rgba(190,215,255,.38); }
.spec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.spec-plus { flex: none; font: 300 26px/1 Barlow, system-ui, sans-serif; color: rgba(190,215,255,.9); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.spec-card.is-open .spec-plus { transform: rotate(45deg); }
.spec-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2,.8,.2,1), opacity .4s ease; }
.spec-card.is-open .spec-body { grid-template-rows: 1fr; opacity: 1; }
.spec-body > div { overflow: hidden; min-height: 0; }
.spec-sub { font: 500 11px/1.2 Barlow, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgba(222,232,244,.55); }
.spec-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.spec-qty { flex: none; font: 500 11px/1 Barlow, system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: rgba(222,232,244,.6); padding: 5px 10px; border: 1px solid rgba(190,215,255,.2); border-radius: 999px; font-variant-numeric: tabular-nums; }

/* ---- Projects: filter pills, cards, video viewer, case-study slider ------ */
.filter-pill { appearance: none; border-radius: 999px; padding: 12px 22px; font: 500 11px/1 Barlow, system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; color: rgba(238,242,247,.7); border: 1px solid rgba(190,215,255,.24); background: linear-gradient(140deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); }
.filter-pill[aria-pressed="true"] { color: #06121f; border: 1px solid rgba(255,255,255,.5); background: linear-gradient(180deg, #ffffff, #c4d9f2); box-shadow: 0 8px 24px rgba(140,190,255,.28); }
.project-card[hidden] { display: none !important; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(5,7,11,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; padding: 48px; }
.lightbox[hidden] { display: none; }
.case-study[hidden] { display: none !important; }

/* ---- Small screens -------------------------------------------------------
   The design was drawn for a laptop-width window. These rules re-flow it
   for tablets and phones. Inline styles win over normal CSS, so these
   overrides use !important on purpose. */
@media (max-width: 1100px) {
  .grid-team { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px) {
  .stack-md { grid-template-columns: minmax(0, 1fr) !important; }
  .stack-md > [style*="border-left"] { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid rgba(190,215,255,.16); padding-top: 24px; }
  .cols-1 { column-count: 1 !important; }
  .pd-side { min-height: 0 !important; }
  .pd-side > div { position: static !important; grid-template-rows: none !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd-side > div > div { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .site-header { padding: 16px 16px 0; }
  .nav { flex-direction: column; gap: 14px; padding: 14px 16px 16px; }
  .nav-logo img { height: 54px; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 14px 20px; }
  .sec { padding-left: 16px !important; padding-right: 16px !important; }
  .contact-section { padding: 40px 16px 48px; }
  .contact-card { padding: 30px 22px; }
  .contact-details { text-align: left; margin-left: 0; min-width: 0; }
  .pad-m { padding: 24px 20px !important; }
  .lightbox { padding: 16px; }
}
@media (max-width: 640px) {
  .grid-team { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
  .stack-sm { grid-template-columns: minmax(0, 1fr) !important; }
  .h-auto-sm { height: 240px !important; }
  .row-wrap { flex-wrap: wrap !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bloom, [data-marquee] { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---- Hover effects (generated from the design file) ------------------- */
.hv-1:hover { opacity:0 !important; }
.hv-2:hover { background:linear-gradient(140deg,rgba(255,255,255,.2),rgba(255,255,255,.06)) !important; }
.hv-3:hover { background:linear-gradient(180deg,#ffffff,#dceaf9) !important; }
.hv-4:hover { transform:scale(1.04) !important; color:#ffffff !important; }
.hv-5:hover { transform:scale(1.02) !important; color:#cfe6fa !important; }
.hv-6:hover { border-color:rgba(190,215,255,.38) !important; }
