/* ===========================================================
   Abiola Akinpelu — Personal Website
   Apple-inspired design system
   =========================================================== */

:root {
  --navy: #1F3864;
  --navy-700: #16294a;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #0b1220;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1080px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 18px 60px rgba(0,0,0,.18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.4,.0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__inner { max-width: var(--maxw); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.nav__brand { font-weight: 600; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.nav__brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav__links a { color: var(--ink-2); font-size: 13.5px; font-weight: 400; }
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__cta { background: var(--blue); color:#fff !important; padding: 7px 16px; border-radius: 980px; font-size: 13px; }
.nav__cta:hover { background: var(--blue-hover); text-decoration: none; }
.nav__toggle { display:none; background:none; border:0; cursor:pointer; font-size: 22px; color: var(--ink); }

@media (max-width: 820px){
  .nav__links { position: fixed; inset: 56px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(20px);
    padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(-120%);
    transition: transform .35s var(--ease); }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display:block; padding: 14px 24px; font-size: 16px; }
  .nav__toggle { display:block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(64,120,220,.55), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(31,56,100,.85), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #16294a 45%, #1F3864 100%);
}
.hero::after{
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.06) 0, transparent 2px),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,.05) 0, transparent 2px);
  background-size: 28px 28px, 36px 36px; opacity:.5; pointer-events:none;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 120px 22px 80px; position: relative; z-index:2; width:100%;
  display:grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items:center; }
.hero__eyebrow { font-size: 15px; font-weight: 500; color: #9fc0ff; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -0.03em; }
.hero h1 span { background: linear-gradient(90deg,#fff, #bcd3ff); -webkit-background-clip:text; background-clip:text; color: transparent; }
.hero__sub { margin-top: 20px; font-size: clamp(17px,2vw,21px); color: #d7def0; max-width: 560px; font-weight: 300; }
.hero__cta { margin-top: 34px; display:flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { margin-top: 46px; display:flex; gap: 38px; flex-wrap: wrap; }
.hero__stat b { display:block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.hero__stat span { font-size: 13px; color: #9fb3d6; }

.avatar {
  justify-self:center; width: 280px; height: 280px; border-radius: 50%;
  background: linear-gradient(145deg,#27406e, #16294a);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.12);
  display:flex; align-items:center; justify-content:center; position:relative;
}
.avatar span { font-size: 92px; font-weight: 600; letter-spacing: -.03em;
  background: linear-gradient(135deg,#fff,#9fc0ff); -webkit-background-clip:text; background-clip:text; color:transparent; }
.avatar small { position:absolute; bottom:-30px; left:50%; transform:translateX(-50%);
  font-size: 11px; color:#7f93b8; white-space:nowrap; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center top; }

/* Real photos integrated into sections */
.about__portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-bottom: 16px; }
.card__img { width: 100%; height: 200px; object-fit: cover; object-position: center top;
  border-radius: 14px; margin-bottom: 18px; }

/* Engineering illustration panels (about + contact) */
.about__illus { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  margin-bottom: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center;
  padding: 26px 22px; background: linear-gradient(160deg, #0b1220, #16294a 60%, #1F3864); }
.about__illus svg { width: 100%; height: 100%; color: rgba(255,255,255,.92); }
.contact__illus { width: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.contact__illus svg { width: 100%; height: auto; color: rgba(255,255,255,.9); }

@media (max-width: 820px){
  .hero__inner { grid-template-columns: 1fr; padding-top: 100px; }
  .avatar { width: 200px; height: 200px; order:-1; }
  .avatar span { font-size: 66px; }
}

/* ---------- Hero architectural backdrop ---------- */
.hero__art { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; pointer-events: none; }
.hero__art svg { width: 100%; height: auto; display: block; color: rgba(255,255,255,.22); }
.hero__art .draw { stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 3.4s var(--ease) .3s forwards; }
.hero__art .road-dash { stroke-dasharray: 9 13; animation: traffic 1.1s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes traffic { to { stroke-dashoffset: -44; } }
@media (prefers-reduced-motion: reduce){
  .hero__art .draw { animation: none; stroke-dashoffset: 0; }
  .hero__art .road-dash { animation: none; }
}

/* ---------- Expertise (illustrated flip cards) ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
@media (max-width: 760px){ .expertise-grid { grid-template-columns: 1fr; } }
.flip { perspective: 1500px; height: 320px; cursor: pointer; outline: none; }
.flip:focus-visible .flip__inner { box-shadow: 0 0 0 3px rgba(0,113,227,.5); border-radius: var(--radius-lg); }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.flip__face:hover { box-shadow: var(--shadow-lg); }
.flip__front { background: linear-gradient(160deg, #0b1220, #16294a 60%, #1F3864); color: #fff; border: 1px solid rgba(255,255,255,.08); }
.flip__art { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 22px 6px; }
.flip__art svg { width: 100%; height: 100%; color: rgba(255,255,255,.9); }
.flip__art .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.flip.in-view .flip__art .draw { animation: draw 2.4s var(--ease) forwards; }
.flip__art .wave, .flip__art .hook { transform-box: fill-box; transform-origin: center; }
.flip.in-view .flip__art .wave { animation: wavemove 3.5s ease-in-out infinite; }
.flip.in-view .flip__art .hook { animation: hooksway 4s ease-in-out infinite; }
@keyframes wavemove { 0%,100%{ transform: translateX(0); } 50%{ transform: translateX(6px); } }
@keyframes hooksway { 0%,100%{ transform: rotate(-3deg); } 50%{ transform: rotate(3deg); } }
.flip__label { padding: 14px 22px 18px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.1); }
.flip__label h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.flip__hint { font-size: 12px; color: #9fb3d6; display: inline-flex; align-items: center; gap: 5px; }
.flip__back { background: #fff; transform: rotateY(180deg); padding: 28px; justify-content: center; border: 1px solid var(--line); }
.flip__back h3 { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 10px; letter-spacing: -.02em; }
.flip__back p { color: var(--ink-2); font-size: 15px; font-weight: 300; line-height: 1.55; }
.flip__back ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.flip__back li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); font-weight: 300; }
.flip__back li::before { content:""; position:absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.flip__close { margin-top: 16px; align-self: flex-start; font-size: 13px; color: var(--blue); background: none; border: 0; cursor: pointer; font-family: inherit; }
.flip__close:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn { display:inline-flex; align-items:center; gap:8px; font-size: 15px; font-weight: 400;
  padding: 12px 22px; border-radius: 980px; transition: all .25s var(--ease); cursor:pointer; border:0; }
.btn--primary { background: var(--blue); color:#fff; }
.btn--primary:hover { background: var(--blue-hover); text-decoration:none; transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.3); }
.btn--ghost:hover { background: rgba(255,255,255,.2); text-decoration:none; }
.btn--dark { background: var(--ink); color:#fff; }
.btn--dark:hover { background:#000; text-decoration:none; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color:#fff; }
.section__eyebrow { color: var(--blue); font-weight: 500; font-size: 15px; letter-spacing:.02em; }
.section--dark .section__eyebrow { color:#7aa6ff; }
.section__title { font-size: clamp(30px,4.4vw,52px); font-weight: 600; letter-spacing:-.025em; margin: 10px 0 18px; line-height:1.07; }
.section__lead { font-size: clamp(17px,2vw,22px); color: var(--muted); max-width: 720px; font-weight: 300; }
.section--dark .section__lead { color:#aab4cc; }

/* ---------- About ---------- */
.about__grid { display:grid; grid-template-columns: 1.2fr 1fr; gap: 56px; margin-top: 50px; align-items:start; }
.about__text p { font-size: 19px; color: var(--ink-2); margin-bottom: 18px; font-weight: 300; line-height:1.6; }
.about__cards { display:grid; gap: 16px; }
.minicard { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.minicard h4 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.minicard p { font-size: 17px; color: var(--ink); font-weight: 400; }
@media (max-width: 820px){ .about__grid { grid-template-columns: 1fr; gap:32px; } }

/* ---------- Timeline (experience) ---------- */
.timeline { margin-top: 56px; position: relative; }
.tl-item { display:grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); }
.tl-item:first-child { border-top: 0; }
.tl-date { font-size: 14px; color: var(--muted); font-weight: 500; }
.tl-date b { display:block; color: var(--ink); font-size: 15px; }
.tl-body h3 { font-size: 23px; font-weight: 600; letter-spacing:-.02em; }
.tl-body .tl-co { color: var(--blue); font-size: 16px; margin: 2px 0 14px; font-weight: 500; }
.tl-body ul { list-style: none; display:grid; gap: 10px; }
.tl-body li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; font-weight: 300; }
.tl-body li::before { content:""; position:absolute; left:2px; top:9px; width:6px; height:6px; border-radius:50%; background: var(--navy); }
@media (max-width: 720px){ .tl-item { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Experience (enhanced) ---------- */
.xp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 46px 0 8px; }
.xp-stat { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.xp-stat b { display:block; font-size: 30px; font-weight: 600; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.xp-stat span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 720px){ .xp-stats { grid-template-columns: 1fr 1fr; } }

.xp-timeline { position: relative; margin-top: 44px; }
.xp-timeline::before { content:""; position:absolute; left: 25px; top: 10px; bottom: 18px; width: 2px;
  background: linear-gradient(var(--navy), rgba(31,56,100,.12)); }
.xp { position: relative; padding: 0 0 26px 72px; }
.xp__marker { position:absolute; left: 7px; top: 2px; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), #2c4a82); color:#fff; display:flex; align-items:center; justify-content:center;
  box-shadow: 0 6px 16px rgba(31,56,100,.32); z-index: 1; }
.xp__marker svg { width: 19px; height: 19px; }
.xp__card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.xp__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.xp__head { display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap; align-items: baseline; }
.xp__role { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.xp__date { font-size: 12.5px; font-weight: 500; color: var(--navy); background: rgba(31,56,100,.08);
  padding: 5px 12px; border-radius: 980px; white-space: nowrap; }
.xp__co { color: var(--blue); font-weight: 500; font-size: 15.5px; margin: 3px 0 0; }
.xp__co span { color: var(--muted); font-weight: 400; }
.xp__summary { color: var(--ink); font-size: 16px; font-weight: 300; margin: 11px 0 14px; }
.xp__list { list-style: none; display: grid; gap: 9px; }
.xp__list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15.5px; font-weight: 300; line-height: 1.5; }
.xp__list li::before { content:""; position:absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.xp__extra { display: none; margin-top: 9px; }
.xp__extra.open { display: grid; }
.xp__more { margin-top: 12px; background:none; border:0; color: var(--blue); font-size: 14px; font-weight: 500;
  cursor: pointer; padding: 0; font-family: inherit; display:inline-flex; align-items:center; gap:5px; }
.xp__more:hover { text-decoration: underline; }
.xp__chips { display:flex; flex-wrap:wrap; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.xp__chip { font-size: 12.5px; color: var(--navy); background: rgba(31,56,100,.07); border-radius: 980px; padding: 5px 12px; }
.xp__chip--link { color:#fff; background: var(--navy); }
.xp__chip--link:hover { background: var(--navy-700); text-decoration:none; }
@media (max-width: 600px){ .xp { padding-left: 58px; } .xp-timeline::before { left: 21px; } .xp__marker { left: 3px; width:36px;height:36px; } }

/* ---------- Skills ---------- */
.chips { display:flex; flex-wrap:wrap; gap: 12px; margin-top: 44px; }
.chip { background:#fff; border:1px solid var(--line); border-radius: 980px; padding: 10px 18px; font-size: 14.5px; color: var(--ink); font-weight: 400; transition: all .2s var(--ease); }
.chip:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.section--dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color:#e6ebf5; }
.section--dark .chip:hover { border-color:#7aa6ff; color:#fff; }

/* ---------- Cards grid (education / certs / research) ---------- */
.grid { display:grid; gap: 22px; margin-top: 50px; }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width:46px; height:46px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background: linear-gradient(145deg, var(--navy), #2c4a82); color:#fff; margin-bottom: 18px; }
.card__icon svg { width: 24px; height:24px; }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing:-.02em; margin-bottom: 6px; }
.card .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15.5px; font-weight: 300; line-height:1.55; }
.card .tag { display:inline-block; margin-top:14px; font-size: 12.5px; color: var(--navy); background: rgba(31,56,100,.08); padding: 5px 12px; border-radius: 980px; }
@media (max-width: 900px){ .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Blog / posts ---------- */
.post-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display:flex; flex-direction:column; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card a { text-decoration:none; }
.post-card__cover { height: 180px; background-size: cover; background-position:center;
  background-color: var(--navy); display:flex; align-items:flex-end; padding:16px; }
.post-card__cat { background: rgba(0,0,0,.45); color:#fff; font-size: 12px; padding: 5px 12px; border-radius: 980px; backdrop-filter: blur(6px); }
.post-card__body { padding: 24px; flex:1; display:flex; flex-direction:column; }
.post-card__body h3 { font-size: 20px; color: var(--ink); font-weight: 600; letter-spacing:-.02em; line-height:1.25; }
.post-card__body .meta { color: var(--muted); font-size: 13px; margin: 8px 0 12px; }
.post-card__body p { color: var(--ink-2); font-size: 15px; font-weight: 300; flex:1; }
.post-card__foot { margin-top:16px; display:flex; align-items:center; justify-content:space-between; }
.read-more { color: var(--blue); font-size: 14px; font-weight: 500; }

/* Share to LinkedIn button */
.li-share { display:inline-flex; align-items:center; gap:7px; background:#0a66c2; color:#fff !important;
  font-size: 13px; padding: 7px 13px; border-radius: 980px; }
.li-share:hover { background:#004182; text-decoration:none; }
.li-share svg { width:15px; height:15px; fill:#fff; }

/* ---------- Article (single post) ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 130px 22px 90px; }
.article__hero { height: 320px; border-radius: var(--radius-lg); background-size:cover; background-position:center; background-color: var(--navy); margin-bottom: 34px; }
.article h1 { font-size: clamp(30px,5vw,46px); font-weight: 600; letter-spacing:-.025em; line-height:1.1; }
.article .meta { color: var(--muted); font-size: 15px; margin: 16px 0 30px; display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.article__content { font-size: 19px; color: var(--ink-2); line-height: 1.7; font-weight: 300; }
.article__content h2 { font-size: 28px; color: var(--ink); font-weight: 600; margin: 38px 0 14px; letter-spacing:-.02em; }
.article__content h3 { font-size: 22px; color: var(--ink); font-weight: 600; margin: 28px 0 10px; }
.article__content p { margin-bottom: 20px; }
.article__content ul, .article__content ol { margin: 0 0 20px 22px; display:grid; gap:8px; }
.article__content blockquote { border-left: 4px solid var(--navy); padding: 6px 0 6px 22px; color: var(--ink); font-style: italic; margin: 24px 0; }
.article__back { display:inline-block; margin-bottom: 24px; color: var(--blue); font-size: 15px; }

/* ---------- Contact ---------- */
.contact__grid { display:grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.contact__card { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 34px; }
.contact__card h3 { font-size: 22px; font-weight:600; margin-bottom: 18px; }
.contact__row { display:flex; align-items:center; gap: 14px; padding: 12px 0; color:#cdd6ea; font-size: 16px; }
.contact__row svg { width:20px; height:20px; flex:none; opacity:.8; }
.contact__row a { color:#fff; }
.contact__icons { gap: 12px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center; color:#fff;
  transition: all .2s var(--ease); }
.icon-btn:hover { background: rgba(255,255,255,.12); border-color:#fff; transform: translateY(-2px); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.badge-wrap { display:flex; justify-content:center; align-items:center; }
@media (max-width: 720px){ .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background:#000; color:#86868b; padding: 40px 0; font-size: 13px; }
.footer__inner { max-width: var(--maxw); margin:0 auto; padding: 0 22px; display:flex; justify-content:space-between; gap: 16px; flex-wrap:wrap; }
.footer a { color:#86868b; }
.footer a:hover { color:#fff; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Gallery category tabs ---------- */
.gallery__tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gtab { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #cdd6ea;
  padding: 9px 18px; border-radius: 980px; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .2s var(--ease); }
.gtab:hover { color: #fff; border-color: #7aa6ff; }
.gtab.is-active { background: #fff; color: var(--navy); border-color: #fff; font-weight: 500; }

/* ---------- Animated gallery ---------- */
.gallery { position: relative; margin-top: 22px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); background:#000; }
.gallery__stage { position: relative; aspect-ratio: 16 / 9; }
@media (max-width: 640px){ .gallery__stage { aspect-ratio: 4 / 5; } }
.gslide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s var(--ease);
  pointer-events: none; cursor: zoom-in; overflow: hidden; }
.gslide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.gslide img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.gslide.is-active img { animation: kenburns 7s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16); } }
.gslide figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 60px 26px 22px; color:#fff; font-size: 17px; font-weight: 400;
  background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.4); color:#fff; font-size: 22px; line-height: 1;
  backdrop-filter: blur(6px); transition: background .2s var(--ease); }
.gallery__btn:hover { background: rgba(0,0,0,.7); }
.gallery__btn--prev { left: 16px; } .gallery__btn--next { right: 16px; }
.gallery__dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; gap: 9px; }
.gallery__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: all .25s var(--ease); padding: 0; }
.gallery__dots button.is-active { background: #fff; width: 26px; border-radius: 6px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: 0;
  color:#fff; font-size: 34px; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.1);
  border: 0; color:#fff; font-size: 30px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }

@media (prefers-reduced-motion: reduce){
  .gslide.is-active img { animation: none; transform: scale(1.04); }
  .gslide { transition: opacity .2s linear; }
}

/* ---------- Empty state ---------- */
.empty { text-align:center; color: var(--muted); padding: 60px 0; font-weight: 300; }
