:root {
  --main-gradient: linear-gradient(0deg,
      rgb(255, 245, 230),
      rgb(255, 240, 235) 25%,
      rgb(250, 235, 245) 50%,
      rgb(245, 240, 255) 75%,
      rgb(250, 250, 255));
  --bg-color: #f1f1f1;
  --text-primary: #111111;
  --text-secondary: #777777;
  --font-heading: 'Geist', sans-serif;
  --font-body: 'Geist', sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

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

html,
body {
  height: auto;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}



html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}



html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}



body {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
}



body::before {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--main-gradient);
  z-index: -2;
  pointer-events: none;
}



body::after {
  content: "";
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('images/noise-ninedeez.svg');
  opacity: 0.2;
  mix-blend-mode: multiply;
  pointer-events: none;
  background-size: 200px 200px;
  background-repeat: repeat;
  z-index: -1;
}

main,
#root,
#__next,
.content {
  position: relative;
  z-index: 2;
  isolation: isolate;
  flex: 1 1 auto;
  min-height: 100vh;
}



h1 {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 460;
  line-height: 52px;
  letter-spacing: -3px;
  margin-bottom: 3.5rem;
  background: linear-gradient(to bottom, #f1f1f1 0%, #333333 20%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #333333;
}

h2 {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 460;
  line-height: 52px;
  letter-spacing: -3px;
  background: linear-gradient(to bottom, #f1f1f1 0%, #333333 20%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #333333;
}


.subtext {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 22px;
  color: rgba(115, 115, 115, 0.85);
  max-width: 600px;
  margin: 0 auto 6rem auto;
}

.subtext-dark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: rgba(51, 51, 51, 0.70);
  max-width: 500px;
  margin: 0 auto 3rem auto;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 4rem;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  border-radius: 9px;
  text-decoration: none;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #111;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transform: scale(0.9);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: scale(0.9);
}

.btn-light {
  background: rgba(255, 255, 255, 0.8);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.btn-light:hover {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}



html,
body,
a,
button,
[role="button"],
input,
select,
textarea {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background-color: #ff4800;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: background-color 0.3s ease;
  will-change: transform;
}

@media (max-width: 480px) {

  html,
  body,
  a,
  button,
  [role="button"],
  input,
  select,
  textarea {
    cursor: auto !important;
  }

  .custom-cursor {
    display: none !important;
  }
}



.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.hero-content {
  margin-top: 15vh;
  text-align: center;
  color: var(--text-primary);
  padding: 0 2rem;
}



.clients {
  padding: 7rem 2rem 8rem 2rem;
  text-align: center;
  background-color: transparent;
  position: relative;
}

.clients-title {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(51, 51, 51, 0.70);
  line-height: 17px;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  word-wrap: break-word;
  margin-bottom: 7rem;
}

.clients-logos-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.clients-logos-track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}

.clients-logos-set {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  padding-right: 8rem;
  opacity: 0.8;
}

.clients-logos-set img {
  width: 150px;
  height: 48px;
  object-fit: contain;
  opacity: 0.8;
}

.clients-logos-set img:nth-child(1),
.clients-logos-set img:nth-child(3) {
  transform: translateY(6px);
}

.clients-logos-set img:nth-child(2) {
  transform: scale(1.2);
}

.clients-logos-set img:last-child {
  transform: scale(1.7) translateY(4px);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

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



.portfolio {
  padding: 4rem 2rem 8rem 2rem;
  text-align: center;
  background-color: transparent;
}

.portfolio h2 {
  margin-bottom: 3rem;
  background: linear-gradient(to bottom, #f1f1f1 0%, #333333 16%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio h2::after {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  margin: 3rem auto 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1.5rem;
  justify-content: center;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}

.col-left,
.col-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 70px;
}

.col-center {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.center-bottom-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.port-img {
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.port-img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.left-img,
.right-img {
  width: 260px;
  height: 260px;
}

.center-main-img {
  width: 400px;
  height: 400px;
}

.bottom-img {
  flex: 1;
  width: 0;
  aspect-ratio: 1/1;
}



.bottom-cta {
  padding: 10rem 2rem 22rem 2rem;
  text-align: center;
  position: relative;
  background: transparent;
  overflow: hidden;
}

.bottom-cta h2 {
  margin-bottom: 3rem;
}

.bottom-cta h2::after {
  content: '';
  display: block;
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  margin: 3rem auto 0 auto;
}



.sn-global-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px 20px 52px 20px;

  background-color: transparent;

  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 400;

  letter-spacing: -0.72px;
  color: rgba(51, 51, 51, 0.5);

  position: relative;
}



.sn-global-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sn-global-footer a:hover {
  text-decoration: none;
  color: rgba(51, 51, 51, 0.9);
}

.sn-global-footer a:visited {
  color: inherit;
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .clients-logos-track {
    animation: none;
  }
}



@media (max-width: 1024px) {
  h1 {
    font-size: 4rem;
  }

  .center-main-img {
    width: 320px;
    height: 320px;
  }

  .left-img,
  .right-img {
    width: 220px;
    height: 220px;
  }

  .col-left,
  .col-right {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .desktop-br {
    display: none;
  }

  h1 {
    font-size: 3rem;
    line-height: 44px;
  }

  h2 {
    font-size: 2.5rem;
    line-height: 36px;
    background: linear-gradient(to bottom, #f1f1f1 0%, #333333 10%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
  }

  .col-left,
  .col-center,
  .col-right,
  .center-bottom-row {
    display: contents;
    margin-top: 0;
  }

  .left-img,
  .right-img,
  .center-main-img,
  .bottom-img {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .left-img { grid-column: span 2; }
  .center-main-img { grid-column: span 1; align-self: end; }
  .center-bottom-row a:nth-child(1) .bottom-img { grid-column: span 1; align-self: end; }
  .center-bottom-row a:nth-child(2) .bottom-img { grid-column: span 2; }
  .right-img { grid-column: span 2; }

  .hero {
    min-height: auto;
    padding-bottom: 6rem;
  }

  .hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -3.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.25) 100%);
  }

  .clients {
    padding-top: 6rem;
  }

  .clients-logos-track {
    animation-duration: 25s;
  }

  .clients-logos-set {
    gap: 4rem;
    padding-right: 4rem;
  }

  .clients-logos-set img {
    width: 150px;
    height: 48px;
    object-fit: contain;
  }

  .clients-logos-set img:nth-child(1),
  .clients-logos-set img:nth-child(3) {
    transform: translateY(6px);
  }

  .clients-logos-set img:nth-child(2) {
    transform: scale(1.2);
    margin: 0 1.2rem;
  }

  .clients-logos-set img:last-child {
    transform: scale(1.7) translateY(4px);
    margin: 0 3rem;
  }

  .bottom-cta {
    padding-bottom: 14rem;
    padding-top: 8rem;
  }

  .sn-global-footer {
    gap: 20px;
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.5rem;
    line-height: 36px;
  }

  .hero-content {
    margin-top: 20vh;
  }

  .clients-logos-track {
    animation-duration: 15s;
  }

  .clients-logos-set {
    gap: 3.5rem;
    padding-right: 3.5rem;
  }

  .clients-logos-set img {
    width: 140px;
    height: 45px;
    max-width: none;
    object-fit: contain;
  }

  .clients-logos-set img:nth-child(1),
  .clients-logos-set img:nth-child(3) {
    transform: translateY(6px);
  }

  .clients-logos-set img:nth-child(2) {
    transform: scale(1.2);
    margin: 0 1rem;
  }

  .clients-logos-set img:last-child {
    transform: scale(1.7) translateY(4px);
    margin: 0 2.5rem;
  }

  .bottom-cta {
    padding-bottom: 9rem;
    padding-top: 6rem;
  }

  .sn-global-footer {
    flex-direction: row;
    gap: 16px;
    padding: 16px 12px 60px 12px;
    font-size: 11px;
  }

  .sn-global-footer span {
    flex-basis: 100%;
    text-align: center;
    margin-top: 4px;
  }
}



.reveal-text {
  opacity: 1;
}

.word-wrapper {
  display: inline-block;
  vertical-align: top;
  overflow: hidden;
  padding-right: 0.25em;
}

.word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-text.in-view .word {
  opacity: 1;
  transform: translateY(0);
}

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


.contact-hero {
  padding: 12vh 2rem 6vh 2rem;
  text-align: center;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 10rem 2rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(51, 51, 51, 0.9);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-primary);
  opacity: 0.2;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-container {
  grid-column: span 2;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .contact-hero {
    padding-top: 22vh;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group.full-width {
    grid-column: span 1;
  }
  
  .submit-container {
    grid-column: span 1;
  }
}



.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 2rem;
}

.portfolio-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  opacity: 0;
}

.portfolio-modal.active .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  z-index: 10;
  transition: background 0.3s ease;
  cursor: auto !important; 
}

.modal-close:hover {
  background: rgba(0,0,0,0.1);
}

.modal-body {
  display: flex;
  width: 100%;
  flex-direction: row;
}

.modal-image-container {
  flex: 1.2;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  min-height: 400px;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.modal-info h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  color: #111;
}

.modal-info p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 2.5rem;
}

.modal-info .btn {
  align-self: flex-start;
  padding: 0 2rem;
  height: 44px;
  font-size: 13px;
  cursor: auto !important;

}



.carousel-controls {
  position: absolute;
  top: 1.5rem;
  left: 3rem;

  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.carousel-btn {
  background: transparent;
  border: none;
  cursor: pointer !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  width: 24px;
  height: 24px;
  transition: color 0.3s;
  padding: 0;
}

.carousel-btn:hover {
  color: #111;
}

.carousel-thumbnails {
  display: flex;
  gap: 6px;
}

.carousel-thumb {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer !important;
  border: 1px solid transparent;
  opacity: 0.5;
  transition: all 0.3s;
}

.carousel-thumb:hover {
  opacity: 0.8;
}

.carousel-thumb.active {
  opacity: 1;
  border-color: #111;
  box-shadow: 0 0 0 1px #111;
}

@media (max-width: 768px) {
  .portfolio-modal {
    padding: 1rem;
  }
  
  .modal-body {
    flex-direction: column;
    max-height: 85vh;
    overflow-y: auto;
  }
  
  .modal-image-container {
    height: 300px;
    min-height: 300px;
    flex: none;
  }
  
  .modal-info {
    padding: 2.5rem 2rem;
  }
}