/* Vicent Manila — Executive Portfolio Styles */

:root {
  --navy-950: #071A2F;
  --navy-900: #0D2745;
  --navy-800: #163A61;
  --navy: #071A2F;
  --navy-secondary: #0D2745;
  --gold-500: #C9A45C;
  --gold-400: #E3CF9B;
  --gold-100: #F7F0DF;
  --gold: #C9A45C;
  --white: #FFFFFF;
  --surface: #F1F5F9;
  --surface-warm: #FBFAF7;
  --canvas: #F8FAFC;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --ink: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 18px 50px rgba(7, 26, 47, 0.08);
  --shadow-lift: 0 28px 72px rgba(7, 26, 47, 0.14);
  --header-h: 4.25rem;
  --mobile-header-height: 64px;
  --page-pad-x: clamp(1.25rem, 4.2vw, 4rem);
  --section-pad-y: clamp(4rem, 8vw, 7.5rem);
  --max-w: 1280px;
  --z-nav-backdrop: 9998;
  --z-nav-drawer: 9999;
  --z-header: 10000;
  --z-lightbox: 10050;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }

body {
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand-lockup--footer {
  display: inline-flex;
  margin-bottom: 0.75rem;
}
.brand-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-logo--nav {
  height: 36px;
  width: auto;
  border-radius: 8px;
}
@media (min-width: 768px) {
  .brand-logo--nav {
    height: 44px;
  }
}
.brand-logo--footer {
  height: 48px;
  width: auto;
  border-radius: 10px;
}
.brand-logo--hero {
  height: 40px;
  width: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .brand-logo--hero {
    height: 48px;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

.font-display {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

::selection { background: var(--gold-400); color: var(--navy); }

a, button { transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important; }

.max-w-8xl { width: min(100%, var(--max-w)); }

@media (min-width: 768px) {
  .max-w-8xl.mx-auto { padding-left: max(2rem, var(--page-pad-x)); padding-right: max(2rem, var(--page-pad-x)); }
  .max-w-8xl.mx-auto.px-6 { padding-left: max(2rem, var(--page-pad-x)); padding-right: max(2rem, var(--page-pad-x)); }
}

.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.text-gold::after,
.nav-link.is-active::after { transform: scaleX(1); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.btn-lift { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.card-executive {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dark .card-executive {
  background: var(--navy-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}
.card-executive:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(200, 160, 59, 0.28);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.section-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.hero-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.section-pad {
  padding-block: var(--section-pad-y);
  padding-inline: 0;
}

/* Hero portrait frame */
.portrait-frame {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
}
.portrait-frame__ring {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(200, 160, 59, 0.28);
  border-radius: calc(var(--radius-lg) + 6px);
  pointer-events: none;
}
.portrait-frame__accent {
  position: absolute;
  width: 42%;
  height: 42%;
  right: -8%;
  bottom: -6%;
  background: linear-gradient(145deg, rgba(200, 160, 59, 0.18), transparent 70%);
  border-radius: 50%;
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}
.portrait-frame__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200, 160, 59, 0.22);
  box-shadow: 0 24px 60px rgba(11, 31, 58, 0.22);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-secondary) 100%);
}
.portrait-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.portrait-frame--profile .portrait-frame__media {
  aspect-ratio: 5 / 6;
  box-shadow: var(--shadow-lift);
}
.portrait-frame--profile .portrait-frame__media img {
  object-position: center 15%;
}
.portrait-frame--contact {
  width: min(100%, 280px);
}
.portrait-frame--contact .portrait-frame__media {
  aspect-ratio: 4 / 5;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.portrait-frame--contact .portrait-frame__media img {
  object-position: center 20%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.hero-btn-row {
  display: contents;
}

.brand-name {
  display: none;
}
@media (min-width: 380px) {
  .brand-name { display: block; }
}

/* =========================================================
   MOBILE / TABLET HERO + HEADER (desktop ≥1024px unchanged)
   ========================================================= */
@media (max-width: 1023px) {
  .site-header {
    z-index: var(--z-header);
  }
  .site-header__nav {
    min-height: var(--mobile-header-height);
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .site-header--scrolled .site-header__nav {
    min-height: 60px;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .brand-logo--nav {
    height: 40px;
  }
  .header-cv-btn {
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }

  #hero {
    min-height: 0;
    align-items: flex-start;
    padding-top: 4.5rem;
  }
  #hero .hero-shell {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .hero-intro {
    display: flex;
    flex-direction: column;
  }
  .hero-logo { order: 1; margin-bottom: 0.75rem; height: 36px; }
  .hero-eyebrow { order: 2; margin-bottom: 0.65rem !important; font-size: 0.75rem; }
  .hero-title {
    order: 3;
    margin-bottom: 0.85rem !important;
    font-size: clamp(2.55rem, 11.5vw, 3.35rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }
  .hero-role {
    order: 4;
    margin-bottom: 0.35rem !important;
    font-size: clamp(1.25rem, 5vw, 1.55rem);
    line-height: 1.25;
  }
  .hero-subtitle {
    order: 5;
    margin-bottom: 0 !important;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
    line-height: 1.5;
  }
  .hero-portrait-mobile {
    order: 9;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem !important;
  }
  .hero-summary {
    order: 6;
    margin-bottom: 1.5rem !important;
    max-width: none;
    font-size: 1rem;
    line-height: 1.65;
  }
  .hero-actions {
    order: 7;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem !important;
    width: 100%;
  }
  .hero-btn--primary {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 52px;
    font-size: 0.9375rem;
    white-space: normal;
    text-align: center;
  }
  .hero-btn-row {
    display: contents;
  }
  .hero-btn--secondary {
    width: 100%;
    min-height: 48px;
    font-size: clamp(0.78rem, 2.8vw, 0.875rem);
    white-space: normal;
    text-align: center;
    padding-inline: 0.55rem;
    line-height: 1.25;
  }
  .hero-btn--link {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
    padding-left: 0;
  }
  .hero-metrics {
    order: 8;
    padding-top: 1.25rem !important;
    gap: 0.5rem;
    align-items: start;
  }
  .hero-metric {
    text-align: center;
    position: relative;
    padding: 0.35rem 0.25rem;
  }
  .hero-metric:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(0, 0, 0, 0.08);
  }
  .dark .hero-metric:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.12);
  }
  .hero-metric__value {
    font-size: clamp(1.7rem, 7vw, 2.1rem) !important;
    line-height: 1.1;
  }
  .hero-metric__label {
    font-size: 0.75rem !important;
    margin-top: 0.3rem !important;
  }

  .portrait-frame--mobile {
    width: min(86vw, 340px);
  }
  .portrait-frame--mobile .portrait-frame__media {
    border-radius: 24px;
    border: 1px solid rgba(11, 31, 58, 0.18);
    box-shadow: 0 14px 36px rgba(11, 31, 58, 0.14);
  }
  .portrait-frame--mobile .portrait-frame__ring {
    inset: -8px;
    border-radius: 28px;
    border-color: rgba(200, 160, 59, 0.35);
  }
  .portrait-frame--mobile .portrait-frame__media img {
    object-position: top center;
  }
}

@media (max-width: 768px) {
  #hero .hero-shell {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
    padding-inline: 1.15rem;
  }
  .hero-logo { height: 34px; }
}

@media (max-width: 480px) {
  .brand-logo--nav { height: 38px; }
  .hero-title {
    font-size: clamp(2.45rem, 12vw, 3rem);
  }
  .hero-metric:not(:last-child)::after { display: none; }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .hero-metric__label {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 360px) {
  .brand-name {
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: 2.35rem;
    line-height: 1.02;
  }
  .hero-role { font-size: 1.15rem !important; }
  .hero-subtitle { font-size: 0.9rem !important; }
  .hero-summary {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .hero-actions {
    grid-template-columns: 1fr;
  }
  .hero-btn--secondary {
    grid-column: 1 / -1;
  }
  .portrait-frame--mobile {
    width: min(88vw, 300px);
  }
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .hero-metric:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }
}

@media (min-width: 1024px) {
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-btn-row {
    display: contents;
  }
}

.expertise-card {
  position: relative;
  padding: 1.35rem 1.35rem 1.35rem 1.5rem;
}
.expertise-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 3px;
  border-radius: 99px;
  background: var(--gold);
  opacity: 0.75;
}

.avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--navy), var(--navy-secondary));
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 2px solid rgba(200, 160, 59, 0.35);
  flex-shrink: 0;
}

.timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}
.dark .timeline-line { background: rgba(255, 255, 255, 0.1); }
.timeline-progress {
  position: absolute;
  left: 7px;
  top: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), #e0c45a);
  transition: height 0.1s linear;
}

.timeline-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(200, 160, 59, 0.2);
}
.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 160, 59, 0.15);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 160, 59, 0.35);
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(200, 160, 59, 0.16);
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .project-card {
  background: rgba(28, 53, 87, 0.35);
  border-color: rgba(200, 160, 59, 0.2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 160, 59, 0.4);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.12);
}
.dark .project-card:hover {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
}
.project-card__media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-secondary);
  border-radius: 22px 22px 0 0;
}
.project-card__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--img-pos, center);
  display: block;
  transition: transform 0.45s ease;
}
.project-card:hover .project-card__media img {
  transform: scale(1.03);
}
.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.4rem 1.5rem;
}
.project-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-card__title {
  margin: 0.55rem 0 0.65rem;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.dark .project-card__title { color: #fff; }
.project-card__title a {
  color: inherit;
  transition: color 0.2s ease;
}
.project-card__title a:hover,
.project-card__title a:focus-visible {
  color: var(--gold);
}
.project-card__summary {
  margin: 0 0 1.15rem;
  flex: 1;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--muted);
}
.dark .project-card__summary { color: rgba(255, 255, 255, 0.62); }
.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s ease, gap 0.2s ease;
}
.dark .project-card__cta { color: #fff; }
.project-card__cta:hover,
.project-card__cta:focus-visible,
.project-card:hover .project-card__cta {
  color: var(--gold);
  gap: 0.5rem;
}

/* Legacy alias */
.project-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-secondary);
}
.project-card-media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--img-pos, center);
  transition: transform 0.5s ease;
}
.group:hover .project-card-media img {
  transform: scale(1.03);
}

.action-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .action-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .action-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
}
.action-gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.dark .action-gallery__item { border-color: rgba(255, 255, 255, 0.08); }
.action-gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.action-gallery__item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.action-gallery__item:hover a img { transform: scale(1.03); }
.action-gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.75rem 0.65rem 0.65rem;
  background: linear-gradient(to top, rgba(7, 26, 51, 0.85), transparent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.media-editorial {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.media-editorial__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.media-editorial__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.media-editorial:hover .media-editorial__img img { transform: scale(1.02); }

/* =========================================================
   CORE COMPETENCIES
   ========================================================= */
.skills-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.75rem, 8vw, 6.5rem) 0;
}
.skills-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.skills-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.skills-bg__glow--a {
  width: 26rem;
  height: 26rem;
  left: -8rem;
  top: 8%;
  background: radial-gradient(circle, rgba(200, 160, 59, 0.16), transparent 70%);
}
.skills-bg__glow--b {
  width: 30rem;
  height: 30rem;
  right: -10rem;
  bottom: 0;
  background: radial-gradient(circle, rgba(28, 53, 87, 0.95), transparent 70%);
}
.skills-bg__dots {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(200, 160, 59, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 15%, transparent 75%);
}
.skills-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
}
.skills-header {
  max-width: 42rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.skills-lead {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  line-height: 1.7;
  max-width: 38rem;
}
.skills-divider {
  width: 4.5rem;
  height: 2px;
  margin: 1.5rem auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(200, 160, 59, 0.15), var(--gold), rgba(200, 160, 59, 0.15));
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

.skills-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 160, 59, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.skills-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 160, 59, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(200, 160, 59, 0.08);
}
.skills-card--featured {
  border-color: rgba(200, 160, 59, 0.42);
  background: linear-gradient(160deg, rgba(200, 160, 59, 0.1), rgba(255, 255, 255, 0.03) 55%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(200, 160, 59, 0.12);
}
.skills-card--featured:hover {
  border-color: rgba(200, 160, 59, 0.65);
}

.skills-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--gold);
  background: rgba(200, 160, 59, 0.12);
  border: 1px solid rgba(200, 160, 59, 0.22);
  box-shadow: 0 0 18px rgba(200, 160, 59, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skills-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.skills-card:hover .skills-card__icon {
  transform: scale(1.06);
  box-shadow: 0 0 22px rgba(200, 160, 59, 0.22);
}
.skills-card__title {
  margin: 0;
  color: var(--gold);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.skills-card__rule {
  width: 2.5rem;
  height: 2px;
  margin: 0.9rem 0 1.1rem;
  border-radius: 99px;
  background: rgba(200, 160, 59, 0.45);
}
.skills-card__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}
.skills-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.72);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.skills-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 160, 59, 0.55);
  color: var(--gold);
  background: rgba(11, 31, 58, 0.9);
}

.skills-closing {
  margin: clamp(2.25rem, 5vw, 3.25rem) auto 0;
  text-align: center;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: clamp(1rem, 2vw, 1.15rem);
  letter-spacing: 0.01em;
  line-height: 1.6;
}
.skills-closing span {
  color: var(--gold);
  font-weight: 600;
}

/* Premium editorial redesign */
.executive-hero {
  isolation: isolate;
  background:
    linear-gradient(rgba(7, 26, 47, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 26, 47, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 78% 35%, rgba(201, 164, 92, 0.14), transparent 27%),
    radial-gradient(circle at 14% 78%, rgba(13, 39, 69, 0.08), transparent 28%),
    #fff;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}
.dark .executive-hero {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 35%, rgba(201,164,92,.14), transparent 28%),
    var(--navy);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
.hero-intro { position: relative; }
.hero-intro::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: .25rem;
  width: 1px;
  height: 5rem;
  background: linear-gradient(var(--gold), transparent);
}
.hero-summary { max-width: 37rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero-btn { min-height: 48px; }
.hero-btn svg, .project-feature__cta svg { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.hero-btn:hover svg, .project-feature__cta:hover svg { transform: translateX(4px); }
.hero-btn--primary:hover { background: var(--navy-secondary); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.dark .hero-btn--primary:hover { background: var(--gold-400); }
.hero-btn--secondary:hover { color: white; background: var(--navy); border-color: var(--navy); }
.hero-social-link { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem .4rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.hero-social-link:hover { color: var(--gold); }
.credibility-strip span { position: relative; padding-left: 1rem; }
.credibility-strip span::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.portrait-frame__media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); border-radius: inherit; pointer-events: none; }
.portrait-frame__ring { inset: -13px 13px 13px -13px; }

.featured-projects { display: grid; gap: clamp(3rem, 7vw, 6.5rem); }
.project-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .65fr); align-items: center; gap: clamp(2rem, 6vw, 5.5rem); }
.project-feature--reverse { grid-template-columns: minmax(18rem, .65fr) minmax(0, 1.35fr); }
.project-feature--reverse .project-feature__media { order: 2; }
.project-feature__media { position: relative; display: block; overflow: hidden; aspect-ratio: 16/10; border-radius: 24px; background: var(--navy); box-shadow: var(--shadow-soft); }
.project-feature__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(7,26,47,.42)); pointer-events: none; }
.project-feature__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--img-pos, center); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.project-feature:hover .project-feature__media img { transform: scale(1.035); }
.project-feature__number { position: absolute; z-index: 1; right: 1.4rem; bottom: 1rem; color: white; font-family: 'Source Serif 4', serif; font-size: 2rem; }
.project-feature__eyebrow { display: flex; align-items: center; gap: .7rem; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-feature__eyebrow span { width: 2rem; height: 1px; background: var(--gold); }
.project-feature__title { margin: 1.1rem 0 1rem; color: var(--navy); font: 600 clamp(1.75rem, 3.2vw, 3rem)/1.08 'Source Serif 4', serif; letter-spacing: -.025em; }
.dark .project-feature__title { color: white; }
.project-feature__summary { color: var(--muted); line-height: 1.75; }
.project-feature__cta { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem; color: var(--navy); font-size: .875rem; font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: .25rem; }
.dark .project-feature__cta { color: white; }

@media (max-width: 900px) {
  .hero-intro::before { display: none; }
  .project-feature, .project-feature--reverse { grid-template-columns: 1fr; gap: 1.75rem; }
  .project-feature--reverse .project-feature__media { order: 0; }
}
@media (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: 1fr !important; }
  .hero-social-link { justify-content: center; }
  .project-feature__media { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .skills-card,
  .skills-card__icon,
  .skills-tag {
    transition: none !important;
  }
  .skills-card:hover,
  .skills-card:hover .skills-card__icon,
  .skills-tag:hover {
    transform: none;
  }
}

.back-to-top {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: white;
  color: var(--navy);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.dark .back-to-top { background: var(--navy-secondary); color: var(--gold); border-color: rgba(255,255,255,0.1); }
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--navy); color: var(--gold); }

/* =========================================================
   GALLERY MASONRY
   ========================================================= */
.gallery-masonry {
  columns: 1;
  column-gap: 1rem;
}
@media (min-width: 640px) {
  .gallery-masonry { columns: 2; column-gap: 1.1rem; }
}
@media (min-width: 1024px) {
  .gallery-masonry { columns: 3; column-gap: 1.25rem; }
}
@media (min-width: 1440px) {
  .gallery-masonry { columns: 4; }
}
.gallery-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.04);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.dark .gallery-card {
  background: var(--navy-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(200, 160, 59, 0.3);
  outline: none;
}
.gallery-card__media {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}
.gallery-card__media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  transition: transform 0.45s ease;
}
.gallery-card:hover .gallery-card__media img,
.gallery-card:focus-visible .gallery-card__media img {
  transform: scale(1.03);
}
.gallery-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(7, 26, 51, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.gallery-card:hover .gallery-card__overlay,
.gallery-card:focus-visible .gallery-card__overlay {
  opacity: 1;
}
@media (hover: none) {
  .gallery-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(7, 26, 51, 0.55), transparent 50%);
  }
}
.gallery-card__overlay span {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.gallery-card__meta {
  padding: 0.9rem 1rem 1.05rem;
}
.gallery-card__meta h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0.2rem 0 0.25rem;
}
.dark .gallery-card__meta h3 { color: #fff; }
.gallery-card__meta p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}
.gallery-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}
@media (min-width: 640px) {
  .gallery-filters { flex-wrap: wrap; overflow: visible; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  background: rgba(7, 26, 51, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) max(0.75rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
}
.lightbox.hidden { display: none !important; }
.lightbox__shell {
  position: relative;
  width: min(1100px, 100%);
  max-width: calc(100vw - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  max-height: calc(100vh - 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lightbox__figure {
  margin: 0;
  text-align: center;
  max-width: 100%;
}
.lightbox__figure img {
  max-height: min(72dvh, 78vh, 900px);
  max-width: min(92vw, 100%);
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.lightbox__caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36rem;
}
.lightbox__caption h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
}
.lightbox__caption p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.5;
}
.lightbox__counter {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
}
.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible {
  background: rgba(200, 160, 59, 0.9);
  color: var(--navy);
  border-color: transparent;
  outline: none;
}
.lightbox__close { top: 0; right: 0; }
.lightbox__prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .lightbox__prev { left: 0.5rem; bottom: 1rem; top: auto; transform: none; }
  .lightbox__next { right: 0.5rem; bottom: 1rem; top: auto; transform: none; }
  .lightbox__close { top: 0.35rem; right: 0.35rem; }
  .lightbox__figure img { max-height: min(62dvh, 68vh); }
  .lightbox__caption { padding-inline: 0.5rem; }
}
body.lightbox-open { overflow: hidden; }

.masonry { columns: 1; column-gap: 1.25rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1.25rem; }

.prose-cs h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; letter-spacing: -0.02em; }
.prose-cs h3 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin: 1.5rem 0 0.5rem; }
.prose-cs p { margin-bottom: 1.25rem; line-height: 1.75; color: var(--muted); }
.dark .prose-cs p { color: rgba(255,255,255,0.65); }
.prose-cs ul { margin: 0 0 1.25rem 1.25rem; list-style: disc; }
.prose-cs li { margin-bottom: 0.4rem; line-height: 1.65; color: var(--muted); }
.dark .prose-cs li { color: rgba(255,255,255,0.6); }

/* =========================================================
   PROJECT DETAIL — HERO, GALLERY, IMPACT
   ========================================================= */
.project-hero {
  position: relative;
  width: 100%;
  min-height: 42vh;
  height: clamp(18rem, 52vh, 43.75rem);
  max-height: 700px;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
@media (max-width: 767px) {
  .project-hero {
    height: auto;
    min-height: 40vh;
    max-height: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .project-hero__media {
    position: absolute;
    inset: 0;
    min-height: 100%;
  }
  .project-hero__content {
    position: relative;
    padding: 5.5rem 1rem 1.5rem;
  }
  .project-hero__title {
    max-width: none;
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
  }
  .project-hero__summary {
    font-size: 0.95rem;
  }
}
@media (min-width: 1024px) {
  .project-hero {
    min-height: 55vh;
    height: clamp(26rem, 65vh, 43.75rem);
  }
}
.project-hero__media {
  position: absolute;
  inset: 0;
}
.project-hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--img-pos, center top);
  display: block;
}
.project-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 51, 0.5) 0%, rgba(7, 26, 51, 0.28) 28%, rgba(7, 26, 51, 0.2) 48%),
    linear-gradient(0deg, rgba(7, 26, 51, 0.92) 0%, rgba(7, 26, 51, 0.62) 38%, rgba(7, 26, 51, 0.28) 72%, rgba(7, 26, 51, 0.18) 100%);
  pointer-events: none;
}
.project-hero__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
}
@media (min-width: 768px) {
  .project-hero__content {
    padding: 2.5rem 1.5rem 3.25rem;
  }
}
.project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.project-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 160, 59, 0.7);
}
.project-hero__title {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.project-hero__summary {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(0.95rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.project-content {
  width: 100%;
}
.project-content--prose {
  max-width: 48rem;
}
.project-overview-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--canvas);
}
.dark .project-overview-section {
  background: var(--navy);
}
.project-case h3:first-child {
  margin-top: 0;
}
.project-gold-rule {
  width: 3.5rem;
  height: 2px;
  margin-top: 1rem;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(200, 160, 59, 0.2), var(--gold), rgba(200, 160, 59, 0.2));
}
.project-section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.project-section-head--light .section-title {
  color: #fff;
}

.project-gallery-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: #fff;
}
.dark .project-gallery-section {
  background: rgba(28, 53, 87, 0.22);
}
.project-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
@media (min-width: 1024px) {
  .project-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.project-gallery__item {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(200, 160, 59, 0.16);
  background: var(--navy-secondary);
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-gallery__item:nth-child(3n+1) { aspect-ratio: 4 / 5; }
.project-gallery__item:nth-child(3n+2) { aspect-ratio: 16 / 11; }
.project-gallery__item:nth-child(3n) { aspect-ratio: 5 / 4; }
@media (max-width: 639px) {
  .project-gallery__item { aspect-ratio: 16 / 11; }
}
.project-gallery__item:hover,
.project-gallery__item:focus-within {
  transform: translateY(-4px);
  border-color: rgba(200, 160, 59, 0.42);
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.14);
}
.project-gallery__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}
.project-gallery__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.project-gallery__btn img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--img-pos, center);
  display: block;
  transition: transform 0.45s ease;
}
.project-gallery__item:hover .project-gallery__btn img,
.project-gallery__item:focus-within .project-gallery__btn img {
  transform: scale(1.03);
}

.project-impact-section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}
.project-impact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) {
  .project-impact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}
.project-impact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 160, 59, 0.18);
  font-size: 0.98rem;
  line-height: 1.55;
}
.project-impact-item__mark {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(200, 160, 59, 0.45);
}
.project-impact-statement {
  margin: 1.75rem 0 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  border-left: 2px solid rgba(200, 160, 59, 0.55);
  padding-left: 1.15rem;
}

.project-related-section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  background: var(--canvas);
}
.dark .project-related-section {
  background: var(--navy);
}
.project-related {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(200, 160, 59, 0.16);
  box-shadow: 0 10px 26px rgba(11, 31, 58, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
@media (min-width: 640px) {
  .project-related {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  }
}
.dark .project-related {
  background: rgba(28, 53, 87, 0.35);
  border-color: rgba(200, 160, 59, 0.2);
}
.project-related:hover,
.project-related:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(200, 160, 59, 0.4);
  box-shadow: 0 18px 38px rgba(11, 31, 58, 0.12);
  outline: none;
}
.project-related__media {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--navy-secondary);
}
@media (min-width: 640px) {
  .project-related__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}
.project-related__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: var(--img-pos, center);
  display: block;
  transition: transform 0.45s ease;
}
.project-related:hover .project-related__media img {
  transform: scale(1.03);
}
.project-related__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.35rem 1.4rem;
}
.project-related__title {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}
.dark .project-related__title { color: #fff; }
.project-related:hover .project-related__title {
  color: var(--gold);
}
.project-related__summary {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dark .project-related__summary { color: rgba(255, 255, 255, 0.62); }

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card__media img,
  .project-gallery__item,
  .project-gallery__btn img,
  .project-related,
  .project-related__media img {
    transition: none !important;
  }
  .project-card:hover,
  .project-gallery__item:hover,
  .project-related:hover {
    transform: none;
  }
  .project-card:hover .project-card__media img,
  .project-gallery__item:hover .project-gallery__btn img,
  .project-related:hover .project-related__media img {
    transform: none;
  }
}

/* =========================================================
   CONNECT SECTION
   ========================================================= */
.connect-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.connect-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.connect-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}
.connect-bg__glow--left {
  width: 28rem;
  height: 28rem;
  left: -8rem;
  top: 10%;
  background: radial-gradient(circle, rgba(200, 160, 59, 0.18), transparent 70%);
}
.connect-bg__glow--right {
  width: 32rem;
  height: 32rem;
  right: -10rem;
  bottom: 5%;
  background: radial-gradient(circle, rgba(28, 53, 87, 0.9), transparent 70%);
}
.connect-bg__dots {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(200, 160, 59, 0.55) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 45%, #000 20%, transparent 75%);
}
.connect-inner {
  position: relative;
  z-index: 1;
}
.connect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .connect-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: stretch;
  }
}

.connect-heading {
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}
.connect-lead {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.7;
  margin: 0;
}
.connect-divider {
  width: 4.5rem;
  height: 2px;
  margin: 1.5rem 0 1.75rem;
  background: linear-gradient(90deg, var(--gold), rgba(200, 160, 59, 0.15));
  border-radius: 99px;
}

.connect-cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .connect-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.connect-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.connect-card--whatsapp:hover { border-color: rgba(37, 211, 102, 0.45); }
.connect-card--call:hover { border-color: rgba(200, 160, 59, 0.5); }
.connect-card--email:hover { border-color: rgba(96, 165, 250, 0.5); }

.connect-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.connect-card__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.connect-card--whatsapp .connect-card__icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}
.connect-card--call .connect-card__icon {
  background: rgba(200, 160, 59, 0.15);
  color: var(--gold);
}
.connect-card--email .connect-card__icon {
  background: rgba(96, 165, 250, 0.15);
  color: #60A5FA;
}
.connect-card__title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}
.connect-card__sub {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.connect-card__btn {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.connect-card__email {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.connect-card__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.connect-card__btn:hover .connect-card__arrow,
.connect-card__btn:focus-visible .connect-card__arrow {
  transform: translateX(3px);
}
.connect-card--whatsapp .connect-card__btn {
  background: #25D366;
  color: #062814;
}
.connect-card--whatsapp .connect-card__btn:hover {
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.connect-card--call .connect-card__btn {
  background: var(--gold);
  color: var(--navy);
}
.connect-card--call .connect-card__btn:hover {
  box-shadow: 0 10px 24px rgba(200, 160, 59, 0.35);
}
.connect-card--email .connect-card__btn {
  background: #3B82F6;
  color: #fff;
}
.connect-card--email .connect-card__btn:hover {
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
}
.connect-card__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.connect-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.connect-secondary__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.connect-secondary__btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.connect-secondary__btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: transparent;
}
.connect-secondary__btn--gold:hover {
  box-shadow: 0 10px 24px rgba(200, 160, 59, 0.3);
}

.connect-location {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(200, 160, 59, 0.28);
  background: rgba(200, 160, 59, 0.06);
}
.connect-location__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 160, 59, 0.14);
  color: var(--gold);
  flex-shrink: 0;
}
.connect-location__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.connect-location__title {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
}
.connect-location__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

.connect-quote {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.connect-quote__mark {
  display: block;
  color: var(--gold);
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.connect-quote p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}
.connect-quote span {
  color: var(--gold);
  font-weight: 600;
}
.connect-quote__line2 {
  margin-top: 0.35rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
  font-size: 0.9rem !important;
}

.connect-portrait {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) {
  .connect-portrait {
    justify-content: flex-end;
  }
}
.connect-portrait__stage {
  position: relative;
  width: min(90%, 360px);
}
@media (min-width: 1024px) {
  .connect-portrait__stage {
    width: min(100%, 460px);
  }
}
.connect-portrait__glow {
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 160, 59, 0.28), transparent 68%);
  filter: blur(28px);
  z-index: 0;
}
.connect-portrait__map {
  position: absolute;
  inset: -6% -8%;
  z-index: 0;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1.1px, transparent 1.1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  border-radius: 40%;
}
.connect-portrait__ring {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(200, 160, 59, 0.35);
  border-radius: 36px;
  z-index: 1;
  pointer-events: none;
}
.connect-portrait__frame {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(200, 160, 59, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  background: var(--navy-secondary);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.connect-portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
.connect-portrait__frame:hover {
  transform: scale(1.015);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
}

@media (max-width: 1023px) {
  .connect-grid {
    gap: 2rem;
  }
  .connect-quote {
    text-align: left;
  }
  .connect-content {
    order: 1;
  }
  .connect-portrait {
    order: 2;
    max-width: 22rem;
    margin-inline: auto;
  }
  .connect-card {
    min-height: 4.5rem;
    padding: 1rem 1.05rem 1.1rem;
  }
  .connect-secondary {
    flex-wrap: wrap;
  }
  .connect-secondary__btn {
    flex: 1 1 10rem;
    justify-content: center;
    min-height: 48px;
  }
}

@media (max-width: 639px) {
  .connect-cards {
    grid-template-columns: 1fr;
  }
  .connect-card__btn {
    font-size: 0.78rem;
    min-height: 48px;
  }
  .connect-heading {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-card,
  .connect-card__btn,
  .connect-card__arrow,
  .connect-portrait__frame,
  .connect-secondary__btn {
    transition: none !important;
  }
  .connect-card:hover,
  .connect-portrait__frame:hover {
    transform: none;
  }
}

/* Expertise editorial reversal */
.skills-section {
  color: var(--text-secondary);
  background:
    linear-gradient(rgba(7,26,47,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,26,47,.03) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(201,164,92,.12), transparent 23%),
    var(--surface-warm);
  background-size: 48px 48px, 48px 48px, auto, auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.skills-bg { display: none; }
.skills-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  counter-reset: capability;
}
.skills-header { max-width: 38rem; margin: 0; text-align: left !important; }
.skills-section .skills-header .section-title { color: var(--navy) !important; }
.skills-lead { margin: 0; max-width: 32rem; color: var(--muted); }
.skills-divider { margin: 1.75rem 0 0; background: var(--gold); }
.skills-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
.skills-card,
.skills-card--featured {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(9rem, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 1rem;
  min-height: 0;
  padding: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  counter-increment: capability;
}
.skills-card::before {
  content: counter(capability, decimal-leading-zero);
  grid-column: 1;
  color: var(--gold);
  font: 600 .72rem/1.2 'Plus Jakarta Sans', sans-serif;
  letter-spacing: .12em;
  padding-top: .35rem;
}
.skills-card:hover,
.skills-card--featured:hover {
  transform: none;
  border-color: var(--gold-400);
  background: linear-gradient(90deg, rgba(201,164,92,.07), transparent 72%);
  box-shadow: none;
}
.skills-card__icon {
  position: absolute;
  right: 0;
  top: 1.35rem;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  border: 1px solid rgba(201,164,92,.3);
  border-radius: 50%;
  color: var(--gold);
  background: white;
  box-shadow: none;
}
.skills-card__icon svg { width: 1rem; height: 1rem; }
.skills-card:hover .skills-card__icon { transform: none; color: white; background: var(--navy); box-shadow: none; }
.skills-card__title {
  grid-column: 2;
  margin: 0;
  padding-right: 2.5rem;
  color: var(--navy);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -.015em;
}
.skills-card__rule { display: none; }
.skills-card__tags {
  grid-column: 3;
  align-self: center;
  margin: 0;
  padding-right: 3rem;
  gap: .4rem .75rem;
}
.skills-tag {
  position: relative;
  padding: 0 0 0 .75rem;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .82rem;
}
.skills-tag::before { content: ''; position: absolute; left: 0; top: .55em; width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }
.skills-tag:hover { transform: none; color: var(--navy); background: transparent; }
.skills-closing {
  margin: 0;
  max-width: 30rem;
  text-align: left;
  color: var(--muted);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}
.skills-closing span { color: var(--navy); }

@media (min-width: 1024px) {
  .skills-inner { grid-template-columns: minmax(17rem, .68fr) minmax(0, 1.32fr); column-gap: clamp(3rem, 7vw, 6rem); align-items: start; }
  .skills-header { grid-column: 1; position: sticky; top: 7rem; }
  .skills-grid { grid-column: 2; grid-row: 1 / span 2; }
  .skills-closing { grid-column: 1; }
}
@media (max-width: 700px) {
  .skills-card, .skills-card--featured { grid-template-columns: 2.2rem 1fr; gap: .75rem; padding: 1.35rem 0; }
  .skills-card__title { grid-column: 2; padding-right: 2.75rem; }
  .skills-card__tags { grid-column: 2; padding-right: 0; margin-top: .55rem; }
  .skills-card__icon { top: 1.15rem; }
}

/* Expertise horizontal showcase */
.skills-scroll-hint { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem; color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.skills-scroll-hint svg { width: 1rem; height: 1rem; color: var(--gold); }
.skills-carousel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2rem; }
.skills-carousel-meta .skills-scroll-hint { margin: 0; }
.skills-controls { display: inline-flex; align-items: center; gap: .75rem; }
.skills-control { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid rgba(7,26,47,.16); border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.78); transition: color .2s ease, background .2s ease, transform .2s ease; }
.skills-control:hover, .skills-control:focus-visible { color: white; background: var(--navy); transform: translateY(-2px); }
.skills-control svg { width: 1rem; height: 1rem; }
.skills-status { min-width: 3.8rem; color: var(--navy); font: 700 .76rem/1 var(--font-sans, sans-serif); letter-spacing: .12em; text-align: center; }
.skills-inner { grid-template-columns: minmax(17rem,.62fr) minmax(0,1.38fr); }
.skills-grid {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
  border: 0;
  padding: .25rem 0 1.5rem;
}
.skills-card,
.skills-card--featured {
  flex: 0 0 min(75vw, 24rem);
  min-height: 27rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  background: white;
  overflow: hidden;
}
.skills-card:nth-child(even) { color: white; background: var(--navy); border-color: var(--navy); }
.skills-card::before {
  position: static;
  display: block;
  margin-bottom: auto;
  color: var(--gold);
  font: 600 clamp(3.5rem,7vw,6rem)/.9 'Source Serif 4',serif;
  letter-spacing: -.06em;
  opacity: .42;
}
.skills-card__icon { position: static; order: 2; margin: 0 0 1.1rem; }
.skills-card__title { order: 3; padding: 0; margin: 0 0 1.2rem; font-size: 1.75rem; }
.skills-card:nth-child(even) .skills-card__title { color: white; }
.skills-card__tags { order: 4; display: flex; width: 100%; min-width: 0; padding: 0; margin: 0; }
.skills-card__tags li { min-width: 0; max-width: 100%; }
.skills-card__tags .skills-tag { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.skills-card:nth-child(even) .skills-tag { color: rgba(255,255,255,.72); }
.skills-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(7,26,47,.1); }
.skills-card.is-active { box-shadow: 0 22px 55px rgba(7,26,47,.13); }
.skills-closing { margin-top: clamp(2rem, 4vw, 3.25rem); align-self: auto; }
@media (min-width:1024px) {
  .skills-inner { grid-template-columns: minmax(17rem,.62fr) minmax(0,1.38fr); }
  .skills-grid { grid-column: 2; grid-row: 1; }
}
@media (max-width:1023px) {
  .skills-inner { display: block; }
  .skills-header { margin-bottom: 2rem; }
  .skills-closing { margin-top: 1.25rem; }
}
@media (max-width:639px) {
  .skills-carousel-meta { justify-content: space-between; }
  .skills-scroll-hint { max-width: 9.5rem; line-height: 1.45; }
  .skills-card, .skills-card--featured { flex-basis: 84vw; min-height: 23rem; padding: 1.5rem; }
  .skills-card::before { font-size: 4rem; }
  .skills-card__title { font-size: 1.45rem; }
}

/* Contact editorial refresh */
.connect-section {
  padding: clamp(3.5rem, 5.5vw, 5rem) 0;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 88% 18%, rgba(201,164,92,.13), transparent 25%),
    var(--navy);
  background-size: 44px 44px, 44px 44px, auto, auto;
}
.connect-bg__dots { opacity: .08; }
.connect-bg__glow--left { opacity: .22; }
.connect-grid { align-items: center; }
@media (min-width: 1024px) {
  .connect-grid { grid-template-columns: minmax(0, 1.15fr) minmax(22rem, .85fr); gap: clamp(3.5rem, 7vw, 7rem); }
}
.connect-content { max-width: 46rem; }
.connect-heading {
  max-width: 44rem;
  font-size: clamp(2.35rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.connect-lead { max-width: 40rem; font-size: 1rem; color: rgba(255,255,255,.62); }
.connect-divider { width: 5.5rem; margin: 1.75rem 0 2rem; background: var(--gold); }
.connect-cards { gap: 0; border-top: 1px solid rgba(255,255,255,.13); }
@media (min-width: 1024px) { .connect-cards { grid-template-columns: 1fr; gap: 0; } }
.connect-card {
  display: grid;
  grid-template-columns: 2.75rem minmax(7rem, .65fr) minmax(10rem, 1fr);
  align-items: center;
  gap: 1rem;
  padding: .8rem 0;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
.connect-card:hover { transform: none; box-shadow: none; background: transparent; border-color: rgba(255,255,255,.25); }
.connect-card__icon,
.connect-card--whatsapp .connect-card__icon,
.connect-card--call .connect-card__icon,
.connect-card--email .connect-card__icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(201,164,92,.11);
  border: 1px solid rgba(201,164,92,.22);
}
.connect-card__sub { color: rgba(255,255,255,.42); }
.connect-card__btn,
.connect-card--whatsapp .connect-card__btn,
.connect-card--call .connect-card__btn,
.connect-card--email .connect-card__btn {
  justify-self: stretch;
  justify-content: space-between;
  margin: 0;
  padding: .8rem 1rem;
  min-height: 46px;
  border-radius: 12px;
  color: white;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: none;
}
.connect-card__btn:hover,
.connect-card--whatsapp .connect-card__btn:hover,
.connect-card--call .connect-card__btn:hover,
.connect-card--email .connect-card__btn:hover {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: none;
}
.connect-location {
  padding: 1rem 0;
  margin-top: 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.connect-location__icon { border-radius: 50%; }
.connect-secondary { margin-top: .85rem; }
.connect-secondary__btn { border-radius: 999px; padding-inline: 1.15rem; }
.connect-quote { display: none; }
.connect-portrait__stage { width: min(100%, 360px); }
.connect-portrait__ring { inset: -14px 14px 14px -14px; border-radius: 30px; }
.connect-portrait__frame {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,.36);
}
.connect-portrait__frame img { object-position: center 18%; }
.connect-portrait::after {
  content: 'Leadership · Strategy · Partnerships';
  position: absolute;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 4;
  padding: .75rem 1rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  color: white;
  background: rgba(7,26,47,.82);
  backdrop-filter: blur(12px);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.connect-portrait { position: relative; }

@media (max-width: 1023px) {
  .connect-content { max-width: none; }
  .connect-portrait { max-width: 25rem; }
}
@media (max-width: 639px) {
  .connect-section { padding: 4rem 0; }
  .connect-heading { font-size: clamp(2.35rem, 11vw, 3.2rem); }
  .connect-card { grid-template-columns: 2.75rem 1fr; gap: .85rem; padding: 1.1rem 0; }
  .connect-card__btn { grid-column: 1 / -1; justify-self: stretch; }
  .connect-secondary { display: grid; grid-template-columns: 1fr 1fr; }
  .connect-portrait::after { right: .65rem; bottom: .75rem; font-size: .62rem; }
}

/* Legacy compact CTAs (speaking page etc.) */
.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}
.contact-cta svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.contact-cta__title { font-size: 0.875rem; line-height: 1.2; }
.contact-cta__sub {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.75;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-cta--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}
.contact-cta--whatsapp:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); }

.contact-cta--phone {
  background: var(--navy);
  color: #fff;
  border-color: rgba(200, 160, 59, 0.25);
}
.dark .contact-cta--phone { background: var(--navy-secondary); }
.contact-cta--phone:hover { border-color: var(--gold); }

.contact-cta--email {
  background: var(--gold);
  color: var(--navy);
  border-color: rgba(11, 31, 58, 0.1);
}
.contact-cta--email:hover { box-shadow: 0 10px 28px rgba(200, 160, 59, 0.35); }

.footer-nav__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.footer-nav__list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}
.footer-nav__list a {
  color: inherit;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.footer-nav__list a:hover { color: var(--gold); }

.site-header {
  z-index: var(--z-header);
}
.site-header__nav { padding-top: 0.85rem; padding-bottom: 0.85rem; }
.site-header--scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
}
.dark .site-header--scrolled {
  background: rgba(11, 31, 58, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.site-header--scrolled .site-header__nav { padding-top: 0.55rem; padding-bottom: 0.55rem; }

/* =========================================================
   MOBILE NAVIGATION
   Drawer/overlay are siblings of the header (not nested) so
   backdrop-filter on .site-header--scrolled cannot clip them.
   ========================================================= */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav-backdrop);
  background: rgba(7, 26, 51, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: var(--mobile-header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-nav-drawer);
  width: 100%;
  height: calc(100vh - var(--mobile-header-height));
  height: calc(100dvh - var(--mobile-header-height));
  max-height: calc(100vh - var(--mobile-header-height));
  max-height: calc(100dvh - var(--mobile-header-height));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(200, 160, 59, 0.18);
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.18);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dark .nav-drawer {
  background: var(--navy);
  border-top-color: rgba(200, 160, 59, 0.22);
}
.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.nav-drawer__panel {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer__nav {
  padding: 0.75rem 1.25rem 0.5rem;
}
.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-drawer__list .nav-mobile-link {
  display: block;
  width: 100%;
  padding: 0.95rem 0.85rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 0;
  transition: color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}
.dark .nav-drawer__list .nav-mobile-link {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.nav-drawer__list .nav-mobile-link:hover,
.nav-drawer__list .nav-mobile-link:focus-visible {
  color: var(--gold);
  background: rgba(200, 160, 59, 0.08);
  outline: none;
}
.nav-drawer__list .nav-mobile-link.is-active {
  color: var(--gold);
  padding-left: 1rem;
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-drawer__actions {
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(11, 31, 58, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4), #fff);
}
.dark .nav-drawer__actions {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(7, 26, 51, 0.2), var(--navy));
}
.nav-drawer__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(11, 31, 58, 0.1);
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.dark .nav-drawer__theme {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.nav-drawer__theme:hover,
.nav-drawer__theme:focus-visible {
  border-color: rgba(200, 160, 59, 0.45);
  color: var(--gold);
  outline: none;
}
.nav-drawer__cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  text-decoration: none;
}
.nav-drawer__cv:hover,
.nav-drawer__cv:focus-visible {
  filter: brightness(1.05);
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.nav-drawer__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
}
.dark .nav-drawer__contact {
  background: #fff;
  color: var(--navy);
}
.nav-drawer__contact:hover,
.nav-drawer__contact:focus-visible {
  background: var(--navy-secondary);
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.dark .nav-drawer__contact:hover,
.dark .nav-drawer__contact:focus-visible {
  background: var(--gold);
  color: var(--navy);
}

body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

@media (min-width: 1024px) {
  .nav-overlay,
  .nav-drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-overlay,
  .nav-drawer {
    transition: none !important;
  }
}

/* Dynamic leadership journey */
.leadership-timeline-section { overflow: hidden; }
.journey-timeline { display: grid; gap: 2.25rem; }
.journey-timeline .timeline-line,
.journey-timeline .timeline-progress { left: 50%; transform: translateX(-50%); }
.journey-entry { position: relative; width: calc(50% - 2.75rem); }
.journey-entry:nth-of-type(odd) { justify-self: start; }
.journey-entry:nth-of-type(even) { justify-self: end; }
.journey-entry__marker {
  position: absolute;
  top: 1.8rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 0 0 8px var(--canvas);
  z-index: 2;
}
.journey-entry:nth-of-type(odd) .journey-entry__marker { right: -4.25rem; }
.journey-entry:nth-of-type(even) .journey-entry__marker { left: -4.25rem; }
.journey-entry__marker span { font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.journey-panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 2px solid var(--gold);
  background: white;
  box-shadow: 0 20px 55px rgba(7,26,47,.07);
}
.journey-entry:nth-of-type(even) .journey-panel { background: var(--navy); color: white; }
.journey-entry:nth-of-type(even) .journey-panel h3,
.journey-entry:nth-of-type(even) .journey-panel strong { color: white !important; }
.journey-entry:nth-of-type(even) .journey-panel p,
.journey-entry:nth-of-type(even) .journey-panel li,
.journey-entry:nth-of-type(even) .journey-panel h4 { color: rgba(255,255,255,.68) !important; }
.organization-index { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.organization-index__item { min-height: 9rem; padding: 1.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.organization-index__item span { color: var(--gold); font-size: .68rem; letter-spacing: .12em; }
.organization-index__item p { margin-top: 2rem; color: var(--navy); font: 600 1rem/1.4 'Source Serif 4',serif; }
.global-contributions { border-top: 1px solid var(--border); }
.global-contribution { display: grid; grid-template-columns: 4rem 1fr 2rem; align-items: center; gap: 1.25rem; padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.global-contribution__number { color: var(--gold); font-size: .7rem; letter-spacing: .12em; }
.global-contribution h3 { color: var(--navy); font: 600 clamp(1.25rem,2.2vw,1.8rem)/1.2 'Source Serif 4',serif; }
.global-contribution p { color: var(--muted); }
.global-contribution svg { color: var(--gold); }
@media (max-width: 767px) {
  .journey-timeline { padding-left: 1.5rem; gap: 1.5rem; }
  .journey-timeline .timeline-line, .journey-timeline .timeline-progress { left: .45rem; transform: none; }
  .journey-entry, .journey-entry:nth-of-type(odd), .journey-entry:nth-of-type(even) { width: 100%; justify-self: stretch; }
  .journey-entry:nth-of-type(odd) .journey-entry__marker, .journey-entry:nth-of-type(even) .journey-entry__marker { left: -2.55rem; right: auto; top: 1.35rem; width: 2.3rem; height: 2.3rem; box-shadow: 0 0 0 5px var(--canvas); }
  .journey-panel { padding: 1.35rem; }
  .journey-panel__details { grid-template-columns: 1fr; gap: 1.25rem; }
  .organization-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .organization-index__item { min-height: 7.5rem; padding: 1.1rem; }
  .organization-index__item p { margin-top: 1.25rem; font-size: .9rem; }
  .global-contribution { grid-template-columns: 2.5rem 1fr 1.5rem; gap: .75rem; }
}

.image-rotate-180 { transform: rotate(180deg) !important; }
.action-gallery__item:hover .image-rotate-180,
.gallery-card:hover .image-rotate-180 { transform: rotate(180deg) scale(1.03) !important; }
.lightbox__figure .image-rotate-180 { object-fit: contain; }
.speaking-topics-section .grid { border-top: 1px solid var(--border); }
.speaking-topic { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; min-height: 6rem; padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.speaking-topic span { color: var(--gold); font-size: .7rem; letter-spacing: .12em; }
.speaking-topic p { color: var(--navy); font: 600 1.05rem/1.45 'Source Serif 4',serif; }
.speaking-engagement { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border); }
.speaking-utility__panel { border-left: 3px solid var(--gold); background: white; }
.speaking-utility__panel--dark { color: white; background: var(--navy-secondary); }
.speaking-utility__panel--dark h2 { color: white !important; }
.speaking-gallery-item { position: relative; overflow: hidden; min-height: 25rem; }
.speaking-gallery-item img { height: 100%; min-height: 25rem; }
.speaking-gallery-item figcaption { position: absolute; inset: auto 0 0; padding: 3rem 1.25rem 1.25rem; color: white; background: linear-gradient(transparent,rgba(7,26,47,.9)); }
.speaking-gallery-item figcaption p { font-weight: 700; }
.speaking-gallery-item figcaption small { color: rgba(255,255,255,.7); }
@media(max-width:639px){
  .speaking-engagement { align-items: flex-start; flex-direction: column; gap: .75rem; }
  .speaking-gallery-item { min-height: 22rem; }
}

/* Varied project and media storytelling */
#projects-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3rem 1.5rem; }
#projects-grid .project-card { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
#projects-grid .project-card:hover { transform: none; box-shadow: none; }
#projects-grid .project-card__media { border-radius: 18px; }
#projects-grid .project-card__body { padding: 1.25rem 0 0; }
#projects-grid .project-item:first-child { grid-column: 1 / -1; }
#projects-grid .project-item:first-child .project-card { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
#projects-grid .project-item:first-child .project-card__media { aspect-ratio: 16/9; }
#projects-grid .project-item:first-child .project-card__title { font: 600 clamp(1.8rem,3vw,2.8rem)/1.1 'Source Serif 4',serif; }
#media-grid { display: grid; gap: 0; border-top: 1px solid var(--border); }
#media-grid .media-item { display: grid; grid-template-columns: minmax(12rem,.7fr) minmax(0,1.3fr); border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
#media-grid .media-editorial__img { aspect-ratio: 4/3; }
#media-grid .media-item:nth-child(even) .media-editorial__img { order: 2; }
@media(max-width:767px){
  #projects-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #projects-grid .project-item:first-child { grid-column: auto; }
  #projects-grid .project-item:first-child .project-card { display: flex; }
  #media-grid .media-item { grid-template-columns: 1fr; padding-block: 1.5rem; }
  #media-grid .media-item:nth-child(even) .media-editorial__img { order: 0; }
}

/* Floating navigation and responsive audit refinements */
.site-header {
  top: .85rem !important;
  left: 0;
  right: 0;
  padding-inline: clamp(.75rem, 2vw, 1.5rem);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}
.site-header__nav {
  width: min(100%, 1240px);
  min-height: 64px;
  padding: .55rem .75rem !important;
  border: 1px solid rgba(7,26,47,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 14px 42px rgba(7,26,47,.09);
  backdrop-filter: blur(18px) saturate(1.35);
  pointer-events: auto;
}
.dark .site-header__nav {
  border-color: rgba(255,255,255,.11);
  background: rgba(7,26,47,.86);
}
.site-header--scrolled .site-header__nav { min-height: 58px; box-shadow: 0 16px 46px rgba(7,26,47,.14); }
.header-contact-btn:hover { transform: translateY(-1px); background: var(--navy-secondary); }
.nav-link { border-radius: 8px; }
.nav-link:hover { background: rgba(201,164,92,.08); }

@media (max-width: 767px) {
  :root { --page-pad-x: 1.25rem; --section-pad-y: clamp(3.75rem, 14vw, 5rem); }
  .site-header { top: .55rem !important; padding-inline: .65rem; }
  .site-header__nav { min-height: 58px; border-radius: 16px; padding: .4rem .5rem !important; }
  .site-header--scrolled .site-header__nav { min-height: 54px; }
  .brand-logo--nav { height: 38px; }
  .brand-name { font-size: .8rem; }
  main { overflow: clip; }
  .section-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .card-executive { border-radius: 16px; }
  .gallery-filter-btn, .filter-btn, .project-filter { min-height: 44px; }
  .footer-nav__list { gap: .6rem 1.15rem; }
}

@media (max-width: 1023px) and (orientation: landscape) {
  .nav-drawer__nav {
    padding-top: 0.35rem;
  }
  .nav-drawer__list .nav-mobile-link {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    font-size: 1rem;
  }
  .nav-drawer__actions {
    padding-top: 0.85rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
}

.filter-btn,
.gallery-filter-btn,
.media-filter-btn {
  background: white;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.dark .filter-btn,
.dark .gallery-filter-btn,
.dark .media-filter-btn {
  background: var(--navy-secondary);
  border-color: rgba(255, 255, 255, 0.1);
}
.filter-btn.is-active,
.gallery-filter-btn.is-active,
.media-filter-btn.is-active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.lightbox.hidden { display: none !important; }

img { max-width: 100%; height: auto; }
.project-hero__img,
.project-card__media img,
.project-card-media img,
.project-gallery__btn img,
.project-related__media img,
.portrait-frame__media img,
.action-gallery__item a img,
.media-editorial__img img {
  max-width: none;
  height: 100%;
}

/* =========================================================
   GLOBAL MOBILE / SMALL-SCREEN POLISH
   ========================================================= */
#testimonial-track > * {
  flex: 0 0 100%;
  min-width: 100%;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .max-w-8xl.px-6,
  .max-w-8xl.mx-auto.px-6,
  .project-content.max-w-8xl.px-6,
  .skills-inner.max-w-8xl.px-6 {
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  .section-pad {
    padding-block: clamp(2.75rem, 8vw, 4.5rem);
  }

  .card-executive {
    border-radius: 16px;
  }

  .project-card__body {
    padding: 1.15rem 1.15rem 1.25rem;
  }

  .project-card__title {
    font-size: clamp(1.05rem, 4vw, 1.25rem);
  }

  .stat-card {
    padding: 0.95rem 0.7rem !important;
  }
  .stat-card .text-3xl {
    font-size: clamp(1.35rem, 6vw, 1.75rem) !important;
  }
  .stat-card .text-xs {
    font-size: 0.68rem !important;
    line-height: 1.35 !important;
  }

  #timeline {
    max-width: none;
  }
  #timeline .pl-10 {
    padding-left: 2rem;
  }
  .timeline-thumb {
    width: 3.5rem;
    height: 3.5rem;
  }

  .skills-card {
    padding: 1.35rem 1.25rem;
  }
  .skills-tag {
    font-size: 0.8125rem;
    padding: 0.45rem 0.75rem;
  }

  .media-editorial__img {
    aspect-ratio: 16 / 10;
  }

  .site-footer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .footer-nav__list {
    gap: 0.35rem 1rem;
  }
  .footer-nav__list a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
  }

  .filter-btn,
  .gallery-filter-btn,
  .media-filter-btn {
    min-height: 44px;
    white-space: nowrap;
  }

  .prose-cs h3 {
    margin-top: 1.35rem;
  }
  .prose-cs p,
  .prose-cs li {
    font-size: 0.98rem;
  }

  .project-related {
    grid-template-columns: 1fr;
  }
  .project-related__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --page-pad-x: 1rem;
    --mobile-header-height: 64px;
  }

  .hero-actions {
    grid-template-columns: 1fr !important;
  }
  .hero-btn--secondary {
    grid-column: 1 / -1;
  }

  .portrait-frame--mobile {
    width: min(90vw, 320px);
  }

  .connect-card {
    padding: 0.95rem 0.95rem 1rem;
  }

  .project-impact-list {
    grid-template-columns: 1fr;
  }

  .contact-cta {
    min-height: 72px;
    padding: 0.9rem 0.75rem;
  }
}

@media (max-width: 360px) {
  .brand-logo--nav {
    height: 36px;
  }
  .section-label {
    font-size: 0.7rem;
  }
  .skills-card__title {
    font-size: 1.05rem;
  }
}

@media (max-width: 1023px) and (orientation: landscape) {
  .project-hero {
    min-height: 56vh;
  }
  .project-hero__content {
    padding-top: 4.5rem;
    padding-bottom: 1.1rem;
  }
  #hero {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .project-card-media img,
  .project-card__media img,
  .action-gallery__item img,
  .media-editorial__img img,
  .project-gallery__btn img,
  .project-related__media img {
    transition: none !important;
  }
}
