﻿/*
 * Laptop-first hero correction.
 * The original build fixes the hero at 780px minimum on large screens.
 * That is taller than a common 768px laptop viewport after the header.
 */
:root {
  --background: 0 0% 100%;
  --card: 0 0% 100%;
  --card-border: 0 0% 90%;
  --popover: 0 0% 100%;
  --border: 0 0% 90%;
  --secondary: 0 0% 100%;
  --muted: 0 0% 100%;
  --input: 0 0% 86%;
}

body {
  background-color: #ffffff !important;
  background-image: none !important;
}

section[aria-labelledby="hero-title"] {
  position: relative;
  isolation: isolate;
  background-color: #ffffff;
  background-image: none;
  color: #111111;
}

section[aria-labelledby="hero-title"]::before,
section[aria-labelledby="hero-title"]::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

section[aria-labelledby="hero-title"]::after {
  display: none;
}

section[aria-labelledby="hero-title"]::before {
  display: none;
}

@keyframes hero-gloss-sweep {
  0%, 18% { transform: translateX(-48%); }
  72%, 100% { transform: translateX(48%); }
}

@keyframes hero-galaxy-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 10px, 0); }
}

section[aria-labelledby="hero-title"] > div.absolute {
  display: none !important;
}

section[aria-labelledby="hero-title"] > div.absolute:nth-of-type(2) {
  display: none !important;
}

section[aria-labelledby="hero-title"] > div.absolute.bottom-0 {
  display: block !important;
}

section[aria-labelledby="hero-title"] > .cerebro-live-background {
  display: none !important;
}

section[aria-labelledby="hero-title"] > .cerebro-live-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

header {
  position: absolute !important;
  inset: 0 0 auto;
  width: 100%;
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

header nav[aria-label="Main navigation"] {
  background-color: transparent !important;
}

header nav[aria-label="Main navigation"] a[data-testid^="link-nav-"]:not([data-testid="link-nav-start"]) {
  color: #000000 !important;
  font-weight: 800 !important;
}

section[aria-labelledby="contact-title"] {
  background-color: #ffffff !important;
}

#services {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #ffffff !important;
  color: #241d1e !important;
}

#services::before {
  display: none;
  position: absolute;
  z-index: -1;
  top: -14rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  border: 1px solid rgba(127, 29, 45, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(127, 29, 45, 0.025), 0 0 0 7rem rgba(241, 90, 41, 0.018);
  content: "";
  pointer-events: none;
}

#services h2,
#services h3,
#services li,
#services p {
  color: #241d1e;
}

#services h2 span,
#services li,
#services .text-orange-200,
#services .text-orange-300 {
  color: #9f3e25 !important;
}

#services p {
  color: #666166 !important;
}

#services .border-white\/20 {
  border-color: #e8e5e5 !important;
}

#services a.group {
  border-radius: 0.25rem;
  padding-inline: 1rem;
  transition: background-color 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

#services a.group:hover {
  background-color: #fff8f5 !important;
  box-shadow: inset 3px 0 #f15a29;
  transform: translateX(4px);
}

#services.services-motion-ready > div > div:first-child,
#services.services-motion-ready > div > div:last-child > a {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

#services.services-is-visible > div > div:first-child,
#services.services-is-visible > div > div:last-child > a {
  opacity: 1;
  transform: translateY(0);
}

#services.services-is-visible > div > div:last-child > a:nth-child(2) {
  transition-delay: 90ms;
}

#services.services-is-visible > div > div:last-child > a:nth-child(3) {
  transition-delay: 180ms;
}

/* Landing page visual refresh */
:root {
  --cerebro-ink: #20191b;
  --cerebro-plum: #421b28;
  --cerebro-paper: #f6f4ef;
  --cerebro-line: #e3ded7;
  --cerebro-orange: #f15a29;
}

html { scroll-behavior: smooth; }

body {
  color: var(--cerebro-ink) !important;
  background: var(--cerebro-paper) !important;
}

header {
  z-index: 50 !important;
  border-bottom: 1px solid transparent !important;
  transition: border-color 220ms ease;
}

header > div {
  max-width: 1440px !important;
  padding-block: .9rem !important;
}

header a[data-testid="link-logo"] {
  width: clamp(135px, 13vw, 175px) !important;
  flex: none;
}

header nav[aria-label="Main navigation"] { gap: clamp(1rem, 2vw, 2rem) !important; }

header nav[aria-label="Main navigation"] a[data-testid^="link-nav-"]:not([data-testid="link-nav-start"]) {
  color: var(--cerebro-ink) !important;
  font-size: .68rem !important;
  letter-spacing: .12em !important;
  transition: color 180ms ease, opacity 180ms ease;
}

header nav[aria-label="Main navigation"] a[data-testid^="link-nav-"]:not([data-testid="link-nav-start"]):hover {
  color: var(--cerebro-orange) !important;
}

header a[data-testid="link-nav-start"] {
  border-radius: 999px;
  padding: .85rem 1.25rem !important;
  background: var(--cerebro-plum) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(66, 27, 40, .16);
}

section[aria-labelledby="hero-title"] {
  color: var(--cerebro-ink) !important;
  background-color: var(--cerebro-paper) !important;
}

section[aria-labelledby="hero-title"] > div.relative.mx-auto.grid {
  max-width: 1440px !important;
  padding-inline: clamp(1.25rem, 5vw, 5rem) !important;
}

section[aria-labelledby="hero-title"] h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 7.2vw, 7.4rem) !important;
  letter-spacing: -.075em !important;
  line-height: .88 !important;
}

html body section[aria-labelledby="hero-title"] #hero-title {
  font-size: clamp(4.4rem, 7.4vw, 7rem) !important;
  letter-spacing: -.075em !important;
  line-height: .88 !important;
}

html body section[aria-labelledby="hero-title"] #hero-title + div {
  display: block !important;
  max-width: 38rem !important;
  margin-top: clamp(1.25rem, 2.6vw, 2rem) !important;
  border-left: 0 !important;
  padding-left: 0 !important;
}

html body section[aria-labelledby="hero-title"] #hero-title + div > p {
  max-width: 34rem !important;
  color: var(--cerebro-ink) !important;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem) !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
}

html body section[aria-labelledby="hero-title"] .hero-cta-row {
  display: flex !important;
  flex-wrap: wrap;
  gap: .8rem !important;
  margin-top: clamp(1.5rem, 2.4vw, 2rem) !important;
}

html body section[aria-labelledby="hero-title"] .hero-cta-row > a {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  padding: .95rem 1.4rem !important;
  font-size: .72rem !important;
  letter-spacing: .1em !important;
  line-height: 1.2 !important;
  text-align: center;
}

html body section[aria-labelledby="hero-title"] .hero-cta-row > a[data-testid="link-hero-work"] {
  background: var(--cerebro-orange) !important;
  color: var(--cerebro-ink) !important;
}

html body section[aria-labelledby="hero-title"] .hero-cta-row > a.hero-audit-button {
  background: var(--cerebro-plum) !important;
  border-color: var(--cerebro-plum) !important;
  color: #fff !important;
}

html body section[aria-labelledby="hero-title"] .hero-cta-row > a.hero-audit-button:hover {
  background: #2e111b !important;
  border-color: #2e111b !important;
}

section[aria-labelledby="hero-title"] .hero-promise-marquee {
  gap: .6rem !important;
  color: var(--cerebro-plum) !important;
  letter-spacing: .12em !important;
}

section[aria-labelledby="hero-title"] .hero-promise-label {
  color: var(--cerebro-orange) !important;
  font-size: .68rem;
}

section[aria-labelledby="hero-title"] .hero-promise-tagline {
  color: var(--cerebro-plum) !important;
  font-size: .72rem;
}

section[aria-labelledby="hero-title"] h1 span,
section[aria-labelledby="hero-title"] .text-accent { color: var(--cerebro-orange) !important; }

section[aria-labelledby="hero-title"] .hero-analytics-card {
  width: min(100%, 680px) !important;
  margin-right: clamp(-1.5rem, -2vw, 0rem) !important;
}

section[aria-labelledby="hero-title"] .hero-analytics-image {
  width: min(100%, 520px) !important;
  border-radius: 1.5rem;
  box-shadow: 0 24px 64px rgba(36, 27, 31, .14);
}

section[aria-labelledby="hero-title"] .hero-cta-row > a {
  min-height: 3.25rem;
  border-radius: 999px;
  padding-inline: 1.4rem !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

section[aria-labelledby="hero-title"] .hero-cta-row > a:hover {
  box-shadow: 0 9px 24px rgba(32, 25, 27, .14);
}

#work {
  background: var(--cerebro-paper) !important;
}

#work h2, #work h2 span { color: var(--cerebro-ink) !important; }
#work h2 span { color: var(--cerebro-orange) !important; }

#work button[data-testid^="button-filter-"] {
  border-radius: 999px !important;
  padding: .75rem 1.1rem !important;
  letter-spacing: .08em !important;
}

#work .mt-8.grid > article {
  overflow: hidden;
  border: 1px solid var(--cerebro-line) !important;
  border-radius: 1.1rem;
  background: #fff !important;
  box-shadow: 0 12px 34px rgba(32, 25, 27, .055) !important;
}

#work .mt-8.grid > article > div:first-child { border-radius: .7rem; }
#work .portfolio-artwork-card { border-radius: 1rem; }

html body #services {
  overflow: hidden;
  background: var(--cerebro-plum) !important;
  color: #fff !important;
}

html body #services h2,
html body #services h3,
html body #services li,
html body #services a,
html body #services span { color: #fff !important; }

html body #services h2 span,
html body #services h3 span { color: #ff986d !important; }

html body #services p { color: rgba(255,255,255,.68) !important; }
html body #services .border-white\/20 { border-color: rgba(255,255,255,.2) !important; }

html body #services a.group {
  min-height: 7rem;
  border-bottom-color: rgba(255,255,255,.2) !important;
  border-radius: .75rem;
  padding: 1.2rem !important;
}

html body #services a.group:hover {
  background: rgba(255,255,255,.07) !important;
  box-shadow: inset 3px 0 #ff986d;
  transform: translateX(5px);
}

#process {
  background: #fff !important;
}

#process h2 { color: var(--cerebro-ink) !important; }
#process h2 span { color: var(--cerebro-orange) !important; }

#process .grid.border-t > div {
  padding-block: 2rem;
  transition: background-color 180ms ease, padding-inline 180ms ease;
}

#process .grid.border-t > div:hover { background: #faf7f2; }

section[aria-label="Studio promise"] {
  background: #f4b18f !important;
}

#contact {
  background: var(--cerebro-paper) !important;
}

#contact h2 { color: var(--cerebro-ink) !important; }
#contact h2 span { color: var(--cerebro-orange) !important; }

#contact a[data-testid^="link-contact-"] {
  border-radius: 999px;
  padding: .95rem 1.35rem !important;
}

section[aria-labelledby="profiles-title"] { background: #fff !important; }

section[aria-labelledby="profiles-title"] a[data-testid^="link-profile-"] {
  min-height: 170px !important;
  border-radius: .9rem;
  padding: 1.4rem !important;
  background: var(--cerebro-paper) !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

section[aria-labelledby="profiles-title"] a[data-testid^="link-profile-"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(32, 25, 27, .08);
}

@media (max-width: 767px) {
  header > div { padding-block: .7rem !important; }
  section[aria-labelledby="hero-title"] > div.relative.mx-auto.grid { padding-inline: 1.25rem !important; }
  html body section[aria-labelledby="hero-title"] #hero-title { font-size: clamp(3.3rem, 15vw, 5.2rem) !important; }
  html body section[aria-labelledby="hero-title"] .hero-cta-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section[aria-labelledby="hero-title"] .hero-analytics-card { display: none !important; }
  #work .mt-8.grid > article { border-radius: .85rem; }
  html body #services a.group { min-height: 0; }
  #process .grid.border-t > div:hover { padding-inline: 0; }
}

@media (max-width: 520px) {
  html body section[aria-labelledby="hero-title"] .hero-cta-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  html body section[aria-labelledby="hero-title"] {
    height: auto !important;
    min-height: 0 !important;
  }

  html body section[aria-labelledby="hero-title"] > div.relative.mx-auto.grid {
    height: auto !important;
    min-height: 0 !important;
    align-content: start;
    padding-bottom: 6rem !important;
  }

  html body section[aria-labelledby="hero-title"] .hero-cta-row {
    margin-bottom: 0 !important;
  }
}

html body .floating-whatsapp {
  bottom: max(1.25rem, env(safe-area-inset-bottom)) !important;
}

@media (max-width: 520px) {
  html body .floating-whatsapp {
    top: auto !important;
    right: max(1rem, env(safe-area-inset-right)) !important;
  }
}

@media (min-width: 1024px) and (hover: hover) {
  @keyframes hero-3d-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
  }

  section[aria-labelledby="hero-title"] > div.relative.mx-auto.grid {
    perspective: 1500px;
    perspective-origin: 62% 48%;
  }

  section[aria-labelledby="hero-title"] .hero-analytics-card {
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
  }

  section[aria-labelledby="hero-title"] .hero-analytics-card::before {
    position: absolute;
    z-index: -1;
    inset: 5% 3% 3% 5%;
    border: 1px solid rgba(66, 27, 40, .13);
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(241, 90, 41, .12), rgba(255, 255, 255, .4) 55%, rgba(66, 27, 40, .08));
    box-shadow: 18px 24px 48px rgba(32, 25, 27, .14);
    content: "";
    pointer-events: none;
    transform: translateZ(-38px) rotate(3deg);
    transition: transform 650ms cubic-bezier(.2,.75,.25,1);
  }

  section[aria-labelledby="hero-title"] .hero-analytics-image {
    transform: perspective(1100px) rotateY(calc(-4deg + var(--tilt-y, 0deg))) rotateX(calc(2deg + var(--tilt-x, 0deg))) translateZ(22px) !important;
    transform-origin: center;
    transition: transform 650ms cubic-bezier(.2,.75,.25,1), box-shadow 650ms ease !important;
    animation: hero-3d-float 6s ease-in-out infinite;
  }

  section[aria-labelledby="hero-title"] .hero-analytics-card:hover .hero-analytics-image {
    transform: perspective(1100px) rotateY(calc(1deg + var(--tilt-y, 0deg))) rotateX(calc(-1deg + var(--tilt-x, 0deg))) translateZ(46px) scale(1.025) !important;
    box-shadow: 0 32px 72px rgba(32, 25, 27, .2) !important;
  }

  section[aria-labelledby="hero-title"] .hero-analytics-card:hover::before {
    transform: translateZ(-52px) rotate(-2deg) translateX(-8px) translateY(6px);
  }

  #work .mt-8.grid > article {
    transform-style: preserve-3d;
    transition: transform 360ms cubic-bezier(.2,.75,.25,1), box-shadow 360ms ease !important;
  }

  html body #work .mt-8.grid > article:hover {
    transform: perspective(1000px) rotateX(1.5deg) rotateY(-1.5deg) translateY(-7px) translateZ(10px) !important;
    box-shadow: 0 24px 48px rgba(32, 25, 27, .14) !important;
  }

  html body #services a.group:hover {
    transform: perspective(900px) rotateY(-1.5deg) translateX(5px) translateZ(8px) !important;
  }
}

[class~="bg-[#f4c8aa]"] {
  background-color: #ffffff !important;
}

section[aria-labelledby="hero-title"] h1,
section[aria-labelledby="hero-title"] h1 span {
  color: #111111;
  font-weight: 800;
}

section[aria-labelledby="hero-title"] h1 span,
section[aria-labelledby="hero-title"] .text-accent {
  color: #7f1d2d;
}

@keyframes hero-copy-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

section[aria-labelledby="hero-title"] .animate-rise > p {
  animation: hero-copy-reveal 700ms cubic-bezier(0.2, 0.75, 0.25, 1) 100ms both;
}

section[aria-labelledby="hero-title"] .animate-rise > h1 {
  animation: hero-copy-reveal 800ms cubic-bezier(0.2, 0.75, 0.25, 1) 220ms both;
}

section[aria-labelledby="hero-title"] .animate-rise > h1 + div {
  animation: hero-copy-reveal 700ms cubic-bezier(0.2, 0.75, 0.25, 1) 380ms both;
}

section[aria-labelledby="hero-title"] .animate-rise > a {
  animation: hero-copy-reveal 700ms cubic-bezier(0.2, 0.75, 0.25, 1) 520ms both;
}

section[aria-labelledby="hero-title"] img[src*="60usd"],
section[aria-labelledby="hero-title"] img[src*="website-development"] {
  width: min(100%, 30rem);
  max-height: 28rem;
  object-fit: contain;
  margin-inline: auto;
}

@media (min-width: 1024px) and (max-height: 900px) {
  section[aria-labelledby="hero-title"] {
    min-height: calc(100svh - 76px);
  }

  section[aria-labelledby="hero-title"] > div.relative.mx-auto.grid {
    min-height: calc(100svh - 76px);
    gap: clamp(1rem, 2vw, 1.75rem);
    padding-top: clamp(1rem, 2.5vh, 1.5rem);
    padding-bottom: 1.5rem;
  }

  section[aria-labelledby="hero-title"] h1 {
    font-size: clamp(3.8rem, 6.2vw, 6rem);
    line-height: 0.86;
  }

  section[aria-labelledby="hero-title"] h1 + div {
    margin-top: clamp(1rem, 2vh, 1.4rem);
  }

  section[aria-labelledby="hero-title"] h1 + div + a {
    margin-top: clamp(1rem, 2vh, 1.4rem);
  }

  section[aria-labelledby="hero-title"] img[src*="website-development"] {
    width: min(100%, 25rem);
    max-height: 20rem;
  }
}

.scroll-depth-item {
  opacity: 0;
  transform: perspective(1100px) translate3d(0, 34px, -64px) rotateX(7deg);
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  transition: opacity 700ms ease, transform 850ms cubic-bezier(.2,.75,.25,1);
  transition-delay: var(--scroll-depth-delay, 0ms);
}

.scroll-depth-item.scroll-depth-visible {
  opacity: 1;
  transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0deg);
}

@media (max-width: 767px) {
  .scroll-depth-item {
    transform: perspective(900px) translate3d(0, 24px, -30px) rotateX(4deg);
    transition-duration: 620ms, 700ms;
  }
}

@media (min-width: 1024px) {
  #root::after {
    position: fixed;
    z-index: 55;
    inset: 0;
    border-radius: clamp(0px, .8vw, 14px);
    background:
      linear-gradient(90deg, rgba(32, 18, 25, .19) 0%, rgba(255,255,255,.32) 1.2%, rgba(32,18,25,.035) 2.4%, transparent 7%, transparent 93%, rgba(32,18,25,.035) 97.6%, rgba(255,255,255,.32) 98.8%, rgba(32,18,25,.19) 100%),
      radial-gradient(ellipse at center, transparent 62%, rgba(32, 18, 25, .12) 100%);
    box-shadow: inset 0 0 88px rgba(32, 18, 25, .1);
    content: "";
    pointer-events: none;
  }
}
