/* ── Custom site styles — walterwakefield flat HTML site ── */

/* ── Typography scale ── */
.ww-display {
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1;
  font-weight: 300;
}

.ww-h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  font-weight: 300;
}

.ww-h2 {
  font-size: clamp(36px, 36px, 54px);
  line-height: 1.1;
  font-weight: 300;
}

/*
.ww-h2 {
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  font-weight: 300;
}
  */
.ww-h3 {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 300;
}

.ww-h3-single {
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 300;
}

.gap-38 {
  gap: 38px;
}

.ww-h4 {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
  font-weight: 300;
}

.ww-lead {
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.4;
  font-weight: 300;
}

.ww-pull {
  font-size: clamp(22px, 3vw, 38px);
  line-height: 1.2;
  font-weight: 300;
}

/* ── Button (pill outline with fill hover) ── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1.5px solid black;
  border-radius: 9999px;
  background: black;
  color: white;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 14px;
  padding: 13px 20px;
  /* span,svg, path{
    transition: color 500ms cubic-bezier(0.77, 0, 0.175, 1);
  }*/
}

.btn-fill {
  display: none;
}

/* White outline when btn sits on a dark background */
[data-section="news"] .btn {
  border-color: white;
}

/* Roll-up text animation — .btn-text clips, .btn-inner transforms */
.btn-text {
  display: inline-flex;
  height: 1.2em;
  overflow: hidden;
}

.btn-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.btn-inner span {
  display: block;
  line-height: 1.2em;
  height: 1.2em;
  white-space: nowrap;
}

.btn:hover .btn-inner {
  transform: translateY(-1.2em);
}

/* ── Nav link roll-up hover ── */
.nav-link-underline {
  display: inline-flex;
  /* overflow: hidden; */
  text-decoration: none;
  height: 1.21em;
}

#site-nav .nav-link-underline {
  overflow: hidden;
}

.nav-link-inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-link-inner span {
  display: block;
  line-height: 1.2em;
  height: 1.2em;
}

.nav-link-underline:hover .nav-link-inner {
  transform: translateY(-1.2em);
}

.nav-link-inner span[aria-hidden] {
  user-select: none;
}

/* ── Client / partner marquee ── */
@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/*.animate-marquee {
  animation: marquee 28s linear infinite;
}*/

/* ── Scroll-triggered fade-in ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ── */
#site-nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 31px;
  background: transparent;
  /*transition: all 350ms cubic-bezier(0.76, 0, 0.24, 1);*/
}

body.admin-bar #site-nav {
  top: 48px !important;
}

/* Apply difference blend only to logo + links, not the contact button */
.nav-logo-full,
.nav-logo-condensed,
.nav-menu,
.nav-mobile-label,
.nav-page-label,
.nav-hamburger {
  mix-blend-mode: difference;
}

#site-nav.scrolled .nav-logo-full,
#site-nav.scrolled .nav-logo-condensed,
#site-nav.scrolled .nav-menu,
#site-nav.scrolled .nav-mobile-label,
#site-nav.scrolled .nav-page-label,
#site-nav.scrolled .nav-hamburger {
  mix-blend-mode: normal;
}

#site-nav.scrolled {
  left: 24px;
  right: auto;
  top: 16px;
  padding: 16px 24px;
  border-radius: 9999px;
  background: black;
  mix-blend-mode: normal;
  min-width: 260px;
  width: auto;
}

body.admin-bar #site-nav.scrolled .nav-contact-btn, body.admin-bar #mobile-menu {
  top: 48px !important;
}

.home.admin-bar header+div.relative.w-full.overflow-hidden.bg-black {
  height: calc(100vh - 32px) !important;
}

@media screen and (max-width: 782px) {
  .home.admin-bar header+div.relative.w-full.overflow-hidden.bg-black {
    height: calc(100vh - 46px) !important;
  }

  body.admin-bar #site-nav, body.admin-bar #mobile-menu {
    top: 62px !important;
  }
}

/* Mobile: pill always visible from first paint — no JS class needed */
@media (max-width: 767px) {
  #site-nav {
    left: 16px !important;
    right: 16px !important;
    top: 16px !important;
    padding: 16px 24px !important;
    border-radius: 9999px !important;
    background: black !important;
    mix-blend-mode: normal !important;
    min-width: 0;
    width: auto;
  }

  #site-nav .nav-logo-full {
    opacity: 1 !important;
    max-width: 141px !important;
  }

  #site-nav .nav-logo-condensed {
    opacity: 0 !important;
    max-width: 0 !important;
  }

  #site-nav .nav-logo-full svg {
    fill: white !important;
  }

  #site-nav .nav-menu {
    max-width: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
  }

  #site-nav .nav-hamburger {
    display: flex !important;
    top: 0 !important;
  }

  #site-nav .nav-hamburger span {
    background: white !important;
  }

  #site-nav .nav-page-label {
    display: none !important;
  }

  #site-nav .nav-contact-btn {
    display: none !important;
  }
}

@media (min-width: 768px) {
  #site-nav.scrolled {
    left: 32px;
  }
}

#site-nav.scrolled.over-light {
  background: black;
}

.nav-inner {
  display: flex;
  align-items: center;
  position: relative;
}

.nav-mobile-label,
.nav-hamburger {
  position: relative;
  top: 8px;
}

.nav-contact-btn {
  position: relative;
  top: 4px;
}

/* Full logo (top bar) */
.nav-logo-full {
  height: 17px;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 141px;
  opacity: 1;
  transition: opacity 250ms ease, max-width 350ms cubic-bezier(0.76, 0, 0.24, 1);
}

@media (min-width: 768px) {
  .nav-logo-full {
    max-width: 141px;
  }
}

/* Condensed logo (pill) */
.nav-logo-condensed {
  height: 10px;
  flex-shrink: 0;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  display: block;
  transition: opacity 250ms ease 50ms, max-width 350ms cubic-bezier(0.76, 0, 0.24, 1);
}

#site-nav.scrolled .nav-logo-full {
  opacity: 0;
  max-width: 0;
}

#site-nav.scrolled .nav-logo-condensed {
  opacity: 1;
  max-width: 30px;
}

#site-nav.scrolled .nav-logo-condensed svg {
  fill: white;
}

#site-nav.scrolled.over-light .nav-logo-condensed svg {
  fill: white;
}

/* Desktop menu — sits beside logo */
.nav-menu {
  display: none;
  list-style: none;
  margin: 0 0 0 44px;
  padding: 0;
  gap: 32px;
  position: relative;
  top: 2px;
  overflow: hidden;
  max-width: 600px;
  flex-shrink: 0;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.28s ease, transform 0.28s ease, max-width 0.35s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-menu li {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }
}

#site-nav.scrolled .nav-menu {
  opacity: 0;
  transform: translateX(-28px);
  max-width: 0;
  pointer-events: none;
}

/* Contact button (right side of nav) */
.nav-contact-btn {
  display: none;
  position: relative;
  margin-left: auto;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: white;
  text-decoration: none;
  background: black;
  border: 1.5px solid black;
  border-radius: 9999px;
  padding: 10px 25px;
  overflow: hidden;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .nav-contact-btn {
    display: inline-flex;
    align-items: center;
  }
}

.nav-contact-btn:hover .btn-inner {
  transform: translateY(-1.2em);
}

.nav-contact-fill {
  display: none;
}

#site-nav.scrolled .nav-contact-btn {
  display: inline-flex;
  position: fixed;
  right: 31px;
  top: 24px;
  margin-left: 0;
}

.nav-menu a {
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
}

/* Page label (pill state) */
.nav-page-label {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: white;
}

#site-nav.scrolled .nav-page-label {
  display: block;
  color: white;
}

#site-nav.scrolled.over-light .nav-page-label {
  color: white;
}

/* Hamburger (visible when scrolled) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 20px;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

#site-nav.scrolled .nav-hamburger {
  display: flex;
  top: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  transition: all 300ms;
  transform-origin: center;
}

#site-nav.scrolled .nav-hamburger span {
  background: white;
}

#site-nav.scrolled.over-light .nav-hamburger span {
  background: white;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu button (un-scrolled on mobile) */
.nav-mobile-label {
  display: none;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 768px) {
  .nav-mobile-label {
    display: none;
  }
}

#site-nav.scrolled .nav-mobile-label {
  display: none;
}

/* Mobile overlay menu */
#mobile-menu {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 40;
  background: black;
  border-radius: 24px;
  padding: 16px 24px 32px;
}

@media (min-width: 768px) {
  #mobile-menu {
    left: 32px;
    right: auto;
    min-width: 260px;
    padding: 48px;
  }
}

#mobile-menu.open {
  display: block;
}

#mobile-menu.over-light {
  background: black;
}

#mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 0 24px;
}

#mobile-menu a {
  font-family: 'Inter', sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 300;
  color: white;
  text-decoration: none;
}

#mobile-menu.over-light a {
  color: white;
}

/* ── Culture reel dots ── */
.cs-reel-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.cs-reel-dot-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}

.cs-reel-dot.active .cs-reel-dot-fill {
  animation: cs-fillBar var(--duration, 7s) linear forwards;
}

.cs-reel-dot.done .cs-reel-dot-fill {
  transform: scaleX(1);
}

@keyframes cs-fillBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ── Culture reel dots ── */
.cs-reel-dot {
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.cs-reel-dot-fill {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 2px;
}

.cs-reel-dot.active .cs-reel-dot-fill {
  animation: cs-fillBar var(--duration, 7s) linear forwards;
}

.cs-reel-dot.done .cs-reel-dot-fill {
  transform: scaleX(1);
}

@keyframes cs-fillBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ── FAQ accordion ── */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 350ms ease, opacity 350ms ease;
  opacity: 0;
}

.faq-answer.open {
  opacity: 1;
}

.faq-toggle-icon {
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.faq-toggle-icon.open {
  transform: rotate(45deg);
}

/* ── Carousel ── */
.carousel-img {
  transition: opacity 0.4s ease;
}

/* ── Strip scroll (About photo strip) ── */
.strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-scroll {
  scrollbar-width: none;
}

/* ── Newsletter modal ── */
#newsletter-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.7);
}

#newsletter-modal.open {
  display: flex;
}

/* ── Work filter pill ── */
.filter-pill {
  position: sticky;
  top: 96px;
  z-index: 101;
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
  pointer-events: none;
}

.filter-pill-inner {
  background: white;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}

.filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
  z-index: 50;
  display: none;
}

.filter-dropdown.open {
  display: block;
}

/* ── Light page nav — always dark on light backgrounds ── */
#site-nav.nav-light .nav-logo-full svg {
  fill: black;
}

.dark_version #site-nav.nav-light .nav-logo-full svg {
  fill: #fff;
}

#site-nav.nav-light .nav-menu a {
  color: black;
}

.dark_version #site-nav.nav-light .nav-menu a {
  color: #fff;
}


/*
#site-nav.nav-light .nav-mobile-label {
  color: black;
}

#site-nav.nav-light .nav-hamburger span {
  background: black;
}
*/

#site-nav.nav-light .nav-logo-full,
#site-nav.nav-light .nav-logo-condensed,
#site-nav.nav-light .nav-menu,
#site-nav.nav-light .nav-mobile-label,
#site-nav.nav-light .nav-page-label,
#site-nav.nav-light .nav-hamburger {
  mix-blend-mode: normal;
}

/* ── Team portrait hover ── */
.team-grid img {
  transition: filter 500ms ease;
}

.team-grid img:hover {
  filter: grayscale(1);
}

/* ── Values accordion hover dim ── */
.value-item {
  transition: opacity 0.25s ease;
  cursor: pointer;
}

/* ── Misc helpers ── */
.aspect-16-9 {
  aspect-ratio: 16/9;
}

.aspect-3-4 {
  aspect-ratio: 3/4;
}
