/* Font Declarations for Tiempos Text and Tiempos Headline */
@font-face {
    font-family: 'Tiempos Text';
    src: url(/fonts/TiemposText-Regular.woff2) format('woff2'),
         url(/fonts/TiemposText-Regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Text';
    src: url(/fonts/TiemposText-RegularItalic.woff2) format('woff2'),
         url(/fonts/TiemposText-RegularItalic.woff) format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Text';
    src: url(/fonts/TiemposText-Bold.woff2) format('woff2'),
         url(/fonts/TiemposText-Bold.woff) format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Text';
    src: url(/fonts/TiemposText-BoldItalic.woff2) format('woff2'),
         url(/fonts/TiemposText-BoldItalic.woff) format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Headline';
    src: url(/fonts/TiemposHeadline-Light.woff2) format('woff2'),
         url(/fonts/TiemposHeadline-Light.woff) format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tiempos Headline';
    src: url(/fonts/TiemposHeadline-Regular.woff2) format('woff2'),
         url(/fonts/TiemposHeadline-Regular.woff) format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
  font-family: 'Averta';
  src: url(/fonts/Averta-Regular.woff2) format('woff2'),
       url(/fonts/Averta-Regular.woff) format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'National';
  src: url(/fonts/National-Regular.woff2) format('woff2'),
       url(/fonts/National-Regular.woff) format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* CSS Custom Properties */
:root {
  --primary-color: #29292E;
  --secondary-color: #B6EADB;
  --background-color: #f9f7ef;
  --text-color: #29292E;
  --link-color: #29292E;
  --accent-color: #f05627;
  --font-size-fluid: 1.4rem;
}

/* Dark Mode Theme - WCAG AA Compliant */
[data-theme="dark"] {
  --primary-color: #f0f0f0;
  --secondary-color: #5eb3a3;
  --background-color: #0f0f0f;
  --text-color: #f0f0f0;
  --link-color: #8b92ff;
  --accent-color: #ff8c42;
  --card-background: #1f1f1f;
  --text-muted: #b8b8b8;
  --highlight-color: #d0d0d0;
}

[data-theme="dark"] .hero-headline,
[data-theme="dark"] h1 {
  color: #f0f0f0 !important;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body, #root, html {
  overflow-x: hidden;
  line-height: 1.6;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.5s ease, color 0.5s ease, opacity 0.3s ease;
}

/* Smooth theme transition for all major sections */
.sec1, .mission-statement, .testimonials, footer, header,
.statement-section, #work, .hero-top-section {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Layout Components */
.app-wrapper {
  display: flex;
  flex-direction: row;
}

.main-content {
  margin: 0 auto;
}

/* Header & Navigation */
header {
  width: 100%;
  background: transparent;
  display: flex;
  justify-content: space-between;
  padding: 2rem;
}




@media (max-width:767px) {
  .sec1.bottom {
   padding-top:2rem;
   padding-bottom:2%;
   height:75vh;
  }
  
  }
@media (min-width:768px) {
.sec1 {
  min-height: 38vh;
  padding: 3rem;
}

}
.sec1 {

  display: flex;
  flex-flow: nowrap;

  margin: 0 auto;
  padding-bottom: 0;
  border-radius: 0;
  height:100%;
  /* background:#f05627; */
max-width:80vw;
display: flex;
flex-flow: nowrap;

align-items: center;
padding:0;
}
.sec1.bottom {
 
    background: #f05627;
   color:#f9f7ef;
}
.sec1_a {
  /* display: flex;
  width: 100%;
  flex-flow: wrap;
 
  text-align: right;
  margin-top: auto; */
  margin:auto;

  
}
.sec1_a a {
display:inline;
color:inherit;
font-size:inherit;
font-style:italic;
text-decoration:underline;
}


/* About Section */
.about-section {
  display: flex;
  justify-content: center;

  position: relative;
  overflow: visible;
}

.about-card {
  position: relative;
 

  overflow: visible;
 
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  width: 50vw;
  max-width: 100%;
  flex-flow: wrap-reverse;
}


.about-text {
  position: absolute;
  
  padding: 2rem;

  display: flex;
  min-height: 10rem;
  justify-content: start;
  align-items: start;
  width: 50vw;
  z-index: 2;

  font-size: 17px;
  font-weight: 400;
  line-height: 27.2px;
  color: rgb(41, 41, 46);
}
@media (max-width:768px) {
  .about-card {
    width:100vw;
  }
  .about-text {
    width:100vw;
  }
}



.about-text.txt-top {
text-align:left;
}

.about-text.txt-bottom {
text-align:right;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.about-text h2 {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-color);
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.about-text h3 {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: #59595E;
  letter-spacing: normal;
}

/* Background Video */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;

}

.background-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(.8) brightness(1);
  border-radius: 0px;
  animation: glitch 2s infinite;
}

/* Social Navigation */
.social-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  z-index: 100;
}

.social-nav-item {
  color: var(--button-background);
  font-size: 1.2rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: var(--perfect-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Marquee Styles */
.marquee-container {
  display: grid;
  position: relative;
  height: 80vh;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 2fr));
  align-items: center;
}

.marquee-container p {
  font-size: 4rem;
}

/* Animations */
@keyframes glitch {
  0% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.2deg); }
  5% { clip: rect(84px, 9999px, 90px, 0); transform: skew(0.2deg); }
  /* ... rest of the keyframes ... */
  100% { clip: rect(42px, 9999px, 48px, 0); transform: skew(0.2deg); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Media Queries */
@media (max-width: 1200px) {
  html { font-size: 90%; }
}

@media (max-width: 992px) {
  html { font-size: 80%; }
}

@media (max-width: 768px) {
  html { font-size: 70%; }
  
  .about-text {
      width: 100%;
  }

  .about-text h3 {
      text-align: center;
      hyphens: none;
      word-spacing: unset;
      letter-spacing: 0;
  }

  .social-nav {
      background: rgba(255, 255, 255, 0.9);
      border-radius: 0;
      padding: 0;
  }
}

@media (max-width: 576px) {
  html { font-size: 60%; }
  
  .sec1 {
      width: 91vw;
     
      margin-top: 0;
      border-radius: 0px;
  }

  .sec1 h1 {
      font-size: 2.75rem;
  }

  .sec1 p {
      font-size: 4.375rem;
      line-height:normal;
  }
}

@media (max-width: 480px) {
  .about-text {
      padding: 0.85rem;
  }

  .about-text h3 {
      font-size: 1.87rem;
      line-height: 2.2rem;
  }

  .social-nav {
      display: block;
      text-align: center;
      padding: 0;
  }
}
/* Hero Section Styles */
.sec1 {
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (min-width:1024px) {

.sec1 .h1 {
  position: relative;
    z-index: 3;
 
    font-weight: 100;
  
    height: 100%;
    display: flex;
    /* flex-direction: column; */
    /* justify-content: space-between; */
    flex-flow: wrap;
    align-items: start;
    font-size:4rem;
}
}
.sec1 .h1 {
 
    position: relative;
    z-index: 3;
    font-family: "Averta";
    font-weight: 100;
    color: #010101;
}

@media (min-width:1025px) {
  .sec1:before {
    top: 78%;
    right: 4%;

  }
}
.sec1:after {
  content: "";
  width: 45vw;
  height: 45vh;
  background: 
    url(/images/chiaracodes2.png);
  background-size: cover;
  background-blend-mode: overlay;
  display: block;
  position: absolute;
  z-index: 1;
  top:0%;
  right: 0;
  left:50vw;
  opacity: .8;
  transition: opacity 0.3s ease;

  border-radius: 0;
  height: 60vw;
  right: 0;
  width: 92vw;
  opacity: 1;
  object-fit: cover;
  top: 16%;
  left:0;
  content:none;
}

.sec1:hover:after {
  opacity: 1;
  
}
@media (max-width:1200px) {
  .sec1:after {
    border-radius: 230px;
    height: 60vw;
    right: 0;
    width: 92vw;
    opacity: 1;
    object-fit: cover;
    top: 16%;
  }


}
@media (max-width:500px) {
  .sec1:after {
    border-radius: 0px;
    height: 22vh;
    right: 0;
    width: 81vw;
    opacity: 1;
    /* object-fit: cover; */
    top: 36%;
    left: 6%;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0;
    background-position: top right;
    box-shadow: 0 10px 30px -5px rgba(255, 255, 255, .1);
    content:none;
      }
}
/* Add this to ensure proper layering */
.image_block {
  z-index: 2;
}
@keyframes twinkle {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}
.video-container {
  max-width:100%;
}
.video {
  width:100%;
  height:100%;
  object-fit:cover;
  
}
/* Original About section styles */
.about-section {
  width: 100%;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
 
  background-color: var(--background-color);
}

.about-card {
  max-width: 75vw;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 0;
 
  position: relative;

}

.about-card:hover {
  transform: translateY(-5px);
}

.about-content-wrapper {
  display: flex;

  gap: 0rem;
  position: relative;
  width: 100%;
}

/* Text sections */
.about-text-container {

  padding: 0rem;
}

.about-text-container.top {
  margin-bottom: 1rem;
}

.about-text-container.bottom {
  margin-top: 1rem;
}

.about-text {
  font-size: 1.25rem;
  line-height: 1.75;
  color: var(--text-color);
}

.about-text h3 {
  margin: 0;

}

/* Video styles */
.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
}


@media (max-width:500px) {
  .nav-logo {
    top: 1rem;
    left: 63%;
  }
  .nav-logo img {
    width:20vw;
  }
  .about-container {
    display:flex;
    margin:0;
  
    margin:auto;
  }
 

  .video-container {
    height:100%;
    padding-top:0;
    }
}
.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Highlight effect styles */
.highlight {
  position: relative;
  display: inline-block;
  color: var(--highlight-color);
}

/* New Slider-specific styles */
.transition-opacity {
  transition: opacity 0.5s ease-in-out;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

/* Navigation dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0;
  background-color: var(--text-muted);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.slider-dot.active {
  width: 1.5rem;
  background-color: var(--highlight-color);
}

/* Additional CSS Variables */
:root {
  --card-background: #ffffff;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.01), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --text-muted: #6b7280;
  --highlight-color: #59595e;
}

/* Media Queries */
@media (max-width: 768px) {
  .about-section {
    padding: 0rem;
  }

  .about-card {
    padding: 1rem;
  }

  .about-text {
    font-size: 1.125rem;
  }

  .about-content-wrapper {
    gap: 1.5rem;
  }
}
.about-card {
  display:flex;

}
.slide {
  width:50vw;
  max-width:100%;
  margin:0 auto;
  display:flex;
  flex-flow:wrap;
  justify-content:center;
  align-items:center;
}
@media (max-width:768px) {
  .slide {
    width:100vw;
  }
  .about-card {
    width:100vw;
  }
}
.slide button {
  border-color:rgb(0 255 162 / 22%);
}
  .about-content-wrapper {
  display:flex;
  
 
}

.slide .about-content-wrapper * {
  padding:0;
  margin:0;
}
.about-card, .slide-media {
  position:relative;
width:100%;

}

.about-container {

}

.about-container h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: 'Tiempos Headline', Georgia, serif;
  letter-spacing: -0.02em;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
  padding: 0;
}

.about-container.bottom h3 {
  font-size:1.2rem;
  
}
.about-container.bottom {
  background:  #f05627;
  color:#f9f7ef;
}
@media (max-width:768px) {
  .about-card {
    max-width:80vw;
  }
  .slide {
    max-width:100vw;
    width:100%;
  }
  .portfolio-card {
    padding:0;
    border:none;
  }
  .portfolio-card .portfolio-bio {
    padding-left:0;
    padding-right:2rem;
    font-size:14px;
    text-align:center;
  }
  .portfolio-info p.time {
    text-align:center;
    font-size:.9rem;
    line-height:.9rem;
    position:relative;
  }

  .portfolio-info .bio  {
    text-align:justify;
    max-width:90vw;
    line-height:1.75;
  }
  .portfolio-info {
    height:auto;
    justify-content:space-between;
  }
}
@media (max-width:768px) {
  .about-card {
    max-width:100%;
    padding:0;
  }
  .sec1 {
    padding-left:1.2rem;
    padding-right:1.2rem;
    padding-top:4.5rem;
    max-width:95vw;
    display:flex;flex-flow:wrap;
  }
  .sec1 h1 {
    font-size:2.3rem;
    text-align:justify;
  }
}

@media (min-width:1024px) {
  .sec1:after {
    content: none;
    width: 45vw;
    height: 45vh;
    background: 
      url(/images/chiaracodes2.png);
    background-size: contain;
    background-blend-mode: overlay;
    display: block;
    position: absolute;
    z-index: 1;
    top:-51%;
    right: 0;
    left:30vw;
    opacity: .5;
    border-radius:0px;
    transition: opacity 0.3s ease;
   
}
}
@media (min-width:1024px) {
  .about-card.slider {
    display:flex;
    padding-top:5rem;
    padding-bottom:5rem;
  }
  
 
 
}
.nav-logo {
  position: fixed;
    top: 2rem;
    left: 2rem;
    z-index:3}

@media (min-width:768px) {
  .nav-logo img {
    width:5rem;
    display:block;
  }
  .footer img {
    max-width:50vw;
    display:block;
  }
  .sec1 {
    overflow:hidden;
  }
  .sec1:after { 
    left: 55%;
    top: 8%;
background-repeat:no-repeat; }
}

  .sec1 .h1 em {
    font-family:"Tiempos Headline";
  font-weight:normal;  }

  /* About Section Container */
.about-section {
  min-height: 100vh;
  max-width:98vw;
  margin:0 auto;
  width: 100%;
  display: flex;
  align-items: center;
 

  position: relative;
  overflow: hidden;
  
}
@media (min-width:1024px) {
.about-section {
padding-left:0;
padding-right:0;
}
}
/* Main card container */
.about-card.slider {
  width: 90%;
  max-width: 1400px;
  min-height: 70vh;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 2rem;
  position: relative;
  align-items: center;
}

/* Video Section */
.slide-media {
  position:sticky;
  height: 400px;
 top:40px;
}

.slider-content {

}
.video-container {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slider Content */
.slide {
  grid-column: 2;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  position: absolute;
  width: 100%;
  padding: .5rem;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Text Containers */
.about-container {
  margin-bottom: .5rem;
}
@media (min-width:768px) {
.about-container.top {
  max-width:80%;
  margin-left:auto;
  margin-top:auto;

}

.about-container.top h3 {
  font-size: 1.5rem;
  font-family: 'Tiempos Headline', serif;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1rem;
  
}
}

.about-container.bottom {
  background: #f05627;
  color: #f9f7ef;
  padding: 4rem;
  border-radius: 0;
  transform: translateY(-1rem);
  opacity: 0.98;
}

.about-container.bottom h3 {
  font-size: 1.5rem;
  font-weight: 300;
}

.slider-nav {
  position: absolute;
  bottom: 2rem;
  left: 42%;
  display: block;
  gap: 0.5rem;
  z-index: 10;
  top: 54vh;
  left: 43vh;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-card.slider {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1rem;
  }

  .slide-media {
    grid-row: 1;
    grid-column: 1;
    position: relative;
    top: 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .slide {
    grid-row: 2;
    grid-column: 1;
    position: relative;
    padding: 1rem;
  }

  .slider-nav {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .about-section {
    padding: 2rem 1rem;
  }

  .about-card.slider {
    width: 100%;
  }

  .about-container.top h3 {
    font-size: 2rem;
  }

  .video-container {
    border-radius: 0;
  }

  .about-container.bottom {
    padding: .5rem;
  }
}

/* Animation classes for slides */
.slide-enter {
  opacity: 0;
  transform: translateX(100%);
}

.slide-enter-active {
  opacity: 1;
  transform: translateX(0%);
  transition: all 400ms ease-in-out;
}

.slide-exit {
  opacity: 1;
  transform: translateX(0%);
}

.slide-exit-active {
  opacity: 0;
  transform: translateX(-100%);
  transition: all 400ms ease-in-out;
}

/* Optional: Smooth reveal effect for the video */
.video-container {
  animation: reveal 0.6s ease-out forwards;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
header {
  z-index: 999!important;
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  position: fixed;
  inset: 0% 0% auto;
  top:0rem;
  padding-top:0;
}
/* header .o-container {
  width: 20vw;
  margin-left: auto;
  margin-right: auto;
} */
div.o-container.c-header__head {
  margin-left:2rem;
  z-index: 2;
  justify-content: flex-start;
  align-items: center;
  background-color:transparent;
  display: flex;
border-radius:0;
  z-index: 2;

    align-items: center;
    display: flex;
}
div.o-container.c-header__head.logo {
  background:transparent;
}
@media (max-width:1024px) {
  div.o-container.c-header__head {
    margin:0;
  }

}
.scrolled div.o-container.c-header__head, .scrolled div.o-container.c-header__head button  {
  background:transparent;
  color: var(--text-color);
}
div.o-container img {
  flex: none;
  width: 11.8rem;
  max-width:100%;
  aspect-ratio: 118 / 24;
}
nav.o-container{
  z-index: 1;
  grid-column-gap: 2.2rem;
  align-items: center;
 margin-left:auto;
  display: flex;

  inset: 0%;
  z-index:4;
}

.o-container.c-header__head {
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.logo-svg {
  width: 377px;
  height: 249px;
  max-width: 100%;
}
@media (min-width:1025px) {
.logo-container svg{

  max-width:25vw;
  height:auto;
}


}
nav {
  z-index:2;
}
a.c-header__logo {
  background-color: var(--link-color);
  color: #fff;
  border-radius: 0;
  flex: none;
  padding: .7rem 1.5rem;
  font-size: 12.9256px;
  font-weight: 600;
z-index:99!important;
pointer-events:all!important;
}
@media (max-width:1024px) {
  .c-header__logo.w-inline-block {
    display:none;
  }
  .logo-container svg{
    display:block;
    max-width:39vw;
    height:auto;
    margin:0 auto;
  }

  
}
.logo-container {
  pointer-events: none;
  will-change: transform;
}

/* When in the header */
.scrolled .logo-container {
  position: relative;
  transform: scale(1) translateY(0);
}
.sec1_a .logo-container svg{
max-width:25vw;
}
@media (min-width:1025px) {
  header .logo-container svg {
max-width:5vw;
}
.hero-logo.logo-container {

}
}
@media (max-width:1024px) {
  header .logo-container.mobile svg{
    max-width:15vw;

  }
  header .logo-container.mobile {
    margin-top:1rem;
  }
  .logo-container.hero-logo.mobile {
    width: 50vw;
    position: absolute;
    top: 19vw;
    left: 8%;
}
.logo-container.hero-logo.mobile svg {
  max-width:80vw;
}

}
/* Slider Navigation Dots */
.nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  margin: 0 0.5rem;
  border: none;
  border-radius: 0;
  background-color: rgba(45, 0, 255, 0.2); /* Using your brand blue with opacity */
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.3s ease;
}

.nav-dot:hover {
  background-color: rgba(45, 0, 255, 0.4);
}

.nav-dot.active {
  background-color: var(--link-color); /* Your brand blue */
}

.nav-dot.active::after {
  border-color: rgba(45, 0, 255, 0.2);
}

/* Container for the dots */
.slider-nav {

}

@media (max-width: 768px) {
 
  
  .nav-dot {
    width: 0.35rem;
    height: 0.35rem;
    margin: 0 0.35rem;
  }
  
  .nav-dot::after {
    width: 1rem;
    height: 1rem;
  }
}
/* Base header styles */
header {
  background: transparent;
  color: #f9f7ef;
  display: flex;
  flex-flow: nowrap;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 0 auto;
  padding-bottom: 0;
  border-radius: 0;
  max-width: 80vw;
  height: auto; /* Different from sec1 as header height should be content-based */
  align-items: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

/* Media Queries to match sec1 responsive behavior */
@media (max-width: 767px) {
  header {
    padding-top: 2rem;
    padding-bottom: 2%;
    max-width: 95vw;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (min-width: 768px) {
  header {
    min-height: auto;
    padding: 3rem;
  }
}

@media (min-width: 1000px) {
  header {
    padding: 0;
    display: flex;
    flex-flow: nowrap;
  }
}

@media (min-width: 1800px) {
  header {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }
}

/* Header scroll state */
header.scrolled {
  
  transition: all 0.3s ease;
}

header.scrolled-past-header {
  background: transparent;
}
/* Fix for slider layout */
.slider-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden; /* Contain the slides */
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
  transform: translateX(100%);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Ensure proper grid layout for the slider container */
.about-card.slider {
  width: 100%;
  max-width: 100vw;
  min-height: 80vh;
  display: grid;
 
  grid-template-columns: 40% 60%;
  gap: .5rem;
  position: relative;
  align-items: start; /* Changed from center to prevent stretching */
}

/* Keep slide media fixed */
.slide-media {
  position: sticky;
top:4px;  height: 50vh;
 
}

/* Adjust container positioning */
.about-container {
  margin-bottom: .2rem;
  width: 100%;
}

.about-container.bottom {
  margin-top: auto;
  margin-bottom:auto;
}
@media (max-width:768px) {
  .slider-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-flow: wrap;
    z-index: 2;

    min-height: 20vh;
    overflow: visible;
  }
}

@media (min-width:1024px) {
  .hero-section {
 
    display:flex;
  
    align-items:center;
    justify-content:space-between;
  padding:4rem;
    width:100%;
    max-width:95vw;
    margin:0 auto;
  }
  .hero-section__text {
  
    text-align: justify;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    margin-left:0;
  
    width: 50vw;
    position:relative;
  }
  .hero-section__quiz {
    max-width: 30vw;
    text-align: justify;
    display: flex;
    flex-direction: row;
    align-items: center;
    align-self: center;
    margin-left:auto;
  margin-right:auto;
    width: 100%;
    position:relative;

  }
  }
  /* Quiz Modal Styles */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem 1rem;
  padding-top: 3rem;
}

.quiz-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 55rem;
  transform-style: preserve-3d;
}

.quiz-card-shadow {
  position: absolute;
  inset: 0;
  background-color: var(--background-color);
  box-shadow: none;
  border-radius: 0;
}

.quiz-card-shadow-1 {
  transform: rotate(1deg);
}

.quiz-card-shadow-2 {
  transform: rotate(-1deg);
}

.quiz-card {
  position: relative;
    background-color: var(--background-color);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    width: 100%;
    min-height: auto;
    max-height: 90vh;
    margin: 0 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
}

.quiz-card-grid {
  background-image: 
    linear-gradient(#f05627 1px, transparent 1px),
    linear-gradient(90deg, #f05627 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  opacity: 0.1;
}

.quiz-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background-color: transparent;
}

.quiz-header h2 {
  font-family: 'Tiempos Headline', serif;
  font-size: 1rem;
  color: var(--text-color);
  margin: 0;
}

.quiz-close-button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.quiz-close-button:hover {
  color: var(--text-color);
}

.quiz-content {
  padding: 0;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
  min-height: 300px;
  flex: 1;
  height: 100%;
}

.quiz-question {
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.quiz-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #f05627;
  transform-origin: left;
}
.quiz-header {
  align-self: start;
}
.quiz-question h2 {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  font-weight: 500;
}

.quiz-answers {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.quiz-answer-button {
  position: relative;
  width: 100%;
  text-align: left;
  padding: 1rem;
  border: 1px solid var(--text-color);
  border-radius: 0;
  background-color: transparent;
  font-family: 'Averta', sans-serif;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  margin-top:1rem;

}

.quiz-answer-button:hover {
  background-color: #f05627;
  border-color: #f05627;
  color: #fff;
  transform: translateY(-2px);
}

.quiz-answer-text {
  position: relative;
  z-index: 1;
  text-align:center;display:block;
  font-weight:800;
}

.quiz-answer-gradient {
  display: none;
}

.quiz-result {
  text-align: center;
  padding: 0;
}

.quiz-result-emoji {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.quiz-result-title {
  font-family: 'Tiempos Headline', serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.quiz-result-description {
  font-family: 'Averta', sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-color);
  margin-top:1rem;
}

.quiz-calendly-button {
  background-color: #f05627;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: none;
  font-family: 'Averta', sans-serif;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-calendly-button:hover {
  background-color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: none;
}

/* Quiz Contact Form Styles */
.quiz-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.quiz-contact-form input,
.quiz-contact-form textarea {
  padding: 0.75rem;
  border: 1px solid var(--text-color);
  border-radius: 0;
  font-family: 'Averta', sans-serif;
  font-size: 0.9rem;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.quiz-contact-form input:focus,
.quiz-contact-form textarea:focus {
  outline: none;
  border-color: #f05627;
  background-color: var(--card-background);
}

.quiz-contact-form textarea {
  resize: vertical;
  min-height: 100px;
  transform: translateZ(0);
}

/* Prevent iOS viewport jumping when focusing inputs */
.quiz-modal-overlay {
  position: fixed;
  transform: translate3d(0, 0, 0);
}

.quiz-card-wrapper {
  transform: translate3d(0, 0, 0);
}

.quiz-contact-form input:focus,
.quiz-contact-form textarea:focus {
  transform: translateZ(0);
}

.quiz-submit-button,
.quiz-cta-button,
.quiz-close-button,
.quiz-close-final-button {
  background-color: #f05627;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  border: none;
  font-family: 'Averta', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}
.quiz-back-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-color);
  font-family: 'Averta', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.quiz-back-button:hover {
  color: #f05627;
}

.quiz-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-navigation {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-start;
}
.result-header h2 {
  font-size:1.5rem;
  padding-bottom:0.5rem;
  margin-bottom:0.5rem;
}
.quiz-result p {
  line-height:1.1;
  font-size: 0.9rem;
}
.quiz-close-button {
background:transparent;
padding:0;
color: var(--text-color);
font-size:.3rem;
}
.quiz-submit-button:hover,
.quiz-cta-button:hover,
.quiz-close-button:hover,
.quiz-close-final-button:hover {
  background-color: var(--text-color);
  transform: translateY(-2px);
}

.quiz-submit-button:disabled {
  background-color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

.quiz-reset-button {
  background: none;
  border: none;
  text-transform:uppercase;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  font-size: 0.85rem;
}

.quiz-reset-button:hover {
  color: var(--text-color);
}

.quiz-progress {
  margin-top: 2rem;
  max-width: 10vw;
  margin: 0 auto;
  padding-top: 6rem;
}

.quiz-progress-bar {
  height: 4px;
  background-color: rgba(45, 0, 255, 1);;
  border-radius: 0;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background-color: #f05627;
  transition: width 0.5s ease-out;
}


/* Animation Classes */
.quiz-fade-enter {
  opacity: 0;
  transform: translateY(20px);
}

.quiz-fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.01s ease, transform 0.01s ease;
}

.quiz-fade-exit {
  opacity: 1;
  transform: translateY(0);
}

.quiz-fade-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.01s ease, transform 0.1s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .quiz-card-wrapper {
    margin: 1rem;
  }
  
  .quiz-header h2 {
    font-size: 1.25rem;
  }
  
  .quiz-question p {
    font-size: 1.125rem;
  }
  
  .quiz-answer-button {
    padding: 0.875rem;
  }
  
  .quiz-result {
    padding: 0;
  }
}

/* Print styles */
@media print {
  .quiz-modal-overlay {
    position: static;
    background: none;
    backdrop-filter: none;
  }
  
  .quiz-card {
    box-shadow: none;
    border: 1px solid #e5e5e5;
  }
}

/* Mobile quiz modal adjustments */
@media (max-width: 768px) {
  .quiz-modal-overlay {
    padding: 1rem 0.5rem;
    padding-top: 2rem;
  }
  
  .quiz-card {
    min-height: 350px;
    max-height: 80vh;
    padding-top: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* Mobile paragraph styles - 14px, weight 300, Averta, normal spacing */
  p {
    font-family: 'Averta', sans-serif !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    letter-spacing: normal !important;
  }
}

/* Quiz CTA Section */
.quiz-cta-section {
  background-color: white;
  padding: 1rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
}

.quiz-cta-section:hover .quiz-cta-content {
  background-color: #f9f9f9;
  border-color: var(--text-color);
}

.quiz-cta-content {
  background-color: white;
  border: 2px solid #f05627;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.quiz-cta-text {
  font-family: 'Averta', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cta-parent {
  position: relative;
  display: inline-block;
}

.cta-button {

  position: relative;
  padding: 0.7rem 1.5rem;
  font-size: 4rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0;
  border: 12px solid #f05627;
  background-color: var(--background-color);
  color: #f05627;
  transform-origin: center center;
  
  /* Transitions */
  transition: 
    background-color 300ms ease,
    color 300ms ease,
    transform 300ms ease;
}

/* Hover state */
.cta-button.is-hovered {
  background-color: white;
  color: #f05627;
}

h1 {
  color: var(--text-color);
}
/* Text animation wrapper */
.cta-text {
  position: relative;
  display: inline-block;
}

/* Optional: Add a subtle hover lift effect */
.cta-button.is-hovered {
  transform: translateY(-2px);
}

/* Focus state for accessibility */
.cta-button:focus {
  outline: none;
  box-shadow: 0 0 0 2px;
}
a.inline {
  display:block;
  color:rgba(45, 0, 255, 1);
  font-size:2vw;
}
.sec1_a a {
  color:#f05627;

  font-weight:bold;
}

/* Modal Overlay */
.case-study-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Modal Card Wrapper */
.case-study-modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 55rem;
  transform-style: preserve-3d;
}

/* Paper Stack Effect */
.case-study-card-shadow {
  position: absolute;
  inset: 0;
  background-color: var(--background-color);
  box-shadow: none;
  border-radius: 0;
}

.case-study-card-shadow-1 {
  transform: rotate(1deg);
}

.case-study-card-shadow-2 {
  transform: rotate(-1deg);
}

/* Main Card */
.case-study-modal {
  position: relative;
  background-color: #f9f7ef17;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  width: 60vw;
  margin: 0 auto;
  max-width: 100%;
}

/* Grid Background */
.case-study-card-grid {
  background-image: 
    linear-gradient(#f05627 1px, transparent 1px),
    linear-gradient(90deg, #f05627 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  opacity: 0.1;
  position: absolute;
  inset: 0;
}

/* Header */
.case-study-modal-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid #f05627;
}

.case-study-modal-header h2 {
  font-family: 'Tiempos Headline', serif;
  font-size: 1.5rem;
  color: var(--text-color);
  margin: 0;
}

.case-study-close-button {
  background: none;
  border: 1px solid transparent;
  color: rgba(45, 0, 255, 1);
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.3s ease;
  z-index:9999;
}

.case-study-close-button:hover {
  color: var(--text-color);
}

/* Content Area */
.case-study-content {
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.8);
  max-height: 70vh;
  overflow-y: auto;
}

/* Individual Case Study Cards */
.case-study-card {
  background-color: white;
  border-radius: 0;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: none;
  border: 1px solid rgba(45, 0, 255, 0.1);
  transition: transform 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-2px);
}

/* Card Header */
.case-study-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.case-study-card-header h3 {
  font-family: 'Tiempos Headline', serif;
  font-size: 1.25rem;
  color: var(--text-color);
  margin: 0;
}

.industry-tag {
  background-color: rgba(45, 0, 255, 0.1);
  color: rgba(45, 0, 255, 1);
  padding: 0.25rem 0.75rem;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Metrics Section */
.metrics-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.metrics-before,
.metrics-after {
  background-color: #f9f7ef;
  padding: 1.25rem;
  border-radius: 0;
}

.metrics-after {
  background-color: rgba(45, 0, 255, 0.05);
}

.metrics-before h4,
.metrics-after h4 {
  font-family: 'Averta', sans-serif;
  font-size: 1rem;
  color: var(--text-color);
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.metric-label {
  color: var(--text-muted);
  text-transform: capitalize;
}

.metric-value {
  font-weight: 600;
  color: var(--text-color);
}

/* Tags */
.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  background-color: #f05627;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-study-modal {
  animation: slideIn 0.3s ease forwards;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .case-study-modal {
    width: 90vw;
  }

  .metrics-comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .case-study-content {
    padding: 1rem;
  }

  .case-study-card {
    padding: 1rem;
  }
}

/* Print styles */
@media print {
  .case-study-modal-overlay {
    position: static;
    background: none;
    backdrop-filter: none;
  }
  
  .case-study-modal {
    box-shadow: none;
    border: 1px solid #e5e5e5;
  }
}

#first-section {
  max-width:98vw;
  display:flex;
  align-items:center;
  height:100vh;
  margin:auto;
  justify-content:center;
  
}
.main-section .sec1 {
  padding: 0;
  width: 100%;
  margin: 0;
  max-width: 40vw;
  margin-top: 5rem;
  padding: 5rem;
  margin-right: auto;
}

.sec1_b {
  max-width: 40vw;
  position: relative;
  width: 100%;
}
.video-container {
  height: 100%;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 85vh;
  max-width: 65vw;
}
.main-section .sec1 {
  background:transparent;
  padding:0;
}
.scrolled .hero-section {
  flex-flow:wrap;
  margin:0 auto;
}
.nav-scrolled .hero-content {
  display:none;
}
.tagline {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  visibility: hidden;
}

.tagline-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.hero-content > * {
  opacity: 1;
}
.gallery-row {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.gallery-row:not(:first-child) {
  visibility: visible;
  opacity: 1;
}
.h-screen {
  height: 100vh;
}

.overflow-hidden {
  overflow: hidden;
}

.flex {
  display: flex;
}

.gap-4 {
  gap: 1rem;
}

.p-4 {
  padding: 1rem;
}

.w-\[calc\(25vw-1rem\)\] {
  width: calc(25vw - 1rem);
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.object-cover {
  object-fit: cover;
  display:block;
  position:absolute;
  width:100%;
  top:0;
  right:0;
}
.gallery-section {
  background-color: rgba(45, 0, 255, 1);
  background-image: linear-gradient(rgba(45, 0, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 0, 255, 0.1) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  height:100vh;
}

.works-title {
  position:relative;



 
}

.works-title::after {
  content:"WORKS";
  text-align: center;
  color: white;
position:absolute;
z-index:1;

  font-size: 15rem;
  display:block;
  opacity:.5;
  top:50vh;
  padding: 2rem 0;
  font-family: 'Tiempos Headline', serif;
}

.gallery-section {
  height: 100vh;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.wrapper {
  position: relative;
  overflow: visible;
  height: 80vh;
  padding: 4rem;
}

.gallery-wrapper {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Main thumbnail styles - consolidated and optimized */
.thumbnail {
  position: relative;
  height: 25vh;
  width: 20vw;
  max-width: 300px;
  max-height: 200px;
  flex: 0 0 auto;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  transition: transform 0.3s ease;
  cursor: pointer;
  scroll-snap-align: center;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
}

.thumbnail:hover img {

}


.gallery-section {
  height: 100vh;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.wrapper {
  position: relative;
  overflow: visible;

 
  padding: 4rem;
}


.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover {
 opacity:1;
}




.title.opacity {
  position:relative;
  display:block;
}
 
.wrapper:before {
  content: "WORK";
  font-family: 'Tiempos Headline', serif;
  font-size: 6vw;
  line-height: 25vw;
  font-weight: 700;
  color: rgba(45, 0, 255, 0.5);
  position: absolute;
  top: 64vh;
  left: 0;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  letter-spacing: 27vw;
}
.wrapper.slider-complete:before {
  content:none;
}

h3.works {
  display:none;
}
h3.works.slider-complete {
  display:block;
}

@media (max-width:500px) {
  .hero-section {
    padding-left:2rem;
    padding-right:2rem;
    display:flex;
    margin:auto;
    height:100%;
  }
  h1 {
    position: relative;
    font-size: 5vw;
    font-weight: 300;
    letter-spacing: 0;
    margin: 0 auto;
    font-family: 'Tiempos Headline';
    text-align: justify;
    display: block;
   
   
    line-height: 1.5;
    padding: 0 20px;
  
    word-break: break-word;
    hyphens: auto;
}
a.inline {
  display: block;
  color: rgba(45, 0, 255, 1);
  font-size: 2vw;
  text-align: center;
}
.cta-parent button {
  margin:0 auto;
  display:block;
  text-align:center;
  font-size:1vw;
}
.hero-section__quiz {
  display:flex;
  justify-content:center;
  padding-top:5rem;
  flex:1;
}
.hero-section__quiz button {
border-width:4px;
}
.wrapper:before {
  font-weight: bold;
  content: "WORK";
  font-family: 'Tiempos Headline', serif;
  font-size: 7.5vw;
  line-height: 25vw;
  font-weight: 700;
  color: rgba(45, 0, 255, 0.5);
  position: absolute;
  top: 80vh;
  left: 0;
  white-space: nowrap;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  letter-spacing: 25vw;
}
#first-section {
  flex-direction:column;
  height:50vh;
}
.main-section .sec1 {
  max-width:100vw;
}
.sec1_b {
  max-width:100vw;
}
.sec1_b .video-container {
  width:100%;
  max-width:90vw;
  padding-top:2rem;
}
.sec1_a h2 {
  font-size:5vw;
  break-after:auto;
  hyphens:auto;

  line-height:4vh;
  text-align:justify;
  max-width:85vw;
}
}


.hero-section {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display:flex;
  background: var(--background-color);
  transition: background-color 0.3s ease;
}

.sec1 {
  position: relative;
  z-index: 2;
  padding: 4rem 5vw;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content: center;
  margin:auto;  
  opacity: 1;
  height: 100vh;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .sec1 {
    height: auto;
    min-height: auto;
    padding: 2rem 1rem;
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero-logo {
    margin-top: 2.5em !important;
  }
}

@media (max-width: 480px) {
  .sec1 {
    padding: 1.5rem 1rem;
    gap: 0.5rem;
  }
}

@media screen and (min-width:1024px) {
  .sec1 {
    height:100vh;
  }
}

/* Center class for h2 elements */
h2.center {
  text-align: center;
}

/* Hero subheading container styles */
.hero-subheading-container {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  opacity: 1;
  transition: all 0.3s ease-out;
  padding: 0 2rem;
}

.hero-subheading-container.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero-subheading-container {
    bottom: 3rem;
    gap: 1.5rem;
    padding: 0 1rem;
    flex-direction: column;
    transform: translateX(-50%);
    left: 50%;
    right: auto;
  }
  
  .hero-cta-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

/* Curved quotes using pseudo elements */
.curved-quotes::before {
  content: "\201C"; /* Left double quotation mark */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2em;
  opacity: 1;
  margin-right: 0.1em;
  position: relative;
  left: 0;
}

@media (min-width: 769px) {
  .curved-quotes::before {
    left: 0;
    margin-right: 0.1em;
  }
}

.curved-quotes::after {
  content: "\201D"; /* Right double quotation mark */
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2em;
  opacity: 1;
  margin-left: 0.1em;
}

/* CTA headline - smaller and punchier */
.cta-headline {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  font-family: 'Averta', sans-serif;
  color: var(--text-color);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
  opacity: 1;
 
}

@media (max-width: 768px) {
  .cta-headline {
   
  }
}

@media (max-width: 767px) {
  .cta-headline {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    margin: 0;
  }
}

@media (max-width: 480px) {
  .cta-headline {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
  }
}

.hero-headline {
  color: var(--text-color);
  font-family: 'Tiempos Headline', Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem) !important;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-top: -0.5rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  animation: fadeIn 0.2s ease-out .24s forwards;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 1px 2px rgba(27, 18, 18, 0.05);
  text-align: justify;
  /* Add these properties to control word spacing */
  word-spacing: -0.05em;        /* Reduce default word spacing */
  hyphens: auto;               /* Enable hyphenation */
  text-justify: inter-word;    /* Improve justification algorithm */
  
  /* Add smooth transition */
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-headline {
    opacity: 1;
  }
}

/* State for moved down position */
.hero-headline.moved-down {
  transform: translateY(40vh);
}

/* State for scrolled up */
.hero-headline.scrolled-up {
  transform: translateY(0);
}

/* Add a media query for smaller screens to prevent too-tight spacing */
@media (max-width: 768px) {
  .hero-headline {
    word-spacing: normal;
    text-align: center;
    font-size: clamp(3rem, 9vw, 4rem) !important;
    margin: 0;
  }

  /* Reduce movement on mobile to prevent bleeding */
  .hero-headline.moved-down {
    transform: translateY(25vh);
  }
}

/* Even smaller screens */
@media (max-width: 480px) {
  .hero-headline.moved-down {
    transform: translateY(20vh);
  }
  
  .hero-headline {
    hyphens: none;
    font-size: clamp(2.75rem, 10vw, 3.5rem) !important;
  }

  /* Enhanced mobile typography */
  .statement-headline {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
  }

  .pantone-blue {
    font-size: clamp(2rem, 6vw, 2.8rem);
    margin-bottom: 2rem;
  }

  #work h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .statement-body {
    font-size: clamp(0.85rem, 3vw, 1rem);
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .statement-footer {
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  }
}

.tagline {
  font-family: 'Averta';
  font-weight:100;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #f9f7ef;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.tagline-visible {
  opacity: 0.8;
  transform: translateY(0);
}

.sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.stats-section {
  padding: 0 5vw;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: visible;
  z-index:2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  transform: translate3d(0px, -11vh, 0vh);
}

.stat-item {
  position: relative;
 
}

.stat-value {
  font-family: 'Tiempos Headline';
  font-size: clamp(3.5rem, 7vw, 5rem);
  color: #f9f7ef;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  margin:0 auto;
  line-height: 1;
  font-weight: 300;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
  mix-blend-mode: difference;
  text-align:center;
}

.stat-item.in-view .stat-value {
  opacity: 1;
  text-align:center;
  transform: translateY(0);
}

.symbol {
  margin-left: 0.5rem;
  font-size: 0.6em;
  opacity: 1;
}

.stat-label {
  font-family: 'Averta';
  font-size: clamp(1rem, 1vw, 1rem);
  color: #f9f7ef;
  max-width: 10ch;
  line-height: 1;
  opacity: 0;
  transform: translateY(0px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
  mix-blend-mode: difference;
}

.stat-item.in-view .stat-label {
  opacity: 1;
  transform: translateY(0);
}

/* Stat item edges */
.stat-item::before {

  position: absolute;
  top: -20px;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--background-color);
  transition: height 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  opacity: 1;
  filter: blur(1px);
}

.stat-item.in-view::before {
  height: calc(100% + 40px);
}

/* Add texture */
.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 2rem;
  }
  
  .field-3 {
    width: 90%;
  }
}
.stats-section {
  padding: 3vh 5vw;

  position: relative;
  min-height: unset;
  display: flex;
  align-items: center;
}


.stats-section::before {
  /* content: ''; */
  position: absolute;
  inset: 0;
  border: 2px solid var(--text-color);
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.stat-item {
  position: relative;
  
}

/* Mondrian-inspired decorative elements */
.stat-item::before {

  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--text-color);
}

.stat-item::after {
  content: '';
  position: absolute;
  width: 1.9vw;
  height: 3vh;
  max-width:50px;
  max-height:50px;
}

/* Unique decorative blocks for each stat */
.stat-item:nth-child(1)::after {
  top: -20px;
  left: -20px;
  background: #f05627;
}

.stat-item:nth-child(2)::after {
  bottom: -20px;
  right: -20px;
  background: var(--link-color);
}

.stat-item:nth-child(3)::after {
  top: 50%;
  right: -20px;
  background: #FFD700;
}

.stat-value {
  font-family: 'Tiempos Headline';
  font-size: clamp(4.5rem, 6vw, 8rem);
  color: var(--text-color);
  display: flex;
  align-items: center;
  text-align:center;
  margin-bottom:0rem;
  line-height: 1;
  outline:#fff;outline:2px solid #fff;
  font-weight: 600;
  position: relative;
  letter-spacing:.045rem;
  margin:0 auto;
  justify-content:center;
}

.symbol {
  margin-left: 0.5rem;
  font-size: 0.6em;
  opacity: 0.7;
}

.stat-label {
  font-family: 'Averta';
  font-size: clamp(1.2rem, 2vw, 1rem);
  color: var(--text-color);
  max-width: 100ch;
  margin:0;
  margin:0 auto;
  display:flex;
  justify-content:center;
  line-height: 1.4;
  text-align:center;
}

/* Additional Mondrian-inspired lines */
.stats-grid::before,
.stats-grid::after {

  position: absolute;
  background: var(--text-color);
}

.stats-grid::before {
  top: -10%;
  left: 33%;
  width: 2px;
  height: 120%;
}

.stats-grid::after {
  bottom: 40%;
  left: -5%;
  width: 110%;
  height: 2px;
}

/* Random small color blocks */
.stats-section::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: var(--link-color);
  right: 15%;
  top: 15%;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 2rem;
  }
  
  .stats-grid::before,
  .stats-grid::after {
    display: none;
  }
}

/* Animation for stat numbers */
.stat-value {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.stat-item.in-view .stat-value {
  opacity: 1;
  transform: translateY(0);
}
.mission-statement {
  min-height: 100vh;
  padding: 0;
  position: relative;
  background: var(--background-color);
  color: var(--text-color);
  display: flex;
  align-items: stretch;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

.mission-column-container {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  position: relative;
  min-height: 100vh;
}

.mission-image-col {
  width: 20%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.mission-image-col .morphing-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(40%);
  opacity: 0.9;
  transition: all 0.6s ease;
  border-radius: 0;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.mission-vertical-bar {
  width: 5%;
  flex-shrink: 0;
  background-color: #f05627;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  overflow: hidden;
}

.mission-vertical-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Averta', sans-serif;
  font-size: clamp(0.75rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.content-section {
  width: 75%;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6vh 25% 6vh 9vw;
  text-align: left;
}

@media (max-width: 768px) {
  .mission-statement {
    min-height: auto;
  }

  .mission-column-container {
    flex-direction: column;
    min-height: auto;
  }

  .mission-image-col {
    width: 100%;
    height: 42vh;
    position: relative;
  }

  .mission-image-col .morphing-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .mission-vertical-bar {
    width: 100%;
    height: 40px;
    flex-direction: row;
  }

  .mission-vertical-text {
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }

  .content-section {
    width: 100%;
    padding: 4vh 5vw;
    text-align: left;
  }
}

.mission-grid {
  display: flex;
 

  margin: 0 auto;
  width: 100%;
  position: relative;
}

/* Logo Column */
.logo-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:auto;
  max-height:50vh;
  width:25%;
}
@media (max-width:768px) {

  .logo-column { 
    width:100%;
  }
  .mission-grid {
    display:flex;flex-flow:wrap;
  }
}

/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

.logo-column img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
opacity:.9;
    -webkit-filter: grayscale(60%);
            filter: grayscale(60%);
  
}

/* Text Column */
.text-column {
  position: relative;
  padding: 4rem 0;
  position: relative;
    padding: 4rem 0;
    display: flex
;
    flex-flow: wrap;
    max-width: 41vw;
    margin: 0 auto;
}
.text-column p {
  font-size: 1.5rem;
  letter-spacing:0;
}
.text-column p {
  padding-top:2rem;
}
.statement-headline {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
  padding: 0;
  max-width: none;
}

.impact-text {
  display:inline-block!important;
}
.statement-headline em {

  position: relative;
}

.impact-text {
  text-decoration-color: #f05627;
  font-weight: 700;
  color: #f05627;
}

/* Removed text column before pseudo element */

/* Removed text column after pseudo element */



.inline-link {
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;

 
}

.link-text {
  position: relative;
  z-index: 2;
}

.link-line {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--link-color);
  transition: width 0.3s ease;
}

.inline-link:hover .link-line {
  width: 100%;
}

/* Removed mission statement before pseudo element */

/* Removed mission statement after pseudo element */

@media (max-width: 768px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .statement-headline {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    padding: 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }
  
  .text-column::before {
    left: -1rem;
  }
  
  .text-column::after {
    right: -2rem;
  }
}

.gallery-section {
  height: 100vh;
  background: var(--background-color);
  overflow: hidden;
  position: relative;
}

.gallery-wrapper {
  height: 100vh;
  position: relative;
  overflow: visible;
}


.works-title {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Only show WORKS text when section is active */
.gallery-section.active .works-title {
  opacity: 1;
}

.works-title span {
  font-family: 'Tiempos Headline', serif;
  font-size: clamp(8rem, 15vw, 12rem);
  font-weight: 300;
  color: rgba(45, 0, 255, 0.03);
  white-space: nowrap;
}

.thumbnail {
  position: relative;
  height: 70vh;
  width: 50vw;
  flex: 0 0 auto;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail:hover .thumbnail-image {
  transform: scale(1.05);
}

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    135deg,
    rgba(45, 0, 255, 0.95) 0%,
    rgba(240, 86, 39, 0.95) 100%
  );
  z-index: 10;
}

.thumbnail:hover .thumbnail-overlay,
.thumbnail-overlay.active {
  opacity: 1;
  visibility: visible;
}

.thumbnail-title {
  color: #fff;
  font-family: 'Tiempos Headline', serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.thumbnail-description {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Averta', sans-serif;
  font-size: 1rem;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.thumbnail:hover .thumbnail-title,
.thumbnail:hover .thumbnail-description {
  transform: translateY(0);
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .gallery-container {
    padding: 5vh 2vw;
  }

  .thumbnail {
    width: 45vw;
    height: 50vh;
  }

  .thumbnail-title {
    font-size: 1.5rem;
  }
}
/* CSS */
.gallery-section {
  height: 100vh;
  overflow: hidden;
  position: relative;
}



.thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail:hover .thumbnail-image {
  transform: scale(1.05);
}

#contact-target {
  position: absolute;
  opacity: 1;
  transform: translateY(20px);
  transition: all 0.3s ease;
  color: #000;
  top: 19%;
  left: -17%;
  font-size: 1rem;
  text-align: center;
  width: 100%;
  font-family: 'Averta';
  display: block;
}

#contact-target.animation-completed {
  opacity: 1;
  transform: translateY(0);
}
.gallery-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10;
  font-size: 4rem;  /* Adjust size as needed */
  color: white;
  text-align: center;
  opacity: 0;
  transition: all 0.5s ease;
  pointer-events: none;  /* Ensures the text doesn't interfere with scrolling */
}

.gallery-overlay-text.animation-completed {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Optional: Add text shadow for better visibility */
.gallery-overlay-text {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.fixed.text-services {
  position: absolute;
  top: 4vh;
  left: 30vw;
  z-index: 5;
  pointer-events: none;
}
#work h3 {
  text-align: center;
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  font-weight: 600;
  font-family: 'Tiempos Headline', Georgia, serif;
  color: var(--text-color);
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
}

.statement-headline a{

display:inline!important;
font-size:inherit;

}
.statement-headline em, .statement-headline span {
  text-decoration:underline;
}

@media (max-width:1024px) {
  .text-column {
    max-width: 100vw;
    padding:0;
    padding-top:2rem;
    padding-bottom:2rem;
  }
  .statement-headline {
    font-size: clamp(1.4rem, 5vw, 2rem);
    padding: 0;
    line-height: 1.4;
  }

.portfolio-grid {
  max-width:100%;
}
}

/* Fix header transparency and contact section height */
@media (max-width: 1024px) {
  footer.hero-section {
    background: transparent;
    min-height: auto !important;
  }

  /* Override hero-section height for contact section on mobile */
  footer.hero-section#contact,
  section.hero-section.contact-links,
  section.contact-links {
    min-height: auto !important;
    height: auto !important;
  }

  /* Fix footer content image size on mobile */
  .footer-content img {
    width: 50% !important;
    max-width: 200px !important;
  }
}

/* Additional mobile footer fixes */
@media (max-width: 768px) {
  footer.hero-section {
    min-height: auto !important;
    height: auto !important;
    padding: 3rem 1rem !important;
  }

  .footer-content img {
    width: 40% !important;
    max-width: 150px !important;
  }

  /* Fix slideshow section height and stack text above images */
  .gallery-section {
    min-height: auto !important;
    flex-direction: column;
    padding: 4vh 5vw !important;
    padding-left: 0 !important;
  }

  header {
    background: transparent !important;
  }
}

/* Improved mobile typography */
@media (max-width: 1024px) {
  .sec1 h1 {
    font-size: clamp(2.8rem, 8vw, 4rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }
  
  .hero-headline {
    font-size: clamp(1.25rem, 2.5vw, 2.25rem) !important;
    line-height: 1.2;
  }
}

/* Hero CTA Styles */
.hero-cta-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
  opacity: 1!important;
}

@media (max-width: 768px) {
  .hero-cta-container {
  
  }
}

.hero-cta-link {
  font-family: 'Tiempos Text', serif;
  font-size: 1.3rem;
  font-weight: normal;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
  pointer-events: all;
  cursor: pointer;
}

.hero-cta-orange {
  color: #f05627;
}

.hero-cta-orange:hover {
  color: var(--text-color);
}

.hero-cta-orange:visited {
  color: #f05627;
}

.hero-cta-black {
  color: var(--text-color);
}

.hero-cta-black:hover {
  color: #f05627;
}

.hero-cta-black:visited {
  color: var(--text-color);
}

/* New button styles */
a.hero-cta-black-bordered,
a.hero-cta-black-bordered:visited {
  color: var(--background-color) !important;
  text-decoration: none !important;
  border: 2px solid var(--text-color);
  padding: 1rem 2.5rem;
  background-color: var(--text-color);
  display: inline-block;
  font-family: 'Averta', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

a.hero-cta-black-bordered:hover {
  background-color: #f05627;
  border-color: #f05627;
  color: #fff !important;
}

a.hero-cta-quiz,
a.hero-cta-quiz:visited {
  color: var(--text-color) !important;
  text-decoration: none !important;
  border: 2px solid var(--text-color);
  padding: 1rem 2.5rem;
  background-color: transparent;
  display: inline-block;
  font-family: 'Averta', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

a.hero-cta-quiz:hover {
  background-color: #f05627;
  border-color: #f05627;
  color: #fff !important;
}

@media (max-width: 768px) {
  .hero-cta-container {
    flex-direction: row;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
  }

  .hero-cta-link {
    font-size: 1.38rem;
    padding: 0.8rem 1.2rem;
  }

  .contact-form {
    padding-top: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-cta-container {
    gap: 0.8rem;
    flex-direction: row;
    justify-content: center;
  }

  .hero-cta-link {
    font-size: 1.32rem;
    padding: 0.8rem 1rem;
  }

  .contact-form {
    padding-top: 3rem;
  }
}

/* Mobile-friendly gallery */
@media (max-width: 768px) {





  .fixed.text-services {
    position: relative;
    top: auto;
    left: auto;
    padding: 1.5rem;
    text-align: left;
    width: 100%;
    z-index: 5;
  }
}



header {
  position: fixed;

  width: 100%;
  z-index: 50;
  
  transition: all 0.3s ease;

}

.scrolled-past-header {
  background: transparent;
}



@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .mobile-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    gap: 1rem;
    height: auto;
  }

  .mobile-thumbnail {
    width: 85vw;
    height: 50vh;
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 0.5rem;
  }

  .mobile-text-services {
    position: relative;
    top: auto;
    left: auto;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .mobile-text-services .text-4xl,
  .mobile-service-item {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    color: var(--text-muted);
    transform: translateY(20px);
    animation: mobileTextReveal 0.8s ease-out forwards;
  }

  .thumbnail-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
  .thumbnail {
    width: 45vw;
    height: 40vh;
  }
}

/* Improved scrollbar styling for mobile */
.mobile-gallery::-webkit-scrollbar {
  height: 4px;
}

.mobile-gallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-gallery::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}
@media (max-width:1024px) {
  .portfolio-card {
    min-height:40vh;
  }
  .portfolio-image-container {
    padding: 0;
    height: auto;
    min-height: 200px;
  }
  .portfolio-image {
    top: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
  }
  .portfolio-info h2 {
    margin-bottom:0;
  }
}
.text-services div {
  font-size: 3.8rem;
  letter-spacing: -0.02em;
  font-family: 'Tiempos Headline';
  margin-bottom: 0.2rem;
  line-height: 1.1;
  color: var(--text-color);
}

@media (max-width:1024px) {
  .text-services div {
    font-size: 3rem;
    margin: 0.3rem 0;
    color: var(--text-color);
  }
}

@media (max-width: 768px) {
  .gallery-section {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .mobile-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
    gap: 1rem;
    height: auto;
  }

  .mobile-thumbnail {
    width: 85vw;
    height: 50vh;
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: 0.5rem;
  }

  .mobile-text-services {
    position: relative;
    top: auto;
    left: auto;
    padding: 1rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .mobile-text-services .text-4xl,
  .mobile-service-item {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    color: var(--text-muted);
    transform: translateY(20px);
    animation: mobileTextReveal 0.8s ease-out forwards;
  }

  .thumbnail-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }
}

/* Mobile text reveal animation */
@keyframes mobileTextReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    color: var(--text-color);
    transform: translateY(0);
  }
}

.gallery-section {
  position: relative;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  background: var(--background-color);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
.footer-content, .part-1 {
z-index:9999;
}
@media (max-width:500px) {
 
  .dropdown-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-weight: bold;
    font-family: "tiempos Text";
    margin-left: auto;
    text-align: right;
    padding-right:2rem;
}
.footer-content, .part-1 {
  width:100%;
  margin:0 auto;
}
.footer-content img {
  width:100%;
  margin:0 auto;
  display:block;
}
}
/* Gallery overlay styles */
.thumbnail-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding: 2rem;
  z-index: 2;
}

.thumbnail-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--background-color);
  opacity: 0.97;
  z-index: -1;
}

.thumbnail-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Project title using your Tiempos Headline */
.project-title {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.4s ease 0.1s;
}

.thumbnail:hover .project-title,
.thumbnail-overlay.active .project-title {
  transform: translateY(0);
}

/* Project description using Averta */
.project-description {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1rem;
  line-height: 1.4;
  text-align: center;
  max-width: 280px;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.2s;
}

.thumbnail:hover .project-description,
.thumbnail-overlay.active .project-description {
  transform: translateY(0);
}

/* Tech tags with your design system */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  transform: translateY(20px);
  transition: transform 0.4s ease 0.3s;
}

.thumbnail:hover .tech-tags,
.thumbnail-overlay.active .tech-tags {
  transform: translateY(0);
}

.tech-tag {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.65rem;
  font-weight: 400;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* View project button matching your site's CTAs */
.view-project {
  font-family: 'Averta', sans-serif;
  font-size: 0.875rem;
  color: #f9f7ef;
  margin-top: auto;
  border: 1px solid rgba(249, 247, 239, 0.3);
 
 
  transition: all 0.3s ease;
  background: transparent;
  width: fit-content;
}

.thumbnail:hover .view-project {
  background: var(--background-color);
  color: rgba(45, 0, 255, 1);
  border-color: #f9f7ef;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .thumbnail-overlay {
    padding: 1.5rem;
  }

  .project-title {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 0.8rem;
  }

  .project-description {
    font-size: clamp(0.85rem, 3vw, 1rem);
    margin-bottom: 1rem;
    max-width: 250px;
  }

  .tech-tags {
    margin-bottom: 1.5rem;
    gap: 0.4rem;
  }

  .tech-tag {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    border-radius: 15px;
  }

  .view-project {
    font-size: 0.9rem !important;
    padding: 0.7rem 1.5rem !important;
  }

  /* Make overlays easier to trigger on mobile */
  .thumbnail-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Touch devices - make overlay more accessible */
@media (hover: none) and (pointer: coarse) {
  .thumbnail:active .thumbnail-overlay {
    opacity: 1;
    visibility: visible;
  }
}

/* Gallery container improvements */
/* Main gallery container - consolidated and optimized */
.gallery-container {
  position: absolute;
  bottom: 4vh;
  left: 0;
  right: 0;
  height: 30vh;
  width: 100%;
  display: flex;
  gap: 0;
  align-items: stretch;
  will-change: transform;
  z-index: 10;
  overflow: visible;
}

.gallery-container .thumbnail {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
}

.gallery-container .thumbnail img,
.gallery-container .thumbnail .thumbnail-image {
  height: 100%;
  width: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-container {
    position: relative;
    bottom: auto;
    left: 0;
    right: 0;
    height: 180px !important;
    gap: 0.5rem;
    padding: 0 1rem;
    align-items: center;
    margin-top: 1.5rem;
  }

  .gallery-container .thumbnail {
    flex: 0 0 180px !important;
    width: 180px !important;
    height: 180px !important;
    min-width: 180px !important;
    min-height: 180px !important;
    max-width: 180px !important;
    max-height: 180px !important;
    overflow: hidden;
    position: relative;
  }

  .gallery-container .thumbnail img,
  .gallery-container .thumbnail .thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    min-width: 180px !important;
    min-height: 180px !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
  }
}

.overlay-content {
  height:100%;
  width:100%;
  font-size:16px;
}
.o-container.c-header__head {
  display: flex;
  align-items: center;
  z-index: 1000;
}

.o-container.c-header__head.logo {
  flex: 1;
}

header.scrolled {
 
}

@media (max-width: 768px) {
  .o-container.c-header__head.logo {
    max-width: 120px;
  }
  .sec1 {
    padding:0;
  }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: var(--background-color);
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dropdown-menu.open,
.work-dropdown-container:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}
.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #000000;
  font-family: 'Averta', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-bottom: 0.25rem;
}

.dropdown-menu button:last-child {
  margin-bottom: 0;
}

.dropdown-menu button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Section Headings Enhancement */

.testimonials h2,
.testimonials h2 span {
  text-align: center;
  margin-bottom: 3rem;
  display: block;
}

/* Statement body text enhancement */
.statement-body {
  font-family: 'Averta', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.4;
  color: var(--text-color);
  font-weight: 400;
  margin-bottom: 2.5rem;
  text-align: left;
  text-transform: none;
  padding: 0;
}

.statement-footer {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  color: var(--text-color);
  font-weight: 300;
  font-style: italic;
  text-align: left;
  text-transform: none;
  margin-top: 1.5rem;
  padding: 0;
}

.work-dropdown-container {
  position: relative;
  display: inline-block;
}

/* Header Controls Container */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background: transparent;
  border: 1px solid var(--text-color);
  font-size: 0.55rem;
  font-family: 'Averta', sans-serif;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
}

.theme-toggle-sub {
  font-size: 0.4rem;
  margin-left: 1px;
  font-weight: 300;
  text-transform: lowercase;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.theme-toggle:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}
.form-submit {
  color: #fff;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  background: #f05627;
  box-shadow: none;
}
@supports (-webkit-touch-callout: none) {
  .form-submit {
    color: #000;
    width: 100%;
    padding: 0.9rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-align: center;
    border: 2px solid #f05627;
 
    background-color:transparent;
  }
  .text-column p {
  font-size:2rem;
  }
  input,
textarea,
select,
button {
  font-size: 16px;
}
/* Removed mobile mission statement pseudo element */

}
@media (max-width:768px) {
  .portfolio-card {
    margin-top:0rem;
    margin-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
    flex-direction: row;
    gap: 20px;
    }
    #work h3 {
      padding: 4vh 5vw;
      padding-top: 0;
      text-align: left;
    }
    .portfolio-info {
      padding-top:0;
      padding-left: 0;
      padding-right: 0;
    }
    .portfolio-grid {
      padding: 4vh 5vw;
    }
}
/* Headline refinements */
.statement-headline {
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

/* Bio text improvements */
.text-column p {
  line-height: 1.6;
  margin-bottom: 2rem;
  font-weight: 300;
}

/* Enhanced link interactions */
.statement-headline a {
  background: none;
}

.statement-headline a:hover {
  background: none;
}

[data-theme="dark"] .statement-headline a {
  background: none;
}

[data-theme="dark"] .statement-headline a:hover {
  background: none;
}

/* Personal note styling */
.text-column p:last-child {
  font-size: 1.2rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  border-left: 2px solid rgba(45, 0, 255, 0.2);
  margin-top: 3rem;
}

/* Responsive spacing */
@media (max-width: 768px) {
  .text-column p {
    font-size: 1.2rem;
    line-height: 1.5;
  }
  
  .text-column p:last-child {
    padding-left: 1rem;
    margin-top: 2rem;
  }
}@media (max-width: 768px) {
  .logo-column {
    width: 100%;
    padding: 0;
    margin: 0.5rem 0;
  }

  .mission-image-col .morphing-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .logo-section {
    margin-bottom: 1rem !important;
  }

  .text-column {
    width: 100%;
    padding: 0;
    max-width: 100%;
    font-size: 16px;  /* Fix for iOS auto-scaling */
    line-height: 1.5;
  }

  .statement-headline {
    font-size: clamp(2.4rem, 8vw, 3.2rem) !important;
    line-height: 1.1;
    margin-bottom: 1rem !important;
    padding: 0 !important;
  }

  .statement-body {
    font-size: 0.9rem;
    line-height: 1.1;
    padding: 0;
    margin-bottom: 0;
    margin-top: 1em;
  }

  .statement-footer {
    font-size: 1rem;
    padding: 0;
    margin-top: 1.5rem;
    line-height: 1.5;
  }
  .text-column p {
    padding-top: 0;
}
}
.thumbnail {
  border-radius:0;
  gap:0;
  object-position:center;
}
.thumbnail img {
  object-position:center;
}
@media (max-width:500px) {
  .mission-image-col .morphing-image {
    position: relative;
    width: 100%;
    height: auto;
  }

  .logo-section {
    margin-bottom: 0.5rem !important;
  }

  .statement-headline {
    font-size: clamp(2.4rem, 8vw, 3.2rem) !important;
    padding: 0 !important;
    margin-bottom: 0.8rem !important;
  }
}
/* Fix for iOS text sizing */
@supports (-webkit-touch-callout: none) {
  .text-column {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }
  button {
    font-family:'Averta', serif!important;
  }
}

@media (min-width:1024px) {
}

/* Footer contact links styling */
.contact-link.fixed-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.quiz-link:hover {
  color: #f05627 !important;
  text-decoration-color: #f05627 !important;
}

/* Clean Hero Top Section for AS SEEN IN */
.hero-top-section {
  margin-bottom: 2rem;
}

.hero-top-section .trusted-by {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1s forwards;
}

.hero-top-section .trusted-by-headline {
  font-size: 0.55rem !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #1B1212 !important;
  margin-bottom: 1rem !important;
  font-style: italic;
  opacity: 1 !important;
}

.hero-top-section .trusted-by-clients {
  gap: 1.5rem;
}

.hero-top-section .client-logo {
  width: auto !important;
  opacity: 0.7 !important;
  filter: grayscale(60%) !important;
  transition: all 0.3s ease !important;
  image-rendering: auto !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  max-width: 100% !important;
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
}

[data-theme="dark"] .hero-top-section .client-logo {
  filter: brightness(0) invert(1) !important;
}

.hero-top-section .client-logo:hover {
  opacity: 1 !important;
  filter: grayscale(0%) !important;
}

/* Enhanced View Project Button */
.view-project {
  font-family: 'Tiempos Text', Georgia, serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  padding: 0.8rem 2rem !important;
  border-radius: 30px !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.4s ease 0.4s !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transform: translateY(20px) !important;
  width: auto !important;
  margin-top: 0 !important;
}

.thumbnail:hover .view-project,
.thumbnail-overlay.active .view-project {
  transform: translateY(0) !important;
}

.view-project:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--link-color) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.testimonials {
  position: relative;
  padding: 8vh 5vw 12vh 5vw;
  background: var(--background-color);
  color: var(--text-color);
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.testimonials h2 {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.3;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.03em;
  text-rendering: optimizeLegibility;
}

.testimonials .work-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-item {
  background: transparent;
  border: none;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.3s ease;
}

.testimonial-item:hover {
  transform: translateY(-2px);
  box-shadow: none;
}


.testimonials p {
  font-family: 'Averta', sans-serif;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--text-color);
  padding: 0;
  position: relative;
  margin: 0 0 1.5rem 0;
  font-style: italic;
}

.testimonials p i {
  opacity: 0.2;
  font-size: 1.25rem;
  position: absolute;
}

.testimonials p i.fa-quote-left {
  top: 1rem;
  left: 1rem;
}

.testimonials p i.fa-quote-right {
  bottom: 1rem;
  right: 1rem;
}

.testimonials small {
  display: block;
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.9rem;
  padding: 0;
  font-weight: 500;
}

.testimonials small a {
  color: #f05627;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.testimonials small a:hover {
  color: var(--link-color);
}

@media (max-width: 1024px) {
  .testimonials .work-wrapper {
    grid-template-columns: 1fr;
    max-width: 95vw;
    gap: 1.5rem;
    padding: 0;
  }

  .testimonials {
    padding: 4vh 2vw;
  }
}

@media (max-width: 768px) {
  .testimonials {
    padding: 4vh 5vw;
  }

  .testimonials h2 {
    font-size: clamp(2.4rem, 8vw, 3.2rem);
    margin-bottom: 2rem;
    padding: 0;
    text-align: left;
  }

  .testimonials .work-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    max-width: 100vw;
  }

  .testimonial-item {
    flex: 0 0 85vw;
    max-width: 350px;
    scroll-snap-align: center;
    padding: 1.5rem;
    padding-left: 0;
  }

  .testimonials p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonials small {
    font-size: 0.85rem;
  }

  /* Scrollbar styling for mobile */
  .testimonials .work-wrapper::-webkit-scrollbar {
    height: 4px;
  }

  .testimonials .work-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
  }

  .testimonials .work-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
  }
}

/* Fix for iOS text sizing */
@supports (-webkit-touch-callout: none) {
  .testimonials p, 
  .testimonials small {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }
}/* Hero Nav Animations */
.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

.animate-scale {
  transition: transform 0.03s ease;
}

.animate-scale:hover {
  transform: scale(1.02);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Nav Container */
.hero-section__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  max-width: 40vw;
  margin: 0 auto;
}

/* Initial CTA Button */
.cta-parent {
  margin-top: 3rem;
  text-align: center;
}

.cta-button {
  position: relative;
  padding: 0.7rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 0;
  border: 2px solid #f05627;
  background-color: transparent;
  color: #f05627;
  font-family: 'Averta', sans-serif;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #f05627;
  color: #f9f7ef;
}

/* Quiz Section */
.hero-section__quiz {
  width: 100%;
  
  margin: 0 auto;
  padding-top: 2rem;
}

.quiz-answers {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width:100%;
  margin:0 auto;
}

.quiz-answer-button {
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  background: transparent;
  border: 1px solid var(--text-color);
  border-radius: 0;
  color: var(--text-color);
  font-family: 'Averta', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quiz-answer-button:hover {
  background: #f05627;
  color: #f9f7ef;
  border-color: #f05627;
}


/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .hero-section__text {
    max-width: 60vw;
  }

  .cta-button {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-section__text {
    max-width: 90vw;
    padding-top: 1.5rem;
  }

  .cta-parent {
    margin-top: 2rem;
  }

  .hero-section__quiz {
    max-width: 100%;
  }

  .quiz-answer-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* iOS-specific adjustments */
@supports (-webkit-touch-callout: none) {
  .cta-button,
  .quiz-answer-button {
    font-size: 16px;
    padding: 0.8rem 1.5rem;
  }

  .quiz-back-button {
    padding: 0.8rem 0;
  }
}

/* Ensure proper spacing within sec1 */
.sec1 .hero-section__text {
  margin-top: 2rem;
}
.mt-8 {
  width:100%;
}
/* Dark mode considerations */
@media (prefers-color-scheme: dark) {
  .quiz-answer-button {
    border-color: rgba(240, 86, 39, 0.5);
  }
}
.main-section {
  position: relative;

  padding: 40px;
  background: linear-gradient(145deg, #fff4f4, #ffe6e6);
  border-radius: 50px;
  box-shadow: 
    inset 0 0 20px rgba(255, 210, 210, 0.6),
    0 15px 30px rgba(0, 0, 0, 0.1);
  border: 5px solid #ffccd5;
  animation: float 3s ease-in-out infinite;
}

/* Cloud-like bubble effect */
.main-section::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 20%;
  width: 100px;
  height: 100px;
  background: #fffaf0;
  border-radius: 50%;
  box-shadow: 
    inset 0 0 15px rgba(255, 170, 180, 0.5),
    0 10px 15px rgba(0, 0, 0, 0.05);
}

.main-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  right: 20%;
  width: 80px;
  height: 80px;
  background: #fffaf0;
  border-radius: 50%;
  box-shadow: 
    inset 0 0 15px rgba(255, 170, 180, 0.5),
    0 10px 15px rgba(0, 0, 0, 0.05);
}

/* Exaggerated but subtle kawaii waves */
.main-section .sec1_a, 
.main-section .sec2 {
  
}


/* Kawaii text style */
.quiz-intro {
  
}

/* Floating effect */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
/* Logo Transition Styles */
.hero-logo {
    position: relative;
    margin-top: -2rem;
    margin-bottom: 0;
    z-index: 3;
}

/* SVG Logo Integration */
.hero-logo svg {
    position: relative;
    z-index: 2;
    margin-left:.2em;
    mix-blend-mode: normal;
}

/* Responsive SVG Logo Sizing */
@media (min-width: 768px) {
  .hero-logo-responsive {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 768px) {
  .hero-logo-responsive {
    width: 80% !important;
    max-width: 400px !important;
  }
}

@media (max-width: 480px) {
  .hero-logo-responsive {
    width: 100% !important;
    max-width: 550px !important;
  }
}

/* Logo text group styling */
.logo-text-group {
    position: relative;
    z-index: 3;
}

.hero-logo .logo-text-group g[fill="#000000"] {
    transition: opacity 2s ease-out;
}

/* If using text logo */
.logo-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 0.9;
}

.logo-brand {
    color: #000;
    animation: logoToOrange 4s ease-out 2s forwards;
}

.logo-codes {
    color: #000;
    font-style: italic;
    font-weight: 300;
    animation: logoToBlue 4s ease-out 2.5s forwards;
}

/* Logo Color Transitions */
@keyframes logoToOrange {
    0% {
        color: #000;
        text-shadow: none;
    }
    50% {
        color: #000;
        text-shadow: 0 0 20px rgba(240, 86, 39, 0.3);
    }
    100% {
        color: #f05627;
        text-shadow: 0 0 30px rgba(240, 86, 39, 0.5);
    }
}

@keyframes logoToBlue {
    0% {
        color: #000;
        text-shadow: none;
    }
    50% {
        color: #000;
        text-shadow: 0 0 20px rgba(45, 0, 255, 0.3);
    }
    100% {
        color: rgba(45, 0, 255, 0.9);
        text-shadow: 0 0 30px rgba(45, 0, 255, 0.4);
    }
}

/* If using SVG logo */
.svg-logo .logo-chiara {
    animation: svgToOrange 4s ease-out 2s forwards;
}

.svg-logo .logo-codes-svg {
    animation: svgToBlue 4s ease-out 2.5s forwards;
}

@keyframes svgToOrange {
    0% { fill: #000; }
    100% { fill: #f05627; }
}

@keyframes svgToBlue {
    0% { fill: #000; }
    100% { fill: rgba(45, 0, 255, 0.9); }
}
/* Logo Transition Styles */
.hero-logo {
    position: relative;
    margin-bottom: 2rem;
    z-index: 3;
}

.logo-svg-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG Logo Styles */
.logo-svg {
   
    height: auto;
    max-width: 90vw;
}

.logo-text-svg {
    fill: #000;
    transition: all 0.5s ease;
}

/* Animation for "chiara" - transitions to orange */
.logo-chiara {
    animation: svgToOrange 4s ease-out 2s forwards;
}

/* Animation for "codes" - transitions to blue */
.logo-codes-svg {
    animation: svgToBlue 4s ease-out 2.5s forwards;
}

/* Alternative Text Logo Styles (if you prefer text over SVG) */
.text-logo {
    text-align: center;
}

.logo-text {
    font-family: 'Tiempos Headline', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-brand {
    color: #000;
    animation: logoToOrange 4s ease-out 2s forwards;
}

.logo-codes {
    color: #000;
    font-style: italic;
    font-weight: 300;
    animation: logoToBlue 4s ease-out 2.5s forwards;
}

/* Keyframe Animations for SVG */
@keyframes svgToOrange {
    0% { 
        fill: #000;
        filter: drop-shadow(0 0 0px rgba(240, 86, 39, 0));
    }
    50% { 
        fill: #000;
        filter: drop-shadow(0 0 20px rgba(240, 86, 39, 0.3));
    }
    100% { 
        fill: #f05627;
        filter: drop-shadow(0 0 30px rgba(240, 86, 39, 0.5));
    }
}

@keyframes svgToBlue {
    0% { 
        fill: #000;
        filter: drop-shadow(0 0 0px rgba(45, 0, 255, 0));
    }
    50% { 
        fill: #000;
        filter: drop-shadow(0 0 20px rgba(45, 0, 255, 0.3));
    }
    100% { 
        fill: rgba(45, 0, 255, 0.9);
        filter: drop-shadow(0 0 30px rgba(45, 0, 255, 0.4));
    }
}

/* Keyframe Animations for Text Logo */
@keyframes logoToOrange {
    0% {
        color: #000;
        text-shadow: none;
    }
    50% {
        color: #000;
        text-shadow: 0 0 20px rgba(240, 86, 39, 0.3);
    }
    100% {
        color: #f05627;
        text-shadow: 0 0 30px rgba(240, 86, 39, 0.5);
    }
}

@keyframes logoToBlue {
    0% {
        color: #000;
        text-shadow: none;
    }
    50% {
        color: #000;
        text-shadow: 0 0 20px rgba(45, 0, 255, 0.3);
    }
    100% {
        color: rgba(45, 0, 255, 0.9);
        text-shadow: 0 0 30px rgba(45, 0, 255, 0.4);
    }
}

/* Ensure proper layering */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-logo {
    position: relative;
    z-index: 3;
    width:100%;
    height:auto;
    text-align:center;
    display:flex;
    justify-content:center;
    max-width:100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo-svg {
    }
    
    .logo-text {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}

@media (max-width: 480px) {
    .logo-svg {
        width: clamp(200px, 70vw, 300px);
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .logo-chiara,
    .logo-codes-svg,
    .logo-brand,
    .logo-codes {
        animation: none;
        color: #f05627; /* Default to orange for "chiara/brand" */
    }
    
    .logo-codes-svg,
    .logo-codes {
        color: rgba(45, 0, 255, 0.9); /* Default to blue for "codes" */
    }
}

/* Print styles */
@media print {
    .logo-text-svg,
    .logo-brand,
    .logo-codes {
        color: #000 !important;
        fill: #000 !important;
        animation: none !important;
        text-shadow: none !important;
        filter: none !important;
    }
}

.sticky-consult-btn {
  appearance: none;
  border: none;
  padding: 12px 22px;
  border-radius: 0px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(
    180deg,
    #F4977D 0%,
    #9A5FC4 100%
  );
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-consult-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}
.cta-green {
  color: #f05627;
  font-size: 1.1em;
  font-weight: 700;
}
.sticky-consult-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.btn-cta {
color:#000;
font-weight:bold;
background:transparent;
appearance: none;
border:1px solid transparent;
text-transform:uppercase;
font-weight:900;
letter-spacing:.02em;
font-size:1.5em;
}
.consult_cta {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  margin-right: 0.5em;
  color: var(--text-color);
}
.consult-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 2px solid #f05627;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.consult-content {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.consult-marquee {
  overflow: hidden;
  white-space: nowrap;
  height: 24px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 4px 8px;
}

.consult-marquee-content {
  display: inline-block;
  animation: marqueeScroll 120s linear infinite;
  font-size: 16px;
  font-weight: 500;
  color: #59595E;
  white-space: nowrap;
  will-change: transform;
}

.separator {
  color: #f05627;
  font-weight: 600;
  font-style: italic;
}

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

.consult-link {
  background: #f05627;
  color: #f9f7ef;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.consult-link:hover {
  background: var(--text-color);
  color: #f9f7ef;
}

@media (max-width: 768px) {
  .consult-sticky {
    padding: 12px 16px;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .consult_cta {
    font-size: 15px;
    text-align: center;
  }
  
  .consult-marquee {
    order: 1;
  }
  
  .consult-link {
    order: 2;
    justify-self: center;
    padding: 8px 40px;
    width: 80%;
    max-width: 280px;
    text-align: center;
  }
  
  .consult-marquee-content {
    font-size: 13px;
    animation: marqueeScroll 90s linear infinite;
  }
}

/* 404 Page */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 2rem;
}

.not-found-content {
  text-align: center;
  max-width: 540px;
}

.not-found-label {
  font-family: 'Averta', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.not-found-headline {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--text-color);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.not-found-body {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 1.15rem;
  color: var(--text-color);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.not-found-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* Recent Projects Portfolio Grid */
#work {
  padding-bottom: 8rem;
  padding-top: 8rem;
  transform: none;
  will-change: auto;
}

#work h3 {
  padding-bottom: 4.5rem;
}

h2.tagline {
  padding-bottom: 0rem;
  padding-right: 0rem;
  width: 100%;
  text-align: right;
  font-size: 1rem;
}
.portfolio-grid {
  display: grid;
  padding-top: 1rem;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  transform: none;
  will-change: auto;
}

@media (max-width: 1800px) {
  .portfolio-grid {
    max-width: 1200px;
  }
}

.portfolio-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.portfolio-card-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 28px;
  flex-shrink: 0;
  background-color: #f05627;
}

.bar-pill {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: 'Averta', sans-serif;
}

.portfolio-details {
  display: none !important;
}


.portfolio-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: transparent;
  transform: perspective(1000px) translateZ(30px);
  transition: transform 0.3s ease;
}

.portfolio-image-container:hover {
  transform: perspective(1000px) translateZ(50px);
}

.portfolio-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.portfolio-info {
  padding: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  background: transparent;
  overflow: visible;
}

.portfolio-info h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 0.2rem;
  position: relative;
  font-family: 'Tiempos Headline', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-color);
}

.time {
  color: var(--text-muted);
  text-align: left;
  font-weight: 400;
  text-transform: none;
  font-size: 0.75rem;
  font-family: 'Averta', sans-serif;
  line-height: 1.3;
  margin-top: auto;
}

.portfolio-bio {
  display: block;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.portfolio-bio h3 {
  text-align: center;
  padding-bottom: 1rem;
  font-size: 1rem;
}

.portfolio-bio .bio {
  text-align: justify;
  line-height: 1.4;
  font-family: 'Averta', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  text-wrap: pretty;
  hyphens: auto;
  color: var(--text-color);
}

.portfolio-details {
  display: none !important;
}

.detail-pill {
  background: hsla(80, 23%, 57%, 25%);
  color: var(--text-color);
  padding: 3px 8px;
  border-radius: 0;
  font-size: 0.7rem;
  font-weight: 400;
  display: inline-block;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 95vw;
    gap: 2rem;
    padding: 0;
  }


  .portfolio-info h2 {
    font-size: 1.5rem;
    font-family: "Tiempos Headline";
  }

  .portfolio-bio .bio {
    max-width: 100%;
  }

  .portfolio-card-bar {
    width: 36px;
  }

  .bar-pill {
    font-size: 0.75rem;
  }

  .portfolio-image-container {
    height: 60vw;
    padding: 0;
    transform: none;
  }

  .portfolio-image-container:hover {
    transform: none;
  }

  .portfolio-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: none !important;
    max-height: none !important;
  }

  .portfolio-details {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .slide {
    order: 2;
  }

  h2.tagline {
    padding-bottom: 5rem;
    padding-right: 5rem;
    width: 100%;
    text-align: right;
    font-size: 1rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 0 auto;
    max-width: 90vw;
  }

  .portfolio-card {
    padding: 0;
    border: none;
    flex-direction: row;
    width: 100%;
  }

  .portfolio-info h2 {
    font-size: 1.8rem;
    margin: 0;
    padding-top: 1rem;
  }

  .portfolio-info {
    padding-bottom: 2rem;
    justify-content: flex-start;
    margin: auto;
  }
}

.portfolio-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.grouped {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

/* Additional Projects Styles */
.additional-projects {
  margin-top: 2rem;
  padding-top: 1rem;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.additional-projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.additional-project-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-bottom: none;
}

.additional-project-item:nth-child(odd) {
  background-color: #f05627;
  color: #fff;
}

.additional-project-item:nth-child(odd) .project-client,
.additional-project-item:nth-child(odd) .project-year,
.additional-project-item:nth-child(odd) .project-details {
  color: #fff;
}

.additional-project-item:nth-child(even) {
  background-color: var(--background-color);
}

[data-theme="dark"] .additional-project-item:nth-child(even) {
  background-color: var(--background-color);
}

[data-theme="dark"] .additional-project-item:nth-child(odd) {
  background-color: #f05627;
}

.additional-project-item:last-child {
  border-bottom: none;
}

.project-client {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: left;
}

.project-year {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.8rem;
  color: rgba(27, 18, 18, 0.6);
  text-align: center;
}

.project-details {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.8rem;
  color: var(--text-color);
  background: transparent;
  padding: 0;
  text-align: right;
}

.view-more-container {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.view-more-btn {
  font-family: 'Averta', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: var(--link-color);
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px; /* iOS touch target minimum */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-more-btn:hover {
  color: var(--accent-color);
  text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
  .view-more-btn {
    font-size: 1.1rem;
    min-height: 48px; /* Better touch target for mobile */
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .view-more-btn:active {
    transform: scale(0.98);
  }
}

/* Inquiry Prompt Styles */
.inquiry-prompt {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.inquiry-prompt p {
  font-family: 'Tiempos Headline', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.3;
  text-wrap: pretty;
  hyphens: auto;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
}

.inquiry-btn {
  font-family: 'Tiempos Text', Georgia, serif;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  color: var(--link-color);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: block;
  margin: 0 auto;
  text-align: center;
}

.inquiry-btn:hover {
  color: var(--accent-color);
  text-decoration-thickness: 2px;
}

@media (max-width: 768px) {
  .inquiry-btn {
    /* Keep only the link color, remove all other styling */
  }

  .inquiry-prompt {
    padding: 0 1rem;
  }

  .additional-projects {
    padding: 1em 1rem 0;
    margin-top: 0;
  }

  .additional-projects-list {
    max-width: 100%;
    padding: 0;
  }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .additional-project-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    text-align: left;
  }

  .project-year,
  .project-details {
    text-align: left;
  }

  .project-year {
    font-size: 0.75rem;
  }

  .project-details {
    font-size: 0.75rem;
  }
}
/* src/Footer.css */
.footer {
  width: 100%;
  background: var(--background-color);
  justify-content: center;
  align-items: center;
  padding: 2rem 0 0.5rem;
  position: relative;
}

/* Override hero-section grid/flex for footer - must be column */
footer.hero-section {
  display: flex;
  flex-direction: column;
  min-height: auto;
  grid-template-columns: none;
}

.footer-content h6 {
  font-size: 10rem;
  font-weight: 100;
  color: var(--primary-color);
  text-align: center;
  width: 100%;
}

/* Mobile Responsive Media Queries for Footer.css */
@media (max-width: 1200px) {
  .footer {
    padding: 1.5rem 0;
  }

  .footer-content h6 {
    font-size: 8rem;
  }
}

@media (max-width: 992px) {
  .footer {
    padding: 1rem 0;
  }

  .footer-content h6 {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1rem 0;
  }

  .footer-content h6 {
    font-size: 4rem;
  }
}

@media (max-width: 576px) {
  .footer {
    padding: 0.5rem 0;
  }

  .footer-content h6 {
    font-size: 14vw; /* Responsive font size based on viewport width */
    white-space: nowrap; /* Prevent line breaks */
  }
}

.wrap {
  position: relative;
  z-index: 1;
  flex-direction:column;
  justify-content:space-evenly;
}

/* ChiaraCodes logo in footer - make WAY bigger */
.footer-content.part-2 {
  padding-bottom: 0;
  margin-bottom: 0;
}

.footer-content.part-2 img {
  width: 47vw;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0.5rem auto 0;
}

.footer-logo .hero-logo-responsive {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0.5rem auto 0 !important;
  padding: 0 2vw !important;
}

@media (max-width: 768px) {
  .footer-logo .hero-logo-responsive {
    width: 90vw !important;
    max-width: 90vw !important;
    padding: 0 !important;
  }
}

/* Social links - below Let's Connect, same width as button */
.contact-links .social-links {
  order: 2;
  margin-top: 0.5rem;
  width: auto;
  display: flex;
  justify-content: center;
}

.contact-links .social-links ul {
  display: flex;
  gap: 0;
  justify-content: space-between;
  width: 100%;
  max-width: 140px;
}

.contact-links .social-links svg {
  width: 16px;
  height: 16px;
}

.contact-links .contact-link {
  order: 1;
}

/* Reorder footer content to put social icons above contact */
.footer-content.part-1 {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .footer-content.part-2 img {
    width: 52vw;
  }

  .contact-links .social-links svg {
    width: 16px;
    height: 16px;
  }
}

.footer-copyright {
  font-family: 'Averta', sans-serif;
  font-size: 8px;
  color: var(--text-color);
  text-align: center;
  opacity: 0.5;
  padding: 1rem 0 0.5rem;
  margin: 0;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  
  margin-top: 40px;
}

.contact-links h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.contact-links p {
  margin: 10px 0;
  font-size: 1rem;
  
}

.contact-links a {
  font-size:13px;
  font-weight:bold;
  text-transform:lowercase;
  text-decoration: none;
  color: var(--text-color);
}

.contact-links a:hover {
  text-decoration: underline;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  width: 100%;
  max-width: 400px;
}

.social-icons li {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-links .icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.contact-links .icon:hover {
  transform: scale(1.1);
}

.contact-link {
  margin-top: 20px;
}



/* Mobile footer optimization - make much smaller and more effective */
@media (max-width: 768px) {
  .contact-links {
    padding: 2rem 1rem;
    margin-top: 20px;
    min-height: auto !important;
    height: auto !important;
  }

  /* Override any inherited hero-section heights */
  section.contact-links,
  .fourth.panel.contact-links {
    min-height: auto !important;
    height: auto !important;
  }

  .contact-link {
    margin-top: 10px;
  }

  .social-links ul {
    gap: 5px;
    margin-top: 15px;
    justify-content: center;
    display: flex;
    flex-wrap: nowrap;
  }

  .contact-links .icon {
    width: 20px;
    height: 20px;
  }

  .social-links {
    margin-top: 1rem;
  }
}

@media (min-width:1024px) {
.home .wrapper.contact-links{
  margin: 0 auto;
  width: 60%;
  padding-top: 2rem;
  margin-top: 2rem;
}
}

.App {
    text-align: center;
}

.App-logo {
    height: 40vmin;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .App-logo {
        animation: App-logo-spin infinite 20s linear;
    }
}

.App-header {
    background-color: #282c34;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: calc(10px + 2vmin);
    color: white;
}

.App-link {
    color: #61dafb;
}

@keyframes App-logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body {
    font-weight: 400;
    font-style: normal;
    font-size: 17px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    
    justify-content: space-between;
}
.is-grid {
    text-align:center;
    margin:0 auto;
    display:block;
}
/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}



/* CSS Custom Properties */
:root {
  /* Typography */
  --font-header: 'Averta', serif;
  --font-body: 'Tiempos Text', sans-serif;
  --font-weight-header: 600;
  --font-weight-body: 400;
  --font-size-header: 4rem;
  --font-size-body: 1.2rem;
  
  /* Spacing */
  --section-padding: 4rem 2rem;
  --section-margin: 2rem 0;
  
  /* Colors */
  --button-background: #f05627;
  --button-color: #f9f7ef;
  --button-hover-background: #f9f7ef;
  --link-color: #f05627;
  --link-hover-color: #f9f7ef;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: var(--font-weight-body);
  font-size: var(--font-size-body);
  color: var(--primary-color);
  background-color: var(--background-color);
}

body, p {
  font-family: 'Averta', serif;
}

.main {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .h1 {
  font-family: var(--font-header);
  font-weight: var(--font-weight-header);
  
}

h1 {
  position: relative;
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0;
    margin: 0 auto;
    font-family:'Tiempos Headline';
    text-align: justify;
 
    display: block;
}

h1:before {
  width: 13%;
  height: .09px;
  position: absolute;
  
  top: 50%;
  left: -4%;
  bottom: -50%;
  right: 0;
}

h3 {
  font-family: var(--font-body);
}

.h1 {
  font-size: 6rem;
  line-height:1;
}
h1 span.larger {
  /* display: block;
  font-size: 26.12vw;
  text-indent:-2rem;
  padding-bottom:0rem;
  margin-bottom:auto; */
}

h1 span.smaller {
  display: block; 
  margin-top:auto;
  line-height:.5;
}
@media (max-width:500px) {
  h1 span.larger {
    text-indent:-1rem;
  }
  h1 span.smaller {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; 
    margin-top:0;
    font-size:2rem;
    line-height:1.5;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
  }
  h1 span.smaller em {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; 
    margin-top:0;
    font-size:2rem;
    line-height:1.5;
    -webkit-box-align:center;
        -ms-flex-align:center;
            align-items:center;
  }
}
/* Header Text Styles */
.header-text {
  font-size: var(--font-size-header);
  font-weight: var(--font-weight-header);
  color: var(--primary-color);
  text-align: center;
}

/* Navigation Styles */
.nav-link.last-link,
.nav-link.first-link {
  position: relative;
}

.nav-link.last-link::after {
  content: " ・゜゜・．";
  display: inline-block;
}

.nav-link.first-link::before {
  content: ".・゜゜・";
  display: inline-block;
}



@media (min-width:1024px) {
.sec1{ 
  position:relative;
  z-index:2;
  width:100%;
  /* align-items:center; */
/* padding:2rem; */
  -ms-flex-flow:wrap;
      flex-flow:wrap;
}
.sec1 a {
  color: var(--text-color);
}
}
.image_block {

  display: block;
  height: 50vh;
  width: auto;
  height: auto;
  position: absolute;
  -o-object-fit: cover;
     object-fit: cover;
  top: 26%;
  /* right: -17vw; */
  left: 47%;
  overflow: hidden;
  -webkit-transform: rotate(-7deg);
      -ms-transform: rotate(-7deg);
          transform: rotate(-7deg);
  max-width: 50vw;
  border-radius: 0;

}


/* Intro Section */
.intro-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: var(--background-color);
}

.intro-text {
  font-size: 6rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  -webkit-animation: fadeIn .2s ease-in-out;
          animation: fadeIn .2s ease-in-out;
}

/* About Section */
.about-section {
  position: relative;
  overflow: hidden;
}

.about-card {
  position: relative;
  max-width: 100vw;
  margin: 0 auto;
  padding: 2rem;
}

.about-content {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2rem;
}

.about-text {
  position: relative;
  z-index: 2;
  -webkit-transform: translateY(20px);
      -ms-transform: translateY(20px);
          transform: translateY(20px);
  -webkit-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.about-text.visible {
  opacity: 1;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

.about-text.txt-top {
  top: -5rem;
  left: 5rem;
  -ms-flex-item-align: start;
      align-self: flex-start;
  margin-top: 5rem;
  margin-left: 5rem;
}

.about-text.txt-bottom {
  padding-top: 2rem;
  padding-bottom: 2rem;
  -ms-flex-item-align: end;
      align-self: flex-end;
  margin-bottom: 5rem;
  margin-right: 5rem;
}

.about-text h3:nth-child(2) {
  font-size: 1.2rem;
  line-height: 1.75rem;
}

/* Background Video */
.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-video video {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  opacity: 0.28;
  -webkit-filter: contrast(0.8) brightness(1);
          filter: contrast(0.8) brightness(1);
  border-radius: 0;
}

/* Contact Section */
.contact-links {
  text-align: center;
  width:100%;

  padding-top: 0;
  padding-bottom: 0;
}

.contact-link .linkForm {
  z-index:99;pointer-events:all;
  background-color: var(--button-background);
  color: var(--button-color);
  font-size: 1.15rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  -webkit-transition: background-color 0.3s ease;
  -o-transition: background-color 0.3s ease;
  transition: background-color 0.3s ease;
  font-family: 'averta';
  display:-webkit-box;
  display:-ms-flexbox;
  display:flex;
  -webkit-box-align:center;
      -ms-flex-align:center;
          align-items:center;
}
.linkForm svg {
  fill:#fff;
  margin-right:.5rem;
}
.contact-link .linkForm:hover {
  background-color: var(--button-background);
}

/* Social Links */
.social-links ul {
  list-style: none;
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 2rem 0 0;
}
nav.o-container {
  margin: 0 2rem 0;
}
.social-links li {
  margin: 0 1rem;
}

.social-links, footer a {
  
  text-decoration: none;
  font-family:"Averta", sans-serif;
  font-size: .9rem;
  -webkit-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

a {
  color: #1a1a1a;
}
.social-links a:hover {
  color: var(--link-hover-color);
}

/* Animations */
@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}



@media (max-width: 768px) {
  :root {
    --section-padding: 2rem 1rem;
    --section-margin: 1rem 0;
  }

  .about-section {
 
  }

  .about-text.txt-top {
    top: -5rem;
    left: 2rem;
    margin-top: 2rem;
    margin-left: 2rem;
  }

  .about-text.txt-bottom {
    margin-bottom: 2rem;
    margin-right: 2rem;
  }

  .social-links {
    width: 100%;
  }

  .social-links ul {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
  }
}
.social-links ul {
  padding-bottom:5rem;
}

@media (max-width: 480px) {
  .about-section {
 
  }

  .about-card {
    padding: 1rem;
    border: none;
  }

  .about-content {
    min-height: 25rem;
  }

  .about-text h3 {
    font-size: 3.2rem;
    line-height: 4rem;
 
  }

  .about-text-container.bottom {
    width: 85vw;
    margin: 0;
  }

  .about-text-container.bottom h3 {
    font-size: 2rem;
    line-height: 3rem;
  }

  .social-nav {
    display: block;
    text-align: center;
    padding: 0;
  }

  .social-nav-item {
    padding: 0;
  }
}

@media (min-width:1025px){
  .mobile-menu  {
    display:none;
  }
}
h3.latest-project {
  display:none;
}
@media (max-width:768px) {
.footer {
 
  margin: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-flow: wrap;
      flex-flow: wrap;
}
}
/* Media Queries */
@media (min-width: 1800px) {
  section {
    padding: 4rem 0;
    padding-top:0rem;
    overflow:hidden;
    max-width:100%;
    width:100%;
  }
  .sec1 {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
  }
}


@media (min-width: 1024px) {

header.scrolled-past-header {
  
    top: 2vw;
    padding: 0;
    max-width: 98vw;
    margin: 0 auto;

}
.scrolled-past-header a.c-header__logo {
  position: absolute;
  right: -19%;
}
}
.action-button {
  background-color: transparent;
  border: 1px solid var(--text-color);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  margin-left: 1rem;
  color: var(--text-color);
  font-weight: 500;
  font-family: 'Averta', sans-serif;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.action-button:hover {
  color: var(--text-color);
}

.action-button:active {
  transform: scale(0.98);
}

.contact-form-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 1000;
  overflow: hidden;
}


.contact-form {
  background-color: var(--background-color);
  border-radius: 0;
  padding: 1.5rem;
  padding-top: 2.5rem;
  padding-bottom: 2rem;
  width: 90%;
  max-width: 500px;
  position: relative;
  margin: auto;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  border: 1px solid rgba(240, 86, 39, 0.2);
}

.contact-form .case-study-close-button {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  z-index: 10;
}
.form-grid {
 
  opacity: 0.1;
  position: absolute;
  inset: 0;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid rgba(240, 86, 39, 0.3);
  border-radius: 0;
  background: var(--background-color);
  color: var(--text-color);
  font-size: 1rem;
  font-family: 'Averta', sans-serif;
  color: #1B1212;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-input:focus {
  outline: none;
  border-color: #f05627;
  box-shadow: none;
  transform: translateY(-1px);
}

.form-subtitle {
  font-size: 1.3rem;
  color: var(--text-color);
  line-height: 1.2;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
  font-weight: 400;
  text-wrap: pretty;
}


.form-submit:hover {
  -webkit-transform: translateY(-2px);
      -ms-transform: translateY(-2px);
          transform: translateY(-2px);
  box-shadow: none;
  background: #e04820;
}
.grid-container h4 {
  font-size: 1.55rem;
    margin-bottom: 0.5rem;
    text-align:left;
    position:relative;
    padding-bottom:1rem;
}
.grid-container h4:after {
  content:"";
  background:#f05627;
  width:100px;
  height:1px;
  display:inline-block;
  vertical-align:middle;
  margin-left:1rem;
}
label {
  color:#1B1212;
}
::-webkit-input-placeholder {
  color:#1B1212;
  font-weight:900;
  letter-spacing:1px;
  font-family:"Averta";
  font-size:11px;
  letter-spacing:-.1px;

 
}
::-moz-placeholder {
  color:#1B1212;
  font-weight:900;
  letter-spacing:1px;
  font-family:"Averta";
  font-size:11px;
  letter-spacing:-.1px;

 
}
:-ms-input-placeholder {
  color:#1B1212;
  font-weight:900;
  letter-spacing:1px;
  font-family:"Averta";
  font-size:11px;
  letter-spacing:-.1px;

 
}
::-ms-input-placeholder {
  color:#1B1212;
  font-weight:900;
  letter-spacing:1px;
  font-family:"Averta";
  font-size:11px;
  letter-spacing:-.1px;

 
}
::placeholder {
  color:#1B1212;
  font-weight:900;
  letter-spacing:1px;
  font-family:"Averta";
  font-size:11px;
  letter-spacing:-.1px;

 
}
input {
  cursor:pointer;
}

html {
  font-family:"Averta";
  letter-spacing:.1px;
  color: var(--text-color);
}
.grid-container {
  z-index: 2;
  position: relative;
}
/* Enhanced Hero Section */
.hero-section {
  min-height: 100vh;
  width: 100%;
  background: var(--background-color);
  position: relative;
  overflow: hidden;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 2rem 1.5fr;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

/* Animated background pattern
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 2% 50%, rgba(249, 247, 239, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 98% 50%, rgba(249, 247, 239, 0.07) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite alternate;
} */

.sec2 {
  padding: 4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
  flex-direction:column;
}

/* Logo container with floating animation */
.sec2 .logo-container {
  position: relative;
}



.sec1 {
/* justify-content:center; */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* align-items: center; */
  position: relative;
  flex-direction:column;
}

.sec1_a {
  position: relative;
  z-index: 2;
}


.sec1 h1 a {
  position: relative;
  text-decoration: none;
  color: inherit;
}

.sec1 h1 a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  -webkit-transform: scaleX(0);
      -ms-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: right;
      -ms-transform-origin: right;
          transform-origin: right;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.sec1 h1 a:hover::after {
  -webkit-transform: scaleX(1);
      -ms-transform: scaleX(1);
          transform: scaleX(1);
  -webkit-transform-origin: left;
      -ms-transform-origin: left;
          transform-origin: left;
}

.tagline {
  font-size: 1.2rem;
  color: #1a1a1a;
  opacity: 1;
  -webkit-animation: fadeUpIn 0.8s ease-out forwards 0.4s;
          animation: fadeUpIn 0.8s ease-out forwards 0.4s;
}

.sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}


@-webkit-keyframes fadeUpIn {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}


@keyframes fadeUpIn {
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

/* Responsive design */
@media (max-width: 1024px) {
  .hero-section {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    -ms-grid-rows: auto 1fr;
    grid-template-rows: auto 1fr;
  }
  .hero-section > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }
  .hero-section > *:nth-child(2) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
  }

  .sec2 {
    padding: 2rem;
  }

 

  .sec1 h1 {
    font-size: 7.8rem;
    line-height:86%;
    letter-spacing:0;
  }
  .action-button {
    width:15vw;
  }
}
.action-button {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

@media (max-width: 768px) {

  .tagline {
    font-size: 1rem;
  }
}
/* Hero Section Base */
.hero-section {
  min-height: 100vh;
background:transparent;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
-ms-flex-flow:wrap;
    flex-flow:wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width:1024px) {

  .hero-section {
    -webkit-box-orient:vertical;
    -webkit-box-direction:normal;
        -ms-flex-direction:column;
            flex-direction:column;
    -webkit-box-pack:center;
        -ms-flex-pack:center;
            justify-content:center;
  }
  .tagline {
    visibility:visible;
    font-size:3vw;
    margin:0 auto;
  }
}

.hero-headline {
  color: #1B1212;  
  /* Refined typography */
  font-family: 'Tiempos Headline';
  font-weight: 300;
  /* Fluid typography using clamp */
  font-size: clamp(2.5rem, 5vw + 1rem, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  /* Improve readability */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Add subtle text shadow for depth */
  text-shadow: 0 1px 2px rgba(27, 18, 18, 0.05);
}

.hero-headline span {
  display: block;
  /* font-size: 10.5vw; */
  font-size: clamp(3rem, 15vw, 8rem);

 
}

.hero-headline em {
  font-style: italic;
  display: inline-block;
  position: relative;
  -webkit-transform-origin: bottom;
      -ms-transform-origin: bottom;
          transform-origin: bottom;
}


.sec2 {
  width: 100%;
  margin: 0 auto;
  -webkit-transform: translateY(0);
      -ms-transform: translateY(0);
          transform: translateY(0);
}

/* Background Animation
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(249, 247, 239, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite alternate;
} */

/* Animations */
@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(30px);
            transform: translateY(30px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-webkit-keyframes float {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}

@keyframes float {
  0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
  50% { -webkit-transform: translateY(-20px); transform: translateY(-20px); }
}

@-webkit-keyframes wave {
  0%, 100% { -webkit-transform: rotate(-2deg); transform: rotate(-2deg); }
  50% { -webkit-transform: rotate(2deg); transform: rotate(2deg); }
}

@keyframes wave {
  0%, 100% { -webkit-transform: rotate(-2deg); transform: rotate(-2deg); }
  50% { -webkit-transform: rotate(2deg); transform: rotate(2deg); }
}

@-webkit-keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: clamp(9rem, 100vw, 17rem);
  }
  
  .sec2 {
    width: 60vw;
  }
}
/* Initial loading state */
.loading-screen {
  position: fixed;
  inset: 0;
  background: white;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  z-index: 1000;
  opacity: 1;
  -webkit-transition: opacity 0.5s ease-out;
  -o-transition: opacity 0.5s ease-out;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Logo animation overrides for initial load */
.loading-screen .logo-container svg path {
  stroke-width: 2;
  -webkit-transition: stroke-dashoffset 2.5s ease-in-out;
  -o-transition: stroke-dashoffset 2.5s ease-in-out;
  transition: stroke-dashoffset 2.5s ease-in-out;
}


/* Update GSAP animation durations */
.logo-container path {
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
}

.hero-logo path {
  --stroke-duration: 2.5s;
  -webkit-animation: drawPath var(--stroke-duration) ease-in-out forwards;
          animation: drawPath var(--stroke-duration) ease-in-out forwards;
}

@-webkit-keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}


@media (max-width: 768px) {
  .hero-section {
    overflow: visible;
  }
}

@media (max-width:500px) {

.form-submit {


  max-width:50vw;
}
.form-subtitle {
  font-size: 1.1rem;
  color: #1B1212;
  line-height: 1;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  font-weight: 400;
}
#work h3 {
  text-align: center;
  display: block;
  font-size: 2rem;
  font-weight: 100;
  padding-bottom: 2rem;
  text-transform: capitalize;
}
.portfolio-bio .bio {
  font-size:1.4rem;
  font-family:"averta";
}
.portfolio-info h2 {
  font-size:1.8rem;
}
.portfolio-image {
  top: 6.3vh;
  object-fit: cover;
  width: 44%;
}
.portfolio-info {
  padding-bottom:4rem;
}
.mission-grid {
  grid-template-columns: 1fr;
  gap:.2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}
.thumbnail {
  width: 300px;
  height: 300px;
  border-radius: 0;
  min-height: 300px;
  max-height: 300px;
}
.action-button {
  height: 5vh;
  width: 22vw;
  font-size: 1rem;
}
.portfolio-grid {
  display:flex;
  flex-flow:wrap;
  gap:0;
  width:100%;
 
}
.portfolio-card {
width:95%;
margin:0 auto;
margin-top:2rem;
}
.text-column p {
  letter-spacing: 0;
  line-height: 100%;



}
.statement-headline {
 padding-top:2rem;
  max-width: 100%;
}
.thumbnail-overlay {

display:none;

}

}




#marquee .marquee {
  font-size: clamp(2rem, 10vw, 5rem);
  letter-spacing: 0.05rem;
  overflow: hidden;
  font-family: 'Averta', sans-serif;
  text-transform: uppercase;
  color:#29292E;
}

#marquee .marquee--inner {
  width: max-content;
}

#marquee .marquee p {
  color: #29292E;
  display: flex;
  align-items: center;
  gap: 0.35em;
}

#marquee .marquee p.outline {
  color: black;
}

#marquee .marquee p:before {
  content: '';
  z-index: 1;
}

#marquee .marquee p:after {
  content: '';
  /* mask-image: url(""); */
  mask-repeat: no-repeat;
  width: 0.65em;
  aspect-ratio: 1;
}

#marquee .wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 2fr));
  align-items: center;
}

#marquee .left {
  grid-area: 1/1/1/1;
}

#marquee .right {
  grid-area: 2/2/2/2;
}

#marquee .bg {
  grid-area: 1/1/1/1;
  max-width: 1180px;
  margin-inline: auto;
  position: relative;
  z-index: -1;
}

#marquee  {
  margin: 0;
}



#marquee  {
  display: grid;
}
.bg path {
  fill:hsla(80, 23%, 57%, 25%)!important;
}
.bg {
  display:block;
  width:50%;
  max-height:500px;
}
.marquee-container p {
  font-size:4rem;
}
.marquee {
  position:relative;
  height:400px;
  overflow:hidden;
}
/* Recommended styles for Splitting */
.splitting .word,
.splitting .char {
  display: inline-block;
}

/* Psuedo-element chars */
.splitting .char {
  position: relative;
}

/**
 * Populate the psuedo elements with the character to allow for expanded effects
 * Set to `display: none` by default; just add `display: block` when you want
 * to use the psuedo elements
 */
.splitting .char::before,
.splitting .char::after {
  content: attr(data-char);
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  transition: inherit;
  user-select: none;
}

/* Expanded CSS Variables */

.splitting {
  /* The center word index */
  --word-center: calc((var(--word-total) - 1) / 2);

  /* The center character index */
  --char-center: calc((var(--char-total) - 1) / 2);

  /* The center character index */
  --line-center: calc((var(--line-total) - 1) / 2);
}

.splitting .word {
  /* Pecent (0-1) of the word's position */
  --word-percent: calc(var(--word-index) / var(--word-total));

  /* Pecent (0-1) of the line's position */
  --line-percent: calc(var(--line-index) / var(--line-total));
}

.splitting .char {
  /* Percent (0-1) of the char's position */
  --char-percent: calc(var(--char-index) / var(--char-total));

  /* Offset from center, positive & negative */
  --char-offset: calc(var(--char-index) - var(--char-center));

  /* Absolute distance from center, only positive */
  --distance: calc(
     (var(--char-offset) * var(--char-offset)) / var(--char-center)
  );

  /* Distance from center where -1 is the far left, 0 is center, 1 is far right */
  --distance-sine: calc(var(--char-offset) / var(--char-center));

  /* Distance from center where 1 is far left/far right, 0 is center */
  --distance-percent: calc((var(--distance) / var(--char-center)));
}

/* TrustedBy Component Styles */
.trusted-by {
  margin: 2rem auto 0 auto;
  padding: 1.5rem 0;
  text-align: center;
  background: transparent;
  max-width: 600px;
  z-index: 10;
}

.trusted-by-headline {
  font-family: 'Averta', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  color: #1B1212 !important;
  margin-bottom: 2rem;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  font-style: italic;
  opacity: 1 !important;
}

[data-theme="dark"] .trusted-by-headline {
  color: #fff !important;
}

.trusted-by-clients {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.client-name {
  font-family: 'Averta', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-color);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 0.75rem 1.5rem;
  backdrop-filter: blur(10px);
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.client-logo {
  height: 0.9rem;
  width: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
  vertical-align: middle;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
}

.client-logo:hover {
  opacity: 1;
}

[data-theme="dark"] .client-logo {
  filter: brightness(0) invert(1);
}

/* Avant-garde positioning and effects */
.client-1 {
  transform: translateY(-8px) rotate(-1deg);
}

.client-2 {
  transform: translateY(4px);
}

.client-3 {
  transform: translateY(-2px) rotate(0.5deg);
}

/* Subtle gradient glow backgrounds */
.client-1::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  border-radius: 0;
  z-index: -1;
}

.client-2::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  border-radius: 0;
  z-index: -1;
}

.client-3::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -15px;
  right: -15px;
  bottom: -10px;
  border-radius: 0;
  z-index: -1;
}

/* Hover effects */
.client-name:hover {
  transform: translateY(-2px) scale(1.05);
  color: #f05627;
}

.client-1:hover {
  transform: translateY(-10px) rotate(-1deg) scale(1.05);
}

.client-2:hover {
  transform: translateY(2px) scale(1.05);
}

.client-3:hover {
  transform: translateY(-4px) rotate(0.5deg) scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .trusted-by {
    bottom: 1rem;
    left: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 40px 40px 0 0;
    max-width: 280px;
  }

  .trusted-by-headline {
    font-size: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .trusted-by-clients {
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
  }

  .client-name {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .client-logo {
    height: 1.2rem;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* Reset transforms for mobile - keep them centered and clean */
  .client-1,
  .client-2,
  .client-3 {
    transform: none;
  }

  .client-1:hover,
  .client-2:hover,
  .client-3:hover {
    transform: translateY(-2px) scale(1.05);
  }

  /* Adjust mobile glow effects */
  .client-1::before,
  .client-2::before,
  .client-3::before {
    top: -8px;
    left: -12px;
    right: -12px;
    bottom: -8px;
  }
}
/* ── Falling daisies container (inside hero) ── */
.daisy-rain-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.daisy {
  position: absolute;
  top: 0;
  opacity: 0;
  animation: daisyFall var(--fall-duration) var(--fall-delay) linear forwards;
  will-change: transform, opacity;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06));
}

.daisy svg,
.daisy img {
  width: var(--daisy-size);
  height: var(--daisy-size);
  display: block;
  object-fit: contain;
  opacity: 0.6;
}

/* Smooth natural fall — every keyframe has both opacity + transform, linear timing,
   sway alternates left-right like a real petal catching air */
@keyframes daisyFall {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  3% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-1) * 0.05)) translateY(2vh) rotate(3deg);
  }
  10% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-1) * 0.4)) translateY(9vh) rotate(calc(var(--rot-1) * 0.2));
  }
  20% {
    opacity: var(--daisy-opacity);
    transform: translateX(var(--drift-1)) translateY(19vh) rotate(calc(var(--rot-1) * 0.5));
  }
  30% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-2) * 0.6)) translateY(29vh) rotate(var(--rot-1));
  }
  40% {
    opacity: var(--daisy-opacity);
    transform: translateX(var(--drift-2)) translateY(39vh) rotate(calc(var(--rot-2) * 0.7));
  }
  50% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-3) * 0.5)) translateY(49vh) rotate(var(--rot-2));
  }
  60% {
    opacity: var(--daisy-opacity);
    transform: translateX(var(--drift-3)) translateY(59vh) rotate(calc(var(--rot-3) * 0.6));
  }
  70% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-4) * 0.5)) translateY(69vh) rotate(var(--rot-3));
  }
  80% {
    opacity: var(--daisy-opacity);
    transform: translateX(var(--drift-4)) translateY(79vh) rotate(calc(var(--rot-4) * 0.7));
  }
  90% {
    opacity: var(--daisy-opacity);
    transform: translateX(calc(var(--drift-1) * 0.3)) translateY(89vh) rotate(calc(var(--rot-4) * 0.9));
  }
  96% {
    opacity: calc(var(--daisy-opacity) * 0.5);
    transform: translateX(calc(var(--drift-2) * 0.2)) translateY(95vh) rotate(var(--rot-4));
  }
  100% {
    opacity: 0;
    transform: translateX(var(--drift-2)) translateY(100vh) rotate(var(--rot-4));
  }
}

/* ── Floor accumulation (pinned to hero bottom) ── */
.daisy-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  z-index: 4;
}

.daisy-floor-petal {
  position: absolute;
  pointer-events: none;
  animation: floorLand 1.4s cubic-bezier(0.2, 0.8, 0.3, 1) var(--land-delay, 0s) forwards;
  opacity: 0;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.08));
}

.daisy-floor-petal svg,
.daisy-floor-petal img {
  width: var(--daisy-size);
  height: var(--daisy-size);
  display: block;
  object-fit: contain;
  opacity: 0.6;
  transform: scale(var(--petal-scale, 1));
}

/* Organic landing — drifts sideways as it settles */
@keyframes floorLand {
  0% {
    opacity: 0;
    transform: translateY(-50px) translateX(0) rotate(0deg);
  }
  30% {
    opacity: 0.8;
    transform: translateY(-15px) translateX(calc(var(--drift-x) * 0.6)) rotate(calc(var(--rest-rot) * 0.3));
  }
  65% {
    opacity: 0.9;
    transform: translateY(4px) translateX(var(--drift-x)) rotate(calc(var(--rest-rot) * 0.85));
  }
  82% {
    transform: translateY(-2px) translateX(var(--drift-x)) rotate(var(--rest-rot));
  }
  100% {
    opacity: 0.9;
    transform: translateY(0) translateX(var(--drift-x)) rotate(var(--rest-rot));
  }
}

/* Sweep-out animation */
.daisy-floor-petal--sweep {
  animation: floorSweep 0.8s ease-in forwards !important;
}

@keyframes floorSweep {
  0% {
    opacity: 0.9;
    transform: translateY(0) translateX(var(--drift-x)) rotate(var(--rest-rot));
  }
  100% {
    opacity: 0;
    transform: translateY(40px) translateX(var(--drift-x)) rotate(calc(var(--rest-rot) + 90deg)) scale(0.3);
  }
}

/* ── Sweep button ── */
.daisy-sweep-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: all;
  z-index: 5;
  background: white;
  color: #1B1212;
  border: 1px solid #d8d5d0;
  padding: 0.4rem 1rem;
  font-family: 'Averta', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  border-radius: 0;
  opacity: 0;
  animation: sweepBtnIn 0.6s ease-out 0.3s forwards;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.daisy-sweep-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.daisy-sweep-btn:hover {
  background: #f7f5f0;
  border-color: #E8B94B;
}

@keyframes sweepBtnIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile — land below the hero, just above the photo section */
@media (max-width: 768px) {
  .daisy-rain-container {
    overflow: hidden;
  }

  .daisy-floor {
    position: absolute;
    bottom: -50px;
  }

  .daisy-sweep-btn {
    position: absolute;
    bottom: 20px;
    left: 1rem;
    transform: none;
    animation-name: sweepBtnInMobile;
  }

  @keyframes sweepBtnInMobile {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

