/* Shaqoor Al-Intaj — website styles (v2) */
:root {
  --midnight: #0F172A;
  --deep: #0B1222;
  --ink: #1E293B;
  --emerald: #10B981;
  --emerald-deep: #047857;
  --lime: #A3E635;
  --paper: #F3F6F5;
  --text: #1E293B;
  --muted: #475569;
  --soft: #CBD5E1;
  --line: #E2E8F0;
  --white: #FFFFFF;
  --wrap: 1200px;
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-family: "Poppins", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img, svg { max-width: 100%; display: block; }
a { color: var(--emerald-deep); }
h1, h2, h3 { margin: 0; color: var(--midnight); line-height: 1.15; font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 2px solid var(--emerald); background: var(--emerald); color: var(--midnight);
  font: 600 16px/1 "Poppins", Arial, sans-serif; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--lime); border-color: var(--lime); color: var(--midnight); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn-dark { background: var(--midnight); border-color: var(--midnight); color: var(--white); }
.btn-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* ---------- Header (transparent over hero, solid after scroll) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 600; font-size: 21px; letter-spacing: .2em; color: var(--white); margin: 0; transition: color .25s; }
.brand-ar { font-family: "Tajawal", Arial, sans-serif; font-weight: 700; font-size: 14px; color: var(--soft); text-align: left; transition: color .25s; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; transition: color .25s, border-color .2s; }
.nav a:not(.btn):hover { border-bottom-color: var(--emerald); }
.scrolled .brand-name, .scrolled .nav a:not(.btn) { color: var(--midnight); }
.scrolled .brand-ar { color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 6px; order: 2; }
.lang { color: var(--white); font-weight: 600; font-size: 15px; text-decoration: none; padding: 8px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; transition: color .25s, border-color .25s; }
.lang:hover { border-color: var(--lime); }
.scrolled .lang { color: var(--midnight); border-color: var(--line); }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; }
.header-row .nav { order: 1; margin-inline-start: auto; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; transition: transform .2s, opacity .2s, background .25s; }
.scrolled .menu-toggle span { background: var(--midnight); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(900px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(1200px 700px at 78% 40%, #13213A 0%, var(--midnight) 55%, var(--deep) 100%);
  color: var(--soft);
  padding: calc(var(--header-h) + 48px) 0 0;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { padding-bottom: clamp(48px, 7vw, 88px); }
.hero-kicker { color: var(--lime); font-weight: 500; font-size: 15px; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(42px, 6.6vw, 92px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; max-width: 11.5ch; }
.hero .lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 46ch; margin: 28px 0 40px; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 26px 0 30px; border-top: 1px solid rgba(255,255,255,.12); }
.trust-label { margin: 0; font-size: 14px; color: #94A3B8; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.trust li { color: var(--white); font-weight: 600; font-size: 15px; opacity: .85; }

/* Hero motion: one orchestrated sequence, then packets keep flowing */
.art-faint { animation: fadeIn 1.2s ease-out both; }
.hero-falcon { position: absolute; z-index: -1; width: clamp(198px, 23.4vw, 324px); height: auto; overflow: visible;
  top: 46%; transform: translateY(-50%); inset-inline-end: max(24px, calc((100vw - 1200px) / 2)); }
.art-lit rect { animation: litIn 1.1s .35s cubic-bezier(.2,.7,.2,1) both; transform-box: fill-box; transform-origin: right center; }
.art-beak, .art-eye { animation: fadeIn .6s 1.1s ease-out both; }
.packets rect { animation: stream 5s linear infinite; opacity: 0; }
.packets rect:nth-child(2) { animation-delay: 1.4s; animation-duration: 6s; }
.packets rect:nth-child(3) { animation-delay: .6s; animation-duration: 4.4s; }
.packets rect:nth-child(4) { animation-delay: 2.2s; animation-duration: 5.6s; }
.packets rect:nth-child(5) { animation-delay: 3s; animation-duration: 4.8s; }
.packets rect:nth-child(6) { animation-delay: 1s; animation-duration: 6.4s; }
.packets rect:nth-child(7) { animation-delay: 2.6s; animation-duration: 5.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes litIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes stream {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  60% { opacity: .9; }
  100% { transform: translateX(-24px); opacity: 0; }
}

/* ---------- Statement ---------- */
.statement { padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 100px); }
.statement-text { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--midnight); max-width: 30ch; margin: 0; }
.statement-text span { color: #64748B; }
.about-kicker { color: var(--emerald-deep); font-weight: 600; font-size: 15px; margin-bottom: 20px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 72px; align-items: start; }
.about-body p { color: var(--muted); font-size: 18px; max-width: 54ch; }
.about-body p:last-child { margin-bottom: 0; }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: clamp(56px, 7vw, 88px) 0 0; }
.numbers div { border-top: 3px solid var(--midnight); padding-top: 20px; }
.numbers div:first-child { border-top-color: var(--emerald); }
.numbers dt { font-size: clamp(48px, 5.6vw, 76px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--midnight); }
.numbers dd { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 22ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; max-width: 44ch; }

/* Solutions */
#solutions { background: var(--paper); }
.features { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.feature { background: var(--white); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border: 1px solid #DCE5E1; }
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.feature h3 { font-size: 22px; }
.feature-xl { background: var(--midnight); border-color: var(--midnight); }
.feature-xl h3 { color: var(--white); font-size: 26px; }
.feature-xl p { color: var(--soft); max-width: 40ch; }
.feature-art { width: 100%; max-width: 360px; margin-bottom: auto; }
.feature-icon { width: 88px; height: 88px; margin-bottom: auto; background: #ECFDF5; border-radius: 22px; padding: 14px; }
.solution-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.solution-list li { display: flex; align-items: flex-start; gap: 16px; padding: 24px 4px; border-bottom: 1px solid #D7DFDC; }
.sol-icon { flex: 0 0 52px; width: 52px; height: 52px; background: var(--white); border-radius: 14px; padding: 7px; border: 1px solid #DCE5E1; }
.solution-list h3 { font-size: 17px; margin-bottom: 4px; }
.solution-list p { margin: 0; color: var(--muted); font-size: 15px; }

/* Divisions */
.divisions { background: var(--midnight); color: var(--soft); }
.divisions h2, .divisions h3 { color: var(--white); }
.divisions .section-head p { color: var(--soft); }
.division-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.division { padding-block: 40px 8px; padding-inline: 0 36px; position: relative; }
.division + .division { padding-inline-start: 36px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.division::before { content: ""; position: absolute; top: -1px; inset-inline-start: 0; width: 64px; height: 3px; background: var(--emerald); }
.division + .division::before { inset-inline-start: 36px; }
.division-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px; background: #F0FDF7; margin-bottom: 22px; }
.division-icon svg { width: 48px; height: 48px; }
.division h3 { font-size: 26px; }
.division-intro { color: var(--lime); margin: 10px 0 24px; font-size: 16px; }
.division ul { list-style: none; margin: 0; padding: 0; }
.division li { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 16px; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; inset-inline-start: 28px; inset-inline-end: calc((100% - 96px) / 4 - 28px); height: 2px; background: repeating-linear-gradient(90deg, var(--emerald) 0 18px, transparent 18px 28px); }
.process li { position: relative; }
.step { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--midnight); color: var(--lime); font-weight: 700; font-size: 20px; margin-bottom: 22px; position: relative; box-shadow: 0 0 0 8px var(--white); }
.process h3 { font-size: 22px; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 16px; margin: 0; }

/* Clients */
.clients-section { background: var(--paper); padding-bottom: clamp(64px, 8vw, 100px); }
.marquee { display: flex; overflow: hidden; border-block: 1px solid #D7DFDC; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { list-style: none; margin: 0; padding: 0; display: flex; flex-shrink: 0; animation: marquee 48s linear infinite; }
.marquee-track li { white-space: nowrap; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: var(--midnight); padding: 30px 0; display: flex; align-items: center; }
.marquee-track li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--emerald); margin: 0 40px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.partners { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.partners h3 { font-size: 18px; }
.partner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partner-list li { background: var(--white); border: 1px solid #DCE5E1; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--ink); }

/* Contact */
.contact { background: var(--emerald); padding: clamp(80px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(15,23,42,.07) 0 4px, transparent 4px 14px); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy h2 { max-width: 12ch; }
.contact-copy > p { color: #064E3B; font-size: 18px; max-width: 42ch; margin: 20px 0 0; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(15,23,42,.18); }
.c-icon { flex: 0 0 40px; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--midnight); color: var(--lime); }
.contact-list span { display: block; font-size: 13px; color: #064E3B; line-height: 1.3; }
.contact-list a, .contact-list p { color: var(--midnight); font-weight: 600; font-size: 17px; text-decoration: none; margin: 0; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { background: var(--white); border-radius: 24px; padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 60px -20px rgba(6,78,59,.45); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 500; font-size: 15px; color: var(--midnight); }
.field input, .field select, .field textarea { font: 400 16px/1.4 "Poppins", Arial, sans-serif; color: var(--text); border: 1px solid #CBD5E1; border-radius: 10px; padding: 13px 14px; background: var(--white); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(16,185,129,.25); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.form-error { color: #B91C1C; font-size: 15px; }
.form-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-wa { background: #25D366; border-color: #25D366; color: var(--midnight); gap: 8px; }
.btn-wa:hover { background: #1EBE5B; border-color: #1EBE5B; color: var(--midnight); }
.tiny { width: 20px; height: 20px; flex: 0 0 auto; color: currentColor; }
.wa-float { position: fixed; inset-block-end: 22px; inset-inline-end: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }

/* Footer */
.site-footer { background: var(--deep); color: var(--soft); padding: 64px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand p { margin: 0; }
.footer-brand .brand-name { font-size: 22px; }
.footer-sub { font-size: 14px; color: #94A3B8; }
.footer-ar { font-family: "Tajawal", Arial, sans-serif; font-weight: 700; color: var(--soft); text-align: left; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { color: var(--soft); text-decoration: none; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: #94A3B8; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--soft); text-decoration: none; }
.footer-bottom a:hover { color: var(--lime); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature-xl { grid-column: 1 / -1; min-height: 280px; }
  .numbers { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .solution-list { grid-template-columns: repeat(2, 1fr); }
  .division-grid { grid-template-columns: 1fr; }
  .division, .division + .division { padding: 32px 0 8px; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .division + .division::before { inset-inline-start: 0; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .process::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); padding: 8px 24px 24px; display: none; box-shadow: 0 12px 24px rgba(15,23,42,.12); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { color: var(--midnight); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
  .site-header.menu-open { background: var(--white); }
  .menu-open .brand-name, .menu-open .lang { color: var(--midnight); }
  .header-tools { order: 3; }
  .menu-open .menu-toggle span { background: var(--midnight); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section-head { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 190px); }
  .hero-falcon { width: 162px; top: calc(var(--header-h) + 16px); transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .solution-list { grid-template-columns: 1fr; }
  .numbers { gap: 24px; }
  .process { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .trust ul { gap: 6px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .packets rect { opacity: 0; }
  .marquee { overflow-x: auto; }
}

/* ---------- Arabic / RTL ---------- */
[lang="ar"] body, html[lang="ar"] body { font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif; font-size: 18px; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .statement-text { letter-spacing: 0; font-family: "Tajawal", Tahoma, Arial, sans-serif; }
html[lang="ar"] h1 { font-weight: 800; line-height: 1.2; max-width: 13ch; }
html[lang="ar"] h2 { font-weight: 800; line-height: 1.25; }
html[lang="ar"] .statement-text { font-weight: 500; line-height: 1.55; }
html[lang="ar"] .btn, html[lang="ar"] .field input, html[lang="ar"] .field select, html[lang="ar"] .field textarea, html[lang="ar"] .tab-list button { font-family: "Tajawal", Tahoma, Arial, sans-serif; font-size: 17px; }
html[lang="ar"] .brand-name, html[lang="ar"] .numbers dt { font-family: "Poppins", Arial, sans-serif; }
html[lang="ar"] .numbers dt { letter-spacing: -0.02em; }
html[dir="rtl"] .brand-ar, html[dir="rtl"] .footer-ar { text-align: right; }
html[dir="rtl"] .hero-art { transform: scaleX(-1); }
html[dir="rtl"] .hero-falcon { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 820px) { html[dir="rtl"] .hero-falcon { transform: scaleX(-1); } }
html[dir="rtl"] .marquee { direction: ltr; }
html[dir="rtl"] .marquee-track li { font-family: "Poppins", Arial, sans-serif; }
html[dir="rtl"] .feature-art { transform: scaleX(-1); }
@media (max-width: 560px) { .wa-float { width: 52px; height: 52px; inset-block-end: 16px; inset-inline-end: 16px; } .wa-float svg { width: 28px; height: 28px; } }

/* ---------- Photos (gallery + divisions) ---------- */
.photo { position: relative; overflow: hidden; background: var(--midnight); isolation: isolate; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(180deg, rgba(16,185,129,.16) 0 3px, transparent 3px 13px); }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; z-index: -1; }
.photo-fallback svg { width: 72px; height: 72px; background: #fff; border-radius: 20px; padding: 10px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.photo img.loaded { opacity: 1; }
.photo.missing img { display: none; }

.gallery-section { background: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 14px;
  grid-template-areas: "a a b c" "a a d e" "f g h h" "i j h h"; }
.g1 { grid-area: a; } .g2 { grid-area: b; } .g3 { grid-area: c; } .g4 { grid-area: d; } .g5 { grid-area: e; }
.g6 { grid-area: f; } .g7 { grid-area: g; } .g8 { grid-area: h; } .g9 { grid-area: i; } .g10 { grid-area: j; }
.g-tile { margin: 0; position: relative; border-radius: 18px; overflow: hidden; }
.g-tile .photo { position: absolute; inset: 0; }
.g-tile figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px; display: flex; flex-direction: column; gap: 4px;
  background: linear-gradient(0deg, rgba(15,23,42,.92) 0%, rgba(15,23,42,.55) 55%, transparent 100%); color: var(--white); transition: padding .3s; }
.g-tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--midnight); background: var(--lime); border-radius: 999px; padding: 2px 10px; }
.g-title { font-size: 17px; font-weight: 600; line-height: 1.3; }
.g1 .g-title, .g8 .g-title { font-size: 22px; }
.g-tile:hover img { transform: scale(1.06); }
.g-tile:hover figcaption { padding-bottom: 22px; }

.division-photo { height: 180px; border-radius: 14px; margin-bottom: -34px; }
.division-photo .photo-fallback svg { width: 56px; height: 56px; }
.division .division-icon { position: relative; margin-inline-start: 16px; border: 3px solid var(--midnight); }

@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-template-areas: "a a" "a a" "b c" "d e" "h h" "h h" "f g" "i j"; }
}
@media (prefers-reduced-motion: reduce) { .photo img { transition: none; } .g-tile:hover img { transform: none; } }
