/* ===== Base ===== */
:root { --ns-lime: #deff4e; --ns-ink: #292222; }
html { -webkit-font-smoothing: antialiased; overflow-x: clip; }
body { overflow-x: clip; }
img { display: block; }

/* Anton is heavy by nature; loosen tracking a touch so big headlines breathe */
.font-nichrome { letter-spacing: 0.005em; }

/* ===== Anti-flash: hide animated bits until GSAP reveals them ===== */
[data-reveal],
[data-stagger] > *,
[data-hero="title"], [data-hero="sub"], [data-hero="cta"], [data-hero="bullets"],
[data-hero="img-main"], [data-hero="img-card"], [data-hero="img-glass"] {
  opacity: 0;
  will-change: transform, opacity;
}

/* ===== Brand logo (masked SVG → inherits currentColor, so it adapts to context) ===== */
.brand-logo {
  display: inline-block;
  width: auto;
  aspect-ratio: 175 / 26;
  background-color: currentColor;
  -webkit-mask: url("assets/logo.svg") no-repeat center / contain;
          mask: url("assets/logo.svg") no-repeat center / contain;
}

/* ===== Partner marquee ===== */
/* overflow:hidden is essential — it contains the very wide marquee track so it can
   never push the page wider than the viewport (which otherwise crops sections on mobile). */
.scroller { overflow: hidden; max-width: 100%;
            -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { animation: marquee 30s linear infinite; }
.scroller:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.partner {
  flex: 0 0 auto;
  margin: 0 2.5rem;
  font-family: "General Sans", system-ui, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 18px;
  white-space: nowrap;
  color: rgba(160, 255, 232, 0.72);
}

/* ===== Opportunity cards ===== */
.opp-icon { display: inline-block; width: 40px; height: 40px; color: var(--ns-ink); }
.opp-icon svg { width: 100%; height: 100%; }
.opp-label { margin-top: 18px; font-family: "General Sans", system-ui, sans-serif; font-weight: 600;
             text-transform: capitalize; font-size: 18px; color: rgba(41,34,34,0.7); }
.opp-value { margin-top: 6px; font-family: "Anton", sans-serif; text-transform: uppercase;
             font-size: 28px; line-height: 1.05; color: var(--ns-ink); }
.opp-body  { margin-top: 12px; font-size: 16px; line-height: 1.5; color: rgba(41,34,34,0.8); }
.opp-note  { margin-top: 12px; font-style: italic; font-size: 14px; color: rgba(41,34,34,0.55); }
@media (min-width: 768px){ .opp-value { font-size: 32px; } }

/* data-icon (model section) svg sizing */
[data-icon] svg { width: 100%; height: 100%; }

/* ===== Accordion plus / cross icon ===== */
.accordion-item__icon { position: relative; width: 22px; height: 22px; display: inline-block;
                        color: var(--ns-ink); transition: transform .3s ease; }
.accordion-item__icon::before,
.accordion-item__icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.accordion-item__icon::before { left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-item__icon::after  { top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-item__icon.open { transform: rotate(45deg); } /* plus -> cross */

.faq-a { height: 0; opacity: 0; }
.faq-cat-body { overflow: hidden; }

/* ===== Hero range slider ===== */
input[type="range"] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,0.35); accent-color: var(--ns-lime); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: var(--ns-lime);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%;
  background: var(--ns-lime); border: 2px solid #fff; }

/* ===== Footer giant wordmark ===== */
.footer-wordmark {
  font-size: 21vw;
  line-height: 0.82;
  text-align: center;
  letter-spacing: 0.01em;
  transform: translateY(0.08em);
  will-change: transform;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  [data-reveal], [data-stagger] > *,
  [data-hero="title"], [data-hero="sub"], [data-hero="cta"], [data-hero="bullets"],
  [data-hero="img-main"], [data-hero="img-card"], [data-hero="img-glass"] { opacity: 1 !important; }
  html { scroll-behavior: auto; }
  .credit-link:hover { animation: none; }
}

/* ===== "Designed by" credit — subtle wiggle on hover ===== */
.credit-link { display: inline-block; transform-origin: center; will-change: transform; }
.credit-link:hover { color: #a0ffe8; text-shadow: 0 0 14px rgba(160,255,232,0.55); animation: credit-wiggle 0.55s ease-in-out; }
@keyframes credit-wiggle {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-3.5deg); }
  38% { transform: rotate(3deg); }
  58% { transform: rotate(-2deg); }
  78% { transform: rotate(1.25deg); }
}

/* ===== Opportunity storyline (scroll-drawn connecting line) ===== */
[data-storyline] { position: relative; z-index: 0; }
[data-storyline] > .opp-card { position: relative; z-index: 1; }
.storyline-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; opacity: 1 !important; }
.sl-bg   { fill: none; stroke: #292222; stroke-opacity: 0.12; stroke-width: 2;   stroke-linecap: round; }
.sl-draw { fill: none; stroke: #273a1f; stroke-width: 2.5; stroke-linecap: round; }
.sl-ring { fill: none; stroke: #273a1f; stroke-width: 15;  stroke-linecap: round; }
.sl-core { fill: none; stroke: #deff4e; stroke-width: 7;   stroke-linecap: round; }
.sl-stop { fill: #273a1f; }
/* mobile: indent cards so the left-rail spine sits in the gutter, never over text */
@media (max-width: 767px) { [data-storyline] > .opp-card { padding-left: 46px; } }

/* ===== Contact form fields ===== */
.form-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(160, 255, 232, 0.28);
  color: #a0ffe8;
  font-family: "General Sans", system-ui, sans-serif;
  font-size: 16px;
  padding: 12px 16px;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.form-field::placeholder { color: rgba(160, 255, 232, 0.4); }
.form-field:focus { outline: none; border-color: #deff4e; background: rgba(255, 255, 255, 0.08); }
.form-field option { color: #172749; }
