/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

 * {
    font-family: "Montserrat", sans-serif;
  }

  .font-display {
    font-family: "Playfair Display", Georgia, serif;
  }

  .font-jetbrains {
    font-family: "JetBrains Mono", ui-monospace, monospace;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 4.5rem;
  }

  ::selection {
    background-color: #10b981;
    color: #ffffff;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #f3f4f6;
  }

  ::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #10b981;
  }

  /* ===== Custom select arrow ===== */
  select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 15px 15px;
  }

  /* ===== Sortable table headers ===== */
  th a.sort_link {
    color: inherit;
    text-decoration: none;
  }

  th a.sort_link:hover {
    color: #065f46;
  }

  /* ===== Scroll reveal animations ===== */
  /* NOTE: no `transform` and no `will-change` may remain after the reveal —
     either would turn the element into the containing block for `position:
     fixed` descendants (e.g. lightboxes) and confine them to the section. */
  [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-reveal="left"] {
    transform: translateX(-32px);
  }

  [data-reveal="right"] {
    transform: translateX(32px);
  }

  [data-reveal="scale"] {
    transform: scale(0.94);
  }

  [data-reveal].reveal-visible {
    opacity: 1;
    transform: none;
  }

  @media (prefers-reduced-motion: reduce) {
    [data-reveal] {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
    }
    .animate-slow-zoom {
      animation: none !important;
    }
  }

  /* ===== Decorative motion ===== */
  @keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); }
  }

  .animate-slow-zoom {
    animation: slowZoom 20s ease-out forwards;
  }

  @keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
  }

  .animate-float-slow {
    animation: floatSlow 9s ease-in-out infinite;
  }

  .animate-float-slower {
    animation: floatSlow 13s ease-in-out infinite;
  }

  @keyframes shimmerLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }

  .shimmer-line::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: shimmerLine 3s ease-in-out infinite;
  }

  .font-display *,
  .font-jetbrains * {
    font-family: inherit;
  }

  /* ===== Homepage: hero ===== */
  .hero-backdrop {
    background:
      radial-gradient(55% 65% at 75% 25%, rgb(16 185 129 / 0.35), transparent 70%),
      radial-gradient(45% 55% at 10% 95%, rgb(52 211 153 / 0.12), transparent 70%),
      linear-gradient(165deg, #065f46 0%, #064e3b 55%, #053d2f 100%);
  }

  .bg-fresh {
    background:
      radial-gradient(70% 80% at 90% 10%, rgb(16 185 129 / 0.28), transparent 65%),
      radial-gradient(50% 60% at 0% 100%, rgb(52 211 153 / 0.10), transparent 70%),
      linear-gradient(150deg, #065f46 0%, #064e3b 60%, #053d2f 100%);
  }

  .hero-canvas {
    opacity: 0;
    transition: opacity 2.4s ease;
  }

  .hero-scene-ready .hero-canvas {
    opacity: 1;
  }

  .hero-mask {
    display: block;
    overflow: hidden;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
  }

  @keyframes heroLineIn {
    from { transform: translateY(110%) rotate(2deg); }
    to { transform: none; }
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  .hero-line {
    display: inline-block;
    transform: translateY(110%);
    transform-origin: left bottom;
    animation: heroLineIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 130ms + 250ms);
  }

  .hero-fade {
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--d, 0) * 130ms + 250ms);
  }

  @keyframes scrollCue {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  .scroll-cue {
    animation: scrollCue 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }

  /* ===== Word-by-word reveal ===== */
  .reveal-word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
  }

  .reveal-word > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 55ms);
  }

  .reveal-visible .reveal-word > span,
  .reveal-visible.reveal-word > span {
    transform: none;
  }

  /* ===== Odometer counters ===== */
  .odo-digit {
    display: inline-block;
    height: 1em;
    overflow: hidden;
    vertical-align: top;
    line-height: 1;
  }

  .odo-strip {
    display: block;
    transform: translateY(0);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .odo-strip > span {
    display: block;
    height: 1em;
  }

  /* ===== Line drawing ===== */
  [data-draw] [pathLength] {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .reveal-visible [data-draw] [pathLength],
  .reveal-visible[data-draw] [pathLength] {
    stroke-dashoffset: 0;
  }

  [data-scroll-progress] .scroll-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p, 0));
  }

  /* ===== Bars ===== */
  [data-bar] {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 90ms + 200ms);
  }

  .reveal-visible [data-bar] {
    transform: scaleX(1);
  }

  /* ===== Staggered children ===== */
  [data-stagger] > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 70ms + 150ms);
  }

  .reveal-visible[data-stagger] > * {
    opacity: 1;
    transform: none;
  }

  /* ===== Marquee ===== */
  @keyframes marquee {
    to { transform: translateX(-50%); }
  }

  .marquee-track {
    display: flex;
    width: max-content;
    animation: marquee var(--duration, 60s) linear infinite;
    animation-direction: var(--direction, normal);
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }

  .marquee-skew {
    transform: skewX(calc(var(--sv, 0) * -10deg));
    transition: transform 0.2s linear;
  }

  /* ===== Program rows ===== */
  .program-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, #064e3b, #065f46);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
  }

  .program-row:hover::before,
  .program-row:focus-within::before {
    transform: scaleY(1);
    transform-origin: top;
  }

  /* ===== Pointer spotlight + tilt ===== */
  [data-tilt] {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-tilt].is-tilting {
    transition: transform 0.12s linear;
  }

  .spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(16 185 129 / 0.18), transparent 60%);
  }

  .spotlight:hover::after {
    opacity: 1;
  }

  [data-magnetic] {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* ===== Animated underline ===== */
  .link-underline {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .link-underline:hover,
  .link-underline[aria-current="true"] {
    background-size: 100% 1px;
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-line,
    .hero-fade,
    .scroll-cue,
    .marquee-track {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
    }
    .reveal-word > span,
    [data-bar],
    [data-stagger] > *,
    .odo-strip {
      transition: none !important;
    }
    .reveal-word > span,
    [data-bar],
    [data-stagger] > * {
      opacity: 1 !important;
      transform: none !important;
    }
    [data-draw] [pathLength],
    [data-scroll-progress] .scroll-draw {
      stroke-dashoffset: 0 !important;
    }
  }
