/*
Theme Name: Echo Current
Author: Andrew Bourne
Description: Custom theme built from scratch.
Version: 1.0
*/

:root {
    --fw-thin: 100;
    --fw-extraLight: 200;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semiBold: 600;
    --fw-bold: 700;
    --fw-extraBold: 800;
    --fw-black: 900;
}

.text-color-primary {
  color: var(--primary-color);
}
.text-color-secondary {
  color: var(--secondary-color);
}
.text-color-color-1 {
  color: var(--defined-color-1);
}
.text-color-color-2 {
  color: var(--defined-color-2);
}

.fw-thin {
  font-weight: var(--fw-thin);
}
.fw-extraLight {
  font-weight: var(--fw-extraLight);
}
.fw-light {
  font-weight: var(--fw-light);
}
.fw-regular {
  font-weight: var(--fw-regular);
}
.fw-medium {
  font-weight: var(--fw-medium);
}
.fw-semiBold {
  font-weight: var(--fw-semiBold);
}
.fw-bold {
  font-weight: var(--fw-bold);
}
.fw-extraBold {
  font-weight: var(--fw-extraBold);
}
.fw-black {
  font-weight: var(--fw-black);
}

h1 {
  letter-spacing: 0;
  line-height: 41px;
  font-size: var(--h1-size);
}
h2 {
  letter-spacing: 0;
  line-height: 22px;
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
}
h3 {
  letter-spacing: 3px;
  line-height: 17px;
  font-size: var(--h3-size);
  font-weight: var(--h3-weight);
  text-transform: uppercase;
  margin-bottom: 8px;
}
h4 {
  letter-spacing: 0;
  line-height: 27px;
  font-size: var(--h4-size);
  font-weight: var(--h4-weight);
  margin-bottom: 11px;
}
p {
  letter-spacing: 0;
  line-height: 20px;
  font-size: 14px;
  font-weight: var(--fw-regular);
}

.align-left {
  text-align: left;
}
.align-right {
  text-align: right;
}
.align-center {
  text-align: center;
}

.pre-header {
  letter-spacing: 3px;
  font-size: 14px;
  font-weight: var(--fw-medium);
  margin: 87px 0 22px;
  text-transform: uppercase;
}

.pre-header img {
  margin: 0 4px 0 0;
  padding-bottom: 0px !important;
}

.primary-bg {
  background-color: var(--primary-color);
}

.primary-bg .pre-header,
.primary-bg h1,
.primary-bg h2,
.primary-bg p {
  color: var(--defined-color-2);
}

.white-bg {
  background-color: #ffffff;
}

#about,
#process,
#faqs,
#team {
  scroll-margin-top: 68px;
}
#contact {
  scroll-margin: -140px;
}
nav a.active {
  color: var(--secondary-color) !important;
}


.intro .content-box {
  margin: 137px 0 260px;
}

/* Override Skeleton container width */
.container {
  max-width: 1126px;
}


body {
  font-family: var(--body-font);
  font-size: 14px;
  color: var(--primary-color);
  /* background-color: #20394d; */
  margin: 0;
  overflow-x: hidden;
}

/* *****************************************************************
   █████   █████  ██████████   NAVIGATION SECTION
   ***************************************************************** */

.site-header {
  background-color: var(--defined-color-1);
  padding: 1rem 0;
}

 .site-nav ul.nav,
 .intro-nav ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
  justify-content: center;
}

.site-nav ul.nav li,
.intro-nav ul.nav li {
  margin: 0;
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: 2px;
  opacity: 0;
}

.site-nav ul.nav li a,
.intro-nav ul.nav li a {
  position: relative;
  display: inline-block;
  color: var(--primary-color); /* default */
  text-decoration: none;
  text-transform: uppercase;
  /* transition: color 0.3s ease; */
  overflow: hidden;
}





.swap-hover {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.swap-hover span.text-primary {
  display: inline-block;
  transition: none;
}

.swap-hover::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #FF3831; /* or use var(--ec-red) */
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.swap-hover:hover span.text-primary {
  animation: slideFadeOutDown 0.05s forwards;
}

.swap-hover:hover::before {
  animation: slideFadeInUp 0.05s 0.05s forwards;
}




/* *****************************************************************
   █████   █████  ██████████   HERO SECTION
   ***************************************************************** */
   

.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 500px; /* default for mobile */
  background: var(--defined-color-2);
  z-index: -1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  position: relative;
  text-align: center;
  pointer-events: auto;
}

.hero-inner img {
    width: 934px;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 3rem;
}

.hero-spacer {
  height: 460px;
}

/* *****************************************************************
   █████   █████  ██████████   INTRO SECTION
   ***************************************************************** */
   

.intro {
  position: relative;
  z-index: 2;
  background-image: url('/wp-content/themes/echo-current/assets/images/bg-water-ripple.jpg');
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--defined-color-2);
  /* padding: 10rem 2rem; */
  /* min-height: 200vh; */
}

.intro-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--defined-color-2); /* optional: use var(--ec-grey) or transparent */
  padding: 2rem 0;
  z-index: 10;
}

.intro-nav .nav {
  display: flex;
  justify-content: center; /* or space-between / space-around */
  gap: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ─── Parallax Image Section ───────────────────────────── */

.parallax-image {
  margin-top: -160px;
  background-image: url('/wp-content/themes/echo-current/assets/images/coastline.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  height: 320px;
  position: relative;
  z-index: 3;
}

/* *****************************************************************
   █████   █████  ██████████   MARQUEE SECTION
   ***************************************************************** */
   

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  background: #fff; /* adjust as needed */
  padding: 60px 0 0px;
}

.marquee {
  display: inline-flex;
  animation: marquee-scroll 60s linear infinite;
}

.marquee span {
  display: inline-block;
  padding-right: 2rem; /* spacing between text repetitions */
  font-size: 90px; /* adjust size */
  font-weight: var(--fw-extraBold);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.text-outline {
  color: white; /* Fill color of the text */
        text-shadow: -1px -1px 0 var(--primary-color),
                     1px -1px 0 var(--primary-color),
                     -1px 1px 0 var(--primary-color),
                     1px 1px 0 var(--primary-color); /* Adjust color and offset as needed */
}

/* *****************************************************************
   █████   █████  ██████████   PROCESS SECTION
   ***************************************************************** */
   
.process-mobile {
  display: none;
}

.our-process {
  padding: 60px 0 0;
  background-color: var(--defined-color-2);
}

.our-process img {
  padding: 0 0 90px;
}

.our-process .trident-table {
  border-top: 1px solid var(--primary-color);
}

.our-process .trident-table::before {
  content:url('/wp-content/themes/echo-current/assets/images/trident.svg');
  position: relative;
  top: -14px;
  left: -3px;
  display: inline-block;
  background-color: var(--defined-color-2);
  padding: 0 0 0 6px;
  transform: rotate(180deg);
}

.our-process .trident-table-wrapper::after {
  content:url('/wp-content/themes/echo-current/assets/images/trident.svg');
  position: relative;
  top: -32px;
  left: 3px;
  display: inline-block;
  background-color: var(--defined-color-2);
  padding: 0 0 0 6px;
}

.our-process .trident-table-wrapper {
  display: flex;
}

.our-process .trident-table-wrapper .div1 {
  padding: 60px 70px 0;
}

.our-process .trident-table-wrapper .div2 {
  border-left: 1px solid var(--primary-color);
}

.div1,
.div2 {
  margin-top: -23px;
}

.our-process p {
  font-size: 16px;
  /* font-weight: var(--fw-medium); */
  line-height: 21px;
}

.our-process .trident-table-wrapper .div2 p {
  letter-spacing: 0;
  line-height: 20px;
  font-size: 14px;
  font-weight: var(--fw-regular);
  margin-bottom: 0px;
}

.our-process .trident-table-wrapper .div2 .process {
  border-bottom: 1px solid var(--primary-color);
  padding: 55px 70px 55px 46px;
  display: flex;
  flex-direction: row;
}

.our-process .trident-table-wrapper .div2 .process .icon {
  width: 76px;
  height: 76px;
  background-color: var(--defined-color-1);
  border-radius: 50%;
  flex: none;
}

.our-process .trident-table-wrapper .div2 .process .icon img {
  margin: 8px;
  height: 60px;
  width: 60px;
  padding: 0;
}

.our-process .trident-table-wrapper .div2 .process .content {
  margin-left: 23px;
}

/* *****************************************************************
   █████   █████  ██████████   FAQ SECTION
   ***************************************************************** */
   

.faqs-header {
  margin: -1px 0 0 0;
  background-image: url('/wp-content/themes/echo-current/assets/images/bg-tentacle.jpg');
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
}

.faqs-header h1 {
  margin-bottom: 87px;
}

.faqs-accordions {
  margin: 0;
  background-color: var(--defined-color-2);
}

.faq {
  max-width: 700px;
  margin: -210px auto 0;
  padding: 46px 48px;
  color: var(--primary-color);
  font-family: 'Montserrat', sans-serif;
  background-color: var(--defined-color-2);
}

.faq p {
  color: var(--primary-color);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--fw-semiBold);
  color: var(--primary-color);
  cursor: pointer;
  white-space: normal;
  line-height: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #FF3831;
}

.faq-toggle {
  font-size: 22px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg); /* + turns into an x-like shape */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 1000px; /* plenty of space for tall answers */
  opacity: 1;
  padding: 0 0 20px 0;
}

.faq-divider {
  position: relative;
  border-top: 1px solid var(--primary-color);
  margin: 40px 0 20px;
  height: 1px;
  text-align: center;
}

.faq-icon {
  width: 28px;
  height: 26px;
  fill: #FF3831; /* Makes it your red accent */
  background: #fff; /* Page background color so the line is “cut” behind the icon */
  padding: 0 10px;
  position: relative;
  top: -16px; /* Lifts it above the line */
  transform: rotate(-90deg);
}

/* *****************************************************************
   █████   █████  ██████████   TEAM SECTION
   ***************************************************************** */
   

.team .content-box {
  padding: 10px 110px 50px 0;
}

.team .pre-header {
  margin: 20px 0 22px
}

.team .bio {
  position: relative;
}

.team .bio .headshot {
  position: relative;
}

.team .bio .icon {
  width: 76px;
  height: 76px;
  background-color: var(--primary-color);
  border-radius: 50%;
  flex: none;
  margin-top: -38px;
  position: absolute;
  right: 40px;
}

.team .bio .icon svg,
.team .bio .icon img {
  margin: 8px;
  height: 60px;
  width: 60px;
  padding: 0;
}

.team .bio .info {
  margin: 20px 0 0;
  padding-right: 12%;
  color: var(--defined-color-2);
}

/* *****************************************************************
   █████   █████  ██████████   CONTACT SECTION
   ***************************************************************** */
   

.contact {
  margin: -180px 0 0;
  padding: 0 0 95px;
  background-image: url('/wp-content/themes/echo-current/assets/images/bg-wave.jpg');
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-form-container {
  background-color: var(--defined-color-2);
  padding: 46px;
  margin: -60px 0 80px;
}

.contact-form-container p {
  margin: 0;
}

/* Base style for input/textarea */
.contact-form .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  border: none;
  background-color: #f2f4f7;
  color: var(--primary-color);
  border-radius: 4px;
  margin-bottom: 26px;
  transition: all 0.2s ease;
}

.contact-form .form-control:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-color);
  background-color: #ffffff;
}

/* Label styling */
.contact-form .form-group label {
  display: block;
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: 1px;
  margin-bottom: 14px;
  color: var(--primary-color);
  text-transform: uppercase;
}

.contact-form-container textarea.form-control {
  min-height: 140px;
  resize: vertical; /* Optional: allows users to resize it if needed */
}

/* Submit button */
.contact-form .btn-submit {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: var(--fw-medium);
  font-size: 16px;
  border-bottom: 2px solid var(--secondary-color);
  cursor: pointer;
  height: 34px;
  padding-bottom: 2px;
  letter-spacing: 1px;
  text-transform: none;
  transition: color 0.2s ease, transform 0.3s ease;
  border-radius: 0;
  padding: 0;
  display: block;
  margin: 0 auto;
}

.contact-form .btn-submit:hover {
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}

input[type="text"]:focus,
input[type="email"]:focus {
  border: none;
}

.wpcf7-response-output {
  margin-top: 24px;
  padding: 16px 20px;
  border: 2px solid #28a745; /* Green border */
  background-color: #e9f8ee;
  color: #1b512d;
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
  animation: fadeSlideUp 0.6s ease forwards;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* *****************************************************************
   █████   █████  ██████████   FOOTER SECTION
   ***************************************************************** */
   

footer section {
  padding: 40px 0;
}
footer .logo {
  margin-top: -169px;
  margin-bottom: 40px;
}

footer p {
  font-size: 14px;
  font-weight: var(--fw-medium);
  margin-bottom: 6px;
}

/* Submit button */
footer .btn-submit {
  background: none;
  border: none;
  color: var(--defined-color-2);
  font-weight: var(--fw-medium);
  font-size: 14px;
  border-bottom: 2px solid var(--secondary-color);
  cursor: pointer;
  height: 34px;
  padding-bottom: 2px;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.2s ease, transform 0.3s ease;
  border-radius: 0;
  padding: 0;
  display: block;
  margin: 0 auto;
}

footer .btn-submit:hover {
  color: var(--secondary-color);
  border-color: var(--primary-color);
  transform: translateY(-4px);
}





/* ─── RESPONSIVE QUERIES ───────────────────────────── */
/* ─── RESPONSIVE QUERIES ───────────────────────────── */
/* ─── RESPONSIVE QUERIES ───────────────────────────── */


@media (max-width: 1024px) {
  .site-nav ul.nav {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .site-nav ul.nav {
    gap: 2rem;
    justify-content: space-around;
  }

  .site-nav ul.nav li {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .site-nav ul.nav {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .site-nav ul.nav li {
    font-size: 12px;
  }
}

@media (max-width: 550px) {

  .pre-header {
    letter-spacing: 2px;
    font-size: 12px;
  }

  .pre-header img {
    height: 10px;
  }

  h1 {
    letter-spacing: 0;
    line-height: 34px;
    font-size: 28px;
  }

  .intro,
  .faqs-header,
  .team {
    padding-top: 2px;
  }

  .faq {
    margin: -40px 0 40px !important;
    padding: 22px 16px;
    display: inline-block;
  }
  
  .our-process .trident-table-wrapper .div2 .process {
    padding: 55px 0;
  }

  .team .content-box {
    padding: 10px 0px 50px 0;
  }

  .contact {
    margin: -200px 0 0;
    padding-top: 200px;
  }


  .contact-form-container {
    padding: 22px 16px;
    display: inline-block;
  }

  footer .logo {
    margin-top: -179px;
    margin-bottom: 80px;
  }
  footer section .footer-col-1 {
    margin: 10px 0 -35px;
  }
  footer section .footer-col-2 {
    margin-bottom: 20px;
  }
  footer section .footer-col-3 {

  }

}

@media (max-width: 768px)  {

  .intro-nav {
    display: none;
  }

  .hero-inner img {
    width: 90%;
  }

  .pre-header {
    margin-top: 60px;
  }

  .intro .content-box {
    margin: 40px 0 220px;
  }

  .marquee-wrapper {
    padding-top: 30px;
  }
  .marquee span {
    font-size: 70px;
  }

  .process-desktop {
    display: none;
  }
  .process-mobile {
    display: block;
  }

  .our-process {
    padding-top: 0px;
  }

  .our-process .content-box {
    margin: 20px 0 60px;
  }

  .our-process .trident-table-wrapper .div2 {
    border-left: none;
  }

  .our-process .trident-table-wrapper .div2 .process {
    border-bottom: none;
  }

  .faq {
    margin: -40px 0 40px;
    border-bottom: 1px solid var(--defined-color-1);
  }

  .team .bio.andy .icon {
    background-color: var(--defined-color-2);
  }
  .team .bio.andy .icon path {
    stroke: var(--primary-color);
  }
  .team .bio.andy .info {
    color: var(--primary-color);
  }
  .team .bio.andy .info p {
    margin-bottom: 40px;
  }

  [class*="sm-"], [class*="md-"], [class*="lg-"] {
    margin-left: 0;
  }

  .mobile-menu-container {
    display: grid;
  }

}

@media (max-width: 1000px) and (min-width: 769px) {

  .hero-inner img {
    width: 90%;
  }

  .pre-header {
    letter-spacing: 2px;
    font-size: 12px;
  }

  .pre-header img {
    height: 10px;
  }

  h1 {
    letter-spacing: 0;
    line-height: 34px;
    font-size: 28px;
  }

  .our-process .pre-header {
    margin-top: 0px;
  }
  .our-process .trident-table-wrapper .div1 {
    padding: 60px 30px 0;
  }
  .faq {
    margin-top: -50px;
  }
}

@media screen and (min-width: 769px) {
  .mobile-menu-container {
    display: none;
  }

}

/* =========================================
   Skeleton Responsive Utilities
   ========================================= */

/* Shared column float/gutter setup */
[class*="sm-"], [class*="md-"], [class*="lg-"] {
  float: left;
  /* margin-left: 4%; */
  /* margin-left: 0; */
}
.row .columns:first-child[class*="sm-"],
.row .columns:first-child[class*="md-"],
.row .columns:first-child[class*="lg-"] {
  margin-left: 0;
}

/* ---------- Small (phones / small tablets) ---------- */
@media (max-width: 768px) {
  .sm-zero    { display: none; }
  .sm-one     { width: 4.6667% !important; }
  .sm-two     { width: 13.3333% !important; }
  .sm-three   { width: 22% !important; }
  .sm-four    { width: 30.6667% !important; }
  .sm-five    { width: 39.3333% !important; }
  .sm-six     { width: 48% !important; }
  .sm-seven   { width: 56.6667% !important; }
  .sm-eight   { width: 65.3333% !important; }
  .sm-nine    { width: 74% !important; }
  .sm-ten     { width: 82.6667% !important; }
  .sm-eleven  { width: 91.3333% !important; }
  .sm-twelve  { width: 100% !important; }
}

/* ---------- Medium (tablets) ---------- */
@media (max-width: 1000px) and (min-width: 769px) {
  .md-one     { width: 4.6667% !important; }
  .md-two     { width: 13.3333% !important; }
  .md-three   { width: 22% !important; }
  .md-four    { width: 30.6667% !important; }
  .md-five    { width: 39.3333% !important; }
  .md-six     { width: 48% !important; }
  .md-seven   { width: 56.6667% !important; }
  .md-eight   { width: 65.3333% !important; }
  .md-nine    { width: 74% !important; }
  .md-ten     { width: 82.6667% !important; }
  .md-eleven  { width: 91.3333% !important; }
  .md-twelve  { width: 100% !important; }
}

/* ---------- Large (desktop overrides) ---------- */
@media (min-width: 1001px) {
  .lg-one     { width: 4.6667% !important; }
  .lg-two     { width: 13.3333% !important; }
  .lg-three   { width: 22% !important; }
  .lg-four    { width: 30.6667% !important; }
  .lg-five    { width: 39.3333% !important; }
  .lg-six     { width: 48% !important; }
  .lg-seven   { width: 56.6667% !important; }
  .lg-eight   { width: 65.3333% !important; }
  .lg-nine    { width: 74% !important; }
  .lg-ten     { width: 82.6667% !important; }
  .lg-eleven  { width: 91.3333% !important; }
  .lg-twelve  { width: 100% !important; }
}

/* ---------- Reorder Utilities ---------- */
/* Works only if you set display:flex on the row at that breakpoint */
@media (max-width: 768px) and (min-width: 551px) {
  .sm-order-1 { order: 1; }
  .sm-order-2 { order: 2; }
  .sm-order-3 { order: 3; }
}
@media (max-width: 960px) and (min-width: 769px) {
  .md-order-1 { order: 1; }
  .md-order-2 { order: 2; }
  .md-order-3 { order: 3; }
}
@media (min-width: 961px) {
  .lg-order-1 { order: 1; }
  .lg-order-2 { order: 2; }
  .lg-order-3 { order: 3; }
}

/* ---------- Small screens (≤550px) ----------
   Stack full-width by default
----------------------------------------------*/
@media (max-width: 550px) {
  [class*="sm-"], [class*="md-"], [class*="lg-"] {
    width: 100%;
    margin-left: 0;
    float: none;
  }
}




:root {
  --hamburger-size: 26px;
  --bar-h: 2px;
  --bar-r: 2px;
  --anim: 240ms cubic-bezier(.4,0,.2,1);
  --drawer-w: 82vw;
  --drawer-max: 380px;
  --backdrop: rgba(0,0,0,.5);
  --text: #111;
  --bg: #fff;
  --accent: #FF3831; /* highlight color */
}

/* --- Layout basics --- */
.site-header {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 12px 16px;
  position: relative;
  z-index: 20;
}
.primary-nav { display: none; }
.hamburger { display: inline-flex; }

@media (min-width: 769px) {
  .primary-nav { display: block; }
  .hamburger { display: none; }
  .mobile-drawer, .drawer-backdrop { display: none !important; }
}

.mobile-menu-container {
  /* display: grid; */
  grid-template-columns: auto 1fr auto; /* hamburger | logo | spacer */
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 14px 20px;
  background-color: #fff;
  border-bottom: 1px solid var(--defined-color-1);
}

/* Top-bar logo: hidden by default on mobile, revealed via .show-logo */
.mobile-top-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}
.mobile-top-logo img{
  display:block;
  height: 44px;
  width: auto;
}

.mobile-menu-spacer {
  width: var(--hamburger-size);
  height: 1px; /* just structural */
}

/* When About is in view */
.show-logo .mobile-top-logo{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* --- Hamburger button --- */
.hamburger {
  width: var(--hamburger-size);
  height: var(--hamburger-size);
  position: relative;
  top: 33%;
  transform: translateY(-50%);
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hamburger .bar {
  position: absolute;
  left: 0; right: 0; margin: auto;
  width: 100%;
  height: var(--bar-h);
  background: var(--text);
  border-radius: var(--bar-r);
  justify-self: start;
  margin: 0;
  transform-origin: 50% 50%;
  transition: transform var(--anim), opacity var(--anim), top var(--anim), background var(--anim);
}
.hamburger .bar:nth-child(1) { top: 6px; }
.hamburger .bar:nth-child(2) { top: 12px; }
.hamburger .bar:nth-child(3) { top: 18px; }

/* Active hamburger (X) */
.hamburger.is-active .bar:nth-child(1) {
  top: 11px; transform: rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
  top: 11px; transform: rotate(-45deg);
}

/* --- Mobile drawer panel --- */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0; height: 100dvh;
  width: min(var(--drawer-w), var(--drawer-max));
  background: var(--bg); color: var(--text);
  transform: translateX(100%) scale(.985);
  transition: transform 320ms cubic-bezier(.25,.8,.25,1);
  box-shadow: -12px 0 24px rgba(0,0,0,.06);
  z-index: 19;
  display: flex;
  flex-direction: column;
  padding: 0;
  will-change: transform;
  overflow: hidden;
  perspective: 800px;
  transform-style: preserve-3d;
}

/* soft rim light on the leading edge */
.mobile-drawer::before{
  content:"";
  position:absolute; inset:0 100% 0 auto; width:18px; pointer-events:none;
  background: linear-gradient(to left, rgba(255,255,255,.55), rgba(255,255,255,0));
  opacity:0; transition: opacity 320ms ease;
}

/* --- Drawer header (logo) --- */
.drawer-header {
  display: flex; 
  align-items: center; 
  justify-content: flex-start;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.drawer-logo img {
  display: block;
  height: 60px;
  /* max-width: 180px; */
}

/* --- Drawer list --- */
.drawer-list {
  list-style: none;
  margin: 0;
  padding: 12px 20px 24px;
  overflow-y: auto;
  flex: 1;
}
.drawer-list li {
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.drawer-list li:last-child { border-bottom: 0; }
.drawer-list a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: inherit;
  position: relative;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: color var(--anim), background-size 240ms ease;
}
.drawer-list a:hover, .drawer-list a:focus {
  color: var(--accent);
  background-size: 100% 2px;
}

/* --- Backdrop --- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  opacity: 0;
  transition: opacity 200ms ease, backdrop-filter 360ms ease, -webkit-backdrop-filter 360ms ease, background 360ms ease;
  z-index: 18;
}

.drawer-content{
  transform: translateX(8px) translateZ(0) rotateY(.2deg);
  transition: transform 460ms cubic-bezier(.18,.84,.26,1.02); /* gentle overshoot */
  will-change: transform;
}

/* --- Open states --- */
.nav-open .mobile-drawer { 
  transform: translateX(0) scale(1);
  box-shadow: -24px 0 56px rgba(0,0,0,.12);
}
.nav-open .mobile-drawer::before{ opacity:1; }
.nav-open .drawer-backdrop { 
  opacity: 1;
  background: rgba(0,0,0,.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-open .drawer-backdrop[hidden] { display: block; }
.nav-open .drawer-content{ transform: translateX(0) translateZ(0) rotateY(0deg); }
body.nav-open { overflow: hidden; }

/* --- Backdrop fade animation --- */
@keyframes backdropFade { from {opacity:0;} to {opacity:1;} }
.nav-open .drawer-backdrop {
  animation: backdropFade 180ms ease-out both;
  animation-delay: 0ms;
}

/* --- Content animation: fade + right-to-left slide --- */
@keyframes fadeSlideInRight {
  from { opacity: 0; transform: translate(6px, 6px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

/* Header/logo animation */
.nav-open .drawer-header {
  animation: fadeSlideInRight 220ms cubic-bezier(.4,0,.2,1) both;
  animation-delay: 150ms;
}

/* Menu item cascade */
.mobile-drawer .drawer-list li {
  opacity: 0;
  transform: translate(6px, 6px);
}
.nav-open .mobile-drawer .drawer-list li {
  animation: fadeSlideInRight 240ms cubic-bezier(.4,0,.2,1) both;
}
.nav-open .mobile-drawer .drawer-list li:nth-child(1){ animation-delay: 210ms; }
.nav-open .mobile-drawer .drawer-list li:nth-child(2){ animation-delay: 255ms; }
.nav-open .mobile-drawer .drawer-list li:nth-child(3){ animation-delay: 300ms; }
.nav-open .mobile-drawer .drawer-list li:nth-child(4){ animation-delay: 345ms; }
.nav-open .mobile-drawer .drawer-list li:nth-child(5){ animation-delay: 390ms; }

/* --- Accessibility: reduce motion --- */
@media (prefers-reduced-motion: reduce) {
  .mobile-drawer, .drawer-backdrop { transition: none !important; }
  .drawer-content{ transform: none !important; transition: none !important; }
  .nav-open .drawer-backdrop,
  .nav-open .drawer-header,
  .nav-open .mobile-drawer .drawer-list li {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .mobile-top-logo{ transition: none; transform: none; }
}




/* ------------------------ SCROLL AND ANIMATE --------------------- */
/* Hidden state before reveal */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

/* When revealed (JS adds .in-view) */
.in-view[data-animate] {
  opacity: 1; /* final state if animation doesn't set it */
}

/* Optional: subtle transform presets if your keyframe doesn't move */
[data-animate].preset-y { transform: translateY(12px); }
.in-view[data-animate].preset-y { transform: none; transition: transform 600ms cubic-bezier(.4,0,.2,1); }

[data-animate].preset-x { transform: translateX(12px); }
.in-view[data-animate].preset-x { transform: none; transition: transform 600ms cubic-bezier(.4,0,.2,1); }

/* Reduced motion: show immediately */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
