/* ── Tokens ── */

:root {
  --lime:            #A8CC36;
  --lime-dark:       #97b82e;
  --black:           #111111;
  --gray:            #6B6B6B;
  --gray-light:      #999999;
  --border:          #E4E4E4;
  --white:           #FFFFFF;
  --off-white:       #F7F7F5;

  --font-heading:    'Google Sans Flex', sans-serif;
  --font-body:       'DM Sans', sans-serif;

  --container:       1280px;
  --container-wide:  1440px;
  --gutter:          clamp(1.5rem, 5vw, 4rem);

  --transition:      0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --ease:            cubic-bezier(0.22, 1, 0.36, 1);

  --radius-pill:     100px;
}

/* ── Reset ── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: thin;
  scrollbar-color: var(--lime) var(--black);
  /* clip (not hidden) so position:sticky descendants keep working */
  overflow-x: clip;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-dark); }

body {
  font-family: var(--font-body);
  color: var(--gray);
  background-color: var(--white);
  line-height: 1.6;
  /* clip (not hidden) so position:sticky descendants keep working */
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--black);
  font-optical-sizing: auto;
  font-variation-settings: "slnt" 0, "wdth" 100, "GRAD" 0, "ROND" 0;
}

h1, h2 { font-weight: 700; }
h3, h4 { font-weight: 600; }

p {
  line-height: 1.75;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* ── Skip link ──
   Visually hidden until keyboard-focused, then pinned top-left.
   Pairs with the in-page #main-content anchor. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 8px 16px;
  background: #a8cc36;
  color: #111;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ── Global utilities ── */

body.no-scroll { overflow: hidden; }

/* ── Preloader ── */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* When arriving via internal navigation, hide the preloader via CSS
   so it never flashes. The class is set by an inline <script> in <head>. */
html.tt-internal #preloader {
  display: none;
}

.preloader__half {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--lime);
}

#preloader__top { top: 0; }
#preloader__bottom { bottom: 0; }

#preloader__logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

#preloader__mark {
  width: 56px;
  height: 40px;
  overflow: visible;
}

.mark-piece { opacity: 0; }

#preloader__wordmark {
  width: 180px;
  height: auto;
  overflow: visible;
}

.container {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ── Section spacing ── */

.section {
  padding: 120px 0;
}

@media (max-width: 1023px) {
  .section {
    padding: 100px 0;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }
}

@media (max-width: 400px) {
  .section {
    padding: 56px 0;
  }
}

/* ── Eyebrow ── */

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.eyebrow--lime {
  color: var(--lime);
}

/* ── Section heading ── */

.section-heading {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--black);
  margin-top: 12px;
}

/* ── Section description ── */

.section-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--gray);
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--lime {
  background-color: var(--lime);
  color: var(--black);
}

.btn--lime:hover {
  background-color: var(--lime-dark);
}

.btn--ghost {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn--ghost:hover {
  border-color: var(--white);
}

@media (max-width: 400px) {
  .btn {
    font-size: 11px;
    padding: 12px 22px;
  }
}

/* ── GSAP GPU Compositing ── */

#smooth-wrapper {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /* Hidden by default — preloader covers viewport on cold load.
     GSAP sets autoAlpha:1 when preloader finishes or on internal nav.
     Safety: CSS animation auto-reveals after 3s if JS never runs. */
  visibility: hidden;
  opacity: 0;
}

/* Internal navigation: wrapper must be visible immediately
   (curtain covers it, not the preloader). */
html.tt-internal #smooth-wrapper {
  visibility: visible;
  opacity: 1;
}

/* Safety net: if JS never loads, reveal content after 3s */
@keyframes wrapper-safety {
  to { visibility: visible; opacity: 1; }
}
#smooth-wrapper {
  animation: wrapper-safety 0s 3s forwards;
}
html.tt-internal #smooth-wrapper {
  animation: none;
}

#smooth-content {
  overflow: hidden;
  width: 100%;
}

/* ── Mobile: remove GPU compositing hints (ScrollSmoother disabled) ── */
@media (max-width: 767px) {
  #smooth-content {
    will-change: auto;
    transform: none;
    backface-visibility: visible;
  }

  #smooth-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    height: auto;
  }
}

/* ── Page curtain ── */
/* Off-screen by default. When html.tt-internal is set (by inline <script>
   in <head>), the curtain covers the viewport so the old-page → new-page
   transition is seamless black. JS then animates it away. */
#page-curtain {
  position: fixed;
  inset: 0;
  background: #a8cc36;
  z-index: 10000;
  pointer-events: none;
  will-change: transform;
  transform: translateY(100%);
}
html.tt-internal #page-curtain {
  transform: translateY(0%);
}

/* ── Scroll-to-top button ── */

.tt-go-top {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: max(clamp(14px, 2.4vw, 28px), env(safe-area-inset-bottom));
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1400;
  cursor: pointer;

  color: #ffffff;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.94);

  transition:
    opacity 0.22s var(--ease),
    visibility 0.22s var(--ease),
    transform 0.22s var(--ease),
    background 0.22s var(--ease),
    color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.tt-go-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.tt-go-top:hover {
  background: var(--lime);
  color: #0f0f0f;
  border-color: rgba(17, 17, 17, 0.12);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.tt-go-top:active {
  transform: translateY(1px) scale(0.98);
}

.tt-go-top:focus-visible {
  outline: 2px solid rgba(168, 204, 54, 0.95);
  outline-offset: 3px;
}

.tt-go-top__arrow {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tt-go-top__arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tt-go-top__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 767px) {
  .tt-go-top {
    width: 48px;
    height: 48px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .tt-go-top__arrow {
    width: 18px;
    height: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-go-top,
  .tt-go-top.is-visible,
  .tt-go-top:active {
    transform: none;
  }
}


/* ── Scroll-animation pre-hide ──
   Prevents FOUC before GSAP sets autoAlpha.
   GSAP's autoAlpha flips visibility + opacity on animate-in.
   Reduced-motion users never get these rules — content stays visible.
   Safety-net animation auto-reveals after 3.5s if JS never runs. */

@keyframes anim-safety {
  to { visibility: visible; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-fade-up],
  [data-line-reveal],
  [data-scale-in] {
    visibility: hidden;
    animation: anim-safety 0s 3.5s forwards;
  }

  [data-stagger-children] > * {
    visibility: hidden;
    animation: anim-safety 0s 3.5s forwards;
  }

  .ct-hero__breadcrumb,
  .ct-hero__eyebrow,
  .ct-hero__headline,
  .ct-hero__valueprop,
  .ct-hero__actions,
  .ct-hero__stat-bar,
  .cp-hero__breadcrumb,
  .cp-hero__eyebrow,
  .cp-hero__headline,
  .cp-hero__valueprop,
  .cp-hero__actions,
  .cp-hero__stat-bar {
    visibility: hidden;
    animation: anim-safety 0s 3.5s forwards;
  }
}

/* ── iOS auto-zoom guard ──
   Form controls below 16px make iOS Safari zoom on focus.
   Force a >=16px minimum for focusable text inputs/selects/textareas
   on mobile. Page stylesheets carry their own matching overrides where
   class-level specificity would otherwise win. */

@media (max-width: 767px) {
  input,
  select,
  textarea,
  .ct-listing__sort-select {
    font-size: 16px;
  }
}


/* Removed GSAP ScrollTrigger composite freeze workaround as it causes memory leaks and tab freezes */
