:root {
  --bg: #b1b6b3;
  --text: rgba(51, 51, 51, 0.86);
  --muted: rgba(51, 51, 51, 0.7);
  --card: rgba(248, 245, 238, 0.84);
  --btn: rgba(32, 32, 32, 0.88);
  --line: rgba(0, 0, 0, 0.1);
  --testimonial-height: 420px; /* Slight increase for safer text wrapping */
  --hero-text-shift: min(60px, 5vw);
  --container-max: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}


body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.section-wrap {
  width: min(1600px, calc(100% - 48px));
  /* Increased max-width for 4K/Wide screens */
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: 86px;
  background: rgba(255, 255, 255, 0.14);
  border-bottom: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Removed hide-on-scroll rule as navbar is now always visible */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 22px;
}

.logo {
  font: 500 32px/1 "Bricolage Grotesque", sans-serif;
  color: #000;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 34px;
}

.nav-links a,
.linkedin {
  font: 300 14px/1 "Geist Mono", monospace;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
  color: #606060;
  transform: translateY(-2px);
}

.linkedin {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.linkedin:hover {
  opacity: 1;
}

.linkedin img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.hero {
  min-height: 620px;
  margin-top: 86px;
  padding-top: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.82fr;
  gap: 0;
  align-items: start;
}

.hero.section-wrap {
  width: 100%;
  max-width: 100%;
  padding-left: max(27px, calc((100vw - 1600px) / 2));
  padding-right: 0;
}

.hero h1 {
  margin: 48px 0 48px;
  font: 500 clamp(36px, 4.2vw, 60px) / 0.96 "Bricolage Grotesque", sans-serif;
  text-transform: capitalize;
  letter-spacing: -0.052em;
  color: var(--text);
  max-width: 760px;
  text-wrap: balance;
}

.hero-content {
  padding-left: var(--hero-text-shift);
  padding-top: 50px;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.006em;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  background: var(--btn);
  color: #f1f1f1;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  padding: 16px 52px;
  font: 500 12px/1 "Geist", sans-serif;
  letter-spacing: 0.08em;
  transition: background-color 0.3s ease, opacity 0.18s ease;
}

.cta-btn:not(.linkedin-btn) {
  background-color: #424342;
}

.cta-btn:not(.linkedin-btn):hover {
  background-color: #000;
}

.hero-image-wrap {
  justify-self: end;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right,
      var(--bg) 0%,
      rgba(177, 182, 179, 0.92) 8%,
      rgba(177, 182, 179, 0.72) 16%,
      rgba(177, 182, 179, 0.45) 26%,
      rgba(177, 182, 179, 0.18) 38%,
      rgba(177, 182, 179, 0) 52%);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top,
      var(--bg) 0%,
      rgba(177, 182, 179, 0.6) 40%,
      rgba(177, 182, 179, 0) 100%);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.clients {
  padding: 36px 0 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
}

/* Full-bleed marquee box */
.clients-marquee-box {
  border-top: 1px solid rgba(51, 51, 51, 0.25);
  border-bottom: 1px solid rgba(51, 51, 51, 0.25);
  background: var(--bg);
  padding: 24px 0;
  overflow: hidden;
}

.testimonials h2 {
  margin: 0 0 26px;
  font: 500 27px/1.15 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.045em;
}

.logo-marquee-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 8px 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  animation: clientMarquee 70s linear infinite;
  will-change: transform;
}

.logo-marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(60px, 8vw, 120px);
  padding-inline-end: clamp(60px, 8vw, 120px);
}

.logo-marquee-group img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%) contrast(1.1);
  transform: translateZ(0);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-marquee-group img:hover {
  opacity: 0.78;
  filter: grayscale(100%) blur(0);
}

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

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

.operator {
  position: relative;
  text-align: center;
  padding: 180px 42px 180px;
  background-color: #F8F5EE;
  isolation: isolate;
  overflow: hidden;
}

.operator::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./src/Rectangle 49.png") center / cover no-repeat;
  opacity: 0.2;
  z-index: -2;
  transform: translateY(-30px);
}

.operator::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: -1;
  pointer-events: none;
}


.operator h2 {
  max-width: 940px;
  margin: 0 auto;
  color: rgba(51, 51, 51, 0.86);
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(42px, 4.1vw, 52px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -2.4px;
  text-transform: capitalize;
}

.models h2 {
  max-width: 900px;
  margin: 0 auto;
  font: 600 clamp(26px, 3vw, 44px) / 1.09 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.045em;
  color: var(--text);
}

.service-grid {
  margin: 80px auto 0;
  max-width: var(--container-max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 40px;
  text-align: left;
}

.service-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 44px;
  border-radius: 9px;
  background: rgba(217, 217, 217, 0.2);
  color: #dcd8ce;
  font-family: "Geist Mono", monospace;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -1.98px;
}

.service-grid h3 {
  margin: 10px 0 32px;
  color: var(--text);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(22px, 2.1vw, 30px);
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: -1.85px;
}

.service-grid p {
  margin: 0;
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.006em;
}

.models {
  padding: 180px 0 72px;
  text-align: center;
}

.models-sub {
  margin: 16px auto 86px;
  max-width: 700px;
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.006em;
}


.model-list {
  display: grid;
  gap: 12px;
  max-width: 1050px;
  margin: 0 auto;
}

.model-card {
  min-height: 115px;
  border-radius: 20px;
  background: #f8f5ee;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 16px 60px;
  text-align: left;
  border: 1px solid var(--line);
}

.model-card .model-header {
  flex: 0 0 clamp(180px, 28%, 420px);
}

.model-card h3 {
  margin: 0;
  font: 500 clamp(24px, 2.2vw, 36px) / 1.02 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.052em;
  color: var(--text);
  white-space: nowrap;
}

.model-card .model-meta {
  flex: 0 0 140px;
  font-family: "Geist Mono", monospace;
  font-size: clamp(12px, 0.9vw, 14px);
  color: rgba(0, 0, 0, 0.34);
  display: flex;
  align-items: center;
}

.model-card .model-meta p {
  margin: 0;
  display: flex;
  align-items: center;
}

.model-card .model-meta p::before {
  content: "•";
  margin-right: 8px;
  opacity: 0.5;
}

.model-card .model-content {
  flex: 1 1 auto;
}

.model-card .model-content p {
  margin: 0;
  font: 400 clamp(13px, 1vw, 15px) / 1.4 "Inter Tight", sans-serif;
}

.model-card p:nth-child(2) {
  font-family: "Geist Mono", monospace;
  font-size: clamp(12px, 0.9vw, 14px);
  color: rgba(0, 0, 0, 0.34);
}

.podcast-image {
  position: relative;
}

.podcast-image>img:not(.podcast-blur) {
  width: 100%;
  max-height: 640px;
  display: block;
  object-fit: cover;
}

.podcast-blur {
  position: absolute;
  bottom: 0;
  left: -10vw;
  width: 120vw;
  height: 200px;
  pointer-events: none;
  z-index: 2;
  transform: translateY(50%);
  background: #b1b6b3;
  filter: blur(51px);
}

.testimonials {
  padding: 150px 0 66px;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 80px;
  font: 500 clamp(36px, 4vw, 52px) / 1 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.05em;
  color: var(--text);
}



.testimonial-slider-container {
  width: 100%;
}

.testimonial-grid {
  display: flex;
  overflow-x: scroll;
  gap: 24px;
  padding-bottom: 24px;
  padding-left: clamp(20px, 5vw, 60px);
  padding-right: 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  align-items: flex-start;
}

.testimonial-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 clamp(100px, 85vw, 840px);
  height: var(--testimonial-height);
  /* Controlled height to reduce empty space */
  background: rgba(248, 245, 238, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  scroll-snap-align: start;
}

.testimonial-text {
  color: rgba(30, 30, 30, 0.7);
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.testimonial-text p {
  margin: 0;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card footer img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card footer div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-card footer strong {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #333;
}

.testimonial-card footer span {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 12px;
  color: #666;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0px;
}

.testimonial-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.testimonial-dots .dot.active {
  background: rgba(255, 255, 255, 0.92);
  transform: scale(1.2);
}

.site-footer {
  text-align: center;
  padding: 300px 32px 0;
  background-color: var(--bg);
  margin-top: auto;
}

.site-footer h2 {
  max-width: 900px;
  margin: 0 auto;
  font: 600 clamp(26px, 3vw, 44px) / 1.09 "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.045em;
  color: var(--text);
}

.site-footer p {
  margin: 36px auto 0;
  font: 400 clamp(16px, 1.2vw, 21px) / 1.38 "Inter Tight", sans-serif;
  color: var(--muted);
  letter-spacing: 0.006em;
}

.site-footer .cta-btn {
  margin-top: 80px;
}

.footer-line {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.18);
  border: none;
  margin: 16px -32px 12px;
}

.footer-legal {
  padding: 0 0 12px;
  display: flex;
  justify-content: center;
}


.footer-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 200px;
  padding-top: 24px;
}

.footer-bottom small {
  font: 500 12px/1 "Bricolage Grotesque", sans-serif;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
  text-align: right;
}

.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.linkedin-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #333333;
  color: #f1f1f1;
  padding: 10px 20px;
  font: 500 11px/1 "Geist", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.linkedin-footer-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.linkedin-footer-btn img {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

.footer-bottom .logo {
  flex: 1;
  text-align: left;
  z-index: 1;
  margin: 0;
  padding-bottom: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 0.85;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #333333;
  text-decoration: none;
}

.privacy-link {
  font: 500 12px/1 "Bricolage Grotesque", sans-serif;
  color: rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.privacy-link:hover {
  color: #606060;
}
.ninedeez-link {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

.ninedeez-link:hover {
  color: #606060;
}

.ninedeez-link:hover span {
  text-decoration: underline;
}

@media (max-width: 1200px) {
  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .hero.section-wrap {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    max-width: 100%;
  }

  .hero-content {
    padding-left: 27px;
    padding-right: 27px;
    padding-top: 0;
  }

  .hero h1 {
    margin-top: 10px;
    max-width: 100%;
    font-size: clamp(38px, 5.5vw, 48px);
    /* Better scaling for tablet */
  }

  .hero-image-wrap {
    justify-self: stretch;
    order: -1;
    /* Move image to the top on mobile */
    margin-bottom: 24px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero p {
    font-weight: 400;
  }

  .service-grid p {
    color: #333;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.45;
    letter-spacing: -0.2px;
  }

  .models-sub {
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: rgba(51, 51, 51, 0.74);
  }

  .site-footer p {
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: inherit;
  }
}

@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 60px;
  }

  .model-card {
    padding: 24px;
    gap: 16px;
    flex-wrap: wrap;
  }

  .model-card .model-header {
    flex: 1 1 auto;
  }

  .model-card .model-meta,
  .model-card .model-content {
    flex: 1 1 100%;
  }

  .model-card h3 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .section-wrap {
    width: calc(100% - 26px);
  }

  .hero.section-wrap {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 100px;
  }

  .hero-content {
    padding-left: 13px;
    padding-right: 13px;
    text-align: center;
  }
  
  .hero-content h1,
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content p {
    padding-inline: 24px;
    max-width: 480px; /* Keep it focused and readable on all mobile displays */
  }

  .site-header {
    height: 54px;
  }

  .hero {
    margin-top: 54px;
  }

  .header-inner {
    padding: 0 10px;
  }

  .logo {
    font-size: 24px;
  }

  .nav-links {
    gap: 18px;
    /* Slightly more space */
  }

  .nav-links a,
  .linkedin {
    font-size: 11px;
    /* Readable minimum */
  }

  .linkedin img {
    width: 24px;
    height: 24px;
  }

  .hero h1 {
    font-size: clamp(26px, 8.6vw, 34px);
    letter-spacing: -0.03em;
  }

  .hero p {
    font-size: 16px;
  }

  .cta-btn {
    width: fit-content;
    text-align: center;
    padding: 14px 40px;
    font-size: 11px;
    margin-top: 72px;
  }

  .clients {
    padding: clamp(60px, 10vh, 100px) 0 0;
  }

  .models {
    padding: clamp(140px, 15vh, 180px) 0 clamp(60px, 10vh, 100px);
  }

  .testimonials,
  .closing {
    padding: clamp(60px, 10vh, 100px) 0;
    /* More balanced padding */
  }

  .operator {
    padding: 80px 20px 100px;
    overflow: visible; /* Allow glow to bleed out slightly */
    position: relative;
  }

  .operator::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: -1;
    pointer-events: none;
  }


  .operator h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(26px, 8.5vw, 36px);
  }

  /* New glow pinned to the text itself */

  .clients-marquee-box {
    padding: 16px 0;
  }

  .logo-marquee-group img {
    max-height: 32px;
    opacity: 0.75;
    filter: grayscale(100%) contrast(1.1);
    margin-top: 14px;
  }

  .logo-marquee-track {
    animation-duration: 40s;
  }

  .operator h2,
  .models h2,
  .site-footer h2,
  .closing h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.03em;
    max-width: none;
    padding: 0 10px;
  }

  .site-footer h2 br,
  .closing h2 br {
    display: none !important;
  }

  .site-footer p {
    font-size: 15px;
  }


  .podcast-blur {
    width: 130vw;
    height: 60px;
    filter: blur(10px);
    bottom: 20px;
    transform: translateY(100%);
  }

  .models-sub {
    font-size: 15px;
  }

  .model-list {
    gap: 10px;
  }

  .model-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 22px;
    gap: 6px;
    min-height: 0;
  }

  .model-card .model-header {
    flex: none;
    width: 100%;
  }

  .model-card .model-meta {
    flex: none;
    width: 100%;
  }

  .model-card .model-content {
    flex: none;
    width: 100%;
  }

  .model-card h3 {
    font-size: clamp(18px, 5vw, 22px);
    white-space: normal;
    letter-spacing: -0.03em;
  }

  .model-card .model-content p {
    font-size: 13px;
    line-height: 1.45;
    white-space: normal;
  }

  .service-grid p,
  .model-card p {
    font-size: 15px;
    letter-spacing: -0.1px;
    line-height: 1.4;
  }

  .testimonial-grid p {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: -0.1px;
  }

  .testimonial-grid article {
    min-height: 0;
    padding: 14px 12px;
  }

  .testimonial-grid footer img {
    width: 24px;
    height: 24px;
  }

  .testimonial-grid footer strong,
  .testimonial-grid footer span {
    font-size: 10px;
  }

  .closing small {
    margin-top: 60px;
    font-size: 11px;
  }

  .site-footer {
    padding-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 100px;
    padding-top: 32px;
    padding-bottom: 16px;
  }

  .footer-bottom .logo {
    position: static;
    transform: none;
    order: -1;
    font-size: 32px;
    line-height: 0.85;
    margin-bottom: 24px;
    text-align: center;
  }

  .footer-line {
    margin: 16px -32px 12px;
  }

  .footer-legal {
    padding-bottom: 12px;
  }

  .footer-right {
    align-items: center;
    gap: 24px;
    width: 100%;
    transform: none;
  }

  .footer-bottom small {
    text-align: center;
    max-width: 280px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
}

/* Very Small Mobile Optimization */
@media (max-width: 400px) {
  .section-wrap {
    width: calc(100% - 20px);
  }

  .logo {
    font-size: 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(28px, 8.6vw, 34px);
  }
}

/* 4K and Ultra-Wide Displays */
@media (min-width: 2000px) {
  .section-wrap {
    width: min(1800px, 90vw);
  }

  .hero h1 {
    font-size: 110px;
  }
}