/* ################################################# */
/* RESET / BASE */
/* ################################################# */

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body { font-family: 'Work Sans', sans-serif; line-height: 1.6; color: #222; background: var(--site-background); padding-top: 80px }
.container { width: 95%; max-width: 920px; padding-left: 8px; padding-right: 8px; margin: 0 auto; box-sizing: border-box }
.container.header-inner { padding-left: 8px; padding-right: 8px; }

/* ################################################# */
/* COLOURS */
/* ################################################# */

:root {
  --light-blue: #22bfff;
  --light-blue-background: #ddeffd;
  --mid-blue: #0068FF;
  --dark-blue: #0044A6;
  --dark-grey: #7C7C7C;
  --site-background: #ffffff;
  --alt-panel-background: #f3faff;
  --standard-text-color: #242323;
}

.light-blue { color: var(--light-blue); }
.mid-blue { color: var(--mid-blue); }
.dark-blue { color: var(--dark-blue); }
.site-background { color: var(--site-background); }
.alt-panel-background { background: var(--alt-panel-background); }  
.standard-text-color { color: var(--standard-text-color); }

/* ################################################# */
/* NAVIGATION HEADER & MENU */
/* ################################################# */

/* ### Desktop ### */

.sticky-header-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2500;
  background: var(--site-background);
  box-shadow: none;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header { padding: 16px 12px 12px 12px; position: relative; z-index: 1000; transition: background 0.3s; }
.sticky-header-wrap.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 42px; }
.site-nav ul { display: flex; gap: 32px; list-style: none; }
.site-nav ul li { margin-left: 0px; }
.site-nav ul li a { text-decoration: none; color: #242323; font-weight: 600; font-size: 12px; transition: color 0.3s ease; }
#nav-links a.active { color: var(--light-blue); font-weight: 600; }
.site-nav ul li a:hover { color: var(--mid-blue); }


/* ### Mobile ### */

/* Navigation Overlay and Panel */
.mobile-nav-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 68, 166, 0.85);
  z-index: 2600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-panel {
  position: fixed;
  top: 0; right: 0; height: 100vh; width: calc(80vw); max-width: 340px;
  background: var(--site-background);
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 2100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: left;
  padding-top: 120px;
  padding-right: 12px;
  padding-left: 48px;
}
.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}
.mobile-nav-panel ul {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-nav-panel a {
  color: #242323;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: color 0.3s;
}
.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  color: var(--light-blue);
}

/* Hamburger / X Toggle Button */
.nav-toggle-wrapper {
  position: fixed;
  top: 2px;
  right: 16px;
  width: auto;
  z-index: 2500;
}

.nav-toggle.mobile {
  position: relative;
  top: 18px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  pointer-events: auto;
  z-index: 3001;
}

.nav-toggle.mobile span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--light-blue);
  margin: 7px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-toggle.mobile.open span {
  background: var(--dark-blue);
}
.nav-toggle.mobile.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.mobile.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.mobile.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* X (close) button */
.nav-close.mobile {
  position: fixed;
  top: 22px;
  right: 40px;
  transform: none;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  z-index: 3001;
}
.nav-close.mobile span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 28px;
  height: 3px;
  background: var(--light-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-close.mobile:hover span {
  background: var(--dark-blue);
}

.nav-close.mobile span:first-child {
  transform: translateY(-50%) rotate(45deg);
}
.nav-close.mobile span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}


/* ################################################# */
/* HOMEPAGE HERO SECTION */
/* ################################################# */

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: min-content 1fr;
  grid-template-areas:
    "h1 image"
    "p image";
  row-gap: 0px;
  column-gap: 68px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 60px;
  margin-bottom: 32px;
}

.hero-h1-container {
  grid-area: h1;
  font-weight: 100;
  margin-bottom: 0px;
  padding-top: 1rem;
}
.hero-h1-container h1 {
  font-size: 2rem;
  font-weight: 100;
  line-height: 1.4;
  margin-bottom: 0;
}
.hero-h1-container b { font-weight: 600; }
.hero-h1-container a { color: var(--mid-blue); text-decoration: none; }

.hero-p-container {
  grid-area: p;
  font-weight: 100;
  margin-top: 1rem;
}
.hero-p-container p { margin-bottom: 2px; }
.hero-p-container p:last-child { margin-bottom: 0px; }
.hero-p-container b { font-weight: 600; }
.hero-p-container a { color: var(--mid-blue); text-decoration: none; }

.hero-image {
  grid-area: image;
}
.hero-image img { max-width: 360px; height: 100%; object-fit: contain; border-radius: 8px; }


/* ################################################# */
/* HOMEPAGE PROJECTS SECTION */
/* ################################################# */

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 32px;
  justify-content: center;
  width: 100%;
  max-width: 945px;
  margin: 0 auto;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.project { border: 0px solid #ddd; padding: 20px; border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease; opacity: 0; transform: translateY(30px); }
.project:hover { transform: translateY(-8px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.project img { width: 100%; border-radius: 0px; margin-bottom: 15px; transition: transform 0.3s ease; }
.project h2 { font-size: 1.3rem; margin-bottom: 10px; }
.project a { text-decoration: none; color: #0070f3; font-weight: 600; transition: color 0.3s ease; }
.project a:hover { color: var(--dark-blue); }

.project.reveal {
  position: relative;
  width: 461px;
  height: 485px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: none;
  transition: box-shadow 0.3s;
  background: transparent;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-img-link { display: block; width: 100%; height: 100%; position: absolute; top: 0; left: 0; z-index: 1; border-radius: 0px; overflow: hidden; }
.project-img { width: 100%; height: 100%; object-fit: cover; border-radius: 0px; transition: box-shadow 0.6s cubic-bezier(.77,0,.18,1); }

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 461px;
  height: 150px;
  background: var(--light-blue);
  border-radius: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 0px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
  transition: height 0.6s cubic-bezier(.77,0,.18,1), padding 0.6s cubic-bezier(.77,0,.18,1);
  overflow: hidden;
}
.project-info h2 { margin: 0px 0 8px 0; font-size: 2rem; font-weight: 100; color: var(--dark-blue); }
.project-info p { margin: 0 0 8px 0; color: #FFFFFF; font-size: 0.95rem; font-weight: 200; }
.project-info b { font-weight: 500; }
.project-info .read-more { font-size: 1.125rem; display: flex; align-items: center; margin-top: 8px; color: var(--dark-blue); font-weight: 600; text-decoration: none; opacity: 0; transition: opacity 0.3s; }
.project-info .read-more:hover { color: #062d64; }
.read-more, .arrow { display: inline-block; margin-left: 0px; transition: opacity 0.6s cubic-bezier(.77,0,.18,1), transform 0.6s cubic-bezier(.77,0,.18,1), color 0.6s cubic-bezier(.77,0,.18,1); }
.project.reveal:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.project.reveal:hover .project-info { height: 180px; padding-top: 28px; padding-bottom: 28px; padding-left: 18px; padding-right: 18px; }
.project.reveal:hover .read-more { opacity: 1; }
.project.reveal:hover .arrow { transform: translateX(8px); }
.read-more:hover .arrow { transform: translateX(18px); }


/* ################################################# */
/* SITE FOOTER */
/* ################################################# */

.site-footer h3 { background: var(--site-background); padding-top: 20px; padding-bottom: 20px; text-align: center; font-size: 1.6rem; font-weight: 100;}
.site-footer { background: var(--site-background); padding: 40px 0; text-align: center; font-size: 1.2rem; font-weight: 200;}
.site-footer b { font-weight: 500;}
.site-footer a { color: var(--light-blue); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h6 { background: var(--site-background); color: #a0a0a0; padding: 20px 0; text-align: center; font-size: 0.8rem; font-weight: 100;}

@media (max-width: 768px) {
  .site-footer h3 {
    font-size: 1.4rem;
  }
}

.footer-fade { opacity: 0; transition: opacity 3s ease; }
.footer-fade.visible { opacity: 1; }

.footer-contact { opacity: 0; transform: translateX(50px); transition: opacity 1s ease, transform 1s ease; }
.footer-contact.visible { opacity: 1; transform: translateX(0); }

.icon-link { margin: 0 12px; color: var(--light-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 16px; font-size: 1rem; text-decoration: none; }
.icon-link i { font-size: 1.2rem; color: var(--light-blue); transition: color 0.3s ease; }
.icon-link:hover i { color: var(--dark-blue); }
.icon-link .link-text { color: #242323; text-decoration: underline; font-weight: 400; transition: color 0.3s ease; }
.icon-link:hover .link-text { color: var(--dark-blue); }


/* ################################################# */
/* ABOUT PAGE HERO SECTION */
/* ################################################# */

.about-hero { display: flex; gap: 68px; align-items: flex-start; padding: 56px 0 48px 0; background: var(--site-background); }
.about-hero-text { flex: 1.1; }
.about-hero-text h1 { font-size: 42px; margin-bottom: 0px; line-height: 1.25; font-weight: 100; }
.about-hero-text p { font-size: 16px; margin-bottom: 1rem; line-height: 1.7em; font-weight: 100; }
.about-hero-text .hyphen { display: block; margin: 0px 0 0px 0; font-size: 2rem; font-weight: 300; }
.about-hero-image { flex: 0 0 360px; align-self: flex-start; margin-top: 1rem; }
.about-hero-image img { width: 360px; height: 360px; border-radius: 8px; display: block; }


/* ################################################# */
/* STANDARD PAGE PANELS */
/* ################################################# */

.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  background: var(--site-background);
  padding: 48px 0px 48px 0px;
}

.full-bleed-alt {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  box-sizing: border-box;
  background: var(--alt-panel-background);
  padding: 56px 0px 72px 0px;
}

.standard-panel { display: flex; gap: 68px; align-items: flex-start; padding: 56px 0 120px 0; background: var(--site-background); }
.alt-panel { display: flex; gap: 68px; align-items: flex-start; padding: 56px 0 120px 0; background: var(--alt-panel-background); }
.panel-text { flex: 1.1; }
.panel-text h1 { font-size: 36px; margin-bottom: 0px; line-height: 1.25; font-weight: 100; }
.panel-text h2 { font-size: 18px; margin-bottom: 0.5rem; line-height: 1.5; font-weight: 100; }
.panel-text p { font-size: 15px; margin-bottom: 1rem; line-height: 1.7em; font-weight: 100; }
.panel-text .hyphen { display: block; margin: 0px 0 0px 0; font-size: 2rem; font-weight: 300; }
.panel-text-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 68px; align-items: start; padding: 16px 0px 16px 0px; }
.panel-text-2col h1 { font-size: 36px; margin-bottom: 0px; line-height: 1.25; font-weight: 100; }
.panel-text-2col h2 { font-size: 18px; margin-bottom: 0.5rem; line-height: 1.5; font-weight: 100; }
.panel-text-2col p { font-size: 15px; margin-bottom: 1rem; line-height: 1.7em; font-weight: 100; }
.panel-text-2col .hyphen { display: block; margin: 0px 0 0px 0; font-size: 2rem; font-weight: 300; }


/* ################################################# */
/* REUSABLE 2-COLUMN PANEL BLOCK */
/* ################################################# */

.panel-col-left {
  display: flex;
  flex-direction: column;
}

.panel-col-right img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* spacing for embedded media inside 2-col panels */
.spotify-embed {
  margin-top: 24px;
}


/* ################################################# */
/* YOUTUBE VIDEO PLAYER */
/* ################################################# */

.video-gallery-section {
  padding-top: 0px;
  padding-bottom: 48px;
}

.main-video-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  margin-bottom: 24px;
}

.main-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.video-thumbnails-wrapper {
  position: relative;
}

.video-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0px;
}

.thumbnail-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid transparent;
}

.thumbnail-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.thumbnail-item.active {
  border-color: var(--light-blue);
}

.thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.thumbnail-item:hover img {
  opacity: 0.8;
}

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34, 191, 255, 0.9);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.thumbnail-item:hover .play-overlay {
  background: rgba(34, 191, 255, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-overlay i {
  color: white;
  font-size: 18px;
  margin-left: 3px;
}

/* Carousel Dots - Hidden on Desktop */
.carousel-dots {
  display: none;
}


/* ################################################# */
/* PHOTO PANELS */
/* ################################################# */

.photo-panel {
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ################################################# */
/* BULLET POINT GRID */
/* ################################################# */

.bullet-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  margin-top: 32px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bullet-item i {
  color: var(--light-blue);
  font-size: 1.2rem;
  margin-top: 4px;
}

.bullet-item p {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}


/* ################################################# */
/* SCROLL TO THE TOP BUTTON */
/* ################################################# */

#scrollToTop {
  position: fixed;
  bottom: 5.5rem;
  right: 3rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(34, 191, 255, 0.95); /* #22BFFF with 95% opacity */
  border: 1px solid var(--dark-blue);
  color: white;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 2000;
}

/* Visible state */
#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Hover effect */
#scrollToTop:hover {
  background-color: rgba(34, 191, 255, 1);
  transform: scale(1.05);
}


/* ### BOTTOM NAVIGATION ON MOBILE */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--site-background);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  z-index: 2100;
  border-top: 1px solid #eee;
}

.bottom-nav .nav-item {
  color: #666;
  text-decoration: none;
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  padding: 8px 0;
  transition: background 0.3s ease, color 0.3s ease;
  border-radius: 8px;
}

.bottom-nav .nav-item:active {
  background-color: var(--light-blue);
  color: var(--site-background);
}


.bottom-nav .nav-item i {
  transition: color 0.3s ease;
}


/* ################################################# */
/* DESIGN WORK PAGE */
/* ################################################# */

/* Hero Section for Design Work */
.design-work-hero {
  padding-top: 56px;
  padding-bottom: 62px;
  padding-left: 56px;
  padding-right: 56px;
}
}

.design-work-hero .hero-h1-container,
.design-work-hero .hero-p-container {
  max-width: 100%;
}

/* Design Work Grid */
.design-grid {
  padding-bottom: 60px;
}

.design-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.design-row:last-child {
  margin-bottom: 0;
}

/* Row layouts */
.row-50-50 {
  /* 50/50 split */
}

.row-50-50 .design-item {
  flex: 1;
}

.row-60-40 .design-item.item-60 {
  flex: 0 0 calc(60% - 4px);
}

.row-60-40 .design-item.item-40 {
  flex: 0 0 calc(40% - 4px);
}

.row-33-33-33 .design-item {
  flex: 1;
  aspect-ratio: 1/1;
}

/* Design Item */
.design-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  display: block;
  text-decoration: none;
  aspect-ratio: 16/9;
}

.design-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

/* Overlay */
.design-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 68, 166, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.18, 1), 
              transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
  padding: 20px;
}

/* Hover Effects */
.design-item:hover img {
  transform: scale(1.05);
}

.design-item:hover .design-overlay {
  background: rgba(0, 68, 166, 0.9);
}

.design-item:hover .overlay-content {
  opacity: 1;
  transform: translateY(0);
}

/* Overlay Text Styling */
.project-title {
  color: var(--light-blue);
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.click-text {
  color: white;
  font-size: 16px;
  font-weight: 100;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}

.overlay-content .hyphen {
  display: block;
  color: white;
  font-size: 24px;
  margin: 8px 0;
  font-weight: 300;
}

.project-details {
  color: white;
  font-size: 16px;
  font-weight: 100;
  margin: 8px 0 0 0;
  line-height: 1.4;
}

/* ################################################# */
/* ANIMATIONS & BEHAVIOURS */
/* ################################################# */

/* ### Navigation Links Animation ### */
#nav-links .nav-link.fade-in {
  opacity: 0;
  animation: fadeIn 1.25s ease forwards;
}

/* General Fade-in & Reveal Animations */
.fade-in { opacity: 0; animation: fadeIn 1s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Animation Delays */
#nav-links .nav-link.fade-in { animation-delay: 0s; }
.hero-h1.fade-in { animation-delay: 0.6s; }
.hero-p.fade-in { animation-delay: 1.2s; }
.hero-p.fade-in:nth-of-type(2) { animation-delay: 1.5s; }
.hero-img.fade-in { animation-delay: 1.8s; }

/* Scroll to behaviour */
html.no-scroll, body.no-scroll {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

/* adding margin to account for sticky header */
#ux-work {
  scroll-margin-top: 100px;
}
#making-music {
  scroll-margin-top: 100px;
}

/* Bullet Points */
.bullet-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 1s ease, transform 1s ease;
}

.bullet-item.in-view {
  opacity: 1;
  transform: translateX(0);
}



/* ################################################# */
/* RESPONSIVE ADJUSTMENTS FOR MOBILE */
/* ################################################# */

/* ### HEADER & HAMBURGER / X TOGGLE BUTTON ### */

@media (max-width: 768px) {
  .nav-toggle.mobile { display: block; }
  .site-nav ul { display: none; }
  .site-header {
    padding-left: 0px;
    padding-right: 0px;
  }
}

/* extra tweak for tiny phones (like iPhone SE width <400px) */
@media (max-width: 400px) {
  .nav-toggle.mobile {
    right: max(3vw, 8px);
  }
}


/* ### HOMEPAGE HERO SECTION ### */

@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "h1"
      "image"
      "p";
    gap: 32px; /* Adjust gap for mobile if needed */
    padding-top: 2px;
    padding-bottom: 16px;
  }
  .hero-h1-container {
    padding-top: 0rem;
  }
  .hero-h1-container h1 {
    font-size: 1.6rem;
    font-weight: 100;
    line-height: 1.4;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .header-inner { position: relative; }
  .hero { padding-top: 16px; padding-bottom: 36px; flex-direction: column; }
  .hero-image { width: 100%; padding: 0 8px; box-sizing: border-box; }
  .hero-image img { width: 100%; max-width: 360px; height: auto; display: block; margin: 0 auto; }
}


/* ### HOMEPAGE PROJECTS SECTION ### */

@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .projects { grid-template-columns: 1fr; gap: 20px; padding-top: 0px; padding-left: 16px; padding-right: 16px; box-sizing: border-box; max-width: 100%; }
  .project.reveal { width: 100%; max-width: 461px; height: 550px; background: #fff; padding: 0; }
  .project-img-link { position: static; width: 100%; height: auto; display: block; }
  .project-img { width: 100%; height: auto; object-fit: cover; display: block; }
  .project-info { width: 100%; max-width: 100%; left: 0; }
  .project-info h2 { font-size: 2.2rem; margin-bottom: 16px; }
  .project-info .read-more { opacity: 1; margin-bottom: 26px }
  .project.reveal:hover .project-info { height: auto; padding-top: 28px; padding-bottom: 28px; padding-left: 18px; padding-right: 18px; }
  
}

/* Reduce the padding beneath the projects grid on mobile */
@media (max-width: 600px) {
.projects { margin-bottom: 8px; height: auto }
.project-info { height:auto }
.project-info p { font-size: 1.125rem;}
.project-info .read-more { font-size: 1.3rem; }
}

@media (max-width: 480px) {
.project-info h2 { font-size: 2.2rem; line-height: 1.3; font-weight: 100; }
}

/* ### ABOUT PAGE HERO SECTION ### */

@media (max-width: 880px) {
  .about-hero { flex-direction: column; gap: 20px; padding-top: 20px; padding-bottom: 24px; background: var(--site-background); }
  .about-hero-image { width: 100%; max-width: 360px; margin: 0 auto; }
  .about-hero-image img { width: 100%; height: auto; }
}

@media (max-width: 600px) {
  .about-hero {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
  }
  .about-hero-image { flex: 0 0 280px; align-self: center; margin-top: 0; }
  .about-hero-image img { width: 300px; height: 300px; border-radius: 8px; }
}

/* Specific override: ensure about hero image stays 280x280 on small devices
   This appears after earlier responsive rules so it wins in the cascade. */
@media (max-width: 600px) {
  .about-hero { flex-direction: column; align-items: center; gap: 56px; padding: 8px 0 24px 0; }
  .about-hero .about-hero-image { flex: 0 0 280px; width: auto; max-width: none; margin-top: 0; }
  .about-hero .about-hero-image img { width: 280px; height: 280px; object-fit: cover; border-radius: 8px; display: block; }
  .about-hero-text { padding-left: 8px; padding-right: 8px; }
  .about-hero-text h1 { font-size: 46px; }
}


/* ### HOMEPAGE HERO SECTION ### */

@media (max-width: 600px) {
  .panel-text h2 { 
    font-size: 18px;
    line-height: 1.6 }
  .panel-text-2col h2 {
    font-size: 18px;
    line-height: 1.6 }
  }

  /* ### STANDARD PANEL TEXT ADJUSTMENTS ### */

@media (max-width: 768px) {
  .panel-text-2col p { font-size: 16px; margin-bottom: 1rem; line-height: 1.7em; font-weight: 100; }
}

/* ### SITE FOOTER ### */

@media (max-width: 600px) {
  .footer-contact .link-text {
    font-size: 18px; /* adjust as needed */
    font-weight: 600;
    line-height: 1.2;
  }

  .footer-contact .icon-link {
    font-size: 32px;
  }
}

/* Hide contacts panel on desktop */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

/* Reduce the padding above the site footer on mobile */
@media (max-width: 600px) {
.site-footer { padding: 8px 0;}
}

/* Add some breathing room to bottom of body content on mobile */
@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* height of bottom nav */
  }
}


/* ### SCROLL TO TOP ICON ### */

@media (min-width: 768px) {
  #scrollToTop {
    display: none;
  }
}

/* ### BULLET POINT GRID ### */

@media (max-width: 768px) {
  .bullet-points {
    grid-template-columns: 1fr; /* Make 2 column grid into single column on mobile */
    gap: 20px;
  }
  .bullet-item p {
    font-size: 16px; /* display text at slightly larger size on small screens */
  }
}

/* ### MOTION ACCESSIBILITY FOR BULLET POINTS ### */

@media (prefers-reduced-motion: reduce) {
  .bullet-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ### PHOTO PANELS HEIGHT ADJUSTMENT ### */
@media (max-width: 600px) {
  .photo-panel {
    height: 250px;
  }
}

/* ### YOUTUBE VIDEO PLAYER MOBILE ### */
@media (max-width: 768px) {
  .video-gallery-section {
    padding-top: 0px;
    padding-bottom: 48px;
  }
  
  .video-gallery-section .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Hide main video player on mobile */
  .main-video-container {
    display: none;
  }
  
  /* Carousel Container */
  .video-thumbnails-wrapper {
    position: relative;
    overflow: hidden;
  }
  
  /* Horizontal Scrolling Container */
  .video-thumbnails {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }
  
  /* Hide scrollbar for Chrome/Safari */
  .video-thumbnails::-webkit-scrollbar {
    display: none;
  }
  
  /* Each thumbnail takes full width */
  .thumbnail-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border-radius: 8px;
  }
  
  /* Make thumbnail images taller on mobile for better viewing */
  .thumbnail-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
  }
  
  /* Carousel Dots */
  .carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 8px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .dot.active {
    background: var(--light-blue);
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 480px) {
  .play-overlay {
    width: 50px;
    height: 50px;
  }
  
  .play-overlay i {
    font-size: 20px;
  }
}

/* ### MAKE 2 COLUMN PANELS STACK ON MOBILE ### */
@media (max-width: 768px) {
  .panel-text-2col {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 0px;
    padding-bottom: 0px;
  }
}

/* ### PADDING CONSISTENCY FOR STANDARD PANEL SECTIONS ### */
@media (max-width: 768px) {
  .full-bleed {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  
  .full-bleed-alt {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  
  /* Ensure inner content containers have proper mobile padding */
  .full-bleed .panel-text,
  .full-bleed-alt .panel-text {
    padding-left: 8px;
    padding-right: 8px;
  }
  
  .full-bleed .panel-text-2col,
  .full-bleed-alt .panel-text-2col {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ################################################# */
/* DESIGN WORK GRID MOBILE RESPONSIVE */
/* ################################################# */

@media (max-width: 768px) {
  .design-work-hero {
    padding-top: 20px;
    padding-bottom: 32px;
    padding-left:16px;
    padding-right:16px;
  }
  
  .design-grid {
    padding-bottom: 32px;
    
  }
  
  /* Stack all rows vertically on mobile */
  .design-row {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
  }
  
  /* All items full width on mobile */
  .row-60-40 .design-item.item-60,
  .row-60-40 .design-item.item-40,
  .row-50-50 .design-item,
  .row-33-33-33 .design-item {
    flex: 1 1 100%;
  }
  
  /* Adjust text sizes for mobile */
  .project-title {
    font-size: 24px;
  }
  
  .click-text,
  .project-details {
    font-size: 14px;
  }
  
  .overlay-content .hyphen {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .design-work-hero {
    padding-top: 16px;
    padding-bottom: 48px;
    padding-left:8px;
    padding-right:8px;
  }

  /* 50/50 rows: Keep 16:9 on mobile */
  .row-50-50 .design-item {
    aspect-ratio: 16/9;
  }

  /* 60/40 rows: 4:3 on mobile */
  .row-60-40 .design-item {
    aspect-ratio: 4/3;
  }

  .row-33-33-33 .design-item {
    aspect-ratio: 4/3;
  }
  
  .project-title {
    font-size: 20px;
  }

  .design-grid {
    padding-bottom: 16px;
    
  }
}