/* Alejandro Chávez — contemporary refresh, 2026
   Loaded after app.css so the original visual language remains intact. */

:root {
  --ink: #0a0a0a;
  --ink-soft: #171717;
  --paper: #ffffff;
  --paper-soft: #f4f4f1;
  --line: rgba(10, 10, 10, 0.14);
  --line-dark: rgba(255, 255, 255, 0.18);
  --muted: #777;
  --nav-height: 74px;
  --page-gutter: clamp(20px, 3.2vw, 52px);
  --section-space: clamp(76px, 10vw, 150px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  background: var(--ink);
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* Navigation */
.navbar.navbar-fixed {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 1100;
  height: var(--nav-height);
  padding: 0;
  background: rgba(7, 7, 7, 0.72) !important;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  transition: transform .45s var(--ease), background-color .3s ease, border-color .3s ease;
}

.navbar.navbar-fixed.is-scrolled {
  background: rgba(7, 7, 7, 0.92) !important;
  border-bottom-color: var(--line-dark);
}

.navbar.navbar-fixed.is-hidden:not(.menu-active) {
  transform: translateY(-100%);
}

.navbar .container {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0 var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .navbar-brand {
  position: relative;
  z-index: 1102;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  color: #fff !important;
  line-height: 1;
}

.navbar .brand-name {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .19em;
}

.navbar .brand-mark {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .16em;
  opacity: .58;
}

.navbar .nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
}

.navbar .nav .nav-item {
  margin: 0;
}

.navbar .nav .nav-item .nav-link {
  padding: 8px 0;
  color: rgba(255, 255, 255, .74);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.navbar .nav .nav-item .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}

.navbar .nav .nav-item .nav-link:hover,
.navbar .nav .nav-item .nav-link.active {
  color: #fff;
}

.navbar .nav .nav-item .nav-link:hover::after,
.navbar .nav .nav-item .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar .nav .nav-social {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 2px;
}

.navbar .nav .nav-social .nav-icon {
  font-size: 15px;
  letter-spacing: 0;
}

.navbar .nav .nav-social .nav-icon::after {
  display: none;
}

.navbar .nav-toggle-btn {
  display: none;
  z-index: 1103;
  width: 42px;
  height: 42px;
  right: var(--page-gutter);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.navbar .nav-toggle-btn .lines,
.navbar .nav-toggle-btn .lines::before,
.navbar .nav-toggle-btn .lines::after {
  width: 22px;
  height: 1px;
  background: #fff !important;
}

.navbar .nav-toggle-btn .lines::before { top: 7px; }
.navbar .nav-toggle-btn .lines::after { top: -7px; }

/* Hero */
.site-hero {
  min-height: 100svh;
  background-color: var(--ink);
  color: #fff;
  isolation: isolate;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,.035), transparent 42%),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.32));
}

.site-hero .bg-black-00 {
  min-height: inherit;
}

.site-hero .hero-copy {
  width: min(92vw, 1100px);
}

.site-hero .hero-kicker {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.site-hero .display-4 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 6.9rem);
  font-weight: 100;
  line-height: .98;
  letter-spacing: -.035em;
}

.site-hero .display-4 small {
  display: inline-block;
  margin-left: .35em;
  color: rgba(255,255,255,.52);
  font-size: .19em;
  font-weight: 300;
  letter-spacing: .2em;
  vertical-align: top;
}

.site-hero h5 {
  margin: 25px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(.72rem, 1.1vw, .92rem);
  font-weight: 300;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.scroll-cue {
  display: inline-flex;
  width: 36px;
  height: 64px;
  align-items: flex-start;
  justify-content: center;
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,.65);
  transform-origin: top;
  animation: scrollCue 2.2s var(--ease) infinite;
}

@keyframes scrollCue {
  0% { transform: scaleY(.05); opacity: 0; }
  25% { opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; transform-origin: bottom; }
}

/* Reel and editorial feature panels */
.reel-section,
#featured {
  background: var(--ink);
}

.reel-section .parallax-portfolio-item,
#featured .parallax-portfolio-item {
  min-height: clamp(460px, 72svh, 820px);
  background-position: center;
}

.parallax-portfolio-item::before {
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.46));
}

.parallax-portfolio-item .parallax-portfolio-content {
  transition: background-color .5s var(--ease);
}

.parallax-portfolio-item:hover .parallax-portfolio-content {
  background: rgba(0,0,0,.18);
}

.parallax-portfolio-content h4,
.parallax-portfolio-content h5 {
  margin: 0;
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.65rem);
  font-weight: 300;
  letter-spacing: .2em;
}

/* Portfolio */
.portfolio-section {
  padding: var(--section-space) 0;
  background: var(--paper);
}

.portfolio-section > .container {
  width: 100%;
  max-width: 1500px;
  padding-inline: var(--page-gutter);
}

.portfolio-section .filter {
  position: sticky;
  top: var(--nav-height);
  z-index: 20;
  margin: 0 0 clamp(34px, 5vw, 68px);
  padding: 19px 0 17px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.portfolio-section .filter ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 48px);
}

.portfolio-section .filter ul li {
  position: relative;
  margin: 0;
  padding: 0 0 5px;
  background: transparent;
  border-radius: 0;
  color: #8b8b8b;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .23em;
}

.portfolio-section .filter ul li::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
}

.portfolio-section .filter ul li:hover,
.portfolio-section .filter ul li.active {
  background: transparent;
  color: var(--ink);
}

.portfolio-section .filter ul li.active::after {
  transform: scaleX(1);
}

.portfolio-wrapper.spacing-10 {
  margin: -4px;
}

.portfolio-wrapper.spacing-10 .portfolio-item {
  padding: 4px;
}

.portfolio-item .portfolio-box {
  background: var(--ink);
  overflow: hidden;
}

.portfolio-item.category-1 .portfolio-img,
.portfolio-item.category-2 .portfolio-img,
.portfolio-item.category-3 .portfolio-img {
  aspect-ratio: 16 / 9;
}

.portfolio-item .portfolio-box .portfolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: none;
  transition: transform .8s var(--ease), opacity .5s ease;
}

.portfolio-item .portfolio-box .portfolio-title {
  display: block;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.78) 100%);
  transition: opacity .45s var(--ease);
  text-align: left;
}

.portfolio-item .portfolio-box .portfolio-title > div {
  top: auto;
  bottom: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: clamp(18px, 2.4vw, 30px);
}

.portfolio-item .portfolio-box .portfolio-title > div,
.portfolio-item .portfolio-box .portfolio-title > div * {
  color: #fff;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: .11em;
}

.portfolio-item .portfolio-box:hover .portfolio-img img {
  transform: scale(1.025);
  filter: none;
}

.portfolio-item .portfolio-box:hover .portfolio-title {
  opacity: 1;
}

/* Section headings, contact and footer */
.section-heading-bar {
  margin: 0 0 clamp(34px, 5vw, 64px) !important;
  padding: 27px var(--page-gutter);
  background: var(--ink) !important;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.section-heading-bar h6,
#contact-heading h6 {
  margin: 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .28em;
}

.contact-section,
.resume-page #contact + .container {
  padding-top: clamp(30px, 5vw, 70px);
  padding-bottom: clamp(70px, 9vw, 130px);
}

.contact-section .row,
.resume-page #contact + .container .row {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section .row > div,
.resume-page #contact + .container .row > div {
  padding-block: clamp(34px, 5vw, 70px);
  border-right: 1px solid var(--line);
}

.contact-section .row > div:last-child,
.resume-page #contact + .container .row > div:last-child {
  border-right: 0;
}

.contact-section i,
.resume-page #contact + .container i {
  font-size: 25px;
}

.contact-section h6,
.resume-page #contact + .container h6 {
  margin-top: 22px !important;
  font-size: 12px;
  letter-spacing: .08em;
}

.site-footer .footer {
  padding: clamp(52px, 7vw, 92px) 0 30px;
  background: var(--ink) !important;
}

.footer-inner {
  max-width: none;
  padding-inline: var(--page-gutter);
  text-align: left;
}

.footer-name {
  margin: 0 0 clamp(42px, 7vw, 90px);
  color: #fff;
  font-size: clamp(1.4rem, 3.2vw, 3.5rem);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -.02em;
}

.footer-name span {
  margin-left: .7em;
  color: rgba(255,255,255,.42);
  font-size: .28em;
  letter-spacing: .2em;
  vertical-align: top;
}

.footer-links {
  display: flex;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-links a {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 23px;
}

.footer-meta p {
  margin: 0;
  color: rgba(255,255,255,.42);
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: .08em;
}

/* Resume */
.resume-hero {
  min-height: clamp(600px, 78svh, 850px);
}

.resume-hero .hero-copy > a {
  display: block;
}

.resume-hero .hero-copy > a:hover {
  color: #fff;
}

.resume-hero .heading-uppercase:first-child {
  margin-bottom: 26px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  letter-spacing: .32em;
}

.resume-actions {
  margin-top: 38px;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.5);
  color: rgba(255,255,255,.78) !important;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.resume-download span {
  font-size: 14px;
  transition: transform .35s var(--ease);
}

.resume-download:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}

.resume-download:hover span {
  transform: translate(3px, -3px);
}

.resume-table-wrap {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto clamp(86px, 10vw, 150px);
  padding-inline: var(--page-gutter);
  overflow: visible;
}

.resume-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: fixed;
  background: transparent;
}

.resume-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.resume-table thead th {
  padding: 0 16px 17px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: #8b8b8b;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .19em;
  text-align: left;
  text-transform: uppercase;
}

.resume-table tbody tr {
  background: transparent !important;
  transition: background-color .25s ease;
}

.resume-table tbody tr:hover {
  background: var(--paper-soft) !important;
}

.resume-table td {
  padding: 22px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #565656;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  vertical-align: top;
}

.resume-table td:first-child,
.resume-table td:first-child a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .025em;
}

.resume-table a {
  text-decoration: none;
}

.resume-table a:hover {
  color: var(--muted);
}

.filmography-table th:nth-child(1), .filmography-table td:nth-child(1) { width: 17%; }
.filmography-table th:nth-child(2), .filmography-table td:nth-child(2) { width: 20%; }
.filmography-table th:nth-child(3), .filmography-table td:nth-child(3) { width: 29%; }
.filmography-table th:nth-child(4), .filmography-table td:nth-child(4) { width: 12%; }
.filmography-table th:nth-child(5), .filmography-table td:nth-child(5) { width: 12%; }
.filmography-table th:nth-child(6), .filmography-table td:nth-child(6) { width: 10%; }

.recognition-table th:nth-child(1), .recognition-table td:nth-child(1) { width: 55%; }
.recognition-table th:nth-child(2), .recognition-table td:nth-child(2) { width: 15%; }
.recognition-table th:nth-child(3), .recognition-table td:nth-child(3) { width: 12%; }
.recognition-table th:nth-child(4), .recognition-table td:nth-child(4) { width: 18%; }

.resume-page #milestones {
  padding-bottom: var(--section-space);
}

.resume-page .timeline-wrapper {
  max-width: 1080px;
  margin-inline: auto;
}

.resume-page .timeline {
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
}

.resume-page .timeline-date h6 {
  color: #8a8a8a;
  font-size: 10px;
  letter-spacing: .2em;
}

.resume-page .timeline-content h6 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.resume-page .timeline-content img {
  width: 34px;
  height: 34px;
  margin-right: 15px;
  object-fit: contain;
  vertical-align: middle;
}

.resume-page .timeline-content p {
  margin: 7px 0 0;
  color: #777;
  font-size: 12px;
}

.resume-page .progress-box {
  margin-bottom: 38px;
}

.resume-page .progress-box h6 {
  margin-bottom: 13px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
}

.resume-page .progress {
  height: 2px;
  overflow: visible;
  background: #dfdfdc;
}

.resume-page .progress-bar {
  background: var(--ink);
}

.resume-page .progress-bar span {
  top: -28px;
  right: 0;
  color: #777;
  font-size: 10px;
}

/* Mobile navigation and layouts */
@media (max-width: 991.98px) {
  :root { --nav-height: 68px; }

  .navbar .container {
    padding-inline: 20px;
  }

  .navbar .nav-toggle-btn {
    display: block;
    right: 14px;
  }

  .navbar .nav {
    position: fixed;
    inset: 0;
    z-index: 1101;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100svh;
    padding: 96px 28px 54px;
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    background: rgba(7,7,7,.985);
    transform: translateY(-14px);
    transition: visibility 0s linear .45s, opacity .35s ease, transform .45s var(--ease);
  }

  .navbar .nav.nav-show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .navbar .nav .nav-item {
    width: 100%;
  }

  .navbar .nav .nav-item .nav-link {
    display: inline-block;
    padding: 10px 0;
    color: rgba(255,255,255,.82);
    font-size: clamp(1.65rem, 8vw, 3rem);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -.01em;
    text-transform: none;
  }

  .navbar .nav .nav-item .nav-link::after {
    bottom: 5px;
  }

  .navbar .nav .nav-social {
    display: flex;
    width: auto;
    gap: 24px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line-dark);
  }

  .navbar .nav .nav-social .nav-icon {
    padding: 0;
    font-size: 19px;
  }

  .site-hero .hero-copy {
    width: calc(100vw - 40px);
  }

  .site-hero .display-4 {
    font-size: clamp(2.15rem, 12vw, 4.5rem);
    line-height: 1.02;
  }

  .site-hero .display-4 small {
    font-size: .18em;
  }

  .portfolio-section .filter {
    top: var(--nav-height);
    margin-bottom: 30px;
    margin-inline: calc(var(--page-gutter) * -1);
    padding-inline: var(--page-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .portfolio-section .filter::-webkit-scrollbar { display: none; }

  .portfolio-section .filter ul {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .portfolio-item .portfolio-box .portfolio-title {
    opacity: 1;
    background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.68) 100%);
  }

  .portfolio-item.category-4 .portfolio-title {
    opacity: 0;
  }

  .resume-table-wrap {
    margin-bottom: 90px;
  }

  .resume-table thead {
    display: none;
  }

  .resume-table,
  .resume-table tbody,
  .resume-table tr,
  .resume-table td {
    display: block;
    width: 100% !important;
  }

  .resume-table tbody tr {
    margin-bottom: 10px;
    padding: 20px 0 18px;
    border-top: 1px solid var(--ink);
  }

  .resume-table tbody tr:last-child {
    border-bottom: 1px solid var(--ink);
  }

  .resume-table tbody tr:hover {
    background: transparent !important;
  }

  .resume-table td {
    display: grid;
    grid-template-columns: minmax(96px, 34%) 1fr;
    gap: 14px;
    min-height: 0;
    padding: 6px 0;
    border: 0;
    font-size: 12px;
  }

  .resume-table td::before {
    content: attr(data-label);
    color: #999;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  .resume-table td:first-child {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .resume-table td:first-child::before {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .portfolio-section {
    padding: 74px 0 90px;
  }

  .portfolio-wrapper.spacing-10 {
    margin: -2px;
  }

  .portfolio-wrapper.spacing-10 .portfolio-item {
    padding: 2px;
  }

  .reel-section .parallax-portfolio-item,
  #featured .parallax-portfolio-item {
    min-height: 62svh;
  }

  .contact-section .row,
  .resume-page #contact + .container .row {
    border-bottom: 0;
  }

  .contact-section .row > div,
  .resume-page #contact + .container .row > div {
    padding-block: 35px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-links {
    gap: 22px;
  }

  .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .resume-hero {
    min-height: 70svh;
  }

  .resume-page .timeline {
    padding-block: 22px;
  }

  .resume-page .timeline-date,
  .resume-page .timeline-content {
    width: 100%;
    float: none;
  }

  .resume-page .timeline-date {
    margin-bottom: 12px;
  }

  .resume-page .timeline-content img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 479.98px) {
  .navbar .brand-name { font-size: 11px; }
  .navbar .brand-mark { font-size: 8px; }

  .site-hero .hero-kicker {
    margin-bottom: 20px;
    font-size: 8px;
    letter-spacing: .25em;
  }

  .site-hero h5 {
    margin-top: 19px;
    font-size: .62rem;
    letter-spacing: .24em;
  }

  .portfolio-section .filter ul {
    gap: 23px;
  }

  .portfolio-section .filter ul li {
    font-size: 9px;
    letter-spacing: .18em;
  }

  .resume-table-wrap {
    padding-inline: 18px;
  }

  .resume-table td {
    grid-template-columns: 92px 1fr;
    gap: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Canvas and long-page fixes for the legacy theme's html/body height rule. */
body {
  min-height: 100%;
  height: auto;
}

.resume-hero .hero-copy > .navbar-brand {
  width: 100%;
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 767.98px) {
  .resume-hero .display-4 {
    font-size: clamp(1.85rem, 9.5vw, 3.4rem);
    overflow-wrap: normal;
    white-space: normal;
  }

  .resume-hero .display-4 small {
    display: block;
    margin: 14px 0 0;
  }
}

/* Explicit hero heights keep legacy percentage-based centering stable on long pages. */
.site-hero {
  height: 100svh;
}

.resume-hero {
  height: clamp(600px, 78svh, 850px);
}

@media (max-width: 767.98px) {
  .resume-hero {
    height: max(600px, 70svh);
  }
}

/* Performance hotfix — immediate rendering and native portfolio layout */
.preloader { display: none !important; }

.portfolio-wrapper.spacing-10 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  height: auto !important;
  margin: 0 !important;
}

.portfolio-wrapper.spacing-10 .portfolio-item {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  padding: 0 !important;
  transform: none !important;
  content-visibility: auto;
  contain-intrinsic-size: 420px 236px;
}

.portfolio-wrapper.spacing-10 .portfolio-item[hidden] {
  display: none !important;
}

.portfolio-section .filter li[role="tab"] {
  cursor: pointer;
}

.parallax-portfolio-item[data-bg] {
  background-image: linear-gradient(145deg, #111, #050505) !important;
}

.parallax-portfolio-item {
  transition: background-image .2s linear;
}

#featured,
.contact-section,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.media-open {
  overflow: hidden;
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 4vw, 54px);
}

.media-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
}

.media-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.media-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-modal__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font: 300 28px/1 sans-serif;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  .portfolio-wrapper.spacing-10 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .portfolio-wrapper.spacing-10 {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* Emergency rendering safeguard: the legacy theme creates a full-screen
   body::after cover that previously depended on its removed plugin bundle. */
body::after,
body:after,
.preloader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Gallery repair: native masonry, visible filter set and contemporary viewer */
.gallery-wrapper {
  display: contents !important;
}

.portfolio-section .filter {
  overflow: visible !important;
}

.portfolio-section .filter ul {
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: wrap;
  justify-content: center !important;
}

.portfolio-section .filter ul li {
  cursor: pointer;
  user-select: none;
}

.portfolio-section .filter ul li[aria-pressed="false"] {
  color: #555;
}

.portfolio-section .filter ul li:focus-visible {
  outline: 1px solid #111;
  outline-offset: 7px;
}

.portfolio-wrapper.spacing-10 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: dense;
  align-items: start;
  gap: 8px;
  height: auto !important;
  margin: 0 !important;
}

.portfolio-wrapper.spacing-10 .portfolio-item {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  transform: none !important;
  content-visibility: visible !important;
  contain: none !important;
}

.portfolio-wrapper.spacing-10 .portfolio-item[hidden] {
  display: none !important;
}

.portfolio-item.category-4 .portfolio-box {
  background: #f2f2f2;
  cursor: zoom-in;
}

.portfolio-item.category-4 .portfolio-img {
  aspect-ratio: 4 / 5 !important;
  min-height: 1px;
  background: #f2f2f2;
}

.portfolio-item.category-4.is-image-loaded .portfolio-img {
  aspect-ratio: auto !important;
}

.portfolio-item.category-4 .portfolio-img img {
  display: block;
  width: 100%;
  height: auto !important;
  max-width: none;
  object-fit: contain !important;
  transition: transform .7s var(--ease), opacity .35s ease;
}

.portfolio-item.category-4 .portfolio-box::after {
  content: "VIEW";
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 1;
  padding: 7px 9px 6px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  color: #fff;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .2em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .3s ease, transform .3s ease, background-color .3s ease;
  pointer-events: none;
}

.portfolio-item.category-4 .portfolio-box:hover::after,
.portfolio-item.category-4 .portfolio-box:focus-within::after {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item.category-4 .portfolio-box:hover .portfolio-img img {
  transform: scale(1.018);
}

.photo-lightbox-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -6px;
}

.photo-viewer[hidden] {
  display: none !important;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 7000;
  color: #fff;
  opacity: 0;
  transition: opacity .28s ease;
}

.photo-viewer.is-open {
  opacity: 1;
}

.photo-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5,5,5,.96);
  backdrop-filter: blur(18px) saturate(80%);
  -webkit-backdrop-filter: blur(18px) saturate(80%);
}

.photo-viewer__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.photo-viewer__header,
.photo-viewer__footer {
  display: grid;
  align-items: center;
  padding-inline: clamp(18px, 3vw, 46px);
}

.photo-viewer__header {
  grid-template-columns: 1fr auto auto;
  min-height: 74px;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.photo-viewer__eyebrow,
.photo-viewer__count,
.photo-viewer__hint {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 9px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .24em;
}

.photo-viewer__count {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.photo-viewer__tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-viewer__button,
.photo-viewer__nav {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  color: #fff;
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.photo-viewer__button {
  width: 42px;
  height: 42px;
}

.photo-viewer__button:hover,
.photo-viewer__nav:hover,
.photo-viewer__button:focus-visible,
.photo-viewer__nav:focus-visible {
  border-color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1);
  outline: none;
}

.photo-viewer__button svg,
.photo-viewer__nav svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.photo-viewer__stage-wrap {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.photo-viewer__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(20px, 3.5vw, 54px) clamp(64px, 7vw, 110px);
  overflow: hidden;
  touch-action: pan-y;
}

.photo-viewer__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transform: scale(.985);
  transition: opacity .32s ease, transform .42s var(--ease);
  user-select: none;
  cursor: zoom-in;
}

.photo-viewer.is-loaded .photo-viewer__image {
  opacity: 1;
  transform: scale(1);
}

.photo-viewer.is-zoomed .photo-viewer__stage {
  display: block;
  overflow: auto;
  cursor: zoom-out;
}

.photo-viewer.is-zoomed .photo-viewer__image {
  max-width: none;
  max-height: none;
  width: 160%;
  height: auto;
  margin: 0 auto;
  cursor: zoom-out;
}

.photo-viewer__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,.22);
  border-top-color: #fff;
  border-radius: 50%;
  animation: photo-spin .8s linear infinite;
  transition: opacity .2s ease;
}

.photo-viewer.is-loaded .photo-viewer__loader {
  opacity: 0;
}

@keyframes photo-spin {
  to { transform: rotate(360deg); }
}

.photo-viewer__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.photo-viewer__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.photo-viewer__nav--prev {
  left: clamp(14px, 2.5vw, 38px);
}

.photo-viewer__nav--next {
  right: clamp(14px, 2.5vw, 38px);
}

.photo-viewer__footer {
  grid-template-columns: 1fr auto;
  min-height: 60px;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.photo-viewer__progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.18);
}

.photo-viewer__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
  transition: width .35s var(--ease);
}

body.photo-viewer-open {
  overflow: hidden !important;
}

@media (max-width: 991.98px) {
  .portfolio-wrapper.spacing-10 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .portfolio-section .filter {
    margin-inline: 0 !important;
    padding: 15px 0 14px !important;
  }

  .portfolio-section .filter ul {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 22px !important;
  }

  .portfolio-section .filter ul li {
    display: block;
    padding: 6px 2px 8px;
    text-align: center;
  }

  .photo-viewer__header {
    grid-template-columns: 1fr auto;
    min-height: 62px;
    gap: 12px;
  }

  .photo-viewer__count {
    justify-self: end;
  }

  .photo-viewer__tools {
    grid-column: 1 / -1;
    position: absolute;
    top: 10px;
    right: 14px;
  }

  .photo-viewer__header .photo-viewer__count {
    margin-right: 94px;
  }

  .photo-viewer__stage {
    padding: 16px 12px 78px;
  }

  .photo-viewer__nav {
    top: auto;
    bottom: 17px;
    width: 44px;
    height: 44px;
    transform: none;
  }

  .photo-viewer__nav:hover {
    transform: scale(1.04);
  }

  .photo-viewer__nav--prev {
    left: calc(50% - 52px);
  }

  .photo-viewer__nav--next {
    right: calc(50% - 52px);
  }

  .photo-viewer__footer {
    grid-template-columns: 1fr;
    min-height: 44px;
  }

  .photo-viewer__hint {
    display: none;
  }

  .photo-viewer.is-zoomed .photo-viewer__image {
    width: 210%;
  }
}

@media (max-width: 575.98px) {
  .portfolio-wrapper.spacing-10 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .portfolio-item.category-4 .portfolio-box::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-viewer,
  .photo-viewer__image,
  .photo-viewer__progress span {
    transition: none !important;
  }

  .photo-viewer__loader {
    animation-duration: 1.6s;
  }
}

/* Consolidated accessibility and legibility pass — July 2026 */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9000;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.45);
  background: #fff;
  color: #111 !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #111;
  outline-offset: 2px;
}

.ui-icon {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-icon .ui-icon-dot {
  fill: currentColor;
  stroke: none;
}

.navbar .nav .nav-social {
  gap: 9px;
}

.navbar .nav .nav-social .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  color: rgba(255,255,255,.9);
  transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.navbar .nav .nav-social .nav-icon:hover,
.navbar .nav .nav-social .nav-icon:focus-visible {
  border-color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.09);
  color: #fff;
  transform: translateY(-1px);
}

.nav-icon-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.imdb-mark {
  display: inline-block;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
}

.scrolltotop .ui-icon {
  width: 17px;
  height: 17px;
  margin: auto;
}

.contact-section a,
.resume-page #contact + .container a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 108px;
  color: var(--ink) !important;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border: 1px solid rgba(10,10,10,.24);
  border-radius: 50%;
  color: var(--ink);
}

.contact-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.imdb-mark--contact {
  font-size: 13px;
}

.contact-label {
  color: #202020;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .035em;
}

/* The footer is deliberately centered on both pages. */
.footer-inner {
  max-width: 1220px;
  margin-inline: auto;
  text-align: center;
}

.footer-name {
  text-align: center;
}

.footer-links {
  justify-content: center;
}

.footer-meta {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.footer-meta p {
  max-width: 760px;
}

/* Resume: designed for comfortable reading by senior decision-makers. */
.resume-page {
  color: #161616;
  font-size: 17px;
}

.resume-page .section-heading-bar {
  padding-block: 31px;
}

.resume-page .section-heading-bar h6 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
}

.resume-table-wrap {
  max-width: 1640px;
  margin-bottom: clamp(96px, 10vw, 156px);
}

.resume-table thead th {
  padding: 0 18px 19px;
  color: #4e4e4e;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .13em;
}

.resume-table td {
  padding: 25px 18px;
  color: #303030;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

.resume-table td:first-child,
.resume-table td:first-child a {
  color: #080808;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.5;
}

.resume-table a {
  color: #090909;
  text-decoration: underline;
  text-decoration-color: rgba(10,10,10,.3);
  text-underline-offset: 4px;
}

.resume-table a:hover,
.resume-table a:focus-visible {
  color: #000;
  text-decoration-color: currentColor;
}

.resume-page .timeline {
  padding-block: 30px;
}

.resume-page .timeline-date h6 {
  color: #474747;
  font-size: 12px;
  font-weight: 600;
}

.resume-page .timeline-content h6 {
  color: #111;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.resume-page .timeline-content p {
  color: #414141;
  font-size: 15px;
  line-height: 1.6;
}

.resume-page .progress-box h6 {
  color: #1e1e1e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .12em;
}

.resume-page .progress-bar span {
  color: #3e3e3e;
  font-size: 13px;
  font-weight: 500;
}

.resume-page .contact-label {
  font-size: 15px;
}

@media (max-width: 991.98px) {
  .navbar .nav .nav-social {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .navbar .nav .nav-social .nav-icon {
    width: auto;
    min-width: 48px;
    height: 46px;
    gap: 9px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .navbar .nav .nav-social .nav-icon .nav-icon-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    color: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .resume-table tbody tr {
    margin-bottom: 18px;
    padding: 24px 0 23px;
    border-top-width: 2px;
  }

  .resume-table td {
    grid-template-columns: minmax(120px, 31%) 1fr;
    gap: 18px;
    padding: 8px 0;
    font-size: 16px;
    line-height: 1.58;
  }

  .resume-table td::before {
    color: #4e4e4e;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .12em;
  }

  .resume-table td:first-child {
    margin-bottom: 13px;
    padding-bottom: 17px;
    font-size: 19px;
  }
}

@media (max-width: 767.98px) {
  .resume-hero {
    min-height: 64svh;
  }

  .resume-page .section-heading-bar h6 {
    font-size: 11px;
  }

  .resume-table td {
    display: block;
    padding: 8px 0 10px;
    font-size: 16px;
  }

  .resume-table td::before {
    display: block;
    margin-bottom: 2px;
  }

  .resume-table td:first-child {
    font-size: 20px;
    line-height: 1.4;
  }

  .resume-page .timeline-content h6 {
    font-size: 17px;
  }

  .resume-page .timeline-content p {
    font-size: 16px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 479.98px) {
  .navbar .nav .nav-social .nav-icon {
    padding-inline: 12px;
  }

  .resume-table-wrap {
    padding-inline: 21px;
  }

  .contact-label {
    font-size: 13px;
  }
}


/* Mobile portfolio correction — one project per viewport row. */
@media (max-width: 767.98px) {
  .portfolio-wrapper.spacing-10 {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  .portfolio-wrapper.spacing-10 .portfolio-item {
    width: 100% !important;
    max-width: none !important;
  }
}


/* Resilient reel background fallback */
.reel-section .parallax-portfolio-item {
  background-image: url("/assets/images/featured/stillreel2018_1.png");
  background-position: center center;
  background-size: cover;
}
.reel-section .parallax-portfolio-item.bg-loaded {
  background-position: center center;
  background-size: cover;
}

/* Final mobile portfolio rule — one project per row on touch/mobile devices. */
@media (max-width: 991.98px), (hover: none) and (pointer: coarse) {
  #Categories.portfolio-wrapper.spacing-10 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  #Categories.portfolio-wrapper.spacing-10 > .portfolio-item {
    width: 100% !important;
    max-width: none !important;
    grid-column: 1 / -1 !important;
  }
}

/* Final unified build 2026-07-31: canonical responsive behavior. */
html, body { overflow-x: clip; }

/* The same navigation markup is used on desktop and mobile. */
#site-navigation a[href="/resume.html"] { cursor: pointer; }

/* Phone portfolio: one complete project per row. */
@media (max-width: 767.98px) {
  #Categories.portfolio-wrapper.spacing-10 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
  }
  #Categories.portfolio-wrapper.spacing-10 > .portfolio-item {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }
}

/* Resume readability and resilient table/card conversion. */
.resume-page { background: #fff; color: #151515; }
.resume-table-wrap { width: min(100%, 1640px); overflow: visible; }
.resume-table { width: 100%; table-layout: auto; }
.resume-table th, .resume-table td { overflow-wrap: anywhere; }

@media (min-width: 992px) {
  .resume-table-wrap { padding-inline: 34px; }
  .resume-table td { font-size: 16px; line-height: 1.62; }
  .resume-table td:first-child,
  .resume-table td:first-child a { font-size: 16.5px; }
}

@media (max-width: 991.98px) {
  .resume-table,
  .resume-table tbody,
  .resume-table tr,
  .resume-table td { display: block !important; width: 100% !important; }
  .resume-table thead { display: none !important; }
  .resume-table tbody tr {
    margin: 0 0 18px;
    padding: 24px 0;
    border-top: 2px solid #111;
  }
  .resume-table td {
    padding: 7px 0 9px !important;
    font-size: 16px !important;
    line-height: 1.58 !important;
  }
  .resume-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #5b5b5b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .resume-table td:first-child,
  .resume-table td:first-child a {
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.35 !important;
  }
}

@media (max-width: 575.98px) {
  .resume-table-wrap { padding-inline: 22px !important; }
  .resume-page .section-heading-bar { margin-bottom: 28px; }
  .resume-hero { min-height: 56svh !important; }
}
