/*!
Theme Name: ember
Theme URI: https://sparkfirebranding.com
Author: Cody Creswell
Author URI: https://sparkfirebranding.com
Description: Description
Version: 2.0
Text Domain: ember
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

/* Reset Styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html, body {
      width: 100%;
      min-height: 100vh;
      font-family: "trade-gothic-next", sans-serif;
      font-weight:300;
      line-height: 2.06;
      font-size: 17px;
      color: #545454;
      overflow-x:clip;
    }

    html {
        scroll-behavior:smooth;
    }

    body {
      overflow-x:clip;
    }
    img, picture, video, canvas, svg {
      display: block;
      max-width: 100%;
    }

    img.fill {
      width:100%;
      display:block;
      margin:0 auto;
    }

    input, button, textarea, select {
      font: inherit;
    }

    a {
      text-decoration: none;
      color: inherit;
    }

    ul, ol {
      list-style: none;
    }

    .no-under {
        text-decoration:none;
    }

    /******end reset styles******/

    /* Grid System */
    .container {
      width: 85%;
      max-width: 1440px;
      margin: 0 auto;
      /*padding: 0 40px;*/
    }

    .row {
      display: flex;
      flex-wrap: wrap;
      align-items:center;
      margin: 0 -30px;
    }

    .row.no-lr-margin {
      margin:0;
    }

    .row.align-top {
      align-items:start;
    }

    .row.equal-height {
      align-items:stretch;
    }

    .row .align-right * {
      margin-left:auto;
      margin-right:0;
    }

    /* Column Classes */
    [class*="col-"] {
      padding: 0 30px;
      flex: 0 0 auto;
    }


    .col-1  { width: 8.3333%; }
    .col-2  { width: 16.6667%; }
    .col-3  { width: 25%; }
    .col-4  { width: 33.3333%; }
    .col-5  { width: 41.6667%; }
    .col-6  { width: 50%; }
    .col-7  { width: 58.3333%; }
    .col-8  { width: 66.6667%; }
    .col-9  { width: 75%; }
    .col-10 { width: 83.3333%; }
    .col-11 { width: 91.6667%; }
    .col-12 { width: 100%; }

  
    @media (max-width: 980px) {
      .col-lg-1  { width: 8.3333%; }
      .col-lg-2  { width: 16.6667%; }
      .col-lg-3  { width: 25%; }
      .col-lg-4  { width: 33.3333%; }
      .col-lg-5  { width: 41.6667%; }
      .col-lg-6  { width: 50%; }
      .col-lg-7  { width: 58.3333%; }
      .col-lg-8  { width: 66.6667%; }
      .col-lg-9  { width: 75%; }
      .col-lg-10 { width: 83.3333%; }
      .col-lg-11 { width: 91.6667%; }
      .col-lg-12 { width: 100%; }

      .row .col-lg-12, 
      .row .col-lg-6,
      .row .col-sm-12 {
        margin-bottom:30px;
      }

      .row .col-lg-12:last-child,
      .row .col-sm-12:last-child {
        margin-bottom:0;
      }

      .no-mob {
        display:none !important;
      }

    }

    @media (max-width: 576px) {
      .col-sm-1  { width: 8.3333%; }
      .col-sm-2  { width: 16.6667%; }
      .col-sm-3  { width: 25%; }
      .col-sm-4  { width: 33.3333%; }
      .col-sm-5  { width: 41.6667%; }
      .col-sm-6  { width: 50%; }
      .col-sm-7  { width: 58.3333%; }
      .col-sm-8  { width: 66.6667%; }
      .col-sm-9  { width: 75%; }
      .col-sm-10 { width: 83.3333%; }
      .col-sm-11 { width: 91.6667%; }
      .col-sm-12 { width: 100%; }
    }

    /* End Grid System */

    /* Utility Classes */
    .text-center { text-align: center; }
    .text-left { text-align: left; }
    .text-right { text-align: right; }
    .relative {position:relative;}

    .max {
      width:100%;
      max-width:750px;
      margin:0 auto;
    }

    .max.m-865 {
      max-width:865px;

    }

    .max.m-672 {
        max-width:672px;
    }

    .max.m-640 {
      max-width:640px;
    }

    .max.m-550 {
      max-width:550px;
    }

    .max.m-490 {
        max-width:490px;
    }

    .max.m-417 {
      max-width:417px;
    }

    .max.left-align {
      margin-left:0;
    }


/* Typography
–––––––––––––––––––––––––––––––––––––––––––––––––– */


h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 300;
}

h1 {
 font-family: "larken", sans-serif;
font-weight:normal;
  font-style: normal;
   font-size: 50px;
  line-height:1.2;
}

h2 {
  font-family: "larken", sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 75px;
  line-height:1;
  letter-spacing:11.5px;
}

h3 {
  font-family: "urw-din", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height:25px;
  font-size:25px;
  letter-spacing:5px;
}

h4 {
  font-family: "larken", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height:30px;
  font-size:25px;
  letter-spacing:1px;
}

h5 {
 font-family: "urw-din", sans-serif;
  font-weight: 500;
  font-size:20px;
  line-height:30px;
  letter-spacing:3px;
}

h5.demi {
    letter-spacing:normal;
    line-height:1.7;
}

h6 {
  font-family: "urw-din", sans-serif;
  font-weight: 400;
  font-size:18px;
  line-height: 25px;
  letter-spacing:2px;
}

h6.thirty {
    font-size:30px;
    line-height:1.5;
}


p {
  font-family: "urw-din", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size:18px;
  line-height:25px;
  letter-spacing:2px;
  margin-bottom:30px;
}

p.large {
    font-family: "urw-din", sans-serif;
    font-weight: 500;
    font-size:20px;
    letter-spacing:normal;
    line-height: 1.7;
}

p.small,
.panel-description p,
.panel-description,
.single-post p {
    font-family: "urw-din", sans-serif;
  font-weight: 400;
  font-size:15px;
  line-height:1.87;
  letter-spacing:normal;
}

p strong {
    font-weight:600;
}

p.disclaimer {
  font-size: 12px;
  line-height:2.5;
  color:#FFF;
}

p strong {
  font-weight: 700;
}
.bold {
  font-weight: 700;
}

.mb-none {
  margin-bottom: 0 !important;
}

.upper {
  text-transform: uppercase;
}
.lower {
    text-transform: lowercase;
}

.italic {
  font-style: italic;
}
.under {
  text-decoration: underline;
}

.hover-under:hover {
  text-decoration:underline;
}

.no-btm {
  margin-bottom:0 !important;
}

.mb-20 {
  margin-bottom:20px;
}

.mb-30 {
  margin-bottom:30px;
}

.mb-100 {
    margin-bottom:100px;
}

.mt-5 {
  margin-top:5px !important;
}

.mt-10 {
  margin-top:10px;
}

.mt-15 {
  margin-top:15px;
}

.mt-20 {
  margin-top:20px !important;
}

.mt-30 {
  margin-top:30px;
}

.mt-40 {
  margin-top:40px;
}

.mt-50 {
  margin-top:50px;
}

.mt-60 {
  margin-top:60px;
}

.mt-70 {
  margin-top:70px;
}

.mt-80 {
  margin-top:80px;
}

.mt-100 {
  margin-top:100px;
}

.mt-110 {
  margin-top:110px;
}

.mt-130 {
  margin-top:130px;
}

.mt-180 {
    margin-top:180px;
}

.lh-70 {
  line-height:70px;
}

.gold {
    color:#feb161;
}

.white {
    color:#FFF;
}

.dark-blue,
.single-post a {
    color:#2c3b4e;
}

.maroon {
    color:#a35139;
}

.grey {
    color:#545454;
}

.brown {
    color:#77371e;
}

/* Links
–––––––––––––––––––––––––––––––––––––––––––––––––– */

a.text-under,
.single-post a {
  text-decoration:underline;
}

a.text-under:hover {
  text-decoration:none;
}

.btn, 
#gform_submit_button_1 {
    font-size: 18px;
    font-weight: 500;
    font-family: "urw-din", sans-serif;
    letter-spacing:2px;
    color: #feb161;
    padding-bottom:3px;
    position:relative;
    text-decoration:none;
    cursor:pointer;
    border: none !important;
}

a.btn::after,
#gform_submit_button_1::after {
    content: '';
    position: absolute;
    bottom: -2px;       /* adjust to taste */
    left: 0;
    width: 100%;
    height: 2px;        /* underline thickness */
    background: #feb161;
    transform: scaleX(1);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

a.btn:hover::after,
#gform_submit_button_1:hover::after {
    transform: scaleX(0);
}

#gform_submit_button_1 {
    background: transparent !important;
    box-shadow: none !important;
   /* border-bottom:2px solid #feb161 !important;
    padding-bottom:5px;*/
}


#navigation {
    width:100%;
    position:sticky;
    background-color:#FFF;
    top:0;
    z-index:999;
}

.logo,
.footer-logo {
    padding:30px 0;
    display:block;
    margin:0 auto;
    width:201px;
}

.footer-logo {
    padding:0 0 70px 0;
    width:100%;
    border-bottom:1px solid #feb161;
}

.footer-logo img {
    width:201px;
    margin:0 auto;
}

.hamburger {
    width: 64px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Both icons share the same transition */
.icon-hamburger,
.icon-close {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Hamburger — default visible, base state */
.icon-hamburger {
    display: block;
    width: 100%;
    transform-origin: center center;
}

/* Close — hidden by default, centred over the hamburger */
.icon-close {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    /* Start rotated so it "spins in" to the X position */
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 0;
}

/* Open state — hamburger pivots and fades out */
body.nav-open .icon-hamburger {
    opacity: 0;
    transform: rotate(15deg) scale(0.8);
}

/* Open state — close rotates into position and fades in */
body.nav-open .icon-close {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.nav-open .hamburger {
    z-index:1000;
}

body.nav-open {
    overflow: hidden;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #2c3b4e;
    z-index: 999;
    padding-top: 50px;
    overflow-y: auto;
    pointer-events: none;
    /* Hidden: clipped entirely from the bottom up */
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-open .nav-menu {
    clip-path: inset(0 0 0% 0);
    pointer-events: all;
}

/* Items: hidden by default, slide + fade in with stagger on open */
.nav-menu .active-logo,
.nav-menu ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

body.nav-open .nav-menu .active-logo {
    opacity: 1;
    transform: none;
    transition-delay: 0.3s;
}

body.nav-open .nav-menu ul li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.38s; }
body.nav-open .nav-menu ul li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.45s; }
body.nav-open .nav-menu ul li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.52s; }
body.nav-open .nav-menu ul li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.59s; }
body.nav-open .nav-menu ul li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.66s; }
body.nav-open .nav-menu ul li:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.73s; }

.nav-menu .active-logo img {
    display:block;
    margin:0 auto;
}

.nav-menu ul {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    height:100%;
    margin:0 auto;
    margin-top:40px;
    width: fit-content;
}

.nav-menu ul li {
    padding-bottom:30px;
    margin-bottom:30px;
    border-bottom:2px solid #feb161;
    text-align:center;
    width: 100%; /* each li stretches to match that width */
}

.nav-menu ul li:last-child {
    border-bottom:none;
}

.nav-menu ul li a {
    font-family: "Larken", sans-serif;
  font-size: 55px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: 11.5px;
  text-align: center;
  color:  #FAF8F5;
  text-transform:uppercase;
  text-decoration: none;
}

#footer {
    background-color:#2c3b4e;
    padding:75px 30px 25px 30px;
    position:relative;
        z-index:5;
}

.footer-contact {
    display:flex;
    margin:0 auto;
    width:100%;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
}

.footer-contact p {
    font-size: 18px;
  font-weight: normal;
  font-stretch: normal;
  font-style: normal;
  line-height: 1.56;
  letter-spacing: 2px;
  text-align: center;
    color:#FFF;
    padding-right:25px;
    margin-right:25px;
   margin-bottom: 15px;
    height:28px;
    border-right:1px solid #feb161;
}

.footer-contact p:last-child {
    margin-right:0;
    padding-right:0;
    border:none;
}

/* Ensure full view sizing and relative positioning */
#hero-wrapper,
#sub-hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 100px);
  overflow: hidden;
}

#sub-hero {
    position: sticky;
    top: 0;
    height: 700px;
    z-index: 1;
    pointer-events:none;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/hero_home_dark.webp');
  background-size: cover;
  background-position: center;
}

.hero-bg.about {
    background-image:url(img/hero-about-us-v2.webp);
}

.hero-bg.team {
    background-image:url(img/team-hero.webp);
}

/* Position the caption initially off-screen at the bottom */
.hero-caption {
  position: absolute;
  bottom: -20%; /* Start completely or partially below the viewport */
  text-align: left;
  width: 100%;
  z-index: 1000;
  max-width: 567px;
  left: 7.5%;
}

.next-section {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 150px 0;
  background: #ffffff;
}

.next-section.no-top {
    padding-top:0;
}

img.stretch {
    width:100%;
    display:block;
    max-width:650px;
    margin-left:auto;
}

img.stretch.centered {
    margin:0 auto;
}

.logo-overlay {
    position:absolute;
    bottom:-50px;
    left:-20px;
    width: 180px;
    transform: translateY(var(--parallax-y, 0px));
}

.logo-overlay.right {
    left:auto;
    right:80px;
}

.grey-block {
    padding:50px 0;
    background-color: #faf8f5;
}

.grey-block.extra-pad {
    padding:150px 0;
}

.rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: inline-block;
}

.projects-wrapper {
   position: absolute;
    top: 50px;
    bottom: 50px;       
    right: 0;
    width: 70%;
    overflow: hidden; /* clips the project divs cleanly */
}

/* base state — 5 equal slices */
.project-item {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: calc((100% - 60px) / 5);
    overflow: hidden;
    transition: width 0.4s ease, z-index 0s 0.4s;
    height:100%;
    z-index:1;
    background-size:cover;
    background-position:50% 50%;
    background-repeat:no-repeat;
    display:flex;
    align-items:flex-end;
    padding:20px;
}

.project-item:nth-child(1) { left: 0; }
.project-item:nth-child(2) { left: calc((100% - 60px) / 5 + 15px); }
.project-item:nth-child(3) { left: calc(2 * (100% - 60px) / 5 + 30px); }
.project-item:nth-child(4) { right: calc((100% - 60px) / 5 + 15px); }
.project-item:nth-child(5) { right: 0; }

/* expanded state on hover */
.project-item.is-expanded {
    width: 60%;
    z-index: 10;
    transition: width 0.4s ease, z-index 0s 0s;
}

.project-item h5 {
    opacity:0;
    transition: opacity 0.4s ease
}

.project-item.is-expanded h5 {
    opacity:1;
}

#team-wrap {
    padding:80px 0;
    background-color: #FAF8F5;
    position:relative;
}

.relative-zi101 {
    z-index:2;
}

#team-wrap.more-pad {
    padding:120px 0;
}

.about-logomark {
    position: absolute;
    z-index: 1;
    max-width: 750px;
    left: 50%;
    transform: translateX(-45%) translateY(var(--parallax-y, 0px));
    margin-top: 100px;
    will-change: transform;
}

/* =============================================
   Team Grid
   ============================================= */

.team-group {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 80px;
    margin-bottom: 80px;
}

/* Narrow left column: vertical line + rotated category label */
.team-category-label {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Height set by JS to match the first row of photos */
}

.team-category-line {
    flex: 1;          /* grows to fill all space above the text */
    min-height: 0;
    width: 1px;
    background-color: #feb161;
    margin-bottom: 12px;
}


/* Wrapper that holds the panel + grid, takes the flex space from the old .team-members */
.team-members-area {
    flex: 1;
    position: relative; /* anchor for the absolute panel */
}

/* ── Detail panel ─────────────────────────────────────────── */

/* Panel sits absolutely over the photo grid */
.team-member-panel {
    /*position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    z-index: 10;
    opacity: 0;
    pointer-events: none; 
    transform: translateY(-6px);
    transition: opacity 0.35s ease, transform 0.35s ease;*/
}

.team-member-panel.is-open {
    /*opacity: 1;
    pointer-events: auto;  /* 'auto' is the correct HTML value; 'all' is SVG-only */
    /*transform: translateY(-50%);*/
}


.team-member-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 10px)); /* offset for the entrance animation */
    width: 80%;
    max-width: 960px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.team-member-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%); /* perfectly centered */
}

/* passthrough — no longer needs overflow:hidden */
.panel-collapse-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.92);
}

.panel-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 60px;
    position: relative;
}

.dark-overlay {
    position:absolute;
    width:100%;
    height:100%;
    background-color:rgba(0,0,0,0.6);
    z-index:1;
    opacity:0;
    transition:opacity 0.35s ease;
    pointer-events:none;
}

.dark-overlay.is-open {
    opacity:1;
}

.panel-photo {
    flex: 0 0 30%;
    padding-left: 60px;
    min-width:320px;
}

.panel-photo img {
    width: 100%;
    aspect-ratio: 5 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.panel-info {
    flex: 1;
    padding-top: 10px;
    padding-right: 60px; /* clear of the close button */
}

.panel-info .panel-name {
    font-family: "urw-din", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2c3b4e;
    margin-top: 0;
    margin-bottom: 6px;
}

.panel-info .panel-job-title {
   margin-bottom:10px;
}

.panel-separator {
    margin-bottom:10px;
    border-bottom:1px solid #feb161;
    width:42px;
}

.panel-description,
.panel-description p {
    font-size: 15px;
    line-height: 1.76;
    color: #545454;
}

.panel-description p:last-child {
    margin-bottom:0;
}

/* Prev / next arrows */
.panel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 36px;
    font-weight: 300;
    color: #2c3b4e;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    width:65px;
}

.panel-prev { left: 8px; }
.panel-next { right: 44px; } /* offset so it doesn't collide with the close X */

.panel-next img {
    transform:rotate(180deg);
}

/* Close button */
.panel-close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width:32px;
}

/* Clickable cursor on grid items */
.team-member {
    cursor: pointer;
}

/* 3-column employee grid — wraps automatically for 4+ members */
.team-members {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
}

/* Photo — consistent portrait aspect ratio with object-fit */
.team-member-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

/* Name */
.team-member-name {
    text-transform: uppercase;
    margin-top: 18px;
    margin-bottom: 4px;
}

/* Job title */
.team-member-title {
    margin-bottom:0;
}

/* Ticker */
.ticker {
    width: 100%;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll 22s linear infinite;
}

.ticker-item {
    white-space: nowrap;
    padding: 0 30px;
    font-size: 25px;
    letter-spacing: 5px;
    color: #545454;
    text-transform: uppercase;
    font-family: "urw-din", sans-serif;
    font-weight: 500;
}

.ticker-divider {
    flex-shrink: 0;
    width: 2px;
    height: 25px;
    background-color: #feb161;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


.team-member-name.panel-name {
    font-family: "urw-din", sans-serif;
    font-size:18px;
    font-weight:500;
    color:#545454;
    letter-spacing:3px;
}

.last-section {
    padding-bottom:100px;
}

.top-arrow::before {
    position: absolute;
    top: 0;
    transform: rotate(90deg);
    content: "";
    background-image: url(img/arrow_prev_brown.svg);
    background-size: 30px auto;
    height: 30px;
    width: 37px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.top-arrow {
    position:relative;
    padding-top:30px;
}

.gfield_label {
    display:none !important;
}

.contact-form-holder input {
    border: none !important;
    border-bottom: solid 1px #545454 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.contact-form-holder .gfield.half {
    width:48%;
}

.contact-form-holder .gfield.full {
    width:100%;
}

.contact-form-holder .gform-theme--foundation .gform_fields {
    display:flex;
    flex-wrap:wrap;
    justify-content: space-between;
}

::placeholder {
  font-size: 18px;
  font-family:"urw-din", sans-serif;
  font-weight:500;
  letter-spacing:3.5px;
  color:#545454;
  text-transform:uppercase;
}

.contact-form-holder .gform-theme--foundation .gform_fields input {
   /* color:#000;*/
   font-size: 18px;
  font-family:"urw-din", sans-serif;
  font-weight:500;
  letter-spacing:3.5px;
  color:#545454;
  text-transform:uppercase;
}

#gform_submit_button_1 {
    font-size: 18px;
  font-weight: 500;
  font-family: "urw-din", sans-serif;
  letter-spacing: 2px;
  color: #feb161;
  padding-bottom: 3px;
  margin: 0 auto;
    margin-top: 0px;
  margin-top: 40px;
  cursor:pointer;
  padding-left:0;
  padding-right:0;
}

#project-filter {
    background-color:#faf8f5;
    padding:22px;
     overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

#project-filter::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-track {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: max-content;
    margin: 0 auto;
    padding: 0 30px;
    gap: 0;
}

.filter-item {
    background: none;
    border: none;
    cursor: pointer;
    font-family:"urw-din", sans-serif;
    font-weight:500;
    letter-spacing: 3px;
    font-size:20px;
    color:#545454;
    text-transform: uppercase;
    padding: 0 28px;
    transition: opacity 0.2s ease;
}

.filter-item:hover,
.filter-item.active {
    opacity:0.4;      /* brown/orange — swap to your variable */
}

.filter-divider {
    display: inline-block;
    width: 1px;
    height: 25px;
    background: #feb161;
    flex-shrink: 0;
}

/* ── Projects list ──────────────────────────────────────────── */
#projects-list {
    padding: 80px 0;
}

.project-row {
    padding: 60px 0;
}

.project-row:first-of-type {
    padding-top: 0;
}

/* Info column */
.project-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.project-title {
    text-transform: uppercase;
    margin: 0;
}

.project-location {
    margin: 0 0 14px;
    color:#545454;
}

.project-divider {
    width: 42px;
    border: none;
    border-top: 1px solid #feb161;
    margin: 12px 0 12px auto; /* right-aligned */
}

.project-status {
    color:#545454;
    margin: 0;
}

/* ── Project slider (CSS flex — no library) ─────────────────────── */
.project-media-wrap {
    position: relative;
    overflow: visible;
}

.project-slider-inner {
    width: 60%;
    overflow: hidden;
    cursor: pointer;
    will-change: width;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-media-wrap.is-expanded .project-slider-inner {
    width: 200%;
    cursor: none;
    user-select: none;
}

/* Flex track — JS sets translateX for navigation */
.project-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

/* Slides — flex-basis transitions in sync with the container width */
.project-slide {
    flex: 0 0 100%;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: flex-basis 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-media-wrap.is-expanded .project-slide {
    flex-basis: calc(50% - 10px);
    overflow:visible;
}

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

.project-slide-text {
    padding: 40px;
    display: flex;
    align-items: center;
    height: 100%;
}

/* Mobile slider nav — hidden on desktop, shown via media query */
.mobile-slider-nav {
    display: none;
}

/* ── Custom cursor ─────────────────────────────────────────────── */
.project-cursor {
    position: fixed;
    width: 75px;
    height: 75px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.project-cursor.is-visible {
    opacity: 1;
}

.project-cursor img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.project-cursor.is-prev img {
    transform: none;          /* arrow_prev.svg already points left */
}

.project-cursor.is-next img {
    transform: scaleX(-1);    /* flip for right / next */
}

.news-press-thumb {
    width:100%;
    padding-bottom:90%;
    background-size:cover;
    background-position:50% 50%;
    background-repeat:no-repeat;
}

/* Media Queries
_______________________________________ */
@media (max-width: 980px) {
    
    html,
    body {
        overflow-x:clip;
    }

    h1 {
        font-size: 35px;
        line-height: 1.2;
    }

    h2 {
        font-size:45px;
        letter-spacing:6.5px;
    }

    h6.thirty {
        font-size: 24px;
        line-height: 1.4;
    }

    .hero-caption {
        width:90%;
    }

    .next-section {
        padding:50px 0;
    }

    .mob-top-30 {
        margin-top:30px;
    }

    .projects-header {
        text-align:center;
    }

    .projects-header h2 {
        writing-mode: initial;
        transform: none;
    }

    .projects-wrapper {
        position: static;
        top: 50px;
        bottom: 50px;
        right: 0;
        width: calc(100% - 30px);
        overflow: visible;
        height: auto;
        margin: 0 auto;
            margin-top: 0px;
        margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    }

    .project-item,
    .project-item.is-expanded {
        position: static;
        width: calc(100% - 7.5px);
        overflow: hidden;
        transition: width 0.4s ease, z-index 0s 0.4s;
        height: auto;
        z-index: 1;
        background-size: cover;
        background-position: 50% 50%;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
        padding: 20px;
        margin-bottom: 15px;
        padding-top:85%;
    }

    .ticker-item {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .team-category-line {
        display:none;
    }

    .project-item h5 {
        opacity:1;
    }

    #footer {
        padding: 30px 30px 25px 30px;
    }

    .footer-logo {
        padding: 0 0 30px 0;
    }

    .footer-contact p {
        line-height: 1.5;
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        width: 100%;
        height:auto;
        margin-bottom:20px;
    }

    .footer-contact p img {
        margin: 0 auto;
    }

    .hamburger {
        position: fixed;
        top: 50px;
        right: 30px;
        width:44px;
    }

    .logo {
        width: 161px;
    }

    body.nav-open .nav-menu .active-logo {
        width:70px;
        margin:0 auto;
    }

    .nav-menu ul {
        margin-top:0;
    }

    .nav-menu ul li {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .nav-menu ul li a {
        font-size:25px;
        letter-spacing:5px;
    }

    .row.reverse {
        flex-direction: column-reverse;
    }

    #team-wrap {
        padding:40px 0;
    }

    .mt-110,
    .mt-100 {
        margin-top:50px;
    }

    .team-members {
        grid-template-columns: repeat(1, 1fr);
    }

    .grey-block.extra-pad {
        padding:50px 0;
    }

    /* ── Project slider — mobile ────────────────────────────── */

    /* Slider inner: always full width, no expand/collapse */
    .project-slider-inner {
        width: 100% !important;
        cursor: default !important;
        will-change: auto;
        transition: none !important;
    }

    /* Slides: always 1-up on mobile (never 2-up) */
    .project-media-wrap.is-expanded .project-slide {
        flex-basis: 100%;
    }

    /* Hide the desktop custom cursor on mobile */
    .project-cursor {
        display: none !important;
    }

    /* Mobile nav controls */
    .mobile-slider-nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 14px;
    }

    .mobile-nav-center {
        flex: 1;
        text-align: center;
    }

    .mobile-prev,
    .mobile-next {
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        width: 44px;
        flex-shrink: 0;
    }

    .mobile-prev img,
    .mobile-next img {
        width: 100%;
        display: block;
    }

    /* Flip the next arrow to point right */
    .mobile-next img {
        transform: scaleX(-1);
    }

    /* ── Team member panel — mobile ─────────────────────────── */

    /* Panel: keep the fixed+translate centering, just cap the width */
    .team-member-panel {
        width: 92%;
    }

    /* Wrapper: back in normal flow so it gains real height; scrollable */
    .panel-collapse-wrapper {
        position: relative;
        top: auto;
        transform: none;
        max-height: 86vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Stack: photo on top, info below */
    .panel-inner {
        flex-direction: column;
        padding: 16px 20px 70px; /* bottom pad keeps content above the nav arrows */
        gap: 16px;
    }

    /* Photo: full width, no left padding */
    .panel-photo {
        flex: none;
        width: 100%;
        min-width: 0;
        padding-left: 0;
    }

    /* Info: no right padding */
    .panel-info {
        padding-right: 0;
        padding-top: 0;
    }

    /* Close button: sticky so it stays visible as the user scrolls the panel */
    .panel-close {
        position: sticky;
        top: 12px;
        right: auto;       /* clear the desktop absolute value */
        order: -1;         /* float to top of the flex column */
        align-self: flex-end;
        margin: 0 0 -36px; /* negative margin so it doesn't push photo down */
        z-index: 10;
        padding: 8px;
        background: rgba(255, 255, 255, 0.85);
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Nav arrows: anchor to bottom of panel-inner instead of vertical center */
    .panel-prev {
        top: auto;
        bottom: 16px;
        left: 16px;
        transform: none;
    }

    .panel-next {
        top: auto;
        bottom: 16px;
        right: 16px;
        transform: none;
    }

    .contact-form-holder .gfield.half {
        width: 100%;
    }

    .project-info {
        text-align:center;
    }

    .project-divider {
        margin: 12px auto;
    }

    .project-slider-inner {
        margin:0 auto;
    }

    .mob-top-50 {
        margin-top:50px;
    }

    .filter-item {
        letter-spacing: normal;
        font-size: 13px;
        padding: 0 20px;
    }

    #projects-list {
        padding:40px 0;
    }
}