body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    min-height: 100vh; /* ensure viewport-filling layout */
    display: flex;
    flex-direction: column;
  }
  
  header {
    background-color: #111;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  nav {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
  }
  
  header h1 {
    display: none;
  }

  .header-sep {
    display: none;
  }

  .header-sep-left {
    display: none;
  }

  .header-sep-right {
    display: none;
  }

  header h1 a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
    transition: transform 160ms ease, color 160ms ease;
    will-change: transform;
  }

  header h1 a:visited,
  header h1 a:hover,
  header h1 a:focus {
    color: #ffffff;
    text-decoration: none;
  }

  header h1 a:hover,
  header h1 a:focus {
    transform: translateY(-2px) scale(1.08);
    outline: none;
  }

  header h1 a:focus-visible {
    box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
    border-radius: 6px;
  }
  
  nav ul.nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }

  nav ul.nav li.nav-sep {
    color: #555;
    font-weight: 600;
    user-select: none;
  }

  nav ul.nav a {
    text-decoration: none;
    color: #eee;
    font-weight: bold;
    padding: 0.5rem;
    display: block;
  }

  nav ul.nav a:visited {
    color: #eee;
  }

  .nav-contact {
    display: none;
  }

/* Enlarge top-level header links on hover/focus (only the main three links)
   Use direct-child selector so submenu links are not affected. */
nav ul.nav > li > a {
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

nav ul.nav > li > a:hover,
nav ul.nav > li > a:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

nav ul.nav > li > a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

.nav-contact:hover,
.nav-contact:focus {
  transform: translateY(-2px) scale(1.08);
  text-decoration: none;
  outline: none;
}

.nav-contact:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
  }

  nav ul.nav {
    flex-wrap: wrap;
  }
}
  
  main.about {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto; /* center horizontally only */
    flex: 1 0 auto; /* allow main to grow so footer is pushed to bottom */
    display: flex;
    align-items: center; /* center vertically when there is extra space */
    justify-content: center; /* center horizontally */
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

/* Two-column hero layout */
.hero{
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Page card (boxed content area like Blender intro) */
.page-card{
  background: #141414;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width:900px){
  .page-card{ padding: 1.25rem; margin: 0.75rem; }
}
.hero-photo img{
  width: 95%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.1);
  transform-origin: center 30%;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.hero-copy{
  color: #eaeaea;
}
.hero-title{
  font-size: 2.25rem;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.5px;
}
.hero-sub{
  color:#cfcfcf;
  font-weight:600;
  margin-bottom:0.75rem;
}
.lead{
  font-size:1.06rem;
  line-height:1.55;
  margin-bottom:0.55rem;
  color:#e9e9e9;
}
.lead-secondary{
  color:#cfcfcf;
  margin-bottom:0.9rem;
}
.badges{ display:flex; gap:.45rem; flex-wrap:wrap; margin-top:0.4rem; margin-bottom:0.5rem; }
.badge{
  display:inline-block;
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(255,255,255,0.1);
  padding:.28rem .56rem;
  border-radius:999px;
  font-weight:600;
  font-size:0.9rem;
  letter-spacing:0.1px;
}
.tool-note{
  margin:0 0 0.75rem 0;
  color:#b8b8b8;
  font-size:0.95rem;
}
.quick-facts{ margin:0 0 0.55rem 0; padding:0; list-style:none; color:#a9a9a9; font-size:0.95rem; }
.quick-facts li{ margin-bottom:.24rem; }
.about-section .links{
  margin-top:0.5rem;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

/* Make each link inside .links transform independently */
.about-section .links a{
  color: #eee;
  text-decoration:none;
  font-weight:600;
  display: inline-flex;
  align-items: center;
  transition: transform 160ms ease, color 160ms ease;
  will-change: transform;
}

.about-section .links a:hover,
.about-section .links a:active {
  /* Hover or active (mouse down) cause the lift; do not use :focus so click doesn't persist the transform */
  transform: translateY(-2px) scale(1.08);
  outline: none;
}

.about-section .links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.12);
  border-radius: 6px;
}
.about-section .links .btn-contact{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
}
.about-section .links .btn-contact:hover,
.about-section .links .btn-contact:active{
  background: rgba(255,255,255,0.12);
}
.about-section .links .btn-contact.resume-btn{
  background: transparent;
  border-color: rgba(255,255,255,0.09);
}
.about-section .links .btn-contact.resume-btn:hover,
.about-section .links .btn-contact.resume-btn:active{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.13);
}

.sep{ margin: 0 .5rem; color:#555; }

@media (max-width:900px){
  .hero{ grid-template-columns: 1fr; }
  .hero-photo img{ max-height: none; }
  .hero-title{ font-size:1.75rem; text-align:center; }
  .hero-copy{ text-align:center; }
  .badges{ justify-content:center; }
  .about-section .links{ align-items:center; }
}
  
  .bio-image {
    width: 200px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    display: block;
  }

  footer {
    background-color: #000;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
  }

  main {
    padding-top: 0;
  }

/* ========== HOMEPAGE SECTIONS ========== */

/* Hero Section */
.hero-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-section .hero-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -1px;
  margin: 0 0 0.75rem 0;
  text-align: center;
  text-wrap: balance;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #bdbdbd;
  margin: 0 0 2.5rem 0;
  font-weight: 300;
}

.featured-video {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  transition: transform 180ms ease, box-shadow 180ms ease;
  position: relative;
}

.featured-video a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.featured-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-video:hover,
.featured-video:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

@media (max-width:900px) {
  .hero-section {
    padding: 2.5rem 1.5rem;
  }
  .hero-section .hero-title {
    font-size: 2rem;
    letter-spacing: -0.4px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .featured-video { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero-section .hero-title {
    font-size: 1.92rem;
    line-height: 1.14;
    max-width: 12.5ch;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title-sep {
    display: none;
  }

  .hero-title-role {
    display: block;
  }
}

/* Featured Work Section */
.featured-work {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
}

.featured-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin: 0 0 2rem 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: -0.5px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.work-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.work-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.work-thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.work-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.watch-video-pill {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.88rem;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}

.placeholder-thumbnail {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #222 0%, #111 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 3rem;
  transition: background 200ms ease;
}

.work-thumbnail:hover .placeholder-thumbnail {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  color: rgba(255,255,255,0.6);
}

.play-icon {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.work-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.work-title a {
  color: #fff;
  text-decoration: none;
  transition: color 160ms ease;
}

.work-title a:hover {
  color: #ddd;
}

.work-year {
  color: #888;
  margin: 0.05rem 0 0.4rem 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 200ms ease, transform 160ms ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-primary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

@media (max-width:900px) {
  .featured-work {
    padding: 2.5rem 1.5rem;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .work-year {
    margin-bottom: 0.8rem;
  }
}

/* About Section (Below Featured Work) */
.about-section {
  padding: 4rem 2rem;
}

.about-section .page-card {
  max-width: 1000px;
}

@media (max-width:900px) {
  .about-section {
    padding: 2.5rem 1.5rem;
  }
}

/* Other Work Section */
.other-work {
  padding: 4rem 2rem;
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.other-work-container {
  max-width: 1100px;
  margin: 0 auto;
}

.other-work-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.other-link {
  padding: 1rem 2rem;
  background: rgba(255,255,255,0.04);
  color: #ddd;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
  font-size: 1rem;
  transition: all 200ms ease;
  display: inline-block;
}

.other-link:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

@media (max-width:900px) {
  .other-work {
    padding: 2.5rem 1.5rem;
  }
  .other-work-links {
    gap: 1rem;
  }
  .other-link {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* Back-to-top button (copied from blender.css) — DISABLED
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #222;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 9999;
  transition: background 0.12s ease, transform 0.08s ease, opacity 0.18s ease;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #141414;
  outline: none;
}

.back-to-top:active {
  transform: translateY(1px);
}

.back-to-top.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
}

.back-to-top:not(.hidden) {
  opacity: 1;
}

.back-to-top:focus-visible {
  box-shadow: 0 0 0 3px rgba(255,204,102,0.15), 0 6px 18px rgba(0,0,0,0.45);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

*/


