/* Homepage only. The rest of the site uses the existing theme. */
#main .tim-hero-3d {
  --tim-ink: #263b35;
  --tim-leaf: #33833e;
  --tim-action: #287335;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--tim-ink);
  padding: clamp(44px, 5vw, 78px) 0;
  background: #fff;
}
#main .tim-hero-3d .hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  column-gap: clamp(16px, 3vw, 48px);
  min-height: 0;
}
#main .tim-hero-3d .hero-copy { position: relative; z-index: 1; }
#main .tim-hero-3d .eyebrow { color: var(--tim-leaf); }
#main .tim-hero-3d .eyebrow::before { background: var(--tim-leaf); }
#main .tim-hero-3d h1 {
  color: var(--tim-ink);
  font-size: clamp(2.7rem, 4.7vw, 5rem);
  letter-spacing: -.062em;
  line-height: 1.015;
  text-wrap: balance;
}
#main .tim-hero-3d h1 em { color: var(--tim-leaf); font-style: normal; }
#main .tim-hero-3d .lead { color: var(--tim-ink); line-height: 1.65; }
#main .tim-hero-3d .hero-description { color: #52635c; }
#main .tim-hero-3d .actions .button {
  background: var(--tim-action);
  color: #fff;
  border-color: var(--tim-action);
  box-shadow: 0 6px 18px #28733526;
}
#main .tim-hero-3d .actions .button:hover { background: #205c2c; }
#main .tim-hero-3d .actions .text-link { color: var(--tim-ink); }
#main .tim-hero-3d .actions a:focus-visible {
  outline: 2px solid var(--tim-action);
  outline-offset: 5px;
}

.tim-hero-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1 / .98;
  display: grid;
  place-items: center;
  perspective: 1000px;
}
.tim-hero-stage__grid {
  position: absolute;
  inset: 21% -13% -7%;
  background:
    repeating-linear-gradient(0deg, #33833e21 0 1px, transparent 1px 37px),
    repeating-linear-gradient(90deg, #33833e21 0 1px, transparent 1px 37px);
  transform: rotateX(53deg) rotateZ(-13deg) scale(1.14);
  mask-image: radial-gradient(ellipse, #000 7%, transparent 68%);
  opacity: .64;
}
.tim-hero-stage__orbit {
  position: absolute;
  inset: 9% 9% 12%;
  border-radius: 50%;
  border: 1px solid #33833e25;
  box-shadow: 0 0 42px #3a864510, inset 0 0 54px #3a86450b;
  transform: rotateX(16deg) rotateY(-16deg) rotateZ(-16deg);
}
.tim-hero-stage__shadow {
  position: absolute;
  inset: 55% 5% 4% 11%;
  background: radial-gradient(ellipse, #213d2936 0%, transparent 66%);
  transform: rotate(-14deg);
}
.tim-hero-stage__space {
  display: grid;
  place-items: center;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--stage-rotate-x, 0deg)) rotateY(var(--stage-rotate-y, 0deg));
  transition: transform .35s cubic-bezier(.2,.75,.3,1);
}
.tim-hero-stage .tim-hero-stage__sculpture {
  display: block;
  width: 112%;
  max-width: none;
  height: auto;
  grid-area: 1 / 1;
  transform: translateZ(26px);
}
.tim-hero-stage__label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .68rem .95rem;
  border-radius: 12px;
  border: 1px solid #d4e5d6;
  background: #fff;
  box-shadow: 0 3px 0 #deebe0, 0 12px 24px #213d2926;
  color: #274331;
  font-size: clamp(.7rem, 1.08vw, .89rem);
  font-weight: 650;
  white-space: nowrap;
}
.tim-hero-stage__label--documents {
  left: 1%;
  bottom: 16%;
  transform: translateZ(82px) rotate(-6deg);
}
.tim-hero-stage__label--figures {
  right: 1%;
  top: 13%;
  transform: translateZ(106px) rotate(6deg);
}
.tim-hero-stage__dot {
  width: .48rem;
  height: .48rem;
  border-radius: 50%;
  background: #33833e;
}

#main:has(.tim-hero-3d) .service-grid {
  gap: 20px;
  overflow: visible;
  background: none;
  border: 0;
  perspective: 1100px;
}
#main:has(.tim-hero-3d) .service-grid .service-card {
  border: 1px solid #d3e4d8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 #dcebe1, 0 13px 26px #173a2410;
  padding: clamp(19px, 2.25vw, 34px);
  transition: transform .23s ease, box-shadow .23s ease, border-color .23s ease;
}
#main:has(.tim-hero-3d) .service-card::after { right: clamp(19px, 2.2vw, 30px); }
#main:has(.tim-hero-3d) .service-card .card-number {
  display: grid;
  place-items: center;
  align-self: flex-start;
  min-width: 37px;
  min-height: 37px;
  border-radius: 10px;
  background: #e5f1e6;
  color: #18533a;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 #cbded1;
}
@media (hover: hover) and (pointer: fine) {
  #main:has(.tim-hero-3d) .service-grid .service-card:hover {
    transform: translateY(-6px) rotateX(3deg);
    border-color: #8ab89c;
    box-shadow: 0 7px 0 #dcebe1, 0 20px 30px #173a2424;
  }
}
#main:has(.tim-hero-3d) .service-card:focus-visible {
  outline: 2px solid #236545;
  outline-offset: 5px;
}
#main:has(.tim-hero-3d) .tools-inner {
  background: #f7faf6;
  border: 1px solid #d2e5d8;
  border-radius: 24px;
  box-shadow: 0 7px 0 #d7e9db, 0 16px 36px #173a2415;
}
#main:has(.tim-hero-3d) .tool-links a {
  border: 1px solid #d1e5d8;
  border-radius: 10px;
  background: #f9fdf8;
  box-shadow: 0 2px 0 #c9ddd0;
}
#main:has(.tim-hero-3d) .tool-links a + a { margin-top: 8px; }
#main:has(.tim-hero-3d) .contact-band {
  color: #263b35;
  background: #f4f9f3;
  border: 1px solid #d9e7da;
  box-shadow: 0 4px 0 #e3eee4, 0 13px 26px #173a240d;
}
#main:has(.tim-hero-3d) .contact-band h2 { color: #263b35; }
#main:has(.tim-hero-3d) .contact-band p { color: #52635c; }
#main:has(.tim-hero-3d) .contact-band .eyebrow { color: #287335; }
#main:has(.tim-hero-3d) .contact-band .button {
  background: #287335;
  border-color: #287335;
  color: #fff;
}
@media (max-width: 900px) {
  #main .tim-hero-3d .hero-grid { grid-template-columns: minmax(0, 1fr); }
  #main .tim-hero-3d .hero-copy { max-width: 630px; }
  .tim-hero-stage {
    width: min(100%, 560px);
    margin: 0 auto;
    aspect-ratio: 1 / .8;
  }
  .tim-hero-stage .tim-hero-stage__sculpture { width: 102%; }
}
@media (max-width: 480px) {
  #main .tim-hero-3d h1 { font-size: clamp(2.3rem, 10.5vw, 3.15rem); }
  #main .tim-hero-3d { padding: 36px 0 24px; }
  #main .tim-hero-3d .hero-copy .eyebrow { font-size: .67rem; }
  #main .tim-hero-3d .hero-grid { row-gap: 20px; }
  .tim-hero-stage { aspect-ratio: 1 / .97; }
  .tim-hero-stage .tim-hero-stage__sculpture { width: 96%; }
  .tim-hero-stage__label { padding: .45rem .62rem; }
}
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .tim-hero-stage__space {
    transform: translateY(calc(var(--stage-scroll-progress, 0) * 17px))
      rotateX(calc(var(--stage-scroll-progress, 0) * -6deg))
      rotateY(calc(var(--stage-scroll-progress, 0) * 4deg));
    transition: none;
  }
  .tim-hero-stage__orbit {
    transform: translateY(calc(var(--stage-scroll-progress, 0) * 5px))
      rotateX(16deg) rotateY(-16deg) rotateZ(-16deg);
  }
  .tim-hero-stage__label--documents {
    transform: translateY(calc(var(--stage-scroll-progress, 0) * -10px)) translateZ(82px) rotate(-6deg);
  }
  .tim-hero-stage__label--figures {
    transform: translateY(calc(var(--stage-scroll-progress, 0) * 12px)) translateZ(106px) rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tim-hero-stage__space,
  #main:has(.tim-hero-3d) .service-grid .service-card {
    transform: none;
    transition: none;
  }
}
